How can I fix my app crash after take a photo in android
What is a NullPointerException, and how do I fix it?
I am given this problem: Suppose you have a complete graph with $n$ edges. How many vertices does your graph have?  I have this math figured out so far: We know that a complete graph has $m$ vertices, with $m-1$ edges connected to each. This makes the sum of the total number of degrees $m(m-1)$. Then, since this sum is twice the number of edges, the number of edges is $\frac{m(m-1)}{2}$.  But I don't think that is the answer. I think I am missing a piece of the math, but I can't figure out what else I need to do. Can anyone help me with what I'm missing or doing wrong? Submission on hold on arxiv I have recently submitted a paper to arXiv, but the arXiv moderators put my paper in status "on hold", because they have to make a decision on the right classification for the paper.   To those who have experienced a similar situation, how long did it take before they made a decision and published the paper on the arXiv? I just want to have an idea of how long I will have to wait. Note: Suppose $f(z)$ is a polynomial or a proper/strictly proper rational function.   Can someone demonstrate why if all coefficient of $f(z)$ are real then relation $f(\bar z)$ = $\bar {f(z)}$ hold  Is there a theorem for this result? Hibernate JPA Sequence (non-Id) Is it possible to use a DB sequence for some column that is not the identifier/is not part of a composite identifier?   I'm using hibernate as jpa provider, and I have a table that has some columns that are generated values (using a sequence), although they are not part of the identifier.  What I want is to use a sequence to create a new value for an entity, where the column for the sequence is NOT (part of) the primary key:  @Entity @Table(name = "MyTable") public class MyEntity {      //...     @Id //... etc     public Long getId() {         return id;     }     //note NO @Id here! but this doesn't work...     @GeneratedValue(strategy = GenerationType.AUTO, generator = "myGen")     @SequenceGenerator(name = "myGen", sequenceName = "MY_SEQUENCE")     @Column(name = "SEQ_VAL", unique = false, nullable = false, insertable = true, updatable = true)     public Long getMySequencedValue(){       return myVal;     }  }   Then when I do this:  em.persist(new MyEntity());   the id will be generated, but the mySequenceVal property will be also generated by my JPA provider.  Just to make things clear: I want Hibernate to generate the value for the mySequencedValue property. I know Hibernate can handle database-generated values, but I don't want to use a trigger or any other thing other than Hibernate itself to generate the value for my property. If Hibernate can generate values for primary keys, why can't it generate for a simple property? We have two PHP5 objects and would like to merge the content of one into the second. There are no notion of subclasses between them so the solutions described in the following topic cannot apply.    //We have this: $objectA-&gt;a; $objectA-&gt;b; $objectB-&gt;c; $objectB-&gt;d;  //We want the easiest way to get: $objectC-&gt;a; $objectC-&gt;b; $objectC-&gt;c; $objectC-&gt;d;   Remarks:   These are objects, not classes. The objects contain quite a lot of fields so a foreach would be quite slow. So far we consider transforming objects A and B into arrays then merging them using array_merge() before re-transforming into an object but we can't say we are proud if this. Two-Weapon Fighting & Bonus Actions During the latest gaming session our level 3 Rogue was Two-Weapon fighting with a Rapier in the main-hand and a scimitar in the off-hand.  At the completion of our gaming session I contested the application of the Two-Weapon fighting rules as it seemed unbalanced.  Once I got home I reviewed the PHB and various RPGStack and Reddit but couldn't find a concrete answer.  My interpretation of the PHB Reference rules below is that although any class/character can technically wield a weapon in their off-hand, only those who have been granted a Bonus Action for which no explicit bonus action have been defined would be allowed to actually attack.  So in the case of a Rogue the Bonus Actions granted under Cunning Action allow for specific actions (none of which are attack).  The alternate interpretation would be the rules under Two-Weapon Fighting, perhaps it should be written      you receive a bonus action to attack with a different light melee weapon that you’re holding in the other hand.   This would, in my opinion, explicitly grant the Bonus Action to any character/class who is Two-Weapon Fighting.  After thorough review does it boil down to application of the rules-as-written and determining a house-rule to apply in our campaign?    References  Page 189 of PHB : Bonus Actions  Various class features, spells, and other abilities let you take an additional action on your turn called a bonus action. The Cunning Action feature, for example, allows a rogue to take a bonus action.      You can take a bonus action only when a special ability, spell, or other feature of the game states that you can do something as a bonus   action. You otherwise don’t have a bonus action to take.   You can take only one bonus action on your turn, so you must choose which bonus action to use when you have more than one available. You choose when to take a bonus action during your turn, unless the bonus action’s timing is specified, and anything that deprives you of your ability to take actions also prevents you from taking a bonus action.  Page 96 of PHB  A Rogue receives cunning action at level 2, You can take a bonus action on each of your turns in combat.      This action can be used only to take the Dash, Disengage, or Hide action.   Page 195 of PHB  Two-Weapon Fighting (Combat Rules)  When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative. If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.  Page 165 of PHB  Dual Wielder  (Feat)  You master fighting with two weapons, gaining the following benefits:   You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand. You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren't light. You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one. about://(null) popup? I encountered a popup similar to this one this morning while checking the weather report at  in Safari, though I have not been able to reproduce it.  The title is "about://(null)" and the text "Why you no play Candy Crush!!"  The popup occurred twice.  I tapped Cancel both times.  I suspect the source of this is rogue JavaScript in an ad network, judging from the fact that the screenshot below shows it in an ad-supported application, and when I saw it, I was on an ad-supported website.  My phone is not jailbroken.  I'm wondering if anyone is able to identify the source of the popup definitively.  Speculation is running rampant on Apple's support communities and elsewhere, from push notifications (delete Facebook and all your games!) to carrier notifications (which don't work on iPod Touches…), and my gut tells me little of it is helpful.  But I could also be very wrong.  (This is not my screenshot; it comes from .)    UPDATE 1: The Candy Crush people have this to say, but I'm not (yet) convinced there's actually something installed that is to blame:   UPDATE 2: Just reproduced it in the iOS Simulator while clicking around woodtv.com, but I'm not sure how to track it down further from here. One asks “how does x taste,” implying that they’d like an adverb describing the way it tastes. But one answers with an adjective, “it tastes good” instead of “it tastes well,” which would imply that x is tasting something else. What’s the reason for this discrepancy? Interpretation of mean absolute scaled error (MASE) How to install ubuntu on lenovo g580? I'd like to install Ubuntu 13.04 on Lenovo g580 and I have this issue. After a few seconds of booting liveUSB screens gets black and nothing happens. I've read somewhere about connecting second screen to solve similar issue. Of course this didn't solve it, but it provided something like terminal with     initramfs>   and few basic commands ..  Is it possible to install Ubuntu on Lenovo g580 hardware? I also checked  Ubuntu 12.04: failed  Mint 13: SUCCEED (x32 and x64)  Is it because of drivers? Of course I want Ubuntu instead of Mint. :) Give a sequence $(f_n)_{n\in \mathbb{N}}$ of differentiable functions which uniformly converge to $0$, but for which the seqeunce $(f_n')_{n\in \mathbb{N}}$ of the derivatives isn't even pointwise convergent.    I found this one in my textbook marked as "Fun things to solve" and although it may be fun, it's kind of hard to do.   To be honest I already failed at the first hurdle. I couldn't even find a sequence of functions which uniformly converges to $0$.   Is there a certain way of dealing with this kind of problem? Because it seems kind of hard for me to come up with sequences without a mathematical of way of doing so (or maybe there is a mathematical way I just don't know yet). When you use the allowframebreaks option in beamer then you get additional frames if the content is too high for one frame. The vertical spacing gets disturbed when you use a list (itemize, enumerate, description), for example, see the following animation. I used the t option (for top alignment) for the frame.     \documentclass[aspectratio=169]{beamer}   \begin{document}  \begin{frame}[t,allowframebreaks] \frametitle{Frame Title} \setlength{\mylength}{\baselineskip} \begin{itemize} \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \end{itemize}  \end{frame}  \begin{frame}[t,allowframebreaks] \frametitle{Frame Title}  Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\ Text\\  \end{frame}  \end{document}    I thought of a solution, when I read  question where they explain the different length in lists. The main idea is to check if the current frame is not the first frame of a frame continuation and add the needed vertical space. I thought that \topsep is the needed length but apparently, it is not quite right. It ist almost perfect but it still "dances" a little bit. Which additional length do I need? Here's the animation and the used code.     \documentclass[aspectratio=169]{beamer}  \setbeamertemplate{frametitle continuation}{%     (\insertcontinuationcount)%     \ifnum\insertcontinuationcount&gt;1%     \vspace*{\topsep}%     \else%     %     \fi% }  \begin{document}  \begin{frame}[t,allowframebreaks] \frametitle{Frame Title}  \begin{itemize} \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \item Test \end{itemize}  \end{frame}  \end{document}   Related        Definition of \itemize in beamer  In beamerbaselocalstructure.sty I found  \renewcommand{\itemize}[1][]{%   \beamer@ifempty{#1}{}{\def\beamer@defaultospec{#1}}%   \ifnum \@itemdepth &gt;2\relax\@toodeep\else     \advance\@itemdepth\@ne     \beamer@computepref\@itemdepth% sets \beameritemnestingprefix     \usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%     \usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%     \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%     \list       {\usebeamertemplate{itemize \beameritemnestingprefix item}}       {\def\makelabel##1{%           {%             \hss\llap{{%                 \usebeamerfont*{itemize \beameritemnestingprefix item}%                 \usebeamercolor[fg]{itemize \beameritemnestingprefix item}##1}}%           }%         }%       }   \fi%   \beamer@cramped%   \raggedright%   \beamer@firstlineitemizeunskip% }   But I do not understand where the different kinds of spaces are defined that cause the "dancing".  "Evil" Stuff in beamer  Motivated by the comment of @cfr I searched the beamer documentation for "evil" stuff -- this is what I have found (beamer guide version 3.41):   Do not use subsubsections, they are evil. Never ever use the evil option shrink.  Using this [again shrink] option is very evil. The use of this [allowframebreaks] option is evil. How to get images to planes objects to receive shadow? T-SQL stored procedure that accepts multiple Id values Is there a graceful way to handle passing a list of ids as a parameter to a stored procedure?   For instance, I want departments 1, 2, 5, 7, 20 returned by my stored procedure. In the past, I have passed in a comma delimited list of ids, like the below code, but feel really dirty doing it.   SQL Server 2005 is my only applicable limitation I think.  create procedure getDepartments   @DepartmentIds varchar(max) as   declare @Sql varchar(max)        select @Sql = 'select [Name] from Department where DepartmentId in (' + @DepartmentIds + ')'   exec(@Sql) Access is denied because the NTFS volume is already exclusively opened Well, just another idea came up into my mind and i have no idea how to solve it :D Is there infinitely many prime numbers, which are not repunits and their inverse is also prime? (For example, inverse of 31 is 13 which is also prime. i didn't have any other name to describe the function!) P.S:I now know they are called s. Can “zealot” have a positive connotation? A zealot is a person who is fanatical and uncompromising in pursuit of their religious, political, or other ideals.  I have never seen this word used with positive connotation, but could it (without causing raised eyebrows)? For example, “Gandhi was a zealot and should be admired by all who believe in non-violence.”  Also, do “zealous” and “zeal” carry the same connotation as “zealot”? Is there a visual web editor based on bootstrap? Bootstrap is a great framework, and I want know if there is a tool that gives you the possibility of dragging html components, re-sizing and moving them, changing colours, all while generating the bootstrap html code.  I don't want to use Dreamweaver because you need to go and add classes and IDs to the html, which could be a pain sometimes. I want to prove that $\lim_{(x,y)\to (0,0)} \frac{\sin(x+y)}{x+y} = 1$  Is it sufficient to say that if $u = x+y$ then as $(x,y) \rightarrow (0,0)$ then $u \rightarrow 0$ and then evaluate $\lim_{u\to 0} \frac{\sin u}{u}$ which is 1 by L'Hôpital's rule?  I feel that this is somehow "cheating" and I would really like to prove it in a more rigorous way, i.e., by using an $\epsilon$ - $\delta$ argument.  I have tried for a long time to use the one variable version and prove that if $0 \lt \sqrt{x^2 + y^2} \lt \delta$ then somehow $0 \lt |x+y| \lt \delta$ and it would follow from the one variable case that $| \frac{\sin(x+y)}{x+y} - 1| \lt \epsilon$. However, because $|x+y| = 0$ when $y = -x$ I am not getting anywhere with this.  Any input on this would be helpful :) (no) Properties in Java?