Start/Stop invertal if variable is too high JS

Is it possible to have a invertal function that stop and starts if a variable is too high or too low  How can I make moneymaker stop when it reach 300?  I Tried with this code, but didn't get any results...  Code ex.   var money = 0; var maxmoney = 300;  var moneymaker = window.setInterval(function(){      money = money + 1;     document.getElementById('money').innerHTML = money;     }, 1000);  function stopInter(){     if(hp >= maxhp)     clearInterval(regen);     }else{     setTimeout(function(){}, 1000);      } }


How to Reduce the Maximum Upload File Size?

In my website there are many authors who can publish posts but some of them are uploading images bigger than 1M , and I want to reduce the max upload size to 500 kb.


Adjective equivalent of "As old as the hills"

Is there a one-word, more formal adjective for the expression "as old as the hills" ?   The idea is that there is something very old but a little forgotten today (and usually one uses this expression when speaking to someone who doesn't know about the thing).  Example sentences : "This soup is great, you really need to tell us the recipe!" "It's nothing original you know. The recipe is (missing adjective here). The Romans already knew about it."  "There's civil war again in region X, I am a little surprised." "You know, the enmity between ethnic groups Y and Z there is (missing adjective here). We have historical records from ten centuries ago"


I find the meaning of hyperparameters not always clear. The hyperparameters are defined as "the parameters of the prior". Suppose that one has prior information about a certain parameter $\theta$. More precisely, one supposes that $\theta \sim N(\mu_0, \sigma_0^2)$. In that case, the hyperparameters are given by $\mu_0$ and $\sigma_0^2$.  But, what in case of a non-informative prior? What in case of a uniform prior? For instance, suppose we have the following model. We have data $y_1,\ldots,y_n$ where the likelihood is given conditionally on a parameter $\lambda$. Thus: $$y_i \ | \ \lambda \sim N\left(\mu,\frac{\sigma^2}{\sqrt{\lambda}}\right), \qquad \lambda \sim \Gamma(\nu/2,\nu/2)$$ with the non-informative prior $g(\mu, \sigma^2) \sim 1/\sigma$. So we have in fact three parameters $\lambda, \mu, \sigma^2$. What are the hyperparameters in this case?


Errno 5 Input/output error in ubuntu 13.04

I'm trying to install Ubuntu 13.04 in VMWare but while on the middle of copying files, a pop-up error would appear:   The installer encountered an error copying files to the hard disk:  [Errno 5] Input/output error  This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may  help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD  drive lens (cleaning kits are often available from electronics suppliers), to check  whether the hard disk is old and in need of replacement, or to move the system to a  cooler environment.   I have tried several times but the same thing happened. I even download again a copy still the same problem occurs.  I tried previous versions, 12.10 & 12.04. They worked fine.  I have searched and read several posts like this; none of provide solution.   Please help. What should I do?


What does {0} mean when found in a string in C#?

In a dictionary like this:  Dictionary<string, string> openWith = new Dictionary<string, string>();  openWith.Add("txt", "notepad.exe"); openWith.Add("bmp", "paint.exe"); openWith.Add("dib", "paint.exe"); openWith.Add("rtf", "wordpad.exe");  Console.WriteLine("For key = \"rtf\", value = {0}.", openWith["rtf"]);   The output is:     For Key = "rtf" value = wordpad.exe   What does the {0} mean?


Prove that a fundamental group is equal to a semidirect product.

Let $X$ be a connected space that admits universal covering $E$ and $f:X \to X $ an homeomorphism . Now let’s call $Y=(X\times [0,1])/\sim$ where $\sim$ is the relation generated by $(0,x)\sim(1,f(x))$ for all $x\in X$. The request is to show that the fundamental group of $Y$ is a semidirect product between the fundamental group of $X$ and $\Bbb Z$. I tried to demonstrate the normality of $\Bbb Z$ in $\pi_1 (Y)$ but I didn’t reach any result. Any hint or solution will be very appreciated!


I'm still quite new to blender so this might be an easy fix but I'm really not sure. My problem is that I would like to see how the base colors I apply to my objects look like, so I switched to render mode. As you can see in the video, some weird stuff is going on while rendering the image, I can't even really describe what's happening there ':) I read about wrong camera settings and wrong camera focus already, but I don't even use "Depth of field". At the end of the video I show my camera settings as well. The light source is the standard point light on 1000W. Even if my camera or light settings are set wrong, this shouldn't explain the mess with the partly visible objects, right? Would be cool if somebody could help :) thanks in advance!  PS: I'm sorry that it's a youtube video, but I think it's important to see the whole video and not only images or parts :)


Saved Maelon's Research Data but Eve dies from the stress & fatigue of the testing

My husband has played through to the genophage curing three times now and all 3 times Mordin tells Shepard that Eve has died from the stress and fatigue of the testing... However, in Mass Effect 2, he saved Maelon's research data and when importing the saved file, it even says the the data was saved..   He has also done all the quests before the genophage final quest. She does not get blown up by the bomb, she just dies from stress of the testing. Does this mean he could have a glitch with his Mass Effect 2 save.. or is it a Mass Effect 3 glitch?  Any ideas would be greatly appreciated!


With article class :  \documentclass{aricle} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{amsmath,amsfonts,amssymb,mathrsfs} \usepackage{fourier} \usepackage{helvet}   \begin{document}  $a^2+b^2=c^2$  \end{document}   Gives :    With beamer class  \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath,amsfonts,amssymb,mathrsfs}  \usefonttheme{serif}            % Nécessaire pour Fourier \usepackage{fourier} \usepackage{helvet}   \begin{document}  $a^2+b^2=c^2$  \end{document}   Gives :    How to correct beamer disposition to have the same as in article ?


Why would the Sorting Hat consider Slytherin as an option for Harry?

Following  I asked myself why the Sorting Hat would see Slytherin as a good option for Harry. As far as I know Harry wasn't cunning, he wasn't pureblood, nor was he power hungry or had great ambition.  But still the Sorting Hat said that Slytherin could lead him to greatness even if he had none of their values.     "Not Slytherin, eh?" said the small voice. "Are you sure? You could be great, you know, it's all here in your head, and Slytherin will help you on the way to greatness, no doubt about that -- no? Well, if you're sure -- better be GRYFFINDOR!


Hello the question is as stated above and is given to us in the context of group theory, specifically under the heading of isomorphism and products. I would write down what I have tried so far but I have made very little progress in trying to solve this over the last few hours!


Prove that $\sqrt[3]5 - \sqrt[4]3$ is Irrational

I've gone many directions and they all fail.    The sum of two irrationals doesn't need to be irrational.  I found a proof saying: if irrational $x,y$ have a rational sum $x+y$, then $x-y$ is irrational, or vice versa. However, in this case $x+y$ and $x-y$ are irrational.  I must have misinterpreted the proof maybe.    I recognize $n\in\Bbb Q\implies \exists a,b\in\Bbb Z~(b\neq 0) : n=\dfrac ab$  Also the product of a rational and irrational number are irrational so $a = b(\sqrt[3]5 - \sqrt[4]3)$ where $a,b\in \mathbb{Z}$. I've looked on this basis as well, but so far fruitless.  Thank you, Julian


The rendering process gets stuck, or sometimes I get a black screen

I'm just following a tutorial on youtube, but when it comes to the end I cannot render the file, it always stucks and makes the screen black sometimes just showing nothing.  If anyone can help it would be appreciated. Thank you.


How do I convert an ArrayList of generics (T) to a straight array?

First time using generics.  I've successfully created an ArrayList of generic objects, and I would like to convert it to a regular array T[].  Normally, this is something like  String[] x = (String[])myStrings.toArray(new String[0])   However, in this case, replacing String with T does not work. i.e.  return (T[]) ret.toArray(T[0]);   Here is complete code for my method, tho not sure it is relevant:


what is the "non-linear" algebra called?

Linear algebra studies mapping between vector spaces. But, when these mappings are non-linear, what is the branch of mathematics that studies them? The term linear algebra somehow implies that it is a special case of a more general algebra, but I've never come across a such thing.  To give a particular example, the problem I'm mostly interested in is:  Given a matrix $A$ with size $3 \times 2$ and some input coordinates $[x, y]^T$, linear algebra tells us that   the coordinates are mapped to a $3$-dimensional space the mapping looks something like $[2x, 3y+x, y+1]$ the set of all possible $(x, y)$ pairs produces a $2$-dimensional plane in the $3$-dimensional space   But, what if my mapping was not linear? Let's say I map $(x, y)$ to $[x^2 + y, \sin(x/y), \exp(y)]$. What does that produce in the new $3$-dimensional space and what does it look like? (it seems to produce a $2$-dimensional manifold of unpredictable shape). What branch of mathematics do I need to study to better understand the geometry of non-linear mappings/spaces/operators?  In case it's relevant: I mostly motivated by machine learning, where this kind of mapping comes up in various cases, from linear regression in "feature spaces" to support vector machines.


Can a Druid/Monk make unarmed strikes while Wild Shaped?

Can a Druid/Monk who is Wild Shaped perform Unarmed Strikes?


Seeking open source solution to access rasters in File Geodatabase?

I'm looking for a way to access raster layers in an Esri File-GeoDatabase without using ArcObjects or ArcPy, specifically I would like to access the raster layers with GDAL. I understand that the GDAL FileGDB and OpenFileGDB give access to vector datasets within File-GeoDatabases, and that ESRI's own FileGDB C++ API does not support raster access.   Is anyone out there aware of any open source solutions?


Ubuntu 18.04 freezes while I'm using Chrome

When I am using Chrome, after some time the system freezes. I don't know why it's happening with Ubuntu 18.04 LTS. I keep updating my system.


How do I copy a file in Python on Windows?

I have a Python program that copies files using   os.system("cp -rf %s/bs %s" % (codeHome,destPath))   It's fine in Linux, but when trying to run in Windows (PowerShell) I'm getting the message  'cp' is not recognized as an internal or external command, operable program or batch file.   What should I be doing instead?


Has anyone installed ubuntu-20.4.1 on a dell New Inspiron 17 7706 2-in-1 Laptop thinking about buying the computer. Wanting to know it some has done this and what problems you may have had.


How to best characterize uncertainty for an incidence rate?

Here is the scenario I am trying to model.  I have a population of people who are susceptible to developing a disease. I observe each person for a different amount of time, summing to a total of 3000 person-years of observation.  During the observation period, I record 50 cases of this disease. The point estimate would then be 16.6 events per 1000 person-years.  How could I best quantify the uncertainty surrounding this estimate? Would these techniques still work for very few cases, or no cases at all? Implementation in R or Python would be appreciated.


Windows 10 UEFI Bootloader ignores Ubuntu

I've been working to install Ubuntu 16.04 on my Acer Aspire R 14 laptop which came pre-installed with Windows 10 and a UEFI Firmware system.  I've looked through nearly every thread and none of them seem to have any effect.  I've partitioned my hard drive and have now installed (and uninstalled) Ubuntu about a dozen times varying the mode in which I installed it (Secure Boot enabled vs. Disabled) and where I attempted to install the Grub Bootloader when given the option to do "something else" when installing ubuntu (/dev/sda, /dev/sda1 (efi partition), /dev/sda6 (linux partition)).  I've attempted to mount and install grub via:  $ sudo mount /dev/sda6 /mnt $ sudo mount /dev/sda1 /mnt/boot/efi  # and /mnt/boot $ for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done $ sudo cp /etc/resolv.conf /mnt/etc/ # for network compatibility $ modprobe efivars $ sudo chroot /mnt # apt-get install --reinstall grub-efi-amd64   I've also tried using the automated boot-repair tool.  These runs completed successfully with the given output:    I even followed up afterward in entering the given windows command: bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi  My issue is that no matter what I do, the ubuntu boot partition is not recognized by windows or the Firmware.  For example, my boot order is:   HDD: WDC WD10SPCX-21KHST0 Windows Boot Manager USB HDD: KinstonDataTraveler 3.0  (My Ubuntu USB stick) USB FDD: Network Boot-IPV4: USB CDROM: Network Boot-IPV6:   My boot system is the InsydeH2O Setup Utility.  My disk partitions are:   /dev/sda1 EFI System  /dev/sda2 Microsoft Reserved /dev/sda3 Microsoft Basic Data /dev/sda4 Windows Recovery /dev/sda5 Linux Swap /dev/sda6 Linux Filesystem   Ideally I'd like to get my computer booting to grub since I've never had issues booting windows from grub before.  Any help would be greatly appreciated.  P.S. Thanks to all the members of the askubuntu forums for the answers they've posted to similar questions that have gotten me this far.  I've read most of them, but was not allowed to cite them due to the limited number of urls that I could post.


Why color printout looks different from display?

Hi, I'm new to design.Can you tell me what is the problem that makes my printout color so much different from the file. Printer is RICOH aficio MP c4502


How to undo a point while digitizing with QGIS 2.18? I am digitizing polygon features.


Why does light travel at the same speed when measured by a moving observer?

I know the hypothesis that the light speed is constant is retained by experiments. But is there any theory explaining why the light speed is constant no matter how an observer moves relative to light?  My question is, specifically: Suppose an observer $O$ launches a light and $O$ starts to move at the same time with a uniform velocity $v$ in the same direction that light points. Then why $c$ is still the light speed that $O$ will measure rather than $c-v$?


Using divisibility and greatest common divisor for a proof

If u|t and v|t and gcd(u,v)=1, then prove that (uv)|t  I started by analyzing the definition of divisibility and I got that (uv)|t^2, but this doesn't help me.  Any advice would be appreciated. Thank you :)


Display Screen colors on laptop vs desktop

I do my work on a laptop.  I have this problem and I'm trying to find a solution which the problem is when I set screen brightness on 100%, the colors on my screen are mixing up with the backlight of the screen, and I dont get the true colors of the picture's.   When I send the pictures to other people they see a different colors like more saturation or more or less of the adjustments.   Do you have any solution for this?


How to disable automatic updates on Kubuntu 20.04?

I would like to disable automatic updates in kubuntu 20.04. I disabled it on Muon package manager, but Discover still getting updates and showing notifications. Thank you.


Networks In Ubuntu 20.04.2 LTS Stopped Working Since Last Update

The wifi stopped working, so I plugged in a ethernet cable, and lshw -C network shows both adapters as unclaimed. I have tried a few things suggestions found google that didn't work, before trying to reinstall Ubuntu 20.04.2.0 LTS. I'm writing this from the same computer now logged into windows, so there's nothing wrong with the hardware, both wifi and ethernet are shown in windows. The clean install still did not have any network connection on the first boot (or during install). I'm on the 2nd boot attempt and I now HAVE wifi, but the ethernet is still unclaimed. I have an Asus TUF 550 motherboard with wifi. It seems a few people have had this . This has happened a few times to me since installing Ubuntu 20.04 on this desktop, but not with my dell inspiron 2016. sudo lshw -C network [sudo] password for bryan:    *-network                         description: Wireless interface        product: Wi-Fi 6 AX200        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:05:00.0        logical name: wlp5s0        version: 1a        serial: 14:f6:d8:7f:b8:45        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=iwlwifi driverversion=5.8.0-43-generic firmware=55.d9698065.0 cc-a0-55.ucode latency=0 link=no multicast=yes wireless=IEEE 802.11        resources: irq:34 memory:fc600000-fc603fff   *-network UNCLAIMED        description: Ethernet controller        product: RTL8125 2.5GbE Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:06:00.0        version: 04        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd cap_list        configuration: latency=0        resources: ioport:f000(size=256) memory:fc500000-fc50ffff memory:fc510000-fc513fff


Gmail marks all my emails sent by exim4 as spam

I configured a Virtual Private Server as send-only mail server with exim4. Anyway, when I send an email to a Gmail account, it is marked as spam, because "it violates the guidelines for the sender recommended by Google.".   I checked if my domain name isn't blacklisted, and it isn't.  I also create a record A with my domain which I used as reverse DNS for my VPS.  I can't figure out the problem. Can anyone help me?


How to compare two fields for filter criteria in view

I want to compare this field value with another field value  How can I do that?  Thank you very much!


Can someone give me a hint how to evaluate $$ \binom{n}{0}+\binom{n}{2}+\cdots+\binom{n}{o(n)},$$ where $o(n)$ is $n$ if $n$ is even and $n-1$ otherwise ?


How can I know ASAP when my PC loses Internet connectivity and I'm away from the PC?

I have a PC with a USB humidity logger, that measures humidity in our factory. When the humidity is too high, the PC sends me an email alerting me to the problem.  Sometimes the internet goes down, or there's a power failure. Then, my PC can't email me.  I need a way to know ASAP when the PC loses internet connectivity.  One idea, is if there was a server somewhere, and my PC could ping it every 3 mins. If the server doesn't receive a ping after 10 minutes, the server can email me.  How do I solve this problem?


Facing syntactical problems while writing Inline bash Command

Had this issue while working with inline bash command and this thing got me really confused. So, say I declare a shell variable temp and give it a value: > temp='hello' and now to echo this result in UPPER CASE using inline commands I write  bash -c "echo ${temp^^}"  HELLO  which is totally fine and I'm okay with it. Now while studying this topic I came across this line, "Whenever we put code in a string (such as in the case of passing it in as an argument), the code should be single-quoted." And this line is helpful as it solves the ambiguity can be caused by multiple double quotes. So, following this I wrote the code as follows: bash -c 'echo "${temp^^}"'   Which gave me no output. I tried to do a verbose command on this one which gave me this: bash -cv 'echo "${temp^^}"' echo "${temp^^}"   Can somebody explain why the result is not getting displayed as HELLO, would really appreciate it.


Problem with Springer bibliography style(spbasic + natbib)

I am writing a paper to a Springer journal and I am trying to use their \bibliographystyle{spbasic}.  I want to sort citation by appearance, hence the first citation in the article should be cited with [1] and second with [2] and so on. But citation is sort by the reference's alphabetically order.   \documentclass[smallextended]{svjour3} \begin{document} \usepackage[sort&compress,numbers]{natbib} .............. \cite{S1} .......... \cite{S2} \bibliographystyle{spbasic}  \bibliography{sssat.bib}   % name your BibTeX data base  \end{document}


Is it true $\emptyset \times A = \emptyset$?

Let $\emptyset, A$ be an empty set and a set respectively.  Now consider Catesian product of the above.  $\emptyset  \times A$  I think it should be $\emptyset $ but I can't prove it.


how to pass a value to a variable that in a other variable

I am getting a "bad substitution" error while running this code. I want to print the values in h_1, h_2, h_3with a for loop.  #/!/bin/bash h_1=12 h_2=13 h_3=14 for ((i=1; i<=2; i++))  do   echo "${h_$i}" done


How to identify which query is filling up the tempdb transaction log?

I would like to know how to identify the exact query or stored proc which is actually filling up the transactional log of TEMPDB database.


Make the network profile editable on the main Stack Exchange page

Currently, the Stack Exchange Network Profile links to all the network accounts and acts as a centralized profile page. Seeing that the ability to edit the profile is available from the profile pages of all *.SE sites, I think the ability to edit profiles should be available on that Network Profile page as well.  It will be consistent with the nature of the centralized profile page and will better the user experience.   EDIT: As the current Network profile, is actually the oldest profile on the Network, providing an edit option on the Network profile which links to the oldest profile edit page, would be one way to implement this.


$\mathbb{F}_p[X]/(X^2+X+1)$ is a field iff $p \equiv 2 \bmod 3$

Let $p$ be a prime. Prove that $\mathbb{F}_p[X]/(X^2+X+1)$ is a field iff $p \equiv 2\bmod3$.    So:   If $p \equiv 2 $ mod $ 3$, I have to show that every element of $\mathbb{F}_p[X]/(X^2+X+1)$ has an inverse.  If $\mathbb{F}_p[X]/(X^2+X+1)$ is a field I have to show $p \equiv 2 $ mod $ 3$.


What is a "vehicle" category or classification for skateboards, bicycles, scooters etc?

I am putting together information regarding common suburban vehicles. I have a list of vehicle categories with several vehicle examples in each category. For example:  SUV   Ford Explorer Jeep Wrangler   Sports Car   Mazda MX-5 Toyota 86   Super Car   Chevrolet Corvette Nissan GTR   Truck   RAM 2500 Chevrolet Colorado   I would also like to add a combined category for non-powered vehicles such as skateboards, bicycles, scooters etc commonly used by children. I'm not sure what exactly to call this category though. I don't really like "non-powered vehicles" because it tends to have a negative connotation which the kids using them won't appreciate. I'm open to slang if it is relevant, but it does not necessarily have to be slang. Any suggestions?


I have been using MikTeX version 2.9.5105 without any trouble. I tried to compile using XeLaTeX option on a file that worked perfectly without this option. I had errors. So I decided to come back to the former settings (LaTeX+dvips+ps2pdf)  Now, I have a problem: the simplest latex file that contains a given image outuputs me this message all the time:   *! LaTeX Error: Cannot determine size of graphic in Pictures/logo.png (no BoundingBox).*   After trying to resolve this problem by doing what former answers to this similar question, I uninstalled MikTeX and reinstalled it again: the problem is always here. How can I fix this ?


I have observed a recent trend to pronounce "the" as "thuh" even if it is followed by a vowel (as in "thuh evening.")  Is this regional (I live in Alabama) or national?  I think it's the latter.   And does anyone have an idea about why this has happened?  Has the glottal stop become fashionable?  Is it typical of an age group?


Algorithms for solving the discrete logarithm $a^x \equiv b\pmod{n}$ when $\gcd(a,n) \neq 1$

The general discrete logarithm problem is to find $x$ given $a, b$ and $n$ such that $$a^x \equiv b\pmod{n}.$$ Normally one can use the "baby-steps giant-steps" algorithm to solve it fairly quickly. But when $\gcd(a,n) \neq 1,$ it is not possible to compute $a^{-1}\pmod{n},$ which the algorithm requires.  What algorithms are available to solve this problem in this case (apart from brute force of course)? Are there any theoretical limits on how fast such an algorithm could run?


Does stabilizing a character in combat provoke an opportunity attack if you're the only conscious character left?

Let's say there are 2 characters vs a monster.  1 character is unconscious.   If the 2nd character decides to stabilize the first then are they subject to an opportunity attack? Or are attacks against them at Advantage?  Note, I've read this  but think this is a slightly different case as the 2nd character is still in combat but trying to heal their fellow party member.


Simple question. I want to use enumerate with \item, except the numbering goes backwards, e.g. beginning at n and ending at 1.


$\operatorname{Spec}(R)$ not connected iff $R$ is a product of two rings

Let $R$ be a commutative ring. How can I prove that $\operatorname{Spec}(R)$ is not connected if and only if $R$ is isomorphic to the product of nonzero ring $A_1$ and $A_2$?   If we consider $R=\mathbb{C}[x,y]/(xy)$ we have that $\operatorname{Spec}(R)$ is connected, but I think that I can write $R$ as $\mathbb{C}[x,y]/(y) \times \mathbb{C}[x,y]/(x)$...


I think I'm having a bad day. I was just trying to use integration by parts on the following integral:  $$\int \frac{dx}{x\log(x)}$$ Which yields $$\int \frac{dx}{x\log(x)} = 1 + \int \frac{dx}{x\log(x)}$$ Now, if I were to subtract  $$\int \frac{dx}{x\log(x)}$$ from both sides, it would seem that $0 = 1$. What is going on here?  Aside: I do know the integral evaluates to  $$\log(\log(x))$$ plus a constant.


I have a BDD Mysql (utf8_general_ci) with a table TypeIntervention In the table I have ID =1 nomI = dépannage I use the sql : $nom ='depannage'; $sql = "select * from TypeIntervention WHERE nomI = '$nom' limit 1"; $con->set_charset("utf8"); $result = mysqli_query($con, $sql); if($result->num_rows > 0) {    while($row = $result->fetch_assoc()) {     echo "found";    } } else {     echo("Not found"); }     // on ferme la connexion mysqli_close($con);  The echo is "Found" but it must be "Not found" because "depannage" is not equal to "dépannage". If I change $nom for "Test" the request tell me not found. In this case It's OK but why "dépannage" seems to be equal to "depannage" ???? Thanks for your help


Let p(n) be the mathematical statement: $2^n \leq 2^{n+1} - 2^{n-1} - 1$.  Base Case: When n = 1 we have $2^1 \leq 2^{1+1} - 2^{1-1} - 1$ which simplifies to $2 \leq 4$. So P(1) is correct.  Induction hypothesis: Assume that P(k) is correct for some integer k.  Induction step: We will now show that P(k + 1) is correct.  \begin{align} 2^{k+1} &= 2\cdot 2^{k}\tag{by definition}\\[0.5em] &\leq 2\cdot(2^{k+1}-2^{k-1}-1)\tag{by inductive hypothesis}\\[0.5em] &= 2^{k+2}-2^k-2\tag{expand}\\[0.5em] &\leq 2^{k+2}-2^k-1. \end{align}  Is this proof sufficient?


What kind of human character or regional trait does the habit of “the g-dropping” represent?

Further to the question I posted today about the meaning of the expression, “treat somebody pretty ugly,” which appeared in New York Times’ article (September 17) titled “Rick Perry, Uber Texan,” I wonder about implications of the term, g-dropping, a question I earlier put aside. The term g-dropping appears at the beginning of the article:  YOU think of Rick Perry, you think of Texas. And more Texas. Perry the cowboy coyote-killer, the lord of the Texas job-creation machine, the g-dropping glad-hander with a “howdy” for every stranger in the room. He barely exists in the national mind outside of the Texas connection.  I understand g-dropping means the habit of dropping g in pronouncing –ing.  However, what does this trait represent?  That is, what sort of people  habitually drop g's? I've heard Texans drawl. Does g-dropping represent a particular talking style, character of speakers, educational background, regionality, or something else?  If not, why did the author insert the term, g-dropping, in describing the character of a Presidential candidate?


How can I disavow or remove Redirected spam site link

I am facing a problem that some redirected spam site linked to my domain. Now my domain spam increased to near 41%.  I have submitted disavow request few times, Still getting the same result. Can't fix it. What should I do now?


pgfplots using strings *from data table* as x axis labels in bar chart

I've seen some of the other threads on using strings as x axis labels, but nothing that fits my situation.  I'm trying to create a bar chart from a CSV file. I can do it so long as everything in the data is numeric. However, in my actual data table, the first row is multi-word string descriptions. I need these descriptions to be the x axis labels for each bar.  I've tried symbolic x coords, but I get the "could not parse input as a floating point number" error. I've also tried adding an ID column and using that as the x values, and assigning xtick labels as the string descriptors. I get the same issue that way.  Here's an attempt at an MWE:  \documentclass{article}  \usepackage{lmodern} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable}  \begin{document}  \pgfplotstabletypeset[columns/category/.style={string type},col sep=comma]{Book3.csv} \vspace{1cm}  \begin{tikzpicture} \begin{axis}[ ybar, xlabel=Xstuff, ylabel=Value, symbolic x coords={cat a,cat b,cat c,cat d,cat e,cat f,cat g}, %xtick labels={cat a,cat b,cat c,cat d,cat e,cat f,cat g},% this is from when i tried the xtick label method xtick=data, nodes near coords, nodes near coords align={vertical}] \addplot table[x=category,y=value]{Book3.csv}; %\addplot table[x=category,y=value]{Book3.csv};& again, from trying the xtick label method  \end{axis}  \end{tikzpicture} \end{document}   Since I suspect this might get answered quickly by you chart gurus, I have a follow-up question:  I have to do a bunch of these charts, and I would like to automate the symbolic x coords process. Is there a way to populate the dictionary of accepted x coords by reading a column of the data? (something like symbolic x coords={columns/category/{Book3.csv}} )?  Book3.csv looks like this (ignore the ID column if using the xtick label method):  ID, category, value, value 2 1,  cat a,    1,     7 2,  cat b,    2,     6 3,  cat c,    3,     5 4,  cat d,    4,     4 5,  cat e,    5,     3 6,  cat f,    6,     2 7,  cat g,    7,     1


How to print from sites that normally require OS X or Windows?

I have been trying to get the Target (retail store) website to print coupons. When I click print, it tells me it does not recognize my operating system and I need Mac OS X or Windows.   How do I get these sites to work?


how to insert multi figures with multi captions in latex

Similar to above image in latex article,how to insert multi single images, every image have caption on top and below of a image,and between two columns, draw a line like above color image, and the number of images together have a caption.Please help me


How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requirements?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Shuffle an array with python, randomize array item order with python

What's the easiest way to shuffle an array with python?


Is there any way a user can view or copy non-editable GUI controls' contents at runtime?

Here are two examples of what I mean:   I am sure you all too have experienced this frustration before. A dialog box opens that displays only part of a long string (e.g. a file path), but won't allow you to select the text so you can read the full string. Neither text container will resize upon window resizing. (By the way, you can force windows —specially dialog boxes— to resize with tools such as , but helps little in this case, since controls are fixed-width.) The text is hidden, period. Copying a very long drop-down list control contents to a text file.   Do you know any way to solve these problems?


Let's attempt to find a primitive root modulo, say, $p=127$. Since $p$ is prime a primitive root exists (more specifically there are $\varphi (\varphi (127))=36$ primitive roots modulo $127$). $\varphi (127) = 2\cdot 3^2\cdot 7$ We know that for $\alpha$ to be a primitive root modulo $127$, it is necessary and sufficient that: $$\begin{cases}\alpha^{126/2}\not\equiv 1\pmod{127}\\ \alpha^{126/3}\not\equiv 1\pmod{127}\\ \alpha^{126/7}\not\equiv 1\pmod{127}\end{cases} $$ in other words $\varphi (127)$ is the least for which $\alpha^{\varphi (127)}\equiv 1\pmod{127}$. My question is whether there is a further method of eliminating potential candidates? It is very tedious to try them out one by one. Can we say for certain which $\alpha$ definitely cannot be primitive roots modulo $p$ or any $n$ for that matter, aside from $1$, that is.  EDIT: The linked topic gives a thorough explanation on testing for if a number is a primitive root modulo $p$. My question pertains to, rather, omitting numbers that cannot be primitive roots modulo $p$. It isn't entirely clear from said topic if there is a way or not.


2 separate objects connected via links, how to clear them

I was messing with CTRL + L and probably somehow connected 2 separate object, now when I try to apply scale to any of them I got error "Cannot apply to a multi user: Object "Plane.028", Mesh "Plane.033", aborting". Also, when I select one and go to edit mode, it shows me edit mode of other object also. What could be problem and solution


Changing values of imported variables in JS. One method works, the other doesn't, why is so?

This works:  //a.js export let x = false;  export function toggle_x() {   if (x) {     x = false;   } else {     x = true;   } }  //b.js  import {x, toggle_x} from {'/a.js'} toggle_x() console.log(x) //outputs true, great!   This does not work:  //a.js export let x = false;  export function toggle(v) {   if (v) {     v = false;   } else {     v = true;   } }  //b.js  import {x, toggle} from {'/a.js'} toggle(x) console.log(x) //outputs undefined   Why? I want to create a function to toggle between true/false the entered variable.  Thanks!


How was the torque-force relationship discovered

I understand the equations of angular motion and how they relate to one another, however it is not clear to me where the torque equation comes from.   We have $F=ma$. By solving for the angular interpretation of linear acceleration, we have $$a=\frac{dv}{dt}r=\frac{d\omega}{dt}r=\alpha r$$ and thus $F=m\alpha r$.   With $\tau=Fr$, $\tau=m\alpha r^2$. When we have multiple torques we can add them up because $\tau$ is linearly related to force and force is a sum. By defining $I=\sum{m_ir_i^2}$, we have $\tau=I\alpha$  I understand that the concept of inertia is really an abstraction. We see the discrete $\sum{m_ir_i^2}$ or $\int{m_ir_i^2}$ forms frequently when dealing with equations of angular dynamics and thus decide to name the quantity moment of inertia based on the common role it plays in the equations (eg: for kinetic energy)  My question, a clarification   However, I'm unclear about how we know $\tau=Fr$. Is $\overrightarrow{\tau}=rF$ a wholly mathematical corollary of newton's laws of motion, (without creating a tautology), or a later development backed by empirical research.


Prove that $a * b$ is a group (Hungerford, 2nd ed., sec $7.2$, Exercise $22$)

Prove that the set of nonzero real numbers is a group under the operation $*$ defined by   \begin{align} a*b = \begin{cases} ab &\mbox{if } a > 0 \\ \frac{a}{b} &\mbox{if } a < 0 \end{cases} \end{align}   I have trouble proving the associativity propery of a group here. Here is my work so far:  If $a > 0, b > 0$, then $(a*b)*c = (ab)*c = (ab)c$ and $a*(b*c) = a*(bc) = a(bc)$.   If $a > 0, b < 0$, then $(a*b)*c = (a/b)*c = (a/b)/c = a/(bc)$ and $a*(b*c) = a*(b/c) = a/(b/c) = ac/b$.  If $a < 0, b > 0$, then $(a*b)*c = (a/b)*c = (a/b)c = ac/b$ and $a*(b*c) = a*(bc) = a/(bc)$.  If $a < 0, b < 0$, then $(a*b)*c = (a/b)*c = (a/b)/c = a/(bc)$ and $a*(b*c) =a*(b/c) = a/(b/c) = ac/b$.  I had been unable to prove that $(a*b)*c = a*(b*c)$ for all cases but the first one. I cannot understand why...


I have a PHP/AJAX/MYSQL chat application. I want to add video chatting to my application. How can I create live video streaming to be used for live video conferences/chatting in a PHP application. What are the key-terms I need to know if I wanted to build such a system? Is it a good idea in the first place to use PHP? Is there something I'm not thinking about? What other languages can I use, perhaps in conjunction with PHP?


Recovering data from a phone stuck in restore mode

I have an iphone 4 that is stuck in restore mode after trying to update to ios 6 wirelessly.  Unfortunately, I do not have a recent itunes backup of this phone.  Is there any way to recover my photos from this device before I try to restore it?  Will restoring it wipe all the data on the phone?


uname -a displays "Linux 4.19.0-9-amd64". What option of uname or other command will display that I'm using Debian 10.4?

I know the command that displays my Linux version : $ uname -a Linux bouleau 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux  What option of uname or order command will tell me that I'm using Debian 10.4 ?


How to define a function in latex language that takes as an argument the name of an image?

I am new to latex. I am able to define symbols for instance: \newcommand{\imageA}{\includegraphics[width=3em,valign=c]{image_01}}  I can call this symbol (\imageA) multiple times thus greatly simplifying my code. How can I define a function that is similar to the symbol above except that it can take the name of an image as an argument \functionA{image_01}? Question How do I define a latex function that takes as an argument the name of an image (image_01.png) and outputs: \includegraphics[width=3em,valign=c]{image_01.png}  So that I can call this function multiple times with different arguments in math mode: \[ \functionA{image_01.png} \functionA{image_02.png} \functionA{image_03.png} \]


Which way should arrows point in a collapsible accordion? Left/down … down/up?

What is the best way to indicate that it's possible to open and close an element accordion-style?  Arrow pointing left/arrow pointing down Arrow pointing down/arrow pointing up Plus sign/minus sign … or something else?


What word describes things that are similar yet different?

There are two words on either side of the word I'm looking for: synonym and antonym. Of course, a synonym is a word that means the same thing (automobile vs. vehicle), and an antonym is a word that means the opposite (male vs. female). However, let's use the example of automobiles. There are different types: car, truck, van, SUV, etc. They're neither synonyms or antonyms of each other. But is there a word that describes their similarities, given they're all automobiles?  The word should fit this sentence:     A car is a _______________ of a truck.


I am writing a document that contains formulas like this:  25 Va + 100 Vc = -3000   My colleague tells me that I should write it with a space on the 3000, or with a comma, like this  25 Va + 100 Vc = -3 000   or  25 Va + 100 Vc = -3,000   I never saw formulas written like this. What is the best practice?  BTW, how do I insert equations here? \$ or $$ not working for me...


How can Rhodes fit into his suit in Iron Man 2?

I have noticed that as the Iron Man movies progressed Tony's arc reactor got thinner and thinner. I don't get why the movies never tried to explain this cause I find it important.  For example, in the first movie if Tony already built the arc reactor into Rhodes’ suit then how come we don't see Rhodes struggle to get in the suit with a 9 cm arc reactor in the middle? I get that he made it thinner in the next movies but in Iron Man 1 the arc reactor is clearly about 9 cm thick. Explain please.


How can I transfer photos from the Camera Roll to Photo Stream?

Not all of my photos go to Photo Stream, some still go to my Camera Roll.  I'm trying to get them on my Photo Stream so they will be on iCloud. With 30 photos on my camera, 10 in stream, I took 6 photos.  2 appeared in stream, 4 did not.  Some of my subsequent photos also appeared in the stream, but not all.  This is arbitrary behavior by the program.  How to fix?  Assume ios 7.0.


If statementdoesn't compare to the required strings and doesn't work with other if altough the variable value is same as the compared string

Having an issue when trying to compare strings in If statement.   private String browser = XMLreader.getData("browser");  if (browser == "chrome"){     System.out.println(browser); } // Will not print anything  if (browser != "chrome"){     System.out.println(browser); } // Will print chrome    Any idea what am I missing?   Thanks


Why doesn't preimage resistance imply the second preimage resistance?

Let the preimage resistance be defined as »given a hash value $h$, it is hard to find any message $m$ such that $\operatorname{hash}(m)=h$«, and let the second preimage resistance be defined as »given a message $m_1$, it is hard to find any message $m_2$ such that $\operatorname{hash}(m_1)=\operatorname{hash}(m_2)$«.  Then if you are given a preimage resistant hash function $H$, what modifications could we do in order to make a hash function $H'$ that is preimage resistant, but not second preimage resistant?  Someone suggested that we could do the following:     Take a preimage resistant hash function; add an input bit $b$ and replace   one input bit by the sum modulo 2 of this input bit and $b$.   But I am not sure if that will work, could anybody explain to me why that makes $H'$ not second preimage resistant?


When I put the template in I get this error

The function getdata() works fine without the template but when I put the template in I get this error Severity    Code    Description Project File    Line    Suppression State Error   LNK2019 unresolved external symbol "public: char const * __thiscall json_map::getdata<char const *>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??$getdata@PBD@json_map@@QAEPBDV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main    banking   struct declaration in header file: struct json_map {      std::map<std::string, std::any> data;      template<typename A>     A getdata(std::string key);  };  function declaration: template<typename A> A json_map::getdata(std::string key) {     return std::any_cast<A>(data[key]); }  function use: map1.getdata<std::string>("walid");


Possible Duplicate:          I'm having a problem with referencing figures in LaTeX. I have the following text:  \begin{figure}[H] \center \label{fig:enn1015} \includegraphics[scale=0.40]{imagens/outputs/ENN_10_15.eps} \caption{ENN unbalanced 10\%} \end{figure}  The figure \ref{fig:enn1015} (...)   For some reason, the figure caption is:  Figure 3.5 Enn unbalanced 10%   But the text is:  The figure 3.2.1 (...)   Instead of:  The figure 3.5   It is printing the chapter.section.subsection the figure is in, and not the figure. Can anybody help me?


How to delete a very strange file from desktop

On my desktop WIN7 I have a ZERO length file with non-ascii character name and 12 characters after the dot. I cannon delete the file, rename it, move it to another folder, or remove it from the desktop. If I try, it says "This file is no longer located in c:\Users\Dell\Desktop Verify the item location and try again" CMD shows the file on the desktop with ZERO length I downloaded and tried eraser, unlocked, or everything even remotely possible to help Nothing worked I am trying to delete this strange file. Any help would be appreciated Thank you Dave


I don't know why I am having null despite comparing the code to the ones I've written before.  This is my Java code to insert data into table:    @FXML     private void rewards_Parameters(){         try{             String sql = "INSERT INTO SetUpReward VALUES(?,?,?,?,?,?)";             if(sql !=null){                 pst =con.prepareStatement(sql);                 pst.setString(2, txt_minGiftValue.getText());                 pst.setString(3, txt_maxGiftValue.getText());                 pst.setString(4, txt_RewardPoint.getText());                  pst.execute();             }         }catch(SQLException e){             JOptionPane.showMessageDialog(null, e);         }         }   My Init process...   /**  * FXML Controller class  *  * @author JIDO  */ public class IGisftCardController implements Initializable {     Connection con =null;     ResultSet rs = null;   PreparedStatement pst ;   Stacktrace:  Caused by:   java.lang.NullPointerException     at view_controller.IGisftCardController.loadReward(IGisftCardController.java:249)     at view_controller.IGisftCardController.initialize(IGisftCardController.java:168)     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)     ... 22 more Exception running application igiftcardfx.IGiftCardFX Java Result: 1


Why will crushing a partially empty 2-liter bottle keep the soda more fizzy?

One of the curses of 2-liter bottles is that when carbonated beverages are stored in them for long periods (i.e. days between drinks) at least the last liter ends up being flat. However, if after every pour the bottle itself is crushed such that the remaining volume of air above the liquid is as small as possible, and such that the structure of the bottle will prevent it from deforming back to its original shape (easily done by crushing the dome first and then working your way down), then the soda will stay nice and fizzy down to pretty much the bitter end, when it becomes impossible to crush the bottle any more but a significant air volume remains.   I know the answer has to do with vapor pressures and equilibrium, but when I try and articulate my thoughts to others their eyes glaze over. Can anyone come up with a broadly accessible, fairly pithy, and yet technically correct explanation?  I realize this is perhaps slightly more on the chemistry side of things than physics, but (1) there's no chemistry Stack Exchange site, and (2)  seemed reasonable precedence.


How do I show that for $n \geq 0$,  $$\sum_{k=0}^n \binom{n}{k}^2 = \binom{2n}{n}?$$  I know that $\sum_{k=0}^n \binom{n}{k} = 2^n$, but does this really tell me anything? Thanks.


Take for example the case of a rod rotating about an axis passing through its centre of mass and perpendicular to it. It has a ring hung from one of its sides. The rotation of the rod causes the ring to move out wards and ultimately fall off the rod.   I asked my teacher what causes the ring to move out wards and he said the centrifugal force acting in the frame of reference of the ring causes motion. What exactly is the ring reference frame? Is it a rotating frame? How would u visualize motion in this frame of reference?


Reverse gdal_rasterize (-i option) does not work

When I use:  gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff   I get a new tiff with a white hole in it with the shape of the polygon shp. However, when I use the reverse process:  gdal_rasterize -i -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff   I get a blank tiff. I expect the old tiff shaped by the polygon (ie. raster values inside the polygon), instead.  Any ideas why this happens? is it possible to clip a raster with a shapefile in this way?


Canon 5D MKIII - how to view the photos of the full card?

I have an SD and a CF card in my camera. Once the CF card is full, it switches to the SD card. But when I try to view the photos taken, it shows only those on the SD card once the CF is full. How can I see the CF card photos without taking out the SD card?


Can two files on two separate filesystems share the same inode number?

If I run a command like this one:  find / -inum 12582925   Is there a chance that this will list two files on separate mounted filesystems (from separate partitions) that happen to have been assigned the same number? Is the inode number unique on a single filesystem, or across all mounted filesystems?


Take $e$ and $\pi$. Scale $e$ to $a$, $\pi$ to $b$ somehow such that $b-a$ is almost zero.   Then there must be a rational $q$ between $a$ and $b$: $a<q<b$. How would you find this $q$?   If $a$ and $b$ were rationals, I would just say: take $\frac{a-b}{2}$ and define that as $q$. But, if $\frac{a-b}{2}$ is irrational, how to find a rational $q$ between $a$ and $b$?


How to measure the relation between two random variables that are not linearly correlated?

Sometimes it appears that the covariance is not sufficient to express how much two random variables are related.   Bellow, I have draw random samples from a multivariate normal distribution with two random variables X and Y.   First case : Cov(X,Y) $\simeq$ 0   Second case : Cor(X,Y) $\simeq$ 1   Third case: Cor(X,Y) $\simeq$ 0, ok but then is there a better metric than correlation in this case ?    Remark : Here the python code to draw the examples :  import numpy as np import matplotlib.pyplot as plt  s1 = np.random.normal(0, 5, 500) s2 = np.random.normal(0, 1, 500)  f, axarr = plt.subplots(2, 2)  axarr[0, 0].scatter(s1, s2) axarr[0, 0].set_title('X,Y ')  axarr[0, 1].scatter(s1, s1+s1) axarr[0, 1].set_title('X, X+X')  axarr[1, 0].scatter(s1, s1*s1) axarr[1, 0].set_title('X,X*X')  axarr[1, 1].scatter(s1, s1+s2) axarr[1, 1].set_title('X,X+Y')  plt.show()


"This kind of things" vs "These kinds of thing"

I have a question about the following text:     Last week Alex Knapp at Forbes published an article criticizing my Nikola Tesla comic. I don't normally respond to these kinds of thing, but since it's' Forbes I figured a proper response was in order.    I would rather say "this kind of things" rather than the version in the text above.


How to prevent anchor points from moving automatically?

I am trying to do isometric pixel art on Illustrator. To this end, I am using a hex grid to draw simple cubes using the pen tool (as described in ). However, the anchor points tend to move by themselves. The result is : my cube is not a cube.  Details:  Here I put my first anchor point :    When I add the second one, the line moves down :    And this is the shape I get in the end :


Intro:  I am working on a batch system. I read that the batch gets fragmented into chunks, each chunk is a subset of an entire query; the chunks will be executed sequentially.  Question:  If one of the chunks fails, is there any way I can rollback all changes done in the chunks?


Bold text doesn't work unless it stands on its own

Here's bold text on its own:     strong text   Here's bold text not on its own:     strong text strong text   Can we fix this?


What is the point of the initialization vector in cryptographic modes like AES-CBC when it is sent in the public? Cant any attacker just listen and reverse the IV? and as such defeating its purpose? EDIT I already know . My question was: Can't any attacker just listen and reverse the IV? And as such defeating its purpose? So, by using IV, the message 'hello' becomes (XXXX) and (yyyy), but since both have a copy of their respective IVs in the public such that (XXXX)123 and (yyyy)456, why can't I use 456 to make (yyyy) back to (XXXX) (to clarify)? I am assuming that the decrypter of (yyyy)456 transforms the message in the following ways (yyyy)456 -> f(456) -> (XXXX) -> f(key) -> 'hello'. So why an attacker can't just (yyyy)456 -> f(456) -> (XXXX) if 456 is already known?


Google's Featured Rich snippets ratings for organisation not being showed on Google Search

I have added Schema Code (Json Ld) for organisation with ratings, there's no error in the Structured data testing tool + it shows correctly in the preview result. But even then the Ratings are not being shown on Google Search.


Peer reviewed article not picked up by Google scholar

I've recently published an article in a fairly well respected journal in the Netherlands but it is not being picked up by google scholar's index.  The journal is not a 'predatory journal' and 3 of the volume's 5 articles have been picked up by google. How come mine hasnt made it?  Thanks for any advice you can spare, Cheers!


Let $\phi : G_1 \rightarrow G_2$ be a surjective group homomorphism. Let $H_1$ be a normal subgroup of $G_1$ and suppose that $\phi (H_1) = H_2$. Prove or disprove that $G_1/H_1 \cong G_2/H_2$.  I say they are indeed isomorphic. Because:  Let $f$ be the group homomorphism from $G_1$ to $G_2/H_2$ that sends $a$ to $\phi(a)$. Then the kernel of $f$ is everything that is sent to $H_2$. Well by assumption this is $H_1$. Since $\phi$ is surjective, so is $f$, so by the first isomorphism theorem, $G_1/H_1$ is isomorphic to $G_2/H_2$  Is this correct reasoning?


A ternary tree is an ordered tree where each node has either 0 or 3 children. Such a tree is full if all leaves are at the same distance from the root. Derive an explicit formula for the number of leaves, and the total number of nodes, in a full ternary tree of height h.   My idea was that  At level h i.e. the number of leaf nodes in a ternary tree is 3^h.  3^(h + 1) - 1) /2  = n (3^(h + 1) - 1)  = 2n 3^(h + 1)  = 2n + 1 3^h * 3 = 2n+1 3^h = (2n+1) /3   So the number of leaf nodes in a ternary tree of n nodes is (2n+1)/3


How can I easily create a GUI dialog with a bash script?

I need to present some text along with the items(about 15 values) for each of two Bash list(file) records.  On the same screen  I need to present a three way selection, (buttons, scrolled selection window, etc.).  I'm an Ubuntu(11.04) scripting noob just beginning to use Zenity in scripts. My friends suggested YAD.    Can I do all of that in YAD or use some other easy GUI tool unknown to us?  .


What's the best book to study analysis after finishing Spivak's Calculus? I thought about Rudin's Principles of Mathematical Analysis(Which I guess would be much boring for me, but I don't have it so I can't tell if my supposition is right or not), Stein and Shakarchi's Real Analysis, Terence Tao's Analysis(if you recommend it, tell me which edition is the 'right', please) or Pugh's Real Mathematical Analysis?   Additional info about my purpose:  - I tend to seek elegance in proofs.  - I want to grasp concepts the most deeply possible. - I don't like books that just jump steps without clear explanation, but I don't like books that are boring(books that focus too much in rigor, in the steps, in the "you can prove it this way". I like rigor and it's what - - - I'm seeking, but sometimes authors make it boring. I don't know if I made me intelligible).  - However, I want books that make me try to 'rediscover the subject';  mean, books that make me think hard on the subject even before he explains the matter.  - Books with super hard exercises are welcome.


New to quantum physics, where should I begin from?

I am totally new to quantum physics so could someone suggest some books or something and what topic should I begin from.


Has Essos ever invaded or attacked Westeros?

Has any community of Essos ever invaded or attacked Westeros?  As I far as I know, only the Dothraki intended to invade Westeros, because Drogo promised that to Daenerys.  What about the other communities of Essos? Are there none with sailing skills?


Is it possible that there are newly formed galaxies which are moving so fast that we will can't see them, even though they exist "inside" our visible universe?  I've been wondering if this could be a thing, or if I'm misinterpreting one of the following ideas.   The universe is expanding and thought to be accelerating. Galaxies past about 4,200 parsecs are expanding away from us faster than the speed of light. We are moving away from those galaxies at the same speed relative to them.   Is it possible for us to "outrun" the light from a distant galaxy, to the point where we either can't or will never see it? Something about this seems wrong, but I can't quite figure out what.


What hinge is this and where can I buy them in the UK?

I need to replace 4 hinges on the doors on our summerhouse.  I have checked in a local hardware store and also I checked in B&Q on the weekend but I couldn't see them in either.  Does anyone know where I can buy these hinges from in the UK?


Is there a differentiable function whose derivative is greater than or equal to 1 everywhere but 0 at 0?

Does there exist a differentiable function $f: \mathbb{R} \longrightarrow \mathbb{R}$ such that $f^{'}(0)=0$ and $f^{'}(x) \ge 1$ $\forall x \ne 0?$ Prove either way.  I was thinking of coming up with a counterexample such as $x^3$ but adding an expression to make $f' \ge 1$ but that makes $f'(0) \ne 0.$ What would be a rigorous proof otherwise if no such $f$ exists?


Ubuntu Limit sudo user to password reset only

I would like to limit one of my sudo users to only be able to reset a users password. I do not want them to have any other administrative privileges but that.  I know how to block certain access, but how would I block everything but passwd.


I have the exact same question as this one . Only difference is I have 3 columns only and I am trying to move the 1st column to the end.  The original file looks like this:  col1,col2,col3 2,2015-01-04,23 196,2015-01-20,36   I didn't make the mistake that other questioner did (i.e. not put comma after F or after OFS=). So, my code is  awk -F, '{print $2,$3,$1}' OFS=, old.csv > new.csv   But I am getting the 3rd column (which used to be the first) in a new line:  col1,col2,col3 2015-01-04,23 ,2 2015-01-20,36 ,196   Why is awk sending the 3rd column data to a new line? I am using awk on Linux Bash Shell (Ubuntu) on Windows, downloaded from .


How to install Lubuntu without GUI installer?

I want to install Lubuntu on an embedded system. I can connect display and keyboard, but no mouse, so only CLI installation is possible. Although I need the complete (not server) distribution because I want to connect to the computer using VNC. Thank you for help.


Is there a way to find out if I need a transit visa for Canada?

I'm passing through Canada, on my way to somewhere else. I'm staying only a short time.   Is there a website, or some other way of find out out if I need a visa?


Unable to mount Windows (NTFS) filesystem due to hibernation

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I have seen , but that question seems to be obsolete with the 11.10 version.  Last week, I upgraded from 11.04 to 11.10. I am usually using gnome desktop clasic (without effects,also called the fail-safe), because my PC is very bad. Since the upgrade, everything is so slow. I also noticed that the temperature of the graphical chip* went from 30-40 C to 60 C, so my guess that the ubuntu 11.10 demands very powerful GPU.  So, what can be done to improve the performances of ubuntu 11.10?    Logging in using fail safe option is one thing, but it is not enough.  *The temperature of the GPU can be seen from the nvidia-settings under the thermal settings.


Can I use an appSettings key's value within the same web.config file

In my web.config I am setting the following key  <appSettings>     <add key="myPath" value="//mypath.com" /> </appSettings>   Later in my web.config file I would like to use this value. Is this possible?   For example I would like to use it in a redirect rewrite map that I define later similar to this:  <rewriteMap name="myRewriteMap" defaultValue="">     <add key="live" value="{Here I want to use the key 'myPath'}"/>     <add key="dev2" value="http://mydevpath.com"/> </rewriteMap>


How can I calculate this: $\lim\limits_{n \rightarrow \infty} \frac{1+\sqrt[n] {e}+\sqrt[n] {e^2}+ \dots + \sqrt[n] {e^{n-1}}  } {n}$? I how come so far: $$ \lim_{n \rightarrow \infty} \frac{1+\sqrt[n] {e}+\sqrt[n] {e^2}+ \dots + \sqrt[n] {e^{n-1}}  } {n} = \lim_{n \rightarrow \infty} \frac{1}{n} \left(1 +\sqrt[n] {e}+\sqrt[n] {e^2}+ \dots + \sqrt[n] {e^{n-1}}\right) = $$  $$ \lim_{n \rightarrow \infty}\frac{1}{n}\sum_{i =1}^{n}e^{\frac{i-1}{n}}$$ But how do I continue?


I’ve got windows installed on an nvme drive and I have a sata ssd that I want to install Ubuntu on without wiping out the windows drive. Can I use the “Erase disk and install Ubuntu” option? Or will this destroy my other drives?


Proof (a,b) and [c,d] are not homeomorphic

I'm pretty sure it's possible to find a biijection from (a,b) to [c,d], but as far as proving them not homeomorphic, is it sufficient to say that the endpoints can't map to each other since the open interval does not contain its LUB and GLB? My other thought was proving the bijjection between them can't be continuous.  The question does not say whether these are in the real line or any other particular space.


can i travel within Schengen area while im holding a D visa with single entry

Im holding a D visa with single entry from Switzerland. can I travel to other countries in Schengen area? If no, what should I do so as I can go while my visa just valid until this october 9?


How to redirect mail from Gmail account to Google group mail

Is it possible to redirect mail from one Gmail account to Google group mail id. If possible then how? I had seen these type of problem but all I found are unsolved:


Why are my desktop icons really small and without text?

I just installed a fresh Ubuntu 13.10 and observed the following behavior: My desktop icons are all very tiny and the corresponding file names are not displayed. The following example shows my desktop containing a few LibreOffice documents and a PDF:    Is this behavior expected? And what can I do to get more traditional desktop icons (larger, with text)?  So far I tried not to do anything like unity --reset (which apparently is no longer supported in 13.10 anyways) because the icon problem was already present in the very first boot after the fresh installation, and it would be great if I won't lose all other Unity settings that I have configured in the last few hours.


Euler's totient function determining $\phi(m)$= 2 using the product formula.

Solving $\phi(m)$ =2 , to find that the only possible types of m are 3,4, and 6  I have considered the product and found $p_i$ = 2 or 3 and $a_i$ = 2 or 1 and this I have found using cases 1|2 and 2|2.    How can I use my results combining the two cases that the only possible such m are if 3,4, or 6.  edit: I am considering the case of when m and n are coprime and I know the possible solutions are (3,4) and (4,3) . For self, I am wondering about how I find these m after obtaining my cases 1|2 and 2|2.


I created an image of a Windows Server 2008 system using the free VMware Player and set the maximum hard drive size to 100GB. I then gave those image files - 30GB at the time - to a server hosting company. A few weeks later I asked them for a copy of them back; the image should not have changed much in size, but the files I got back were the full 100GB size.  I am not a VMware expert at all, so I have two questions:   How/why did they expand the whole dynamic disk? Is there any way I can somehow shrink this image down to the size that actually contains data?   I tried the VMware converter, and it can't seem to read my image (vmdk) file; it just outputs a generic error.


I am running a site with 2 GB ram on centos. Using LAMP  Everyday for a few hours (about 3 to 4 hours) apache goes down. It takes too long to load a page and most of time it shows Request time out. But other ports are okay like ftp also 7778, as I am using kloxo.  I am not a server expert but I have googled and done a bit research and I think this is a ddos syn attack.  I used netstat -n | grep :80 | grep SYN |wc -l to look into syn connections  During the attack it shows a number more than 3000. But when my site backs to normal it shows a number around 100.  So please help me. and tell me how to stop this this is really pissing me off.


Review Queue Filter Doesn't Seem to be Filtering Good

So I was , but I'm not exactly the most knowledgeable in the realm of programming. So I figured I would filter the review list to get questions I could answer. So I tried to review javascript only and all seemed to be well:        Only , I think to myself as I read it, and then come to the tags at the bottom:          Yeah, definitely not javascript. What's going on here?


Does a Warlock receive the benefit of their familiar's Magic Resistance trait?

The Warlock has access to special forms for their find familiar spell through the Pact of the Chain feature. I'm wondering if these special forms, the Quasit, Imp, and Pseudodragon in particular, allow the player character to share the familiar's Magic Resistance feature. In the Monster Manual each of these creatures has a sidebar that states that the familiar shares its Magic Resistance feature with the companion they are bonded to, but the PHB doesn't mention this in any of the creatures' stat blocks.   For example, in the Variant: Pseudodragon Familiar sidebar on page 254 of the MM it says:     "While the pseudodragon is within 10 feet of its companion,        the companion shares the pseudodragon's Magic Resistance trait."   This feature seems clear in the MM but I'm led to believe that it wasn't intended for Player Characters since mention of it is absent from the stat blocks in Appendix D of the PHB (pages 307-309).  Would a 3rd level warlock who chose one of these familiar forms through the Pact of the Chain feature benefit from advantage from saving throws from spells and other magical effects due to these special forms, or was this feature only meant for powerful NPCs and enemy spellcasters who had made this link with these familiars themselves?


Positioning of the game object after scaling the game background

i'm creating a game using Corona SDK i have a map and with ball and some other object moving on this map and i'm using the ultimate config.lua file for scaling background based on device screen resolution my problem is that i want to arrange some object on this map but for device resolution i have created specific assets for ex android device with aspect ratio lower than 1.72 so in this assets the map is stretched horizontally or it's became wider than other assets so in this case when i want to arrange an object on top of this map the result is that my object didn't set in the right place and that because the map is became shorter than is other design for more explaining when i set myobject.y=100 on a device with aspect ration more than 1.72 it set on the right place but when i do the same thing on device with aspect ratio less than 1.72 my object didn't set on the map i tried to convert my pixels to inches using device DPI but it's still the same  sorry for my poor english and thanks for help


I computed the T-score and P-value using t.test() for my data, and finally I've plotted the density of my p-value and I've got strange plot. I don't know, why I see peak around 0, which it's density is bigger than 1 ?  can anybody help me with the interpretation of this plot ? I used the plot(density(mymatrix))


Edimax EW-7811Un wifi adapter not working on Ubuntu 14.04 LTS

I have installed Ubuntu 14.04 LTS 64-Bit and have a Edimax EW-7811Un wifi adapter. I have tired to get it to work but have no luck.   when I run lsusb command I get:  Bus 001 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]   iwconfig shows that nothing is being read or connected:  eth0      no wireless extensions. lo        no wireless extensions.   I have tired numerous forums and tutorials but cant get it to work, dont know what I am doing wrong.   Can someone give a clear step by step method to get this to work?  uname -r: (Kernel Version)  3.16.0-34-generic


Accidentally associated .exe files with java.exe

I have downloaded a  program in order to take pictures with my webcam.   After installation I clicked its icon to start then it opened 'Open With...' dialog to select which program to be used to run it.   I thought that it was a Java program, so it (maybe) want me to show java.exe path to work.   Then I associated YawCam.exe to work with java.exe. What I did not notice "Alway use the selected program to open this kind of file" was checked.   Suddenly the icons of all my program shortcuts and start menu items changed to java's cup icon.  I have read a question similar to mine at   It sounds a good choice. But if try to run cmd command via 'Run...' dialog, Windows tries to open cmd.exe with java.exe  I also have tried to turn back to a checkpoint with system restore. Again I have encountered the same problem with cmd.exe  I have a solution in my head that creating a new account and continuing my work. But I will do that if I feel helpless.  I have tried what suggested at  but did not work. After restart, background programs (like dropbox) did not started either.


Is it possible to create red/blue 3d color in LaTeX?

Is it possible to create a red/blue 3d effect in LaTeX using a preexisting package? If not, would anybody have any insight into how to go about this?  I am planning to make a beamer presentation on 3d effects, and the ability to have a 3d(even if it is gimickey) would be fun.  Link on red/blue 3d


There are two variables. If they are not significant, can they be interaction items?

If neither x1 nor x2 is significant for y (y=x1+x2 +x3+𝜀). Is it necessary to make the model y = x1 + x2 + x1*x2 + x3 +𝜀? (In fact, the interaction term X1X2 stands out in my analysis.)


For the Derivation of the Schwarzschild solution my Professor use: $R_{\mu\nu} = 0$ since we are in vacuum. I see that we are in vacuum, but we assume a mass at point $r = 0$. Thus, the curvature is nonzero. But from $R_{\mu\nu} = 0$ we get $R = 0$ (Ricci scalar), that means the curvature is zero. Where am I wrong?


Merge separate vertices residing at the same coordinates

Is there a way how to merge vertices that are exactly at the same X/Y/Z coordinates? I mean like: select all vertices and make it for all at once (not going one-by-one pair manually as there may be zillions of such instances!). But maybe funnily enough, at the moment I actually do exactly that: switch view to Wireframe, go to Edit mode, select vertices occupying specific space, press M and select Merge at center, press H to temporarily hide that such already "healed" vertice (so I would only see those that are still not "cured"), and so on until I do it for all the vertices in the object, which is extremely tidious work to do. I found out that with some objects there are separate vertices at exact same spot making an object not connected "as one" (so to speak). What I am up to is to find a way that would merge such vertices making previously separated faces into one interconnected surface, that is: not surface made out of separate triangles where each triangle has its own set of vertices, but rather share vertices among each other if those vertices are at the same exact coordinates (I hope I explain my point as I am not native english speaker). Reason why I am doing this is mainly because when I do UV mapping it comes as bunch of groups of UV faces instead of one whole object + it also make my other software crash if I export such object into OBJ file.


What is a proper reply for excuse me? Like for thank you, you can say no problem or welcome.  I don't know what a proper reply for excuse me would be.


Program can't search element input by user in a Linked List

I'm basically trying to create a program that accepts user-input to insert into a singly linked list, then searches if said a certain element exists in the linked list. The problem is that all I'm getting for an output is  "does not exists", even if it has been inserted at the beginning of the program.  For some reason, using initialized values, eg. "llist.push("test")" works, but using "llist.push(item)", which uses user-input, doesn't work. I've tried looking for similar problems online, but can't find any, please help me as I'm new to Java. Thanks in advance!  class Node  {      String data;      Node next;      Node(String d)      {          data = d;          next = null;      }  }   public class javalinkedlist {      Node head = null;       public void push(String new_data)      {       Node new_node = new Node(new_data);      new_node.next = head;      head = new_node;  }   public boolean search(Node head, String x)  {      Node current = head;      while (current != null)      {          if (current.data == x)              return true;          current = current.next;      }      return false; }   public static void main(String args[])  {      LinkedList llist = new LinkedList();      Scanner input = new Scanner(System.in);     System.out.print("Enter: ");     String item = input.next();     llist.push(item);      if (llist.search(llist.head, "test"))          System.out.println("exists");      else         System.out.println("does not exist");  }    }


Concatenate from all the elements from a list of lists to have a string

I have data from a JSONs like as below data={'type': 'Feature', 'geometry': {'type': 'LineString', 'coordinates':  [[410910.0885459831, 2479395.4132211693, 0.0], [410903.8088855865,  2479401.860380645, 0.0], [410845.2521416071, 2479436.215147523, 0.0],  [410844.8989142373, 2479436.568374893, 0.0], [410844.5338823536,  2479436.90979775, 0.0], [410844.1588620354, 2479437.2403241317, 0.0],  [410843.77385328256, 2479437.5581379607, 0.0]]}}  and I wish to make a concatenation on the elements like below in this line: datas [i] ['geometry'] ['coordinates'] [j] [0]) +" "+ str (datas [i ] ['geometry'] ['coordinates'] [j] [1]of all existing sublists in coordinates. Here is my code but unfortunately it does not work since it only gives me the last data [i] and not all the coordinates in the sublists  path = os.path.join(dir, file)  shapefile = ogr.Open(path)  shape = shapefile.GetLayer()  datas= []   features=[]  jsonstring=[]  lines = []  for i in range(len(shape)):      features.append(shape.GetFeature(i))      jsonstring.append(features[i].ExportToJson())   # myjson      datas.append((json.loads(jsonstring[i])))       for j in range(len(datas[i]['geometry']['coordinates'])-1):          line = datas[i]['geometry']['type'] + "("+ str(datas[i]['geometry']['coordinates'][j][0])+" "+ str(datas[i]['geometry']['coordinates'][j][1])+")"          lines.append(line)`  I'm using Python 3.x, and I would like to have in the end something like this: LineString(410910.0885459831 2479395.4132211693, 410903.8088855865 2479401.860380645, ..... ,410843.77385328256, 2479437.558137960)   for each data[i]


I have a method (par.getstatus) which outputs a message that looks exactly like this: 3::0::P:3::C:2::S:1::M:1::D:0::A:0::Q:0null  problem is when I write:      String s = par.getStatus(3);     assertTrue(s == "3::0::P:3::C:2::S:1::M:1::D:0::A:0::Q:0null");   it does not return true. I know that the string is the right one, cause I printed it to the console, and copied and pasted it directly, checked that I did that right many times. And to check that it is not the assertTrue method that I am using that is wrong, I wrote:      String d = "rr";             assertTrue(s == "rr");   which returns true.  Someone said that it could be null that is causing the problems, so i removed that, but still no luck. Does anyone know what the problem could be here? thanks


Disable keyboard but still allow reading from it

I have a USB numpad that I want to use to control a specific application running as a daemon in the background. The daemon is written in Python and I'm currently reading input using python-evdev which works quite well.  However, everything I type on the keyboard is still also processed normally, meaning that keypresses are also inserted into any application dealing with keyboard input (including the login prompt that is shown when the computer boots up). This is somewhat annoying.  Is there a way to disable the "normal" processing of keyboard events, and only allow manual reading of the key states? Hopefully one that does not depend on running X.  Everything I've found so far seems to be dealing with disabling the keyboard completely or using X.  One idea I have is to create a keymap which maps all the keys to dead keys, which prevents any output, but still allows me to read the actual keycodes. However, it seems that there should be an easier solution to this problem.


No colored output in less for the ls command

If I run ls I get colored output which I find pretty handy for quickly getting a glance of the kind of file. When I try to pipe it to less even with the -r and -R flags the coloring always get lost. I am using zsh version 5.0.7. Any ideas? Thanks.  edit: I am on OS X.


Trying to edit the nose, but zooming in will display the vertices behind it

The first one in the , I can get close to the nose just fine, but the second one, if I try to zoom in... then it displays like that?   How to fix that?  Maybe you can check what's going on, you can download it .


Simple Harmonic Motion - spring with mass

I'm reading about the following set-up:     We have a body of mass $m$ attached to a spring. The restoring force is proportional to the displacement of the body from equilibrium. Using Newton's 2nd law we derive the equation of motion being a sine curve.    The author specified however that the spring was massless. How does the spring having a mass affect the situation?


Why bash "read -t 0" does not see input?

My script (should) acts differently, depending on the presence of the data in the input stream. So I can invoke it like this:  $ my-script.sh   or:  $ my-script.sh <<-MARK     Data comes...     ...data goes. MARK   or:  $ some-command | my-script.sh   where two last cases should read the data, while first case should notice the data is missing and act accordingly.  The crucial part (excerpt) of the script is:  #!/bin/bash local myData; read -d '' -t 0 myData;  [ -z "${myData}" ] && {     # Notice the lack of the data. } || {     # Process the data. }   I use read to read input data, then option -d '' to read multiple lines, as this is expected, and the -t 0 to set timeout to zero. Why the timeout? According to  (typing left unchanged; bold is mine):     -t timeout time out and return failure if a complete line of input is               not read withint TIMEOUT seconds.  The value of the TMOUT               variable is the default timeout.  TIMEOUT may be a               fractional number.  If TIMEOUT is 0, read returns success only               if input is available on the specified file descriptor.  The               exit status is greater than 128 if the timeout is exceeded   So I in case 2 and 3 it should read the data immediately, as I understand it. Unfortunately it doesn't. As -t can take fractional values (according to above man page), changing read line to:  read -d '' -t 0.01 myData;   actually reads the data when data is present and skips it (after 10ms timeout) if it is not. But it should also work when TIMEOUT is set to real 0.  Why it actually doesn't? How can this be fixed? And is there, perhaps, alternative solution to the problem of "act differently depending on the presence of the data"?  UPDATE  Thanks to @Isaac I found a misleading discrepancy between quoted on-line version and my local one (normally I do not have locale set to en_US, so help read gave me translation which I couldn't paste here, and looking up for on-line translation was faster than setting new env---but that caused the whole problem).  So for 4.4.12 version of Bash it says:     If TIMEOUT is 0, read returns               immediately, without trying to read any data, returning               success only if input is available on the specified               file descriptor.   This gives a little bit different impression than "If TIMEOUT is 0, read returns success only if input is available on the specified file descriptor"---for me it implied actually an attempt to read the data.  So finally I tested this and it worked perfectly:  read -t 0 && read -d '' myData;   The meaning: see if there's anything to read and if it succeed, just read it.  So as to base question, the correct answer was provided by Isaac. And as to alternative solution I prefer the above "read && read" method.


I rooted my nexus 5 and upgrade the developer images of Android L (build number LPV79) back in June or July. Now. I'm waiting for Android 5 OTA. Will I be getting it? How can I check when it will come? All my apps updated to Android 5 so they are not working and crushing because they are not compatible. And I'm not getting any support from Google / Android. Who can help me?


I have a very big problem. I just installed cairo-dock and I logged out from my Unity.  As I logged out, Ubuntu showed me options to select other desktop, I saw an option of Cairo Desktop and I chose it and logged in. But since I logged in, it just shows me a black screen.  I don't be able to do anything! I do not see anything on the screen, can't even open terminal. Keyboard has stopped working and mouse pointer is not visible!  There is no option to logout. I'm in a big trouble. When I press power key of my laptop, it shuts down but when I start it again, it shows me black screen only.  I want to switch to Unity environment back. Is there any option? I don't want to format my computer.  I use Ubuntu-14.04.1.


Distribution of a square of a random variable

If X is normally distributed with mean mu and variance sigma^2, then what can I know about the distribution of X^2 ?


How to convert a numpy to a float in python

I have numpy arrays as follows.  x = array([0.1]) y = array([0.2]) z= array([-0.05])   I want to get the value of them as a number. Therefore, I did the follwoing.  print(x.tolist()[0]) print(y.tolist()[0]) print(z.tolist()[0])   However, it gave me the following results which is incorrect.  0.09999999999999996 0.19999999999999998 -0.049999999999999975   I am wondering if there is a way to get 0.1, 0.2, -0.05 respectively.  I am happy to provide more details if needed.


Image styles not working, uploads to to files directory

Image styles are not being applied. I have the /files/ directory set to CHMOD 777, GD Library is installed. When you upload an image, it just goes to the /files/ directory, none of the styles are generated into their styles folder. Reports -> status report is clean. Image uploads, but it stays in files directory, no thumbnails are generated, all paths are broken to the image even to the thumbnail in the Media page.  Hosted on AWS EC2 Linux/Apache  .htaccess in /files dir:  # Turn off all options we don't need. Options None Options +FollowSymLinks  # Set the catch-all handler to prevent scripts from being executed. SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 <Files *>   # Override the handler again if we're run later in the evaluation list.   SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 </Files>  # If we know how to do it safely, disable the PHP engine entirely. <IfModule mod_php5.c>   php_flag engine off </IfModule>


Using Vector Ruggedness Measure (VRM) tool from ArcScripts at latest version of ArcGIS for Desktop?

I need to use the Vector ruggedness measure (VRM) tool available from . However, I am using ArcGIS 10.2 for Desktop and these tools are made for 9.0, 9.1 and 9.3 only. I have tried to run this tool regardless and get the error:      Traceback (most recent call last):   File   "C:\Users\jc221340\Documents\project\Processed   data\My_tools\Downloaded\ruggedness.py", line 20, in        gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx")   RuntimeError: Object: Toolbox C:/Program   Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx does not   exist      Failed to execute (Ruggedness(VRM)).   How can I use this tool?


What can I use for good quality code coverage for C#/.NET?

I wonder what options there are for .NET (or C# specifically) code coverage, especially in the lower priced segment?  I am not looking for recommendations, but for a comparison of products based on facts. I know the following:      Seems to be very popular and looks quite good Supports statement coverage and branch coverage  Older beta versions are available      Well, it's Microsoft so I'd expect it to work properly Fully integrated into Visual Studio At least $5,469   - no further development (moved to OpenCover)   Open source Supports statement coverage   - successor to PartCover   OpenSource Supports branch and statement coverage 32 and 64 bit support Silverlight support   No      Works with 32 and 64 bits, full C# 4.0 Handles both small and very large code bases $250 for single user license     $100 for Personal License. Free for user groups, open source projects, students and teachers. Supports statement coverage Silverlight support     $159 for personal license $289 for commercial seat license   * Free during beta,  . Code coverage indicators in Visual Studio Continuous (near real time) testing Visual per-test code coverage Performance metrics, parallel multi-core test execution      for developer license NDepend can import coverage data from NCover, DotCover, Visual Studio 2017; 2015, 2013, 2012, 2010 and 2008 Code Coverage files. Dependency graph Dependency structure matrix Visualizing code metrics Validating code rules


Ubuntu 16.04 Steam only runs from terminal

After a botched upgrade from Ubuntu 14.04 to Ubuntu 16.04 I had to wipe my system and start all over. This time I decided to go with a much less CPU intensive desktop environment and installed Lubuntu 16.04-1.  My problem: when I run Steam from the menu shortcut it acts like it is doing nothing. However it does show up in the task manager. If I just type steam in the terminal I get the following.  michael@michael-HP-Pavilion-dm1-Notebook-PC:~$ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc /bin/bash: /home/michael/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash) grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc awk: /home/michael/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.6) Installing breakpad exception handler for appid(steam)/version(1468023329) libGL error: unable to load driver: r600_dri.so libGL error: driver pointer missing libGL error: failed to load driver: r600 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast   Then nothing happens including steam doesn't show up in the task manager. Now I did find the command.  LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam   This does run Steam but it is not a real solution in my eyes. How can I fix it?


How gravity can give energy for unlimited time?

F = gravitational force between the earth and the moon,  G = Universal gravitational constant = 6.67 x 10^(-11) Nm^2/(kg)^2,  m = mass of the moon = 7.36 × 10^(22) kg  M = mass of the earth = 5.9742 × 10^(24) and  r = distance between the earth and the moon = 384,402 km   F = 6.67 x 10^(-11) * (7.36 × 10^(22) * 5.9742 × 10^(24) / (384,402 )^2  F = 1.985 x 10^(26) N   The above all i took from    Age of Moon 4.53 billion years (From google)  So Earth has been producing a force of 1.985 x 10^(26) N for 4.53 billion years I do not know how to calculate the total energy spent so far(Please some one do the favor) from force and time but it must be very huge. if E = mc^2 then atleast some of the mass of earth must have disappeared in producing this energy or where did the energy come from ?   Somewhere some one has answered if we place a ball above earth then during that time we did the work and when it fell down to the earth that work changed into kinetic energy ok accepted but the moon is being pulled towards earth for unlimited time where does the earth get the energy from to do so ?  @Emilio Pisanty Thanks for your reply.  "it needs to move the object in the direction that the force acts in"  Even though the force applied by earth is perpendicular to the direction of motion the moon's direction is definitely changed because of the force applied by the earth and the moon is moving a little towards earth from the straight line otherwise the motion would be a straight line. If earth did no work on moon why would the moon not go in straight line escaping earth's gravity. Even if we accept that earth does no work and spends no energy in making the moon orbit around it,By newton's law any body which accelerates needs force and since the moon keeps accelerating all the time(changing its direction of movement)where does moon gets this force continuously for such a long time.


How to calculate error when $\sigma=0$ in a test sample?

A test has probability $P_f$ of failure where it is expected that $.0001 <P_f < .01$.   Given $N$ test samples where all tests succeed and there were no failures (thus $\sigma=0$), what is the best way to estimate the approximate value of $P_f$  assuming that is nonzero? What would be the most appropriate method to calculate error bars for this test?


Notation and the name choice for meet and join (in order theory)

I have two simple questions:   From where do the names  come from? I don't see any intuition between those names in context of order theory. From where does the notation come? I have to admit, I always had an impression that notation we use is somewhat backwards... just take the look at the picture at the wikipedia!    I used this notation a lot of times and I have to admit that often I have to stop for a minute and convince myself that I'm indeed using it right. I'm hoping that learning a bit about origin and context of name choice and notation will make it easier.


How to save a figure produced by tikz save/export as JPG/PNG file

I have created various plots using the pgfplots package for my thesis. Now I would export them in jpg or png format. Does it exist a way to achieve this purpose?


The difference that quotation marks make in find command

When I have a nested directory find . -name "*.py" -print command gives me all the python scripts beneath current directory. However, find . -name *.py -print returns only the python scrips in current directory.   Is this expected behavior? What makes this difference? I use Mac OS X 10.7.


My 5 year- old daughter is constantly defiant!

My 5-year old daughter is very defiant.  It started getting bad about 6 months ago. She doesn't do what she is told, and any time she hears the word "no" she throws terrible, dramatic fits, screaming ridiculously loud, and in some cases hitting.  She refuses to make eye contact when I warn her to stop doing something even when I am down at her eye level and it takes multiple orders to finally get her to look at me. She constantly tells me no.  I feel like I constantly tell her no and that she feels this gives her the right to tell her father and I no.  I have tried time outs which are not effective at all; she only throws a fit the whole time, never seeming to run out of wind. Spankings are only effective until the shock of the action itself wears off and then she returns to the same behavior.  My husband and I recently took away ALL of her toys/ possessions being she is a pretty materialistic child (she loves getting toys and always wants something new). We told her that if she was good and listened and stopped telling us no and throwing fits, that after three days we would let her choose three boxes of toys to bring back in her room. This worked but as soon as she got those three boxes unpacked, we packed them back up because she went right back to the no's and fit-throwing within a few hours.  I am mainly the one disciplining her and I feel she is definitely the most defiant with me. I believe in explaining to her why things are not OK and why I tell her no, but I really don't feel it helps and I never feel as if she listens to what I tell her.  I am at my wits' end and feel like a failure of a mother. She is my first and only child, and the only grandchild on both sides of our family. She is an angel at school but home is completely different.  I need help figuring this out but nobody I talk to really has any advice for me. I am at the point where I am wondering if she or I need counseling because I feel out of options.


How to show countability of $\omega^\omega$ or $\epsilon_0$ in ZF?

I know that with choice, the countable union of countable sets is countable, making $\omega^\omega$ and $\epsilon_0$ both countable. Can we show this without choice? E.g. in the case that $\omega_1$ is a countable union of countable sets.


Efficiently select beginning and end of multiple contiguous ranges in Postgresql query

I've got about a billion rows of data in a table with a name and an integer in the range 1-288.  For a given name, every int is unique, and not every possible integer in the range is present--so there are gaps.  This query generates an example case:  --what I have: SELECT * FROM ( VALUES ('foo', 2),               ('foo', 3),               ('foo', 4),               ('foo', 10),               ('foo', 11),               ('foo', 13),               ('bar', 1),               ('bar', 2),               ('bar', 3)      ) AS baz ("name", "int")   I'd like to generate a lookup table with a row for each name and sequence of contiguous integers.  Each such row would contain:  name   --  the value of the name column start  --  the first integer in the contiguous sequence end    --  the final value in the contiguous sequence span   --  end - start + 1  This query generates example output for the above example:  --what I need: SELECT *  FROM ( VALUES ('foo', 2, 4, 3),               ('foo', 10, 11, 2),               ('foo', 13, 13, 1),               ('bar', 1, 3, 3)      ) AS contiguous_ranges ("name", "start", "end", span)   Because I have so many rows, more efficient is better.  That said, I only have to run this query once, so it isn't an absolute requirement.  Thanks in advance!  Edit:  I should add that PL/pgSQL solutions are welcome (please explain any Fancy Tricks--I'm still new to PL/pgSQL).


How can I install Citrix Receiver on Ubuntu 13.04?


I have a Lenovo Thinkpad 11e with the Celeron N2940 CPU and upgraded to 8GB of memory. I recently installed Ubuntu 16.04 (first time Linux) and found my system didn't run so well. So I tried Xubuntu, and then Lubuntu, and they all gave me problems (freezing). So I installed Linux Mint and again I experienced the freezing.   This happens randomly, there is no specific culprit to cause it to freeze. It has happened during videos, web browsing, typing, etc. Also, I do not think it is faulty RAM because the system runs Windows 10 perfectly fine. And with many more resources in use as well.


What is the value for $\lim_{x\to\infty} \frac{\sin x}{x}$?

What is the value for $\lim \limits _{x\to\infty} \frac{\sin x} x$?   I solved it by expanding $\sin x$ as  $$\sin x = x - \frac {x^3} {3!} \dotsc$$  So $\lim \limits _{x\to\infty} \frac {\sin x} x = 1 -\infty = - \infty$,  but the answer is $0$. Why? What I am doing wrong?


Is there any way to drop 230V AC  to 200 V AC by using resistor? I want to drop voltage before applying to a 12 0 12V 500mA transformer. If yes what will be its rating?


How to put one symbol that spawns several itemized lines in Beamer Presentation?

In Beamer presentation I have itemized block:  \begin{itemize}     \item object     \item type     \item action \end{itemize}   I was wondering if I could put one symbol - } that will spawn to several lines and then write one description after it. something like this:    I was looking for it but was not able to find anything similar. So any suggestion would be helpful.


Is there any notable differences with the Adult Editions of Harry Potter?

So while I was going through my email, there was an email from Supernova about selling "Harry Potter Series Adult Editions in Hardcover". Below is the image from the email, with the Harry Potter ad on the left.    I am wondering if there is any noticeable difference between these versions of the series and the original versions?