I have installed xrdp on ubuntu 18. xrdp by default listens to 3389 so that it can support Window RDP When I run "netstat", it shows that the service is listing with tcp6 and IPV6 syntax (colon delimiters) Windows remote desktop client resolves the host name to an IPV4 address How can I configure xrdp service to listen using IPV4 protocol? I cannot completely disable TCP/IP v6 because I do not have the authority and IPV6 is needed for other services. If I know the correct configuration changes for the xrdp service I can request those changes.
I was putting the following in /etc/sysctl.conf in Ubuntu 16.04 and ipv6 was disabled.  net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1   In Ubuntu 18.04 I have to add the following to grub.  GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"   Just wanted to have confirmation whether this is the new way in Ubuntu 18.04 to disable IPv6.
I am trying to add jQuery to my page (it is not being added by default). The file is adding to the page but after drupal.js causing the error:  SCRIPT5009: 'jQuery' is undefined  drupal.js, line 5 character 1    The code that adds drupal.js to the page in common.inc  ... 'misc/drupal.js' =&gt; array(           'data' =&gt; 'misc/drupal.js',           'type' =&gt; 'file',           'scope' =&gt; 'header',           'group' =&gt; JS_LIBRARY,           'every_page' =&gt; TRUE,           'weight' =&gt; -1,           'preprocess' =&gt; TRUE,           'cache' =&gt; TRUE,           'defer' =&gt; FALSE,         ), ...   In my module hook_init I have:    drupal_add_js('misc/jquery.js', array(     'group' =&gt; JS_LIBRARY,     'weight' =&gt; -20,     'cache' =&gt; TRUE,   ));   I would think with a lower weight it would load before drupal.js?  The header of the page contains the following scripts:  &lt;script type="text/javascript" src="http://mysite.com/misc/drupal.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/misc/jquery.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/misc/jquery.once.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/sites/default/files/languages/nl_c9aC92_wtuULa79-hTFcGPM53oqk1yKwciOa_Q3yO28.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/sites/all/modules/lang_dropdown/msdropdown/jquery.dd.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/sites/all/modules/lang_dropdown/lang_dropdown.js?mqdxrf"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://mysite.com/sites/all/modules/devel/devel_krumo_path.js?mqdxrf"&gt;&lt;/script&gt; Let $G$ be  a group and $H$ be a subgroup of $G$ of index $2$ .Then show that if $a,b\notin H$ then $ab\in H$.   $a,b\notin H\implies aH,bH\neq H\implies $ $aH=bH$  since $H$ has only two distinct left cosets in $G$.  $\implies a^{-1}b\in H$  How to show that $ab\in H$ from here? How to open terminal, split to 9 terminals and switch between them using one script? "Require Installation Of Untrusted Packages" while upgrading with the update manager It didn't fixed the error. So, how do I fix my GUI update?  For every software I have to install it from command line because I got same error when install software from Ubuntu Software Center. A reward becomes a penalty if I am working to build a reinforcement agent with DQN. The agent would be able to place buy and sell orders for a day trading purpose. I am facing a little problem with that project. The question is "how to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$".  I want to maximize the profit inside a trading day and avoid to place the pair (limit buy order, limit sell order) if the profit on that transaction is less than 100$. The idea here is to avoid the little noisy movements. Instead, I prefer long beautiful profitable movements. Be aware that I thought using the "Profit &amp; Loss" as the reward.  "I want the minimal profit per transaction to be 100$" ==> It seems this is not something that is enforceable. I can train the agent to maximize profit per transaction, but how that profit is cannot be ensured.  At the beginning, I wanted to tell the agent, if the profit of a transaction is 50 dollars, I will remove 100 dollars, then It becomes a penalty of 50 dollars for the agent. I thought it was a great way to tell the agent to not place a limit buy order if you are not sure it will give us a minimal profit of 100$. It seems that all I would be doing there is simply shifting the value of the reward. The agent only cares about maximizing the sum of rewards and not taking care of individual transactions.   How to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$? With that strategy, what guarantee that the agent will never make a buy/sell decision that results in less than 100 dollars profit? Does the sum of reward - # transaction * 100 can be a solution? How to combine two jQuery results How do you combine two jQuery search results? eg:  var $allFoos = $('.foo'),     $allBars = $('.bar')     $allFoosAndBars = $allFoos + $allBars;   Obviously, I just made up that last line, but I hope it makes it sorta clear what I mean. To be clear, the example is greatly simplified, and it could be any arbitrary sets i'm talking about, so $('.foo, .bar') is not what I'm after. If $A|B$ and $B|A$ then prove $A=\pm B$   So far I have $A|B \iff AX=B$ and $B|A \iff BY=A$ with $X,Y \in \mathbb{Z}$  Not sure how to finish, any help. A world where nothing can be hidden. No lies, always truth In a Bollywood movie Pk, a man comes from a planet where lying is not possible as all the thoughts/knowledge is transferable via human contact. Due to which they do not have to lie about anything or hide anything from each other.  Say, such a society plausible with technology, if we decide to abandon the privacy as we know today. All the recorded data (written, spoken, recorded videos etc.) and thought (via neuralink) is accessible to everyone, everywhere.  Basic idea behind the question is, people worry about data being accumulated at one place (entity or government) and being used against them or to deceive them. If everything is accessible/known to everyone of about anyone and anything, what does privacy mean in this case? Origin of the dot and cross product? Most questions usually just relate to what these can be used for, that's fairly obvious to me since I've been programming 3D games/simulations for a while, but I've never really understood the inner workings of them... I could get the cross product equation as a determinant of a carefully-constructed matrix,   but what I want to ask is... How did the dot and cross product come to be? When were they "invented"? Some detailed proofs? Did someone say: "Hey, wouldn't it be nice if we could construct a way to calculate a vector that is perpendicular to two given operands?"  Basically, how/why do they work?  I would appreciate explanations, links to other explanations, other web resources... I've been searching the Internet lately for explanations, but most of them are on how to use it and nothing that really gives substance to it. This plant was found growing in Germany. I have never seen it before, reverse Google image search did not help either. Can you help me identify what type of plant this is?      Thanks, looks like it is something like this:    Related question: Inverse of $f(x)=\sin(x)+x$ What is the inverse of   $$f(x)=\sin(x)+x.$$  I thought about it for a while but I couldn't figure it out and I couldn't find the answer on the internet.  What about  $$f(x)=\sin(a \cdot x)+x$$  where $a$ is a known real constant.  Thank you for taking the time to read this question! Sorry if this has been asked before... What decides what to prepend the duplicate question list with on a duplicate question? On duplicate questions, I often see different headings for the duplicate question list. These include:     Possible Duplicate:    [duplicate question list]   and      This question already has an answer here:    [duplicate question list]   and more recently,     This question is an exact duplicate of:    [duplicate question list]   What decides which heading is placed before the duplicate question list? Expected number of siblings, given the expectation of children in a family The number of children in a family is a random variable $X$, where    $ \mathbb E(X) = 1.8 $ and $Var(X) = 0.36 $. If we randomly choose a child, which is the expected number of its siblings?      (it is given that the answer $&gt; 0.8$)   Let the number of a child's siblings be a random variable $Y$, so we are looking for $ \mathbb E(Y) $.  If found that,  $$ \mathbb E(Y) = \sum_{k=0}^{\infty}k \; \mathbb P(Y=k) = \sum_{k=0}^{\infty}k \; \mathbb P(X=k+1) = $$ $$ = \sum_{k=0}^{\infty}k \; \mathbb P(X=k)-\sum_{k=0}^{\infty}\mathbb P(X=k) +\mathbb P(X=0)= \mathbb E(X)-1+\mathbb P(X=0) $$ which is indeed greater than $0.8$, if  $\; \mathbb P(X=0)&gt;0$.  But, I don't know how to make use of the variance to find the final answer.  Thank you in advance I can't create an onCheckedChanged listener for my RadioGroup Setting up PyCharm to reference ArcPy? How would I setup  to recognize import arcpy?   I'd like to use PyCharm to develop and debug geoprocessing tool. How to generate Bernoulli random variables with common correlation $\rho$? PSTricks will not compile \documentclass[12pt]{article} \usepackage[paperheight=9in,paperwidth=13.24in,margin=0in]{geometry} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \thispagestyle{empty} \psset{unit=1in} \begin{pspicture}(13.24in,9in) \psframe[fillstyle=solid,fillcolor=Maroon](0,0)(13.24,9)  \end{pspicture}  \end{document}   I am following a tutorial outlined here:   I am following the Robbers book.  Everything seems fine until I paste the \psframe[fillstyle=solid,fillcolor=Maroon](0,0)(13.24,9)  What could be the problem? Show $\mathbb{Q}[\sqrt[3]{2}]$ is a field by rationalizing How to include time factor in a mixed model (investigating the interaction between two factors and time)? Are these gerund sentences grammatically correct? I bought this book titled 2 Hari Taklukan Grammar, written by Edward Rahardian in Bahasa (Indonesian language) and mostly talk about gerund and infinitive. And these are some examples of the gerund sentences that I found.        His mother suggested having lunch before we leave.     I will try studying harder.     The car needs washing.     Your hair needs washing.     My teacher disliked me coming late.        Somehow those words sound unnatural for me because I've never heard those in daily conversations. As a learner, I only get exposed with English by watching TV series and any other entertainment resources.  So in my thought, they sound more natural like this:        His mother suggested to have lunch before we leave.     I will try to study harder.     The car needs to be washed.     Your hair needs to be washed.     My teacher disliked me to come late.       Are those sentences in the first group grammatically correct? And, is it normal for one to say them in normal/daily conversations?