I am trying to proof the inclusion-exclusion principle and I can't find anything on the internet that matches the formula that I have to proof. I need to proof the following.  $$\#(\bigcup_{j=1}^{n} X_{j}) = \sum_{D \subset E_{n}} (-1)^{\#D-1}\#X_{D}$$ where $$X_{D}=\bigcap_{j\in D} X_{j}$$ So for example $X_{\{i,j,k\}} = X_{i} \cap X_{j} \cap X_{k}$  I am trying to proof this by induction.   Basic step: $n=1$  then $$\#(X_{1}) =\#(X_{1})$$ which is trivial.  Now assume that the formula is correct for $n=k$, namely $$\#(\bigcup_{j=1}^{k} X_{j}) = \sum_{D \subset E_{k}} (-1)^{\#D-1}\#X_{D}.$$ We will proof that it is also correct for $n=k+1$. So $$\#(\bigcup_{j=1}^{k+1} X_{j}) = \sum_{D \subset E_{k+1}} (-1)^{\#D-1}\#X_{D}.$$ I have no idea what my next step should be.


I wonder why NetBeans 7.0 is still in Software Center and is not replaced by 7.4?  Netbeans 7.0.1  Released August 1, 2011


Do conditional triggered abilities check their condition again before resolving?

Let us assume that Alice has 15 life, and Bob has 17. It's Alice's turn. Alice swings at Bob with a  and , a creature with dethrone.  In response to the dethrone ability, Bob casts a  targeting the Bear, and paying 4 life. He is now at 13, less life than Alice. Does the dethrone ability still give the Cutthroat a counter?


Batteries in series with different amp-hour ratings.

I have a 1.5 amp-hour, 12 V battery and I have a 10 amp-hour 12 V battery. I know the voltage will increase to 24 V when they are put in series, but I don't know what goes on amp-hour wise.   Does the new amp-hour rating take the amp hour of the low amp hour rating, does it take the 10 amp hours or is it like an average?


I'm currently trying to check the user input to be a valid URL (http(s)://www.abc.at or localhost) or a valid IP-Address (127.0.0.1, ...) using only the standard C++ methods like REGEX. I could use the libraries ASIO (standalone), regex and arpa/inet.h. Is there a way to do that in very simple ways?  Thanks for your help!


I'm trying to load a list of entities, with 2 conditions which I'm passing with a list of Tuple. See:  private IEnumerable<Invoice> FindInvoices(IEnumerable<Tuple<int, int>> vars) { ... }   Now, I'm having truble to how to join the main entity-set with the input parameters:  private IEnumerable<Invoice> FindInvoices(IEnumerable<Tuple<int, int>> vars) {     var q = from i in context.Invoices             join v in vars on                  i.Prop1 == v.Item1                 // HERE IS THE PROBLEM. THERE IS NO "&&" or "and" to apply:                 && i.Prop2 == v.Item2 }   As you can see, since there is no && or and support, I cannot apply the second condition to clause. So, how can I write a join with 2 conditions in on clause?  OR can you suggest any alternative? Thanks in advance.


After 20+ years of lecturing, 3 masters (2 M.Sc.), at age of 54 years, is it feasible to start and finish a Ph.D., be hired as a Professor?

After 20+ years of (part-time) lecturing, 3 masters (out of which 2 M.Sc.), at age of 54 years, is it feasible to start and finish a Ph.D. and be hired as a Professor?


How to say "I want the beer to never end" correctly?

I've come across this expression and am not quite sure what it actually should be. Is it "I want the beer to never end" or "I want the beer never ends" or something else? Which is the correct way?


I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


Where can I learn Topology for animation

Are there any books or videos that properly demonstrate and explain how to model a character with proper topology? If you want a character where the various parts of the body for one look accurate and deform properly for animation without having a million polygons you need strategically placed edgeloops, this much I know.   But i'm getting really sick of finding dead links, showing not telling and staring at images of completed characters and somehow figuring out what to do on my own.  I recently purchased 'pushing Points: The Topology work book' but that was more focused on removing and controlling triangles, n-gons and poles. Even then it was all on flat surfaces. Didn't help my understanding of edge loops and how you use them since i'd need a character model with broken topology in the first place.   I also purchased an anatomy book for cg artists but that really was just 'here is the human body and some old paintings' Very nice paintings mind.  I respect that subdivision surface is important but it be nice to learn what the edge loops are before subdividing them.


Failed to put two functions in one graph

I was trying to put two plots of different functions in one graph, but the second one didn't show up in the graph. Does somebody see the mistake? Here is the code:  \documentclass{article}  \usepackage{pgfplots}% This uses tikz \pgfplotsset{compat=newest}% use newest version  \pgfmathdeclarefunction{FunctionA}{1}{%   \pgfmathparse{300 + 1000/x + 2.5*x}% }  \pgfmathdeclarefunction{FunctionB}{1}{%   \pgfmathparse{290 + 1000/x + 2.45*x}% }  \tikzset{My Line Style/.style={smooth, thick, samples=400}}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0, xmax=750,     ymin=300, ymax=600,     axis x line=bottom,     axis y line=left,      xlabel= $y$     ylabel=Cost,]     \addplot[My Line Style, color=black, domain=0:250] (\x,{FunctionA(\x)});     \addplot[My Line Style, color=black, domain=250:500] (\x,{FunctionB(\x)}); \end{axis} \end{tikzpicture} \end{document} \documentclass{article}


Differential form is closed if the integral over a curve is rational number.

The following problem comes from do Carmo's book Differential Forms and Applications, Chapter 2, Exercise 4:  Let $\omega$ be a differentiable 1-from defined on an open subset $U\subset \mathbb{R}^n$. Assume that for each closed differential curve $C$ in $C$, $\int_C \omega$ is a rational number. Prove that $\omega$ is closed.   Can anyone give some hints? My idea was that we could try to show the integral vanishes if the curve lies in $N_\epsilon (p)$ (i.e. a small neighborhood around $p$) for any $p$ in $U$ and use the Poincare Lemma, but failed.


How can you contact a moderator who deleted a post

A moderator deleted an answer as I gave the same answer to two questions and the moderator would rather see one of the questions flagged as a duplicate.   I think the questions are a little different but I understand the point so deleted the second answer.   How do I get the first answer undeleted as this is the best place to put the answer - the comments are disabled and there does not seem to be anyway to communicate with the user.  As a side note - it would be much more user friendly if the moderator added a comment first before deleting, especially as the deletion happened shortly after I posted so we were both online.


I am testing a piece of code that limits decimal precision to 2 digits. Its giving me different results when operations performed combined vs performed separately.  //Performed combined float result_a = ((int)(v * 100.0f)) / 100.0f;  //Performed separately float result_b = v * 100.0f; result_b = (int)result_b; result_b /= 100.0f;   if v is '12.33', result A gives me '12.32' and result B gives '12.33'.


Card (must be enchantment or artifact) that allows multiple of the same legend in play at once?

I think its an older card. I've been googling for about a half and hour and cant find it.


Is there a way to disable cookies in your HTML/PHP Code for Logins

total Web Dev noob here, but I've been working on a website that involves logging in- The user puts his/her username and password. That's all fine and dandy, but the way that cookies work here can be a bit of a pain-Everytime I enter something in the text box, log in, and then go back to the log in page, whenever i want to type something in the login text box, there is a drop down menu for usernames and it can be really annoying- is there a way to prevent this in the actual code?


Why is the Sun approximated as a black body at ~ 5800 K?

Apparently spectral solar radiation is approximated by a black body at 5800 K. The spectral black body distribution (Planck distribution) is shown below (from Incropera, Fundamentals of Heat and Mass Transfer), with different temperatures including solar radiation at 5800 K.     The heat flux on an Earth surface perpendicular to sun rays (i.e., the solar constant), is roughly 1.36 kilowatts per square meter. Is this simply the integral of the above distribution? Why is the sun approximated as a black body at 5800 K? Does this mean that the surface of the sun which is emitting radiation has a temperature of 5800 K? That seems kind of low. Is solar radiation approximated as a black body at 5800 K only on Earth, or is it the same everywhere? Why don't atmospheric effects and scattering change measurements of the solar spectrum on Earth?   EDIT:  The solar constant is approximated by considering the Stefan-Boltzmann law (i.e., the integration of the spectral solar emission), the size of the sun, and the distance from the sun to Earth. A good derivation is shown here:


In the film Prometheus, is the planet shown in the beginning of the film Earth or was it some other planet?


Determine the base where the following numbers are in an arithmetic progression

$$34_\alpha, 63_\alpha, 112_\alpha$$  I did:  $$34_\alpha + r_\alpha = 63\alpha \\ 63_\alpha+r_\alpha=112_\alpha \\ 112_\alpha = 34_\alpha+2r_\alpha \Leftrightarrow 112_\alpha -34_\alpha = 2r_\alpha  $$  Not sure where to go from here. I tried to convert these numbers to decimal but I don't know how many digits r has so that didn't get me anywhere.


Value Error with Float/Integer/double Fields in Python?

When running this Code:  import arcpy  from arcpy import env import os  #Specify the map document and the data frame mxd = arcpy.mapping.MapDocument(r"G:\\PythonCode\\mxd_test.mxd") env.workspace = r"G:\\LoopTest.gdb" #output file folder outPath = r"G:\Mxd_MapAutomation\\Test4\\"  FCs = arcpy.ListFeatureClasses()  # loop through all Featurecalsses in env.workspace for FCLASS in FCs:      #Skip all Text. OID and Geometry Fields - unfortunately WID, Shape Area etv is still included     AllFields = [f.name for f in arcpy.ListFields(FCLASS)]     LeaveOutField = [f.name for f in arcpy.ListFields(FCLASS,field_type='String')]     LeaveOutField.extend([f.name for f in arcpy.ListFields(FCLASS,field_type='Geometry')])     LeaveOutField.extend([f.name for f in arcpy.ListFields(FCLASS,field_type='OID')])     attrlist = [x for x in AllFields if x not in LeaveOutField]      # layer which has to change the attribute field     flayer = arcpy.mapping.ListLayers(mxd, "*")     featurelayer = flayer[7]      # text element that has to change (e.g. title...)     title = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "map_title")[0]     for attr in attrlist:          # change value field         featurelayer.symbology.valueField = attr          # change tilte         title.text = attr          # update view         arcpy.RefreshActiveView()         arcpy.RefreshTOC()          # export as jpeg         outJPEG = os.path.join(outPath, FCLASS + "_" + attr + ".jpg")         arcpy.mapping.ExportToJPEG(mxd, outJPEG, "PAGE_LAYOUT", 200, 200, 300, False, "24-BIT_TRUE_COLOR", 90, False)  del mxd   I get following error:      Traceback (most recent call last):   File "G:/DDP_loop_Code.py", line 35, in <module>     featurelayer.symbology.valueField = attr   File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\arcobjects\_base.py", line 87, in _set     return setattr(self._arc_object, attr_name, cval(val)) ValueError: hhfishing   and I have no idea why.. the code basically runs through all FC in the GDB. It does it correctly with the first FeatureClass and stops with the error in the second Feature Class. Even if I would put in other Feature Classes the Error would appear in the same way. All the fields are either float or integer and the field where the error appears is not different to any other field where the code works on..


How to let Terminal on Mac OS behave show folders and executables and such in different colors?

On Linux (e.g. Ubuntu) the terminal shows you executables and folders and such in different colors so you can identify them easier. Is this possible on Mac OS Terminal, too?


A priori power analysis for generalized linear mixed-effects model

Let's say I have a data set (with a binary DV) which I used a generalized linear mixed-effects model on. I am currently trying to run a simulation-based power analysis to determine the sample size I should try to collect for a replication attempt.   I know about the  function for fitted lme4 model objects, which will create simulated responses that follow the size and structure of the actual dataset.  My question is, how can I use this fitted model object to run an a-priori power analysis for my replication?. In other words, is there an easy way to extract the necessary information from the simulate function, vary the sample size, then to simulate responses?  EDIT:  Here is a simple example with ten subjects that should give me a good starting place. The data here are totally fake so the effects are not close to what I have in the pilot data.  The two variables of interest are age in months (between subjects) and whether the stimulus is "similar" or "dissimilar" (within subjects). Each individual is exposed to three items within each similarity group, for a total of six binary responses for each subject. As seen in the model, I am interested in a possible interaction between age and similarity and include a random slope of similarity to do this.   Let me know if I need to modify anything/provide more information to make things easier.   set.seed(28)  fakeData <- data.frame(ID = rep(1:10, each = 6),                        months = rep(round(runif(10, min = 60, max = 80)), each = 18),                        similarity = rep(c("Sim", "Dissim"), each = 3),                        response = sample(c(0, 1), 60, replace = TRUE))  fakeModel <- glmer(response ~ months * similarity + (similarity | ID), family = binomial, data = fakeData) summary(fakeModel)


Time is not shown for flags submitted yesterday

There is a bit of a discrepancy when showing when a flag was submitted. A flag submitted yesterday does not show at what time it was submitted, it just states "yesterday".  Other, older, flags show the time, as well as the date.         Not sure if this discrepancy is due to the "Pending" status.  It would be nice if the time is shown.  Why? Because I was wondering whether I should reflag my question for migration (in case it had fallen down a hole, or been forgotten about), and wanted to know how much time had passed. I thought that I had actually submitted the flag two days prior, and comparing its response time to those of my previous flags, it seemed as if the pending flag was taking its time in being "seen to". However, I was unable to determine exactly how long the delay was, as the time is not shown. Minor quibble, maybe.    With respect to this question being a possible duplicate, yes, agreed it is the same issue, relating to the timestamp mechanism, although those two questions ( and ), relate only to questions/answers and make no  explicit mention of the issue occurring with flags as well.  However, looking through the answers to the other question(s), I have just discovered that  provides the time stamp that I was looking for:


Can an intellect devourer be charmed by charm person?

The intellect devourer is a Tiny aberration, which would normally make it immune to the 1st level spell , but when it successfully uses its Body Thief ability on a Medium humanoid:     The intellect devourer   retains its Intelligence, Wisdom, and Charisma scores, as   well as its understanding of Deep Speech, its telepathy, and   its traits. It otherwise adopts the target's statistics.   Does adopting the target's statistics include the monster type changing from an aberration into a humanoid, which makes it vulnerable to charm person?  What happens when a charmed intellect devourer is Charisma (Persuasion) check'd into teleporting out of its host's skull and it becomes a Tiny aberration again? Is it still charmed?


Anthem-esque short story about a dude who is very smart and strong so he wears devices to slow him and weaken him

I remember reading a short story back in high school that was similar to Anthem by Ayn Rand about this guy who was very strong and smart. And because everyone in this world had to be equal he was forced to wear weights to slow him down, and he had to wear some device on his head that made it hard for him to see and hear, breaking his focus.  At the end of the story in breaks into a news station and tries like broadcasting a message. And he runs away with one of the ballerinas who has blocks on her feet so it makes it hard for her to dance.


When I initially set up my phone, I had to both choose a pattern and scan my fingerprint, for providing maximal security. Now, when I want to unlock my phone, I can choose, whether I want to do that with the pattern or with my fingerprint.  Why providing the fingerprint, when someone still can use my pattern? Is there any way, to deactivate the pattern, so that it can be unlocked by the fingerprint only?


Remove a specific latex command from the text AND closing bracket behind it

How to remove a specific latex command from the text AND closing bracket behind it, but to keep the text inside the brackets? The command in the following example to remove is \edit{<some staff>}. \edit{ and } should be removed, whereas <some staff> should be left unchanged.      Please fill free to suggest SED, or AWK, or Perl or whatever will do the job  senseless example:   We \edit{Introduce a} model for analyzing \emph{data} from various experimental designs, \edit{such as paired or \url{http://www/} longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN \cite{mycitation2}}.   Note that there might be one or more latex commands in the form \command{smth} inside \edit{} statements. \command{smth}  should be left as it was  Output:  We Introduce a model for analyzing \emph{data} from various experimental designs, such as paired or \url{http://www/} longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN \cite{mycitation2}.   PS. I am introducing a lot of small edits into my tex file. I want those edits to be highlighted, so my collaborator can see them. But afterwards I would like to remove all highlights and to send the text to a reviewer.  The question was originally asked at . But example there was too soft


Why is it enough to only check if $A\cdot A^{-1} = I$ when showing that $A^{-1}$ is the inverse of A?

A matrix A is said to be invertible if there exists a matrix $A^{-1}$ such that $A\cdot A^{-1} = I$.  Given that we find a matrix (call it $A^{-1}$) such that $A\cdot A^{-1} = I$, I'm wondering why it is enough to stop here and not check whether $A^{-1}\cdot A = I$ as well. Any hints?


How can we prove the inequality $e^x \le x + e^{x^2}$ for $x\in\mathbb{R}$?


I (desperately) need help with the following:  What is the null geodesic for the space time $$ds^2=-x^2 dt^2 +dx^2?$$  I don't know how to transform a metric into a geodesic...! There is no need to start from the Lagrangian. I know that $$0=g_{ij}V^iV^j$$ where $V^i={dx^i\over d\lambda}$  where $\lambda$ is some parameter. But I don't know what that parameter is nor how to find the geodesic.  Many thanks!! Please help!


Do intensive pronouns ever convey new information?

So for instance, the sentence 'I myself am called James' is not different to 'I am called James', information wise.  As a comparative measure, take the sentences, which make use of reflexive pronouns 'I cooked eggs for myself' vs 'I cooked eggs for her'. Here, different information is conveyed, because whilst the object is the same, the subject is different.  But the sentence 'I herself am called James', 'I her am called James', or 'her myself am called Alice', does not make sense, because the object can't be two different things at once.  Note: I've just thought that 'he himself cooked eggs' could imply that only he (whoever he is) cooked eggs, and only him alone. However, I don't think it necessarily means so, where 'he alone cooked eggs', would. Any thoughts on this would be much appreciated.


I stumbled across the following computation proving $2+2=5$    Clearly it doesn't, but where is the mistake?  I expect that it's a simple one, but I'm even simpler and don't really understand the application of the binomial form to this...


What is the escape velocity in the Kerr metric?

In the non-rotating Schwarzschild metric there is a straightforward expression for the escape velocity in the radial direction, defined from the point of view of a stationary observer at that radius, which is equivalent to the Newtonian result.  My questions are: is there an equivalent expression in the Kerr metric, how does it depend on the spin parameter, in which reference frame would that be defined and how does it depend on escape direction with respect to the spin axis?


Does "feel committed to" require an infinitive or gerund complement?   For example, which of the following is grammatical?        I feel committed to following up on that.   I feel committed to follow up on that.


Gedit cannot save in shared folder (Virtualbox)

I'm getting the Cannot save _____ Unexpected error: Error renaming temporary file: Text file busy  in Gedit 2 when I try to save in a shared folder with Virtualbox (Debian). I've searched and apparently it's a Gedit problem. None of the solutions seem ideal or work for me. Would it be possible to create a shell script (external tools plugin) that saves the file somewhere else, then copies it back in shell? So I'll need to grab wherever Gedit's stored the temporary (live?) file. Or if this is not possible/won't work/bad practice, does anyone know a good way to get around this? I really like Gedit and prefer to use it.  Currently, this is my script. I tell external tools not to save but pass the document as input (stdin) bin="" while read LINE; do     echo ${LINE}    # do something with it here     bin="${bin}${LINE}\n" done  echo $bin > /home/me/data2/test.txt  It works fine except it doesn't preserve tabs. I'my only editing plain text files. Edit: this also seems to skip the last line


Prove that the set of polynomials with rational coefficients is countable. (Doubt)

I have this question in my lecture notes and I've been pondering of over this since the morning.   I wish to represent the coefficients of any n-th degree polynomial by a set. Since this set has all the rational numbers (It's a subset of the set of rational numbers), hence If I further create the set of all such sets of coefficients, I shall have the power set of Q (set of sets of all possible rational numbers).  From what I understand, By Cantor's Theorem, we can state that any power set of a set (P(A)) has a cardinality greater than that of the set itself (A). I know that the cardinality of Q is aleph-null.   Then, By Cantor's Theorem, I can state that the power set of Q has the cardinality aleph-one, i.e., the set of all the polynomials with rational coefficients must have the cardinality aleph-one. Which is contrary to what I had to prove.   Can anyone please guide me where I'm making the mistake? (I believe there's some mistake at the point where I inherently assume that the set consisting of polynomials coefficient would be finite; I'm still unsure of it.)  Thanks in advance!   (Sorry for the fact that I don't know how to use LaTeX, apologies for that.)


How to use orderby with 2 fields in linq?

Say I have these values in a database table  id = 1 StartDate = 1/3/2010 EndDate =  1/3/2010  id = 2 StartDate = 1/3/2010 EndDate = 1/9/2010   Now I have so far this orderby for my linq  var hold = MyList.OrderBy(x => x.StartDate).ToList();   I want to order it however also using the end date.  Like so the order I would want this in as  id 2 id 1   So endDates that are greater go first. I am not sure if I need to change this to use some compare function or something.


Using substitution $p = x + \frac{1}{x}$ to reduce $2x^4+x^3-6x^2+x+2=0$

How do I use the substitution $p = x + \frac{1}{x}$ to show that the equation $$2x^4+x^3-6x^2+x+2=0$$ reduces to $2p^2+p-10=0$.  Now, I can do the problem in reverse, but when I try solving $p = x + \frac{1}{x}$ for $x$ and substituting, the resulting equation is too complicated and nothing like the form required.


Why is my destructor called only once and not on the delete(a) call?

using namespace std;  class A {};  class B {};  class C : public A {     public:     C(){ b = new B();}     B* b;     ~C(){         printf("in destructor\n");         delete b;     } };  void doSomething(A&aref) {     C c = (C &) aref;     c.b = new B();     int i; }  int main() {           A * a;      a = new C();     printf("Line 1\n");     doSomething(*a);     printf("Line 2\n");      delete(a);      return 0; }   Output is:  Line 1 in destructor Line 2   Tried removing the delete(a) and get same results.   Why don't I see the destructor called twice?  I'd expect it to be called at the end of the doSomething function and at the delete call.  Why does the doSomething function call the destructor? And why does the delete(a) not cause an error?


Getting a domain name off of the blacklist

I have a friend who purchased a domain name recently that he found out (after buying it) is apparently blocked by many corporate firewalls or proxies b/c it's been tagged as porn by the blacklist db they're using.    Are there any common agencies he can appeal to in order to get the domain name off the black lists?  It's not just one corporation, either, he's looking at marketing a subscription-based service to a certain industry, so any contacting a particular firewall/proxy admin and have them manually update the blacklist won't scale well.  Thanks in advance. Paul


I'm running a MacBook Air with Catalina 10.15.7 and Safari 14.0.  My homepage is DuckDuckGo but when I click on the homepage icon I get apple.com.  While the page is loading the URL is apple.com/startpage but the finished URL is just apple.com  I have no Profiles icon in System Preferences.  The homepage in System Preferences shows .  I have tried changing it but it goes back to duckduckgo and still opens with apple.com (BTW the apple.com page is an ad for iPhone 12).  This started 2 days ago.  I have used finder to search for numerous known adware sites but nothing has been found. I am not a computer techie, but I can follow directions if anyone can lead me in the right direction. Thanks for your help.  A picture of my Safari preferences is included.  I have no extensions and have forced quit Safari with no positive results


Is there any data in Tolkien (books/letters/etc..) to explain why there were precisely 9 Men rings and 7 Dwarf rings and 3 Elf rings? (the latter assumes that Sauron planned the number of Elvish rings to be 3 before he was thwarted by Elves making the rings themselves)  Was it because of the amount of tribes/kings he needed to deal with? Some magical/power limitations? Magical properties of numbers 9 and 7 (ala 7 Horcruxes)? A whim of Sauron's?    UPDATE: Looks like 3 and 7 are explained in the answers (3 elf lords and supposedly 7 Dwarf houses, though nobody provided canon proof).  What was NOT explained was why there were 9 Man rings?    If 9 was a meaningful amount, why? If it was merely "19-7-3" leftover, then why were there 19 total non-One rings made?


Can SOSL retrieve child objects from the result set of parent objects?

I have contact object and Registration Custom Object.  I want to list the registration object fields in contact object using relationship as follows:  SELECT id, name, (SELECT id,name FROM Registrations__r) FROM Contact;   I want to do the same thing using SOSL. is that Possible? I did something like this for Contact fields.  FIND 'searchText' IN ALL FIELDS RETURNING Contact(name,Email);   doesnot know how to use registration object fields here...


Do I need a transit visa for Paris when travelling to Italy with a Schengen visa?

I’m an Indian citizen travelling to Italy for leisure. I have a long layover in Paris. Do I need a transit visa? I do have a Schengen visa for Italy.


Adding lists of lists, double assignment

Short Story: Why and in what way is the list [2*[0]]*2 different from the list[[0, 0], [0, 0]]?  Long Story:  I was trying to do one of the Python Morsels exercises. Very simply: add all values of the same position in multiple lists of lists. The Example given in the question was:  matrix1 = [[1, -2], [-3, 4]] matrix2 = [[2, -1], [0, -1]] >>> add(matrix1, matrix2) [[3, -3], [-3, 3]]   So I gave it a shot and wrote the following code:  def addmorsel(*inputslists):     addlist = [len(inputslists[0][0])*[0]]*len(inputslists[0])     for listoflists in inputslists:         for i,onelist in enumerate(listoflists):             for j,value in enumerate(onelist):                 addlist[i][j] = addlist[i][j] + value     return addlist   But when I use this function on the example matrices it returns [[0, 0], [0, 0]] instead of the right answer. So I printed the returned addlist to see what happens and apparently the line addlist[i][j] = addlist[i][j] + value seems to add the value to every list within a list instead of only the list it is referencing to.   Replacing the addlist creation line addlist = [len(inputslists[0][0])*[0]]*len(inputslists[0]) by addlist = [[0,0],[0,0]] seems to do the job, but I do not understand why, because that is exactly the same as what addlist becomes by the previous line.   I thought: maybe it references the previous list or something, so I also tried addlist = [2*[0]]*2,so replacing the len() functions by their output, but somehow that also gives the wrong answer.   So my basic understanding of python lists is being shook here.  Why is [2*[0]]*2 different from [[0, 0], [0, 0]]?


Amazon FireTV without WiFi, MacBook Pro Internet sharing

I've been struggling for a while on this, strange set of circumstances.  I have a Amazon FireTV box that I cannot connect as university wireless does not support it.  I'm looking for a way to set up Internet from my MacBook pro (the uni WiFi won't allow Internet sharing however - and no Ethernet in my room!).  The only way i've found is to share my iPhone's 4G but I don't want to do that because of data usage.  Any way I can fix this?   I have an iPhone, iPad, Macbook Pro, HDMI cables, USB cables but not WiFi that I'm allowed to share!   Anything I can buy to make this work?


Under what $p$, $-1$ is a square in $\mathbf F_p$?

Let $p$ be a prime number. If -1 is a square in $\mathbf F_p$, it means that there exists an element of order 4. So $p-1$ is divisible by 4 and therefore $p \equiv 1$ (mod 4). I wonder the converse is also true. Does $p \equiv 1$ (mod 4) mean the existence of an element whose square is $-1$ in $\mathbf F_p$?


Efficient Robust Private Set Intersection Questions

I am trying to implement  using additive ElGamal.  I am trying to run the full protocol mentioned in Section 3.4 on the following inputs:   $p = 17$ (prime) $g = 6$ (generator) $x = 5$ (private key) $k = g^x \pmod p = 6^5 \pmod{17} = 7$ (public key)   Suppose the clients inputs are 1, 2. Then $P(x) = (x-1)(x-2) = x^2-3x+2$, and therefore the coeffiecients to encrypt are $(1, -3, 2)$. I chose $y = 10$ and so the encrypted values are:   $1$ becomes $(15,12)$ $-3$ becomes $(15, 1)$ $2$  becomes $(15, 4)$.   The Server Side Input Set $S=\{1\}$ and the random value $r0$ corresponding to $\{1\}$ is $r_0=2$.    With the above problem in context, I have some questions:   What does P 0,j refer to in Step 7. Can you please give an example? In Step 8, suddenly variable i is introduced along with j. What does i, j, refer to? In Step 8, ENC() function has a ; in between. How do we interpret ENC(a;b)?


Processor Heatsink - Thermal paste application

Do I have to apply more thermal paste to put the processor heat sink back into the laptop? OR, do I just need to make sure that the screws are tight, and it will work?  What are the problems with not applying more paste?    Also, if I do need to do so, how do I apply it? Just put some on and stick it together?  Thanks!


Possible causes of Java VM EXCEPTION_ACCESS_VIOLATION?

When a Java VM crashes with an EXCEPTION_ACCESS_VIOLATION and produces an hs_err_pidXXX.log file, what does that indicate? The error itself is basically a null pointer exception. Is it always caused by a bug in the JVM, or are there other causes like malfunctioning hardware or software conflicts?  Edit: there is a native component, this is an SWT application on win32.


macOS (BSD) vs GNU grep multiple pattern inconsistency

I am on macOS Sierra 10.12.6  $ grep --version grep (BSD grep) 2.5.1-FreeBSD  $ ggrep --version ggrep (GNU grep) 3.1 Packaged by Homebrew Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.     I am doing a set intersection:  BSD  $ grep -Fx --color -e '1' -e '21' <(echo 1; echo 21;) 1 # Where is the 21? Intersection of the same set should return the same set.  # -F for fixed strings # -x to match the whole line # --color just to make sure what was matched # two patterns '1' then '21'. Should be a logical OR of the two patterns # so a line matches if it matches either '1' or '21'   The input is the same as the two patterns. {1, 21}  If I flip the patterns on BSD, it works:  $ grep -Fx --color -e '21' -e '1' <(echo 1; echo 21;) 1 21     GNU  $ ggrep -Fx --color -e '1' -e '21' <(echo 1; echo 21;) 1  # works as expected 21     Is this a bug?


Let $R$ be a ring such that $a^5=a$ for all $a \in R$. Then it follows that $R$ is commutative.  This is part of a more general well-known theorem by  for arbitrary exponents ($a^n=a$), which appeared on math.stackexchange    . But what I would like to see is a proof which is (1) direct / elementary and  (2) in equational language (in particular, first-order). (As far as I know,    of Jacobson's Theorem is equational, but such a proof ). See  and  for such proofs for the exponents $3$ and $4$. I hope that these proofs make the "rules" clear.  What I've done so far: Reduced to the case that $R$ has characteristic $5$. Any element of the form $a^4$ is central,  it is idempotent and $R$ is reduced. Also, it suffices to prove $(ab)^2= b^2 a^2$ for $a,b \in R$. In fact, this implies $$ab=(ab)^5=a(ba)^4 b = (ba)^4 ab  = b a b (ab)^2 a^2 b$$ $$ = b a b (b^2 a^2) a^2 b  = b a b^3 a^4 b  = b a a^4 b^3 b  = b a b^4  = b b^4 a = ba.$$ Perhaps someone can feed automatic theorem provers with this problem. But my experience is that their proofs are not so easy to follow, quite long and not intuitive. So I am actually looking for hand-made proofs which eventually might also work for rings satisfying $a^p=a$ where $p$ is any prime.  Edit. Here is some progress, inspired by the  by Nagahara and Tominaga. Consider $a \in R$ and decompose the finite commutative reduced ring $\langle a \rangle$ into a product of fields - this is just the Chinese Remainder Theorem. Hence, $a=a_1+\dotsc+a_n$ where each $\langle a_i \rangle$ is a field with unit $e_i=a_i^4$. The only fields satisfying the equation are $\mathbb{F}_2$, $\mathbb{F}_3$ and $\mathbb{F}_5$, which are prime fields. Hence, $a_i = z_i e_i$ for some $z \in \mathbb{Z}$ is central and therefore $a$ is central. (This incredibly quick proof for the $(a^n=a)$-problem works for all exponents $n$ where every prime power $q$ such that $q-1|n-1$ is actually a prime number.)  2nd Edit. This leads to an equational proof. For simplicity, let us assume that $R$ has characteristic $5$.  (This reduction is not in equational language, but the cases of characteristic $2$ and $3$ can be dealt separately and in the end everything may be put into a single equational proof.) Then $\langle a \rangle$  is a quotient of $\mathbb{F}_5[T]/(T^4-1)$, which is isomorphic to $\mathbb{F}_5 \times \mathbb{F}_5 \times \mathbb{F}_5 \times \mathbb{F}_5$ via $f \mapsto (f(1),f(2),f(3),f(4))$. We can compute the corresponding idempotents: $$e_1 = (t-2)^2 (t-3)(t-4), e_2 = (t-1) (t-3) (t-4)^2, \\e_3 = (t-1)^2 (t-2) (t-4), e_4 = (t-1) (t-2) (t-3)^2.$$ Back in $R$ we obtain the equation $$a = e_1(a) + 2 e_2(a) + 3 e_3(a) + 4 e_4(a).$$ Each $e_i(a)$ is idempotent, hence central, and therefore $a$ is central. This proof may be carried out in equational language - but then we would have to verify the equation and that the $e_i(a)$ are idempotent, which is obviously very tedious.  Is there also a proof which is (3) not tedious?


I am using Mac OSX. When I type ls -l I see something like   drwxr-xr-x@ 12 xonic  staff    408 22 Jun 19:00 . drwxr-xr-x   9 xonic  staff    306 22 Jun 19:42 .. -rwxrwxrwx@  1 xonic  staff   6148 25 Mai 23:04 .DS_Store -rw-r--r--@  1 xonic  staff  17284 22 Jun 00:20 filmStrip.cpp -rw-r--r--@  1 xonic  staff   3843 21 Jun 21:20 filmStrip.h   What do the @'s mean?


I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So \headheight is too small. Here is a demonstration of the problem:  \documentclass[twoside]{scrartcl} \newcommand{\longfirstpagehead}{% \begin{minipage}{10cm} some\\long\\text\\text\\text\\text\\text\\text \end{minipage}} \newcommand{\normalhead}{normal} \usepackage{scrpage2}  \newpagestyle{firstpage}{%     {\longfirstpagehead\hfill} %twoside links     {\longfirstpagehead\hfill} %twoside rechts     {\longfirstpagehead\hfill} %oneside     (\textwidth,1pt) }{%     {\pagemark\hfill} %twoside links     {\hfill\pagemark} %twoside rechts     {\hfill\pagemark} %oneside } %  \newpagestyle{normal}{%     {\normalhead\hfill} %twoside links     {\normalhead\hfill} %twoside rechts     {\normalhead\hfill} %oneside     (\textwidth,1pt) }{%     {\pagemark\hfill} %twoside links     {\hfill\pagemark} %twoside rechts     {\hfill\pagemark} %oneside } %    \pagestyle{normal} \AtBeginDocument{     \thispagestyle{firstpage}}  \usepackage{blindtext} \begin{document}     %\vspace*{1cm}     \blindtext      \blindtext     \pagebreak \end{document}   I tried to read the height with \settototalheight and:   add a \vspace at beginning of document (unnice hack):  still the bad box warning (of cause) first section has different alignment  manually change \headheight in pagestyle  text height and page foot is wrong (can't change this because some scoping?)  use Komascript in pagestyle  \recalctypearea warning  geometry in pagestyle  pretty much the same problem like the manual attemp    So I would like to change the \headheight for the pagestyle firstpage, but the page should still have the same page margins, etc. The problem is that this has to work with \thispagestyle. (Better Ideas are also welcome) Something like \thispagegeometry in geometry would be great. ;)


Adding a new edge loop doesn't work on some parts

Sometimes i try to add a new edge loop but than it doesn't go all the way around. Does anybody know what I am doing wrong? I am using a Mirror modifier. And sometimes i like to delete a line by using x and than disolve edge. Or is this the problem? Picture:   Thanks for helping in advanced.


i cant find this integral $\int_0^1 x^{-x} \mathrm{dx}$


err: unable to locate package package:i386

When i install 32-bit libraries through command   sudo apt-get install 32-bit    libraries.Error occurred unable to locate package.  Please give me solution of this error.


I am In sudo group. Yet I can not do sudo commands

I have added myself to the sudo group. Yet when I try to perform A Sudo command, the error that says user not in sudoers group still pops up. Please help!


I have a recurring problem with Blender 2.64: I import a model, I start to edit it then suddenly the precision decreases drastically so that I can't move anything where I want to (there are huge gaps between available positions.)    I think it's due to IEEE-754 floating point representation but how can I fix it?  (I didn't scale my model.)  EDIT: I just realized that when I move an something, the edit bar indicates:  D: 0.0000 (0.0000) global  D: 1.0000 (1.0000) global (with the example above)  So the picker may switched to integer...


Is this a bed bug that i found on my pillow?

Found this last night on my pillow.   Is this a bed bug?  I put it on a papertowel to take the pic.  Its about 3mm in length. I tried to zoom in the best that I could.


How to resolve paths containing double dot directory references in powershell

Is there an easy way in Powershell to resolve a path like c:\a\b\c\..\d   so that the result is c:\a\b\d


Tabu table with different row-spacing between one-line and multi-line rows

during my work with Latex I encountered a problem with my tables. As you can see in the following MWE, theses tables sometimes have rows witch contain cells with multiple lines. Those rows have less distance to the following row than a row with only one-line cells. I have to use the tabu package because of its flexible columnwidth handling.R  \documentclass[10pt]{scrbook}  \usepackage{tabu} \usepackage{booktabs}  \begin{document}  \begin{table}[H] \begin{tabu} to \linewidth{lX[10000]} \toprule  \textbf{Name} & \textbf{Description} \\ \toprule Row one & Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\\ Row two & Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.\\ Row three & Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\ Last row & One last row.\\ \bottomrule \end{tabu} \caption{MWE} \end{table}  \end{document}   Compiled it looks like this:    I tried several solutions, I found during my search in this community and the whole www containing one or a combination of these commands:    \linespread{0.5} with \rmfamily or \selectfont renewcommand{\arraystretch}{1.2} \setlength{\extrarowheight}{2.5mm} >{\setlength{\baselineskip}{0.75\baselineskip}} between l and X in the \linewidth{lX[10000]} command   Now I hope anybody can help me to solve this.  Best regards, Gwedhwen


Biblatex/biber fails with a strange error about missing recode_data.xml file

I'm trying to use biblatex and when I compile my document I get an error like the following:  Windows  data source C:\Users\<username>\AppData\Local\Temp\par-5061756c\ cache-890efc00b3ca6b775c7d44a325c1349fb2a3a3bd\inc\lib/Biber/LaTeX/recode_data.xml not found in .   Mac  data source /var/folders/v2/rld0ls7d2935gkvqv5hfr1x00000gn/T/par-616c616e/ cache-cdd483146f82a9655ce063f848d5139480fbf872/inc/lib/Biber/LaTeX/recode_data.xml not found in .   Linux  data source /tmp/par-6963617269756d/cache-f37ab610b7d79b2720a8ee3732849c6821705520 /inc/lib/Biber/LaTeX/recode_data.xml not found in .


Is there a simple way of determining which executable is being invoked by a given command when which is not available?

I am working in a linux system that does not have a which command. Is there an alternative way of finding out which executable is being run by a given command in bash? It is a super basic system (think LFS), so it doesn't have strace, dtrace, or much like that, just the kernel, dev tools, core utilities, and several handfuls of extra packages. Some commands are long running, so ps is useful here, but some commands are near instantaneous.


Problem: For integer $n>2$, show that $(n!)^2 > n^n$   My attempt: I tried using induction. For $n=3$, the given condition is satisfied. Let us suppose $k!^2>k^k$ for some $k\geq3$.  Then, $(k+1)!^2 =k!^2(k+1)^2> k^k(k+1)^2$  Thus if I can somehow show that $k^k(k+1)^2\geq(k+1)^{k+1}$,  i.e., $k^k\geq(k+1)^{k-1}$,  I am done.  Any hints/suggestions are welcome. Any non-inductive proofs are also allowed


I have been trying many different ways to loop through the arguments, using different ways with for and while loops, yet it doesn't work. My script should take arguments and answer if they are files, directoies etc.  while $1 in "$@" ;do  if [ -f $1 ];then         echo "$1        regular file"  elif [ -d $1 ];then         echo "$1        directory"  elif [ -f $1 ];then         echo "$1        excuteable file"  elif [ -h $1 ];then         echo "$1        symbolic"  else         echo "$1        Does not exist" fi  1=$(( $1 + 1 ))  done   How do I loop though each arguments?


When rolling with disadvantage what is the chance to get a 1?

When you roll with disadvantage is the chance to get a 1 5+5 for 10% or 5X5 for 25%? Just sat down and rolled 100 times with disadvantage got 18 natural 1s and 0 natural 20s. Still don't know.


Get a list of all applications I have ever installed on any phone

This is strongly related to Android market. I have once used an application which I now cannot find using the search function. Unless it was withdrawn, it must still exist and I want to find it. Obviously the search would be easier if I could just manually go through all applications I ever installed on any phone.  Is that possible?


Is it true for a commutative ring $R$ and its ideals $I$ and $J$ that if the quotient $R$-modules $R/I$ and $R/J$ are isomorphic then $I=J$?


Can a warblade use maneuvers on thrown weapons?

Most strike maneuvers require a melee attack. Thrown weapons aren’t really melee attacks. Warblades get proficiency with thrown weapons.   Can warblades use strike maneuvers with thrown weapons?


Is Nikon D3200 optimal for my situation?

I am considering buying my first DLSR and found the D3200. It appeals to me because of the high MP count, 1080p video shooting and low price. It also seems to do very well on this site: . I have a pretty low budget < $600 and want to make sure I am getting the most "bang for my buck". Here are the things am I trying to consider while making this decision:   Is the camera cost effective? Will it be compatible with most Nikon lenses? Will it be a good platform for me to learn and grown in photograph?   So my question: Is the D3200 optimal for my situation?


Can somebody please team me where I can find the Blue topped ADD node it's driving me mad.... I was following a tutorial by Blender guru and he showed a node tree of a glass hack. cannot recreate it as I cannot locate the node  Many thanks


Warn users who are about to hit the "we are no longer accepting..." wall

I'm no longer able to post questions on Meta. I get the "We are no longer accepting questions from this account" message. I have a large number of downvoted questions here. Well, actually, there were only two such questions, but I'm not arguing. It is a fair deal. Like in aviation, rules on stack exist for a reason.  I'm asking to be warned about such things. I've seen dozens of different informational banners and popups on Stack Exchange sites. They provide help, inform you about/explain something.  But I haven't seen a warning like I describe. It would be nice to have one. Or not?


How to pass different datatypes values in RestTemplate FormData?

I'm trying to pass formdata through RestTemplate with different datatypes.  MultiValueMap<String, String> map = new MultiValueMap<String, String>(); map..set("app_id", 12); map..set("app_name", "Partner");   But the api I'm hitting throwing Bad request, I tried from postman same request works fine.  Is there any other way I can pass multidatatype request in restemplate formdata?


Related questions with over 99 score display incorrectly

The score for the 4 questions are 111, 1218, 261 and 5 respectively, but they display 2 digits per line. This is an obvious bug in design.


I am a Nigerian citizen with a student stay permit in Italy and I am flying to the US through Manchester. I will arrive Manchester on the 9th by 14pm and the continued flight is on the 10th by 11 am.  Do I need a transit visa? Will I go through boarder control? Can I go outside and return seeing that I have a long wait before the continued flight?


Why do some open applications appear as "question marks" in the Unity launcher?

I'm having a problem with a couple of programs that have launchers in unity but then create a separate icon after launched.  Is is possible for the launcher to track the windows it spawns to organize better?  Or is this a bug in Unity itself?    It might not matter but this specific program is a mono program, and the icon spawned is listed as the panel.


Annihilator of a quotient module over a local ring

Assume $R$ is a commutative local ring, $I$ is a proper ideal in $R$ and $M$ is a finitely generated $R$-module. Is it true that $\operatorname{Ann}(M/IM)=I+\operatorname{Ann}(M)$?    (Note that $\supseteq$ is clear.)  If it's true I would like (a hint for) an elementary proof (preferably avoiding any homological algebra).


Smartphone turns off my monitor when placed on a specific position?

I am not sure what the hell is going on, neither I know where to ask. For me it looks like phenomenon, but it often ends up being completely explanatory.    I've discovered that if I place my SAMSUNG Galaxy S4 mini smartphone somewhere in the right of the DELL Inspiron (n series) touchpad, it turns off the monitor. I made sure the mobile devise has nothing turned on (such as wifi, bluetooth etc)    DETAILS: It turns off the laptop's monitor when it keeps vertical proximity to the hotspot(s) not larger than an inch.    Who has any idea what this is about ?


How many groups of order $n$ with center {e} exist?

For which numbers $n$ exists a group of order $n$ with center {e} ?   And how many groups are there for a given order ?   The first such numbers are $6,10,12,14,18,20,21,...$ Groups of order $32,40,64$, for example have not center {e}. For $n=18$, we have $2$ groups with center {e}  Is there an easy criterion or formula ?


How to shrink Windows 7 boot partition with unmovable files

I have just bought an HP laptop with Windows 7 (64 bit). It has a 500 GB HDD with three partitions: a small hidden system partition, a 12 GiB HP recovery partition, and a 450 GiB C: boot partition.  I would like to split this large C: partition into two partitions, leaving only 100 GiB for the system, and giving the rest to a new data partition.  Although the Windows built-in Disk Management utility has an option to shrink the bootable partition, it only allows me to shrink it roughly by half, even though only 20 GiB on the partition is used. As far as I understand, system unmovable files lie in the middle of the partition, preventing Disk Management utility to do what I want.    And since new HP laptops don't come with OS installation disks (they only allow you to create recovery disks yourself), I can't just repartition HDD and then reinstall OS.  So, is there a way to shrink the C: bootable partition and preserve Windows 7 working?  P.S.: I have tried to use the third-party  utility, and after shrinking the partition, Windows 7 stopped booting, with a . System recovery didn't work, and I had to do factory recover. Since this is a long process, I would like to avoid doing it again :) So, please, suggest only proven solutions.


I have installed Adobe Reader, but I am not able to use features like highlighting, inserting comments, etc. in the current Adobe Reader while using in it Linux. How to use features like inserting comments and highlighting in Linux like I had in Windows and Adobe Reader?


is there a quick way to easily set up a pen and paper game online

OnineI was wondering since i found I want to play dnd. only problem is I have no one to play with. so I tried going online to play on roll20 and some other sites but they always say tomorrow or in a week. That's not what I'm looking for I'm looking for an easy quick So basically all I'm asking does anyone know a way to quickly and easily set up and play a game of dnd (when your a person with no friends)


Just getting started with ubuntu and want to know how to access the full hard drive

So I just bought this laptop the other day; its a Dell Latitude e5500. It has Intel® Core™2 Duo CPU P8400 @ 2.26GHz × 2; 2gb ram, 160gb hdd Mobile Intel® GM45 Express Chipset. When I bought it, Windows 7 came with it.  After setting up Windows 7, the computer was running really slow. I thought that it might just be the ram, but when looking in the task manager I saw that the CPU was constantly running at damn near 100% the whole time. So I decided to upgrade to Ubuntu 16.04.  So I used unetbootin to install Uubuntu, then did the full install. Once I had Ubuntu on the comp.   Now I saw the windows 7 partition on the desktop, and unmounted it; because I don't want windows 7 anymore and I didn't have anything on there that I wanted.  But now Ubuntu is telling me that I only have a 10gb hard drive when I should be seeing a 160gb hdd.   How can I find and access the full HDD so that I can utilize all of that space?


Google Data Studio: REGEXP_EXTRACT between two special characters

I'm trying to create a dimension by extracting name prefixes like Mr, Ms, or Dr to do some audience profiling. I can't figure out the regex function to do it and I could use help with it. My data is structured like this: Sheikh, Mrs. Billie Kotecha, Ms. Ami Verma, Dr. Amit Steel, Mr. Murray   I need to extract the value between , & . and return it as the new dimension. This is what I'm trying: REGEXP_EXTRACT(guest_nm, '\,(.*?)\.') where the guest_nm is the column that holds my data. However, I'm getting an error message: Syntax error: Illegal escape sequence: \,. I'm not good enough with regex to understand what my syntax error is and how to fix it. Your help with this would be greatly appreciated!


How is Grover's operator represented as a rotation matrix?

I have seen that it is possible to represent the Grover iterator as a rotation matrix $G$. My question is, how can you do that exactly? So we say that $|\psi\rangle$ is a superposition of the states of searched and not searched elements, that can be represented like this: $$|\psi\rangle=\sqrt{\frac{N-1}{N}}|\alpha\rangle+\sqrt{\frac{1}{N}}|\beta\rangle$$ Now you can rewrite that so you get this expression: $$|\psi\rangle=\cos(\theta/2)|\alpha\rangle+\cos(\theta/2)|\beta\rangle$$ I have seen that an application of the Grover iteration can be represented as a rotation matrix, e.g. in this form: $$G=\begin{pmatrix}\cos(\theta)&-\sin(\theta)\\\sin(\theta)&\cos(\theta)\end{pmatrix}$$ But how do you get to the shape, what are the necessary steps and calculations?  I hope that the question is expressed as understandably and clearly.


An html file with above form structure is given to you.   or      A html file with above form structure is given to you.


There exists an injection from $X$ to $Y$ if and only if there exists a surjection from $Y$ to $X$.

Theorem. Let $X$ and $Y$ be sets with $X$ nonempty. Then (P) there exists an injection $f:X\rightarrow Y$ if and only if (Q) there exists a surjection $g:Y\rightarrow X$.  For the P $\implies$ Q part, I know you can get a surjection $Y\to X$ by mapping $y$ to $x$ if $y=f(x)$ for some $x\in X$ and mapping $y$ to some arbitrary $\alpha\in X$ if $y\in Y\setminus f(X)$. But I don't know about the Q $\implies$ P part.  Could someone give an elementary proof of the theorem?


Help - Newbie Installed virtual box on my Mac and then latest Ubuntu

This is driving me crazy!  Installed VirtualBox on my Mac Air, then Ubuntu latest - resolution of Ubuntu is STUCK at 640x480 which is way to small.   I head on over to settings/display and see 'Built in Display' in Pink.  For the life of me, I have been unable to change this, I click on the 640x480 and it highlights but that is all....  Is there a way to fix this?  Cheers


This class must have only these 3 attributes

I must write a class Person with 3 attributes (Name,Surname,Age) in all his instances. How can i set it that it cant be possible to add more attributes? class Person:    def __init__(self,name,surname,age):         self.name=name         self.surname=surname         self.age=age


Java parallelStream not showing correct result

I was doing some performance evaluation of Java aggeragate operations to iterate over collections. I was doing an evaluation of performance stream and parallelStream. But I found that the output of parallelStream is wrong most of the times. For example in the following code i got wrong output from parallelStream more than 80% of the time:      public class ParallelStreamPerformance {     static int totaleven = 0;     public static void main(String[] args) {         List<Integer> randomList = new ArrayList<>();         Random rnd = new Random();         for(int i = 0 ;i < 1000;i++) {             int r = rnd.nextInt(500000);             randomList.add(r);         }          long s1 = System.currentTimeMillis();          randomList.stream().filter(e -> e%2 ==0).forEach(e -> count());         System.out.println("Even: "+totaleven);         long e1 = System.currentTimeMillis();         System.out.println(e1 - s1);          totaleven = 0;         long s2 = System.currentTimeMillis();          randomList.parallelStream().filter(e -> e%2 ==0).forEach(e -> count());         System.out.println("Even: "+totaleven);         long e2 = System.currentTimeMillis();         System.out.println(e2 - s2);     }     public static void count() {         totaleven++;     } }   My question is: Am I using parallelStream in a wrong way? Is there any way to ensure the correctness of parallelStream. Thanks


I have been coding Java for a short period of time so I do not know why my System.exit(0) command is not working.  This program tests a user on 1st or 2nd grade math. It takes in two "random" numbers and the user answers arithmetic questions. When the program asks the user whether they want to play again, entering N for No does not seem to register with the if statement that contains System.exit(0). The program just restarts as if the user entered Y.  import java.util.*;       class Tester {         public static void main (String[] args) {              SuperRandom randomNumberGenerator = new SuperRandom();              Scanner scan = new Scanner (System.in);              int selection, q1_1, q1_2, q1_3, q1_4, q1_5, questans;              int score = 0;              int a;              int b, i;              String scanchoice;              String choice = "Y";              final int numberOfQuestions = 5;              int getNextRandom;              int answer;              while (choice == "Y"){                  System.out.println ("Welcome to Math Tester 2.0.");                  System.out.println ("");                  System.out.println ("Please enter your grade level:");                  System.out.println ("1. 1st Grade Test");                  System.out.println ("2. 2nd Grade Test");                  System.out.println ("3. Quit Math Tester 2.0");                      selection = scan.nextInt();                          if (selection == 1) {                                  System.out.println ("Enter: " +selection);                                  System.out.println ("");                                  for (i=1; i<=5; i++){                                      a = randomNumberGenerator.getNextRandom(numberOfQuestions);                                      b = randomNumberGenerator.getNextRandom(numberOfQuestions);                                      System.out.println ("What is " +a + " + " +b + "?");                                      answer = a+b;                                      questans = scan.nextInt();                                      System.out.println("" +questans);                                          if (questans == answer){                                              score++;                                                 }                                  }                                     System.out.println ("");                                  System.out.println ("Max points possible: 5.");                                  System.out.println ("Your score: " +score);                                  System.out.println ("Do you wish to play again (Enter Y for Yes or N for No)?");                                      choice = scan.next();                                          if (choice = "N") {                                              System.out.println ("Goodbye!");                                              System.exit(0); //Exits program if user entered N.                                         }                                         if (choice = "Y");                                              choice = "Y";                                         }                          if (selection == 2){                          System.out.println ("Enter: " +selection);                          System.out.println ("");                          }                      if (selection == 3){                          System.out.println ("Goodbye!");                          System.exit(0);                     }               }          }      }


How to write symbol for altered transition matrix?

I'm trying to write this in latex: Does anyone know how to write this? (Thanks in advance)


What is the best way to maintain alignment of a set of equations while putting texts in between?

Sometimes I am writing an aligned list of equations, but I need to break them in the middle to add a comment, like:    Code:  \documentclass{article} \usepackage[utf8]{inputenc}  \usepackage{amsthm} \usepackage{amsmath} \usepackage{thmtools}         \setlength\parindent{0pt} \usepackage[linesnumbered,ruled]{algorithm2e} \usepackage{hyperref} \usepackage{caption}  \usepackage{cleveref}  \begin{document} \section{Introduction}  \begin{align*}     W(z) = A^TAB + \sum\limits_{\omega \in \sigma} a^2 V(z)\int_0^T rm(\theta)d\theta \end{align*} Obviously $A^TAB \leq 0$, therefore \begin{align*}     W(z) \leq \sum\limits_{\omega \in \sigma} a^2 V(z)\int_0^T rm(\theta)d\theta \end{align*}  \end{document}   But it would be better for the equations to remain aligned    What is the best way to accomplish this?


Let $R_1=\mathbb{Z}$ and $R_2=\mathbb{F}_4$.   1) Find all ideals in $R_1 \times R_2$.  Since $\mathbb{Z}$ has only principal ideals as $(0), (1), (2)...$  The ideals of $\mathbb{F}_4$ is where I get confused, I think they are also principal ideals which are $(0), (1), (2), (3)$.  Let $I_1 \rhd R_1$ and $I_2 \rhd R_2$. Then, the ideals of $R_1 \times R_2$ are   $I_1 \times I_2=\{((i_1),(i_2)): i_1 \in \mathbb{Z}, i_2 \in \{0,1,2,3\}\}$  2) Which of them are principal ideal?  I tend to think that they are all principal ideals.  3) Which of them are prime ideals, which are maximal ideals? I have no clue about this.  Any suggestion would be appreciated! Thank you!


Is it better practice to put a negative button on the left and positive button on the right?

I have a newsletter that includes a question at the end. I created two buttons. One is YES (the one I want people to click) and the other one is NO.  I put the two buttons side to side and I'm not sure if the positive button should be on the left or on the right?


Can't use Radeon GPU to render in cycles (R9 270)

In the settings I can't choose another device to render other than the CPU.     According to the blender wiki the GPUs "with a GCN Architecture superior or equal to 2.0 are supported".     And as I understand my GPU (R9 270) should be supported, according to this table from wikipedia(and has GCN 2.0 and up):   Or am I wrong and my GPU isn't actually supported? :(   GPU:    R9 270 (latest drivers)  OpenCL version: 22.19  Blender version: 2.79


How do electromagnetic waves travel in a vacuum?

This is perhaps a total newbie question, and I will try to formulate it the best I can, so here it goes. How does an electromagnetic wave travel through for example, the vacuum of space?   I usually see that waves are explained using analogies with water, pieces of rope, the strings of a guitar, etc, but it seems to me that all those waves need a medium to propagate. In fact, from my point of view, in those examples the wave as a "thing" does not exist, it's just the medium that moves (involuntary reference to The Matrix, sorry).   But in space there is no medium, so how does a wave travel? Are there free particles of some sort in this "vacuum" or something? I believe , so supposedly there isn't a medium for the wave to travel through.   Moreover, I've seen other answers that describe light as a perturbation of the electromagnetic field, but isn't the existence of the field, potential until disturbed? How can it travel through something it does not exist until it's disturbed by the traveling light in the first place? (this last sentence is probably a big misconception by me).


Elements in the quotient ring $\mathbb Z \left [ \sqrt 2 \right ] \big /\langle 5+2\sqrt 2\rangle$

I am trying to find the elements in $\mathbb Z \left [ \sqrt 2 \right ] \big /\langle5+2\sqrt 2\rangle$. $\textbf{My attempts}$: We know that there is a ring homomorphism  $\mathbb Z[X] \to \mathbb Z \left [\sqrt 2 \right ] \big /\langle5+2\sqrt 2\rangle$. Because there is a ring homomorphism $\mathbb Z[X] \to \mathbb Z \left [ \sqrt 2 \right ]$ by $X\to \sqrt 2$ which is surjective and $\mathbb Z \left [\sqrt 2 \right ] \to \mathbb Z \left [ \sqrt 2 \right ] \big /\langle5+2\sqrt 2\rangle$ is also a surjective ring homomorphism. So, there is a surjective ring homomorphism $\mathbb Z[X] \to \mathbb Z \left [\sqrt 2 \right ] \big /\langle5+2\sqrt 2\rangle$, whose kernel is $\langle X^2-2, 5+2X\rangle$. We can conclude that $$\mathbb Z[X]/\langle X^2-2,5+2X\rangle \simeq  \mathbb Z \left [\sqrt 2 \right ] \big /\langle5+2\sqrt 2\rangle.$$ Now, I am stuck. Any hints will be helpful. Thanks in advance.


How do I bypass restrictions on the length of the PATH variable

System Properties      This environment variable is too large. This dialog allows setting values up to 2047 characters long.   I use/have used a lot of software, and my PATH has grown as a result. When I try to add new paths, I get the above message. As a workaround, I'm editing my user path, but prefer not to.


Why can I only boot once from a UEFI boot entry?

On an Acer Aspire XC-105 I can only boot into a clean install of Ubuntu 16.04 only once for each entry that is made in the UEFI, with the UEFI entry no longer existing after a restart.  For some reason, the UEFI entry gets removed after the system is shut down or restarted after having boot from that specific entry.  This also applies to custom boot entries added manually.  # modprobe efivars # efibootmgr BootCurrent: 0004 BootOrder: 0004,0005,0002,0001 Boot0001  Windows Boot Manager Boot0002  Ubuntu Shim 2 Boot0004* Ubuntu Shim 4 Boot0005  Ubuntu Shim 5   The Ubuntu Shim # entries are entries manually added with this command:  efibootmgr -c -w -l '\EFI\ubuntu\shimx64.efi' -L "Ubuntu Shim #"   Once I restart the system it gives the following error:  Reboot and Select proper Boot Device or Insert Boot Media in selected device and press a key   If I press ctrl+alt+delete, and press DEL to enter the Bios Setup, I can see Ubuntu Shim 5 as the first boot option, and I can now boot Ubuntu successfully, and the previous Boot entry is no longer there.  # modprobe efivars # efibootmgr BootCurrent: 0005 BootOrder: 0005,0002,0001 Boot0001  Windows Boot Manager Boot0002  Ubuntu Shim 2 Boot0005* Ubuntu Shim 5   If I restart the system again and immediately enter the BIOS, I see Windows Boot Manager as the first boot option, but I can now boot Ubuntu successfully, and the previous Boot entry is no longer there.  # modprobe efivars # efibootmgr BootCurrent: 0002 BootOrder: 0002,0001 Boot0001  Windows Boot Manager Boot0002* Ubuntu Shim 2   I now have to create new UEFI boot entries if I want to be able to boot Ubuntu again.  Why do the UEFI entries disappear on the next boot once they have been booted from?


Error: Out-of-line constructor cannot have template arguments C++

I have some code that looks like this in an Array.hpp file  template <typename T>  class Array {    private:     T *_array;     int _arrSize;     public:     Array<T>();     Array<T>(unsigned int n); ... };   then on the Array.cpp file I have like this  #include "Array.hpp"  template <typename T> Array<T>::Array<T>(){};  template <typename T> Array<T>::Array<T>(unsigned int n) : _arrSize(n) {     T *a = new T[n];     for (unsigned int i = 0; i < n; i++) {         a[i] = 0;     }     this->_array = a; }; ...   then a main as simple as  int main() {     Array<int> g(2);     return 0; }   but when I try to compile this with clang++ -Wall -Wextra -Werror -std=c++98 *.c I get this error   Array.cpp:16:11: error: out-of-line constructor for 'Array' cannot have template arguments Array<T>::Array<T>(){};           ^    ~~~ Array.cpp:19:11: error: out-of-line constructor for 'Array' cannot have template arguments Array<T>::Array<T>(unsigned int n) : _arrSize(n) {           ^    ~~~    I'm not sure what I'm doing wrong


Prove $\lim_{x \to \infty} (1+1/x)^x = e$ using sequences

I'm aware of the proof of $\lim_{n \to \infty }(1+\frac 1n)^n = e$ using monotone convergence theorem but I want to prove $\lim_{x \to \infty} (1+\frac 1x)^x = e$ using sequential criterion for limits . How I can write it rigorously ?  More precisely : For every $a_n \to \infty$ s.t $a_n \in D_f$ prove $(1+\frac 1{a_n})^{a_n} \to e$ $\ \ \ \ \ \ \ \ \ \ (\star)$


I'm trying to show that $Q[\sqrt3]$ is a field. I am particularly struggling with showing that every element is a unit.   So for some element, we want to show that for some element $a+b\sqrt3$, there exists $c+d\sqrt3$ in $Q[\sqrt3]$ such that $(a+b\sqrt3)(c+d\sqrt3) = 1$.  Is that the right direction? I am not really sure of how to come up with that inverse though. Any help would be appreciated.


is invisible in the  section, but visible in the  section. What gives?


How many possible isomorphisms do we have between G and H?

Let $G=(Z_4,+)$ and let $H=(U_5,*)$ where $U_5 = \{[1],[2],[3],[4] \}$ . I know that $[1]$ and $[3]$ are both generators for $G$. I also know that $[2]$ and $[3]$ are both generators for $H$. In order to construct isomorphism we have to map a generator to a generator. And so, $\phi([1]^x_4) = [2]^x_5$ is an isomorphism from $G \longrightarrow H$. Also $\phi([1]^x_4) = [3]^x_5$ is another isomorphism from $G \longrightarrow H$.  Can we do the same thing for the other generator of $G$. And so we would have two more isomorphisms, Namely $\phi([3]^x_4) = [2]^x_5$ and $\phi([3]^x_4) = [3]^x_5$  is that true ? and if it is true, then does that mean that if we have $n$ generators for a group $G$ and $m$ generators of a group $H$ then i would have $nm$ isomorphisms in total ? Thanks


How to translate coordinates on the earth

I am trying to translate coordinates. I have a set of coordinates for city A which I need to map to city B, given a point P1 in city A maps to P2 in city B. How do I do this? This problem would be similar to a translation transformation but in this case, it's on a sphere and not on a plane.


Finding the Matrix of a Linear Operator Satisfying a Polynomial

This question has been doing my head in, as it limits us to not use eigenvalues, diagonalization or anything analogous -- just strictly linear functions.     Given a linear function $f : \mathbb R^3 \to \mathbb R^3$ that satisfies $p(x) = x^2 - x + 1,$ find the matrix $A$ of $f$ with respect to the standard basis of $\mathbb R^3$


Is there a work around to get protected Hulu or Amazon Prime instant videos working?

When I went to watch some only episodes of star trek on Amazon Prime, the player would get stuck on updating. I followed the instructions  and doing so actually worked for 3 seconds. It was the oddest thing. Clearly the video was playing and I saw 3 seconds of the episode, but a message came up saying I needed to update my flash player. I tried loading videos over and over again, but no success, not even the 3 seconds. Here is the error message:  Sorry we were unable to stream this video. This is likely because your Flash Player needs to be updated.   I am running Ubuntu 13.04 Raring Ringtail, Firefox 20, and adobe flash-player 11,2,202,280. Apparently Adobe isn't going to make newer versions of flash available for Linux, only security updates.   So has anyone been able to play prime instant videos, and if so, under what circumstances? Is there perhaps an alternative implementation of the flash plugin I can use? Or is the cause of my problem something different altogether?    Problem probably has to do with the version of flash being used. If anyone has gotten Prime to work with an my current version of flash or an open-source/free implementation of it, please do tell. Or if anyone can get videos on amazon to play with any other parameters aside from changing my browser to chrome, please tell me.  This also affects  and other services that employ DRM through Flash.    What hasn't worked:   Using Chrome which has the newest version of flash via ppapi. Amazon Prime strictly prohibits it. Using Chromium has the same issue as using firefox Trying to install Adobe Flash 11,2,202,275. Is not compatible with raring libraries(?).


I have posted questions about this, but they werent clear, here is my actual misunderstanding.  $$I = \int_{-\infty}^{\infty} e^{-x^2} dx$$  I dont understand, we say:  $$I = \int_{-\infty}^{\infty} e^{-x^2} dx$$  Then we say:  $$I = \int_{-\infty}^{\infty} e^{-t^2} dt$$  I want to see how this process works?  We consider  $$f(x) = e^{-x^2}$$  Right? Then we say that:  $$f(t) = e^{-t^2}$$  Right?  Ideally we are replacing x with t correct? Then we say: where R is the whole real axis.  $$I^2 = \int_{R} \int_{R} e^{-(t^2 + x^2)} dtdx$$  But the problem is that now you consider t and x different axes, while before they lay on the same axis.  How does this work?


When does a noun can be used as a adjective avoiding the use of saxon genitive? I am writing a tittle that states: "FDA's, EPA's, and TTB's regulations", but I would like to avoid using the saxon genitive (if possible) because the tittle looks longer and more complicated. I would prefer to say "FDA, EPA, and TTB regulations." Is the second sentence correct? Can we use FDA, EPA, and TTB as if they were adjectives?  Note: FDA, EPA, and TTB are US Regulatory Agencies.  Thank you,


PHP Preg Match All but Others Being Returned

I am trying to locate all matching strings in my content with preg_match_all() but it is returning some random results. Here's my content: This is my content but it is completely dynamic... [[hello_world]] [[hello-world]] [[hello world]]  I am wanting to only return this: [[hello_world]] preg_match_all('/[[[a-z0-9_]+?]]/', $content, $matches);  but it is returning this: 0 => "[[hello_world]]" 1 => "world]]" 2 => "world]]"  I am wanting to only return this: [[hello-world]] preg_match_all('/[[[a-z0-9-]+?]]/', $content, $matches);  but it is returning this: 0 => "world]]" 1 => "[[hello-world]]" 2 => "world]]"  I am wanting to only return this: [[hello world]] preg_match_all('/[[[a-z0-9 ]+?]]/', $content, $matches);  but it is returning this: 0 => "world]]" 1 => "world]]" 2 => "[[hello world]]"  Thanks for the help!


Loading indicator loads forever when clicking "close" on a question I already voted to close

I wanted to retract a close vote. So I selected more/close    Result: the circle is spinning "forever", but no crash. Pressing ESC brought me back to the question.     Related but not a duplicate:


Unable to prove that a statement is an equivalent form of the Axiom of Choice

The exercise 22  page 158 of Elements of Set Theory by B. Enderton is the following:     Show that the following statement is another equivalent version of the axiom of choice: For any set $A$ there is a function $F$ with $\text{dom }F=\bigcup A$ and such that $x\in F(x)\in A$ for all $x\in\bigcup A$.   The versions of the axiom of choice that I know for the moment are:        (although the Cardinal comparability and Zorn's lemma were stated as well, the author didn't prove yet that they're equivalent to the Axiom of Choice)  and the following form: (Exercise 18 in the same page)        I proved that AC III implies the statement of the exercise as follows:  Let $A$ be a set According to AC III there exists a function $f:\mathcal{P}A\setminus\{\emptyset\}\to A$ such as $\forall X\in\mathcal{P}A\setminus\{\emptyset\},\,f(X)\in X$.  Let  \begin{align*} g:&\bigcup A\,\,\to \mathcal{P}A\setminus\{\emptyset\}\\ &x \quad\quad\mapsto\{a\in A\mid x\in a\} \end{align*}  $g$ is a well defined function/  Let $F=f\circ g$. Then $\text{dom }F=\text{dom }g=\bigcup A$.  Let $x\in\bigcup A$. $F(x)=f(g(x))=f\left(\{a\in A\mid x\in a\}\right)$. Thus $F(x)\in\{a\in A\mid x\in a\}$. Thus $x\in F(x)\in A$.$$\tag*{$\square$}$$  I couldn't prove the other way. I had two ideas:( $F:\bigcup A\to A$ such that $\forall a\in\bigcup A,\,a\in F(a)\in A$)  1) We could try to construct an "inverse" of $F$. But $F$ isn't necessarily injective nor surjective. Thus such a construction would require the axiom of choice.  2) We could consider $f=F\circ g$ where $g:\,A\to \bigcup\bigcup A$ and $F:\,\bigcup\bigcup A\to\bigcup A$ but I couldn't find a suitable $g$.  Could you please help me? Thanks you in advance!


why blender motion track didn't render the movie?

I build a motion tracking animation, but the render result didn't shows my video. I make sure my nodes are linked right. what's wrong with my animation? please help me!


Breaking a long list into shorter, regular lists

I have a long list I would like to break into shorter lists. I am using a list comprehension but it seems a bit long and inelegant. Is there a better way?   # z is a list z = range(99)  ##  zz should slice z into short lists with three members ##  using list comprehension I get this zz = [ z[i : i+3] for i,x in enumerate(z) if i%3 == 0 ]  # seems a bit verbose. is there a cleaner way?


I've got several large MFC applications here, and converting them into any other format is out of the question.  We're expanding into other markets, and would like to make the apps work in other languages and cultures.  So far, I've found occasional references as to what to do with Visual C++ version 6, with one mention that later versions of MFC have additional relevant features.  Searching MSDN gives me instructions on how to convert the apps to Unicode, which we already did.  I found nothing on MSDN on how to make languages multilingual once they're in Unicode, only a few older things using Google, and one book about internationalization using VC++6.  (We're using Visual Studio 2008 now, on XP and Vista.)    I make no claims for the strength of my Google-fu, and would be happy to be directed to things I've missed.  Is it reasonable to use the methods of VC++6, or should I use later features?  If I should use features later than that, where can I find some reference to them?  Is there something I should worry about other than setting the locale, converting all strings to resources, and duplicating resources in different languages?  I can find more things about .NET internationalization, but I'm inexperienced in .NET.  What will I find there that's applicable to VC++ and MFC?  Edit:  I just ran into difficulties trying to put Unicode strings into the String Table resource.  (As far as I can tell, Unicode strings need to be entered into the .rc file with a text editor, in L"0x0034" form.  I haven't found a resource editor way to do that.)  Any tips on that?  Any other resource I can use in VS2008 using VC++ and MFC?  Edit:  Somebody on a Microsoft forum suggested that I open the offending .rc file in Notepad, and save it in Unicode.  Unfortunately, this doesn't seem to fix the dialogs, although the stringtable seems to be working in Japanese.


Intel Dual BandWireless-AC 3168 driver PPA doesn't exist

Hi I have exactly same problem as    I am new and I dont have 50 reputaion to comment on the question.  When I run   sudo add-apt-repository ppa:canonical-kernel-team/ppa   it shows  ERROR: '~canonical-kernel-team' user or team does not exist. Error: 'ppa:canonical-kernel-team/ppa' invalid   I am connected to the internet already. Is there another way to get kernel 4.8?


Corrupted rendering of Courier New font in Windows Server 2003

I have two virtual machines with Windows Server 2003 running in VMware Workstation 11.0.0 on Ubuntu 14.04.1.  Unfortunately several days or weeks ago both the machines started to render all four fonts (font styles by MS terminology) in the Courier New OpenType typeface in a corrupted way (first example - ClearType ON, second - ClearType OFF):     It looks like some horizontal lines of pixels are completely missing in the ClearType rendering. As a result small fonts are unreadable. Other typefaces seem to render normally.  The corresponding font file according to googling of the MD5 looks normally:  File:     C:\WINDOWS\Fonts\COUR.TTF Size:     303,296 bytes MD5:      72c75860d89e91a517dfb1e7d308c180 Created:  Sunday, 18 February, 2007, 13:00:00 Modified: Sunday, 18 February, 2007, 13:00:00   Here is the same problem in the Font Viewer (ClearType ON):    I suspect that the problem was caused by one of two recent batches of Microsoft Updates. Could you please recommend how to troubleshoot the problem?


Is there a terminal command that will log you out of your current desktop session and take you back to the login screen?


Difference between 'went home' and 'went to home'

I'm a little bit confused over the difference between the following sentences.   I went home. I went to home.  Could someone please explain the difference.


Starting a D&D game with no experience as a DM or a player

So I'd like to start a D&D 5E game with my friends via discord and Roll20.  The problem however is that altough I have watched a lot of D&D, I nor my players (except 1)  actually have ever played it. I've tried to do a lot of research, and am currently laying the land for a short one shot and/or small campaign. However I suspect that starting as a DM who hasn't even played the game before, I'm most likely going to screw this up, probably even killing the motivation for the players to come back.  I don't want this to happen. It took me a very long time to even realize my friends were interested, and it's not in my native tongue.  Honestly, I'm even scared to start.  Currently, I feel like I'm drowning in rules, and don't know how to make sure I'm prepared and my players are prepared.  That's why I decided to come here and ask people here if they know of tips and tricks, tutorials, important rules, essential material or anything that could help me make this as enjoyable as possible for my players. I'd really like this to be the start of something great, and not be the end of my interest in the game :/  So yeah, if someone can help me, I'd be eternally grateful.   Much luv, a New DM


give an example of a function $f:\Bbb R\to\Bbb R$ such that $\forall x,y \in \Bbb R$,$|f(x)-f(y)|\lt|x-y|$ but there is no $x \in\Bbb R$ such that $f(x)=x$


Do I need visa to either transit or leave the airport during a long layover in Zurich?

I'm an Indian national and I will be travelling from US to India with a 23-hour layover in Zurich.   I have a valid US F-1 visa student visa and might be interested in leaving the airport for some sightseeing.   If I do need a visa, what type and documents, and how long would it take to get?


Active or Disabled action button in a mobile form?

I have a "change password" screen where the user's password has expired and he/she has to change it. it's a standard screen with "New password" and "Re-type new password" fields, with an inline validation that checks whether the password guidelines are met (while the user is typing): 8 characters, 1 digit, 1 number, 1 special character.  we have an argument whether the main "change password" action button should be disabled until all the validations are clear, or to keep it active and provide an error message if needed.  what do you think is better?


How to install PostgreSQL 9.2 with PostGIS 2.0 on Ubuntu 11.10 (or higher)?

I have read this question: , but it didn't resolve my problem.  I added the  and installed the postgresql-9.2 package, but there is no package for PostGIS.


Authentication ways for salesforce to salesforce connection

My question is a generic one, so i am sure someone will flag it, but i am hoping i can receive some helpful directions. I have 2 salesforce org - Org1, Org2. I build a rest API in Org2. Now i need to access it from Org1. My integration concepts are weak and there is so much stuff that i do not know where to start, given that i cant spend 6 months learning authentication before delivering my work. From what i understand, there are 2 ways for this connection to work -  Where a user from Org1 gets authenticated into Org2 as himself. Which means he will have a user account in both orgs. Someone told me that there is a way to set up connected app to achieve this, and we will need to use JWT to achieve this. Is that correct? Where all users from Org1 gets authenticated in as a common API user set up in Org2. And that API user will have proper access. Again, someone told me that there is a way to set that up in connected app. I will google more into it I have also noticed that community users (who technically dont even have an account in an org) gets authenticated as portal users. Not sure if that is any different from above 2.  Does above 3 categories summarize all the possible ways to connect Org1 to Org2 when accessing rest api inside Org2? I just need brief summary of how many ways can it be done, and some directions on what topics to read for it. Most people just say - "read about OAuth - . I understand that is a good advice, but for a newbie who needs to start working on stories right away, it will take me forever before i can deliver anything. So looking for some advices on quick summary and ways to quick start some implementation, then i will grasp concepts as i go on with implementation steps. SO far i know how to write classes that expose methods as rest apis. I know connected apps perform the task of OAuth. It gets confusing for me when i see some code using JWT, some discussions on cross-org, basic auth, etc etc. Information is scattered. It seems like unending pool of "things i dont know or dont even know what i am missing". So i figured i will start with a simple use case of Org1 users trying to access rest resource in Org2. Any guidance on how many ways to achieve it (authentication part) and what is the path to do that, would be greatly appreciated. I would start by reading those specific topics and implement it.


Difference  between should, must, can, may in a conversation and a sentence.


Why the question author is totally blank?

It shows no question owner, not even a simple name (without link).   What happened?


How to Link/Append a data-block using the Python API?

I'm searching a way to append a group in Python.  It should behave exactly like the Append function (ShiftF1) works, all objects should be local and editable. The idea is to append a character (with rig etc.) via Python and not Link it (to be able to modify it without making everything local one by one).  Thanks


Punctuating a Sentence Containing a Question

If a sentence contains a complete question, but ends with a statement, should it be punctuated with a question mark?  Example:      Could she go to the store, he wondered


$ a \equiv b \ (\text{mod} \ p) \Rightarrow a^{n} \equiv b^{n} \ (\text{mod} \ p)?$

Could someone help with this, please? I don't know how to solve this problem. Maybe it helps that $(a-b)$ is a multiple of $(a^n-b^n)$, but I'm not really sure about it


Which one is correct and why?     I can speak (a language).      I know to speak (a language).


Rate of expansion of universe during big bang

We say big bang was the explosion not in the space but of the space itself that took place in a fraction of seconds. Speaking practically, we say the universe has no edge and is infinite. If the universe expanded to infinite in a fraction of seconds, can we say the rate of expansion during big bang (predicted) exceeded the speed of light?


Do commuting matrices share the same eigenvectors?

In one of my exams I'm asked to prove the following      Suppose $A,B\in \mathbb R^{n\times n}$, and $AB=BA$, then $A,B$ share the same eigenvectors.    My attempt is let $\xi$ be an eigenvector corresponding to $\lambda$ of $A$, then $A\xi=\lambda\xi$, then I want to show $\xi$ is also some eigenvector of $B$ but I get stuck.


Toggle button/switch: is there a standard way to indicate the currently selected state

We are implementing a toggle to switch between two different ways of showing data in a table. I created a mockup for the toggle but shortly afterward realized that people are very divided in how they interpret toggle buttons. There seem to be two camps:  Toggle as depressed button. The darker side in this case indicates the current selection as it replicates the model of a pushed button or side of a switch. For example:   (source: )  Toggle as a slider. The lighter side in this case indicates the current selection as it replicates the model of a slider being moved to one side to indicate preference. For example,    Obviously, these two methods contradict one another. Currently we are using method 1 but before we get any further along in development I wanted to confirm with a larger audience, which of these do you think is a more universal way of understanding/interpreting a toggle button's state? Or is this just a nebulous issue and it might be better to avoid toggles for this altogether?


Code is indented 4 spaces but is not interpreted as code [this has nothing to do with lists]

Steps to reproduce: 1. Note that instructions at right of screen say "indent code by 4 spaces." My interpretation of this is that lines that are indented by four spaces will be recognized as code. 2. Ask a new question on stackoverflow. 3. In the message text area, type the following: This is some code[enter][space][space][space][space]++n; 4. Note that the code is indented four spaces but the preview does not format it as code. 5. Post the message. Note that the code is not properly formatted.  Is this a bug or am I not understanding the instructions correctly?  I am aware of this post   and its apparent duplicate at . Both of those deal with code that is part of a list. My question concerns code that is not part of a list so I have started a separate discussion.  Edit: changed the title to make clear that this question has nothing to do with lists or and is unrelated to the several other posts on meta that are related to code indentation problems in the context of lists.


how do i install ubuntu on a fresh computer

The computer has no os and i am currently trying to boot from a usb stick. It says that it is invalid. The usb has 13.04 on it. Thank you for the help.


Continuous with compact support implies uniform continuity

This might be a duplicate but I tried googling the MSE site and could not find a satisfactory answer.  Let $(X, d)$ be a metric space and $f$ be a real valued continuous function on $X$. Suppose $f$ has a compact support. Does this imply the uniform continuity of $f$?   I tried proving this statement,  but only for locally connected spaces have I succeeded in doing so. Is thus true for general metric spaces? I just couldn't provide a proof (or a counterexample) by myself. Please enlighten me.


I have always been able to format my MP3 Player by right clicking on it. Presently when I right click on it, there is no such option. Only eject or safely remove is present. I tried other devices and get the same result. Any insight into this problem will be appreciated.  Ubuntu 12.04 64


Reference request: introduction to commutative algebra

My goal is to pick up some commutative algebra, ultimately in order to be able to understand algebraic geometry texts like Hartshorne's. Three popular texts are Atiyah-Macdonald, Matsumura (Commutative Ring Theory), and Eisenbud. There are also other books by Reid, Kemper, Sharp, etc. Can someone outline the differences between these texts, their relative strengths, and their intended audiences?   I am not listing my own background and strengths, on purpose, (a) so that the answers may be helpful to others, and (b) I might be wrong about myself, and I want to hear more general opinions than what might suite my narrow profile (e.g. If I said "I only like short books", then I might preclude useful answers about Eisenbud, etc.).


Can anyone help clarifying the geometry in this probability, random variables question.

So basically the question is to find the CDF of $Z$ where $Z$ is the random variable that signifies the distance from a point in a square(sides 1 length) to a fixed vertex of the square. I do not understand the calculation of the geometry in the following picture :


Measure CPU, Disk (I/O) and Memory Used by a Specific Database

For reasons outside the scope of this question, I need to deploy a specific database from my main server to a secondary server; the problem I have is that the secondary server does not exist yet and I need to purchase it.   The thing is, how can I measure the CPU, IO and Memory used by this specific database in order to buy a server capable of handling the load of this specific database in the same (or less) time than the current server?  Any guidance on this topic is greatly appreciated.


Why is the "Ask a question" page still so unhelpful in 2018?

It seems to me that almost all of the drama on SO/SE is the result of "bad questions". Many thousands of programmer-hours, I'm sure, have been poured into moderation tools, voting tools, queues, tags, flags, etc. And yet the "Ask a question" page looks like it was written in 2008 and left alone since then. Every post on the topic of question quality links to one of the many excellent "How to ask questions" pages on the net, but the "Ask a question" page links to none of them, nor does it offer any advice of its own beyond an itsy-bitsy, essentially invisible link on the far, far right of the page.  Why doesn't the "Ask a question" page impart any of the hard-won expertise in asking and answering questions that the community has gathered over the years? Why doesn't it suggest anything to the user other than possible duplicates? Why is it that so much effort has been put into every part of the site except the single most relevant page to the goal of attracting quality questions?  Our site's main entry point for questioners looks like a Google search, so why is anyone surprised or upset when people treat it like a Google search? Push button, receive answer, right?


Installing Apache HTTPD RPM on an offline RHEL 7.2 server

I need to install httpd on an offline RHEL 7.2 box, which means no yum.  I read somewhere that httpd comes natively as part of RHEL 7.2, but I can't find it anywhere within the server.  Is there any way I can get an RPM package for installation? Since the box is offline, I can't use yum.


Typing a word in between two aligned equations

Is it possible to type something such as "and" in between these two aligned equations where the arrow mentions?. If so, can anyone kindly tell me how to achieve this?   Here is the screenshot     and here is my code:   \begin{align*} \bigl(Sf\bigr)\bigl(v_{1},\ldots,v_{k}\bigr) &:= \sum_{\sigma\in S_{k}} f\bigl(v_{\sigma(1)},\ldots,v_{\sigma(k)} \bigr), \\  \bigl(Af \bigr) \bigl(v_{1},\ldots,v_{k}\bigr)    &:=\sum_{\sigma\in S_{k}} \bigl( \text{sgn\,}\sigma\bigr)  f\bigl( v_{\sigma(1)}, \ldots,v_{\sigma(k)} \bigr). \end{align*}


I am a javascript beginner and I would like to create a function named swap that swaps the variables that were passed in: function swap(a, b){     var t = a;     a = b;     b = t; } var x = 3; var y = 4; swap (x, y); console.log(x + " " + y);  and the output should be 4 3 but I can't figure out how to make this function work, because in C++ we would just pass the reference swap(&a, &b). How to pass reference in JS?


Subtracting two numbers (with 2 decimals) results in high decimal number value

I'm trying to understand why subtracting two numbers with both 2 decimals causes a value with 18 decimals.   Subtract 185.84 from 185.85 = 0.009999999999990905  diff = float(value) - float(device_compare_value)   Thanks in advance


Is there a way to force the iPhone to use its own microphone when connected to a Bluetooth speaker?

I connect my phone to a Bluetooth speaker to play music. When engage Siri or try to use dictation, the phone wants to use the microphone on the Bluetooth device, which is either too crappy or too far away for it to understand what I am saying.  So, I would like a way to restrict the iPhone to using its own microphone even when connected to a Bluetooth speaker.  I am open to doing this via a setting, buying an app, or jailbreaking or whatever.  Is there a way to do this?


Is one-hour layover at Munich Airport enough time?

I am a USA citizen and will be flying from Athens, Greece to Munich, Germany with a layover in Munich for only about an hour before my connecting flight to San Francisco, USA.  Both flights will be with Lufthansa.  Will I have sufficient time to make my connecting flight?


Almost half of disk space unaccounted for on Windows 7 computer

I'm trying to determine what's eating almost half of disk on my Windows 7 Lenovo laptop but haven't been able to determine what.  I read some of the answers on this site but none of the causes seems to be the cause of my problem.  What I've done so far:   Checked Windows' System Restore points but only minimum use, either way I deleted around 2GB if usage from there Used WinDirStat and it came back with a total of 71.3GB usage at the root level C Drives properties says 135GB being used out of 138 GB total, ie, 135 GB - 71.3GB = 63.7GB missing somewhere No "Unknown" files reported by WinDirStat Windows Disk Management utility doesn't report any unused partitions or unclaimed space chkdsk comes out clean Windows disk cleanup tool doesn't report anything big, just small stuff in the lower MB range Lenovo backup tool hasn't been used nor there is a folder for the backup images   Any idea on what to look at and/or do?  EDIT: some additional info...


Is there a more accurate way to create a Javascript timer than setTimeout?

Something that has always bugged me is how unpredictable the setTimeout() method in Javascript is.  In my experience, the timer is horribly inaccurate in a lot of situations. By inaccurate, I mean the actual delay time seems to vary by 250-500ms more or less. Although this isn't a huge amount of time, when using it to hide/show UI elements the time can be visibly noticeable.  Are there any tricks that can be done to ensure that setTimeout() performs accurately (without resorting to an external API) or is this a lost cause?