Overriding the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider

Background:  I have created a custom Auth. Provider in Salesforce to reach out to an authorization server that isn't on the default list of Provider Types. I used  as a good starting point to extend the Auth.AuthProviderPluginClass. Once appropriately added to my org, it then became an option on the list of Provider Types. I was able to create an Auth. Provider using that new provider type and it works to initiate the OAuth2.0 flow. I am appropriately able to get the access token and refresh token from the authorization server.  The Problem:  As it currently stands, we will have users click on a button that will send them to the provided "OAuth-Only Initialization URL" link that was generated when I created the actual Auth. Provider record. The trick is that when the OAuth2.0 flow is completed, the user is redirected back to the Salesforce Setup Home page, and I don't see a good way in the documentation to override the final destination to be something else (like a success page or something).  Question:  Does anyone know of a way to override the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider?    UPDATE: I tried using the startUrl (and also tried retUrl for good measure) as query params, but doing so didn't change the behavior after the OAuth2.0 flow finished.  Meaning, both of the following URLs gave me the same final destination as not having any query params at all:  https://<scratch org random url>.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?retUrl=lightning%2Fpage%2Fhome   https://<scratch org random url>.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?startUrl=lightning%2Fpage%2Fhome     Another Update: This WORKED:  https:/<scratch org random url>.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?startURL=%2Flightning%2Fn%2FCustomPage   Apparently, it was important to add the leading /, (of course, url encoded to be %2F) and %2Flightning%2Fpage%2Fhome gets interpreted as the setup home and sends you there.    (Parallel posted to Salesforce Dev Forum: )


I want to add a description field to my menu and and use it in front.  I managed to have a text_format field for my description (in /admin/structure/menu/manage/main) but when I click on save, that field is empty.  function HOOK_form_alter(&$form, $form_state, $form_id) {   if ($form_id != 'menu_edit_form') {     return false;   }   $form['field_menu_content'] = array(    '#type' => 'text_format',    '#title' => t('Description'),    '#format' => 'full_html',   ); }


Is it possible to list all packages installed by a PPA? I was cleaning up my PPA list recently, removing things I'm not using anymore, and there was one PPA where I was not sure if I even have the software installed.


Jquery: Execute a jquery function after load a innerHTML

I'm trying to execute a simple click function after a InnerHTML is created, but it's not working. None is showed in console.    $(document).ready(function() {   var lorum = "Lorem ipsum dolor sit amet, leo nulla ipsum vivamus, augue tempor inceptos sed nam rhoncus. Rhoncus montes litora. Praesent ut ad ornare fusce posuere in, libero bibendum, et adipiscing.  You can click here ";    $('button').click(function() {     $('#content').html(lorum);   });    $(function() {     $('#hue').click(function() {       $('#content-2').html(lorum);     });   });  });     <button>Generate</button>


Did the Trade Federation know Darth Sidious was Senator Palpatine? If so, why didn't they rat him out when they were apprehended by the Republic?

One thing that's bothered me about Episode I is how Palpatine poorly disguises himself as Darth Sidious. He puts on a cloak, but part of his face is still visible! And this got me wondering; how did the Trade Federation never put two and two together and conclude on who he was? They had Senators who were standing right near him in the Senate chambers. So my question ultimately is: Did the Trade Federation really know who Palpatine was, and when he "betrayed" them in Episode I, why didn't they expose him and his plans? Or were they really that dumb not to figure that out?


What is the difference between these commands for bringing down a Linux server?

Reading  , I generally have an idea what does the command shutdown does, with or without -h/-r options.      The "halt" command performs power off of the system to run-level 0 of   the system.      The "shutdown" command performs a power off of the system to run-level   1 without -h or -r command.   What about the command "poweroff" does it goes into run-level 0 or 1 ?  Is this the only main difference between these three commands?


Ubuntu 20.04 and 20.10, /etc/securetty: No such file or directory

Just updated to 20.04 final release, and I'm seeing these messages in /var/log/auth.log... May 14 06:29:52 Satellite-E55 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory May 14 07:40:14 Satellite-E55 su: pam_unix(su:auth): Couldn't open /etc/securetty: No such file or directory  I looked back at a 19.10 VM, and /etc/securetty was there. All my 20.04 systems are missing this file. Two 20.04 installations are upgrades, and one installation is a fresh install VM. What's up with this file missing in 20.04? Should I restore a copy from 19.10? Update #1: The same problem occurs in 20.10, in both upgrades and fresh installs.


mohamed@MoHy:~$ airmon-ng      Run it as root    so how could i run this command as a root ?


Steam needs to install addition packages libgl1-mesa-dri:i386 and glx:i386

I'm running Ubuntu 14.04, I just downloaded steam and I'm getting   Steam needs to install these additional packages:      libgl1-mesa-dri:i386, libgl1-mesa-glx:i386 [sudo] password for usernamehere:    Once I put in my password I get  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.4)  unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Press return to continue:    I press enter and it closes and opens up steam but it asks me this every.single.time.  Is there any way to fix/bypass this nuisance?  Any help is appreciated thank you for your time.


Movie Identification: Post Apocalyptic Virtual Reality and Inception

Could be a movie, could be a twilight zone episode, I don't actually remember. I saw this when i was a kid 10-15 years ago.  Story starts off in a rural suburban town out in the middle of a desert or something like that. I'm pretty sure the main character was male, but I'm not even really sure about that. He starts to see through the virtual reality simulation. I remember, at one point, he looks around and every thing is in ruins, the people are old and disfigured. One of them thinks they are eating bagels, but it's actually crackers in a box labeled bagels.  Fast forward, he's traveling to the big dome city supposedly controlling the little town he's in. Something happens on the way there, not clear what. Then he gets to the city. It's a big biosphere type city. He runs around like an idiot for a few minutes, and find the big computer controlling the simulation in his hometown. Then he looks around and notices that this big dome city is under the same illusion. They are actually living in a simulation as well, while thinking they are the ones controlling it. Everyones wearing tattered and torn robes and whatnot.      At some point he find himself in a room with this old guy. Everyone is in pods. Something happen, then the movie ends with him walking out west into the mountains while the simulation has been dispelled for everyone.


Can I keep home-made salad dressing un-refrigerated?

My salad dressing has extra virgin olive oil (EVOO), raspberry wine vinegar, chives, sugar, salt & pepper, lemon juice and lemon zest. Can I keep it un-refrigerated for 18 hours?


T-SQL query to join tables and combine rows into comma separated list

I have two tables as follows:  Users  | Name   | TagsId |   +--------+--------+   | Bob    |  3     |   | Jim    |  2     |   | Bob    |  2     |    | Frank  |  3     |   | Jim    |  1     |     Tags  | Name    | Id  | +---------+-----+ | web     |  1  | | desktop |  2  | | phone   |  3  |   My desired result is as follows:  | Name  | TagList        | +-------+----------------+ | Bob   | desktop, phone | | Jim   | desktop, web   | | Frank | phone          |   I am able to accomplish this in SQL Server 2017 using the following query:  SELECT      u.name, STRING_AGG (t.name, ', ') as taglist  FROM      users AS u        LEFT JOIN      Tags AS t ON u.TagsId = t.Id  GROUP BY      u.name;   But unfortunately my data is in a SQL Server 2016 server so cannot use the STRING_AGG function.  How can I accomplish this without STRING_AGG?


How can you use a floating point number as an exponent in c

I am running this simple piece of c code     #include "stdafx.h" #include "math.h"  int main() { float i = 5.5; float score = 0;  score=i/(i+(2^i));  }   and the editor says that the float i "must be an integral or unscoped enum value", and it is essential that i remains a float. How do I use a float as an exponent in c ?


points2one plugin subsitute for QGIS 3.4.4 version

Points2one plugin is not compatible with QGIS 3.4.4. It's quite useful for our works related to forestry. Is there any other substitute plugin or new upgrade version of points2one plugin?


Prove that the interval $(0,1)$ and the Cartesian product $(0,1)\times(0,1)$ have the same cardinality.

(Hint: Use the Schröder-Bernstein theorem.) I know I need to find two injective functions but I'm yet to find something that makes sense.


I have a variable:  var code = "de";   And I have an array:  var countryList = ["de","fr","it","es"];   Could someone help me as I need to check to see if the variable is inside the countryList array - my attempt is here:      if (code instanceof countryList) {         alert('value is Array!');     }       else {         alert('Not an array');     }   but I get the following error in console.log when it's run:     TypeError: invalid 'instanceof' operand countryList


I have to show that if $|z| < 1$, $z \in \mathbb{C}$, $$(1+z)\prod_{n=1}^{+\infty}(1+z^{2^{n}})= \frac{1}{1-z}$$  I want to understand how to do this kind of exercises, any hint ?


Having done a fair bit of contest- type math, I was interested in trying to write similar sorts of problems, only to find myself immediately stumped. How does one write "elegant problems" of the kind that are found in the IMO and comparable national mathematics olympiads? Is it a question of just investigating some simple system, finding an interesting problem and solving it, or does one somehow consciously design the "trick" to solving the problem beforehand?


How does one show that $\lim_{x\rightarrow\infty}\left(1+\frac{1}{x}\right)^x$ converges? I have a book that uses this to define $e$ but they don't show that it converges. I suppose we could give it an upper and lower bound but I don't know how to do this. I've seen this question before on here but I haven't seen an answer I like yet.


In Cursed Child, why do they use Voldemort's name instead of the Dark Lord?

In the alter universe where Scorpius goes, Voldemort has taken over the world.    Why then is everybody using his name? Even in the original series,   a. Death Eaters call him the Dark Lord b. They get angry at Harry when he uses the name Voldemort c. Under the assumption that everything up to the battle of Hogwarts remains more or less the same, they must've kept the taboo still working, since Ron and Hermione were still on the run, and (possibly) other members of the OOtP.  The third thing, I admit is just an assumption (a valid one I think), but what about the others?


Equivalence of two definitions of primary ideals

I read Prof. Goto's Notes in Commutative Algebra and I met a definition of primary module, like this:  "Suppose that $R$ is a Noetherian ring and $Q\in\operatorname{Spec}(R)$. Let $L\leq M$ be a $R$-submodule of $M$. Then we say that $L$ is a $Q$-primary submodule of $M$ if $\operatorname{Ass}_R(M/L)=\{Q\}$."  Also, the definition of $\operatorname{Ass}$ in these notes is:  "$\operatorname{Ass}_R M=$ $\{Q\in\operatorname{Spec}(R)\ \mid $ there exists an exact sequence $0\to R /Q \to M$ of $R$-modules$\}$"  I know the definition of primary module in Robert Ash's book, and I can show that under certain circumstances they are equivalent.  What I wanna ask here, is that whether the definition here is equivalent to the definition of primary ideals:  "An ideal $Q$ of $R$ is primary if $\forall$ $a,b\in Q$ s.t. $ab\in Q$, then $a\in Q$ or $b\in Q$"  In other words, the real question is:     Is it true that an ideal $Q$ is primary $\Leftrightarrow$ $\operatorname{Ass}_R(R/Q)=\{P\}$ for some $P\in\operatorname{Spec}(R)$?   I want to prove it's true with as few conditions as possible. But to make it simple, I assume $R$ is a Noetherian commutative ring and admit the primary decomposition of an arbitrary ideal. And this is how far I can go:  "($\Rightarrow$)  Suppose $Q$ is $P$-primary. We'll show that $\operatorname{Ass}_R(R/Q)=\{P\}$. Let $P_1\in \operatorname{Ass}_R(R/Q)$. Then $P_1=(Q:r_0)$ for some $r_0\notin Q$, now let $r\in P_1$, then $rr_0\in Q$ but $r_0\notin Q$, then $r\in \sqrt{Q}=P$, in other words $P_1\subset P$. We have $Q\subset (Q:r_0) \subset P$, then $Q=\sqrt{Q}\subset P_1=\sqrt{(Q:r_0)}\subset P$ or $Q=P$. So $\operatorname{Ass}_R(R/Q)\subseteq \{P\}$.  However, $\operatorname{Ass}_R(R/Q)\neq \emptyset$ since $R/Q\neq (0)$, so we have what we need.  ($\Leftarrow$)  Suppose $Q=\bigcap Q_i$ is a primary decomposition of $Q$, in which $Q_i$ is $P_i$-primary. It is sufficient to prove that $\operatorname{Ass}_R(R/Q)=\{P_1,...,P_n\}$. We have an exact sequence $0\to R/Q\to \bigoplus R/Q_i$ so $\operatorname{Ass}_R(R/Q)\subseteq \{P_1,...,P_n\}$. The other inclusion, unfortunately, is not immediate, and I need help in this part.  Other approaches would be fine. And if it's ok, can we eliminate more conditions to prove it. Thank you.


How to evaluate this (Fourier) integral?

Does somebody know how to evaluate $$\int_{\mathbb{R}^n}\frac{e^{i\langle\xi,x\rangle}}{\|\xi\|_2^2}d\xi$$ for some given $x\in\mathbb{R}^n$ and $n\in\{1,2,3\}$?


Java program works in Eclipse but not as a Jar file

I'm very new to programming and to learn something I made a simple auto clicker. My problem is that when I export it to jar using Eclipse or the command prompt the simulation of clicks doesn't work. It does load the GUI but when I press the button for it to start it doesn't start clicking at all. If you have any idea of how I might fix this, I would be very thankful for any help I can get.  Edit: Tried some things which was mentioned in the duplicate but it still doesn't work :/


Is age a hindrance of getting acceptance in a PhD program?  For instance, what if a student applies at the age of 45 for an admission?


Prove by induction of binomial coefficients

Prove using induction that the binomial coefficient $\binom nr$ is always a natural number for all $n$ and for $0≤ r ≤ n$   I tried proving it but i failed .what should i do?


Using awk to print part of one column plus additional columns

Good day. Using only Linux OS tools, how would you convert the following text from this: cat latest.csv apsga,alp1acscf0001vm001oam001p1n004v001,192.7.129.7,UVP apsga,alp1acscf0001vm001oam001p1n004v002,192.7.129.8,UVP apsga,alp1acscf0001vm002oam001p1n004v001,192.7.129.9,UVP apsga,alp1acscf0001vm003oam001p1n004v001,192.7.129.10,UVP apsga,alp1acscf0001vm004cif001p1n004v001,192.7.129.11,UVP apsga,alp1acscf0001vm004cif001p1n004v002,192.7.129.12,UVP apsga,alp1acscf0001vm005cif001p1n004v001,192.7.129.13,UVP  I managed to get the following result: cat latest.csv`|awk -F',' '{print $2, $3}'|awk '{ $1 = substr($1,1,21); print $1","$2}' alp1acscf0001vm001oam,192.7.129.7 alp1acscf0001vm001oam,192.7.129.8 alp1acscf0001vm002oam,192.7.129.9 alp1acscf0001vm003oam,192.7.129.10 alp1acscf0001vm004cif,192.7.129.11 alp1acscf0001vm004cif,192.7.129.12 alp1acscf0001vm005cif,192.7.129.13  I would like the end result to look like this: ALP1A/alp1acscf0001v,UUID,192.7.129.7,SSH2,alp1acscf0001vm001oam ALP1A/alp1acscf0001v,UUID,192.7.129.8,SSH2,alp1acscf0001vm001oam ALP1A/alp1acscf0001v,UUID,192.7.129.9,SSH2,alp1acscf0001vm002oam ALP1A/alp1acscf0001v,UUID,192.7.129.10,SSH2,alp1acscf0001vm003oam ALP1A/alp1acscf0001v,UUID,192.7.129.11,SSH2,alp1acscf0001vm004cif ALP1A/alp1acscf0001v,UUID,192.7.129.12,SSH2,alp1acscf0001vm004cif ALP1A/alp1acscf0001v,UUID,192.7.129.13,SSH2,alp1acscf0001vm005cif  Thanks in advance, Bjoern


What happens when a Polymorphed creature is reduced to 0 HP by Disintegrate?

Disintegrate and Polymorph both have effects that happen when the subject is reduced to 0 hit points.  Disintegrate says:     If this damage reduces the target to 0 hit points, it is disintegrated.   Polymorph says:      The transformation lasts for the duration, or until the target drops to 0 hit points or dies.   Which takes precedence? Does Disintegrate reduce the a Polymorphed target to dust first or does the creature revert to its regular form first?


Why can't routers use MAC addresses instead of private/local IP addresses?

I understand the reason public IP addresses are necessary to be that if we only had MAC to move data between one host and another, the entire Internet would be one massively flat network. But what is the need for private IP addresses? Why can't routers just connect to local clients using their MAC address?


Is there a term for the type of phrase being used in "far and wide"?

Can you categorise terms that use two related but possibly contrasting words together, to describe something like a totality? Two examples I can think of: "I searched far and wide" - meaning, you searched everywhere. "I looked high and low" - meaning, again, you looked everywhere. In both cases, the independent terms don't literally contribute to the final meaning, but you're putting these two terms together to make them more than the sum of their parts.


I can't make heads or tails of the following behaviour (please see comments in code)  for (int i = 0; i < 1000; i++) {     string debugString = String.Concat("Inside Action ", i);     Action newAction = new Action(() => { System.Console.WriteLine(debugString); });     Task.Run(newAction);        // outputs: 0, 1, 2, 3 (not always exactly in this order, but this is understandable because of async execution)      Action newAction2 = new Action(() => { System.Console.WriteLine("Inside Action2 " + i); });     Task.Run(newAction2);        // outputs: 1000, 1000, 1000, 1000, 1000 (...which is the value of i *after* the iteration, why?? "i" is a primitive int?!) } Console.ReadKey();   I don't understand the second behaviour. The variable i should be assigned to the Action as an Instance as the Action gets created. It looks like a pointer to i is created which has the value 1000 (last value of iteration) at the time the task is run...  Please explain. Thank you.


I need to trim trailing '0's from numbers such as 0.50, 0.40 etc. Any suggestions? Unable to use TRIM function in SQL Server.  I don't want to use convert(decimal(10, 1), number) since that will affect values such as '0.23' for ex.


Can you use "e.g." after you have listed something?       I've been busy trying to figure out training, WHMIS e.g.


Forest: parent node positioned incorrectly in relation to children

The tree below is produced by the code beneath it. In the tree, the parent node is slightly out of alignment. You will notice that the edges to its children are asymmetrical: the one on the left is slightly shorter than the one on the right.  I cannot figure out what is causing this—perhaps it is something to do with the use of nodeparts. How can I ensure that the parent node in this tree will be properly positioned to ensure symmetrical edges?    EDIT: Schrödinger's cat provided an answer which reminds me that I would like the solution to preserve the spaces between different levels of the tree in more complex trees, and to keep the separation between a parent and its child constant even if more branches are added.  For example, in the slightly more complex tree below the spacing between parent and children and between siblings is good, but the same asymmetry can be noticed between the root node and its children, and additionally the lowest node on the tree is connected to its parent by a slanted line when I would like it to be a straight vertical line.    \documentclass{article}  \usepackage{tikz} \usetikzlibrary{shapes.multipart, positioning}  \usepackage{xinttools}  \usepackage{forest}  \def\numname#1{%     \ifcase#1 \or one\or two\or three\or four\or five\or six\or seven\or eight\or nine\or ten\or eleven \or twelve\or thirteen\or fourteen\or fifteen\or sixteen\or seventeen\or eighteen\or nineteen\or twenty\fi% }  \newcounter{cellnum} \newcommand{\tape}[1]{%     \setcounter{cellnum}{1}     \xintFor* ##1 in {#1} \do {%         \nodepart[text width=1.5ex, align=center]{\numname{\value{cellnum}}} $##1$%         \stepcounter{cellnum}%     }     \addtocounter{cellnum}{-1}% }  \begin{document}  \begin{forest}     for tree={         delay={             content={\tape{#1}}         },         rectangle split,         rectangle split horizontal,         rectangle split parts=\value{cellnum},         rectangle split part align=base,         draw,         l sep=6ex,         s sep=2em,         edge path={             \noexpand\path[draw]              ([yshift=-2.5ex]!u.children) -- ([yshift=1ex].parent);         },         head/.style n args=2{             tikz={\node[below=0cm of .\numname{#1} south, font=\scriptsize]{$#2$};}         }     }     [111, head={1}{1}         [0111, head={1}{2}]         [111, head={2}{1}]     ] \end{forest}  \end{document}


Showing that $ \int_{10}^\infty \frac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)}dx$ diverge

Is it true that $  \displaystyle \int_{10}^\infty  \cfrac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)}dx$ diverge since $  \displaystyle \int_{10}^\infty  \cfrac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)}dx >   \displaystyle \int_{10}^\infty  \cfrac{e^x}{x^{1 + \frac{1}{x}}e^x }dx=\displaystyle \int_{10}^\infty  \cfrac{1}{x^{1 + \frac{1}{x}} }dx$  and $\displaystyle \int_{10}^\infty  \cfrac{1}{x^{1 + \frac{1}{x}} }dx$ diverges by $p$-test?


I am trying to install cuda-9 on ubuntu 18.04 but cuda-9 does not support gcc later than 6. If I do "sudo apt install gcc-6" or any lower version it says, unable to locate gcc-6.  Can somebody help me with this.


Let T be a tree with sub-trees which each set has a vertex in common - hence T has a vertex in all of its sub-trees?

The question is:  Let T be a tree with sub-trees $T_1,T_2,..,T_n$ such that all trees $T_i,T_j$ have a vertex in common which each set has a vertex in common - show that T has a vertex in all $T_i$.  The difficulty I am having is that if every subtree of T has a vertex in common say $T_4 \cap T_5 \neq \emptyset$ then $T_4 \subset T_5$ or the other way around.  Now if this is the case for all subtrees then they are just subsets of larger subtrees that are subsets of T, but since all subtrees have to have a vertex in common they would all have the root of T in common and hence T would have a vertex in all of its subtrees.    This doesn't seem right as we could form subtrees of T not containing the root node if there is more than one level to the tree.  Any thoughts?  Thanks,  Brian


Compute the product of cycles that are permutations of $S_8$

Here is the product of cycles. My textbook goes right to left multiplication. $$(1,4,5)(7,8)(2,5,7)$$  An observation here is that I don't think these cycles are disjoint and therefore they are not commutative. So far I have only done calculations with disjoint cycles so I wasn't sure how to handle this.   I calculated the permutation to be after writing the cycles out in table notation.  $$\sigma =  \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8\\ 4 & 1 & 3 & 5 & 8 & 6 & 2 & 7 \end{pmatrix} $$  However, if I inverse the process and split $\sigma$ into cycles, I get  $$(1,4,5,8,7,2)$$  Is it because I am not multiplying product of disjoint cycles that I am not able to inverse the equation? Am I just doing this completely wrong?


Block all internet connections unless connected to OpenVPN server

I want to block all internet connections unless I'm connected to my OpenVPN. Now of course, I need to allow connection to the VPN server.  Can this be done, by allowing out/in traffic to/from the VPN server ip, but have a drop all rule afterwards with iptables?  I tried to solution proposed by @tachomi, but I don't have internet connection, when the iptables rules are set. iptables-save states:  # Generated by iptables-save v1.6.0 on Wed Feb  3 00:53:32 2016 *filter :INPUT DROP [247:40343] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [153:25961] -A INPUT -s 127.0.0.1/32 -p tcp -j ACCEPT -A INPUT -s 127.0.0.1/32 -p tcp -j ACCEPT -A INPUT -s 127.0.0.1/32 -p udp -j ACCEPT -A INPUT -s 127.0.0.1/32 -p udp -j ACCEPT -A INPUT -s <VPN_SERVER_IP>/32 -p tcp -j ACCEPT -A INPUT -s <VPN_SERVER_IP>/32 -p udp -j ACCEPT -A OUTPUT -d <VPN_SERVER_IP>/32 -p tcp -j ACCEPT -A OUTPUT -d <VPN_SERVER_IP>/32 -p udp -j ACCEPT COMMIT # Completed on Wed Feb  3 00:53:32 2016


Your carbon footprint is the total carbon sum of your actions, be it when you travel, when you shop, when you eat, when you bathe - any action that uses up fossil fuels such as oil, coal or gas. []   What does "be it" mean in the above context. What can be use instead of "be it" there? I need some simple example to understand that usage of "be it".


CSS: How to make div fill remaining height inside of a flex-child

I have a flex container with flex children inside of it. In every flex-child there are 2 divs on top of each other, first one is with unknown height. I want to make the second div's height to fill the whole remaining height. Everywhere I look I see flex solution, but I don't know how to implement it since parent of the 2 divs is flex-child itself. The whole case is more complex, but I'll try to simplify code here:

     ...more flex children...
  And putting ".auto-height" div inside ".i-want-this-one-to-fill-remaining-height" is not an option at this moment. Please help :) Thank you! EDIT: I've made a full Fiddle:  EDIT-2: Solved! Thank you for your suggestions! Here's the fiddle with the solution:


Proper yes/no answer to a question posed in negative form

Should the question, "Does anyone not understand this?" be answered yes or no, if one does understand?


I want to get user and user's territory information. After i search, i found that user information in user Table. territory information in Territory Table. but, the relationship in UserTerritory Table. But, from the apex guide,i found that UserTerritory Don’t Support DML Operations. So, i can not get the information. So, Does anyone knows that how to write this soql or would you please give some idea to address this issue.   Many thanks


It is usually said that the points on the surface of the  represent the pure states of a single 2-level quantum system. A pure state being of the form: $$ |\psi\rangle = a |0\rangle+b |1\rangle $$ And typically the north and south poles of this sphere correspond to the $|0\rangle$ and $|1\rangle$ states. Image: ("Bloch Sphere" by Glosser.ca - Own work. Licensed under CC BY-SA 3.0 via Commons - )    But isn't this very confusing? If the north and south poles are chosen, then both states are on the same line and not orthogonal anymore, so how can one choose an arbitrary point $p$ on the surface of the sphere and possibly decompose it in terms of $0,1$ states in order to find $a$ and $b$? Does this mean that one shouldn't regard the Bloch sphere as a valid basis for our system and that it's just a visualization aid? I have seen decompositions in terms of the internal angles of the sphere, in the form of: $a=\cos{\theta/2}$ and $b=e^{i\phi}\sin{\theta/2}$ with $\theta$ the polar angle and $\phi$ the azimuthal angle. But I am clueless as to how these are obtained when $0,1$ states are on the same line.


How to highlight (color/draw attention to) a particular snippet in Minted

I'm currently doing some work on error messages in programming languages. As such, I'm showing faulty pieces of code, alongside the compiler-errors accompanying them.  I'm using minted for the code snippets, but ideally, in addition to normal syntax highlighting, I'd like to highlight the sections of the code at which the error is located, by underlining them, putting a red box around them, shading their background, etc.  Is this possible using Minted?


I'm running QGIS 2.6 on a Mac, and trying to create buffers around a point shapefile. The process seems to work: (Vector>Geoprocessing Tools> Buffer(s), I select my input layer, leave the segments at 5, and set the distance, create a new output shapefile in the same folder as the input layer, and set the new layer to appear.  A layer IS created, but it's an ovoid ellipse that is massively too large - when I set it for '500 metres', it came out covering most of Eurasia and Africa! I tested the settings, and to at '0.01 metres', it produced an ellipse measuring approx 1200x1450 metres.  What is causing this, and how do I fix it? I wonder if it's related to the co-ordinate system I'm using, as the project is WGS84-PseudoMercator and the input shapefile is WGS84 (I didn't intentionally make them different).  Any help gratefully received! Adam


Postfix acting like an open relay for domain mailboxes

I have a mail server running on Debian 7.8 configured with postfix 2.9.6.  My restrictions are these:  smtpd_sender_restrictions = reject_sender_login_mismatch, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unlisted_sender, permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks #smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre smtpd_client_restrictions =  permit_sasl_authenticated, permit_mynetworks smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination   The problem is that alias an email can send mails to internal user without auth  Examples (all request are made with auth off in client and NOT from localhost):  alias@example.com -> alias@example.com --> Mail sent alias@example.com -> mailbox@example.com --> Mail sent someuser@anotherexample.com -> alias@example.com --> Mail sent someuser@anotherexample.com -> mailbox@example.com --> Mail sent mailbox@example.com -> alias@example.com --> Sender address rejected: not logged in mailbox@example.com -> someuser@anotherexample.com --> Sender address rejected: not logged in someuser@anotherexample.com -> someuser2@anotherexample.com --> Relay access denied alias@example.com -> someuser@anotherexample.com --> Relay access denied   Where mailbox is any of the virtual user in the database  Any idea? Thank you!


I am trying to install Anaconda on my Ubuntu 20.04.  I downloaded the installer on the . Then I run the command:  sudo ./Anaconda3-2020.02-Linux-x86_64.sh    And followed the steps in the CLI installer. I set up the installation directory as /home/myuser/Programs/anaconda3. At installation finished I closed and opened back the terminal as suggested, but running conda --version I get:     conda: command not found   How to verify the correct installation of Anaconda? What did I do wrong? Note: I also restarted the OS, the result does not change.


Convergence of $\sum_{n=1}^\infty \frac{n^2}{2^n}$

I have to decide whether the Series $\sum_{n=1}^\infty \frac{n^2}{2^n}$ Converge or Diverge only by using the Comparison test or by $\frac{1}{n^p}$ test.  What I noticed is that it converges by the De'lamber test ($\lim_{n\to \infty}\left|\frac{a_{n+1}}{a_n}\right|$).  But I'm having trouble finding a way proving it with the provided tests.  Would appreciate your advice


Why is usb file transfer so slow in 12.10?

I was getting the usual 4-8mbps in 12.04 when copying files via usb sticks. However after upgrading to 12.10, I only get 200-300kbps when I try to perform the same operation.   I have tried different usb sticks (which work flawlessly on Windows 7) and still experience the same issue. I experienced the same issue sometime ago on 11.10 but everything was normal when I upgraded to 12.04 so it might be a kernel issue.  Here's the output of dmseg |tail:      mysterio@mysterio-HP-Pavilion-dv6700-Notebook-PC:~$ dmesg |tail   [  871.023093] sdb: sdb1  [  871.026909] sd 5:0:0:0: [sdb] No Caching mode page present  [  871.026920] sd 5:0:0:0: [sdb] Assuming drive cache: write through  [  871.026927] sd 5:0:0:0: [sdb] Attached SCSI removable disk  [ 1036.226206] ISO 9660 Extensions: Microsoft Joliet Level 3  [ 1036.233561] ISO 9660 Extensions: RRIP_1991A  [ 1086.342973] ISO 9660 Extensions: Microsoft Joliet Level 3  [ 1086.343010] ISO 9660 Extensions: RRIP_1991A  [ 1173.971357] ISO 9660 Extensions: Microsoft Joliet Level 3  [ 1173.971441] ISO 9660 Extensions: RRIP_1991A   I have updated my system with the latest updates. What could be wrong?


Derogatory term for people from places like San Francisco

I'm looking for a derogatory term for people from liberal metropolitain areas who think they are better educated and more enlightened than those from rural, conservative areas.   Carthage, TX is to redneck as San Francisco, CA is to ______________.  EDIT:  In response to comments below, I feel I must add that I do not believe the people of SF "think they are better educated and more enlightened than those from rural, conservative areas."   If I did believe that, I wouldn't be asking this question now would I? BECAUSE I WOULD KNOW ALL THE DERAGATORY TERMS.


This is NOT a question based on aiming problems, it is another intrinsic bug that I seek the solution to.  Whenever I equip a bow and shoot (any type of arrow), even with a full charge, the arrow leaves the bow, only to land just a few inches away from my face. It has made bows quite useless in my game, as the arrows fired drop down as soon as they leave the bow. (This problem is on vanilla, i.e. NO MODS USED)  I completed the game, without even picking bows once, and thus did not notice the bug until now. Restarting the game sometimes fixes the issue, but is not a permanent solution. I have tried the unofficial patches and have updated syrim to its latest version, so it is not mended that way. Anyone up with a solution?


Probably this was already answered. But I did not find it. How can I use verbatim inside \newcommand{} or \begin{environment}...\end{environment}. In my MWE, the last two lines produce errors.  \documentclass{article}  \newcommand{\FIXME}[1]{#1} \newcommand{\FIXMA}[1]{\verb+#1+}  \begin{document}     \noindent     \verb+test test test+ \\     \FIXME{test test test}     \FIXME{\verb+test test test+}     \FIXMA{test test test} \end{document}


Radius of convergence powers series s.t seriex $ \sum |a_n| $diverges

[UGC-CSIR-NET 2014 December]     Let $\{a_n:n\ge 1\}$ be sequence of real numbers such that the series   $\sum a_n$ converges and the series $\sum |a_n|$ diverges. Let $R$ be   the radius of convergence of the power series $\sum a_n x^n$; then   which of the following is true.         $0\lt R \lt 1$   $1\lt R \lt \infty$   $R=1$   $R=\infty$      In this question, I am a little confused regarding the role of the series $\sum a_n$ in its power series $\sum a_n x^n$ in earlier questions that I have faced, I find the radius of convergence of absolute version of coefficient of power series, where absolute version converges for those 'x' values origional power series also converges. Is that right?  But as we see here absolute version diverges, so what does it imply we can't use ratio, root test etc to find radius of convergence here?


Rewrite the field label text on node dispaly

I created a content type.  In the content type I have field called ingredients. Machine name is "field_ingredients".  When a user see the output of the node (not in form and not in views), the label is: "ingredients:". I want the remove the ":" or even change the label to something else.  How can I do that?  I tried the "preprocess_node" function, but it didn't succeed.


Why does the SSR have 1 degree of freedom in simple linear regression?

I understand degrees of freedom as the number of things that can independently change.  And typically, in coming up with the degrees of freedom, if you have n terms, then you just subtract out the number of things which aren't independent (the typical example being the n-1 degrees of freedom in the sample variance).  My problem is that I'm not quite seeing how the SSR degrees of freedom (simple linear regression) is just "1" using the previous way of thinking about it.  After a little bit of algebra, I can transform it as:  $SSR=\sum_{i=1}^{n}\left ( \hat{y}_i-\bar{y} \right )^2=\sum_{i=1}^{n}\left[\hat{\beta}_0+\hat{\beta}_1x_i- \left(\hat{\beta}_0+\hat{\beta}_1\bar{x} \right) \right]^2=\hat{\beta}^2_1\sum_{i=1}^{n}\left(x_i-\bar{x} \right )^2$  And, I do see that my $\hat{\beta}_1$ is the only estimator (hence one degree of freedom?), however, I'd like to be able to understand this in a similar context of how I understand the n-1 degrees of freedom of the sample variance, namely "adding up n terms, subtracting out the number of terms that aren't independent" to somehow get 1.


Run script with arguments as sudo without being asked for password

I have two programs in Java that I'm calling from bash script:  java program1 arg ... arg sudo java program2 arg ... arg   I want to run program2 as sudo without being asked for password. I'm aware of sudoers file, but I'm not sure how to configure it to run java programs as sudo without being asked for password. Any thoughts?


How can I objectively check my search engine ranking?

When I search on Google my companies website its rank gets distorted on my computer through previous searches, my location etc. I use private mode in my browser, but I think this is still not an accurate search.  I found some sites online that seem to check the ranking for me, but the ones I found all seem a little bit sketchy. So, how can I objectively check my search engine ranking for certain keywords?


How do I detect if players have sufficient EXP levels?

I want to make an XP shop but I'm not sure about how to detect if people have sufficient XP Levels.  Can anyone help me?


The number of real solutions of the equation $\cos(\cos(\cos(\cos(x)))) = \sin(\sin(\sin(\sin(x))))$

The number of real solutions of the equation $$\cos(\cos(\cos(\cos(x)))) = \sin(\sin(\sin(\sin(x))))$$ (I have no clue to solve this problem)


Is it possible to travel at the speed of light?

I'm asking this question because atoms can definetely not travel at the speed of light. Atoms have electrons orbiting them at a speed very close to the speed of light, so, is it really possible for anything(macro objects) to travel at the speed of light? P.S. : Is there any word for this condition where an atom loses electrons due to translatory motion?


Using nofollow when crosslinking my own sites

I have 20 sites in the same domain, different niches and I want to interlink them for USER EXPERIENCE. I want to know from someone who tested this:  Will using a nofollow attribute for the links keep the sites safe from google link scheme penalties?


Different behaviors between find -exec and piping through xargs

I wanted to recursively run chmod go+w in a particular folder including hidden files, and I first tried find . -name ".*" -o -name "*" -exec chmod go+w {} \;  but I found that it wasn't affecting hidden files. To check myself, I ran just find . -name ".*" -o -name "*"  and the hidden files were listed. I also noticed that if I excluded the -o -name "*" part it would chmod the hidden files (but exclude non-hidden of course). My last attempt was to use xargs instead find . -name ".*" -o -name "*" | xargs chmod go+w  which finally worked as expected. What am I doing wrong in the first snippet?  Red Hat Enterprise Linux Server release 6.8 (Santiago) GNU bash, version 4.3.42(1)-release (x86_64-unknown-linux-gnu)


What I know about Java's garbage collector is that it handles everything needed, but my concern is efficiency.   Some other languages, like Python — as far as I know —, can help the garbage collector by actually doing this:   objectReference = none   Does this works in Java, in such a way the programmer can almost free Heap memory in a efficient way by assigning variables to null? If yes, how efficient is this, compared to C's manually freeing memory with the free() function?


Letting user choose from 2 options for QGIS Processing script input parameter?

I want to make a drop down box that shows 2 or 3 options and let the user choose 1 from them?  I would like to let the user to choose from "millimeter", "centimeter" and "meter". These Options are not from the field of input.  It seems like none of them here is valid:


Do I center an already transformed variable?

My chair would like me to center my data for my hierarchical multiple regression, including several moderators and interaction effects. It seems recommended to do this, if not to help minimize multicollinearity, but additionally (and more crucially) to help with interpretability of my interactions. However, where I am uncertain is regarding what to do with some variables I had already thought to transform due to problems with skewness. Do I center these variables? I feel like that might mean transforming them, in essence, twice, but remain unsure. If I don't transform them, how can I use them in an interaction with a centered variable?


Do-While loop not receiving variable value

I am coding a little program that prompts the user to enter in a password, if the user enters the incorrect password, then the program will keep prompting the user to enter in the password. Once the user enters in the correct password, then the program exits. I created a do-while loop to keep looping until the correct password is entered, but when the correct password is entered, the program continues to loop and does not exit. The variable value does not seem to reach the while clause of the program. Can someone please show me where I am going wrong? My code is as follows:      import java.util.*;     import javax.swing.*;      public class do_whilePassword     {  public static void main ( String [] args ) {    String choice = "";       do         {             choice = JOptionPane.showInputDialog("Please enter in a password");          }while(choice != "John" );  } }


SIMILE HELP: Gripping the wheel tightly like

I need an expression to be a simile to gripping the wheel of a car tightly.


How do I prevent "I attack with Fight" and "I attack with Shoot"-type brief declarations?

One thing I like about FAE is that attacks and defenses have to go beyond "I attack them with Fight."/"I defend with Fight." to justify using an approach or the other. Merely providing an adverb adds to the story.  The problem with Fate Core's Fight and Shoot, I feel, is the same as D&D's. No declarations beyond the "push button to attack" are necessary, and it feels dry unless there's incentive on the players to go further, and since my players are new (and a D&D session failed partially because of the lack of descriptive incentive) I need help with boring, brief declarations like the ones in the title in Fate Core.


t.test returns an error "data are essentially constant"

R version 3.1.1 (2014-07-10) -- "Sock it to Me" > bl <- c(140, 138, 150, 148, 135) > fu <- c(138, 136, 148, 146, 133) > t.test(fu, bl, alternative = "two.sided", paired = TRUE) Error in t.test.default(fu, bl, alternative = "two.sided", paired = TRUE) :  data are essentially constant   Then I change just a single character in my fu dataset:  > fu <- c(138, 136, 148, 146, 132)   and it runs...  > t.test(fu, bl, alternative = "two.sided", paired = TRUE)      Paired t-test   What am I missing here?


Simple programs with tutorials for beginners in graphic design?

I am considering a summer job in a camp, but part of the job description is to make signs, announcing events/trips etc.  This is well within my ability to do, but I'm not sure where to start. I am fairly good with computers, but currently lack the knowledge to do what I need to do.  I could use Microsoft Word/WordArt, but I think they're looking for something more professional. (Who can't use WordArt??)  Therefore, I ask:   What tools/programs are suitable for beginners and powerful/flexible enough to produce quality signs? Where can I find (preferably free!) courses in both graphic design in general and sign-making in particular (i.e., not web-design, CAD, or 3D imaging. I'm not up to those... yet) What books should I read? Any tips for the beginner?


I guess I removed some files that package jetty required because when I try to remove it with apt-get remove jetty I get this:  Removing jetty ...  * jetty is not installed invoke-rc.d: initscript jetty, action "stop" failed. dpkg: error processing jetty (--remove):  subprocess installed pre-removal script returned error exit status 1  * jetty is not installed invoke-rc.d: initscript jetty, action "start" failed. dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  jetty E: Sub-process /usr/bin/dpkg returned an error code (1)   So how can I remove it?


Let $A$ and $B$ be $n\times n$ matrices. Let $\operatorname{rank}(A)=s$ and $\operatorname{rank}(B)=t$. Then rank of $A+B\ge\cdots$

$\newcommand{\rank}{\operatorname{rank}}$Suppose $A$ and $B$ are $n\times n$ matrices. Let $\rank(A)=s$ and $\rank(B)=t$. Then rank of $A+B$ is at least .............. My attempt  $\rank(A)=s$  $\implies$ $A$ has $s$ linearly independent $n\times 1$ column vectors. Let it be $\{x_1,x_2,\ldots,x_s\}$  $\rank(B)=t$  $\implies$ $B$ has $t$ linearly independent $n\times 1$ column vectors. Let it be $\{y_1,y_2,\ldots,y_t\}$   How do I complete the question?


So the rules of Monopoly state that you can't buy a house if there are no houses left for sale. You can't even pay all at once and buy a Hotel if there aren't enough houses to place 4 on the property first. But, what happens if you have a hotel in a property, all the houses are gone, and you want to (or are forced to) sell your hotel? I'm guessing that you are forced to go ahead and sell the hotel and all 4 houses at once?


Who was in the room in the X-Men Mansion?

When Deadpool is in the hallway talking      he makes a joke about Fox springing for a few more X-Men and the camera pans to show Beast closing the door to get rid of the noise.   Who else was in the room?


Store passwords of Linux users in plain text - on purpose

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access.  I did think it would be enough to change for each user the x in the second column of /etc/passwd, but this does not work.


Ban for 5 years.. accused of using false documents

Am I able to apply for a marriage visa in Germany after being banned for 5 yrs?? Do I have a chance to enter Germany if I get married in my country?   I am banned for 5 years after being accused of false documents and working illegally. There is no proof but the decision was made after I refused to meet the police.


I want to make the year '2020' out of coronavirus cells... how can I do it?

I've already made the coronavirus cell.  There is no way that I am going to tediously move every single cell to create the shape of the numbers that'll take forever! Is there some way I could make the year '2020' 3D, turn the numbers into invisible containers and then 'pour' the cells into them? Or could I make the 3D numbers invisible and somehow make all the coronavirus cells stick to them as if they are magnets? Ideally, I would like the coronavirus cells to look as though they have gathered together, like a swarm of bees, to create the shapes of the numbers in the year 2020. Is this doable? It's not for an animation, it's for a still image.


What did we learn by detecting a gravitational wave?

In February 2016 the LIGO team announced that they had detected gravitational waves on 14 September 2015. As far as I know, we already knew that gravity propagates at the speed of light. So two black holes orbiting each other and about to merge would produce the results observed. I don't see how that tells us anything new about the nature of gravity, or maybe I'm missing the point of the experiment. What did we actually learn from this experiment?


If $F^p = F$ and $E/F$ is algebraic, then $E/F$ is separable and $E^p = E$ : Corollary V.6.12 from Lang's *Algebra*

This is from Lang's Algebra (page 251)     Proposition 6.11 Let $E/F$ be a normal field extension. Let $E^G$ be the fixed field of $\operatorname{Aut}(E/F)$. Then, $E^G$ is purely inseparable over $F$ and $E$ is separable over $E^G$.   And below is a corollary of this theorem:     Corollary 6.12. Let $F$ be a field with characteristic $p\neq 0$ such that $F^p=F$. Then, every algebraic extension $E$ of $F$ is separable and $E^p=E$.   How this is a corollary of the above theorem?  Lang states that "Every algebraic extension is contained in a normal extension, so Proposition 6.11 can be applied to get this", but how?  Let $E$ be an algebraic extension of $F$. Then, there is a field extension $L$ of $E$ such that $L/F$ is normal.  Let $\phi\colon F\to F:a\mapsto a^p$.  Then, by hypothesis, $\phi$ is a field automorphism of $F$.  Then, $\phi$ can be extended to a field monomorphism $\sigma \colon \bar F \to \bar F$, but since $\phi$ is not fixing $F$, I don't get what this has to do with Proposition 6.11.  These are what all I know. How do I proceed to prove the corollary?


Get data after "?" in URL, Django template

I have a URL in the following format.  And I need to "parse" the "/event/contract-risk-management/review/" part from it in templates, but I don't know how to get the part after question mark. I tried request.path but it returned only the first part of the URL (without a domain). What should I use?


How to Duplicate a Ubuntu System for Distribution?

I have installed Ubuntu on a 32GB USB and set it up like I want, Installing some programs and removing others. I have added custom wallpaper and splash screen. How can I duplicate my modified OS and GMail it using Google Drive, (10GB limit), to friends and family for Christmas? It should be able to run on any modern x86-64 computer that meets Ubuntu hardware specifications. It should be uninstallable using Rufus, Etcher, mkusb and Gnome-Disks. I would also like to be able to install it from a USB stick. I have heard of and tried Remastersys, ISORespin, Ubuntu Customization Kit and Systemback, but now these all seem to be abandoned now. Sometimes I work in VirtualBox and would like to be able to distribute the OS's I create there also.


I'm doing a simple lab (I'm a hobby EE) to reinforce my ohm's law math and learn a little about how to do proper measurements with a multimeter.  I have simple circuit with a 2.2k ohm resistor connected in series with an LED. Everything works fine up to the point I go to calculate voltage drop across the resistor and LED.  My initial calculations only accounted for the 2.2k ohm resistor. As such I got the full voltage dropped across the resistor. However, when I measured the circuit for real I found the result to be nearly half of the input voltage, which would indicate to me   My math is wrong There's resistance left unaccounted for   The only thing left to account for is the LED. What is the best method for determining the resistance of a simple LED? I tried doing what I do with resistors (hold it up to the probes with my fingers) but I don't get a proper reading. Is there a technique I'm missing here?


Why have I lower resolution in text mode than in math mode? Is it normal or some packages are missing?


Finding the value of $1.1^{82}$ using $(1+x)^{82}$ to a certain accuracy

I found this question in a book.   How many terms of the Maclaurin expansion of $(1+x)^{82}$ are needed to guarantee finding a value of $1.1^{82}$ to an accuracy of $10^{-6}$?  This is how I tried to do it:  We want the Lagrange error to be less than $10^{-6}$:  $$R_{n}(0.1)<10^{-6}$$  Now to find $R_{n}(0.1)$:  $$R_{n}(0.1)=\frac{f^{(n+1)}(0.1)\cdot0.1^{n+1}}{(n+1)!}$$  After writing the values of ${f^{(n+1)}}(x)$, I find a pattern and say that  $${f^{(n+1)}}(x)=\frac{82!}{(82-n)!}(1+x)^{82-n}$$  $${f^{(n+1)}}(0.1)=\frac{82!}{(82-n)!}(1.1)^{82-n}=\frac{82!(1.1)^{82-n}}{(82-n)!}$$  Now just substitute all of this back to $R_{n}(0.1)<10^{-6}$:  $$\frac{\frac{82!(1.1)^{82-n}}{(82-n)!}\cdot0.1^{n+1}}{(n+1)!}<10^{-6}$$  Great! Now I have an inequality that I can solve. I can't graph this so I just use trial and error (which seems like quite an intensive way to do it, so if anyone has a better way I'd love to know).  $$\frac{\frac{82!(1.1)^{82-n}}{(82-n)!}\cdot0.1^{n+1}}{(n+1)!}-10^{-6}<0$$  This seems to work first for $n=28$. That means the highest power of $x$ that I need is 28, so the number of terms in the expansion needs to be $n+1=29$. But the book's answer is       30   What am I doing wrong here? I'm still quite new to the power series expansions so if there's anything unclear in my working, please let me know (also, as a side note, the book itself may be wrong, though that isn't very likely I'd assume).


Poor question with an accepted invalid answer

I can't see how  question and the accepted answer will help any future visitors. The tags are wrong, the question is poor, and the answer is in C# while the OP asked for a VBA solution. The provided link will not translate the code into VBA. I flagged it but its been declined. And on top of that . The answer has been accepted but it does not solve the problem.  Is there anything we are going to do about it or not? case: yes - no further explanation needed case: no - please explain to why


After hitting a few StackOverflowExceptions in .NET I noticed they completely bypass the unhandled exception handlers that .NET offers (Application.ThreadException / AppDomain.UnhandledException). This is very disturbing since we have critical cleanup code in those exception handlers.  Is there any way to overcome this?


Number or regions formed when $n$ points on a circle are joined

The maximum number $R_{n}$ of regions formed when $n$ points on a circle are joined in pairs is $\frac{1}{24}\left(n^{4}-6n^{3}+23n^{2}-18n+24\right)$.  This is a fact that I have read in several essays on the dangers of jumping to conclusions in mathematics.  In your opinion, what's the quickest (and/or nicest) way to prove this formula?  Professor  explains somewhere an especially convincing way to tackle this pearl following an idea which a certain high schooler in one of his talks (lectures?) came up with; yet, I don't remember  where it was that I actually read this...  Let me thank you in advance for your insightful replies.


I simply know that a single free quark does not exist. What is the reason that we can not get a free quark?  If we can't get a free quark then what is single-top-quark?


Force a browser to load the 'https' edition of a website, not the 'http'?

This is similar to , but I believe it's a bit different*.  Sites like GMail support a preference that pushes all traffic through the SSL edition of the site rather than the plain-text protocol.   For sites that don't offer such preferences (or ones that may, but I have been unable to find, like facebook), is there a way using only the browser (perhaps with a plugin or addon) to always try SSL first, and fall-back to plain-text iff SSL fails?  Is that solution available on Windows, Mac OS X, and Linux? Just one?     * The previous question was looking for external applications that would accomplish this goal.


Why can all derivatives be done, but not all integrals?

Someone said to me today:     You can solve any derivative using your standard derivative techniques like the product rule or chain rule, but you cannot solve every integral   Of course referring to derivatives that exist.  Is it true that I can do any derivative using my standard techniques? Why can't I do any integral with my standard techniques for integration? What's stopping me?


How can I use WordPress functions in my stylesheet?

I have my style.php file looking like this.  <?php  header('Content-Type: text/css');?> #div{     background:<?php  echo get_option('bgcolor');?>; }   This does not work, but when I do this it works.  <?php  header('Content-Type: text/css');?> #div{     background: <?php  echo 'blue';?>; }   What would be the problem?  This is the mainfile.php   <?php       function test(){     global get_option('bgcolor');?>          <input type="text" id="bgcolor" name="post_popup_settings[bgcolor]" value="<?php echo get_option('bgcolor');?> " />     <?php }     add_action('admin_head','test');   This is actually in the admin section.


Here is the expression:     $$2(\sin^6x + \cos^6x) - 3(\sin^4 x + \cos^4 x) + 1$$   The exercise is to evaluate it.  In my text book the answer is $0$ I tried to factor the expression, but it got me nowhere.


When I insert media (e.g. an SD card) the system (Ubuntu 12.04) reads the partition table and creates all the /dev/*[1234] links to each partition. If I repartition the media I have to physically remove and reinsert it to update these links. Is there a command to force this to happen without me having to remove and reinsert the disk?


From Mavericks to Snow Lion: how to get back?

I upgraded from Snow Lion to Mavericks and just found out that I can't sync my address book and calendar between my iMac and iPhone (3GS) using iTunes. I'm not using iCloud and not willing to use it either. All my data files (from Mail etc.) are also "upgraded" to Mavericks. Is it possible to reinstall Snow Lion and use Time Machine to place all date files back or am I going to be in trouble here?  Added: I meant Mountain Lion (in stead of Snow Lion -- sorry ;-))


How to eliminate Cycles artifacts with many overlapping volumes?

I have encountered an issue with Cycles Volumetrics in a recent scene. I am using Blender 2.72, and both CPU and GPU render options. In both I get a solid black artifact when I have two volumes overlapping, as in this campfire smoke test:    I have a solid cube, with a volume scatter and volume absorption material, duplicated by a particle system. As you can see, when the particles get higher up and farther apart, and are no longer overlapping, the artifacts disappear.


How does the use of definite article when proper noun abbreviations are involved depend on the noun's function in the sentence?

I know that in general, the definite article "the" does not usually precede proper nouns:  Verizon introduced two new phones today (not "The Verizon")  but it gets trickier when the proper noun is an abbreviation that stands for a phrase that would require preceding with "the", if it were stated in an unabbreviated form.  "BBC added two new shows" vs. "The BBC added two new shows" (British Broadcasting Corporation) "MBTA added two new trains" vs. "The MBTA added two new trains" (Massachusetts Bay Transportation Authority) "Caltrans added two new exit ramps" vs "The Caltrans added two new exit ramps" (California Department of Transportation) "Win32 API added two new functions" vs "The Win32 API added two new functions" (Windows 32-bit API) "WinAPI added two new functions" vs "The WinAPI added two new functions" (Windows API) "DOD added two new aircraft carriers" vs "The DOD added two new aircraft carriers" (Department of Defence) "NATO added two new offices in Poland" vs "The NATO added two new offices in Poland" (North Atlantic Treaty Organization) "NYPD added two new task forces" vs "The NYPD added two new task forces" (New York [City] Police Department)  Can anyone help provide guidance for which form to use, depending on how it is used? As far as I can tell:  Subject -- not sure; see my examples above Direct object -- not sure (example: "I love NYPD" vs "I love the NYPD") but "the" sounds better Indirect object -- not sure (example: "Someone gave NYPD two new cars" vs "Someone gave the NYPD two new cars") but "the" sounds better Adjective forms -- do not use "the" (example: "Two NYPD officers", "I like MBTA trains") Object of a preposition -- not sure (example: "Two officers from NYPD" vs "Two officers from the NYPD"; "Two functions in WinAPI" vs "Two functions in the WinAPI") but "the" sounds better When the noun is pronounceable like "Caltrans" or "NATO" then it sounds wrong to add "the" in front of it


How can I show that $\int_{-2}^{2}(x^3\cos(x/2)+1/2)(\sqrt{4-x^2})dx=\pi$? The graph of the function is given below:


I have an auto launched flow that I would like to just ignore the errors of if they occur. I currently have several fault connectors going to a dummy assignment. However I keep receiving error emails which is what I am trying to avoid.


Will a bullet dropped and a bullet fired from a gun horizontally REALLY hit the ground at the same time when air drag is taken into account?

In a world without air, I understand they definitely would. However, with drag taken into account, I think they wouldn't. Since the drag force varies proportional to the square of speed (ignoring the change in coefficient of drag with speed), wouldn't the total impulse due to drag on a bullet fired from a gun from a specific height horizontal to ground be higher than the total impulse on an identical bullet dropped from the same height with no horizontal velocity?  Also, when bullet spin is taken into account, the bullet fired from a gun should resist change in orientation; therefore, it should maintain a small but non-zero angle of attack, and also have a lift force, correct?


Is the extension $\mathbb{Q} \left( \sqrt{2}, \sqrt{3}, \sqrt{5} \right)$ simple?

Context: The book Galois Theory by Ian Stewart, 4th edition, Chapter 5, Exercise 5.7.  Is the field extension $\mathbb{Q} \left( \sqrt{2}, \sqrt{3}, \sqrt{5} \right)$ of the field $\mathbb{Q}$ of rational numbers a simple extension?   That is, is there an real number $\alpha$ such that  $$ \mathbb{Q} ( \alpha ) = \mathbb{Q} \left( \sqrt{2}, \sqrt{3}, \sqrt{5} \right)? $$  Of course, we can show that  $$  \mathbb{Q} \left( \sqrt{2} + \sqrt{3} + \sqrt{5} \right) \subset \mathbb{Q} \left( \sqrt{2}, \sqrt{3}, \sqrt{5} \right) . $$ Am I right?  Can we also show that  $$  \mathbb{Q} \left( \sqrt{2},  \sqrt{3}, \sqrt{5} \right) \subset \mathbb{Q} \left( \sqrt{2} + \sqrt{3} + \sqrt{5} \right)? $$  Or, is there a way of conclusively proving that showing this is not possible?  Is there a way of showing using some other technique that this extension is or is not simple?


why comparing empty object directly showing false?

I was checking in my console. When i checked empty object directly like {} == {} , it show false.  Why it's showing false ? shouldn't it show true as both are equal ?


How do I prove, that $\!C = \{f:\mathbb{R} \Rightarrow \mathbb{R}\mid f \space \text{ continuous}\}$ is equinumerous with $\mathbb{R}$?

We have $\space \!C = \{f:\mathbb{R} \rightarrow \mathbb{R}\mid f \text{ continuous}\}$. How do I go about proving that it is equinumerous with $\mathbb{R}$?


Approve/Reject many Records at once via Apex

I have an idea of approving/rejecting multiple records via apex. I read from  and I was able to approve/reject many records at a time.  My problem is that I used for loop for approving all of the records, which caused an error of Too many SOQL queries (which happened because each record(Account) is connected to 2 triggers and I used like 100 records for testing)and having the process caused the triggers to run once for every record.  Is there a way to approve/reject multiple ProcessWorkitemRequests at once? (like maybe putting them first in a list before using DML statements)  Here is my code:  Set<Id> accIds = (new Map<Id, Account>([SELECT Id FROM Account])).keySet(); Set<Id> pIds = (new Map<Id, ProcessInstance>([SELECT Id,Status,TargetObjectId FROM ProcessInstance where Status='Pending' and TargetObjectId in :accIds])).keySet(); Set<Id> pInstanceWorkitems = (new Map<Id, ProcessInstanceWorkitem>([SELECT Id,ProcessInstanceId FROM ProcessInstanceWorkitem WHERE ProcessInstanceId in :pIds])).keySet();  for (Id pInstanceWorkitemsId:pInstanceWorkitems){     system.debug(pInstanceWorkitemsId);         Approval.ProcessWorkitemRequest req2 = new Approval.ProcessWorkitemRequest();         req2.setComments('mRequest.');         req2.setAction('Reject');         req2.setNextApproverIds(new Id[] {UserInfo.getUserId()});          // Use the ID from the newly created item to specify the item to be worked         req2.setWorkitemId(pInstanceWorkitemsId);          // Submit the request for approval         Approval.ProcessResult result2 =  Approval.process(req2); }


Table of contents looks bad with package chngcntr

I'm using the package "chngcntr" to restart the chapter count in each part of my work. It's working just fine. However, in the table of contents, the chapters and all other sections numbers overlap the text. It's look awful. Does anyone knows how to solve this problem?  Thank you,  Pedro


We did a scan on our web page for vulnerabilities. We received a critical Blind SQL injection in the following query. I am using the prepared statements. What else I can do to prevent SQL Injection attack? Please let me know. Here is my example code. I appreciate any suggestions.  $first_name = $_POST["first-name"]; $middle_name = $_POST["middle-name"]; $last_name = $_POST["last-name"];  $qry = $pdo_conn->prepare('INSERT INTO table1(first_name, last_name, middle_initial) VALUES (?, ?, ?)'); $qry->execute(array($first_name, $last_name, $middle_name));


Evaluate the sum: $\sum\limits_{n=0}^{\infty} \frac1{F_{(2^n)}}$

Evaluate the sum:  $$\sum_{n=0}^{\infty} \frac{1}{F_{(2^n)}}$$  where $F_{m}$ is the $m$-th term of the Fibonacci sequence. I need some support here. Thanks.


Let $S$:$V$→$W$ and $T$:$V$→$W$ be linear transformations...

Let $S$:$V$→$W$ and $T$:$V$→$W$ be linear transformations. Given a in  ℝ, define functions $(S+T):V→W$ and (a$T$):$V→W$ by $(S+T)$(v)=S(v)+T(v) and (a$T$)(v)=a$T$(v) for all v in $V$. Show that $S+T$ and a$T$ are linear transformations.


Prove for any positive number $t$, there is a solution for $x^2=t$.  So we want to show that $x^2=t$ for $t\geq0$.  We can break this into two cases:  Case 1: Assume $t=0$, then we have $x^2=0$ $\Rightarrow$ $x=0$, and we are done.  Case 2: Assume $t>0$, then we have $x^2=t$ $\Rightarrow$ $x=\sqrt{t}$  And here is where I'm stuck, not sure what I should do next...?


Disable text message vibration when on a call

When I'm on a phone call using my iPhone 5 running iOS 10.3.3, I get the vibration of iMessages in my ear while I'm on the phone. It's irritating to say the least (pun intended.) The recipient can also hear the buzz.  Is there a way to automatically disable all vibrations when on a call? Would the slider on the left-hand side of the phone near the top work? (I'm afraid to try in case it makes it worse.)


I didn't like the skill I chosen for the first follower I found. Is it possible to respec his skill later on?


Maximum friction force for a wheel to be able to roll

The wheel with mass $M$ and radius $R$ below is free in space (it is not on the ground). A torque $\tau$ is applied to it through an engine. A horizontal force $F = \frac{\tau}{R}$ is also applied to it on its bottom-most point. I work out the net torque on the wheel by  $$\tau_{net} = \tau - \frac{\tau}{R}R = 0$$  Since the net torque acting on the wheel is zero, I expect the wheel to slide to the right  with linear acceleration $a = \frac{\tau}{MR}$, and to not roll (due to zero torque).    Now, another wheel (below) with radius $R$ is on the ground, and an engine applies a torque $\tau$ to it. The ground applies a force $F_{friction}$ in order to prevent the wheel to slip. The wheel translates to the right, but this time let's say that it rolls with a bit of slipping.    From this, can I assume that the friction force $F_{friction}$ the ground applies to the wheel is always smaller than $\frac{\tau}{R}$? Because, from what I see above, if friction is equals to this $\frac{\tau}{R}$, the wheel would not roll at all.


Is it possible to get Android 6.0 if you have any Android 5.0 device?

As you may know, Google came out with the new Android 6.0 but it is not available in my country right now. I was wondering if I bought an Android 5.0 device from the store, would I be able to upgrade to Android 6.0 manually in the future?


How can I Intercept object with a circular motion

I am creating a 2d space game and need to make the spaceship intercept a planet. I have working code for straight line intercepts but cannot figure out how to calculate the planets location in a circular orbit.  The game is not scientifically accurate so I am not worried about inertia, gravity, elliptical orbits, etc.  I know the spaceships location and speed and also the planets orbit (Radius) and speed


How to instruct apt-get and/or synaptic to install from source code?

As I asked in the title, I would like to know how to setup Synaptic or how to instruct apt-get to install/upgrade software exclusively from source. I mean, apt-get/synaptic install only pre-compiled packets. I would like to setup the "building all" like Portage in Gentoo. Is this possible? If yes, how?


Can't expression in switch statement be string? C++

Code below return error: switch quantity not an integer. What's wrong? string s = "20";      switch (s){          case "18":       cout << "18" << "\n";       break;            case "20":       cout << "20" << "\n";       break;        }


I have a sentence and am trying to convert it into a question form.  The sentence goes like this:     Barack Hussein Obama is the 44th President of the United States.   Can  anybody please convert it into a question form?


I did that but I get:   $ sudo echo '"Samsung SSD 860 EVO M.2" 190 C "Samsung SSD 860 EVO M.2"' >> /etc/hddtemp.db bash: /etc/hddtemp.db: Permission denied   any suggestions?  Did all from:


I am new to front end web development and am making a small application where I want to validate that the user has in fact entered a valid URL.  At first thought I figured I should solve this using js but what if the user has js turned off?   Should I instead use HTML5 form validation techniques? Or maybe use both?   I know I could do server side validation but my question is mainly if HTML validation is used in real life applications b/c of possibility of js being turned off? Thanks for the help.


How are superconducting materials classified as gapped or gapless, also is this same as saying that a superconductor is conventional or unconventional? Could you explain how this is linked to topology or the topological order in the material?


Procedure is throwing compile time error oracle

New for oracle, Facing compile time error while making procedure , so could anybody help me to rectify that error.  Code Snippet:  Create or replace Procedure prc_DropUselessTables(userID number:=0) as ncount number:=0; Begin  Select count(*) from User_Tables where table_name='DummyTable';  if(ncount>0) then  Drop table DummyTable;----Error Line  end if;  end prc_DropUselessTables;   Thanks


Prevent Automatic Installation of iOS Update

I know that iOS devices will automatically download the latest version of iOS when it's available. A message then appears, asking if the user wants to install the update later or now.  I have 2 questions regarding this: One, if I click "later," will I receive the message again, and how frequently would I receive this message?  And two, if I restart my iOS device, would the new version of iOS be automatically installed when it turns back on?


How should I run wiring for my above-fireplace mounted TV?

I'm going to mount my 47" LCD above my fireplace. I'm not looking for arguments against this decision. I'm looking for wiring solutions. The diagram below should help explain the situation.   _________________________________________________ |     |     |    | |   |   |   | |    |     |     | |     |     |    | |   |   |   | |    |     |     | |     |     |    | |   |   |   | |    |     |     | |     |     |    | | p |   | m | |    |     |     | |     |     |    | |   |   |   | |    |     |     | |     |     |    #################    |     |     | |     |     |    ##             ##    |     |     | |     |     |    ##             ##    |     |     | |    P|     |    ##             ##  m |     |P C  | |_____|_____|____##_____________##____|_____|_____|    | = stud # = fireplace brick P = existing power outlet C = existing cable outlet p = new power outlet m = new media outlet   Essentially, there is an existing power outlet on either side of the fireplace and a cable outlet on the far right side of the fireplace. I'm intending to put my non-TV media equipment on the right side of the wall and the television above the fireplace. This means I need two things above the fireplace: power and HDMI. I don't want to just run an HDMI cable in the wall. I'd prefer to have some sort of conduit to simplify replacing the cable or having a second (with one of these on each end: ). I only need to drill through two studs that are 6" apart above the right side of the fireplace in order to access the vertical space where I want the other end. For the power, I need to drill through two 6"-spaced studs above the left-side of the fireplace, but then another 2 full-height studs.  There are a couple of caveats:   This is an externally facing wall, which means there's insulation. I'm assuming this will make things more difficult. I'd like to refrain from cutting more holes in the wall than is necessary for the outlets (to reduce drywall damage/repair).   I've considered a couple of options:   Cut the openings for the outlets above the fireplace, and use a flexible drill bit to drill through the studs above the fireplace. This minimizes dry-wall damage, but how difficult is this with insulation in the wall, how can I feed the conduit through those holes, and how would I drill through the full-height studs on the left for power? Cut a wide section of dry-wall (4" high?) from the desired media outlet to the right until reaching the gap above the desired lower outlet. This results in some dry-wall damage, but would allow more control for drilling holes in the studs and running conduit. This still doesn't solve the problem of getting through the full-height stud for the power. For the power, I would need to extend the cut-out two studs further.   What should I do?


"After your computer restarts, choose 'Ubuntu' from the boot menu."  is it possible to choose between ubuntu and windows each time the desktop is started up ?


How do I get from equation 1.31 to equation 1.32? It seems like some terms are changing.


TeXstudio: content-assistant popup window is unreadable

I would like to use this program but I do not know how to display context-sensitive help (see figure below) without a black background. I use Ubuntu 12.10 and I don't know what other information might be helpful to solve this problem. Thus, the program behaves since installation.


I'm wondering if the Fighters have spells, or if they have moves they can use besides just attacking?


To show $(x+y)^p\leq x^p+y^p$, where $0\leq p\leq1, x>0,y>0$?

How to show that, $(x+y)^p\leq x^p+y^p$, where for $0\leq p\leq 1,x\geq 0, y\geq0?$ Any suggestion how to prove it?   Thanks in advance.


Has Data's cat Spot always been played by the same cat?

In Star Trek : TNG, the android Data has a cat named Spot. Spot appears in several episodes in multiple seasons. Has this role always been played by the same cat? Or have there been other 'Spots'?


What do you call a piece of dead skin next to your nail bed?

What do you call a piece of dead skin next to the nail bed of your finger?  Usually this piece of dead skin is rather thin — and it isn’t very wide, either, but the longer it is, the more it hurts. I usually start noticing these pieces of dead skin when one of them gets to be about half an inch long and hurts whenever I touch it.   Is there a better way to describe this piece of dead skin? I’ve tried to find a picture of it on the internet to link to, but I found some rather disturbing pictures instead.


Issue with column command and color escape codes

I'm colorizing the header of a table formatted with column -ts $'\t'  Works well without color codes, but when I add color codes to the first line column doesn't properly align the output.  Without colored output it works as expected: printf "1\t2\t3\nasdasdasdasdasdasdasd\tqwe\tqweqwe\n" | column -ts $'\t'  But when adding color on the first line column doesn't align the text of the colored row: printf "\e[7m1\t2\t3\e[0m\nasdasdasdasdasdasdasd\tqwe\tqweqwe\n" | column -ts $'\t'  Observed this behaviour both on Ubuntu Linux and Mac OS X.


How can I check if a weirdo character I'd like to use is included in the used font?


Is it correct to say "In this paper we will prove that..." in academic papers?

Is it correct to say "In this paper we will prove that..."? I think in academic papers we should use "be going to" instead of "will", because "will" is used to describe something at the moment of speaking, not to describe something which has already been planned or arranged.


Given two Fermat's number $a=2^{2^n}+1$ and $b=2^{2^m}+1$ with $n,m\in\mathbb{Z}, ~n,m\ge0~\wedge~n\ne m$. Prove $\gcd(a,b)=1$.


Ubuntu 20.04 login screen date appears in different language?

Hi I recently installed Ubuntu 20.04 and noticed that date below the log in screen appears in a different language. Please let me know whether there is a way to fix it.


creating multiple categorical variable with specified degree of association (correlation) matrix

Lets say I want to generate data with particular association matrix. I am taking  as a measure of degree of association.  Here are examples using R.       require(psych)     var1 <- sample(c("P", "A"), 10000, replace = TRUE)     var2 <- sample(c("P", "A"), 10000, replace = TRUE)     mydf <- data.frame (var1, var2)    # degree of association    require(psych)   # No association case:    # random variables means 0 association expected    phi(table(var1, var2))    [1] -0.01  # copy of same variable, 1 association expected.  var3 <- var1 phi(table(var1, var3))   Assuming that I have 4 x 4 matrix of phi coefficients between the four categorical variables. Say the following is association matrix (just like correlation matrix)  amat <- matrix (c(1,0.5,0.4, 0.3, 0.5,1,0.5,0.3, 0.4,0.5,1,0.2, 0.3, 0.3, 0.2,1), 4) rownames(amat) <- c("VarA", "VarB", "VarC", "VarD") colnames (amat) <- c("VarA", "VarB", "VarC", "VarD") amat        VarA  VarB   VarC  VarD VarA   1     0.5    0.4   0.3 VarB   0.5     1     0.5  0.3 VarC  0.4     0.5    1    0.2 VarD  0.3     0.3    0.2   1   Is there any way to generate a data with four variables with say 10000 observations that approximately hold the above association?   I know from  how we can do similar thing in quantitative variables.  The examples does not need to be R specific, I want to know only the idea, which can translated into any programming language.


How can I install Windows 10 (20H2) after I've installed Ubuntu? [Legacy BIOS only]

I am currently on Ubuntu 20.04.1 LTS and I want to install windows 10 without removing my ubuntu. I want to install win10 on my real PC not virtualbox. How can I do it? Will win10 cause problem with grub boot loader?


How to remove an object from an array of objects in C#

I don't know if what I am trying to do is possible in C# and I couldn't find an answer online. I have 4 enemy objects. One of them dies. I want that enemy to be removed from the array. If the enemy is in the middle of the array, I want the next enemy to take its spot so that the array does not have empty spots in the middle. Here is the code (where I wrote "//remove here" is where I want the object to be removed):      public static int numberOfEnemies = random.Next(1, 4);     // create 1-4 enemies     public static Enemy[] enemyNumber = new Enemy[numberOfEnemies];      // initialize enemies    int h = 0;          do          {                enemyNumber[h] = new Enemy(playerLevel);                h++;                System.Threading.Thread.Sleep(25);          } while (h != numberOfEnemies);      // code where the fight happens i did not include     // enemy dies     if (enemyNumber[0].Ehealth <= 0){                 {                     Console.WriteLine("Enemy {0} is dead!", eName);                     // remove here                 }     }


How to Update microcode before boot, TSC_Deadline disabled due to Errata

Since today, I encounter  whenever I boot Ubuntu, and it won't let me boot Ubuntu.   [    0:000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata;   please update microcode to version: 0x52 (or later) ...   BusyBox v1.22.1 (ubuntu 1:1.22.0-ubuntu2) built-in shell (ash)    Enter 'help' for a list of built-in commands   (initramfs) _   and I am now stuck at the BusyBox (initramfs).  I'm guessing I have to update the microcode, and I couldn't figure out how to do this as I can't even boot Ubuntu. The error message appears after it asks me to enter the pass-phrase for my encrypted hard drive.   Before this it also gives me the error message Error: environment block too small Press any key to continue.  I don't want to reinstall Ubuntu from scratch, as I still hope to get to the data I have on the encrypted drive. I have also attempted to access the encrypted drive booting from the live USB, but received errors when attempting to access/mount it. (mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu--vg-root)  A couple of days before this happened, I had installed the latest updates as suggested to me by the Ubuntu Software Center.


Existence of a meromorphic functions $f(z)$ such that $|f(z)|\geq |z|$.

Let $f$ be a meromorphic function on $\mathbb{C}$ such that $|f(z)|\geq |z|$ at each $z$, where $f$ is holomorphic. Then, which of the following is/are true.   The hypothesis are contradictory, so no such $f$ exists. Such an $f$ is entire. There is a unique $f$ satisfying the given conditions. There is an $A\in \mathbb{C}$ with $|A|\geq 1$ such that $f(z)=Az$ for each $z\in \mathbb{C}$   I think $1$ and $3$ are false but not sure. And what about $2$ and $4$? I am unable to find suitable examples. Please help me here.


c++ why struct with uint32_t and struct with uint8_t[4] have different sizes?

I have two structs: struct struct_A {   uint8_t v1[4];   // 4 bytes   uint8_t v2; };  struct struct_B {   uint32_t v1;  // 4 bytes   uint8_t v2; // 1 byte };  I obtain their sizes by using the code: std::cout<<"size of struct_A is: "<<(sizeof(struct_A))    <<std::endl; std::cout<<"size of struct_A::v1 is: "<<(sizeof(struct_A::v1))<<std::endl; std::cout<<"size of struct_A::v2 is: "<<(sizeof(struct_A::v2))<<std::endl; std::cout<<"size of struct_B is: "<<(sizeof(struct_B))    <<std::endl; std::cout<<"size of struct_B::v1 is: "<<(sizeof(struct_B::v1))<<std::endl; std::cout<<"size of struct_B::v2 is: "<<(sizeof(struct_B::v2))<<std::endl;  And I get output: size of struct_A is: 5 size of struct_A::v1 is: 4 size of struct_A::v2 is: 1 size of struct_B is: 8 size of struct_B::v1 is: 4 size of struct_B::v2 is: 1  How do I understand the size of struct_A and size of struct_B are different? Thanks.


functional javascript - function declaration vs function expression?

What are pros/cons of function declaration vs function expression when the function is meant to be recursive?  Is there any conventions one should try to follow?


How to center (vertically and horizontally) an image inside a div centered (horizontally) in another div

I would like to have an image centered horizontally and vertically in a div which is also centered (horizontally) in another div.  Something like this:   I imagine this being done like this:

     But I can't manage to find the right CSS rules to achieve this arrangement. Some help would be very much appreciated!


What is the force of friction on the body?

This might seem like a stupid question, but my instructor could not give a straightforward answer.  If a body is kept in contact with a completely vertical surface i.e. right angle to the ground, and only force on the body is the force of gravity straight downwards.Then normal force on the body would be zero. We know that frictional force on the body is proportional to the normal force, hence it is also zero. Does that mean there is no friction whatsoever, despite the surface rubbing?


How to achieve sudo privilege in shell script?

how do I can achieve sudo privilege via the shell script without entering the password? Example:   [user@user Desktop]$ ./script.sh  [user@user Desktop]#    which command should I try on the script.sh? I do not want to add in the sudoers file. Please help me. Thanks for your valuable time.


No feed back message when run functions that suppose to generates msg

I recently updated all the packages of my emacs 24.3 under Windows, and I found strangely that now there is no feed back message when run functions that is supposed to generates messages. e.g, when i run M-x org-version, just no message shows up either in the minibuffer or in the Message buffer. but other messages like errors, mark sets, saving/loading are all there. it would be tedious for me to try to figure out which package causes the problem, so I hope some one here can give some clue. the packages i have are  ace-jump-mode ack-and-a-half anzu dash diminish elisp-slime-nav expand-region flx-ido flycheck gist git-commit-mode gitconfig-mode gitignore-mode grizzl guru-mode helm helm-projectile ido-ubiquitous key-chord magit move-text rainbow-mode smartparens smex undo-tree volatile-highlights zenburn-theme   thanks


PHP: Remove third item in 4 items comma list "1,2,3,4"

How can I delete the 3 in "1,2,3,4"?  Dirty hack: Slice the sliced arrays and join them again.  $s = "1,2,3,4";  $array = explode(',', $s); $a = array_splice($array, 0, -2); $b = array_splice($array, 1, 1); $s = implode(',', $a).','.implode($b);  echo $s; // 1,2,4   Test:


Let U and w be two subspaces of the same vector space V.Is U union W necessarily a vector space?


A moderator accidentally created a chat event, then deleted it, but it still shows in the upcoming events list. How can they remove it?

For context:  A moderator in a chatroom created a joke event, then deleted the event once they realized it sent out a site-wide announcement, including an "upcoming event" notification in the sidebar. However, apparently the event being deleted didn't remove it from the sidebar. Now, this event starts in a couple of hours, so it's not a big issue that it's on the list. But just for future reference: if a chat event is created in error, what is the correct procedure to remove it in such a way that it's no longer shown in "upcoming events" in the sidebar?


Cox Regression - IVs have different hazard ratios when modelled alone than all together

I'm currently running a Cox proportional hazards analysis on my data to look at outcomes for cancer survival. I'm looking at variables such as cancer type, martial status, gender etc. For some reason when I put in all of these variables together in the SPSS model, I get different hazard ratios than when I put them in separately. Does anyone who know is the reason for this? Am I missing something basic?


I recently picked up the new Magic Mouse 2.  Since then, the 'Swipe Between Pages' has started working on it's own.  With the old mouse, I turned it off, as I was constantly flipping through web pages accidentally.  Even though the prefs say it is deactivated... it won't stop!  I tried turning it on and back off... no luck.


Transferring files via WiFi between two Windows machines

I'd like to transfer 200gb of files between two Win10 laptops wirelessly. What would be the most time-saving option?


I have very little space left on my main hard drive (the one that I installed Ubuntu on) and need to install apps from the software center to another disk like in Windows XP. How can I proceed in doing this?


For elements $a,b \in G$, group that acts on the set $X$, show that $a$ and $b^{-1}ab$ have the same numbers of fixed points in $X$

The group $G$ acts on the finite set $X$. Let $a,b \in G$. Show that $a$ and $b^{-1}ab$ have the same number of fixed points in $X$  My idea was perhaps to define two sets which contain all the fixed points of $a$ and $b^{-1}ab$ respectively and then proceed to find a bijection between those groups. The function I thought of is defined by $f(x)=b^{-1}x$. Would that be a sufficient proof and if so how exactly can I do that (for example is it necessary to prove it is well-defined)?


What to do with practically duplicate answers to the same question?

After seeing a question on Stack Overflow that had 7 answers, all of which practically said the same thing (not word for word, but the general answer as a whole, although some of the answers were more helpful), I thought that something should be done, but what?  Should we flag the least helpful answers? Downvote? Nothing?


Intermittent failure of certain keys to respond

Came across the second MacBook Pro keyboard recently that exhibit very strange symptoms. Certain keys seem to stop responding despite being clean and traveling very easily just the rest of the keys. Both of them went to the Genius bar for testing, one of them for the 'long run', and came back as "works normally". Of course, despite still intermittently showing symptoms.  The affected keys in both cases were confined to the top row of letter characters on a qwerty-layout like tyuiop. Not always the same keys, not alway all keys. Sometimes all of them really do work normally.  Searching around there are some similar problems reported, apparently mostly on Apple hardware.   First port of call should be this  but that reads like a permanent physical/electrical problem. And the supposed fix is really just an inconvenient workaround that further would be quite impractical to implement on that many keys.  Searching some more similar symptoms are reported here  (This issue was not really solved…)   Also no solution but a lot of voodoo reasoning or observations.   To look at similar but non-fruity situation.   Linking the key failures to dirt.  Strange symptoms with strange solutions that indicate a keyboard for itself may be fine:   Both keyboards I examined had no spill related damage, both were cleaned underneath the key caps (minimal dirt there before), one I disassembled completely to really clean it. There is no swollen battery, no strange matter inside the machines.  Two further peculiarities to observe: Pressing multiple (unresponsive) keys at once seems to yield a temporary relieve and the problems seem to be get more severe when the machine heats up and less severe when running cooler.  What could be the cause of this? How to fix it?


Paper towel gets completely dark after I wipe my Dutch oven

I bought Lodge cast iron dutch oven a few weeks ago. I didn't season it right away since I kept it in a dry closet. Last week seasoned it with pure almond oil (because I read it somewhere it's slightly better than other oils) and an hour in the oven (500F). After I cooked with it, nothing was wrong with the food. Then I rinsed it with hot water and wiped with paper towel, and the paper towel got completely dark, and it didn't seem like the oil I used for the food.   So my question is: Is it normal ? Should I reseason it ? I thought maybe I should've done the seasoning for a couple more times instead of once, or I used too much oil for the seasoning.   Thanks in advance, Cheers!


I wrote my thesis in the Lyx software using Windows 10. At the end, i get a succesfully compiled PDF. I tried to compile the exact same document in Lyx in Linux but i get the error Package PGF Math Error: Unknown function 'inner' in any graphics that i made by using circuitikz package.  This graphics are electronic circuits that contains a transformer with his dots showing the polarity.   The code that i use for generate the previous circuit is:  %Preamble \usepackage{emptypage} \usepackage{graphicx} \usepackage{matlab-prettifier} \usepackage{listings} \usepackage{siunitx} \raggedbottom \usepackage[american]{circuitikz} \usepackage[none]{hyphenat} \usetikzlibrary{shapes,arrows}  %Flyback \begin{circuitikz}[scale = 1.5] \draw     (0,0) node[transformer, yscale=1.5](T) {}      (T.A2)           to [short] ($(T.A2)+(-1.5,0)$)         to [V, l=$V_S$, invert] ($(T.A1)+(-1.5,0)$)              to [nos, l=S] (T.A1)         (T.B1)         to [D, l=D] ++(2,0) coordinate (Node1)           to [short] ++(2,0)         to [R, l_=R, v^=$V_o$] ($(T.B2)+(4,0)$)         to [short] (T.B2)     (Node1)         to [pC, l_=C, *-*, invert] ($(T.B2)+(2,0)$)      %Transformer labels     (T.inner dot A1) node[circ]{}     (T.inner dot B2) node[circ]{}     ($(T.base)+(0,0.3)$) node{$N_1$ : $N_2$} ; \end{circuitikz}   Lyx says that this error ocurrs in these lines:      (T.inner dot A1) node[circ]{}     (T.inner dot B2) node[circ]{}   If i comment these lines that every circuit uses it, the error don't show but the dots for polarity neither. How i can solve it? My code is the same, i just tried to compiled in Linux, no missing packages or similar.


Proving a series converges if and only if an expectation is finite

I'm struggling with a probability theory question that asks me to show a series converges almost surely if and only if an expectation is finite. Does anyone know how I can solve this problem?     Let $X_{1}, X_{2}, \ldots$ be independent random variables all taking   non-negative values. Prove that the series $\sum_{i=1}^{\infty} X_i$   converges almost surely if and only if       $$\sum_{i=1}^{\infty}E\left(\frac{X_i}{1 + X_i}\right) < \infty$$   I don't know if it helps, but the book I am studying from teaches the three series and two series theorems in this chapter.  I don't know if there might be some way to cleverly apply that here with this expectation, but I have not been able to do so.


sample space for a feature in machine learning

In machine learning data set each feature is considered as a random variable. Random variable is a function which maps the outcomes in sample space to a real value. Now I am trying to understand since each feature is a random variable. what would be the sample space of it? I mean what is the domain it is trying to map?


How can I get a string that is next to another string?

I am creating a batch program, and you need to pass arguments to it. Though with my current code you have to pass the arguments in a certain way. The way I could fix this is by getting a line of text next to the argument. This is what I want :  batch.bat -arg2 arg -arg1 arg                  ^         ^                  |         |               Need This Need This


I've got about 1000 filenames read by os.listdir(), some of them are encoded in UTF8 and some are CP1252.  I want to decode all of them to Unicode for further processing in my script. Is there a way to get the source encoding to correctly decode into Unicode?  Example:  for item in os.listdir(rootPath):      #Convert to Unicode     if isinstance(item, str):         item = item.decode('cp1252')  # or item = item.decode('utf-8')     print item


Canon focus points are blurry..Please help!

I'm using an Canon 1200d. Lighting up the focus points clearly shows that the focus points are shifted slightly to the down vertically.   I've not had any problems with the focusing system.


I have seen many questions in Stack Overflow which are unanswered or answers that do not provide solutions. When I need a solution for something, I have been stuck because there's no solution there. Even when the answerer got many upvotes, and I decided to try the solution, they have mostly not worked.   What exactly should the community do to unanswered or unsolved questions? Is there a specific community legally authorized by this site to review and answer such questions for others to get valid references?


Primary decomposition in Noetherian rings

For a ring $R$ and an ideal $I$ of $R$, the primes of the form $\sqrt{(I:a)}$ for some $a\in R$ are called associated prime ideals of $I$ (Here $(I:a)=\{r\in R:ar\in R\}$). Let $\text{Ass}(I)$ denote the set of such associated prime ideals of $I$.      How is it possible to prove that if $R$ is Noetherian, then    $$\text{Ass}(I)=\{P\text{ prime}:P=(I:a)\text{ for some }a\in R\}?$$   (In other words, it is not necessary to take radicals).   I guess that one should use the fact that for Noetherian rings there exists always a minimal primary decomposition of any ideal $I$ of $R$, but so far I have failed to prove the claim.


I have had a single Ubuntu virtual machine that I have upgrade over the years.  It literally has nothing on it except a couple files.  I recently decide to upgrade it from I believe 13.04 but I could be mistaken.  A picture is worth a thousand words.  How do I reinstall launchpad ( is that what its called ) so regain some sort of control over my virtual machine?  I was forced to uninstall Nvidia's drivers because it was booting and my mouse was a X icon.  Before I "installed" 13.10 the virtual machine was working.  I have pressed the "Windows Key" and it does nothing.  The host machine is Windows x64. The virtual machine itself is a VMWare virtual machine.  If somebody has a better name for the title of this question I am open to suggestions.  Update:  In an attempt to "reset" Unity I was able to determine that compiz ( no idea what this is ) was unable to find the opengl plugin


Why were all of the deposit boxes open in the Bank Heist?

I was hopping between random servers on Crime.Net looking for interesting heists.  I happened upon a bank heist and joined in.  Once we had drilled into the vault, I discovered that every deposit box was already open.  What could have caused this?  Was I playing on a hacked server?  I doubt it was an accident, since after completing that heist we went to Jewelry Store and all of the safes were open from the start of the mission.