Nested itemize environment affects vertical spacing of parent itemize environment

I have two itemize environments, one is nested in the other. Somehow the nested itemize environment affects the vertical spacing of the adjacent item of the parent itemize environment. As you can see in the example below, the vertical space between b and c is slightly smaller than between a and b. If I remove the nested itemize environment, the vertical spacing between b and c is the same as between a and b. How can I achieve equally spaced items in an itemize environment nesting another itemize environment?    \documentclass{beamer}  \begin{document}   \begin{frame}     \begin{itemize}       \item a       \item b       \item c       \begin{itemize}         \item d         \item e       \end{itemize}     \end{itemize}   \end{frame} \end{document}


Making tags visible when using a Tumblr theme that doesn't show them

I have just created a  blog using the Fluid theme. After creating a new post, I added a few tags, but then I noticed that the tags do not show up along with the post.  I tried searching for an option to make the tags visible, but I could not find it. As it was pointed out, apparently not all themes display the tags.  How do I make the tags visible if using the Fluid theme? What changes do I have to make to its HTML?


How to come up with the splitting point in a decision tree?

I read   I understand why choosing smallest gini index, but how do I come up with different candidate splits in the first place? How does R come up with the splits? Take the iris data as an instance:  plot(iris$Sepal.Length, col=iris$Species, pch=20)     How do I determine where I want to draw the horizontal line to separate each class? I can draw infinitely amount of lines and then compare their gini index, but practically, it will not work.


Notice the italicized part of the following text:     In essence, when a retailer decides to build a larger store, it bets that it can use that extra square footage and expanded inventory to attract the higher volume of customers it needs to generate an acceptable return on investment.    If I am to put a relative pronoun between [the higher volume of customers] and [it needs], I surely can put relative pronoun that.    However, I want to know the type of the relative pronoun. Is the noun being modified by the relative clause the volume(a thing) or customers(people)?  Which of the following is acceptable?        ~the higher volume of customers which it needs~   ~the higher volume of customers whom it needs~


Dublin Transit visa for Sri Lankan citizens

My partner is a Sri Lankan national with a Sri Lankan passport and we will be returning to Sri Lanka from the UK on December 30 via Dublin and Abu Dhabi. He has a full 5 year multiple entry visa for the UK. We will only be in Dublin airport for 1 hour whilst transferring between an Air Lingus and an Etihad flight.  I have read elsewhere that if the transfer between flights is effected on the same day, an Irish transit visa is unnecessary.  Can anyone confirm this or confirm if a transit visa is required.


Couldnt find a way to open blender software

I am new to Ubuntu. I downloaded the latest version of Blender (2.70a) from official blender.org site as an tar.bz2 file. My Ubuntu OS is 14.04 LTS amd64 bit os, and I am sure that I have downloaded the correct version of blender. I have read that for security reasons, Ubuntu does not allow executing exe files.   Since the downloaded package contains blender as an executable/x-executable type, it is not able to execute. I do not have an internet connection in that computer too. Also the "Allow executing file as program" checkbox is checked by default. Still double clicking it does not execute the file. Can anyone say how to open this file?  P.S: Wine also checked but requires active internet connection, which I dont have.


What documents to show if I'm a US citizen with no US passport to re-enter the US?

Suppose I am a naturalized citizen of the US, but also a citizen of another country, "XYZ". I then boarded a plane and left the US to another country (maybe not necessarily to XYZ), without first getting a US passport, but using my old, but valid XYZ passport.   In this case what would be the best documents to have for me to gain entry back into the US as a US Citizen without a passport?  Would I need to contact the US Embassy for help in order to be able return?  If the airline does let me aboard to return to the US, even without the US passport, what are the best documents could I show at the border to prove I am a US citizen but that I just don't have a passport, for whatever reason?


If the electric field strength is $E_x=x, E_y=E_z=0$, then by $\nabla\cdot E=\frac1{\epsilon_0}\rho_e$ where $\rho_e$ is the density of charge, we get $\rho_e=-1$ for any point in the space. But if $\rho_e=-1$ for any point in the space, then the distribution of charge in space is completely symmetric, so we shouldn't get a $\vec{E}$ which only have $E_x$ component. I am really confused. Can you explain it for me?


How to remove spaces from an input file?

Sample input file: abcd <Space> 1234 <Space>  Desired output: abcd 1234


I'm trying to solve this     $$\int_{0}^{\infty} e^{-4x^2}dx$$   I saw how $\int_{\infty}^{\infty} e^{-x^2}dx$ it's done and how it covers the whole plane, then I assume that from $0 \ to \ \infty$ it's the right part of the plane, My problem comes when I try to cover the first and the fourth quadrant of the plane, I know that in polar coordinates $0\le r \le \infty$, but      What about $\theta$ for this case? How $\theta$ moves in order to cover the right half of the plane?


Unable to remove element using simpleXML

so i need to remove an element from an XML file using PHP. After some googling i found this  which i think put me on the right track. However when I run the code to delete the element, nothing happens. I don't get any error messages, and the node i have tried to delete is still there.  function deleteCourse($course){ echo "beginning delete"; $xml = self::getxml(); # get the XML file $theCourse = $xml->xpath('course[name = "'.$course.'"]'); echo self::toJSON($theCourse[0]); unset($theCourse[0]);  $xml->asXml("data.xml"); }   I've looked at the question I linked to and cannot see where i have gone wrong. Can anybody help me?


What width should I design for when creating a website?

I just got a freelance project to design the UI for a website. Can someone tell me what layout (dimension) is used to design a website front end in Photoshop? What are the basic dimensions used?


patching SQL Server with Availability Group and Secondary Replica

Scenario: SQL Server 2014 CU6. 1 AG with 2 databases (compatibility level 100). Failover Cluster with 3 nodes on Windows Server 2012 R2. Primary Availability Replica on node 1 and node 2. Secondary Availability Replica on node 3 (no votes). Async commit, manual failover, readable secondary. Node 3 is used to run reports on these 2 databases (out of 8 databases running outside AG on node 1 and 2).   Problem: Looking to patch these from SQL 2014 to SP1 and latest CU. Not my build and no experience with AG or FC so far. My "test" environment is also used for development, so no room for mistakes.   Questions:  What's the best order to patch the 3 nodes ?   Do I first have to remove the databases from AG on the node I'm patching ?  Do I need to take the Secondary out when patching it ?  No experience on this, and I can't find clear answers for my scenario (maybe not supported?) in the docs:


Keep short history of user display names

It'd be nice if each user's profile page showed what previous names that user had recently used.


"Sorry Ubuntu * has experienced an internal error" /usr/bin/compiz

I installed 13.04 as a virtual machine using VirtualBox from Oracle. When it was done doing the install, it says that it needs a reboot. After the reboot, I got this message:     Sorry Ubuntu 13.04 has experienced an internal error /usr/bin/compiz   I'm not sure what it means and how to resolve it.


How do I validate phone numbers using regex in php?

I'm coding in php and I would be happy if someone could help me with a regex that would validate phone numbers in the format +233 245 245 245 or 0245 245 245.   I would also want the phone number to be validated whether or not the spaces are included. Thanks a lot in advance.


The following figure shows a cylinder resting on a rough horizontal   rug that is pulled out from under it with acceleration $a$   perpendicular to the axis of the cylinder. What is the motion of the   cylinder, assuming it does not slip?         The only horizontal force on the cylinder is that of friction at $P$. Therefore let us take the moments about $P$. The forces of gravity and reaction at the surface pass through the point $P$, as does also the friction force. Also, we know* that:  $$\dot{\mathbf{L}}=\mathbf{M}-m\mathbf{v}_P \times \mathbf{v}_O$$  Where $\mathbf{L}$ - the angular momentum of the system, $\mathbf{M}$ - the net external torque on the system, $m$ - the mass of the system, $\mathbf{v}_P$ - the velocity of point $P$ (as viewed from an inertial system - say, ground) and $\mathbf{v}_O$ - the velocity of the center of mass.   Because $\mathbf{v}_O\parallel \mathbf{v}_P$ we have $\dot{\mathbf{L}}=\mathbf{M}$. So the net torque about $P$ is $0$. Therefore:  $$\dot{\mathbf{L}}=0 \Rightarrow I_P \omega = \text{const} \Rightarrow \omega = \text{const}$$  which is wrong. Only by taking the moments about $O$ we obtain $\omega \propto a$.  Why my approach was wrong in the first place?    *Let $\mathbf{v}$ and $\mathbf{p}=m \mathbb{v}$ be the velocity and the momentum of a particle with respect to a stationary inertial system $S$, and $\mathbf{r}$ - the radius-vector of the particle with respect to the moving point $P$. The motion of $P$ can be either uniform or nonuniform (accelerating). Suppose $\mathbf{v}_P$ is the velocity of $P$. The angular momentum is $\mathbf{L}=\mathbf{r} \times \mathbf{p}$. Taking the derivative we get $\dot{\mathbf{L}}=\dot{\mathbf{r}} \times \mathbf{p} + \mathbf{r} \times \dot{\mathbf{p}}$. Because $\dot{\mathbf{r}}=\mathbf{v}-\mathbf{v}_P$ we get $\dot{\mathbf{L}}=(\mathbf{v}-\mathbf{v}_P) \times \mathbf{p} + \mathbf{r} \times \dot{\mathbf{p}}$. However $\dot{\mathbf{p}}=\mathbf{F}$ and thus we obtain:  $$\dot{\mathbf{L}}=\mathbf{M}-\mathbf{v}_P \times \mathbf{p}$$  However we can express the momentum $\mathbf{p}$ of the system in terms of $\mathbf{v}_O$ - the velocity of the center of mass: $\mathbf{p}=m\mathbf{v}_O$. Thus: $$\dot{\mathbf{L}}=\mathbf{M}-m\mathbf{v}_P \times \mathbf{v}_O$$


How to evaluate $\lim_{x\to\infty}\arctan (4/x)/ |\arcsin (-3/x)|$?

I don't know how to start evaluate this limit, I cannot use L Hopital's rule. Thank you very much for all responses.  $$\mathop {\lim }\limits_{x \to  + \infty } \left({{\arctan \left({4 \over x}\right)} \over {\left|\arcsin \left( - {3 \over x}\right)\right|}}\right)$$


How come Legolas only runs out of arrows in The Battle of the Five Armies?

Legolas, the elf from Mirkwood, never runs out of arrows in any of the Lord of the Rings or Hobbit movies except the Battle of the Five Armies. How come that's the only one? How does Legolas always have an endless amount of arrows, except in that movie?


Show that if $f'(z)=0$ in a connected open set in $\mathbb{C}$, then $f(z)=a \in \mathbb{C}$

Show that if $f'(z)=0$ from the function $f : D \to \mathbb{C}$ which $D \subset \mathbb{C}$ is a domain (i.e. open connected set), then $f(z)=a \in \mathbb{C}$ ($a$ is a constant in $\mathbb{C}$). The conclusion is it the same if $f'(z)=0$ on any open   set?   I think I can use the Cauchy-Riemann theorem, but it's unclear.   Is anyone could explain to me how to solve this problem?


How to make a table with dynamic columns in Jaspersoft Studio?

I need to make this table in Jaspersoft Studio:    My table sometimes have one test, two, n test or nothing. Is it possible? How can I solve this task?


I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


How to remove the header from a Google document once added

Once you add a header to a Google document, it offsets the top of the document even if empty, and receives click events. How can you then remove the header?  I am aware that you can reduce the header's effects by decreasing the page's top margin, and reducing the font size in the header—those are not the solutions I am looking for. I would like a way to actually REMOVE it.


How do I show that $a^p + b^p > (a + b)^p$ for $a,b>0$ and $0<p<1$?

A question on my math homework asks us to show that if $0 < p < 1$ and $a, b > 0$, then $a^p + b^p > (a + b)^p$. I have no idea how to do this, any pointers?


Studying global vars in JS , I set out to try it and to my surprise this:    var thisVar = "global var";  function showVarLet() {   var thisVar = "local var";   console.log("%s   %s", thisVar, window.thisVar); } showVarLet();     gives me:  local var undefined   but the same in the browser console, gives me:  local var global var   So, what´s with this window object?  EDIT:  I tried to check in the console what would happen if instead of window.thisVar I referenced this.thisVar, my assumption was that I would access the local variable but I keep accessing the global one, why so?


How to test for a significant difference between several dependent correlation coefficients?

I have a group of correlation coefficients (more than two). They are all dependent on one variable A in the form of r_A1, r_A2, r_A3....r_Ak, where 1, 2 ...k denote other variables; they all have the same sample size.   My question is: what statistics should I use when I want to know whether any one of the correlation coefficients is any different to any of the others? I know if there are only two dependent correlation coefficients, this can be easily compared using most statistical tools, but this is a multiple correlations test. I know that a Chi-square test can be used to compare equality of several correlation coefficients (see  for an example), but to my knowledge this approach is for testing the difference between INDEPENDENT correlation coefficients. So I am wondering whether there is any approach that is equivalent to Fisher's least significant difference that can be used to make comparisons among several dependent correlation coefficients?  EDIT: thanks @russ-lenth for your answer. In general, I found that CIs computed from lsmeans are larger than those computed using Fisher's Z method. Here's an example of the CIs that I get through the lsmeans function:   rep.meas      lsmean         SE df   lower.CL  upper.CL  M1        0.76914236 0.13325688 23  0.4934795 1.0448052  M2        0.82346705 0.11830361 23  0.5787374 1.0681967  M3        0.89294217 0.09386717 23  0.6987631 1.0871212  M4       -0.09985512 0.20747224 23 -0.5290441 0.3293339  M5        0.56183690 0.17249315 23  0.2050076 0.9186662  M6        0.79086279 0.12760947 23  0.5268825 1.0548431  M7        0.14667681 0.20625924 23 -0.2800029 0.5733566   Take M1 whose r = 0.769 as an example: the width of the CI from lsmeans is (1.0448-0.4935) 0.5513. The width of the CI computed from Fisher’s Z is (0.8948-0.5302) 0.3646, which is much smaller than the former. Is the difference between the widths of the two confidence intervals too large?


How do I delete the last n lines of an ascii file using shell commands?


If I downloaded the , do I just download the .tar file and extract it to /usr/lib/jvm/?


delete unconnected polygons in a shapefile

I need to delete isolated polygon (green circle) from a shapefile but I do not want to delete polygon that connected with other polygon (red circle?


"A ten minute interview" vs "An interview of ten minutes"

I remember my English professor saying that these two sentences are quite different in meaning, but after four months, I cannot recall the exact difference. Can somebody explain to me what's the difference?


When does "X is NP-complete" imply "#X is #P-complete"?

Let $X$ denote a (decision) problem in NP and let #$X$ denote its counting version.  Under what conditions is it known that "X is NP-complete" $\implies$ "#X is #P-complete"?  Of course the existence of a parsimonious reduction is one such condition, but this is obvious and the only such condition of which I am aware.  The ultimate goal would be to show that no condition is needed.  Formally speaking, one should start with the counting problem #$X$ defined by a function $f : \{0,1\}^* \to \mathbb{N}$ and then define the decision problem $X$ on an input string $s$ as $f(s) \ne 0$?


Help in proving: even dimensional Real Projective space is not orientable

Prove that an even dimensional Real Projective space is not orientable.


How to detect if any specific drive is a hard drive?

In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?


Why is the Earth not an exact sphere and what makes it bulge at the equator?

In chapter 7 of the Feynman Lectures Volume 1, Feynman explains that the Earth is round due to gravitation as everything attracts everything else. He also says that it is not an exact sphere since it is rotating. I don't get that. What effect does the rotating of the planet have?  He mentions that it is due to centrifugal effects which tend to oppose gravity near the equator. Don't get that either. How is that supposed to make the planet 20 km wider at the equator than it is at the poles?  Here's the link for the lecture:


why correlation coefficient is an indicator of a linear relationship?

I'm taking an intro to statistics and currently we are covering what a correlation coefficient is. Unfortunately the material does not explain why correlation coefficient is an indicator of linear relationship, it just says that it is. Can someone give an explanation to why correlation indicates linear relationship as opposed to quadratic or even cubic?


This should not be very difficult, but I cannot figure out how to do it.  I have a table similar to this     %low %high  0   0   12  1  13   26  ... 19  90   94 20  95  100   When I graph it, excel defaults to having the first column on the x axis and plotting the second and third column as y values. I want the first column to be on the y axis instead. I assume there is an easy way to do this, but I cannot figure it out. Most of the things I have found from searching have suggested the "Switch Row/Column" button, but that does something else.  Thanks for the help.


How many Wizards/ Witches got into relationships with Muggles?

A discussion arose in  about how rare it was for witches/ wizards to get into relationships with Muggles.  I was under the impression that it was fairly common, as I could immediately bring to mind at least three people who were conceived of this type of relationship:   Dean Thomas Severus Snape Tom Riddle (Voldemort)   Are there many other wizards/ witches in canon who had relationships/ marriages/ families with Muggles? (Not including squibs).


Friedmann equation relates Hubble constant to Universe age as 1/H0 times mass density correction factor adding a few percent. What would Hubble have observed 7 billion years ago? The same value? if so what is special about the present moment that 1/H0 fits the current age so closely? Or would the earlier Hubble have measured a bigger constant corresponding to the shorter age? If so the Friedmann equation must be wrong.


I am trying to classify the data set "Insurance Company Benchmark (COIL 2000) Data Set" which can be found in .  I am using XGBoost in R (I am new to XGBoost algorithm) for the classification and the code that I have come up with is as follows-  D <- read.csv("ticdata2000.csv", header=T)  # dim(D)    # O/P- 5823 86  # Make training and testing splits- train_indices <- sample(1:nrow(D), floor(0.7 * nrow(D)), replace = F)  training <- D[train_indices, ] testing <- D[-train_indices, ]   library(xgboost)  # Train/Fit model (classifier)- model_classifier <- xgboost(data = as.matrix(training[-86]), label = training$C86, nrounds=100, eta = 0.1, gamma = 1)   # Make predictions using trained model- preds <- predict(model_classifier, as.matrix(testing[-86]))   # Convert floating-point values to either 0 or 1 according to 'C86' column- # for (i in 1:length(preds)) # { #   preds[i] <- ifelse(preds[i] < 0.1, 0, 1) # }   length(preds)       # O/P- 1747 length(unique(preds))   # O/P- 408   For 'XGBoost', the results are floats and they need to be converted to categorical values (for classification) at whichever threshold is appropriate for the model. How do I decide the threshold appropriate for my model? The final prediction has to be either 0 or 1.  The minimum and maximum values in "preds" variable is as follows-  min(preds)    # O/P- 0.03360531 max(preds)    # O/P- 0.3086071   Ofcourse, these values are bound to change as I have not used a seed value.  Any help is appreciated!  Thanks


How to get the 3 items with the highest value from dictionary?

Suppose I have this dictionary: {"A":3,"B":4,"H":1,"K":8,"T":0}  I want to get the keys of the highest 3 values. So in this case I will get the keys: K, B and A


Is there a way to enforce all strings to be UTF-8 in PHP

I have a php script that gets data from an SQL Server database. I have greek characters in that database and in order to be displayed correctly i have to do this:       function m($s){         return mb_convert_encoding($s,"UTF-8","ISO-8859-7");     }  echo m($row['name']);   in each string that i get from the database.  Is there a way to enforce UTF-8 conversion for any string in the script, without using a function?


how can I find inverse of a matrix that has zero determinant and infinitely many solutions?

I need to find solutions to a matrix whose determinant is 0, and I have already shown that the matrix has infinitely many solutions. Can anyone explain me how to find the form of the solutions?   (solutions should come with a parameter that is free to choose, but there are some complicated constants in front of that free parameter and I don't know how to get to them).  Many thanks!


I am working on something there trying to predict a cost per location there are 8 variables one of them is a categorical value that has over 300 levels of postal codes in the entire provinces  will that mess up my predictive model or it is better to use another method like binning to reduce the level. looking for advice as I will be using Decision tree, Random forest, KNN, ANN, and logistic to get some answers  Postal code carry individuals information, jobs categories and salary average. My sample size is 3000 x 13 and I am answering many questions with the data set. Estimation of loan requested and will it be repaid – Thank you


What happens if a Rainbow Servant takes levels in Mystic Theurge?

When a Rainbow Servant hits level 10 they gain access to all nondomain Cleric spells. All spells that do not appear on any other spell list they have are cast as Divine spells. This means that, if they have the skills and have learned 2nd level spells, they qualify for the Mystic Theurge Prestige Class.  But what happens when you actually start to take levels in it? The text says:     When a new mystic theurge level is gained, the character gains new spells per day as if he had also gained a level in any one arcane spellcasting class he belonged to before he added the prestige class and any one divine spellcasting class he belonged to previously.   What it does not say however, here or elsewhere, that these classes have to be different classes. Do you get one level in Wizard/Warmage/whaever for being an Arcane caster, then ANOTHER level for being a Divine caster as well? The text for the Rainbow Servant says the following:     Such spells are cast as divine spells if they don’t appear on the sorcerer/wizard or bard spell lists.   So it comes down to these questions:   Does being able to cast Divine spells qualify you as a Divine Caster, or is there more to it than that? If it is, what happens when you take levels in Mystic Theurge like this? Do you go up one level or two? What happens if this means you go over 20th caster level? Do you keep gaining spell slots like a level 20+ character, or does something else happen?


Diagonalizable Endomorphisms of finite-dimensional vectorspaces

I have a little question regarding diagonalizable endomorphisms:  Let $V$ be an finite-dimensional vectorspace of some field $K$. Let $f,g:V\rightarrow V$ be diagonalizable endomorphisms such that $f\circ g=g \circ f$. We denote the eigenvalues of $f$ and $g$ with $\lambda_1,\dots,\lambda_k$ and $\mu_1,\dots,\mu_l$:  If $A_f^B$ and $A_g^B$ are the associated matrices of $f$ and $g$ with repsect to the basis $B$, show that there exists a basis $B$ of $V$ such that $A_f^B$ and $A_g^B$ are in a diagonal form. Unfortunately I don't quite know where to start. I know that it's equivalent to there being a basis $B$ of $V$ such that I'm able to choose $dim(V)$ linear independant vectors such that each vector is element of both eigenspaces $E(A_f^B,\lambda_i)$ and $E(A_g^B,\mu_j)$ for some $i$ and $j$.  Does anybody have an idea?  Thanks for checking in ;)  ~Cedric


Convert C++ '? :'conditional operators into python

Could any please help me convert this to python? I don't how to translate the conditional operators from C++ into python?  Math.easeInExpo = function (t, b, c, d) { return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;


I have accidentally toggled something to show some weird dotted lines

I have just accidentally toggled on some weird dotted lines. Any idea how to turn these off. P.S. the model was imported from Fusion 360.


All of my health bars are green and full, none of the dwellers are injured and they all have jobs. I don't see what I'm doing wrong.  I've tried mating them and they are still unhappy.


Under a folder, there are files created by multiple users. How can I list all the files/directories created by a specific user, using ls or something else?


In Windows 10 how can we change the name of this folder under C:\Users?

I'm using Windows 10 on my personal computer (HP Pavilion Laptop) and you can see in the Screen Shot under C:\Users there are two folders.    The name of the first folder is C:\Users\SINGHA, however, the correct spelling of my last name is SINHA.  I need to change the name of this folder to C:\Users\SINHA so that it shows the correct name.     Under User Account, the spelling of my name is correct - it's only under C:\Users\ where the name is spelt incorrectly. Consequently, if I open/edit a Word or Excel document, the name of the owner being shown is the incorrect one (i.e it's shown as C:\Users\SINGHA instead of C:\Users\SINHA)   If I right-click on this folder, I won't get the Rename option; How can I change the name of this folder?


Driving between Managua and San Juan del Sur, NIcaragua

Have heard police target foreigners and rental cars. Any tips for dealing with them? Suggestions/tactics for driving in Nicaragua?


I am giving a workshop in early April. I would like to give each participant a memory stick with the PowerPoint slides and some freeware software relative to the topic of the workshop. I was given a large quantity of memory sticks to "recycle" (I'm on a strict budget--everything comes out of my own pocket) that have an obsolete version of the DigSafe manual. The partition containing the document shows as a CD drive when I insert one into a computer.  How can I reformat these devices to remove the "CD" partition? I did find an old thread suggesting using dd and fdisk to format this type of device. Will that work in my case?  (It's not the end of the world if I can't -- my poor audience will just have to suffer with receiving the requirements of Dig Safe. Hi Hi).


Rsync, include only certain files types excluding some directories

I want to rsync only certain file types (e.g. .py) and I want to exclude files in some directories (e.g. venv).  This is what I have tried:  rsync -avz --include='*/' --exclude='venv/' --include='*.py' --exclude='*' /tmp/src/ /tmp/dest/   But it doesn't work.  What am I missing?  I also followed the answer to  but it didn't help.


A prime ideal $\mathfrak{p} \subset \mathcal{O}_K$ lies above/over $p$ if $\mathfrak{p}\cap \mathbb{Z} = p\mathbb{Z}$

In the concrete case that $\mathcal{O}_K = \mathbb{Z}[i]$, and $\mathfrak{p} = (1+i)$, how to make sense of $\mathfrak{p}\cap \mathbb{Z}$?  I want to know if (1+i) lies above/over 2.


$\cos(nx)=Q_n(\cos(x))$ for polynomial $Q_n$ of degree $n$

Are there any proofs of this equality online? I'm just looking for something very simply that I can self-verify. My textbook uses the result without a proof, and I want to see what a proof would look like here.


What is the proper usage of a verb when the subject is singular but its meaning is plural?

I am unsure of this rule, and would like a straight answer or resource; this is not a peeve. This appears today in google trends:  A new set of icons suggest that voice-activated sharing to social networks could be on the cards. Should not the proper term be suggests since the subject is actually 'set' not 'icons'?  Read more:


Help with implicit differentiation problem

Here is the problem:     A ladder 15 metres high is propped up against a high wall. The bottom of the ladder slides away from the wall at a rate of $1\ {m/s}$. How fast is the top of the ladder sliding down the wall when in it is $12\ m$ off the ground?   From this I can state the few things:  \begin{equation} \text{Let}\ y(t) = \text{Height of wall at time}\: t \\ \text{Let}\ x(t) = \text{Distance between bottom of ladder and bottom of wall} \\ \text{We know}\ x'(t) = 1 \\ \text{We need to find}\ y'(t)\ \text{when}\ y(t) = 12 \end{equation}  In order to find this, we need to get $y'(t)$ in terms of $x'(t)$ and $y(t)$.  My first thought is that these form a right triangle, so I call upon Pythagoras:  $$(y(t))^2 + (x(t))^2 = 15^2$$  Then implicitly differentiate with respect to $t$:  \begin{align} & \frac{d}{dt}\bigg[(y(t))^2 + (x(t))^2\bigg] = \frac{d}{dt}\big[15^2\big] \\ \leadsto\quad & 2y'y + 2x'x = 0 \\ \leadsto\quad & y' = -{{x}\over{y}}x' \end{align}  But here is where I reach a dead end. We have $y'$ in terms of $y$ and $x'$, but there's also a $x$ in there - the bottom of the triangle - that we don't know.   How do I approach this?  Thanks in advance!


i'm  writing a report with Latex i need to use Times New Roman font type but i couldn't find an easy way. I used the \usepackage{times} package but it looks diffrent do  you have any other idea ?


What do we mean by  = new Comparator() in Java

I had a piece of code.    compareScanMz = new Comparator<Triplet>() {   @Override   public int compare(Triplet o1, Triplet o2) {      int scan1 = o1.scanListIndex;     int scan2 = o2.scanListIndex;     int scanCompare = Integer.compare(scan1, scan2);      if (scanCompare != 0) {       return scanCompare;     } else {       int mz1 = o1.mz;       int mz2 = o2.mz;       return Integer.compare(mz1, mz2);     }   } };`   In the code I am able to figure out the other statements, but am unable to get the first one. i.e:  compareScanMz = new Comparator()   What does this statement mean?


While the Romulans and Klingons have cloaking technology, do any of the Federation ships have it? It seems that the USS Enterprise more than once is surprised by a cloaked ship. But why have they never developed it for their ship?


Java Comprable overriding or not overriding compareTo?

In implementing the comparable interface for a class, are we overriding the compareTo method?  If yes, who originally has defined the compareTo method that we are overriding it?  My guess is that we are not overriding in the sense that there was no other implementation before that we are overriding it but only add @override because we are implementing an interface. Anyway today I was asked about this specifically, and wasn't sure.


I am not very used to linux but when my sister told me her computer was working slow I thought giving ubuntu a shot might be worth it since she doesn't do a lot with her laptop. I downloaded ubuntu 20.04 for her but one feature she used a lot in windows was missing, manual double sided printing. Our printer can not do dublex printing itself but Windows had a feature where it printed the odd numbered page first then wait until the printed pages are put to printer again then clicking on a button to continue. She's a student so she uses this daily. Is there any way of implementing this feature to ubuntu with a gui(since she doesn't understand how to use the terminal) or should I go back to windows? Model of the printer - Brother HL-1111 please inform me if you need more information about the subject or I wrote something wrong.


Why uniform closure $\mathscr{B}$ of an algebra $\mathscr{A}$ of bounded complex functions is uniformly closed?

Let $\mathscr{A}$ be an algebra of bounded complex functions. (Or if necessary, continuous and domain of functions is compact)  Definition:  $\mathscr{B}$ is uniformly closed iff $f\in\mathscr{B}$ whenever $f_n\in \mathscr{B} (n=1,2,\cdot)$ and $f_n\rightarrow f$ uniformly.  $\mathscr{B}$ is the uniform closure of $\mathscr{A}$ iff $\mathscr{B}$ is the set of all functions which are limits of uniformly convergent sequences of members of $\mathscr{A}$.  ============  Let $\mathscr{B}$ be a uniform closure of $\mathscr{A}$.  How do i prove that $\mathscr{B}$ is uniformly closed in ZF?  Does Stone-Weierstrass theorem require choice since it is critical to prove Stone-Weierstrass Theorem?


What item bonuses do party NPC benefit from?

I am pretty sure bonuses like chance to get item rarity and bonus gold on NPC equipment is not used, since there is specific stats for those things that do not go up when you equip them on NPC in your party.  But what about item bonuses like "bonus exp per kill", do the NPC in your party benefit from that? What item bonuses do they benefit from?  Do you split your experience with your party members? Do quest npc take any experience from the group?


Is my definition of discontinuity correct?

I think I have made a rigorous and intuitive definition of discontinuity.     Definition: For a function $f(x)$ from $\mathbf{R}$ to $\mathbf{R}$, there is a discontinuity of $a$ at $x_0 \in \mathbf{R}$ if for all $\delta > 0$ around $x_0$; whenever $|x-x_0|<\delta$, there exists an $x$ such that $|f(x)-f(x_0)|$ $\geq a$    How much rigor is my definition?


Is there any badge for more questions asked ?,lets say i have asked 10 questions in a week - Out of the none is closed or moved to another SO affiliate site.Do you guys award a badge for these type of guys to encourage more questions?


Contract a mesh (in order to make a mesh parallel to the original one)

I have a mesh and I'd like to generate a new mesh with a given distance to the original one. I've tried scaling the mesh but since it is not squared it gets non uniform distances.  Regards  This photo is a nice example:  Original question:


Sorry folks but I'm starting to feel stupid. Anyway I have the following problem. I am trying to access a MySQL database from PHP by running the following command.     $stmt = $this->conn->prepare("SELECT * FROM `pricelist` WHERE $name = :string"); // how to handle $name??     $stmt->bindParam(':string', $string, PDO::PARAM_STR);  Unfortunately I don't know what to put there because it's not passed as a string since it's my column name. am unfortunately still new to PHP and do not quite understand it, thank you :D


I am accessing an Ubuntu 10.04.2 LTS server via SSH from OSX. Recently the colors stopped working. I think it happened while I was installing/troubleshooting RVM, but I am not positive.  In .bashrc I uncommeneted force_color_prompt=yes, and when I run env | grep TERM I get TERM=xterm-color. But still no colors.   Any ideas? Thanks!  Here is the output of cat .bashrc  # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples  # If not running interactively, don't do anything [ -z "$PS1" ] && return  # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace  # append to the history file, don't overwrite it shopt -s histappend  # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000  # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize  # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"  # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then     debian_chroot=$(cat /etc/debian_chroot) fi   # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in     xterm-color) color_prompt=yes;; esac   # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt force_color_prompt=yes  if [ -n "$force_color_prompt" ]; then     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then     # We have color support; assume it's compliant with Ecma-48     # (ISO/IEC-6429). (Lack of such support is extremely rare, and such     # a case would tend to support setf rather than setaf.)     color_prompt=yes     else     color_prompt=     fi fi  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"     ;; *)     ;; esac  # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'    alias dir='dir --color=auto'    alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi  # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi  # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ] && ! shopt -oq posix; then     . /etc/bash_completion fi  [[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm"


I installed Drupal 7 on Wamp Server. I can't find any checkbox or link to enable clean URLs; I see only the Run the Clean URL Test button.  How can I enable clean URLs?


Help with a proof with combination: $\binom{n}{k}\binom{k}{m} = \binom{n}{m} \binom{n-m}{k-m}$

I have to prove that:  $\binom{n}{k}\binom{k}{m} = \binom{n}{m} \binom{n-m}{k-m}$  I'm not really sure how to approach this problem. I know the formula definition of combination but am unsure how to apply it to this question


Change cell text color based on cell value in lightning:datatable

Can we change the cell text color based on value? for example: if a cell value is "Active" then make the color green, if not then make it red.    I have checked cellAttribute for lightning:datatable documentation, but it's not helpful.


How to remove all google auto-complete search in Chrome?

Google search has interesting mechanics once you enter a keyword it remembers the keyword. The question is how are you able remove the keyword which will appear after you start typing the first character?


Can someone explain to me this string field theory equation?

$$L = \Phi^\dagger[i\partial_{\tau}-H]\Phi + \Phi^{\dagger} \ast \Phi \ast\Phi .$$ It seems to me that this record is similar to the Lagrangian of a field capable of self-scattering in the form: two quantum flew, interacted, and one quantum of the same field turned out. And it also seems that if only kinetic energy sits in $H$, then $\delta\cdot i$ sets an imaginary small mass (for definiteness, bypassing singular points is given). And what kind of field is it, how dimensional or what it describes - I don't know)


What is the remainder when $2^{1990}$ is divided by $1990$?

I actually do not have the basic idea on how to approach these type of questions....so please tell me a generalized method about all this too.  It came in RMO, and the question is:  What is the remainder when $2^{1990}$ is divided by $1990$ ?


I am trying to add a body class to my site in template.php based on whether or not a node is published or not. I had a look around here and on drupal.org and pieced together some code but I am getting an error. Here is what I have tried so far:  function responsive_process_html(&$variables) {    if ($node->status == 1){         //$variables['#attributes']['class'][] = 'pub';         $variables['classes_array'][] = 'published';     }      else {         $variables['classes_array'][] = 'not-published';     } }   ... but I am getting this error:  Notice: Undefined variable: node in responsive_process_html() (line 37 of /sites/all/themes/responsive/template.php). Notice: Trying to get property of non-object in responsive_process_html() (line 37 of /sites/all/themes/responsive/template.php).   I also tried $variables['#attributes']['class'][] = 'published'; instead of $variables['classes_array'][] = 'published'; but it made no difference.


I have been trying to figure this out. The image path and href are php variables.  echo'src .'">src .'" alt="" />'; echo'src .'">src .'" alt="" />';   I am trying to turn the php variables into a javascript.  The PHP variables are:  '. $bigImg[0]->src .' '. $thumbImg[0]->src .'   How can I pass this into javascript?


Film where aliens looking like humans are waiting in an airport closed due to snowstorm

I saw the movie 6 - 7 years back on cable tv, from the looks of it it seemed to be made in the late 1990's or early 2000's. Unfortunately I could not see the complete movie. The story goes like--   Some people are waiting at a small airport because snowstorm activity has cancelled all flights in and out. There are two children in the group as well (one boy and a girl). Somehow they discover there are aliens looking like humans among them. They decide to check passengers through baggage scanners (checking the skeletal structure via x-ray). They find and kill 2 aliens.   and the big twist:      5. They then realize the two children are also aliens.   any ideas what the name of the movie is ???


Limit involving binomial coefficients: $\lim_{n\to\infty}\left(\binom{n}{0}\binom{n}{1}\dots\binom{n}{n}\right)^{\frac{1}{n(n+1)}}$

I am facing difficulty with the following limit. $$ \lim_{n\to\infty}\left(\binom{n}{0}\binom{n}{1}\dots\binom{n}{n}\right)^{\frac{1}{n(n+1)}} $$ I tried to take log both sides but I could not simplify the resulting expression. Please help in this regard. Thanks.


Cardinality of a set A is strictly less than the cardinality of the power set of A

I am trying to prove the following statement but have trouble  comprehending/going forward with some parts! Here is the statement:     If $A$ is any set, then  $|A|$ $<$ $|P(A)|$   Here is what I have so far:  We need to show that there is an injection from $A$ to $P(A)$ but not a surjection.   A natural choice for an injection is the function $ f(x)$ $=$ $\{x \}$, which in plain English, takes any element $x$ (that is in $A$) and sends it to the one-element set $\{x \}$. Thus $f(x)$ is injective!  To show that there is no surjection, for the sake of contradiction, assume there is a surjection. Here is where I start to have trouble. Surjectivity means that every element of the co-domain is mapped to an element of the domain, correct? Consequently, in this particular case, we are "matching" sets (from $P(A)$) to elements (from $A$) right?  If the above is correct, my problem arises here. I am not sure how to prove that $f$ is not surjective. Unfortunately, I am easily confused by notation so please explain in English.  Thank you in advance!! :)


Only allow generic types that implement attribute

Is it possible to restrict a generic type to a class that implements a particular attribute?  If I have an attribute called MyCustomAttribute... I want to write something like this:  public class SomeRandomClass<T>     where T : MyCustomAttribute { }   but not where T is a derived class of MyCustomAttribute, but a class that implements the attribute.  Thanks  edit:  I mean implemented like this:  [MyCustomAttribute] public class SomeOtherClass { }


Bash - print lines of textfile in random order

How could I print the lines of a text-file in random order on the command-line?  is there a tool like cat or tac that can do this?


Installed 16.10 now the whole thing is buggy.

I just installed 16.10 today and it's made using my computer nearly impossible. I want to reinstall 16.04 and just get rid of 16.10 and never touch it again. I tried looking it up how to do it and the help page led me to  but I can't find the ubuntuinstaller. Can anyone else suggest something?


Real centroid of a polygon in QGIS 3.2.1? [¿Centroide real de un poligono en QGIS 3.2.1?]

alguien sabe como obtener el centroide real de un polígono, en la versión 2.18 había una herramienta con el mismo nombre. ahora en la versión 3.2.1 no esta, quiero obtener el centroide real de polígonos tipo peine que quede el punto dentro del polígono, que no le genere un extend. la herramienta que trae de centroide deja el punto fuera del polígono.  Google Translated     "someone knows how to get the real centroid of a polygon, in version   2.18 there was a tool with the same name. now in version 3.2.1 is not, I want to get the real centroid of comb polygons that is the point   inside the polygon, that does not generate an extend. the tool that   brings centroid leaves the point outside the polygon."


Does anyone know of any interesting subsets of the Cantor set? When I first started thinking about this, I thought that since the Cantor set $C$ is the intersection of disjoint unions of closed sets, those particular closed sets would be subsets of $C$. Those sets, however, happen to be intervals! The Cantor set contains no isolated points nor (open) intervals, so then what subsets does it contain besides $\varnothing$ and itself?


From Casella and Berger:  Let $W$ be an unbiased estimator of $\tau(\theta)$ and let $T$ be a sufficient statistics for $\theta$. Define $\phi(T) = E[W|T]$. Then $E_{\theta}[ \phi(T)] = \tau(\theta)$ and $Var_{\theta} ( \phi(T)) \leq Var_{\theta} (W)$, for all $\theta$; that is $\phi(T)$ is a uniformly better unbiased estimator of $\tau(\theta)$.   I am trying to understand the statement of this theorem. I am a little uncomfortable with "sufficient statistics" so I think the statement of the theorem is not parsing.   Let me try to state it informally. If I have an unbiased estimator $W$ and I condition this estimator on a sufficient statistics, then I will end up with an estimator with that has the minimum variance for the class of estimators $W$. I am not totally sure what it means to condition an estimator on a sufficient statistic, but it seems like if I can do this for a given unbiased estimator, then I have the best estimator in that class. On the other hand, suppose I have an estimator and I want to check if it has the minimum variance in its class of estimators.   Then I would just have to show that it is 1) Unbiased and 2) Conditioned on some sufficient statistic. Is that right? Are there any examples?  Edit: It is not clear to me what it means to condition on a sufficient statistic, and the links given so far do not try to answer this. Moreover, if we are just handed an unbiased estimator, how would we go about showing that the estimator is actually conditioned on a sufficient statistic?


Can Indian national with Canadian PR card get UK transit visa?

We are nationals of India, with valid Canadian PR cards. As we have a 22-hour layover in London, with an onward flight to Canada, can we get a transit visa (48 hours) after landing at LHR (Terminal 4)?


I'm trying to bring together LEN and Regex but it's not working. I need to validate CDN postal code on the opportunity. We can only accept all caps and a space for a total of 7 characters I was working with the below: LEN( Postal_Code__c ) < 7 With NOT( OR( ISBLANK(Postal_Code__c), REGEX( Postal_Code__c , "[ABCEGHJKLMNPRSTVXY1234567890]{3}[ABCEGHJKLMNPRSTVXY1234567890]{3}") ) ) But unable to combine them properly to get this fully working. Any help would be appreciated! Thanks


I have a HP 15 AC122TU laptop having dual OS as Ubuntu 16.04 and Windows 8.1.My problem is that it doesn't detect wifi sometimes. If connection established it may result in a low speed and poor range. No such problem in other Operating System.Please help me?


I am very new to python language a day old in python. I have to add append two jason string comma separated  {'10.10.10.1': {'msg1': 'hello1'} & {'10.10.10.2': {'msg2': 'hello2'} as {'10.10.10.1': {'msg1': 'hello1'},{'10.10.10.2': {'msg2': 'hello2'}  I know it's really very bad to ask such question.


Show that $f'(x) = f^2(x)$ and $f(0) = 0$ implies $f$ is the zero function

Let $f : \mathbb{R} \to \mathbb{R}$ differentiable be such that $$f'(x)=f^2(x)$$ for all $x$ and $f(0)=0$. Show that $f(x)=0$ for all $x$.   My attempt:  Notice that $f'(x)=f^2(x)\geq 0$, thus $f$ is increasing. Since $f(0)=0, f(x)\geq0\; \forall x \geq 0$. Since $f$ is differentiable, $f$ is continous, therefore given $1> \epsilon >0$, there exists $\delta<1$ such that for $x \in (-\delta,\delta)\implies f(x)<\epsilon<1.$ Take $x=\delta/2$. Then $f(x) = f'(c)\delta/2=f^2(c)\delta/2$. Then $f^2(c) \geq f(x)$. But since $c\in (-\delta,\delta)$, $0\leq f (c)<1 \implies f^2(c) \leq f(c)\implies f(c)\geq f(x)$. But $c<x$, therefore $f(c)\geq f(x)$ which means $f(c)=f(x)$. Therefore for all $y \in (c,x)$, $f(y)=f(x) \implies f'(y)=f^2(y)=0 \implies f(y)=0$. Where do I go from here?


proof $ \lvert\int_a^bf(t)dt\rvert\le\frac{(b-a)^2M}{4} $

Let $ f \in C^1([a,b],\Bbb R)$ such that $f(a)=f(b)=0$ with $a \lt b $. If $M=\sup\limits_{x\in[a,b]}\lvert f'(x)\rvert $, show that:  $$ \left|\int_a^bf(t)dt\right|\le\frac{(b-a)^2M}{4}  $$  I tried this  for the MVT: $f'(t)=\frac{f(t)-f(a)}{t-a}  $  then $f'(t)(t-a)=f(t)$  then $$ \left|\int_a^bf(t)dt\right| =\left|\int_a^bf'(x)(t-a)dt\right|\le \left|\int_a^bM(t-a)dt\right|=\left|M\int_a^b(t-a)dt\right|=\left|\frac{(b-a)^2M}{2}\right|$$ now  $$\left|\frac{(b-a)^2M}{2}\right|=\frac{(b-a)^2M}{2} $$  Maybe I made some mistake in development. I don't understand why I reached 2.


Why did Americans make "Z" sound just like "C" when it was already "zed" in British English?

I've always been annoyed by how Americans say "Z". They say "zee", which to me sounds identical to "C", "cee". It's a very subtle difference if at all. "Colour" turned into "color" makes sense, but why blur the distinction between "Z" and "C" like this?


How to refer to a specific definite person whose gender is unknown

I think that referring to a non-specific indefinite person like everyone, anyone, someone etc. as "they" is grammatical and widely accepted as being natural at least in informal speech. For example, the sentence "Everyone did their best" is grammatical. However, what about referring to a specific definite person? Let's consider the following conversation.  "My friend just got back from the shop." "What did they get?" "They bought furniture for their new apartment." "Are they married?" "Yes, they are."  Are these grammatical? Here's another example. A quote from the novel "A Study in Scarlet" written by Arthur Conan Doyle in 1886.  "What do you think of that?" cried the detective, with the air of a showman exhibiting his show. "This was overlooked because it was in the darkest corner of the room, and no one thought of looking there. The murderer has written it with his or her own blood.  Let's replace "his or her" by "their". Is the sentence "The murderer has written it with their own blood." grammatical in present-day English?


having a high score in PGRE test is enough for me to be accepted im astrophysics' graduate programs?

I am a law student. I am studying physics on my own to attend a PGRE test because Astrophysics always fascinates me. I want to have a Masters Degree in astrophysics but I have no Bachelor's Degree in astronomy or physics or math. Instead, my Bachelor's will be in law.   My question is: will having a high score on the PGRE test be enough for me to be accepted for graduate programs in astrophysics?


I've been casually playing Magic with a friend, about twice a month, for the last 3 months, and the phrase "until end of turn" has always puzzled me, particularly on effects that give +1/+1 (for example, shades). Whose end of turn is meant by the ability?   For example, imagine I used a shade's ability to boost it from 2/2 to 4/4 during my attack phase, and it were blocked, taking 2 damage. Will its toughness drop down to 2, and its health respectively to 0, the moment the enemy turn begins, or will it remain at 4 toughness and 2 health until the end of my enemy's turn and thus undergo regeneration? What if the same situation occurred, except the ability used was not the shade's ability, but Giant Growth?


How to convert parentheses notation for trees into an actual tree drawing?

Trees are usually drawn as a set of objects connected by edges.   But sometimes one sees a non-graphical, parentheses-based notation, like on the example below. What does the indentation mean in such context? How does this correspond to vertex-edge representation of a tree?  (ROOT   (S     (NP (NNP John))     (VP (VBD hit)       (NP (DT the) (NN ball)))     (. .)))


Why is buying a bike as a whole cheaper than buying separate parts and building it?


Does the word "discharge" sound more like /dɪstʃɑːʳdʒ/ or /dɪsdʒɑːʳdʒ/?

Does the word discharge sound more like /dɪstʃɑːʳdʒ/ or /dɪsdʒɑːʳdʒ/? How about exchange or disproportion? Do they sound more like /ɪkstʃeɪndʒ/ or /ɪksdʒeɪndʒ/? /dɪsprəpɔːʳʃən/ or /dɪsbrəpɔːʳʃən/? I know the word student which commonly sounds like /sdjuːdənt/. and the dictionary says its IPA transcription is /stjuːdənt/.


In my camera view my objects are clipped. I know the "default answer": clipping end value but I changed this already to 100000000 for the camera. The normal 3d view does not clip when I use 1000 end clip value but the camera view does and the render also.  Where can I also change a value? What Is my mistake?


vue.js Why is my child component updating the parent?

I have a child component that functions as an edit section.  It copies a single prop on created() to serve as the v-model for editing, as I don't want any edits to reflect on the parent until the user clicks the save button.  When the user clicks save, I $emit the edited model back to the parent to update.  In theory.  In reality, the parent model seems to be reactive whenever I edit the child component, despite the child <input> supposedly acting on a copy of the passed prop.  Why is this, and how do I prevent it?  <h2>{{ location.name }}</h2> <edit-location v-if="editing" :location="location" />   EditLocation.vue:  <template>   <input v-model="copyOfLocation.name">   <button>Save</button> </template>  <script> export default {   props: {     location: {       required: false,       type: Object,     },   },   data() {     return {       copyOfLocation: {},     }   },   created() {     this.copyOfLocation = this.location;   }, } </script>


Blender is said to have perfect Python scripting capabilities. I just cannot find an environment, where I could try it all. Can you give an advise for the noob?  I have a problem with defining an environment for python coding. Once I complained about inability to use keys to select the current command line the command line or even delete it, IRC advised that command line is bad, especially because I also should not define any functions in it. I should better use the Text Editor instead.  However, I have discovered that I cannot run the Text Editor-defined scripts in the command line. Basically, I should forget about the command line and do everything in the Text Editor. Fortunately, it has the Run Script button. However, it is very boring to save every script before running. I better used external editor if I need to save the file before running it anyway. It also does not display me the errors. How can I program anything without seeing the errors. It says that my error msg was printed somewhere into unknown console. I came back to the command line but its view is too tiny. Can I make it in another window to switch easily between the 3D scene and the pycommand line? Probably, you have a better advise to make the operational python environment.  I hoped that I can store the successul lines of code in external editor and fiddler them into the console. But the following lines  for o in D.objects: o.select = True ; bpy.ops.object.delete() earth = bpy.ops.mesh.primitive_uv_sphere_add()   succeed only if I paste them one-by-one and fail if I paste them two at once.


I read statements like ‘An LED has a fixed voltage drop regardless of the current running through it’, but looking at the following examples (using arbitrary numbers), can someone confirm that the following are true/correct -   If I had a 12V battery, 500 Ohm resistor and an LED with a forward voltage of 2V, the current in the circuit would be 20mA ((12 – 2)/500). The current-voltage curve of an LED shows a small increase in current would equal a tiny increase in forwarding voltage, so for example if I wanted the current to be 40mA, the LED would have a tiny increase in voltage drop? If I had a 3V battery, no resistor and an LED with a forwarding voltage of 2V, what happens? KVL states that the total voltage drop of the circuit must equal the power source. So in simplistic terms, does the battery just pump out as much current until the LED is forwarding 3V, and the current of the circuit is whatever the current-voltage curve of the LED says is at 3V? If both of the above are true, then is the statement regarding LEDs having a fixed voltage drop, is it more correct to say that an LED has roughly a fixed voltage drop when a similar amount of current is running through it? …and finally, and this may never happen or even be possible, for example a 20V battery and just an LED, apart from the LED disintegrating, would it ever be possible for the power supply to not be able to supply enough current so that the LED can reach a voltage drop of 20V, and therefore breaking KVL, what happens in that situation?   I am fairly new to this stuff, and not looking for a too technical explanation, but really just a confirmation of the above questions, and if they are wrong a simple explanation as to why that is.  Thanks.


Number of ways arranging 5 letter word from the word "Calculus"

How do I find out the amount of five letter word arrangements of the word "Calculus"?    To clarify, my question is centered around the reason why that my methodology was incorrect.   Clearly in this problem order does matter,  And while it would be trivial to solve the problem there was only one letter that was repeated, the letter "u" "l" and "c" are being repeated  My initial thoughts on the problem was to do the following: $$\frac{\binom{10}{5}}{3!\cdot 3!\cdot 2!}.$$  But upon delving into the problem further I discovered that it was wrong.  I was wondering what would be the best method in solving this problem in which it has multiple letters repeating?


what difference between used to & to be used to?

I would like to know what difference between the two following phrases:   I used to smoke when I was in United States. I'm used to living alone.   Is it correct to say "I'm used to live alone when I was teenager" Does it the same meaning?


Why do vote related badges update slowly or flakily?

I noticed that the count update and awarding of vote related badges like the following is slow / flaky:  Civic Duty Vox Populi Suffrage  For instance, one day I had completed 40 max votes, but the count showed 39 till the next day. And finally on the next day after a few more votes the Vox Populi badge was awarded. Is there a bug or does the calculation take time or does it have to go through moderators to work?


English equivalent of the expression “a longer arm than résumé”

I've heard a non-native English speaker use the expression "in this place, having a long arm to scratch someone else's back is more important than having a long résumé", conveying the idea of favoritism in a place influencing the promotion of people within. I would like to know if there is an equivalent in English to such expression.


A tool that migrates data from database A to B has been developed. The tool will be used to migrate all production data from version 1.0 of our app (operating on A) to version 2.0, currently being developed (operating on B). The schema may differ between each other. How are you going to make sure the application is working after migration? Provide your test strategy and sample test cases.


how to set the values of one constructor with the values of another?

I'm currently in a beginner java course at my university and am still learning the basics of programming. This week we've been learning about constructors, and I'm stuck on the second half of my assignment for this week so any help would be much appreciated.  the directions for the second part of the lab(the part i'm stuck on) are as follows:     Write the complete code for the class Truck as given in the class   diagram below. Be sure to not use duplicate code in the constructors.   For example, the constructors with 2 arguments should call the one   with 1 argument to set the value for cylinder.   these are the constructors it wants me to make.    Truck() Truck(int cylinders) Truck(int cylinders, String manufacturer) Truck(int cylinders, String manufacturer, double load) Truck(int cylinders, String manufacturer, double load, double tow)   Any explanations/examples as to how to do this would be amazing


matrices with same minimal and characteristic polynomials are conjugate

Let $A$, $B$ be two $n\times n$ matrices over $\mathbb{C}$. If $A$, $B$ have the same minimal polynomials and characteristic polynomials, then can we prove that $A$, $B$ are conjugate? i.e., does there exist $P\in GL(n;\mathbb{C})$ such that $PAP^{-1}=B$?   Prove or give counterexamples.


How to remove "Ask me anything" from windows task bar (turn off cortana)

I have got a new PC and I am trying to kill Cortana once and for all. I have many different version of essentially the same guide as to how to turn it off but none of them exactly match what I am seeing on my computer - no doubt because Microsoft seems to change all this stuff ever 5 minutes.  I am on Windows 10 Pro, Version 1703, OS Build 15063.250  I think that I need an option that says     Cortana can give you suggestions, ideas, reminders alerts and more   but I do not see that in any of the settings panel that I have opened.  If I click the notebook icon there is no settings options there (there is a permissions option and I have turned everything off).  I can remove the search bar from the task menu by using the cortana menu but that only shrinks or removes the search bar. I want the search bar but not the microphone or cortana.


Why does Latex make a small adjustment when I change section color

I want to change the color of a section of a document. The command to do so is   {\color{red} \section{Introduction}}   (Merely doing \section{\color{Introduction}} does not change the color of the section number).  So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif   So, how do I carry out color changes without changing the vertical spacing, etc ?  Edit : A minimal code snippet and the effect of changing color can be seen here  (no other change except color)  \documentclass{article} % For LaTeX2e \usepackage{xcolor}  \title{Generative Adversarial Nets}  \begin{document}  \section{Introduction}  The promise of deep learning is to discover rich, hierarchical models that represent probability distributions over the kinds of data encountered in artificial intelligence applications,  such as natural images, audio waveforms containing speech, and symbols in natural language corpora.  {\color{red} \section{Next Section}}  This framework can yield specific training algorithms for many kinds of model and optimization algorithm. In this article, we explore the special case when the generative model generates samples by passing random noise through a multilayer perceptron, and the discriminative model is also a multilayer perceptron. We refer to this special case as {\em adversarial nets}. In this case, we can train both models using only the highly successful backpropagation and dropout algorithms and sample from the generative model using only forward propagation. No approximate inference or Markov chains are necessary.   \end{document}     I previously thought the culprit was the nips14submit_e (which can be found here ()), but it doesn't seem to be


Can anyone help me showing that :  For any simply connected plain domain $D_1, D_2 \subseteq \mathbb{C}$ where $ D_1 \cap D_2 \neq \phi$ is connected, show that $D_1 \cup D_2$ and $D_1 \cap D_2$ are simply connected.  The restriction is I have to use homotopy notion. That is, a domain $D \subseteq \mathbb{C}$ is simply connected if every continuous closed curve is homotopic to a point $z \in D$.  I have no idea about this since homotopy is very new to me.


Print lines between (and excluding) two patterns

I'm going to submit form using cURL, where some of the contents is come from other file, selected using sed  If param1 is line matching pattern from other file using sed, below command will works fine:  curl -d param1="$(sed -n '/matchpattern/p' file.txt)" -d param2=value2 http://example.com/submit   Now, go to the problem. I want show only text between 2 matching pattern excluding the matching pattern itself.  Lets say file.txt contains:  Bla bla bla firstmatch It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. secondmatch The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.   Currently, lots of "beetween 2 matching pattern" sed command won't remove firstmatch and secondmatch.  I want the result to become:  It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.


How prove this diophantine equation $x^2+y^2+z^3=n$ always have integer solution


Prove that the isomorphism between vector spaces and their duals is not natural

In preparation for an introductory talk on category theory, I recently spent some time thinking about natural transformations. The first example, or maybe the second, that everyone gives to motivate the concept of a natural transformation is the double dual: a vector space is naturally isomorphic to its double dual, and category theory makes this notion precise by saying that there is a natural isomorphism between the identity functor and the double dual functor $\text{Vec}_k\to\text{Vec}_k$. At this point, whoever is giving the example cautions that the dual functor $\text{Vec}_k^{\text{op}}\to\text{Vec}_k$ is not naturally isomorphic to the identity functor, and this is because making an isomorphism between a vector space and its dual requires choosing a basis.  But no one ever proves it! Implicitly, there is a "theorem" here to the following effect:     "Theorem": There is no natural isomorphism between the identity functor $\text{Vec}_k\to\text{Vec}_k$ and the dual functor $\text{Vec}_k^{\text{op}}\to\text{Vec}_k$.   The problem with this "theorem" is that, to my knowledge, it doesn't make sense to talk about a natural transformation between a covariant and a contravariant functor. The obvious commutative diagram to write down, something like $$ \newcommand{\ra}[1]{\!\!\!\!\!\!\!\!\!\!\!\!\xrightarrow{\quad#1\quad}\!\!\!\!\!\!\!\!} \newcommand{\la}[1]{\!\!\!\!\!\!\!\!\!\!\!\!\xleftarrow{\quad#1\quad}\!\!\!\!\!\!\!\!} \newcommand{\da}[1]{\left\downarrow{\scriptstyle#1}\vphantom{\displaystyle\int_0^1}\right.} % \begin{array}{ll} V & \ra{f} & W \\ \da{\eta_V} & & \da{\eta_W} \\ V^* & \la{f^*} & W^* \\ \end{array}, $$  will almost certainly not commute -- take, for instance, $f=0$. This failure is caused by the contravariance of the dual functor, not its unnaturality.  My question, then, is this: make precise the claim that there does not exist a natural isomorphism between the identity functor and the dual functor, and prove it.


I'm using Java to generate encrypted strings, and I get this warning at build time:      ECB encryption mode should not be used   So I'm wondering why I shouldn't use ECB and what I can use instead?


What is the Constantinopolitan hat incentivizing?

In my interpretation it will encourage posting noise questions here. Is there some legitimate reason for putting this hat in Winter Bash?


Accessing my Windows 7 files from my Ubuntu account

I have just installed Ubuntu on my computer and I have windows 7 as my other operating system. is there a way that I can access my windows 7 files from my Ubuntu installation?


Why is the image of a smooth embedding $f: N \to M$ an embedded submanifold?

I'm reading An Introduction to Manifolds (Tu) and got confused on p.123 Theorem 11.13. Let me briefly explain what was done before that.  The author defines an embedding between two manifolds $f: N\rightarrow M$ as an injective immersion (differential is injective everywhere) with the additional property that $f(N)$ as a subspace of $M$ is homeomorphic via $f$ to $N$. Then a canonical form theorem is proven, namely, that for any point $p \in N$, there are charts $(U,\phi = x^1, \ldots, x^n) \ni p$ and $(V,\psi = y^1, \ldots, y^m) \ni f(p)$, such that the transition map takes the following form:  $$\psi \circ f \circ \phi^{-1} : (r^1,\ldots,r^n) \mapsto (r^1,\ldots,r^n,0,\ldots,0).$$  (I guess it is implicitly assumed that $f(U) \subset V$).  Now in the process of proving that $f(N) \subset M$ is an , he states that $f(U) \subset V$ is defined by the vanishing of the coordinates $y^{n+1},\ldots,y^m$. I can prove that $$ f(U) \subset \{q \in V: y^{n+1}(q) = \cdots = y^m(q)\} $$ but not the reverse inclusion. Can anyone explain why this should be true?


How can a array value or an object be copied to another variable without copying its reference in Javascript?

How can an array value or an object be copied to another variable without copying its reference in Javascript so that the copied value and variable can be manipulated independently, without causing any change to the original one?


How is it possible to get killed by the Green Slime?

In the full release of CotN, there is an achievement where you have to get killed by a green slime.  This mob doesn't move. despite his non-null attack value , he can't possibly harm the player, because in order to attack, a mob must move towards the player.  Of course, there must be a way, else the game shouldn't have that achievement.  Any tips?


Which variables to keep in my analysis based on loadings from PCA?


The function $d(n)$ gives the number of positive divisors of $n$, including n itself. So for example, $d(25) = 3$, because $25$ has three divisors: $1$, $5$, and $25$.  So how do I prove that the product of all of the positive divisors of $n$ (including $n$ itself) is $n^{\frac{d(n)}{2}}$.  For example, the divisors of $12$ are $1$, $2$, $3$, $4$, $6$, and $12$. $d(12)$ is $6$, and $1 · 2 · 3 · 4 · 6 · 12 = 1728 = 12^3 = 12^{\frac{6}{2}} = 12^{\frac{d(n)}{2}}$


Example showing L1 is not a reflexive space

I know that the $L^p$ spaces are reflexive for $1<p<\infty$. I want to explicitly show that $L^1((0,1),\mathbb{R})$ is not reflexive by finding an element of $L^1$** that is not in $L^1$. To be more precise:   There is a canonical embedding $J: X \rightarrow X^{**}$ that is given by   $$J(x)(y)=y(x)$$  I want to find an element of $L^1$** that doesn't get mapped to by $J$.


Why do we require a topological space to be closed under finite intersection?

In the definition of topological space, we require the intersection of a finite number of open sets to be open while we require the arbitrary union of open sets to be open. why is this?  I'm assuming this has something to do with the following observation: $\cap_{n=1}^{\infty} (-\frac{1}{n},\frac{1}{n}) = \{0\}$ and there is some reason we don't want singletons to be considered open, I am wondering what this reason is. Am I thinking in the right direction here?  Thanks :)


Entire function so that $f\circ f$ don't have fixed points

Given $f$ an entire function so that $f\circ f$ don't have fixed points.  1) Prove that there is a constant $c\in \mathbb{C}$ with $c\not=0,1$ so that $f(f(z))-z=c(f(z)-z)$, $\forall z\in\mathbb{C}$  2) Prove that $f'\circ f$ is a constant function (using the derivative of the expression before).  3) Show that $f$ is a translation $f(z)=z+b$ with $b\not=0$  I have seen similar problems but not exactly this one. For 1) I have used the little Picard theorem with the function $\frac{f(f(z))-z}{f(z)-z}$. As this function doesn't assume the values 0 and 1, it is constant. For 2) I have $f'(f(z))f'(z)-1=c(f'(z)-1)$, but I don't know how to conclude that $f'\circ f$ is constant. For 3) I don't have any ideas. Hints? Thank you very much


How can I empty the trash using terminal?

I am not able to find trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?


How to code do-while loop for string variable?

Im novice in java coding. Could someone tell how to make this code work. I'm trying to a simple guessing game for string variable (as an exercise). I know how to do it with numbers but with words it seems to go differently. I'm trying to make the program ask word until it's correct (java).  public class DoWhile2 {     public static void main(String[] args) {      String word;      do {         System.out.println("Guess the right word.");         word = In.readString();          if (word != "java")              System.out.println("Try again.");          else              System.out.println("Good.");      }while (word != "java");  }}


How to set the default vertex count to added geometry?

I wanted to know whether there is a way to set the default amount of vertices of added geometry (Such as default circles and cylinders) ?  Changing the amount from 32 can get quite annoying as I am working quite a lot with subdivision modeling...


is a Nikon d700 with sc < 5k for 950SGD a good buy? What are the things that I should take note of before buying? Please suggest. Thanks.


Is $U(pq)$ a cyclic group, where $p$ and $q$ are distinct primes?

$U(pq)$ is to be the units of $Z_{pq}$. I would assume that distinct prime factors would enable $U(pq)$ to always by cyclic. My professor alluded to the fact that this may not always be true. However, I am curious if this is always the case, since $U(p)$ is cyclic, given $p$ is prime.  What are your thoughts?


Can a single PostgreSQL query use multiple cores?

In recent versions of PostgreSQL (as of Dec 2013), can we share a query between two or more cores to get a performance boost? Or should we get faster cores?


Finding the eigenvalues for a symmetric matrix where the numbers on the main diagonal are not given but equal

Given the matrix:  $A = \left(\begin{array}{rrr} k & 1 & 1\\ 1 & k & 1\\ 1 & 1 & k \end{array}\right)$ where $k$ is a real constant/number  Generally we know that the sum of the elements on the main diagonal equals the sum of all the eigenvalues: $tr(A) = \lambda{_1} + \lambda{_2} + \lambda{_3} = 3k$  Since this matrix is symmetric we know that the following holds true: $A^T = A$  Also since all of the rowsums are the same we can assume that the rowsum is equal to one of the eigenvalues, so we set: $\lambda{_1} = k + 2$  Using the identity matrix $I = \left(\begin{array}{rrr} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right) $  when solving $(A - \lambda{_1} I) = 0$ we find the first eigenvector to be $\vec{v_{1}} =  \left(\begin{array}{rrr} 1 \\ 1 \\ 1  \end{array}\right).$  Now my question is how can I find the two remaining eigenvalues?


Reason behind $L = T - V$ (Lagrangian formalism)

I've been learning about the Lagrangian formulation recently, and while I'm with the process, I am still struggling somewhat with the theory behind it. As I (rather poorly) understand it, the formulation is based on the principle of least action. The Euler-Lagrange equation is used to find the minimums of the integrals of the Lagrangian (the action), which is then used to solve for whatever value you are interested in.   What I DON'T understand is why the Lagrangian is equal to the difference between the total kinetic and potential energy of the system. The definition seems arbitrary. What is the significance of that particular difference? Every lecture I've found seems to brush past the point, and I've yet to find a satisfying explanation. Can anyone provide a better justification?


Why did the Ministry of Magic choose an ax for carrying out a death sentence?

In Harry Potter and the Prisoner of Azkaban      Buckbeak (or Witherwings)    is sentenced to death by the Ministry of Magic. Walden Macnair, the Executioner of the Ministry of Magic, is brought to Hogwarts to carry out the sentence.  In the end      the execution didn't actually take place.   There is one thing I can't understand: why kill him with an ax? Why would there be an executioner at all? Wouldn't it be simpler, cleaner, and less torturous for the convict to use a poison, or any other magical way to humanely and legally kill? Even if there isn't a thing like that (which I doubt) it still seems way too brutal to use an ax, especially when you're the Ministry of Magic.


How does SO's new auto-login feature work without any refresh?

The above link talks about how auto login is implemented in SO. Answer to that post points to this solution.     Now in 2016, if i access another SO site after logging into one, we get logged into the second site immediately without any page refresh.   I am curious to know how this "without any page refresh" login thing work.


How can I forcefully stop a process in ubuntu, like we can do from task manager in ubuntu. look its not the same question as you indicate here. I want a feature in ubuntu 15 which is just same as task manager in windows. i.e. not just kill a process but also do rest of the jobs of the task manager.


I am using an Asus C200 chromebook running Ubuntu 16.04, and I want to know how to remap the F10 button to Volume up, and F9 button to volume down.  Thanks.


How to show a notification if a startup application (or process) failed to start automatically

I added a script to autostart (using Default applications for LXSession). Later, I moved the folder containing the script.   As result, the autostart command was silently failing.  How can I enable warning messages about failed autostart commands?


FaceTime not working on iPhone 6 Plus purchased from Dubai

I bought my iPhone 6 Plus in Dubai. I am using the phone in Sri Lanka and I cannot use the FaceTime. How can I use FaceTime while in Sri Lanka?


I have seen people showing one slide progressively by pressing Enter. Could anyone tell me how to realize that in Beamer?


I am writing a thesis for which the majority of my references are in the standard style text [XX] (or text^XX, depending on citation style) achieved by doing \cite{ThingThatGivesXX}. However, for a couple of citations, I need to adapt papers I have co-written, and include the phrase Adapted from Ref. YY (without the brackets) and want to achieve it with something like \cite[special_option]{ThingThatGivesYY} but haven't had luck tracking down [special_option].  Note: XX and YY are numbers.  Edit: clarified question.  Answer: looks like what I need is Ref. \citealp{ThingThatGivesYY} to get Ref. YY for this particular special use case.   Thanks for the natbib reference


Method parameter sd & ed is LocalDate, I need return date object, but sd & ed return null. My define a private method:  private void setQuarter(LocalDate sd,LocalDate ed,LocalDate today){             switch (getQuarter(today.getMonthValue())){                 case 1:                     sd=LocalDate.of(today.getYear(),1,1);                     ed=LocalDate.of(today.getYear(),3,31);                     break;                 case 2:                     sd=LocalDate.of(today.getYear(),4,1);                     ed=LocalDate.of(today.getYear(),6,30);                     break;                 case 3:                     sd=LocalDate.of(today.getYear(),7,1);                     ed=LocalDate.of(today.getYear(),9,30);                     break;                 case 4:                     sd=LocalDate.of(today.getYear(),10,1);                     ed=LocalDate.of(today.getYear(),12,31);                     break;                 default:                     sd=LocalDate.of(today.getYear()+1,1,1);                     ed=LocalDate.of(today.getYear()+1,1,1);             }         }   Invoke this method:  LocalDate sd=null; LocalDate ed=null;  setQuarter(sd,ed,today);  log.info("==> sd:{},ed:{}",sd,ed);   Output message: ==> sd:null,ed:null


Must airlines warn passengers about changes of required travel documents?

Case:   Booking of flight ticket from Belgium to Namibia for family with minors in Jan 2018 for flight scheduled on Aug 1st 2018. New regulation on birth certificates requirements for minor introduced by Namibian authorities on July 15th 2018 with activation date on August 1st. (short notice !) Airline denied boarding to family on Aug 1st due to missing birth certificate.   Argument of airline : Passenger should in any case be aware of regulation.  Question : When a passenger books a flight on the website of the airline, is the airline responsible to warn the passenger if there is a regulation change on the required travel documents between the booking time and flight departure time?  Thanks for your replies.  1) In fact the airline told us they have been phoning to all their pax with end destination Namibia to warn them, but unfortunately not us. Their explanation is, because they "subcontracted" the last leg of our journey (JOH-WDH) to a third party airline, our family didn't appear on their list of pax to warn for this new rule ... From a "premium" airline I would have expected a more professional service...  Bad luck for us...  2) Timatic "on line" contained info as of the very date of our departure (Aug 1st). The Timatic paper booklet of July and August did not contain this update yet. The release of the next month (September) did...  Again bad luck for us...


How to download anonymously with Transmission?

How to download torrents anonymously with Transmission? I also have Tor browser.


Regex to get all data after certain word and between quotation marks

i have an xml file with a lots of data, but it also contains a list of ids which looks like this  <test test-id="014727"> <not-test not-test-id="11111"> <not-test not-test-id="22222"> <not-test not-test-id="3333"> <test test-id="019727"> <test test-id="013727">   So far I have searched for test-id which gives me a list of all numbers, but it doesn't filter out additional info.  Using a regex in sublime text, how can I get a list of all the numbers after test-id?  So from the example above I would have 3 lines of:   014727 019727 013727


I am using Ubuntu 18.4.1 with one built-in and two external monitors. By normal booting (linux 4.15.0.44-generic) Ubuntu can not loaded. But all things ok when I am using  linux 4.15.0.43-generic at booting.


Is my AMD Radeon R5 m335 able to render in Blender? Is this a GPU?

Im using Blender 2.78c and where I have seen in many tutorials people can select their graphics card in the User Preferences>System by clicking CUDA. I only have the option to click OpenCL and when I do it says only Hanain under it.


I've used this code to select the duplicate rows, it went right,   SELECT name, COUNT(name)    FROM emp  GROUP BY name  HAVING COUNT>1;   But it doesn't help me in deleting the same selected rows....  DELETE emp   WHERE name IN ( SELECT name, COUNT(name)                     FROM emp                    GROUP BY name                   HAVING COUNT >1);


Help evaluating $\int e^x \sqrt{1+e^{2x}}dx$

$\int e^x \sqrt{1+e^{2x}}dx$  It's probably been answered somewhere, but I havent found it so far so I decided to post it as a question (if it has been answered point me in the right direction and I will delete the question.  What I have tried:   Put it into mathematica, got a relatively simple answer: $$\frac{1}{2} (e^x \sqrt{1+e^{2x}}+\sinh^{-1}e^x)$$ Dont know how to get there! Obviously I tried $e^x = u$  substitution, ended up with $\int \sqrt{1+u^2}du$. From here I am not really sure what do to, I tried another substitution of $u=\cosh t$, but to be honest I am very unfamiliar with hyperbolic trig:   $$u=\cosh t \implies du=\sinh t~dt$$  $$\int \sinh t\sqrt{1+\cosh^2t} ~ ~dt$$ And i believe this is the same as $\int \sinh^2 t ~ ~dt$? Once again, I am not too sure about this because I don't know much about hyperbolic trig.   From here I don't know where to go (don't even know if my working so far is right)..


I have a json object which I want to parse in java and use data as string. JSON Object goes like this:  [   {     "id": 74168,     "billing": {       "first_name": "Tushar",       "last_name": "Attar",       "phone": "12345678",       "address_1": "myaddress1",       "address_2": "myaddressline2",       "city": "mycity",       "state": "mystate",       "postcode": "500050"     },     "line_items": [       {         "name": "Adidas track pants",         "quantity": 1,         "meta": [           {             "value": "500 grams"           }         ]       },       {         "name": "reebok track pants",         "quantity": 1,         "meta": [           {             "value": "500 grams"           }         ]       }     ]   } ]   I am using GSON to parse data. Till now I am able to parse id, first name, last name, phone number,address_1, address_2, postcode, state properly.  Now I am trying to parse line items array but I get a null pointer exception.  I have searched a lot on google but no success.  Can anyone tell me the code to parse the data? Here is the code I am using to parse line items array:  JsonElement jelement = new JsonParser().parse(inputLine); JsonArray jarray = jelement.getAsJsonArray();  JsonObject  jobject = jarray.get(i).getAsJsonObject(); //coyping this JsonObject to other reference so that it can be used for line items JsonObject jobject123 = jobject;  JsonArray jarraylist = jobject123.getAsJsonArray("line_items"); String name[] = new String[jarraylist.size()]; String quantity[] = new String[jarraylist.size()]; String weight[] = new String[jarraylist.size()];  int j; for( j=0;j<jarraylist.size();j++) {     JsonObject jobjectlist = jarraylist.get(j).getAsJsonObject();     name[j] = jobjectlist.get("name").getAsString();     quantity[j] = jobjectlist.get("quantity").getAsString();      JsonArray jarraymeta = jobjectlist.getAsJsonArray("meta");     JsonObject  jobjectlist2 = jarraymeta.get(0).getAsJsonObject();     weight[j] = jobjectlist2.get("value").getAsString(); }   The inputline contains the JSON object as string


Div is not centered when setting the width to 50%

when I center my div, it's not centered. It seems, that his left corner is right in the middle of the screen. How can I substract the half of my width to this, that my div gets centered correctly?  In my css I write left: 50% and this is the result:    are there any possibilities to center this div correctly?


Upvoting based on celebrity, too many upvotes ("excessive rep slurping")

I have noticed a couple of kinds of behavior that seem to crop up in the SO community, and it really seems to artificially boost reputation. There may not be a solution (or it may not be a problem!) but here are some thoughts.  The first is the fact that "celebrity" users, or users with lots of reputation, are treated significantly better than others. Take Joel Spolsky's most recent question:    It was closed, opened, closed, and re-opened. And the question has earned Joel - what - 1030 reputation 103 votes, and lots of reputation! Wow! I'm not saying that Joel's question is a bad one. But lets compare to other questions that one might consider to be in the same equivalence class - easily answerable, specific questions, short questions:   (5 votes)   (5 votes)  If you look at the , I can hardly find any which are specific technical questions. So that Joel's question was so upvoted could only mean that:   It was upvoted based on his celebrity People have been interpreting the questions as a sort of zen-like wakeup call, designed to get people talking and thinking about they way they vote.   I do not mean any disrespect toward Joel, and again, I think his question was a good one. This post isn't about Joel! But the boost in reputation did not (imho) mean "Joel is really good at programming, and he has earned my trust as someone knowledgeable about computers." It may be true that Joel is a proficient computer expert, but not based on the merit of that one question.  Which leads me to an example about myself. I recently gave  (130 reputation) to a question about PHP's image-creating libraries. I am very appreciative of the community's support for my answer - an answer which I believe was well-thought and that I put effort into.  At the same time I can't look someone and tell them, with a straight face, that my reputation is a great reflection of my computer-related knowledge. Billions of people on the net have created tutorials for PHP's GD image library - I just happened to be the person to post a few of them. Heck if I know why it got 13 votes! (oh, but please don't downvote it!!)  SO is built by the community - so the community absolutely gets to decide what questions are important, and how they choose to dispense reputation. But in practice, I feel like peoples' reputation would be much lower if the community were more discriminating about the way they voted.  So: am I totally off base here? Is this even something that can be corrected with a different reputation algorithm? Or am I the only one who sees this as a detriment to the SO community?  (And, to be completely clear, I do not intend for this to be an ad hominem, and I am not jealous about not having a higher reputation. But I do take reputation with a grain of salt, in part for these reasons, and I thought I'd bring it up! It is meta, after all!)


How to add reference images using a script?

I'm trying to write a Python script that adds all the images in a directory as reference images. In a second step I would like to trace the images to Grease Pencil objects (). Therefore, I looked at the Info Editor to find out which commands are executed when a new reference image is added. This resulted in the following script: import bpy import os  # add images img_dir = bpy.path.abspath("/home/test/imgs")    # directory in which the images are located   for img_name in sorted(os.listdir(img_dir)):     img_path = os.path.join(img_dir, img_name)      bpy.ops.object.empty_add(type='IMAGE',                              radius=1,                              align='VIEW',                              location=(0, 0, 0),                              rotation=(1.5708, -0, -0),                              scale=(3.013, 3.013, 3.013))      bpy.ops.object.load_reference_image(filepath=img_path)   Unfortunately only an empty rectangle appears when I execute this script. In addition to the problem that the reference images are not displayed correctly, Blender also seems to crash when adding large amounts of images. AL lib: (EE) Received stream failure! Bus access error                           # original message in german: "Bus-Zugriffsfehler"  I use Blender 2.91 on an ubuntu computer.


Pairs of $(p,q)$ such that $p^2 + 1 = 2 q^2$?

Do pairs $(p,q)$ of natural numbers different from zero, i.e $p \in\Bbb N$, $q \in\Bbb N$, $p \ne 0$ and $q \ne 0$, have a special name, when they satisfy the following equation:     $$p^2 + 1 = 2 q^2$$   Is there a infinite number of them. if yes, is there a systematic way to generated them, like it is for example the case for pythagorean triples?


How can I stop the Ubuntu Software Center from autostarting in Xubuntu?

I recently installed Xubuntu 11.10 and am completely updated. Software sources used include proposed as well as backports (in case that means anything).   My issue is that the Ubuntu software center autostarts on login. I've already checked my startup apps in 'session and startup' through the settings manager and it isn't set there. Is this just a 'deal with it' situation like Unity in Ubuntu? Or is there some glaringly obvious setting that I'm missing? Been considering installing 10.04 and just upgrading features a la carte to avoid 11.10 bugs. Any ideas?  Oh and there is no check in the save session box. USC is closed when I shut down anyway.


When do I use Present Continuous for near future instead of "be going to"?

I am reading  about present continuous.  As the writer states     USE 3 Near Future   Sometimes, speakers use the Present Continuous to indicate that something will or will not happen in the near future.   Examples:   I am meeting some friends after work. I am not going to the party tonight. Is he visiting his parents next weekend? Isn't he coming with us tonight? "     The lesson says:  Sometimes, speakers use the Present Continuous...   My question is when are these "sometimes"?


How to know how much current I can draw from USB

I am making a Li Ion 1 cell charger that will draw power from a USB cable. How do I know how much current is available?  I don't know if I am plugged into a wall wart that can supply 2A or a computer that can only supply 500mA.  Is there a chip that will talk to the USB and let me know how much current my charger can draw?  Do I just keep drawing more current until the supply dips? I have spent hours looking, but have not found an answer...


I put the CD in and boot the machine. The initial Ubuntu screen comes up ("Ubuntu" with the line of dots below it) for a few seconds, and then it disappears and I see this text:  initramfs , so that i couldn't do further. please help to solve this problem  thank you


$ z_1^k+\cdots +z_n^k=0$ for all $k$ implies $z_i=0$ for all $i$

Suppose $z_1,...,z_n\in \Bbb C$ are complex numbers, not necessarily distinct, satisfying $$ z_1^k+\cdots +z_n^k=0$$  $ \color{red}{\forall\; k>0}$. Then is it true that $z_1=\cdots=z_n=0$?  This will be obvious if the $z_i$'s  were all real, but I'm wondering that this is true for the complex case.


What do I need in a camera to take non-blurry photos of a fast-moving child?

I'm a mom who is obsessed with taking photos of my now 2 year old daughter.  I currently have a Nikon j1 which I like, but I find the shutter speed is still a bit slow and when you're trying to take photos of a speedy little girl, I end up with a lot of blurry images.  So I'm looking for a camera with a very fast shutter speed that will allow me to take good photos of a very fast moving child.  Also that can take photos in low light. I've been looking at the canon eos rebel but I'm not sure. Would like it to be able to take videos as well. Any advice?


Do I need transit visa in London with an EEA residence permit?

Do I need a transit visa in London if I am an Egyptian citizen living in Greece with a residence permit? I am travelling from Greece to Italy and I'll do transit landside less than 24 hours.  I read on the  but does it make a difference that I am travelling inside Europe and not outside Europe?


How To Install D-Link DWM-156 3G Modem Ubuntu 13.04

I bought a new D-Link 3G modem and it said it supports Linux. But after I installed it, I still can't make the device work on Ubuntu 13.10.   I used the .deb file from the D-link modem 3g_modem_connect_DWM156_amd64.deb (from the modem itself) but I was unable to configure it. I searched the Internet, they use dlinkusbmodem.deb file, which is a file from 1 year ago. Even after I dpkg it, I still don't know how to proceed.  I've used every method in the askubuntu, it don't work with this file version.


Creating author blocks in beamer using authblk package

I am trying to use \authblk to create a beamer presentation with multiple author blocks, where each block basically says:  AUTHOR NAME 1 INSTITUTION 1  I tried using the \authblk but it does not seem to work. Can anyone please help me? Here is my code: \documentclass{beamer} \mode<presentation> { \usetheme{CambridgeUS} \usecolortheme{dolphin} \setbeamercovered{transparent} }  \usepackage{authblk}  \usepackage{color,colortbl}  \title[Short title]{Long Title} \subtitle{Subtitle}  \author[Short Name (U ABC)]{Author 1\\Institute 1 \and Author 2\\Institute 2 \and Author 3\\Institute 3}  \date[Dec 2015]{December 2015}  \begin{document}  \begin{frame}     \maketitle \end{frame}  \end{document}


Relation between the distance from a point to the resolvent set of a self-adjoint operator and the norm of a related operator

$H$ is a Hilbert space and $B(H)$ is the Banach space of its bounded linear operator on $H$. Assume $A\in$ $B(H)$, $A$ is self-adjoint. Suppose $\lambda_{0}$ is in the resolvent set of $A$. Show that: $||(A-\lambda_{0}I)^{-1}||=\frac{1}{d(\lambda_{0},\sigma(A))}$  Now I can use the knowledge of functional calculus(see $(A-\lambda_{0}I)^{-1}$ as the function of $A$)  to show that $||(A-\lambda_{0}I)^{-1}||\leq \frac{1}{d(\lambda_{0},\sigma(A))}$. But I don't know how to proceed.


Automata - proving the reverse operation through induction N elements

I am facing some difficulties proving the reverse operation on N elements.   Let Σ be an alphabet, given a word x ∈ Σ∗ and rev(x) the reverse of x. I want to prove that   for n >= 1 and for  X1,X2,...,Xn ∈ Σ∗   rev (X1,X2,...,Xn) = rev(Xn),...,rev(X1)   I would appriciate your assistance.


What ring is $\frac{\mathbb{Z}[X]}{(2)}$ isomorphic to?

I'm trying to find a ring isomorphic to $\frac{\mathbb{Z}[X]}{(2)}$ using the first isomorphism theorem. I thought maybe $\mathbb{Z}_2[X]$ was a solution, but I was unable to find a ringmophism to use the isomorphism theorem. Thanks!