What is the theory concerning gravitational atoms?

Imagine sometime in the distance future where the expansion of the Universe has created vast areas of empty space, light years wide.  Imagine, say, a neutron and a neutrino bound together as a gravitationaly bound atom. The "atom" in it's lowest energy state would be several light years across such is the weakness of the gravitational force.  Presumably the atom could jump to a higher energy state by absorbing a graviton.   Zooming out of this picture so that a light year looks only a few cm wide, would this look in any way like a normal atom but just on a vastly different scale?  Could these gravitational atoms form molecules?  Are the rules of these quantum gravitational systems known? Or does one need some unknown quantum theory of gravity?  In the distant future could most of the matter be made up of these gravitationaly bound atoms?


Is the destructor called if the constructor throws an exception?

Looking for an answer for C# and C++. (in C#, replace 'destructor' with 'finalizer')


When I name branches in Git, I always tend to start with a letter. mybranch89 for example.  Are there any rules to naming Git branches? For example, should I always begin with a letter, or are number only branch names possible such as 876


Multiple panel figure, with caption in one of the panels?

I want to put three figures inside a multi-figure with a single caption. If you imagine a 2x2 table, I want to place the three figures in three of the table cells, and the caption in the remaining cell.   Each subfigure should have its own label, and small captions (like (a), (b), and (c), to number the figures inside the panel). Then inside the caption for the whole figure, I want to reference the subfigures, but without using the figure number (that is, just (a) instead of Fig.3(a)), but outside the panel, I'll reference the subfigures as Fig.3(a), etc.  For example,  \begin{figure} \centering     \begin{subfigure}{.4\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_a.pdf}         \caption{}\label{fig:fig_a}     \end{subfigure} %     \begin{subfigure}{.4\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_b.pdf}         \caption{}\label{fig:fig_b}     \end{subfigure} %     \begin{subfigure}{\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_c.pdf}         \caption{}\label{fig:fig_c}     \end{subfigure} \caption{Some general caption of all the figures. In (\subref{fig:fig_a}) you can see a green square....} \end{figure}   But this puts two figures ((a) and (b)) side by side on the first row, then (c) alone on the second row, and the caption appears below. The second row has much space unused. The following is a picture of what I expect to get:    How can I do this?


I have searched but could not find the exact question.  Two circles with radii 5 intersect such that the center of one circle lies on the circumference of another. What is the area of the overlapping region in terms of pi?


“MOZILLA_FIVE_HOME not set” zekr quran ubuntu 13.04 ERROR

I have installed zekr Quran study software in ubuntu 13.04, but it showes error   org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]       at org.eclipse.swt.SWT.error(SWT.java:4387)     at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1939)     at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:699)     at org.eclipse.swt.browser.Browser.(Browser.java:99)     at net.sf.zekr.ui.QuranForm.makeFrame(QuranForm.java:628)     at net.sf.zekr.ui.QuranForm.init(QuranForm.java:340)     at net.sf.zekr.ui.QuranForm.(QuranForm.java:319)     at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)     at net.sf.zekr.ZekrMain.main(ZekrMain.java:94)   then I executed the following commands   tcsh   setenv MOZILLA_FIVE_HOME /usr/lib/firefox   setenv LD_LIBRARY_PATH ${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}`   But it showes error again    LD_LIBRARY_PATH: Undefined variable.  Now what should I do? Pls help.


If $f:G\rightarrow H$ is an isomorphism, then $\forall g \in G$, we have that the order of $g$ is the same as the order of $f(g)$  I can understand intuitively why this is true, but what would be the clearest way of proving this? Would you use some contradiction or would you define a bijection from the set generated by $g$ to the set generated by $f(g)$?


Why are Kurenai's eyes the way they are?

I've been reading Naruto, and I've noticed Kurenai's eyes are weird. They look a bit like Sharingan eyes, but there has never been indication they they are at all actually related to the Sharingan. Has there been any explanation for her eyes?


What is the planet order for each class in SWtoR?

Class(Knight, Consular, Smuggler, Trooper, Warrior, Inquisitor,Bounty Hunter, Agent)/Faction(Republic or Empire) -Starter Planet (Korriban, Tython, Hutta, Ord Mantel) -Chap. 1 Planets -Chap. 1 Final Planet -Chap. 2 Planets -Chap. 2 Final Planet -Chap. 3 Planets -Chap. 3 Final Planet -Interlude Quest Planets -RotHC Planet(s) -Interlude Quest Planets -SoR Planet(s) -Interlude Quest Planets -KotFE -KotET -Interlude Quest Planets -ONSLAUGHT


Please can any one help me with a script to restart apache2 at boot on ubuntu 10.04. I have tried so many tutorials but never worked and I tried crontab -e but is there any other way? because it only restart after boot. thank you.


Travelling to Schengen countries with Refugee Travel Document (Convention 1951) issued by Romania?

What countries allow me to pass their borders visa-free?  Am I allowed to visit and work in EU and Schengen countries?


Show that there exists at most one extension of $f$ whose co-domain is a Hausdorff space

I want to show the following     Suppose $A \subset X, f: A \to Y$ is continuous, $Y$ is Hausdorff.   Show that there is at most one continuous extension $g: \overline A  \to Y$   I feel like I am very close but I cannot finish.     By way of contradiction, suppose that there exists another extension   $h: \overline A  \to Y$, take $x \in \overline A \backslash A$, we   claim that $h(x) \neq g(x)$      Since $Y$ is Hausdorff, there exists open sets $U, V, U \cap V =  \varnothing$ such that $g(x) \in U$, and $h(x) \in V$      Then $x \in g^{-1}(U) \cap h^{-1}(v) \subset \overline A$   How do I proceed from here?


From wikipedia's page on the Hahn-Banach Theorem:  If $V$ is a normed vector space with linear subspace $U$ (not necessarily closed) and if $z$ is an element of $V$ not in the closure of $U$, then there exists a continuous linear map $ψ : V → K$ with $ψ(x) = 0$ for all $x$ in $U$, $ψ(z) = 1$, and $||ψ|| = dist(z, U)^{−1}.$  How is this a consequence of the Hahn-Banach Theorem?


replacement wood threshold insert for metal door

I have some late 70's doors and one is missing a threshold insert (the adjustable wood kind), anybody know of where one could by just the "wood strip" that goes in and screws down (there is a metal piece that sticks up into the wood, though you can't see it)?    They have about 4 screws that go down into them?


How to change to normal user in the command line when logged in as the root user?

I log into an system as root via ssh.  How do I become the normal user or another user in the command-line?


The above question i'm trying for so long but failed. This is from my class $12$ book(india).First of all i'm confused with tangential component of electric field, I mean why this? So far I've studied that electric field(Whether its own or someone's else) is always perpendicular to a charged body. So, there shouldn't be any tangential component. Could someone please explain me visually what's happening?  Strict Note: A class $12$ answer required. No complex statements please. Only for school childs.


I am trying to make a priority queue without using the Queue module. I have made a class PriorityQueue() and I am trying to create a mk function that takes no arguments and returns an empty queue but can't seem to figure out how. my task function is here:  class Task():      __slots__ = ('name', priority)  def mkTask(myName, myPriority):     t = Task()     t.name = myName     t.priority = myPriority     return t   What I have so far for my PriorityQueue class and a function to check if the queue is empty is this:  class PriorityQueue():     def __init__(queue):         queue.length = 0         queue.first = None         queue.last = None  def is_empty(queue):     return(queue.length == 0)   I can't seem to figure out how to create an instance of the Queue and insert elements of a specific Task into the Queue.


How do I mimic Pathauto transliterated output for an alias in my custom PHP code?

When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use:    $link_uri = taxonomy_term_uri($term);   $path_alias = drupal_get_path_alias($link_uri['path']);   This works ok, now - I want to append node name ("/" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context.  What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&$alias, array $context) but I'm not sure that's what I need.


I don't really get the behaviour of QGIS new reports (3.X) ...  I inserted an attribute table in a report. this table is spanning over several pages. I would like to create a page footer with the page numbering (current page and total amount of pages).  That seems quite trivial ... but ... can QGIS reports do that ?  I'm not in the case of an atlas.


I see no reason they should be (they come from different planets), but if so, how can they have children?


How can we show Power = $\mathbf{F}\cdot \mathbf{v}$?

How can we say that $$\text{Power} = \mathbf{F}\cdot \mathbf{v}$$  We know that small work done by a force $\mathbf{F}$ to displace an object by '$\mathbf{x}$' is  $$W = \mathbf{F}\cdot \mathbf{x}$$  So derivating wrt time, we get   $$\begin{align} P=\dfrac{dW}{dt}&=\frac{d\mathbf{F}}{dt}\cdot \mathbf{x}+\mathbf{F}\cdot\dfrac{d\mathbf{x}}{dt}\\ &=\frac{d\mathbf{F}}{dt}\cdot \mathbf{x}+\mathbf{F}\cdot\mathbf{v} \end{align}$$  We get this wrong result. How actually can we show $P=\mathbf{F}\cdot\mathbf{v}$ ?  Edit  Actually I know that total work $W$ is $\int \mathbf{F}\cdot d\mathbf{x}$.  Infinitesimal work done by $\mathbf{F}$ to displace body by $d\mathbf{x}$ will be $dW = \mathbf{F}\cdot d\mathbf{x}$, so dividing by $dt$ on both sides gives $$P =\dfrac{dW}{dt} = \mathbf{F}\cdot \frac{d\mathbf{x}}{dt}$$  But I wanted a proper proof not involving differentials!


Careers ad asking if I want to work where I already work?

I just saw this ad on the side of Stack Overflow:    I currently work for stealth.travel.  It even shows it when I click on the link!    How is it possible that the system does not link 2 + 2 together and not show me the company I already work for in the banner ad? (not that I am looking for a new job, just curious how my own company showed up there)


Can I apply for a Schengen visa of the first port of entry or does it need to be the country of the longest duration?

I'm planning to travel to the Netherlands, Spain and Bulgaria. My longest stay will probably be in Bulgaria. Now, Bulgaria doesn't issue a Schengen visa but allows people with a Schengen visa to visit. Which visa should I be applying for? Bulgarian Visa AND Schengen visa or just the Schengen visa for Netherlands or Spain?


Add button for publishing questions (and answers?) on facebook(/Twitter/whatever)

Sometimes, especially with niche or otherwise tricky questions, I'd like to increase posts' visibility as much as possible. One approach I've taken for this is posting a link to the question as a facebook status update.  I think it would be great if that functionality were integrated directly with the question/answer posting form similar to the way I can currently share projects I follow/commit to on Area 51.


Two Claims about Symplectic Group Actions

There are two claims in McDuff-Salamon's Introduction to Symplectic Topology, 3rd edition on p. 202 that I've been trying to figure out but haven't been able to. Let $G$ be a Lie group acting symplectically on symplectic manifold $(M,\omega)$; this means that we have a smooth group morphism $G \to \text{Symp}(M,\omega), g \mapsto \psi_g$. Here, $\psi_g$ is a symplectomorphism. Then, we get a Lie algebra morphism $\mathfrak{g} \to \mathcal{X}(M,\omega)$ on which assigns to each $\xi \in \mathfrak{g}$, a symplectic vector field $X_\xi$. The prominent property of this vector field is that the contraction $\iota_{X_\xi} \omega$ is a closed 1-form. More explicitly, we may define this $X_\xi$. $$X_\xi:= \left.\frac{d}{dt}\right|_{t=0} \psi_{\exp(t\xi)}.$$ The authors claim that it is a straightforward calculation to show the following for $\xi,\eta \in \mathfrak{g}, g \in G$:  Letting $g^{-1}\xi g:= \text{Ad}(g^{-1})\xi := \frac{d}{dt}|_{t=0} \;g^{-1}\exp(t\xi)g$, we have that $X_{g^{-1}\xi g} = \psi^*_g X_\xi$. $X_{[\xi,\eta]} = [X_\xi,X_\eta]$.  I do not have much fluency with Lie groups so I barely know where to start. Any help is appreciated.


How do I know when to have a PC use perception versus investigation?

So I have been trying to figure out the problem of when to call for a Perception check vs. an Investigation check. I have read over  extensively, but there is no accepted answer, and the most upvoted answer states that both perception or investigation could be used.  I am looking for a simple RAW way to decide whether the player is rolling Perception of Investigation, i.e., exactly when does the perception apply and when does the investigation apply?  An example of the kind of answer I'm looking for is: "Investigation is only used when the PC has a clue about whatever they are looking for. Perception is used when the PCs don't know what they're looking for."   The goal of this answer is to allow me, the DM, to quickly decide whether Perception or Investigation is being used AND to be able to explain my reasoning to my players.  Bonus points if the uses of Investigation don't paint it into an obscure corner or rely on first making a perception check.


how to find size /memory space occupied by a "process"

I was asked to write a c/cpp program to find size of any process in an interview. can any one tell me how this could be achieve ?   p.s.- before marking the que as duplicate - plz read it carefully : I have asked how to find via c/cpp program not just with any unix/linux shell command


Given a sequence of real numbers $a_n$ ($n \in \Bbb{N}$) that converges to $a \in \Bbb{R}$, show that the sequence $b_n$ ($n \in \Bbb{N}$) also converges to  $a$.  $$b_n=\frac{1}{n}(a_1+a_2+a_3+...+a_n)$$  I would be grateful for any tips, I have no idea where to look for sequences converging to sequences(?) - or is only $a_n$ a sequence and $a$ is not? I thought about the opposite, but couldn't help myself that way either ("if $b_n$ converges to $a$, does $a_n$ converge to $a$?"). I'd be grateful for any solutions to similar problems, that won't give away the solution - which I have in my book. I'd still like to understand it without looking that up though.


Convert a multidimensional javascript array to JSON?

What is the best way of converting a multi-dimensional javascript array to JSON?


I understand that there is no current workaround known for having two Apple Thunderbolt Displays run on an Apple Silicon Mac with a M1 Processor. I am opening this thread for creative solutions. Please let me know if you find a way to make this work - whether through a dock, or daisy chaining, or a Blackmagic HDMI/Thunderbolt converter. Thanks!


Tricky operator identity: $[L^2,[L^2,\vec{r}]]=2 \hbar ^2 \{ L^2, \vec{r}\}$?

This operator identity showed up in a course I was taking, and it was given without proof.  $$[L^2,[L^2,\vec{r}]]=2 \hbar ^2 \{ L^2, \vec{r}\}$$  The curly brackets denote the anticommutator, $AB+BA$. The $\vec{r}$ operator is the position operator. The $L^2$ operator is given by:   $$L^2 = -\hbar ^2 \left( \frac{1}{\sin \theta}  {\partial\over\partial\theta} (\sin \theta {\partial\over\partial\theta}) + \frac{1}{\sin^2  \theta} {\partial^2\over\partial\phi^2}\right)$$   Is there a way of proving this identity without tediously expanding all the commutators? I've been trying to find one but was unable to.


How can I convert WKB to WKT form? I stored coordinates  in WKB but now I  want to display it using WKT form.


I'm asking a question which has already been touched upon in the two questions below. But from a slightly different angle.  I have one openlayers webmap produced in qgis 3.0 which I would like to display on my wordpress blog. I have seen suggestions here which suggest using cartoDB or another plugin but I am on the free version of Wordpress and don't have the funds to pay a large monthly subscription (I'm a hobby mapmaker so don't have any money coming in from the work). Other older posts here have suggested hosting the html code on google drive but that no longer works either.  Does anybody have any sugestions for this?   The map is of early-modern european witch trials so if anyone has a suggestion of a site/blog who would host it I'd be interested to know as well.   Two earlier questions with a similar topic:


Perl subroutines with exact signature / exact number of parameters

I have seen usage of $ in subroutine definition somewhere. To learn more about it, I created various cases with a simple subroutine, and came to know that it's used for defining subroutines with exact signatures.  Can anyone please confirm:   Whether I'm right? I mean whether it's used for this purpose? Whether it has any other uses? Is there any other way to access those parameters inside subroutine, other than using my $param1 = shift; or my (@params) = @_?     use strict; use warnings;  # just a testing function sub show($$){     print "Inside show"; }  show(1, 1);   # works fine show(1);     # gives compilation error # Not enough arguments for main::show at test.pl line 8, near "1)" # Execution of test.pl aborted due to compilation errors.  show(1, 1, 1);   # gives compilation error # Too many arguments for main::show at test.pl line 8, near "1)" # Execution of test.pl aborted due to compilation errors.


Is $\sum_{n=3}^\infty\frac{1}{n\log n}$ absolutely convergent, conditionally convergent or divergent?

Classify  $$\sum_{n=3}^\infty \frac{1}{n\log(n)}$$ as absolutely convergent, conditionally convergent or divergent.  Is it, $$\sum_{n=3}^\infty \frac{1}n$$ is a divergent $p$-series as $p=1$, and $$\lim_{n\to\infty} \frac{1}{n\log(n)}{n} = 0$$ by comparison test. And this converges to $0$.  So, $$\sum_{n=3}^\infty \frac{1}{n\log (n)}$$ is conditionally convergence?  I'm not sure if I'm doing right or not. Could you guide me?  Thanks in advance! :)


Receiving Gmail to an account that is not linked to my email address

I keep getting email sent to similar email addresses as mine.  for example, if my email address is:  jfrank@gmail.com, I also get emails addressed to j.frank@gmail.com.  This j.frank email is not associated with my email address, so I cannot remove the association.    How can I block these type emails?


The question of Taylor expansion of loss function in XGBoost

I am learning XGBoost from , but there are a few questions in the derivation of it.  In the part of Additive Training of Tree Boosting, they say we take the Taylor expansion of the loss function up to the second order in general case, but I get some questions in derivation from:  $\text{obj}^{(t)}  = \sum_{i=1}^n l(y_i, \hat{y}_i^{(t-1)} + f_t(x_i)) + \Omega(f_t) + \mathrm{constant}$  to:  $\text{obj}^{(t)} = \sum_{i=1}^n [l(y_i, \hat{y}_i^{(t-1)}) + g_i f_t(x_i) + \frac{1}{2} h_i f_t^2(x_i)] + \Omega(f_t) + \mathrm{constant}$  where the $g_i$ and $h_i$ are defined as  $\begin{split}g_i &= \partial_{\hat{y}_i^{(t-1)}} l(y_i, \hat{y}_i^{(t-1)})\\ h_i &= \partial_{\hat{y}_i^{(t-1)}}^2 l(y_i, \hat{y}_i^{(t-1)})\end{split}$   I mean I know how to make the Taylor series expanded to second order:  $f(x) = f(x_k) + (x - x_k)f^{'}(x^{k}) + \frac{1}{2!}(x-x_k)^2f^{''}(x_k) + o^n$  And I assume $f(x) = l(y_i, x)$,  $x = \hat{y}^{(t-1)} + f_t(x_i)$ and $x_k = \hat{y}^{(t-1)}$, then use $\partial\hat{y}^{(t-1)}$  in the Talyor series, so we get the right result as mentioned above.  But I don't know that is a right derivation or not and even if it is right, I still feel it is hard to understand why they choose to expand it in this way.   I would appreciate it if anyone could help me.


How should you handle players forgetting information as opposed to their characters?

I'll start with the actual scenario that occurred in our last session.  Our party,  of which I am one of the PC's came across a nasty trapped/warded dirt wall.  We figured out that the trap was only triggered by contact with metal and resulted I in utterly destroying the metal. After some discussion,  we decided that we would just have to spend the time digging through it with our bare hands to avoid setting off the trap.  Now,  as a player,  it slipped my mind I was wearing rings made out of metal. Kaboom,  and a magical ring and one finger later,  I find myself accidentally triggering the trap.   Now,  I accepted the gm ruling on this because I felt stupid for forgetting such a basic thing and it was my fault for forgetting.   My question is, as GM's,  should you remind your players about things that their characters should not have forgotten,  especially as obvious as a trap that they just discovered?


Must the origin of the universe be non-physical?

Since the 2nd law of thermodynamics says the universe's entropy is constantly increasing, then its initial entropy must have been smaller than it is today.  However, no known physical law can reduce net entropy.  Does this mean the initial low entropy state of the universe must be the result of something that is outside the physical laws?  Or does it mean there is a physical law that can reduce entropy?  The linked questions sound similar, since they also deal with the low entropy state at the beginning of the universe.  But the questions are not asking whether this implies it was caused by something outside our physical laws, which seems the straightforward interpretation.


Can you get the distinct combination of 2 different fields in a database table?  if so, can you provide the SQL example.


How to access the different panels in QGIS Composer?

I accidentally closed the tabs in composer: Composition and Properties, I think it is called.  The question: How can I open them again?


mysql dont recognize the special charset from query use php

i have   $query = "SELECT * FROM movisat.provincias WHERE descripcion LIKE '%coruña%'";     $rs = mysql_query($sql, db::getConexion());         print_r(mysql_fetch_assoc($rs));   return:  Array()   and with this it works  $query = "SELECT * FROM movisat.provincias WHERE descripcion LIKE '%coru%'";  $rs = mysql_query($sql, db::getConexion());         print_r(mysql_fetch_assoc($rs));   return:    without the character "Ñ" it works


Why are there not generic phone OS installers?

I am used to install and remove various operating systems in my PCs, even having several at a time.  Usually, to install a new OS means:   Burn the ISO to a CD/DVD/USB. Insert it. Boot. (Maybe you have to tweak a bit the BIOS first).   The only difference between PCs is its CPU architecture: x86, x86_64, arm, etc. Depending on that, you have to download one ISO or another. But I never have to worry about which graphic card, mouse, keyboard, screen, network card, etc. it has. The install wizard automatically detects that and installs the corresponding drivers. Sometimes, if they are not bundled, the installer also downloads them. Anyway, the key point here is that the ISO is always the same.  Now, many mobile OS come out: Ubuntu, Tizen, Firefox OS, the omnipresent Android, and why not any Linux ARM distro out there!. Sadly I have a random chinese mobile, that surely will never get official support in any platform, and I will never be able to test them.  But... Are not today's phones just tiny ARM PCs? Why is installation that different? Why do I always need to have a precompiled monolithic ROM specific for my phone model? Why not just a single "ISO" per OS for any phone that detects and installs automatically the needed drivers, just like always has been in the PC market?  Note: I understand the problem with privative drivers, but I remember Debian asking me for those when there were no libre alternatives at installation, and I could install them then or later. I suppose that workaround could be used in those cases too. Correct me if I'm wrong.


black around an image set as image texture (jpg or png)

I have made a cylinder, unwrapped. I want to wrap an image on it, but not to cover all the cylinder. If a scale it down, i see black around my label instead of object's material. How can i fix this? I'm novice in blender


Proving that $C$ is a subset of $f^{-1}[f(C)]$

More homework help.  Given the function $f:A \to B$.  Let $C$ be a subset of $A$ and let $D$ be a subset of $B$.  Prove that:  $C$ is a subset of $f^{-1}[f(C)]$  So I have to show that every element of $C$ is in the set $f^{-1}[f(C)]$  I know that $f(C)$ is the image of $C$ in $B$ and that $f^{-1}[f(C)]$ is the pre-image of $f(C)$ into $A$.  Where I'm stuck is how to use all of this information to show/prove that $C$ is indeed a subset.    Do I start with an arbitrary element (hey, let's call it $x$) of $C$? and then show that $f^{-1}[f(x)]$ is $x$?  I could use a little direction here...  Thanks.


Why does Type I error always occur in a NHST? Or, is NHST too weak to tell the truth?

Recently I have noticed that Type I error of a test is too much persistent. Even if all the values are almost equal (variance is extremely low) and tested to that value (true mean), still there is nearly 5% Type I error of the test. I am frightened and curious to rethink, are the people who have banned (or skeptic about) NHST (null hypothesis significance testing) truly correct? Let's have a look at the following r code:       n=10000 t1err=0 set.seed(1235) for (i in 1:n){    x=rnorm(100, 10, 20)    if (((t.test(x, mu=10))$p.value)<=0.05) (t1err=t1err+1)  } cat("Type I error rate in percentage is", (t1err/n)*100,"%")   It will produce roughly 5% as Type I error. Seems ok. But let's see this:      n=10000   t1err=0   set.seed(1235)   for (i in 1:n){      x=rnorm(100, 10, 0.000001)      if (((t.test(x, mu=10))$p.value)<=0.05) (t1err=t1err+1)    }   cat("Type I error rate in percentage is", (t1err/n)*100,"%")   Each values are extremely close to 10. Still it produces about 5% Type I error. What conclusion we may draw from it? Or, am I missing something?


Do non-flying creatures fall instantly if moved into the air against their will?

Situation A sorcerer in my party wants to use the cantrip "Lightning Lure" to pull a creature that isn't capable of flying into the sky while concentrating on the "Fly" spell. He uses his Metamagic "Quickened Spell" to cast "Lightning Lure" as a bonus action. The creature that isn't capable of flying fails its saving throw and is pulled 10 feet towards the sorcerer. So far so good, but right after that he wants to use his action to cast the cantrip "shocking grasp" during the same turn.  Question Does the creature that isn't capable of flying instantly fall in the described situation, making a melee spell attack impossible? (even though it's all happening within the same players turn) Or is the sorcerer in question able to cast his "Shocking Grasp" on the enemy just pulled with "Lightning Lure"?


I have installed a program (taskwarrior.org) manually --- cmake, make, make install, etc.  How do I completely uninstall a program installed this way?  There was no 'uninstall' script in the downloaded zip file.


I am fairly new to Java, and even newer to coding within Android Studio. I'm trying to read a basic .txt file located in the Assets folder of my practice project. My main goal is to grab a random line from the file after pressing a Button and to have that line printed in the TextView of my MainActivity. However, whenever I run the app on my phone via USB, the app crashes (after the button is pressed).   I have included a snippet of the code I have so far(), as well as a shot of the Logcat showing the error code ().  public class MainActivity extends AppCompatActivity {  @SuppressLint("WrongViewCast") @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      Button btn1=findViewById(R.id.buttonShowText);     btn1.setOnClickListener(new View.OnClickListener(){         @Override         public void onClick(View view){             try {                 AssetManager as=getResources().getAssets();                 InputStream is=as.open("insult1.txt");                 BufferedReader br1=new BufferedReader(new InputStreamReader(is));                 StringBuilder out=new StringBuilder();                 String line1;                 while((line1=br1.readLine())!=null){                     out.append(line1);                 }                 String dissFinal=out.toString();                 br1.close();                  TextView text1=findViewById(R.id.mainTextView);                 text1.setText(dissFinal);             } catch (IOException e) {                 e.printStackTrace();                 System.out.println("Exception Reached");                   }  02-21 14:39:08.076 30321-30321/com.asmodeus.practice E/AndroidRuntime: FATAL EXCEPTION: main                                                                    Process: com.asmodeus.practice, PID: 30321                                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference                                                                        at com.asmodeus.practice.MainActivity$1.onClick(MainActivity.java:47)                                                                        at android.view.View.performClick(View.java:5637)                                                                        at android.view.View$PerformClick.run(View.java:22434)                                                                        at android.os.Handler.handleCallback(Handler.java:751)                                                                        at android.os.Handler.dispatchMessage(Handler.java:95)                                                                        at android.os.Looper.loop(Looper.java:154)                                                                        at android.app.ActivityThread.main(ActivityThread.java:6126)                                                                        at java.lang.reflect.Method.invoke(Native Method)                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)   Again, I am relatively new, so take it easy on me! Thanks :)


How to add an Empty to all selected objects?

I have about 30 planes and would like to add an empty to each one of them, is there a way to do it using python instead of having to do it manually?


"Install" virtual machine guest os on host os

I have a host OS running Windows 7 and guest OS running Ubuntu on Virtualbox.  What if I want to "install" my image of Ubuntu virtual machine as ordinary Ubuntu installation. Is it possible and how?


Separate and visually indicate reversed events from the day's reputation changes

We've been getting a lot of questions  ever since the feature to see event reversals such as deleted posts and serial voting was added into the reputation history; and their confusion is legitimate. Even well-respected users have become confused by that number above the day. It should display the reputation changes for that day. I propose that reversal events such as these be visually separated from the main events for that day and not included in the total reputation change for that day. After all, their reputation isn't actually changing for that day, but reversing changes from previous days. These events already seem to get bumped down to the bottom of the events for the day, why not add a simple separator between them? Events indicating reversals    Events which have been reversed     Perhaps a second, smaller number could be added next to the main one to indicate that other events took place on that day, but I feel most users who really care will have noticed or went looking for the events anyways. However, including them in the actual change only serves to confuse people.


Getting "'file' is different from the same file on the system" when I attempt to update through synaptic

Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.  al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed:   libjack-jackd2-0:i386 The following packages have been kept back:   linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):  './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


What are the advantages of building tools/libs from source?

By building from source do you gain any benefits? Is the code better optimized to your hardware architecture? Is it optimized better in general?  Why would someone choose to build from source rather than using a package management system like APT/yum? If there is some kind of optimization gain when does that outweigh the benefit of a package management system?


How to find out which USB port is USB 3.0?

In my laptop (a Lenovo y470 ) there are three USB ports. One of those is USB 3.0 others are USB 2.0 . I do not know which one is what. When I copy data from my External HDD it transfers at 38MB/s from all of the USB ports. (Which is a good speed for USB 2 transfers, but to low for USB 3).  I used the device manager to confirm that I have one USB 3.0 port.    Is there a way a can figure out which port is 3.0 ?


How to login to gamecenter at PewDiePie's Tuber Simulator?

How do I login to the Gamecenter on PewDiePie's Tuber Simulator, if you have not done it when they asked?


I have span that I need to center vertically inside button Here is code of button
     <button       mat-raised-button       class="answer-button"       (click)="nextQuestion(item.id, questions[arrayIndex].id)"     >              {{ getLetterByIndex(i) }}       {{ item.answerValue }}     </button>
  Here is CSS stuff     .answer-button {   color: white;   margin-top: 34px;   background: $default-button;   border-radius: 4px;   text-align: center;;   width: 350px;   height: 50px;   border: none;   -webkit-box-shadow: 0px 0px 10px 8px rgba(245, 187, 145, 0.4);   -moz-box-shadow: 0px 0px 10px 8px rgba(245, 187, 145, 0.4);   box-shadow: 0px 0px 10px 8px rgba(245, 187, 145, 0.4); }  and  css    .dot {   height: 25px;   width: 25px;   background-color: #bbb;   border-radius: 50%;   display: inline-block;   float: left;   margin-left: 12px;   background: #fce6a6; }  at buttons with small words all okay  But with large amount of words it's not centered  How I can fix this?


java: print size of each ArrayList in a map

I have the following map: Map<InputTypeEnum, List<Object>> objectsMap;  objectsMap.put(InputTypeEnum.Text, textList); objectsMap.put(InputTypeEnum.Number, NumbersList); objectsMap.put(InputTypeEnum.Symbols, SymbolsList);  I want to iterate through the Map and print to console the number of objects in list per InputTypeEnum. for example:  "the text list has 4 elements" "the numbers list has 2 elements" "the symbols list has 5 elements"  I couldn't find any example here, or in google. thanks for the help!


Does port number mean is number of connection the computer can have?

I hear there are a total of 65,535 ports on a computer. Does this mean that the computer can communicate with 65,535 instances at the same time? (Let's assume the computer has enough power to handle network)


Could there be a checkbox or some sort of option that allows the user to disable or enable chat notifications from a certain room?  Concept Art ():        Here's a snap of what I go through daily:


Prove that if $\lim_n x_n = 0$ then $\lim_n \frac{x_1+x_2+...x_n}{n}=0$

I need help proving that if $\lim_n x_n = 0$ then $\lim_n \frac{x_1+x_2+...x_n}{n}=0$  I know $x_1+x_2+...+x_n = \sum x_n$ is a series that is a converges uniformly if and only if for every $\varepsilon>0$ there exists M.


Where can I ask questions related to my my career options?

Is there any branch of Stack Exchange where I can ask questions related to my education and career?


I am looking for an open source Java spell checking library which has dictionaries for at least the following languages: French, German, Spanish, and Czech. Any suggestion?


Can I take a picture with a  Canon EOS1300D with a Canon EF 50 mm f1.8 STM Lens of the milky way?  Thank you.


Low Graphics Mode when installing on old COMPAQ computer

I am very new to Linux and Ubuntu. I have an obsolete brand of computer with these specs: Compaq Presario-SR1500NX, 3000+AMD Processor, 256MB-PC2700 memory, 80GB-7200RPM hard drive.  I am stuck with the "Low Graphics Mode" box and have yet to find an answer that works for me. I wiped my hard drive and installed Ubuntu, thinking it would work fine. So, now, I just have Ubuntu OS that won't work. Is my system compatible and if not, what WILL work as an operating system? I'm not computer savvy so thorough explanation would be appreciated.


I've had a Canon T3i for about a year now, getting it as an upgrade to a small Canon point-and-shoot.  I mainly got the T3i for the additional shooting setting controls and the ability to change lenses.  However, a year has gone by, and I find myself leaving my DSLR on my desk more often than not.  I dislike carrying the camera, since it is so large and obtrusive, making taking photos day-to-day feel like a big production.  I have only bought one additional lens (50mm f/1.8 prime), and I feel that the ability to swap lenses is a bit of a waste on me.   What this year with the T3i has taught me is that I enjoyed photography more when I had a smaller camera, which I could be more spontaneous with and was more willing to carry.  As such, I have been considering selling my T3i and getting a Fujifilm X20, which I would feel more comfortable carrying, yet still have the same degree of control over shooting.    My question is, what is the potential for regretting the change from a DSLR to an X20?  Some additional information:   I do not shoot sports or other very fast subjects. (I've heard the X20 has rather quick phase-detect AF)  Image quality is not paramount, as I only shot JPEGs with the T3i anyway. I want to be able to carry my camera comfortably and discreetly every day. Lens interchangeability is not a concern.   Thank you


I'm using SSH host with Ubuntu 16.04. When I use it i can't use in command line arrow keys for moving cursor (^[[D ^[[C) and using previously used commands (^[[A ^[[B), but when I use nano i can do it. How can I fix it?


Objects being moved with each other inside an area

I have accidentally enabled a mode which creates a kind of smooth brush whenever I move an object. And when I drag it across the axis everything inside the circle gets moved as well. How do I stop this and what is the keyboard shortcut?   - This is the difference in the tool bar, in other .blends without the problem there is no (Smooth).   - This is the circle in which everything in it also gets moved, this can be re sized but not removed. And even if I re size it until it is almost gone, it still creates problems.  If someone could help me figure out this problem it would be much appreciated.


i've searched on the web for an answer to my issue but what i find just raises more questions.  I have installed plexserver on my ubuntu 14.04.  Plex can't see files or folders from my media library.  There is a plex user and a plex group on my system.  When i give plex the ownership of my media files (Chown) everything is fine. But that is not what i want. I just want to give plex read and write rights to my media folder. Is this possible with chmod? if yes how? if no, then i what is the cleanest way to give plex read and write rights to my media folder?  Many thanks for your help.


Why don't researchers request payment for refereeing?

One of the most criticized aspects of the current publishing scheme, is that academics do pretty much all the work for free and publishers get the money.  Why don't people just charge a fee when contacted by a publisher to referee an article?    I know , that's not the question. The issue is why do it requesting no monetary compensation when the publisher is getting (for doing next to nothing) an .


How to test for convergence for the harmonic series with irregular (binomial) sign changes?

How would you test for convergence with a series such as this using the alternating series test?  $1-\frac{1}{2}-\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{6}-\frac{1}{7}...-\frac{1}{10}+\frac{1}{11}...+\frac{1}{15}-....$  I have attempted to find a summation equation for this by grouping in different ways in order to use the alternating series test but I can't find a way to group these in a logical way. Is there a grouping that would allow for analysis of this series using the alternating series test?


Help identifying the word(s?) that describe or define this description:

An apple is a fruit, but a fruit isn't an apple.  This is not about the Definite and indefinite articles. But this is about the subject of:  We are able to call something like an apple a fruit. We are not able to call a fruit an apple (because not all fruits are apples.)   What do you call this aspect of the English language? I remember learning about this particular Topic in either English class, or in a Grammar class.


I'm trying to identify a short sci-fi story about an expedition to a distant planet, inhabited by human-like, somewhat primitive aliens that lived as a matriarchy. The story is told as a narration of the trip from one of the scientists involved to a guest at his house.  The main characteristic of this planet was a dense atmosphere (or something like that) which blocked most of the light from reaching the surface. So the aliens and animals there hyper-developed their sense of touch. The aliens hunted by leaving traps carefully designed to hypnotize or put in a trance state those touching it. The guest is touching one of these, which the scientist brought back from his trip. Other thing about this society, derived from the dense atmosphere, was that obesity was a highly sought characteristic because "more surface improves light absorption capacity" or something like that.  I don't remember how the cannibalism was justified, but towards the end, we discover the scientist has brought back with him one of these obese women, and is going to feed her his, by now, completely entranced guest.  I read it in a compilation from the late '80s, it could be older.


In Minecraft how do you stop squids from despawning without name tags!


I am presently running Ubuntu 12.04 and using Chrome/Firefox along with OpenDNS (have tried Google Public DNS as well as DNS of my ISP).   Suddenly, a lot of websites that I visit frequently don't load anymore. Some of them are imgur, yahoo, , microsoft and addons page of firefox. I am sure there are many more that won't load.  I have Windows 7 in Dual-Boot and there are no problems whatsoever in opening these pages on Windows.  Brief History  Two weeks ago I installed Ubuntu 12.10. I faced this issue right away. I thought something must have gone wrong with the installation, so I removed Ubuntu 12.10 and instead installed Lubuntu 12.10, but the issue persisted. So, I tried opening these webpages in Live Environments (of Ubuntu 12.10, Lubuntu 12.10 and Ubuntu 12.04.1) from USB. The issue was there for Ubuntu 12.10 and Lubuntu 12.10. However, I was able to access these webpages from Ubuntu 12.04.1. So, I installed 12.04.1 on my HardDisk. Everything on 12.04 was fine till yesterday; but suddenly, these sites don't load anymore. Windows 7 in Dual-Boot works flawlessly.  Updates  (1) In response to Zhang's Answer to check basic terminal commands - I have used both OpenDNS and GooglePublic DNS to test these commands (Restarted my PC in between). These are the terminal outputs while  and while .  (2) This is the result of ifconfig - .  (3) Thereafter I tried to use wget to check if the problem was with the Browser. However, it didn't work for webpages which are not loading in my browser. This is the  showing it for Google(works) and Yahoo(doesn't work).  (4) Then followed the instructions listed at  to disable IPV6. Also, restarted my PC. However, it didn't help either.  (5) Then, I edited my Wired Connection through Network-Manager to ignore IPV6. After that, I tried to open Yahoo in Browser -  it did load the first time. However, when I tried again, it didn't load. Other problem sites didn't load at all.  (6) Again tried wget. However, this time passed the argument -4 to it; ie; wget -4 www.yahoo.com. But once again, didn't get any response.  (7) Then, tried to fiddle with MTU. Followed  to check what is the maximum that I can set. For me, the maximum possible was 10324. Also tried other values like 1500, 1492, 1452 and 100. But this didn't help either.  (8) Re-installed Ubuntu 12.04.1, wiping out the previous installation and as such all other changes. Also installed all the available updates. For the first half-an-hour, I was able to load all the webpages - including the ones which had problem. But lateron, I have the same issue as earlier - not able to load pages like yahoo, imgur, microsoft, fed-sudoku, etc.   (9) Question by laurent     From wget pastebin info in the question, the problem is not DNS as the wget and dig commands reach Yahoo's IP. This said, I don't know why nothing downloads with wget! Have you set a firewall? (you can check with sudo iptables -L). In ifconfig results, there are 2 interfaces, ppp0 and eth0. Which one should be used to connect to internet? Could you post the result of route command? Obs: eth0 has no IPV4 address so I think it is not properly configured (how is /etc/network/interfaces?)   Here is the  for terminal outputs of sudo iptables -L ; route  and  cat /etc/network/interfaces. I am not running any firewall. It's a clean install of Ubuntu 12.04.1. ppp0 is used to connect to the internet (this takes username and password which was given by my ISP) and eth0 is the Intel's OnBoard LAN which connects the modem through ethernet port.  (10) Tried to append nameserver 208.67.222.222 line in /etc/resolv.conf (since, I am using OpenDNS). But this didn't help (even after restart). So reverted the changes back. This is also a part of answer provided by laurent - it's required if I want to use OpenDNS.  Other Info   I have an ADSL modem (not a router) connected to the PC with an Ethernet Port. To connect to the internet, I have a DSL Connection. So, I use PPPOE to connect. Terminal Output for System Information sudo lshw -C network ; cat /etc/resolv.conf ; ifconfig -a -


Pages uploaded to WordPress as media are causing mobile usability errors in Google Search Console

the new search console is pointing out usability errors on mobile devices on WordPress upload pages, that is, pages where I can not change font size, viewport window and things like that, how do I solve it, or what to do with that Google does not take those pages into account.  The errors are these:        Text too small for reading   The preview window is not set   The clickable elements are very close


I have Windows XP on my C drive and Windows 7 on D drive. I loaded Ubuntu 14.04 over Windows 7 on D. It gives me my old boot screen of either Windows XP or Windows 7, and it will not boot to Ubuntu.


Render new stills and not the created video sequence

Im new to the video editing side of blender and here's the thing: i was stitching image sequences of a rendered animation i created and i want to take a step baCK and change something on the animation but when i try to render a new image sequence again, only blender does is output a blank, empty gray screen, my guess is that this is the video sequence rendering and not the animation, because i moved the image sequence strips away from the frame range, because i want it out of the way when rendering the edited animation but alas, blank   what am i not getting here? how can i get blender to render the animation again? and not the video sequence?


(surprisingly, it appears that this question has not been asked before)  Let $\pi(n)$ denote the number of primes $\leq n$. The prime number theorem states that   $$\pi(n) \sim \frac{n}{\log n} \  \text{as}  \ n \to +\infty$$  After painstakingly reading through Erdos's elementary proof of this theorem, I think I understand the mechanics of it from a formal perspective. However, I still don't seem to understand intuitively why this theorem is true. I would like some intuitive insight as to why this theorem holds.   I understand that for a result as deep as this one, even the intuition is going to contain some nitty-gritty details.  It's probably not the sort of thing that you could explain to a child, for example. Nevertheless, I will ask this question regardless. There has to be some convincing argument for this theorem beyond the technical details of the proofs.


Flight arrival and departure time for a flight last year??

I know that we were delayed on this flight but not sure how long it was. Tom 4752 sun 31may 2015.


What should my swap size be if I have 32GB of RAM?

I am new to Linux and want to install ubuntu on a computer that has 32GB of RAM. I've read a lot about the recommended size of swap for people with much smaller RAM capacity, but nothing for my size. Can anyone help me? Thank you, I really appreciate your time!  Thanks for all the input. I think I have a better understanding of this issue regarding swap. Some of the answers to my question said it depended also on other specifications as well. I have 32GB of RAM as stated above, a 1TB SSD(main drive), and a 2TB regular hard drive, and an i7 CPU. I only do every day tasks, no server or rendering. At this point I think I will refrain from using hibernation.


1970 sci-fi story series about a spaceman looking for the group that modified him

A spaceman was modified by a group that threw him out of the program before the final stage. He was a thief and soldier. He needs metal in his diet. When he is near a fully modified man, he gets a speed and power boost.


Does the dish lose flavor when it releases a lot of smell?

If we taste with our smelling sense, and in the process of cooking aroma is being released into the air - does that mean that the more smell you fill your kitchen with, the more flavor you lose?  Is the iconic experience of aroma filled kitchen actually counterproductive to cooking flavorful food?


Why do photon only interact with atoms whose electronic orbitals are at very particular energies?

From :  Photons - those fundamental particles of light - have a slew of interesting properties, including the fact they don't tend to crash into one another. That hasn't stopped physicists from trying, though. University of Chicago physicists have now come up with a new, highly flexible way to make photons behave more like the particles that make up matter. It might not give us lightsabers, but making photons collide could still lead to some fantastic technologies. The trick to getting particles of light - which have no mass - to acknowledge one another's existence is to have them meet in the quiet confines of an atom, and combine their properties with those of an electron. Researchers have been studying these interactions in the lab for several years now. The electron-photon partnerships form a kind of 'hybrid' quasiparticle called a polariton.  [...]  "But we were running into a problem because the photons only interact with atoms whose electronic orbitals are at very particular energies," says University of Chicago physicist Logan Clark.  What does the above statement means? What are those very particular energies? Why photons only interact with atoms whose electronic orbitals are at very particular energies?


Get the most recent complete installation DVD of Linux and Ubuntu

How do I get the complete installation DVD more recent of Ubuntu and related software?  Looked the site but didn't find how to, also there is little information in Portuguese so I need a professional installation DVD.


Is there any way to determine (programatically, of course) if a given pointer is "valid"? Checking for NULL is easy, but what about things like 0x00001234? When trying to dereference this kind of pointer an exception/crash occurs.  A cross-platform method is preferred, but platform-specific (for Windows and Linux) is also ok.  Update for clarification: The problem is not with stale/freed/uninitialized pointers; instead, I'm implementing an API that takes pointers from the caller (like a pointer to a string, a file handle, etc.). The caller can send (in purpose or by mistake) an invalid value as the pointer. How do I prevent a crash?


Continuity of Integration for a measurable function

I am having difficulties with this problem:  Let $f$ be a measurable function on $R$. Show that $\lim\limits_{n \to \infty} \int\limits_{-n}^{n} | f | = \int\limits_{R} | f | $  My idea is to use Continuity of integration: We need an ascending collection of measurable sets. These are $E_n = R \cap [-n, n]$ $R = \bigcup E_n$ Now if we apply Continuity of Integration we have:  $\lim_{R} |f| = \lim\limits_{n \to \infty} \int_{E_n} =\lim\limits \int_{-n}^{n} |f |$. My problem is Continuity requires f to be intergrable and all i know is that f is measurable.  Another way i was thinking to use monotone convergence theorem, but i am not sure how to create the sequences.  Any Ideas? thanks


What to do if you find the answer to your own question?

For the second time (IIRC) since I have joined SO, I have found the answer on my own, immediately (within minutes) after posting the question. I answered my own question the first time, but seeing that there are some "scandals" where people ask and answer, just to get reputation, I am not so sure anymore. Sure I can select my own answer after 2 days, but I am confused.


How can I implement an n-bit Toffoli gate?

I want to create a Toffoli gate controlled by n qubits, and implement it in QISKit. Can this be done? If so, how?


How can I run two domains from one dedicated server?

I have a dedicated server with a domain tied to the IP that came with the box. I got another IP assigned to the server and want to know if there's a way I can run my second domain, using that second IP, on the same server?  I know there's software like Virtualmin for hosting multiple domains on one server, but I would like to know if there's a way to do this without utilizing such software.  Any help is appreciated. Thanks.


I have a pc with some encrypted file on it (shown in green) these files were created and encrypted by a user who has since then been removed from windows. I can see the files, but when I click on them nog preview (these are jpg files) is shown and I cannot open or copy them.   From what I've read on  there seems to be no solution for this problem unless one has exported their certificate or public/private key, wich this user did not.  Anyone here have or know of a solution for this ?  thanks, Jurjen.


Subtracting from existing value using UPDATE returns negative value

I have a value in my mysql column with float as my data type. The value is 4.49.   When I run the  following command the following value is shown ..  -0.000000228882  I am really confused as to why this is happening.   Here is the update command I am using..   UPDATE stores SET outstanding_balance = outstanding_balance - 4.49 , card_sales = card_sales - 4.49 , card_transactions = card_transactions - 1 WHERE store_id = 2


Process to show that $\sqrt 2+\sqrt[3] 3$ is irrational

How can I prove that the sum  $\sqrt 2+\sqrt[3] 3$  is an irrational number ??


How can every Cubone be wearing its dead mothers' skull?

The Pokédex entry for Pokémon Yellow says that  wears its mother's skull:     Wears the skull of its deceased mother. Its cries echo inside the skull and come out as a sad melody.   This might seem like a reference to the Marowak that was  in the Frist Generation games, meaning it's an overgeneralization of a specific instance of a single Cubone's tragic story.   However, similar Pokédex entries appear in nearly ever game, suggesting that many, if not all, Cubone wear their mothers' skulls. Pokémon Moon's entry goes a step farther by suggesting that dealing with its mother's death is a necessary part of evolution:     The skull it wears on its head is that of its dead mother. According to some, it will evolve when it comes to terms with the pain of her death.   How is it logistically possible that every Cubone has a dead mother whose skull it wears, and that they must come to terms with her death in order to evolve? Also, wouldn't that mean a female Cubone/Marowak can only have one child since they only have one skull to give?


I want to show post excerpt and cap it at 20 words

I want to show excerpt and cap it at 20 words


How to dual boot when Windows XP was installed after Windows 7?

It seems pretty straightforward to dual boot those versions of Windows when the newest is installed after Windows XP. But the inverse isn't happening on my machine. I tried even editing the BOOT.INI file, but the boot just freezes or displays that a file is missing when I try to boot another partition.  Currently I'm stuck with Windows XP, and I need to boot my Windows 7 instead.  What is the solution?


Why is there a need of external clock even though MCUs can provide timing?

Why is there a need sometimes for an external crystal, even though the MCU  have an internal oscillator?  To give you an example, the  used in Arduino Uno has an internal 8Mhz internal oscillator, but also has settings for higher clocks. And additionally can be configured to use external oscillators as well. Why?  Similarly, there was a personal project where a , having 50Mhz CPU, was used with an external 8Mhz crystal for an audio codec.   Many of my assumptions maybe wrong, that is because of an unclear understanding of the need for something external, if there is a default choice.  Some assumptions     Stability Accuracy Cost   Please elaborate the exact purpose.


Why the sum of these variables returning negative zero?

I found out recently that my code is generating negative zeroes. And this is my very first time encountering this scenario since 3 years ago.  The code was something like this:  $x =  "300.20"; $y =  ("300.10" + "0.10" + "0.00") - "0.00"; $z =  $x - $y;   The $x returns string, $y and $z return float. If you run this codes, $z's value is -5.6843418860808E-14, using number_format it will become -0.00.  Also, $y's value is 300.20 but it is not equal to 300.20 when comparing. Exactly same value but not equal.  My solution is to convert $y to string: $z =  $x - strval($y); but the question is why is this happening?   Same output in PHP5 and PHP7


Where are the start menu customization pictures located on Windows 8?

I would like to take some of the images in the red area shown below for personal use. Are they contained in a specific folder, and if so, which one?


Does a passive Perception (Wisdom) check add WIS mod + Perception skill?

I'm new to D&D. There seems to be a discrepancy between the 5e Starter Set Rulebook and the associated character sheets. The Rulebook says that a passive wisdom (percep) score is "10 + the creature's wisdom modifier, as well as any bonuses."  In the example they have a 1st-level character (with a proficiency bonus of +2) Wisdom of 15 (+2) and a  proficiency in Perception, he or she has a passive Wisdom (Perception) of 14 (10+2+2).  But the Human Fighter Folk hero character has a WIS mod of +1, and a +3 written beside perception, and a passive Wis percep of 13 (not 14?).  The Dwarven Cleric has Wis mod of +3 and a +3 written beside perception, and only a 13 passive wisdom.  I guess this has to do with proficiency in the skill, but I'm confused. Can someone explain these instances and maybe also when proficiency is used, vs when just the modifier or just the skill without proficiency?


ipod touch locked all the way cant get in at all

I bought a ipod i tried contacting the owner i tried everything but there apple id and password is on the ipod i cant login or try to set it up for me becuase it says its linked to an apple id but the person i bought it from isnt answering my calls and i cant get in the ipod how do i get in it is there any other way????? any website ideas anything? i payed 200.oo i really need help geeting into the ipod a differnt way they basicly put find my iphone on the device


Does the Air Canada flight from Ottawa, Ontario to London, England fly over the United States of America?  Is there any City in Europe that Air Canada flies to from Ottawa without flying over the United States?


¿How to solve this functional equation: $xf(y)+yf(x)=(x+y)f(x)f(y)$? Need some help!

So I've been reading about functional equations and how to solve them. I found a pretty interesting problem (for me) but I think I need some help, some hint. I've never worked with this kind of problems. Well, the problem is this:   Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that for all $x, y \in \mathbb{R}$ the following equation holds:   $$xf(y)+yf(x)=(x+y)f(x)f(y)$$   I've tried with some substitutions like $x=a$ and $y=-a$ for all $a \neq 0$  it follows that $f(a)=f(-a)$, so $f$ is an even function. After that, i realized that setting $x=y=a$ for $a \neq 0$ it follows that $\Biggl(f(a)-\frac{1}{2} \Biggr)^{2}=\frac{1}{4}$ and then $f(x)=1$ or $f(x)=0$ for all $x \neq 0$. I think I'm almost done but I still don't know that happens with $f(0)$.  I would appreciate any hint to solve this problem, ¿Could you recommend any book for this kind of exercises? , ¡Thanks in advance!


ANACONDA - I have to type export PATH=~/anaconda3/bin:“$PATH” everytime I rerun the terminal

Whenever I open a terminal, I have to write  export PATH=~/anaconda3/bin:$PATH   to use any feature of anaconda  I want a persistent path.


What are the books/pieces of literature that are read/mentioned/seen in Psycho-Pass?

In Psycho-Pass, not only Makishima Shogo but Shinya Kogami were reading certain pieces of literature, but this pieces of literature shaped the series in a sense.  So far what I could see in the series that they were reading is the following:   1984 - George Orwell A Revolution Sabotaged Before it Began - Yasumi Iwakura Swann's Way - Marcel Proust Holy Bible   I know they have other references and books shown in the series, I have read some of these but I'm curious about.  What are other books/pieces of literature that are read/mentioned/seen?


This script: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} See Fig. \ref{fig:exa} \begin{figure}   \centering   \subfloat[example a]{     \label{fig:exa}     \includegraphics[width=0.5\textwidth]{example-image-a}   }   \subfloat[example b]{     \label{fig:exb}     \includegraphics[width=0.5\textwidth]{example-image-b}   } \end{figure} \end{document}  renders output  How can I format the reference to subfloat as "Fig. 1(a)".


Are mass and force defined simultaneously?

Everything I am talking about here takes place in the Newtonian mechanics, but it is also interesting to discuss everything in the context of special theory of relativity, quantum-mechanics or even QFT. We say that the mass is something that measures the resistance to acceleration. In practice, in order to get the body to accelerate, we need to apply force. But want to define the force, we say that the 1N of force measures the needed force in order to accelerate the 1kg body with the acceleration $1 \frac{m}{s^2}$. Thus we completed the loop - in order to define the acceleration, we need the force and in order to define the force we need the acceleration. Does that mean that we need to define the mass and force simultaneously? If you think about it, the concept of mass, historically speaking, was very intuitive and known in the ancient times and they could also measure it (using balance scale for example). Force on the other hand, even though very intuitive did not have any way to be measured in the ancient times. Only after the Newton's second law $F =  ma$ we finally get the formula that permits us to measure the force (and maybe even define it quantitatively? ). Going back to my question, I want to find out if we can define the mass and the force before introducing the Newton's second law?


I am looking for a biblioraphy style that adds to the type webpage from BibDesk the attribute Last accessed.  Is there an out of the box citation style doing this? If not, how can I add it to a citation style? Currently I am using \bibliographystyle{agsm} which only includes the URL, but no Last accessed attribute. I get      Warning--entry type for ... isn't style-file defined of file ref.bib


UK Visa Refusal-Right to appeal-Glaring mistakes by the Visa Officer

A friend of mine applied for UK Visa and it was refused. On examining the reasons for refusal it is clear that the Visa Officer has made mistakes. For instance, at one Paragraph the visa officer admits that the monthly salary is Rs 80,000.00, and on the next paragraph he says the expected expenditure for the travel Rs 300,000.00 is 3 times of the applicant's annual salary! Isnt my friend entitled to a re consideration of the decision as this is a glaring mistake?


What is the basis of description of matter and energy in our universe in the form of wave and particle?

What exactly does wave particle duality mean does it mean that an electron is a particle which is moving like a wave or does it mean that an electron and a photon is neither a wave nor a particle and something completely different or is it as if it’s sometimes a wave and the other times a particle or if it’s both simultaneously? Similarly for photons. (Is it like mass is nothing but compactly packed energy and similarly for energy, as in $E=mc^2$, which is described by wave particle duality as in the answer to the first question?)  Based on what have we got the two ideas of wave and particle? That is, how have we-on what basis, classified the behaviour of matter and energy as wave and particle? (Like we have classified matter into solid, liquid, gas, Bose-Einstein condensate and plasma based broadly on the inter particle forces of attraction, how is matter packed, the relative energies etc.)


Is a memory leak created if a MemoryStream in .NET is not closed?

I have the following code:  MemoryStream foo(){     MemoryStream ms = new MemoryStream();     // write stuff to ms     return ms; }  void bar(){     MemoryStream ms2 = foo();     // do stuff with ms2     return; }   Is there any chance that the MemoryStream that I've allocated will somehow fail to be disposed of later?    I've got a peer review insisting that I manually close this, and I can't find the information to tell if he has a valid point or not.


ssh no longer allows public key authentication

My machine recently stopped accepting incoming public key authentication.  I have an ubuntu 11.04 desktop that I ssh into from a windows machine.  I use putty with pageant.  I am able to connect but only with interactive password authentication, not with my rsa key that I have setup.  I have already verified that the key is listed in ~/.ssh/authorized_keys.  How do I fix this and what do I check?


Split a file by line and have control over resulting files extension

There is a standard command for file splitting - split.  For example, if I want to split a words file in several chunks of 10000 lines, I can use:  split -dl 10000 words wrd   and it would generate several files of the form wrd.01, wrd.02 and so on.  But I want to have a specific extension for those files - for example, I want to get wtd.01.txt, wrd.02.txt files.  Is there a way to do it?


Proving that the sequence $a_0=1, a_{n+1}=\cos(a_n)$ converges

Consider the following recursively defined sequence:  $$a_0 = 1, a_{n+1}=\cos\left(a_n\right)$$  Having a look with Wolfram Alpha, it's fairly clear that this sequence converges to something in the neighborhood of $0.74$ or so.  However, I have no clue how to actually prove that this sequence is convergent. I've thought about proving that it is a Cauchy sequence - that is, for any given $\varepsilon>0$, there exists an $N\in\mathbb{N}$ such that $|a_n-a_m|<\varepsilon$ for any $n,m>N$.   However, I have no clue how to approach to repeated application of the cosine function, especially since you don't know how many iterations of the cosine function there are between $n$ and $m$.  Looking at the Wolfram Alpha plot of the first 30 terms in the sequence also gave me the idea to separate the whole thing into two subsequences $a_{2n}$ and $a_{2n+1}$ and then prove that they are increasing and decreasing while being bounded, but again I had no idea how to proceed to due to the repeated iteration of the cosine function.  I'd also be interested in a closed form of the limit if there is one, but I'd guess that none exists.


Existence problem of $\int\frac{\sin x}xdx$

How to prove that $ \frac{\sin x}x$ has no primitive function？I have been told Liouville theorem, but could you show me the details? Thank you very much!


Use mathematical induction to prove that $1^3 + 2^3 + 3^3 + .....+ n^3= \frac{n^2(n+1)^2}{4}$ for all $n\geq1$.  Can anyone explain? Because I have no clue where to begin. I mean, I can show that $1^3+ 2^3 +...+ (k+1)^3=\frac{(k+1)^2(k+2)^2}{4}$, but then I don't know where to go. I need further explanation to prove it.  thank you so much for help  Sincerely


Stack Implementation Null Pointer Exception

This is my program for stack implementation using linked list. But I keep getting a java.lang.NullPointerException at line number 31, i.e. the pop function. Why is this happening and how can I correct it?    import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;   public class StackImplementtionLinkedList  {     private Node first= null;      private class Node     {         String item;         Node next;     }      public boolean isEmpty()     {         return first==null;     }      public void push(String item)     {         Node old= first;         first= new Node();         first.item= item;         first.next= old;     }     public String pop()     {         String item= first.item;         first= first.next;         return item;     }     public void printStack()     {         while(first!=null)         {   System.out.println(first.item);             first= first.next;         }     }      public static void main(String[] args) throws FileNotFoundException     {         StackImplementtionLinkedList stack= new StackImplementtionLinkedList();         String filename= "myfile.txt";         File textfile= new File(filename);         Scanner input= new Scanner(textfile);         while(input.hasNextLine())         {             String line= input.nextLine();             stack.push(line);         }         input.close();         stack.printStack();         String popped= stack.pop();         System.out.println(popped+ " is the popped item.");         popped= stack.pop();         System.out.println(popped+ " is the popped item.");         stack.printStack();     } }


How to unambiguously refer to someone from India

One can refer to an American Indian as a Native American, but I cannot come up with an unambiguous term for an Indian from the Indian subcontinent. How can I refer to someone who is from the country of India, preferably without having to say "from the country of India"?  Ambiguous example:       My roommate is Indian.


Solving $9x \equiv 21 \bmod 30$  My approach: Finding $gcd(9,30)$: \begin{align} 30 &= 9 \cdot 3 + 3 \\ 9 &= 3 \cdot 3 + 0  \end{align} So $gcd(9,30)=3$ and since $3 \mid 21$ so the congruence has $3$ incongruent solutions. Express $3$ as a linear combination of $9$ and $30$, we get: $$3 = 30-9 \cdot 3 \ \ \ \ \ \ (1)$$ We have to solve this equation to find $x_0$: $$9x-30y=21 \ \ \ \ \ \ (2)$$ Multiplying $(1)$ by $7$ we get: $$21=30 \cdot7-9 \cdot 21$$ Rewritten in form of $(2)$: $$-9 \cdot (21) + 30 \cdot (7) = 21 $$ So $x_0=21$, the incongruent solutions are: $$21 + 10n, \ \ \ \ \ n = 0,1,2$$ Then $x=21,31,41$. But my answer is wrong, the answer is: $x=9,19,29$. Can you tell me which step is wrong. Thanks for your help!


How can I store the text entered into a html textarea into a javascript variable?

I want to store the text users enter into a textarea in a website into a javascript variable in order to compare it to another variable already defined.  How would you do it? Any hints? Thanks in advance!


Why does the mass of a proton not equal the mass of its corresponding quarks?

The mass of a proton is around 900 mega electron volts/c2. The mass of two up quarks and a down quark is about 10 mega electron volts/c2.


Let's say I have eigenstates $|x\rangle$ associated with measurement of position. I know that the eigenstates corresponding to their respective eigenvalues form a basis, let's call it $A$. Now let's say I want to expand a generic state vector $|ϕ\rangle$ in that basis formed by eigenstates. Now, what does it mean when physicists say that:     "$ϕ(x)$ is the coordinate of the state $|ϕ\rangle$ in the basis $A$?"    Any explanation or reference to similar kind of questions would be helpful.


When to, and when not to pluralise month?

Can someone please explain the correct way of pluralising month, for instance why do we sometimes use months or month, such as:  "Victor is a 7 month old baby"  and   "Victor is 7 months old"  What is the grammar behind this?


How to fix the error warning failed to connect to lvmetad falling back to internal scanning

My computer recently started giving me an error right after I installed gnome. It said:   WARNING: failed to connect to lvmetad. Falling back to internal scanning   I need help to fix the error.


What was so tough about learning spells?

My main question is about the process of doing spells. If it is explained in the books, I am eager to know what consisted spells except words and waving the wand.    In the Harry Potter series, Hogwarts taught magic to wizards. Now except in Potion-making classes, all they learnt were some spells like "lumos", "stupefy" etc. Now we mostly see a dozen spells mainly used by Harry and teams in the whole series in which they wave their wand and say it, may be with a bit of concentration. Except Expecto Patronum, which including a lot of practice to get hold of your happiest memory, and the apparating process, which can be dangerous (actually it was never taught in school and Hermione just seem to know it somehow), none other spells seems to be tough and can be taught maximum in a week. Were there any technicalities to perform each spell, except waving wand and saying it?


Does splitting 1 tempdb file into 4 require a SQL Server restart?

please can anyone help?  I have a SQL 2008R2 instance with 4 cores, configured with 1 tempdb data file and 1 logfile.   I want to change this setup as per best practices by adding 3 additional euqally sized files. I want to size the files to fill the capacity of the drive. The dedicated drive has a capacity of 50GB but a recent ad hoc user query pushed the size up to 47GB (log is 2GB).   Are the following order of steps correct? Will it require a restart of SQLServer? Will the files be used proportinally by SQL Server correctly after, i.e. not pushing contention to a new file?  1) Shrink the original data file down to 12GB using DBCC SHRINKFILE.  * Size taken up by the drive should now be 14GB (2GB log + 12GB data file 1)  2) Add 3 new additional data files at 12GB each.  * The drive should now be full at 50GB capacity  This will be done during a planned outage on a production system, but wanted to know if there will be any potential issues with the approach?  Thanks in advance.


Why is it customary to call people with doctoral degrees doctors but not people with masters degrees masters? They are both graduate degrees that supersede the undergraduate degree.


Is gravitational time dilation nothing more than kinematic time dilation in another form?

Once we get down to the quantum level, mass is derived directly from energy.    From : Most of the mass of hadrons is actually QCD binding energy, through mass-energy equivalence. This phenomenon is related to chiral symmetry breaking. In the case of nucleons – protons and neutrons – QCD binding energy forms about 99% of the nucleon's mass. That is if assuming that the kinetic energy of the hadron's constituents, moving at near the speed of light, which contributes greatly to the hadron mass, is part of QCD binding energy. Considering that nearly all of the atom's mass is concentrated in the nucleons, this means that about 99% of the mass of everyday matter (baryonic matter) is, in fact, chromodynamic binding energy.   Since we know that velocity is a main cause of time dilation, would it not be true that it is the velocity of the hadrons constituents, moving at near c, that is the true source of time dilation for any object, including a planet or star?


Showing convergence of series $\sum_{n=1}^{+\infty} \left(\frac{1}{n}-\sin{\left( \frac{1}{n}\right)} \right)$

So I have proven the limit  $$ \lim_{n \to +\infty}n^3 \left(\frac{1}{n}-\sin{\left( \frac{1}{n}\right)} \right) = \frac{1}{6}. $$ I then have to prove that the series  $$\sum_{n=1}^{+\infty} \left(\frac{1}{n}-\sin{\left( \frac{1}{n}\right)} \right)$$ converges using the limit. I don't know how to go on from here and I'm really confused about using the limit for this task.


Is photocell current equal zero at threshold frequency?

In photocell is there currant at threshold frequency $f=f_o$? I mean $I=0$ at $f=f_o$?


Get timestamp of current hour in Javascript

Is it possible for me to get the UTC time of current hour in Javascript?   I've tried the following:  var mins = new Date().getMinutes(); var hours = new Date().getHours(); var hourStamp = new Date().setHours(hours, 0,0,0); var dates = new Date(hourStamp);   Here dates gives me the Unix Timestamp of the current hour. Is there a better/faster way to do this?   EDIT:   For example: I want the Timestamp for the current hour. So if it's 00:16 am on 12/04/2015, I want the timestamp of 12/04/2015 00:00. And, my method works. My question pertains to if there's a better method of doing the same.


Refreshing the page of a suggested edit audit kills the audit

Steps to repro:   Find a suggested edit that seems suspicious (clearly an audit) Press F5 OR Ctrl+R OR the refresh button (who uses the GUI anyway) ... Break the audit! (see image)    (Looks like audits are re-used and the link is not longer valid.)        When you get a suggested edit that is an audit and accidentally refresh the page, instead of just showing the normal page with all four buttons it changes to this layout with a "item is not reviewable". I've reproduced it many times.  The normal behavior is exactly similar to the picture on the left below. The audit is not supposed to have "community" as its username AND should show the 4 buttons.  It's a way to avoid audits, and is pretty annoying!    EDIT before even submitting the post! pretty sure it's the fastest edit to ever happen on SO.  Repro'd Again! (and again, can be repro'd anytime)     Correct behavior (When you stumble for the first time on the edit.)         Bad behavior (When you've refreshed the page.)


How could Voldemort be killed when Harry's blood runs through them both?

As we know, at the end of Goblet of Fire, Voldemort takes Harry's blood into his new body, thus binding Harry to life so long as Voldemort lives due to his mother's sacrifice.   My question is, then, at the end of Deathly Hallows, when Voldemort's curse yet again rebounds, how could Voldemort die if he is still anchored to life because Harry still lives? Aren't they still connected through Harry's blood?


Proof of reduced upper-tail inequality for standard normal distribution

X∼N(0,1), then to prove that for x>0,  $$ P(X>x)≤ \frac{1}{2}exp(−x^2/2) $$ I know how to prove the other two kinds of upper-tail inequality for standard normal distribution like this one $$exp(−x^2/2) $$ and this one $$ \frac{exp(−x^2/2)}{x\sqrt{2\pi}}  $$ But have no idea how to do this reduced upper-tail inequality. Can anybody help me? Thanks


Is it possible to print message to the info view?  I used Mac OS,Blender2.6.7. thank you.


The relation of order of finite cyclic group and its generator

My question is how to prove a finite cyclic group $G$ has order (i.e. size) $n$ if and only if each of its generator has order $n$. Thank you.


Why I am getting this exception when logging in to my own local Minecraft server?

I set up a Spigot server on my PC, created from the latest BuildTools. There are no errors on startup, but I can't log in due to a Java security exception.   I've tried updating Java to the latest release, creating a clean server directory, running both CraftBukkit and Spigot builds, with the matching version of Minecraft. I've connected to both 127.0.0.1 and localhost, with and without specifying the port. In all cases the error is the same. This only happens with my local server- I'm able to log in to multiple remote servers just fine.  Client message:  Failed to connect to the server Disconnected  Console message:  [11:20:38 WARN]: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA [11:20:38 WARN]:        at javax.crypto.Cipher.getInstance(Cipher.java:540) ... [11:20:38 INFO]: com.mojang.authlib.GameProfile@479afd0d[id=<null>,name=WildWeazel,properties={},legacy=false] (/127.0.0.1:51608) lost connection: Internal Exception: java.lang.NullPointerException


Prove that every prime $p$ of which $-1$ is a quadratic residue can be represented in the form $x^2+y^2$.   In  the result is achieved by noting that every prime of the form $p=4k+1$ can be written as the sum of two squares and "it follows that -1 is a quadratic residue $\pmod p$ ". So, in my question, does it just suffice to show that $p$ is the sum of two squares if $p \equiv 1 \pmod 4$? How should we proceed?


C++ - Inaccurate conversion from float to int following a division

Problem encoutered  In my program (C++ with Qt), I need to store a float value (let's call it step) which is divisible by 0.15. It is required to store this value as an integer which is the result of the division of step by 0.15. This did the trick:  int storedValue; [...] storedValue = step / 0.15;   Unfortunately, for reasons I ignore, some step values (such as 300.15 or 300.30) aren't divided correctly: when step has the value 300.15, storedValue is 2000 instead of being 2001. Similarly, 300.30 as a step gives storedValue a value of 2001. Then, 300.45 would correctly give storedValue 2003, and so on.  I have no idea why 300.15 and 300.30 have this bug, nor if there are any other values that trigger this bug.  Solutions tried  I think the C++ conversion from float to int is the issue, since I checked the result of the division as a float and it is correct, so I made a float value to hold the result of the division, and use storedValue = static_cast<int>(floatResult), hoping it would make for a better conversion. And, weirdly enough, 300.15 has now the correct storedValue of 2001, but the bug still happen with 300.30, giving the same storedValue of 2001.  The current solution I have tried, but am unhappy with since it does not understand the problem and is not robust, is the following:  float floatResult = step / 0.15; int storedValue = static_cast<int>(floatResult); float verification = static_cast<float>(storedValue);  // If storedValue is false, verification will be different of floatResult if (floatResult != verification) {     storedValue = storedValue + 1;     verification = static_cast<float>(storedValue);     // Case I have never experienced, but since I can't understand the problem, I need to be careful     if (floatResult != verification) {         storedValue = storedValued - 2;         verification = static_cast<float>(storedValue);         if (floatResult != verification) {             // Throw error         }     } }   I found nothing relevant on the matter, since I am sure the result of this division is an integer (the user can't input a step not divisible by 0.15), so I don't see how precision matters here. Do someone have an idea about why this problem happens ? And/or how to improve my solution ?


I am from India and I have valid multiple entry visa valid till September 2015. I travelled to UK and stayed for a month and came back to India. Can I again travel to UK on the same visa and stay till the valid date?


Mounting a physically separate drive as my home folder?

I have 1 TB SSD and a 120 GB SSD. I'd like to use the 120 drive for    / /var /etc    and so on and make a very minimal home folder on that drive. I would then like to mount another drive (which I would name home) over my home folder.   Is this possible?


Test 220V 50 Hz signal using oscilloscope

Can I test a direct electric signal wave AC 220V 50 HZ using an oscilloscope in safe mode and the schema for this testing.   The description in my oscilloscope say that the input AC pk and DC is Max 600V!?


Thin Lines from PDF Figure in Latex get thicker when exported to final PDF

To have the best quality of figures in my document I'm using pdf images. But it seems that when the pdf images have very thin and/or transparent lines the final figure in the pdf gets messy, basically the lines get thicker and darker, unless the pdf is fully zoomed. This effect can be seen in the pictures below.  Does anyone know the root cause of this and how to fix it?  EDIT: And note the inconsistency in the thickness of the lines in the zoomed out version. While the zoomed in version all lines are the same thickness, as in the original image.  Zoomed out figure:    Zoomed in figure:


Remove the flag notification in the top bar when I have done my job with it

I have the moderator privileges on .  Even though it's quite rare that flags appear over there, it is still quite annoying that once I have done my job with a flag and therefore cannot do anything else with it, the flag in the top bar remains there. Why do I have to keep seeing that flag when in fact, I can't do anything about it?  Images, with free-hand circles:  A flag exists in the notification bar:    I have already done my part of the flag handling:    And yet the flag remains in the notification bar.


How can I switch layers during animation?

I have 3 layers with 3 objects and 3 cameras.  Layer 1: cube + camera1  Layer 2: uv sphere + camera2  Layer 3: torus + camera3  camera1 is active from 1 to 79 frame.  camera2 is active from 80 to 159 frame.  camera3 is active from 160 to 240 frame.  How can I render only   cube in frames 1-79 ;  only uv sphere in frames 80-159 ;   only torus in frames 160-240  ????


Use of ligatures such as æ and œ in English

As part of learning the language, I've noticed that  such as æ and œ are no longer common in English. The ligatures are said to be primarily eschewed in favour of the digraphs ae or oe (mayhap due to technological  such as in use of typewriters and ASCII); however, they are not common either in handwritten English. Moreover,  allows us to easily insert such graphemes while typing (e.g. to type those letters on Windows you would press Alt+0198 and Alt+0230 for Æ, and Alt+0140 and Alt+0156 for Œ).  Archæology is now more usually written as archaeology. Even in American English it is common to see the word spelled archeology, completely omitting the a.  Why is this?  Would it be still right to use a ligature for, e.g., supernovæ instead of supernovae?  Having observed other languages such as French, Danish, Norwegian, etc. I can say that ligatures are still common elsewhere. In French, for example, æ’s are mainly replaced with accents, but œ’s are very common in words such as cœur, sœur, œuvre, etc.  Of course, personally and subjectively, I consider ligatures to be beautiful and elegant, which add yet another matt flavour to the English language.


Why is sound produced when we hit a metal?

We all know that metal are sonorous and produce sound on hitting but why is sound produced    I thought that it might be a way of energy released on inelastic collision but then why not heat as heat is also a form of energy that can be released


How to make `apt` display the URL of downloaded packages?

How can I make apt display the URL it's downloading, e.g. apt install or apt download? Consider the following example: $ apt download libvirglrenderer0  Get:1 http://deb.debian.org/debian buster/main amd64 libvirglrenderer0 amd64 0.7.0-2 [164 kB] Fetched 164 kB in 5s (30.6 kB/s)     apt might display hints regarding the URL (http://deb.debian.org/debian buster/main amd64 libvirglrenderer0 amd64 0.7.0-2), but I cannot use it with e.g. curl.


Can we restrict a user and do not let him to go to the root mode. For example, when he inter sudo su, The system tells him you can not access the root?


I unintentionally unlocked one drive from launcher ? How to add again ?


Recently i read that ( i cannot remember where though)   $$\sum_{k=0}^{\infty}\frac{1}{(2k)!!} = \sqrt{e} $$  Wolfram also confirms this , but I have been looking everywhere to find a proof and i cannot. Could anybody provide one or direct me to a site that provides one?   Thank you very much in advance for your time and help!!


I have always assumed that I should go to the crew rather than use the button (unless in emergency etc.) as they have more important things to do than giving me a glass of water.  However recently I leaned that cabin crew does not necessarily like for passengers to go around airplane for safety/organizational reasons. Which approach is preferred by crew when I'm indifferent?


nanoTime & currentMilliSeconds used in a loop in java

I am trying to measure the speed of different encryption algorithms. I thought I would start of with logging the current time (either nano or milli) then run the actions needed, once done, grab the time and and compare.   It all worked for one iteration, but once I try and add a loop to automatically test multiple algorithms, the numbers don't add up.   public static void main(String[] args) throws Exception {      Map<String, int[]> algorKey = new HashMap<String, int[]>() {         {             put("AES", new int[] { 128 });             put("DES", new int[] { 56 });         }     };     Iterator it = algorKey.entrySet().iterator();     while (it.hasNext()) {         Map.Entry pairs = (Map.Entry) it.next();         String algorithm = (String) pairs.getKey();         int[] keyLengths = (int[]) pairs.getValue();          for (int i = 0; i < keyLengths.length; i++) {             int keySize = keyLengths[i];              Long startT = System.nanoTime();             System.out.println(startT);             // Generate key             KeyGenerator kgen = KeyGenerator.getInstance(algorithm);             kgen.init(keySize);             SecretKey key = kgen.generateKey();             Long endT = System.nanoTime();             System.out.println(endT);              System.out.print("Algorithm: " + algorithm + "\nKey Size: "                     + keySize + "\nTime to Generate: " + (endT - startT)                     / 1000000 + "ms\n\n");         }     } }   Results come out as follows, the first result is correct (I tested both algorithms individually) but the second is far far far too small.    11223817758736 11224385930995 Algorithm: DES Key Size: 56 Time to Generate: 568ms  11224386324864 11224401644040 Algorithm: AES Key Size: 128 Time to Generate: 15ms     (I used snippet to keep the formatting of my results)  I am not sure why the subsequent results happen so fast, or why the time is not counting as it should or something. Is there a possibility that there is caching of data going on that speeds up the process?  I added even more loops and each subsequent iteration got smaller than the last.  Thanks a lot


How do I allow remote mysql access to all users?

I have setup a mysql server on unbuntu. The server hosts websites for my various clients. Hence, I want all of them(and any new clients) to have remote access to the mysql server. How do I configure mysql for the same?  I know about the GRANT ALL PRIVILEGES command, but that would require me to individually grant remote access to all the users.


"I've missed you, too, darling" or "I've missed you too darling?"

I'm having an argument with my girlfriend about which of these is correct. Could someone help? Commas necessary or no?   I don't consider this an exact duplicate question of "Happy Birthday, Sir!" because it also refers to the first comma. Should there be a first comma?


Does anybody know how to set the background-color of a framed element?    \begin{framed}            Let me have a background :(  \end{framed}


for seq in {046725..046899} do    #body done   Above segment of code runs beautifully keeping preceding zeroes in seq variable but why following code segment doesn't run? Is there any way? I need  seq variable in for loops to have preceding zeroes if there is any preceding zeroes.  lowest=046725 highest=046899 for seq in {$lowest..$highest} do   #body done


How to insert values in mysql from loop in Python

In MySQL I have create db with name "test" and one table with name "table". Table have one column name: "A" and set as datatype INT(1).  In Python I have this code:  import MySQLdb db = MySQLdb.connect(host="localhost",                  user="root",                  db="test")  cur = db.cursor()  myList = [1,2,3,4] for row in myList:    print row    cur.execute("INSERT INTO table (a) VALUES (%s)" % row)   Goal from code above is after loop is finish my table "table" shoud have data like this:  |A| |1| |2| |3| |4|   But my table is empty after refresing. So my question is how to insert into table from loop in Python  Tnx


How do I resolve unmet dependencies after adding a PPA?

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


What to do when you encounter vengeful users?

I had an interaction today with a very high-rep user who posted a sloppy answer with both syntax and logic errors. I pointed these out (as I often do when I see code that won't compile or uses incorrect logic), and he got really angry, calling me a bad, bad word multiple times. He then told me he down-voted my (correct) answer, solely to punish me for being a bad, bad word. Screen shot of the comment from the answer he has now deleted (don't look if you have extreme sensitivities to mind-destroying and society-ruining vulgarity):    I don't really care that he down-voted me for the wrong reasons. But stating so in public is not behavior I expect to be tolerated.  I have a hard time not defending myself when someone calls me a bad, bad word for doing exactly what we are supposed to do here. This is the kind of crap that I refuse to put up with, and I don't think the community should either. It is childish and unacceptable and is going to drive users like me away from the site. This is especially true when it comes from a user with close to 200K rep. This is supposed to indicate a trusted and esteemed member of the community, but in this case this person is a very bad example of anything his rep is supposed to portray. If people can act this way unchecked I think the community is in a sad state.  I guess this is why we should down-vote anonymously, and not bother commenting. But when you don't comment, others may ignore the down-votes (especially if others have up-voted without seeing the flaws), and readers may take the answer as a good one. I have had a pretty consistent policy of commenting first and down-voting later (if the situation isn't corrected). Never mind that if nobody comments the OP doesn't learn why they got down-voted.  In the end, this incident is either going to change my views on my policy of providing constructive criticism instead of blind drive-by down-votes, or it is just going to make me find another venue where I can contribute. My question is:     What do you folks do to not let bullies get to you?    It's easy to say calm down, walk away, ignore, etc. But being called a bad, bad word is a bit much IMHO.


How can I use the same sans-serif font for text and math

I use ordinary text, math, figure and table environments and every letter in my document needs to be the same font style and font family (sans serif).  I already managed to make everything but the math environments in sf.  How can I do that?  MWE:  \documentclass[a4paper,12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[format=plain,justification=justified,singlelinecheck=false,font={stretch=1.125,small,sf},labelfont=bf,labelsep=space]{caption} \usepackage{lipsum} \begin{document}     \renewcommand{\familydefault}{\sfdefault}     \sffamily\everymath{\mathsf{}}     \lispum[2] \end{document}   EDIT: Is there a general way to change all fonts at once?