Maximum value of $\sin A+\sin B+\sin C$?

What is the maximum value of $\sin A+\sin B+\sin C$ in a triangle $ABC$. My book says its $3\sqrt3/2$ but I have no idea how to prove it.   I can see that if $A=B=C=\frac\pi3$ then I get $\sin A+\sin B+\sin C=\frac{3\sqrt3}2$. And also  maximum is attained for $a=b=c$. But this does not give me any idea for the proof.  Can anyone help?


a = 'abcdef' Why is a[-1] == 'f', but a[0:-1] == 'abcde' ? I know I need to use a[0:] or a[0:len(a)], but I want to understand why the intuitive solution is (again) not the pythonic one.


Story with a blind hero who “hitch-hikes” into other people’s minds to see

I read a book as a teenager in the '70s, which had a short one-word title as I remember it, in which the hero is rendered blind at some point, but achieves his mission by 'hitch-hiking' into other heads and using their eyes, shifting from one to another as he nears his goal. This is all very vague, but it was a long time ago! Any clues as to what I'm talking about?


Continuous differentiability implies Lipschitz continuity

Here's a statement in Zygmund's Measure and Integral on page 17:     If $f$ has a continuous derivative on $[a,b]$, then (by the mean-value theorem) $f$ satisfies a Lipschitz condition on $[a,b]$.   This does not seem obvious to me. How can I show it?  Also, what does a continuous derivative imply? Can we conclude the function is differentiable? If so, how can I prove it?


Why does the curl of a function provide this particular amount of information?

In a classical electrodynamics textbook (Griffiths), it is mentioned that even though the electric field function, $E:\mathbb{R}^{3}\rightarrow \mathbb{R}^{3}$, is a (3D) vector valued function, the amount of information needed to fully describe it is equivalent to the amount needed to describe a scalar valued function, and this is because it is the gradient of an electric potential function, $U:\mathbb{R}^{3}\rightarrow \mathbb{R}$ and so is completely determined by it. The author goes on to explains that this is so because $E$ has the property that its curl is zero evevrywhere, and this is what restricts the freedom in determining $E$ (and what enables it to be the gradient of a scalar function in the first place).     This is all fine (and fun), but I find myself unable to answer the question: why does the imposition of zero curl provide an amount of information exactly equivalent to two scalar-valued functions (no more, no less)?   An example of the sort of reasoning that leads me to other conclusions: since zero curl is equivalent to equating three pairs of partial derivatives ($\partial E_{x}/\partial y = \partial E_{y}/\partial x$ and so on), leaving 6 out of 9 partial derivatives "free", it seems that "one third of the amount of information" required to describe $E$ has been taken up, as opposed "two thirds"... I am of course assuming here that the first order partial derivatives determine the behavior of the function (perhaps up to a constant as in the 1D case?), and that these partial derivatives are independent of each other and thus provide equal amounts of information. Is either of these assumptions wrong? Is my whole reasoning off?  Any insight into this question and a possible answer would be appreciated.  Edit: I am not asking why (or when) a vector field having zero curl is equivalent to it being a gradient of some scalar field. I am asking about the amount of information we get about a vector field when we determine its curl.


How to concentrate during conference talks where the quality of the presentation is poor?

I have read a lot of tips on how to give a good conference talk: know your audience, give context, don't talk too fast, give your talk a clear structure or story, minimize text on slides, etc.  However, more often than not, presentations I've been to break most of these tips (quickly flipping through walls of text and equations while droning on in monotone), and I find it very difficult to concentrate on the talks.    Any tips on how to pay better attention and be able to learn something from these types of presentations?


Accidentally deleted everything with GParted

I wanted to format my USB stick in GParted and didn't see that my Computer drive was selected, so I ended up with this:    I'm still logged in and everything is working right now.  So... Is this my last log in (& I can say farewell to the system) or is there a way to get things back?  (P.S.: I have a backup of important stuff.)


Possession with common and proper nouns in same sentence

She was in town for her brother’s, Brett’s, birthday. or She was in town for her brother, Brett’s, birthday. or She was in town for her brother’s, Brett’s, birthday. or ?


The term for misspellings that change the meaning of a sentence?

I am looking for the term that describes the use of a certain word in a sentence in place of the correct one; a word that happens to look very similar to the one actually needed, but has a different meaning, and that, in turn, causes a big change in the meaning.  A little example: convolution and convulsion.  I know there is a word for this because I've read about it in Wikipedia, but forgot the term.  EDIT: Thank you all! The term I was looking for was malapropism.


I think I am doing this all wrong... I keep getting a bunch of errors even when they are match.  function duck(n) {   const decimal = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];   const roman = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"];   let nn = n.split("");   for(let i = 0; i < nn.length; i ++) {     for(let j = 0; j < roman.length; j++) {       if(nn[i] !== roman[j]) {         console.log("errror")       }     }   } } duck("DCCVII");


Why didn't the Ministry just check their left arms to see if they were Death Eaters?

If the Dark Mark was branded on the left forearm of all the Death Eaters, then why didn't the Ministry just check their arms? That would prove if they were under the Imperious curse or not.


Are these type of answers considered self promoting?

has an unusually large amount of answers where he seems to almost always point to WPF Application Framework (WAF) - http://waf.codeplex.com  The questions have around a long time so I'm curious if this sort of "advertising" is somehow different than what I have seen discouraged.   A number of examples (not even the tip of the iceberg):                  Essentially the website is a collection of samples. And the format for his answers is something to the tune of "see more samples here", or "go here to see examples". Maybe his answer is on-topic. But with a large database of samples it essentially allows for a "closing sentence" where you can promote your website without repercussions, since the samples are relevant to the question. My comment in Razlebe's answer attempts to make this more clear.  EDIT: Found a great thread dealing with this:      Pekka, I think your heart is in the right place, but... This should   not be necessary. You're effectively setting up guidelines for   targeted advertising on SO - and there's already a system in place for   that. One or two self-promoting answers out of 100 might be called a   misunderstanding; 400+ is a blatant attempt to get around paying for   your ads, and deserves neither sympathy nor "clarification".   –  Shog9♦


When do I have to put 'a' before 'one' as a pronoun?

I wonder if there is a rule on that score. Judging from the examples below, it just looks as if you don't put a when one goes alone, and you have to use it when one goes with an adjective. Am I wrong?     We've run out of clean towels. - It's ok, I have a spare one.      I was looking for a clean towel but couldn't find one.      What towel would you like? - Just an ordinary one, I don't really   care.      Can I have a towel? - Go to the bathroom and take one.      Did you buy me a towel? - Yes, a big yellow one.


Is it possible to use variable in sed command in unix bash script

I trying to solve following problem. With great helps of others here, I can write and understand simple do loop in bash scripting.   Now I try to do this:  In "mein_directory" directory I need following first to  create let say 10 subdirectories, with name subdirectories1.... subdirectories10   then I need to copy file to each subdirectories,   and then I need to enter in to each subdirectories and change specific word in file that has been copy from main directory.   And this is my main problem at the moment, because I need to change a the specific word is actually a number and I need to change this number of an increment multibly by number of subdirectory   so my code looks like this:  #!/bin/bash increment=10  for i in {1..10}; do     mkdir subdirectory_$i; done   for d in */; do     cp FILE "$d"; done  for j in {1..10}; do     cd subdirectory_$j/     increment=increment*$j     sed -i 's/old_word old_digit/old_word old_digits+increment/g' CONTROL     cd ../; done   So let say the in file "FILE" in subdirectory_1  I need to change following  from  Paul 10 to Paul 20  And in subdirectory_2  from  Paul 10 to Paul 30  Please does anybody know how to around this?  Thanks a lot


JavaScript click handler not working as expected inside a for loop

I'm trying to learn JS and got an issue. I tried many things and googled but all in vain. Following piece of code doesn't work as expected. I should get value of i on click but it always returns 6. I'm pulling my hair out; please help. for (var i = 1; i < 6; i++) {      console.log(i);      $("#div" + i).click(         function() {             alert(i);         }     ); }


How to find the indefinite integral $\int \frac{dx}{1+x^{n}}$?

How to find the indefinite integral $$\int \frac{dx}{1+x^{n}}$$  where n is a positive integer?


Prevent Windows 10 from installing/updating a specific driver?

It seems that the recent Synaptics driver update for Synaptics SMBus TouchPad on Windows 10 (build 100049) somehow doesn't see my middle-button. Uninstalling, and installing an older driver for Windows 8.1 from the HP site (my machine is HP EliteBook 8570w) restores the middle button functionality.    Few days later, the driver updates itself again, and I lose the middle-button.  I realize I'm running unsupported software, but is it possible to prevent updating this particular driver, without either disabling updates altogether or preventing other drivers from updating?


How to Split one column in Excel into multiple columns of 55 rows

I have a movie list with over 1500 entries (A1-A1500), all alphabetized (Thanks to Excel) and I would like to split that into multiple columns of 55 rows each on a separate sheet if possible.  So A1-A55 from Sheet1 would go to A1-A55 on Sheet2, and A56-A110 would go to B1-B55 on Sheet2, so on and so on.  Each cell is an individual movie name and I would just like them to go from one long column to multiple columns with 55 rows in each.


Does the square root spit out a negative result?

I have being told all my life that $\sqrt{9}$ equals to $\pm3$. That all changed when I saw a video talks about it. It said that the square root does not spit out a negative number. I wanted to see if it's true, and if it is true, then why?  Logically, $(-3)(-3)$ equals to $+9$ too. Thanks in advance.


Automatically drop down volume when earphones plugged in?

In my old Dell laptop, running Windows 7, whenever I would plug an earphone in, the volume automatically drops down to what I have set in the past when the earphones were plugged in. The volume again goes back to the last set level when the earphones weren't plugged in after I unplug  the earphones.  This isn't happening with my new Acer laptop, running Windows 8. Is it a Windows 8 bug or does it have to do anything with the drivers?


Dual Boot Windows 8.1 and Ubuntu 14.04 no GRUB appearing going directly to WIndows

I was trying with my friend to Install Ubuntu 14.04 In Dual Boot Mode With Windows 8.1 UEFI in my new Toshiba laptop. The installation of Ubuntu was finished successfully. However when I rebooted (with secure boot disabled) it is not showing any GRUB menu and directly going to Windows. It is, I guess the similar situation to the following : . I tried to fix this problem exactly the same way by using Boot-repair. It finished with the following error message.  "An error occurred during the repair.  Please write on a paper the following URL: http://paste.ubuntu.com/8249722/  In case you still experience boot problem, indicate this URL to: boot.repair@gmail.com  You can now reboot your computer."   Switching off the fast startup did not help as someone advised on forum previously. Does anybody know what the problem is ? I would be very grateful for any advice.


hyperlink the whole citation call-out not only the year

I am using the following packages and if I cite something with \textcite or \parencite it only cross-referencing the year to the corresponding entry in the bibliography. I saw in some papers that they extended this up to the whole citation and not only to the year. how can i do this too? E.g. Muster and Mann () => but i want =>   \usepackage[bibstyle=authoryear-ibid,citestyle=authoryear, backend=bibtex8]{biblatex} \usepackage{hyperref} \usepackage{xcolor} \hypersetup{     colorlinks,     linkcolor={red!50!black},     citecolor={blue!50!black},     urlcolor={blue!80!black} }


Can I create a computer game based on the Pathfinder core rules?

I am sketching out my 2012 programming project, and Im planning to make a classic fantasy RPG game.  The world design, plots, characters and all that I can make, but being a avid tabletop role-player, I would love to use a stable and tested rpg system like Pathfinder, since its balanced and interesting.  Would there be a problem if I make a game (indie dev, but still planning on selling it) using the pathfinder license ? Do I have to purchase a license? And would I able to say that it's based on the Pathfinder ruleset, or should i keep that under wraps.  All big official D&D games boast with that they are official, so doesn't this mean that unofficial games can exist too ?  It's not because I wan't to jump the lowest fence, and all storylines and the game setting will be by my own hand. But I love the Pathfinder system and actually think it could use some publicity as well.  If not, I guess I could make a Pathfinder-like system, with a few measely differences... But I would rather not, since it would feel a bit of a rip...


If $a$ is divisible by $4$, then there exist int $b$ and $c$ such that $a = b^2 - c^2$

I want to prove this:  Prove that if $a \in \mathbb{Z}$ is divisible by $4$, then there exist $b$ and $c$ where $b,c \in \mathbb{Z}$ such that $a = b^2 - c^2$  I want to prove this directily:  $4\mid a $,  $a\in \mathbb{Z} \implies \exists b,c \in \mathbb{Z}, \quad$ s.t. $a=b^2-c^2$  Let $k\in \mathbb{Z}$. Then $4=a\cdot k$ and $k$ can divide $4$. Hence,  $\frac{4}{k} =b^2 - c^2 = (b-c)(b+c) \implies \dfrac{4}{k\cdot(b-c)} = b+c$  Is this proof correct?


Is there any way to 'copy' or 'export' Lubuntu to a USB-drive so I can use it on another PC without having to set it up ?


Determine a determinant is divisible by 23 or not

Consider the fact that $25875, 46552, 41354, 48691, 95818$ are all divisible by $23$. Use this fact to determine if \begin{vmatrix} 2 &5 &8 &7 &5 \\ 4 &6 &5 &5 &2 \\ 4 &1 &3 &5 &4 \\ 4 &8 &6 &9 &1 \\ 9 &5 &8 &1 &8 \end{vmatrix} is divisible by 23 or not, without directly evaluating the determinant.


Recently I downloaded blender 2.8 for the new real-time render engine, but then I found out that the shadow in the eevee is really unexpected. Just like shown above, the quality of the shadow is bad and the movement of the shadow is also strange when I move the object. The lamp is a sunlight, and the sphere and the plane are just preset meshes. Could you tell me what adjustment do I need to create a normal shadow?


Did the early universe violate the 2nd law of thermodynamics?

If the universe started out isotropic and homogenous and of all fundamental particles then how could there now be any concentration of energy anywhere?  If you say that nothing is really homogenous because of the grainy quantum nature then what about when it was all compressed in one Planck volume?  Is the universe allowed to do this because it emerged hot, essentially getting all its heat from nowhere?  All that heat dissipated into the CBR.  But nonetheless some things are hotter than others and we can do meaningful work now while in the beginning everything was the same state, temperature and particles.


Reading package lists ... Error!  E: Encountered a section with no Package: header  E: Problem with MergeList / var/lib/apt/lists/www.beerorkid.com_compiz_dists_dapper_main-amd64_binary-i386_Packages  E: Could not parse or open package lists or status file.   how to fix? Because of this, it open almost nothing  I try to do an update and...  E: Error with GPG : http://www.beerorkid.com dapper Release : The following signatures were invalid : NODATA 1 NODATA 2


What are the main differences between InnoDB and MyISAM?


ciao come faccio a fare un cd di ubuntu auto istallante con Brasero poi devo istallarlo in un pc con XP DOVE VORREI ISTALLARE UBUNTU E CANCELLARE TUTTO (XP COMPRESO) GRAZIE  Translation(using Google translate):  hello how do I make a CD of ubuntu istallante car with Brasero then I have to install it in a PC with XP where I want to install Ubuntu and delete all (including XP). Thanks!


How do I identify predatory and low quality journals? With Beall's List gone, how can I tell if a journal is spam?

. While the reasons for his doing this are not yet public, this is a real loss of a valuable service. Does anyone know of similar services available to the general public?  Edit:  is definitely relevant, but that approach is more appropriate for finding top journals rather than identifying bottom ones. I.e., following that method would probably exclude lots of valid, lower-tier journals. Are there any approaches to easily identifying a predatory publisher?


Recommendations for Stock Trading and Investment Applications?

I am looking for a good in-depth stocks or investment application. I have tried GRISM but it is lacking. There are others Ive found like JStock which uses java, Eclipse Trader which is not user friendly. Stock Market Eye looks interesting, but it is pricey. Can anyone recommend anything else out there? Thanks!


So I am trying to find the spectrum of square matrix A where A=[ 1  1......     1   1   1   ....    ... ... ... ....... ... 1 ]. I basically am trying to put a sparse matrix, not sure how to post it here. but basically the whole square matrix has 1s everywhere. So, I am not sure how to find the spectrum of A. I am not even sure what Spectrum means. I do now that matrix A is linearly dependent, and this the determinant would have to equal 0. When I computed the eigenvalues of A, I get 0 and 1. So, my question is what is Spectrum and how would you find the spectrum of A.


How do I use man pages to learn how to use commands?

While researching another problem, I ,  locate something | xargs -I {} bash -c "if [ -d "{}" ]; then echo {}; fi"   that I wanted to learn more about.  So I ran man xargs and get the following output:  XARGS(1)                    General Commands Manual                   XARGS(1)  NAME        xargs - build and execute command lines from standard input  SYNOPSIS        xargs  [-0prtx]  [-E  eof-str] [-e[eof-str]] [--eof[=eof-str]] [--null]        [-d delimiter] [--delimiter delimiter]  [-I  replace-str]  [-i[replace-        str]]    [--replace[=replace-str]]   [-l[max-lines]]   [-L   max-lines]        [--max-lines[=max-lines]] [-n max-args] [--max-args=max-args] [-s  max-        chars]  [--max-chars=max-chars]  [-P max-procs] [--max-procs=max-procs]        [--interactive]      [--verbose]      [--exit]      [--no-run-if-empty]        [--arg-file=file]   [--show-limits]   [--version]   [--help]   [command        [initial-arguments]]  DESCRIPTION        This manual page documents the GNU version of xargs...   I am trying to get better at using documentation to learn about Linux programs, but that "Synopsis" section is intimidating to new users.  It literally looks like gibberish compared to man locate or man free.  So far, I understand that square brackets mean optional and nested brackets mean options in optional.  But how am I supposed to induce a valid command with that?  I am not asking for help with xargs here.  I am looking for help interpreting a man page to understand complicated commands.  I want to stop making Google-indexed web blogs and personal help from others my first approach to learning Linux commands.


How to change python3 from python3.5 to python3.6

I have both python3.6 and python3.5 on ubuntu (zesty beta 2). I know that python calls python2.7. The problem is, when I call python3, it automatically starts python3.5 instead of python3.6.  Is there a better way to fix this than an alias?


I am trying to install i2p on my ARM-based board with Ubuntu-server 16.04(3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l armv7l armv7l GNU/Linux). But it says:  Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  i2p : Depends: libjbigi-jni but it is not installable E: Unable to correct problems, you have held broken packages.   Are there any equal package for ARM processors? How can I find it?


How to give Ubuntu 14.04 more disk space

My original OS was / is W7 and whenever I installed Ubuntu 14.04 LTS it gave me 17GB of space but now I want to expand it for certain applications.    I kinda am new to the whole disk and partitioning thing so GOOD help would be appreciated.  I also installed Ubuntu alongside W7.


When i need to upload a database to a hosting provider with a php based website, the only things i need to care about is :  1) SQL injection, i can skip this using magic_quotes and if magic quotes is not on, i add addslashes. 2)prevent user to upload malicious file to my website by setting a control, Both on which file extension (example just .jpg or jpeg) and which file type (image/jpg ecc).  Now it's just these the 2 main things i need to worry?  And: if i just make the administrator of the website be able to upload image or insert new article in database after he enter a  password, i need to prevent that 2 kind of attack? Or that area is safe after i encode my password with md5 on database?  Last: if i encode my password in MD5, when the user enter the password i need to encode it Before sending it with method POST?  EDIT:  For whoever downvote my question, the 2 attack i posted was just an example, so my question was wider, like, what i need to be informed on if i want to prevent attack to my website. Just to have something and go to look for it. In fact MOST tutorial on the net, specially in my native Language are outdated or bad.


Understanding a part of the proof of Cauchy's theorem in the abelian case

(Cauchy's theorem in the abelian case): If $G$ is a finite abelian group such that $p \ | \  |G|$, where $p$ is a prime, then $\exists g \in G$ such that $o(g) = p$.    Basically the part of the proof that I'm stuck on is the following. After choosing an $h \in G$ for which $h \neq 1_G$ and assuming $o(h) = l$, we form the subgroup $ H = \langle h \rangle$. We can then form the quotient group $G / H$ which has order $$|G/H| = \frac{|G|}{|H|} = \frac{|G|}{l}$$ by Lagrange's theorem. The next part of the proof says that $p$ divides $\frac{|G|}{l}$ because $p$ divided $|G|$, and I can't immediately see why this is the case.  What I think is that this part of the proof must be using some argument from elementary number theory, and I think that the theorem that's being referenced must be (similar to) the following conjecture of mine:     Conjecure: If $p$ is prime and $p \ | \ x$ and $\frac{x}{l} = m$ where $m, l \in \mathbb{Z}$ then $p \ | \ m$.   In trying to prove the above this is as far as I got.  Attempted Proof: Since $p | x$ there exists an $n \in \mathbb{Z}$ such that $pn =x$, Then $$\frac{x}{l } = m \implies \frac{pn}{l} = m \implies pn = ml$$ and since $p$ divides the left hand side of the above equation it follows that the right hand side of the equation must also be divisible by $p$. So $p|ml$ and since $p$ is prime $p|l$ or $p|m$. If $p|m$ we are done, if $p|l$ then...    And that's as far as I got. Is the above conjecture actually a theorem? If so is it the one being used in Cauchy's theorem and if so how could I finish proving the above conjecture?


I am unable to save APK's that I have purchased (actually paid for) through the Play store. Usually SaveAPK is able to save the APKs that I'm interested it, however this didn't work: it sais Copy failed. I also tried Astro File Manager, but every app that I purchased had a lock symbol on it, and it didn't allow me to back it up.  Next, I tried looking in /data/app, and I couldn't find the APK either. Any ideas where they could be? Maybe it's some sort of copy protection in 4.x+ which I haven't heard of previously.  I am running Cyanogenmod 10.1-20130714-NIGHTLY-i9300


I have plotted this distribution, representing the degree distribution of the amazon co-purchase network graph. Sadly, I do not know how to interpret this. Do you know which distribution this is?


Is there any option to change the contrast on Blender Render?

If I'm using Blender Render, and i want to render an Animation, before anything on the settings, can i set the contrast?


I need to make the transition smoother between the 2 different colored objects in my scene, somehow like one of the colors fades into the other one, while still keeping the line between them.


Every irreducible polynomial over $\mathbb F_p$ has a root in $\mathbb F_{p^{\deg f}}$

I found the following question in my Galois theory book:     Let $F$ be a field with $|F|=p^2$ for some prime $p$. Show that $a^2=5$ for some $a\in F$, and generalize this statement.   My supposed proof is this: Let $a$ be a root of $x^2-5$, and suppose it is not already in $\mathbb F_p$. Then $\mathbb F_p(a)$ is a degree $2$ extension and so by uniqueness of fields of a certain order, $F=\mathbb F_{p^2}=\mathbb F_p(a)$ . Q.E.D.  This seems to me like it is a bit too easy and we didn't really do any work, and if this were to work, then we can generalise it to     Let $|F|=p^n$, and suppose $f$ is an irreducible polynomial over $\mathbb F_p$ of degree $n$. Then it has a root in $F$.   To me this sounds a bit too good to be true, but since I'm relatively new to field theory I'm not too sure. Is this correct?


How to convert numerical value to words?

Hey anyone know about a function in C# that converts numerical value in to words Like If I give Input: 53904 Then the output should be: FIFTY THREE THOUSAND NINE HUNDRED FOUR ONLY


After I upgraded my notebook to ubuntu 12.04, I found that I can not save my power settings. Every time I set the screen brightness to 70%, it restored to 100% next time. I can't find a save button on the new power setting panel(I am sorry for I can not post a screenshot right now). Can anyone tell me how to save this setting? Thanks.


Sound Recorder does not show "record as" option

I am setting up a Lubuntu box to install in a local classroom where people are not super tech-savvy.  I need an audio recording application for them to record things using the microphone and save in a specific folder. I have chosen Sound Recorder because Audio Recorder and Audacity are too complicated.  I have one problem; the only option in the Record From field is Master and the Record As field where there should be file format options (.ogg, .wav, etc.) is blank with no options.  Can anybody tell me how to actually record sound using "Sound Recorder"?  when run from terminal, when I press the record button it shows:  (gnome-sound-recorder:1894): GStreamer-WARNING **: Element 'gconfaudiosource' already has parent


Can a creature with a natural walking speed of 0 ft. get up from being prone?

In a one-shot I recently played the players were fighting a homebrewed . It has a walking speed of 0 ft. and can teleport 80 ft. on its turn under some conditions. One of the players knocked the monster, over by using the shove action. On its turn, the monster was prone with a speed of 0 ft. It then used an ability to teleport away and appear upright again (Impossible Movement). Now there are three options on how to rule this situation:  The monster uses half of 0 ft., so still 0 ft., to get up from being prone and proceeds as normal The monster lifts the prone condition simply by teleporting The monster is prone, and can't get up anymore  I am asking about a general creature that has a walking speed of 0 ft., not explicitly about the Weeping Angel. According to the rules, which of this rulings (if any) would be correct?


How to find all JPG files on the file system when .jpg extension is not obligatory ?

First thing I noticed when switched from Windows to Linux was, that Linux has no strict naming convention and no obligatory file name extensions like .bmp, .jpg, .exe etc. Therefore I can not tell by the file name itself its file format.   If all JPEG files on my file system had the .jpg extension, I could simply find all JPEG files by:  find / -type f -name "*.jpg"   But if it is not the case I am clueless how to find all JPEG files.


What is the algorithm to calculate "hotness of questions" on SE sites

Can you tell me the algorithm for calculating hotness of questions on all SE sites?  Which factors are considered to calculate it?  Also if the code behind it is not of military level top secret which would leave me dead once I know it, you are welcomed to tell that too.


Three friends eat at a restaurant and finally ask for the bill. They pay the 75 dollars by dividing it equally (so they spend 25 dollars per person.)  The waiter takes the money to the owner, who, in a generous mood, offers a 5 dollar discount. But the waiter turns out to be morally suspect, so he pockets 2 dollars and divides the 3 dollars amongst the three customers equally.  So, in conclusion, the cost to each customer was 24 dollars.  Therefore total customer cost is 24x3 or 72 dollars. The waiter kept 2 dollars, bringing the total to 74, so where is the last dollar? I feel that some semantic trickery is at play here, but I can't find it...


Unable to add item to my sharepoint list

I try to add an item to my sharepoint list from a custom web part. Is there any mistake in my code?  [WebMethod]         public static string AjouterDemande()         {             SPList ListeDemandeConge = SPContext.Current.Site.RootWeb.Lists["DEMANDE CONGÉ"];             SPListItem ListItem = ListeDemandeConge.Items.Add();             ListItem["CODE"] = code;             ListItem["DEMANDEUR"] = Utilisateur.LoginName;             ListItem["DATE DEMANDE"] = DateTime.Today.Date;             ListItem["DATE FIN"] = EndDateD;             ListItem["DATE DEPART"] = StartDateD;             ListItem["DUREE"] = int.Parse(DayCount);             ListItem["PREMIER RESPONSABLE"] = Employe.FirstSuperior.LoginName;             ListItem["DEUXIEME RESPONSABLE"] = Employe.SecondSuperior.LoginName;             ListItem["PRESENCE PRES"] = Boolean.Parse(FirstRespPresent);             ListItem["SOLDE CONGE"] = Conge.SoldeAnneeConge;             ListItem["MOIS"] = int.Parse(StartDateTab[1]);             ListItem["ANNEE"] = int.Parse(StartDateTab[0]);             ListItem["JOURS APPROUVEES"] = 0;             ListItem.Update();             ListeDemandeConge.Update();             return "true";          }   When I use F10 to process debugging step by step and get to my listitem.update(), it went out without giving any error.


I quite like using full-screen apps on OSX Mavericks (Safari, iTunes, Mail, etc).  I'd like all apps that are capable of running full-screen to launch in full-screen mode automatically, instead of me having to press Ctrl-Cmd-F each time, is that possible?


Show that the Euler characteristic of a chain complex is equal to the Euler characteristic of its homology

Let $C_*$ be a chain complex such that each $C_i$ is a torsion-free, finite-range abelian group with $C_i=0$ for all $i<0$. Suppose that $C_i=0$ for all $i$ is large enough. The Euler characteristic of $C_*$ chain complex is defined as $$\chi(C_*)=\sum_{i\geq 0}(-1)^iRank(C_i)$$ Prove that $$\chi(C_*)=\sum_{i\geq 0}(-1)^iRank(H_i(C_*))$$  I have to prove that $\sum_{i\geq 0}(-1)^iRank(C_i)=\sum_{i\geq 0}(-1)^iRank(H_i(C_*))$, I think that one way to do this is by showing that $Rank(C_i)=Rank(H_i(C_*))$ but I do not know if this is true in general, in a nutshell, I want to show that the cardinality of the base of any $C_i$ is the same as the cardinality of the basis of the corresponding homology, how can I do this? Thank you


Custom search data to UILayout.prop_search

I need to create a searchable material dropdown that excludes grease pencil materials. However if I do it like this row.prop_search(item, "material_selector", bpy.data, "materials")  then all the materials in scene get included in material dropdown. How can I give custom search elements to prop_search method instead of generic bpy.data?


What is this "forbidden" icon in my systray?

The following is a systray applet icon that appeared in my Unity session after I upgraded to Ubuntu 16.10. Its menu is tall, narrow and empty. What is it?


Dell laptops - Disabeling Dell Intelligent Display (auto screen dimming)

I have a Dell Precision M2800, which comes with the usual Intel 4600 as well as an AMD FirePro W4170M GPUs. The OS is Win 8.1 with the latest drivers for everything. Bios is fully updated (A06).  Dell has a "feature" called Dell Intelligent Display, which dims the screen according to the brightness of the displayed data. Not to be confused with the Adaptive Brightness feature of Windows.  This feature is annoying as hell. Everytime I switch tabs on my browser, or switch an IDE, The screen dims or brightness.   The way to turn this off . But alas, the Precision line comes with an app called "Dell Command | Power Manager", and this feature is not present there. The Battery Meter app is not compatible with my laptop.  I see a lot of woe around this feature expressed over the Interwebs, but no official answer from Dell.  Anyone has any experience with this?  P.S. One of Dell's laptops strongest sell points is their "Pro support". Well - it's a joke. The 24hrz immediate response is ofcourse ignored, and both the Morocan and Greece call centers are not staffed by knowledgable, or even caring people. Beware!  EDIT 1: @BreakThrough suggested . Well, my Intel control panel looks like this:


Search matching multiple distinct senders

How does one perform a search such that it matches multiple distinct senders in the sense that one may match emails from different senders. I.e. if you have received emails from the senders  alice@foo.com   and   bob@bar.com   what query would yield all emails from both alice and bob, regardless of whether or not they are joint recipients on an email or distinct senders?


PowerShell: Trying To Format USB Drive, Unable to Initialize as disk already Initialized, but unable to New-Partition as not Initialized

I'm trying to format/clean a usb drive that is not open-able. Ive tried multiple processes in Powershell and DiskPart, my main issued boil down to, be unable to do anything as the there is 'no media in the device' and also; unable to Clear, and Initialize the drive, as is is already initialized, but trying to create a new partition, promts me with the message that the drive needs to be initialized first.. Any one got any idea what I can do to get the USB drive cleared and cleaned up? This is not a isolated problem to this one USB drive, I have multiple (4) old USB drives from work, that im trying to do this to, but all have the same problem. HERE is an image as to all the code I have used and executed, and all my errors that ive come across


Find the value of $\large i^{i^{.^{.^.}}}$ ?  How should we start to solve it ?  Also you can see  if it helps.  Thanks


React: Parsing error in my functional component

I installed babel-eslint and added "parser": "babel-eslint" but I'm still getting parsing error.  My package.json is:  {   "name": "listassign",   "version": "0.1.0",   "private": true,   "dependencies": {     "bootstrap": "^4.4.1",     "react": "^16.12.0",     "react-dom": "^16.12.0",     "react-scripts": "3.2.0"   },   "scripts": {     "start": "react-scripts start",     "build": "react-scripts build",     "test": "react-scripts test",     "eject": "react-scripts eject"   },   "eslintConfig": {      "parser": "babel-eslint",     "extends": "react-app"   },   "browserslist": {     "production": [       ">0.2%",       "not dead",       "not op_mini all"     ],     "development": [       "last 1 chrome version",       "last 1 firefox version",       "last 1 safari version"     ]   },   "devDependencies": {     "babel-eslint": "^10.0.3"   },   "extends": [     "standard",     "standard-react" ]  }   I'm getting error in file:  function CharComponent(props){      let displayList = [];      function delete(e){         let index = e.target.id;         displayList.slice(index,1);     }   Error is:Parsing error: Unexpected keyword 'delete'  I did  but no help.


I have a directory with a few hundred files (real files, no symlinks, no subdirectories).  When I use ls -la and sum up the sizes in Excel I get 287190 bytes(?).  When I use du -b or du --apparent-size --block-size=1 I get 422358 bytes(?).  I thought those two things mean the same thing, why the difference?


How can I track down a destructive virus?

A family member yesterday asked me to look at their work laptop (they're self-employed) since the memory usage is almost at 100% after an hour of it not being used (6GB RAM on idle shouldn't be at 100% utilization after an hour!).  I found:   A duplicate java.exe is running (I uninstalled Java  when I noticed this, still runs even on reboot) with the memory usage increasing by around 50MB each minute. A RAVBg64.exe was running in the background with a memory usage of ~500MB (suspected virus disguised as Realtek Control Panel) Virus scan via Parted Magic's ClamAV revealed two -infected HP printer driver installation packages (removed easily via Parted Magic's file manager) Virus disabled internet access via any wi-fi adapters (Windows claims that it can't see any wi-fi networks [verified adapter is enabled], but my own netbook finds the networks fine), but connecting via LAN works... An Ag_.exe runs in the background with a CPU usage of around 70% (could be a botnet bitcoin miner?), no luck in tracking this file down since Task Manager doesn't let me open the file location of the process and any searches of the hard drive fail to find it.   This laptop has caught a bad infection (probably the root cause is the Trojan.Bifrose), and I haven't had any luck in removing anything (apart from the Trojan.Bifrose detection and RAVBg64.exe).  Unfortunately the Trojan.Bifrose apparently has the ability to attach itself to Windows' core files (registry, and various executables inside System32), so it's probably likely that the infection is still present.  Rather than attempt to remove the infection, is it best to back-up the important business files (there isn't many, most of the files are on their PC, of which has no such issues), and then wipe & reinstall Windows?  I see no better way; I could be spending hours removing the infection whilst it continues duplicating itself..  Any input in this is appreciated.


Functional Analysis: The rank of an operator detemines if it's a compact operator.

I have a problem were I have to prove the following statement:  Let $X$ and $Y$ be Bannach spaces. If $A$ is a Linear Bounded operator between $A:X  \rightarrow Y$ so that   $$Range(A)\subset Range(K)$$   with $K$ a compact operator from $X$ to $Y$ then $A$ is compact.  But I have no clue how to start and the statement Itself sounds pretty incredible anyone can give a hand?


Ubuntu scalable nginx mongodb mongdb memcached server configuration

I have been building a PHP web application using the following techniques in the past 2 months:   PHP 5.3.4 MongoDB MySql   I just got my dedicated server running Ubuntu 10.4 LTS x64 with the following hardware:   100Mbit networking speed 120GB SSD  16GB RAM @ 1600 MHZ AMD FX 6100 6 core CPU @ 1400 MHZ each core (3600 MHz total) Linux Kernel 2.6.33 (to support SSD trim) Ubuntu 10.4 LTS x64   The static content for the web application is (uncompressed, unminified) 200kb total. The PHP web application required scalability, it can get a lot of traffic in the start.  Now I have a few questions:   What should I configure in terms of DDOS protection, I got no competitors, the project is  underground and unknown, so what should I consider? What would help me with this since there are so many things around like use a Nginx mod or use Iptables? And how can I configure these? How can I calculate the bandwidth, and how much traffic the server can handle?


Signalizing/tagging INSECURE answers (and questions)

It might be very useful to give users the possibility to mark/tag/signalize answers (and questions?) as "insecure", eventually even with a short notice why (SQL injection, outdated code that might create security risks, etc.). I think SO has a natural responsibility NOT to promote insecure code.  Especially highly upvoted php/mysql-questions/answers, some of them even wikis, are using critical/insecure/outdated code/tutorial links.  Note: This is not about outdated code, it's more about potential security risks.


I have never played a role-playing game before. How do I start?

I'm really interested in playing role-playing games like D&D, but I don't know how to get into it. I have very few friends, and only 2 of them would probably even be interested in playing with me. (Also, one is moving away in the summer, and me and my other friend aren't really even that close.) How do I get started? Oh, and just in case this matters for some reason, I'm a 13 year old American boy.


Suppose I have a list as the following:  a = ['111', 213, 74, '99', 't', '88', '-74', -74]   The list contains number-like string, number and string of the data types.  I consider number-like string can convert number, so it's can see as a number.  This is my method:  a = ['111', 213, 74, '99', 't', '88', '-74', -74]  def detect(list_):     for element in list_:         try:             int(element)         except ValueError:             return False     return True  print detect(a)   But it looks so lengthy and unreadable, so anyone has better method to detect it?  Additionally, my list contains negative number and negative-number-like string, how do I do?


How do I hide the icons on the top panel?

Hey guys,  I just installed Ubuntu 13.10 on my Asus U46E-BAL6 laptop.  There are a few icons in the tray up top that I dont use, and I was wondering how I could remove them.  For example, I never need to use the mail icon or keyboard icon.  Any ideas?


is there a way to escape a process in bash with out quitting it?

For example, I type sudo apt-get update and then a long list of stuff will come up for minutes..  if I want to escape from seeing this tiresome updating and take control of bash command line again(without quitting the original command),  is there a hotkey or something like that to do it?


What is the benefit of a vari-angle LCD monitor on a camera?

Nikon D5100 (which I am thinking to buy) has a vari-angle LCD monitor. What benefit does it add? Can you take your own self-portrait snaps like this? Is it practical or is it a non-cashable worth-nothing feature?


Full wave rectifier capacitance calculation

For making 100 amperes, 50 volts full wave rectifier, how do I calculate the circuit capacitance to avoid the ripple voltage? I mean which size of capacitor should I use?


Finding the MLE of the Pareto distribution and distributions

The Pareto distribution $P(a,c)$, with positive parameters $a$ and $c$, has density function $$ p(x;a,c) = \frac{ac^a}{x^{a+1}} $$ for $x \geq c$. Then, if $X_1, \dots, X_n$ is a random sample from the above distribution, we are asked to find the MLEs of $a$ and $c$. The likelihood function is $$\mathcal{L}(a,c;x_1,\dots,x_n) = \prod_{i=1}^n \frac{ac^a}{x_i^{a+1}} = a^n c^{an} \prod_{i=1}^n x_i^{-(a+1)},$$ and so, the log-likelihood is $$ \log\mathcal{L} = n \log a + an \log c - (a+1)\sum_{i=1}^n \log x_i. $$ This is a strictly increasing function in $c$, so we see that the MLE for $c$ is $$ \hat{c} = \min_i x_i = x_{(1)}. $$ Taking partial with respect to $a$ gives us that $$ \frac{\partial \log\mathcal{L}}{\partial a} = \frac{n}{a} + n\log c - \sum_{i=1}^n \log x_i. $$ Note that the second partial is always negative. Hence, setting the above expression to zero and solving for $a$ gives us the MLE for $a$: $$ \hat{a} = \frac{n}{\sum x_i - n \log \hat{c}} = \frac{n}{\sum_{i=1}^n \left(x_i/x_{(1)}\right)}. $$  Now, we are asked to find the distribution of $\hat{c}$ or the distribution of $2na/\hat{a}$. Finding the distribution of $\hat{c}$ was pretty straightforward. However, I have no idea how to find the distribution of $2na/\hat{a}$: $$ P\left( \frac{2na}{\hat{a}} \leq x \right) = P \left( 2a\sum \log\left(\frac{x_i}{x_{(1)}} \right) \right) = \cdots $$ and I have no idea where to go from here nor am I sure of my work this far.


Schengen visa. What qualifies as main destination?

I'm planning a multi city trip soon. I'll be applying with the German embassy as I had planned on going to Berlin for 3 days before going to Prague, Vienna, and Budapest for 2-3 days each afterwards.   My question is, it is working out more conveniently for me to instead make Germany my last destination, rendering the first entry clause. And I can only apply with the German consulate as they are the only ones I can find an appointment for in time. Would staying in Germany for 4 days afterwards be enough to classify it as a main destination (as opposed to 2-3 days in the other cities)?


python - convert string '2015-04-11 21:23:39+0530' to datetime

I know how to do it using strptime, but how do I account for +0530  d = '2015-04-11 21:23:39+0530' d = datetime.strptime(d,'%Y-%m-%d %H:%M:%S')   Note Please dont suggest to slice 0530 off.


How to speed up Blender Video Sequence Editor rendering?

When rendering a simple video in FullHD right now (one video track, one audio track), the encoding process takes about one second per frame. Let's say I'd like to render a 5-minute clip in 24fps:  5*60*24 = 7200 frames  1s per frame = 7200/60 = 120 minutes of rendering time.  It seems very slow to me. Is there a way to speed up this process? Mabye use different codec? Or maybe I should render to RAW file and then encode it using an external tool? Right now I'm using x.264 coded with default settings.


Who decides on which versions apt-get installs?

I'm not clear on how packages are included into the repos that apt-get queries.  For example, redshift is at v1.11, but the one that is installed via apt-get install redshift is 1.10.  Why is it using a verion that is over a year old, and how can I help to include the latest version?


When should I say "AM" / "PM" and when should I say "o'clock"?

When I am asked "what time is it", when should I say "It is 1 o'clock" and when I should say "It is 1 AM /PM"? and in addition, could it be that both of them can be said continuously (It is 1 AM / PM o'clock)?


When zoomed in, I see red, blue and white pixels. What is the cause of this?

I was experimenting with the bulb mode of my Canon EOS 600D camera. I realised, in the image there were these red, blue and white pixels that are also seen in the screenshot. What is the reason that I am seeing these pixels?    Click through for larger image


In English , we use " both of " , " both " for two things   for instance , if you are going out for a meal , there are two possible restaurants, you Say :   both restaurants are very good   Or,   both of the restaurants are very good   what is the difference?


Why Explicitly Mention Type During malloc()

Here's a code snippet that runs ok: struct person *ptr; ptr = malloc(n * sizeof(struct person));  But on many C websites the second line is written as ptr = (struct person*) malloc(n * sizeof(struct person));  My questions are: Is it wrong to NOT explicitly mention the type during such malloc() statements? Why should I explicitly mention the type during such statements?


I have HP Pavilion 15-AB031tx Laptop, which has Intel I5 5200U 5th Generation Processor, Is it possible to upgrade 5th Generation to 6th Generation?


After Thor's banishment in the first movie we find out how Odin took pity on a frost giant baby who turns out to be Loki. It is also found out he is the son of Laufey who is the ruler of frost giants. Assuming he is a pure breed Frost Giant why isn't his son's skin blue. We see it briefly blue when Odin lifts Loki as a infant and then when Loki lifts the Casket of Ancient Winters. So why doesn't Loki share the color of his race and that of Asgard.


Problem:  Let $x^2+mx+n$ and $x^2+mx-n$ give integer roots where $(m,n)$ are integers. Show that $n$ is divisible by $6$  My attempt:  Since the roots are integers then the discriminants of both the equations should be perfect squares.   Let $a=\sqrt{m^2-4n}$ and $b=\sqrt{m^2+4n}$, then $(ab)^2=m^4-16n^2$ where $(a,b,m,n)$ are all integers. I am stuck here...


Mount a Win8 Phone as Share on Ubuntu 12.10

I'm trying to mount a Nokia 620 phone running Win8 on my Ubuntu 12.10 box. I can see the device using lsusb, but from what I can see it's not listed under sudo blkid. I'm trying to follow the instructions here:   Has anyone done this successfully?  Just for clarity, I want to be able to copy files from my computer onto the phone.  I've tried using a Win8 image on Virtualbox - no luck. I have all USB devices enabled for the virtual machine.


How to convert Bedrock texture pack to Java Edition Minecraft

I'm trying to use a texture pack designed for the Bedrock Edition of Minecraft, on Java Edition. I looked at the texture names for a Java Edition texture pack and compared those to the names of the Bedrock Edition texture names, and they aren't the same. A lot of the texture names are flipped, such as:   Jungle Log (Java = jungle_log.png) (Bedrock = log_jungle.png)   Most of the texture names are flipped, like the Jungle Log (and all of the other log types) and there are some .json files that are different and/or not there.  Trying to open the Bedrock texture pack would result in some animated blocks not being animated, other blocks play the wrong sound (or no sound) when broken, if OptiFine is in the mix, the skybox could be missing, which I am pretty sure would result in an always black sky, along with no sun and moon textures.  Any help in finding a program or site that can do this would be helpful, because I tried doing it manually, but almost every texture is different.  Any help is appreciated!


Expected waiting time to cross the roads

Given cars crossing certain place on a highway follows a Poisson process with rate $\lambda = 3$ mins. David waits to cross the road, but he only crosses if he sees no cars coming by in the next 30 seconds. Find his expected waiting time (hint: condition on the time of the first car).  My attempt: Let $X =$ waiting time of David before he crosses the street (so, $X\geq \frac{1}{2}$ mins), $Y = $ time that the 1st car took to cross the point where David waits (in mins), so $Y$ follows P.P$(3)$  We have: $E(X) = E(X|Y<\frac{1}{2})P(Y<\frac{1}{2}) + E(X|Y\geq \frac{1}{2})P(Y\geq \frac{1}{2})$. The 2nd term is actually just $\frac{1}{2}\ P(N(\frac{1}{2}) = 0) = \frac{1}{2}e^{\frac{-3}{2}},$ because $X$ David would cross the road immediately after waiting for $30$ seconds without seeing any cars.   I'm stucked here because I could not find a way to compute the first term (a more difficult case). Could someone please help me on how to compute this first term?


CPU Speed stuck at 0.78 GHz, How do I increase it to its base speed of 2.30 GHz?

My 1yr old laptop, HP Pavilion 15 has it's CPU, Intel i5-8300H stuck at 0.78 GHz whenever it's plugged and charging, and the moment I remove the charger plug or switch it off, it increases suddenly and keep fluctuating freely, with good utilisation percentage more than 1-2GHz or more as I experience Thermal Throttling. I tried sneaking into the BIOS to see if I can do anything, but found nothing. I also downloaded Intel Extreme Tuning Utility (XTU) but couldn't control it. My question is how do I increase the speed to say atleast 2 GHz (fixed, not fluctuating) when it's charging, irrespective of getting thermal throttle, and also maybe even control the fan speed if it does get hot?


how do i center the limits for multiple sum like what we usually  do for integral ,,, in other way, is there command like \idotsint for sum?  for example:  \sum\cdots\sum\limits_{n_1^2+n_2^2+...+n_N^2<\lambda}


Evaluate the following infinite sum using a similar convergent one

$$\sum_{n=1}^\infty \frac{3n^2-4n+2}{n!}$$  I have tried rewriting: $$\frac{3n^2-4n+2}{n!} = \frac{2}{n!} - \frac{1}{(n-1)!} + \frac{3}{(n-2)!}$$  And using: $$\sum_{n=0}^\infty \frac{1}{n!} = e$$ I am also aware of the , but I'm not sure how to apply it here where $N$ is a negative number. I can't seem to put these all together since all my calculations get me nowhere.  Will appreciate any help/hints calculating the second and third term of the sum!  Edit: I've also tried index shifting on the second and third sums, but I end up with the sum starting at $-1$ and I'm unsure how to proceed with a factorial.


When does `[::]` or `0.0.0.0` mean this network and when this host?

Tanenbaum's Computer Networks says     The IP address 0.0.0.0, the lowest address, is used by hosts when they   are being booted. It means ‘‘this network’’ or ‘‘this host.’’    [::]   is IPv6 version of IPv4's 0.0.0.0.  Questions:  1) When does [::]  or 0.0.0.0 mean this network and when this host?  2) When it means this host, does it mean all the network interfaces on this host, or just one specified network interface on this host?  3) Why does [::]   allow me to access the mysql server from other hosts in the same LAN?   Does it mean this network or this host here? Why is  [::] used by mysql server, although the host is not in the case "when they are being booted"?     $ sudo netstat -ap | grep mysql    tcp6       0      0 [::]:mysql              [::]:*                  LISTEN      23683/mysqld            tcp6       0      0 [::]:33060              [::]:*                  LISTEN      23683/mysqld            unix  2      [ ACC ]     STREAM     LISTENING     1169294  23683/mysqld         /var/run/mysqld/mysqld.sock    unix  2      [ ACC ]     STREAM     LISTENING     1169513  23683/mysqld         /var/run/mysqld/mysqlx.sock    unix  2      [ ]         DGRAM                    1169211  23683/mysqld   Thanks.


Fundamental theorem of arithmetic for polynomials

Every polynomial $f(x) \in K[x]$  can be uniquely written as             \begin{equation}        f(x) = \alpha (p_1(x))^{a_1} \cdot (p_2(x))^{a_2} \cdot ... \cdot (p_k(x))^{a_k},       \end{equation}             where $\alpha \in K, a_i \in \mathbb{N}$, with $p_i(x)$ irreducible for all $1 \leq i < k$.  Proof: I could prove the decomposition using induction on the degree of polynomial $f(x)$ but couldn't think of a way to prove uniqueness. Please help me.


I wrote a code for detecting cycle in graph. The input is given such that there can be several lines with each line of form a # b . It denotes that there is an edge from a to b. My code worked and then I played with it a bit and came across a problem with line a and line c and with line b and line d. When I combine line a and line c and write the declaration and instantiation together as "ArrayList[]" arr=new ArrayList[99999] , similarly line b and line d,then everything is working fine(Assuming I make appropriate changes like passing arr and visited as arguments between DFS and DFSvisit). But If I write it as I have written below then I am getting Null pointer exception. What is the reason for this? class Test {     ArrayList<Integer>[] arr;                // line a     boolean[] visited;                       // line b     public static void main (String[] args) throws java.lang.Exception {         Test obj=new Test();         obj.DFS();     }      public void DFS() {         arr=new ArrayList[99999];            // line c         visited=new boolean[99999];          // line d               for(int i=0;i<99999;i++) {                           arr[i]=new ArrayList<>();    //instantiate each element of "array of Arraylists"         }              boolean[] flag=new boolean[99999];       //a flag array to identify which elements of array are valid elements              Scanner sc=new Scanner(System.in);              while(sc.hasNext()) {             int a=sc.nextInt();       //take first number             sc.next();                //throw away "#" token             int b=sc.nextInt();       //take second number             flag[a]=true;             //means arr[a] is valid             arr[a].add(b);            //add b to adjaceny list of arr[a]         }                   Test obj=new Test();         for(int i=0;i<99999 ;i++) {             if (flag[i]) {              //call DFSvisit only if arr[i] is valid                 obj.DFSvisit(i);             }         }              System.out.println("Cycle does not exist");     }      void DFSvisit(int i) {              // basic DFS implementation         visited[i] = true;         for (int j=0;j<arr[i].size();) {             if (visited[arr[i].get(j)]==true) {                 System.out.println("Cycle exists");                 System.exit(0);             } else {                 DFSvisit(arr[i].get(j));             }                      j++;         }         visited[i] = false;     } }  Error: Exception in thread "main" java.lang.NullPointerException at test.Test.DFSvisit(Test.java:59) at test.Test.DFS(Test.java:49) at test.Test.main(Test.java:18)  P.S. I know that If I try to use reference variable before it is initialised then I will get Null Pointer Exception. But here I am not able to see anywhere where that is happening. I have declared arr and visited as a member of class(outside every method). I am then initialising them after moving from main method to DFS method. In between I haven't tried to use either arr or visited but I am getting NPE anyway. Why is that?


Can anyone help me out finding the number of solutions i.e. $(x,y,z)$ for the inequality $x+y+z\leq n$ where, $n$ is a constant positive value and $x,y,z$ are non-negative?


The series $\sum a_n$ is conditionally convergent. Prove that the series $\sum n^2 a_n$ is divergent.

Ratio and root tests won't help. And I can't use the comparison test because $ |a_n| $ is not necessarily smaller than $ n^2a_n $.   Can I use limits? We know:    $\lim\limits_{n \to \infty} a_n = 0 $ $\lim\limits_{n \to \infty} |a_n| \ne 0 $   And we need to prove:    $\lim\limits_{n \to \infty} n^2a_n \ne 0 $   Any ideas/hints?


Changing the label of Change Password Form

How to change the form label from Password to New Password and Confirm password to New Confirm password on THEME_form_user_form_alter(without changing any twig files)? I had tried kint($form['account']['pass']) to see any possible way, no clue...  Current Change Password Form  Current password  |||||||||||||||||  Password (to New Password)  |||||||||||||||||  Confirm password (to New Confirm password)  |||||||||||||||||  function THEME_form_user_form_alter(&$form, $form_state) {   kint($form['account']); }   There are no #title element on pass field.


How to schedule a shell script using crontab

I want to schedule a shell script to run everyday excluding sunday at 7:30 pm using crontab can you please help


How can I find the CPU resource utilization of a process and all its children

If I have a process that spawns child processes, is there a good way to get a single number representing the combined CPU use of that process and its children?  i.e is there a simple shell command available, or perhaps some info in /proc?  Target OS is either Centos or Ubuntu.


The question is:     When $f(x+1)-f(x)=f'(x)$, what are the solutions for $f(x)$?   The most obvious solution is a linear function of the form $f(x)=ax+b$. Is this the only solution?  Edit  I should add that $f:\mathbb R\to\mathbb R$ to the question.


On constant-coefficient linear homogenous ODE

I haven't done any "serious" math in a while and I wanted to get back to it via differential equations. I remember very well the different methods to solve various sorts of linear ODEs, but I can't remember or even find online any information about the proofs of these methods. I'm starting with constant-coefficient linear homogenous ODEs with no Cauchy or boundary condition, and I remember that the solution space of these equations has the same dimensionality as the degree of the ODE. I remember that linear algebra is involved, and I have looked around on the internet for things about differential operators, to no avail (paper didn't get me very far either).  tl;dr : any hints for proving that the solution space of an nth degree constant-coefficient linear homogenous ODE has dimensionality n ? I know it's at least n because I can show n linearly independent solutions (the well-known exponentials).  EDIT : it has been mentionned that this question is similar to . Where I think they differ, in addition to pertaining to different specialisations of ODEs, is that this question asks for an explanation, while I'm looking for a proof. I know the result is true, I just don't remember how to prove it (as a side note, the accepted answer for the aforementionned question does not answer mine).


I am not fond of solitary floats "floating" in the middle page. Consider this example:  \documentclass{report} %\usepackage{float} \usepackage{lipsum} \usepackage{graphicx} \begin{document} \lipsum[1-5]  \begin{figure}[htb]   \centering   \includegraphics[width=0.8\textwidth]{example-image-a} \end{figure}  \begin{figure}[htb]   \centering   \includegraphics[width=0.8\textwidth]{example-image-b} \end{figure}  \begin{figure}[htb]   \centering   \includegraphics{example-image-c} \end{figure} \end{document}   The output is:    How can I force the "C" image to top of page without affecting the harmony of "A" and "B" images floating symmetrically throughout the page? It means H is not an option.


Table-of-Contents items appearing flush against the edge of the left margin

I am using \documentclass{amsart} and want my table of contents subsections to be indented slightly beneath the sections. Right now, all the sections and subsections are equally flush to the left side. I still want the page numbers to be aligned though. What is the proper code?


Possible to constrain generic type to enums?

I have a generic class Foo<T> where I want to constrain T to be an enum type. Is this possible in C#?  I have tried  public class Foo<T> where T : enum   // COMPILATION ERROR   but this approach only seem to work for class and struct.   Likewise, attempting to constrain T to an underlying enum type will also not work:  public class Foo<T> where T : int    // COMPILATION ERROR   since int is not a class or interface.    EDIT I realize now that similar questions have been posted before, and eventually this question can be removed. One question that is even more related to my question, and that also contains the same answer as below, is .  UPDATE SEP 13, 2018 In the latest minor C# version, 7.3, it is now possible to constrain the generic type to an Enum. For more details, see .


I have a function $F(θ) = \sin^{−1} \sqrt{\sin(11θ)}$  I derived the following answer using basic trigonometric and quotient rules.  $\dfrac{11\csc \left(\left(11\theta \right)^{\left(\frac{1}{2}\right)}\right)\cos \left(\left(11\theta \right)\right)}{2\sqrt{1-\sin \left(11\theta \right)}}$  My answer however is wrong.  Can anyone outline how to go about getting the correct solution to a problem such as this?


Pitch/Yaw in circle causes undesired Tilt

I've made my own Camera object, with a forward vector as well as a up vector. I happen to be programming in Android using OpenGL ES 2.0 but I think this question is relevant to all frameworks, it seems to be some math issue I'm not understanding.  Here's a gif of my Pitch/Yaw working correctly:    Here's a gif of Pitch/Yaw in a circle, causing the square to rotate, because the camera is tilting (the up vector becomes negative as I continue).    Here's pseudocode for my pan/yaw functions:  function pitch(amount) {     if (amount == 0) return;     forward = normalize(forward + up * amount);      // Now fix the incorrect up vector     right = cross(forward, up);     up = normalize(cross(right, forward)); }  function yaw(amount) {     if (amount == 0) return;      right = cross(forward, up);     forward = normalize(forward + right * amount); }   I get the same issue if I use Vector rotations instead of Vector Addition (amount is an angle and I use a Rotation Matrix in the X or Y axis)  Pitch: forward = normalize(rotated(forward, angle, Vector3(1, 0, 0))); Yaw: forward = normalize(rotated(forward, angle, Vector3(0, 1, 0)));   Why is this happening? Is there a way to stop it?  EDIT: I followed the instructions at  to pitch using the local X axis and yaw using the world Y axis, same result.  Here's the new pseudocode:  function pitch(angle) {     if (angle == 0) return;      right = cross(forward, up);     forward = normalized(rotated(forward, angle, right));      // Fix the now incorrect up vector     up = normalized(cross(right, forward)); }  function yaw(angle) {     if (angle == 0) return;      forward = normalized(rotated(forward, angle, Vector3(0, 1, 0))); }   You can see all the code at


Percentage as dependent variable in multiple linear regression

Although I saw a few similar threads, I don't believe I saw the specific answer to the following question:  For simple linear or multiple linear regression, if your dependent variable is a percentage, are any assumptions violated?  I know that Y should be continuous, but does it also technically have to be unbounded?  I've never seen this listed as one of the assumptions, though I understand how a bounded dependent variable can cause specific issues.    In my case, I'm doing a multiple regression project for school where the dependent variable is percentage of obese schoolchildren.  Should I do a logit transformation or beta-regression because Y is bounded?    In response to a comment: the kernel density plot for Y(pct_obese) is below:  It doesn't seem that there is bunching at the boundaries--rather, the bulk of the data hovers around 20%:


Flight from India to Cayman islands non -via USA/UK

I recently found out that if I travel From India to the Cayman Islands via UK/USA, I will need a transit visa. So which countries or route or airway should I choose to get to the Cayman Islands for which a transit visa will not be needed?


I just bought my first mac that doesn't have an ssd

I bought My 2017 MacBook pro off eBay without an SSD in it. I bought the converter and SSD but it doesn't have an os installed and I am currently using a windows laptop. Should I just buy a bootable os on a flash drive or is there a cheaper way of downloading/putting the os on the SSD. If I have to buy a bootable flash drive which version of os should I get?


Problem getting reference (bibliography) page to show up

When I compile on sharelatex online my ref page shows up, with the in text citations. When I switch over to texshop on my mac either nothing at all shows up, or the exact content of my bib file shows up with no reference heading or numbering. The in text citations show up as [?] and i get " Citation `History' on page 6 undefined on input line 71  " my document structure is as follows:  \documentclass{article} \usepackage{graphicx}  \begin{document} \input{./title.tex} \table of contents \section{section1} \section{section2} \pagebreak \bibliographystyle{plain} \bibliography{bibfile} \end{document}   and bib file looks like this:  @article{History, title={Title}, author={author}, url={url}, year={year}, publisher={publisher} }   I've compiled it dozens of times in working through a few other issues, all the while the bibliography has been at the bottom of the tex document.   I have tried the \nocite{History} command but it does nothing.  I have double, triple, and quadruple checked for typos and have found none.  any suggestions?


& in Oracle Column Name thinking it is a variable

I have the following code c.description as "CARRIER & SERVICE"  For some reason Oracle thinks Service is a variable even though it is in between strings? Any help would be appreciated.


Let $S$ be the set of all integers of the form $ax + by$. Suppose that $S$ is not empty and let $d = ax_0 + by_0$ be the least element in $S$.

This is the rest of the question Show that every element of $S$ is divisible by $d$.  I don’t know where to start in this problem. Here is a hint: let $n$ be an element of $S$. Then there exist integers $q$ and $r$, with $0$ less than or equal to $r$ less than $d$, such that $n = qd + r$. Using the special nature of $n$ and $d$, argue that $r = 0$.


I'm looking for a more dynamic way to write the following statement.  data = [r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13]]    r represents my response data coming in, to which I take that and enumerate the items into a dictionary. This works, but its too static. If data is added or removed, the API code then needs to be adjusted to account for it.  What is an intuitive way to handle this? Below is a sample of the full class for reference.  class Pots(Resource):     def get(self, store):         print('USAGE: Received a request at POTS for Store ' + store )         conn = sqlite3.connect('store-db.db')         cur = conn.cursor()         cur.execute('SELECT * FROM Pots WHERE StoreNumber like ' + store)          res = cur.fetchall()         if not res:             print("RESPONSE: No data was found for this request.")             return('No data was found', 404)         else:             for r in res:                 column_names = ["StoreNumber", "ForwardOnFail", "HuntLine","FirePrimary","FireSecondary", "BurglarPrimary", "BurglarSecondary","BurglarTertiary", "DNR", "PassengerElevator", "FreightElevator", "Escalator1", "Escalator2","ShopperTrak"]                 data = [r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13]]                          datadict = {column_names[itemindex]:item for itemindex, item in enumerate(data)}                 return(datadict, 200)   Edit: Please ignore any SQL inefficiencies. While I appreciate the advice, I am aware and do not intend to use this in production. Just for testing. :)


I have lost my Facebook password but I want to recover my Facebook password back. So please if anyone know how to recover Facebook password then reply me.


Let $\tau$ be the usual metric topology on $\mathbb{R}$. Consider the partition $\{\mathbb{Z}\}\cup\{\{x\}: x\in \mathbb{R}\setminus\mathbb{Z}\}$.  Equip this space with the quotient topology.   The question is asking to show if the quotient map is open (resp. closed) and also if the quotient space is first countable.  I have managed to show that the quotient map, $f$, is not open since $f^{-1}(f(0,2)) = (0,2)\cup\mathbb{Z}$. But $(0,2)\cup\mathbb{Z}$ is clearly not open in $\mathbb{R}$ so $f(0,2)$ is not open in the quotient space.  However the quotient map is closed since $f^{-1}(f(K))$ is either $K$ itself (and so closed in $\mathbb{R}$) or $K\cup \mathbb{Z}$ (also closed in $\mathbb{R}$). So every closed image is closed in the quotient topology.  However, I am not sure how to show if the quotient is first countable (that is, has a countable nhood-base). How can I do this? If the quotient map were open, then is would be easier.


Why is Google still not indexing my !# webpage?

Our website is not getting indexing on google search engine. some webpages are indexing and some pages are not indexing. how can i resolve this problem. please help us.


LyX: How to get the Part name to print in headers

I have a LyX article, structured with Parts -> Sections -> Subsections, and I want to print the Part name in the document header.  I am trying to get the part name with the following command, but it prints "Part"  \fancyhead[LE,RO]{\slshape \partname}   I have also read & tried  but my document doesn't compile.  How can I simply get the part name within the LaTeX Preamble?


Is It normal to keep log file larger than data file?  I know why my log file is large, it is because I have a huge modification and locking occurred on a specific time, and caused my log file to be large.. as i'm using log shipping, I normally take log backups every 10 minutes.  What I'm asking is "Is it normal to see Log file larger than data file as my data file is about 7,216 GB and my log file is about 9,930 GB?" I'm afraid there is a standard ratio between log and data file? I don't want to shrink my log file because I have enough space on my hard disk.


Why does checking if an object is null cause a warning at compile time?

This project at work has this code in some method:  Dim pDataTable As DataTable Dim pDS As DataSet  pDS = someClass.GetSomeDataSet()  If (pDS.Tables.Count > 0) Then     pDataTable = pDS.Tables("SomeTableName")     foo(pDataTable) EndIf   If (pDataTable IsNot Nothing) Then     pDataTable.Dispose() EndIf  pDataTable = Nothing   Just curious, but why does If (pDataTable IsNot Nothing) Then cause this warning:     Variable 'pDataTable' is used before it has been assigned a value. A null reference exception could result at runtime.   I completely understand what it's telling me. If I simply call pDataTable.Dispose() and it was never instantiated in the first if block then my application is going to blow up. But why does it generate a warning for simply comparing a value to null?  If I wanted to get rid of this warning, should I just change the declaration of pDataTable to also create a new instance of DataTable?


formatting flash drive into a bootable drive

ive downloaded the disk image of ubuntu  14.1 and am now attempting to format my flash drive to be able to transfer the disk image and be able to run it. the problem i have run into is turning the usb into a bootable drive via command prompt. ive created a partition on the drive, however i seem to be unable to select the partition to assign it as a mount point. these are the instructions i followed to clarify any confusion.


I am currently using this in the preamble:  \theoremstyle{plain}% default \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem*{cor}{Corollary} \theoremstyle{definition} \newtheorem{defn}{Definition}[section] \newtheorem{conj}{Conjecture}[section] \newtheorem{exmp}{Example}[section] \theoremstyle{remark} \newtheorem*{rem}{Remark} \newtheorem*{note}{Note} \newtheorem{case}{Case}   On the whole, this works exactly as I want it to.  However for cases within a proof, I want the numbering to start at 1 again within each theorem: eg it should read:  Thm 1: blah blah Proof: Case 1: Case 2:  Thm 2: blah blah blah Proof: Case 1: Case 2:   Rather than in the second theorem the cases starting from 3 which is what currently happens.  Google suggested using something to do with numbered_within but I haven't managed to get the formatting right for this to work yet.. any ideas?


When to expect driver support for Qualcom Atheros (rev 20) wifi cards?

I recently purchased a Lenovo G-50-80 FUIN laptop. It hosts Qualcom Atheros(rev 20) wifi card. I could not find the drivers for this card anywhere. Can we expect next distribution of ubuntu(oct 15 release) to include those?  Here is the output of lspci -knn | grep Net -A2 command:  03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)     Subsystem: Lenovo Device [17aa:3545]   PS: Web search done before posting here lead me to something clled ath10k drivers and that these drivers are available in linux kernel version 3.20.0. As far as I know, no ubuntu distribution has kernel 3.20.x. I have tried ubuntu 12.04, 14.04 (both 32 and 64 bit) and 15.04(64 bit) but no success yet. Also tried one version of mint OS but the wifi doesn't work in any of those systems.


Other than by renaming the files first, how can I rsync files that may have colons in their names?


How do you switch from Wayland back to Xorg in Ubuntu 17.10?

Some of my applications don't work on Ubuntu 17.10 Wayland. How can I switch back to Xorg?


Finding a characteristic function of a product of two normal random variables

Let us define two, independent random variables $X, Y$. We know that: $$X - N(0, 1) \wedge Y-N(0,1).$$ Our task is to find characteristic function of a product of $X, Y$. I know that:   $\varphi_X(t) = e^{-\frac{t^2}{2}}$, $\varphi_{X+Y}(t) = \varphi_X(t) \varphi_Y(t)$.     Unfortunately I have no idea how to find $\varphi_{XY}$. I would appreciate any tips or hints.


I need a function written in Excel VBA that will hash passwords using a standard algorithm such as SHA-1.  Something with a simple interface like:  Public Function CreateHash(Value As String) As String ... End Function   The function needs to work on an XP workstation with Excel 2003 installed, but otherwise must use no third party components.  It can reference and use DLLs that are available with XP, such as CryptoAPI.    Does anyone know of a sample to achieve this hashing functionality?


How to white-balance photos shot in mixed-lighting environments?

I have a dSLR and I often find myself taking pictures of people in 'mixed lighting' environments (e.g. tungsten lighting and daylight, fluorescent and tungsten, or even the ‘nightmare lighting scenario’ of mixed fluorescent, tungsten and daylight). Since white balancing won't work (or at least it won't work completely) to remove the color cast from these sorts of mixed environments, what can I do to manage the multiple types of lighting in my environment?    Asked by :  I was at a wedding recently, and the reception hall had these huge windows that let a lot of sunlight through. The overhead lamps used inside the reception hall had a strong yellow tint to them. Given the two different types of light sources, "white" seems to have a vastly different definition in different parts of the photo. I found that a lot of my photos were near impossible to correct the white balance in post production (I shot in RAW).   Here is an example from the set I shot at the wedding:    If I set the white balance relative to something outdoors, everything inside looks too yellow (as seen). If I set the white balance relative to something indoors, everything that falls in the sunlight looks too blue. Neither looks particularly "good".  So, does anyone have tips for how to handle this sort of situation next time I take a shot? I'll also accept answers that offer post-processing advice.  // As an aside, I'm just an photography hobbyist...not a professional wedding photographer ;)


TeX-engine in modern multicore processors

Could (La)TeX processing be made faster by better exploiting the modern multicore processors, such as incorporating multithreading into one of the existing tex-processors?  If so, is there any ongoing effort towards this goal in any of the popular projects?


Prove that: $$I=\lim_{n\to\infty}\int_{0}^{1}\int_{0}^{1}...\int_{0}^{1} \frac{x_1^2+x_2^2+ ... +x_n^2 }{x_1+x_2+ ... +x_n} \space dx_1dx_2...dx_n = \frac{2}{3}$$ by considering $x_1, x_2, ... ,x_n$ as continuous variables with uniform distribution over the interval (0, 1) with Chebychev's inequality that $$\lim_{n\to\infty} Prob \space \Big(\frac{2}{3} - \epsilon < \frac{x_1^2+x_2^2+ ... +x_n^2 }{x_1+x_2+ ... +x_n} < \frac{2}{3} + \epsilon \Big) =1$$ for any $ \epsilon >0$


Let m be a positive integer greater than 1.  Prove that if r is a primitive root of m, then $r^{φ(m)/2} ≡ -1$ (mod m).


i tried two ways for making a list  out of something  var response = List[RS_TxnNested] consumertxnlist.foreach(txData => {   response = RS_TxnNested(blabla) +: response })   where consumertxnlist is a Seq[something] .   Another way is  var response = consumerTxnList._2.map(txData => RS_TxnNested(blabla))   Can someone help me in clarifying which one is better and why?


In my code, I need it to take in a letter grade and then it will print out it's corresponding numeric value. The problem I'm having is I can't figure out how to get it to call the method correctly. I feel like I'm close but am confused as to what to do.   public class Grade {     public static void main( String[ ]  args)    {     Scanner input = new Scanner(System.in);     System.out.print("Enter a letter grade: ");     String letterGrade = input.nextLine();     Grade number = new Grade(letterGrade);     double grade = number.getNumericGrade();      System.out.println("The numberic value is: "                         + grade);      }   public double getNumericGrade(String letterGrade)     {         double numericGrade = 0.0;     if ((letterGrade == "A") || (letterGrade == "A+"))         numericGrade = 4.0;     else if (letterGrade == "A-")         numericGrade = 3.7;     else if (letterGrade == "B+")         numericGrade = 3.3;     else if (letterGrade == "B")         numericGrade = 3.0;     else if (letterGrade == "B-")         numericGrade = 2.7;     else if (letterGrade == "C+")         numericGrade = 2.3;     else if (letterGrade == "C")         numericGrade = 2.0;     else if (letterGrade == "C-")         numericGrade = 1.7;     else if (letterGrade == "D+")        numericGrade = 1.3;     else if (letterGrade == "D")         numericGrade = 1.0;     else if (letterGrade == "D-")         numericGrade = 0.7;     else if (letterGrade == "F")         numericGrade = 0.0;     else          numericGrade = -1;         return numericGrade;     }      }


how to express the set of natural numbers in ZFC

I know that it is possible to represent each natural number using the concept of successor. But how do you assign meanings into the representation? I mean, when presented as a set, it's just a set unless we agree on some definition that some form of sets refer to natural numbers. Or is it something impossible at ZFC?  Thanks.


Why do we need 'the' in front of the grammar word?

the indefinite article      the gerund      the past participle   I've always thought that 'the' is placed when you're talking about something specific. But I see people usually say with 'the' even though you're discussing something general, such as     In English grammar, the past participle refers to an action that was started and completed entirely in the past.   Why is that so?


Proving the inequality of Cauchy-Schwarz in an Euclidean space.

It says let (G, <.,.>) be an euclidean space. Show that for all x, y belonging to G:   modulus<x,y> <= sqrt<x,x> * sqrt<y,y>   and in the mark scheme they put: for all x and  y and a real C: 0 <=  =  -2C + C^2.  if y = 0, there is nothing to prove (the two members of the inequality are 0). if y =/= 0, then  > 0 (this is the only part i get lol). the minimum of this polynomial of degree 2 in C is found by C = /. We get,  0 <=  - (^2)/   apologies for the terrible writing i literally translated it as it was in french. i dont understand how we're supposed to know that we are supposed to use a constant C to prove it. I am really bad with proofs, can someone explain why they did what they did in the mark scheme? Thanks!!!!


How do you Adjust the number of vertices when creating a circle?

The new blender 2.8 is different. When I create a circle there is no longer an option to adjust the number of verticies in the circle. Even when I press F6 av


How to hide blocks based on content type or for specific nodes?

In some of my nodes I need to show only "body" part of node. I don't want to show blocks etc. in those nodes. How can I do this ?   Create a new "content type" and put the data from existing nodes to that type of node. And excluding that "content type" from each of the blocks. By using javascript/jquery like: $('div'.block).remove()   Any more elegant answers?


How to find the velocity of a particle which has mass $m$ and energy $E$ considering the non-relativistic and the extreme relativistic limits?


Gravitational radiation from hydrogen atom

Background: It is known that orbital motion is accelerated motion under the influence of a central force; and that in a hydrogen atom the electron orbits the proton and is therefore accelerated; and that accelerated charges emit radiation; and that therefore the electron emits radiation, loses energy and falls into the proton; and that therefore hydrogen cannot exist. The paradox is resolved by saying that classical electrodynamics alone is not an adequate description of phenomena within the atom, so a quantum description is required. Or, to put it another way, hydrogen exists although it oughtn't, "because quantum physics". All this is uncontroversial.  But what about gravitational radiation?  The proton and electron form a mutually gravitating system, with the gravitational attraction between them being some $10^{-43}$ times the electrostatic attraction. Like any mutually orbiting masses, they must therefore emit gravitational radiation. Blindly following the formula in , the power radiated appears to be $7.4\times{10^{-188}}$ watts, or $4.6\times{10^{-169}}$ eV per second.  I don't have time to wait several times $10^{169}$ seconds to see how hydrogen atoms age, so I thought it would be quicker to ask here.   Do we genuinely predict that hydrogen will emit gravitational radiation at approximately this rate, or does the "because quantum physics" override apply to gravitational radiation just as it applies to electromagnetic radiation? What would it even mean, in the context of a hydrogen atom, where electrostatic forces predominate, for the atom to lose energy by gravitational radiation? How would an old atom look different from a young one? (The absurdity of this question suggests that gravitational radiation may indeed be forbidden at the atomic level).


Task.Run lambda is taking wrong local variable from loop

Hi in the following example,  void Main() {     Func<int, int> getPage = (pageNumber) =>     {         SimulateSlowHttpRequest();         Console.WriteLine(pageNumber);         return pageNumber;     };      var tasks = new List<Task<int>>();      for (int i = 1; i <= 5; i++)     {         task = Task.Run(() => getPage(i));           tasks.Add(task);     }      Task.WaitAll(tasks.ToArray());     //...etc }  public static void SimulateSlowHttpRequest() {     var x = 1000000000;     var multiplier = new Random().Next(8, 16);     var y = x * multiplier;      for (int i = 0; i <= y; i++)     {         var result = i++;     } }   I get the following output:   6  6  6  6  6   ..or sometimes I might see a (e.g.) 3, but mostly 6s. If I change this line:          task = Task.Run(() => getPage(i));   to:          var j = i;         task = Task.Run(() => getPage(j));   then I get the expected output (numbers 1 to 5 on each line, albeit in a random order).  I suspect this is because: a) the Tasks in the loop might start running at some undefined time after the for loop has finished, and  b) i is being passed by reference to the Func, and the last value of it was 6  My question is why does it work with the above change above (i.e. making a local copy of i) and what is a better design for the above?  The above code is basically the same structure I am working with for a program which makes concurrent calls to a REST service to get data that is to be returned in one result.


Display post list within category list sorted by name

I'm trying to display a list of categories sorted by name and all posts of each category inside it. Like this:   Category A  Post B Post F Post Z Category B  Post A Post C Post G Category C  Post D Post E Post H    I managed to display categories list, but it is only sorted by post names, like this:   Category B  Post A Post C Post G Category A  Post B Post F Post Z Category C  Post D Post E Post H  This is my code:    $args = array('post_type' => 'projetos'); $my_query = new WP_Query( $args ); if( $my_query->have_posts() ) {     while ($my_query->have_posts()) : $my_query->the_post(); ?>     <?php foreach((get_the_category()) as $category) {echo $category->cat_name . ' ';} ?>
     <a href="<?php the_permalink() ?>"><?php the_title(); ?>
     <?php     endwhile; }  wp_reset_query();  ?>      How can i sort it properly?


It seems like Microsoft goofed up again and did not include a feature in Windows 7 to order taskbar items. To clarify, you can now order the groups, but not the items within the groups.   So let's say I have 10 Windows Explorer taskbar items open and would like to order those taskbar items. What software would I use for Windows 7 to order taskbar items?  Software mentioned in this post "", does not mention Windows 7 support or specifically says that Windows 7 is not supported.


How to utilize multiple monitors with Microsoft Project 2010 (or other Office 2010 products)?

My question does primarily concern Project 2010, though it would be applicable to other Office products such as Excel, which can tend to span several horizontal screens.  Seems like an obvious question to me, but I had a hard time finding anyone else who had addressed this issue with Office products in specific (though there were several Google hits for the same question in Visual Studio).  With Project, I would love to be able to handle my task list in the left-hand screen, and see the corresponding Gantt chart laid out on the right-hand screen. For now, my solution has been to drag the window across both monitors, but that's sloppy and the Gantt chart does not zoom in/out correctly to account for the additional space.  It would also be nice to utilize this feature in Excel. As an engineer, I often track projects with spreadsheets that span 2-3 landscaped 11" x 17" pages. If I could spread the view over 2 screens it would make my life a lot easier.  Maybe there's a setting, or a 3rd party application that I'm missing?


Is there something like show create database in postgres?

I want to use something like Mysql command to show me the structure of postgres tables in a database, Is there a way for it? I main goal is to create an exact copy of the table in another database with postgres sql.  I tries /d+ command, but got the following error:  ERROR:  syntax error at or near "\" LINE 1: \d   My OS is windows XP SP3. I've read the following post but gain no success:   EDIT: \d+ command output on windows  :    ERROR:  syntax error at or near "\" LINE 1: \d+


Why do I have to use SomeRandomString.equals("something") instead of SomeRandomString == "something" in Java?

I'm relatively new to Java so I'm kind of lost here. Is it wrong when you are trying to compare two strings just use the identical symbol "==" instead of using a method for checking if two strings are identical. Because for what I have tried the first option doesn't work and I'm very curious on the reason behing it


Natural number solutions to $\frac{xy}{x+y}=n$ (equivalent to $\frac 1x+\frac 1y=\frac 1n$)

I have a question about the following problem from a Putnam review:  Let $n\in \mathbb{N}$. Find how many pairs of natural numbers $(x, y)\in \mathbb{N}\times \mathbb{N}$ solve $$ \frac{xy}{x+y}=n. $$  I have found some solutions for all $n$, such as $(2n, 2n)$ and $(n+1, n(n+1))$, but I feel as though this is the wrong approach, as the question is only asking for the number of solutions to the equation.  I don't really want a complete solution, but any hints would be greatly appreciated.


How can I select part of a mesh and make it seperate?

I want to make the teeth a separate child object from the mouth. I want to know the best way to do this.   I have tried going into edit mode with Tab and trying to select all the vertices but that doesn't move the teeth. Is there an easy way to select just that part and make it a separate child mesh to the rest of the mouth?


How to Combine IN-Opeator with LookupIds in a caml-query?

I want to build a CAML - Query using the IN - Tag. The queried Column is a lookup-field to a Title of another list. When I query using the text-property everything works fine:     <Where>       <In>          <FieldRef Name='page' />          <Values>             <Value Type='Lookup'>page1</Value>             <Value Type='Lookup'>page2</Value>             <Value Type='Lookup'>page3</Value>          </Values>       </In>    </Where>   This is giving me the wanted result: All rows with Lookups to page1, page2 oder page3 are returned.  When I try to achieve this using the IDs instead I get no results at all:  <Where>       <In>          <FieldRef Name='page' LookupId='True' />          <Values>             <Value Type='Lookup'>5</Value>             <Value Type='Lookup'>4</Value>             <Value Type='Lookup'>3</Value>          </Values>       </In>    </Where>   I rechecked the IDs a dozen times. They are correct. When I change the query to multiple OR-Operations it works fine.  Is this a known limitation of SharePoint 2010 or do I just have to insert a "magic" word somewhere?


Creating Dynamic Profile Graph for Data Driven Page Atlas using ArcMap

I used Strip Map Index Features tool to create a Data Driven Page set of maps and I would need to create a new data frame that will contain a dynamic profile graph that will be modify depending on section of line for each page of the map Atlas displayed. I have my 3D line and DEM and know how to create a profile graph for the whole line with 3D Analyst. But I'm lost when I have to create a graph for each page of the book and make that data frame dynamic at the same time.


Proving $\mathcal{P}(\Bbb N)$ is not countable

Prove that $\mathcal{P}(\Bbb N)$ is not countable. Alternatively, prove that $|\mathcal{P}(\mathbb N)|\ne|\mathbb N|$.   (You may assume the following result from tutorial: If $S$ is infinite and countable, then there exists a bijection $f:S\rightarrow\mathbb N$.)  And I think when they say $\mathcal{P}(\mathbb N)$ they mean the power set.  I'm not sure about this questions, any tips would be great thanks!


HP Laptop says "Enter Power On Password " with a key like picture

My HP laptop is asking for Power On Password that I never setup.  How do I get around the password and how do I remove this setting so the problem does not recur?


Cannot link Stack Overflow Account to Careers Account

I have created my StackOverflow Careers panel, and when I click 'add a stack overflow account with over 200 reputation' the site decides that I have no StackOverflow account at all, although my current one has over 300. I log in to both with the same StackExchange Account with the same email etc so I'm curious as to why this is happening.


How do I restart a new game in No Mans Sky? (PC)

I never got the blueprint for a hyper drive parts and now I am stuck in my first star system. I have tried deleting local game content (with and without steam cloud sync) and going into the programs and deleting everything related to NMS. Please help.


linux + when change passwd we get permission denied

We have installed Redhat Linux 6.5 from scratch the VIA kick start installation and booted into single user mode because I don't have the root password.  But when I perform the following:  passwd root changing password for user root passwd: permission denied    Please advice what are the reasons that I get permission denied and how to resolve the problem.


Why the electric potential of Earth is zero?

For a localized charge distribution the potential is set to zero far away from the charge distribution (at infinity)  Now, when grounding a conductor, i.e. connecting it to Earth, it is said that we are setting its potential to zero.   Why Earth's potential is zero? And if it is zero, is it zero even if the potential is still zero at infinity?


How do you close windows/tabs in 2.8? I've tried a lot of stuff, but always end up opening up more.


64 bit Windows 7 and driver installation

I am planning to install the 64 bit version of Windows 7 OS and just wanted to confirm if the OS would install the drivers for my system automatically or I'll have to install them manually after the OS installation?  My System Details Processor Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 2394 Mhz, 4 Core(s), 4 Logical Processor(s)  System Manufacturer Dell Inc.  System Model OptiPlex 755


Finding natural numbers $a, b, c$ such that $a!=b!\times c!$

Yesterday, when I was playing with numbers, I was surprised to know the following relation:  $$10!=6!\times 7!.$$  Then, I've been looking for the other solutions, but I'm facing difficulty. Then, here are my questions.  Question 1 : Does there exist the other non-trivial solution?  Question 2 : Can we get all solutions? In addition to this, can we prove that they are all solutions?  I don't know if these questions are famous. Also, I'm afraid that these questions might be very easy to solve. Anyway, I need your help.


How can i convert a string in a python method?

I receive a string, for example "save". And i have a method save with paramethers. How can i convert the string save in a call to save(). I tried with eval and exec.  Edit: Solved here -->