Is normal that if a target is Thunderwave'd into a wall, then they take initial damage from the Spell, and then additional "falling damage" from being flung into the wall. Similarly, if there's an object (say, a cart) between the target at the caster, would it be normal for the target to get hit by the cart and be dealt additional damage as a result? I can't find anything in RAW that explicitly covers it either way, and obviously the DM can Rule Zero whatever they want. But would doing so be considered normal?

Some spells can push the target X feet away (like thunderwave, which pushes 10 feet away on a failed save). I was wondering what happens if the target, while being pushed, encounters a wall or other rigid object. Does it take (bludgeoning) damage? To me it seems logical that it would: it is like falling, sudden force applied to a creature due to encountering resistance from an object.  I couldn't find any rules about this in the Player's Handbook nor online.


I am working on problem 2.1 in Introduction to Modern Cryptography 2nd edition by Katz and Lindell.     2.1) Prove that by redefining the key space, we may assume that the key generation algorithm $\textsf{Gen}$ chooses a key uniformly at random from the key space without changing $\Pr[C=c\mid M=m]$ for any $m,c$   We are told to define the key space to be the set of all possible random tapes for the generalized algorithm $\textsf{Gen}$.  I don't understand how we are supposed to prove that this algorithm $\textsf{Gen}$ chooses a key uniformly without knowing the algorithm itself. I am not really sure where to even start with this as I am new to proofs and crypto in general, and and all help will be useful!  What I do know:  $\textsf{Gen}$ is a probabilistic algorithm that outputs some key $k$ chosen according to some distribution. The finite key space $\kappa$ is the set of all possible keys that can be output by $\textsf{Gen}$

Disclaimer: This is exercise 2.1 in Katz-Lindell book.  Given a (symmetric) encryption scheme $\Pi=(Gen,Enc,Dec)$ where $Gen$ takes the security parameter $1^n$ as input and generates a key $k$ of length $n$.  Usually we simply assume that $Gen$ chooses key uniformly from $\{0,1\}^n$ but this is not always the case.  Given $Gen$, how would you construct a new generation algorithm $Gen'$ that indeed outputs $k$ uniformly at random?


I have just started learning programming, and as I was reading about strings, I found this piece of code:  System.out.print("Conversion from string to char array\n");     char [] stringToarray = exampleString.toCharArray();     for (char character : stringToarray) {         System.out.print(character);     }   Which I don't fully understand... what does "char character : stringToarray" do?  Why can you use it inside a 'for', like that? I am confused because it is not the structure of 'for' I am used to see  Thank you very much for your attention !

Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


I am working on a progress bar, so I need to print several consecutive # characters. I am using Bash shell operation.    This is the case example:  $ a=20 $ printf "#%.0s" {1..a} #$ printf "#%.0s" {1..$a} #$ printf "#%.0s" {1.."$a"} #$ printf "#%.0s" {1..20} ####################   Note that it is only generated one only #, except when using the direct 20 value in the command line. Invoking the a variable seems not to work.    I need to do this programmatically, because 20 could be any other number.   What am I missing? Something obvious/stupid? Thanks you.

How do I iterate over a range of numbers in Bash when the range is given by a variable?  I know I can do this (called "sequence expression" in the Bash ):   for i in {1..5}; do echo $i; done   Which gives:     1    2    3    4    5   Yet, how can I replace either of the range endpoints with a variable? This doesn't work:  END=5 for i in {1..$END}; do echo $i; done   Which prints:     {1..5}


vertex --> vertices  matrix --> matrices  vortex --> vortices  complex --> complexes  I don't see the pattern. It's not -ix versus -ex, so is there a rule (or at least linguistic explanation) for why some words take ces and some words take xes?

It  the plural of 'prefix' is 'prefixes' - while I would expect it to be   'prefix' => 'prefices' like 'matrix' => 'matrices' or 'index'  => 'indices'.  Is 'prefix' an exception to the rule? If so, why?


Pretty much the title. There's an ISP server that located 200miles away from my location. Once the packets cross their network, it fluctuates from 40ms to 120ms back and forth and rarely happen to be stable, only occasionally. This problem doesn't happen to any other servers. Only this particular ISP. And i'm afraid that it'll affect some real-time applications and games too. Is this normal?

There's a central server that located 300 miles away from my country. but when i test the ping to that server or their ISP backbone, i get inconsistent or a fluctuated pings from there. i live in Saudi Arabia, and the server is located in Qatar (300miles away).  So here's a screenshot showing a traceroute from my computer to that server:    However, This problem doesn't happen to any other servers from various locations.   So is this considered to be normal? if no. how can it be fixed?  UPDATE: Wait, i found out something! when i try pinging my friend who lives there and hires the same ISP, i get a stable ping times of 25-27 ms with no problems! and when i try to traceroute to his dynamic IP, i get almost the same hops from there, but it still shows inconsistent ping to these static ip servers until it reaches his home which surprisingly shows a constant and stable ping times to him. Could it be that his ISP configured their dynamic IPs to choose a special route to my ISP which was waaay better than what they chose for their static ip servers?


I want to read basic authentication use JavaScript     We can read cookie or user-agent to use document.cookie and navigator.userAgent but i want read (Authorization: Basic).

How do I access a page's HTTP response headers via JavaScript?  Related to , which was modified to ask about accessing two specific HTTP headers.     Related:


I've been wondering about this for a while, and the question didn't really come out right. The word, "stereotypical", i have been wanting to use for someone who often stereotypes someone. Let me give you an example. If someone was to say, "All boys are uneducated"(which they aren't, by the way), then my response would be, "That is very stereotypical of you", but of course that is not the right way to use this word. I know the word stereotypical means, (according to google) "relating to a widely held but fixed and oversimplified image or idea of a particular type of person or thing" but i thought it meant a word to describe some one making generalizations or stereotypes on a specific person.

What I want to know is whether there is an adjective within the same word family as "stereotype" for that.  So, if it exists, it would be something like "stereotypist" or "stereotyping".  I know that "stereotypist" exists as a noun and "stereotyping" exists as a present participle but I wonder whether either (or both) of them has/have also been used in literature as an adjective.


4 hours ago (at 15:53:08UTC today), I closed  question over on CodeGolf.SE. We've discovered before that it's possible to answer a few minutes "under the line" due to caching before, simply by not refreshing the page. For example,  answer was posted at 15:59:08UTC. However, a few minutes ago, somehow,  answer was posted, 4 hours after closing, which lead to general confusion in our chat room, along with  thought:  if the closure check is client-side could one theoretically just disable it an post an answer to an already-closed challenge? and if it isn't cilent-side, how is Neil able to do that if it should be closed server-side already o.O  by . A few minutes of caching isn't much of an issue, hours of caching potentially is. Is this a problem?

I merged a question on programmers.stackexchange.com earlier today and 20 minutes or so later someone came along and answered it. Shouldn't that have been impossible?  Here's the . It was merged into .  Is it possible to merge the answer now or should the user repost manually?


Recently all of my applications keep losing focus every minute (or so) for a few seconds (then the window gets the focus back). It is very annoying, since I'm typing most of the time and get interrupted by this behavior. Things worked fine until a week ago and I have no idea what is causing this error, but I noticed the mouse moves to a certain point on one of my screens when this happens.  I would appreciate any advice: it starts to drive me crazy...

Within the last week my Windows XP workstation has begun randomly losing focus from the active window. I've seen this in multiple applications including FireFox, Notepad, Putty, Visual Studio etc. There is no application stealing the focus, instead the active window simply goes inactive and there is no active window visible. In the taskbar the application I am working in is still highlighted - so that application is active but its window does not have the focus.  This is not focus-stealing feature you are thinking of that you can configure with Tweak UI. I checked that and its not enabled and anyway that is working the way its supposed to and looks different since its configured to make the grabbing application flash in the task bar.   This looks more like some other app runs, grabs the focus and then exits. The desktop is in the same state you have when you exit the active application.  Any ideas?


The $3x+1$ conjecture is defined on $\mathbb{N}$ as  $$ f(x) = (3x+1)/2 $$ if $x$ is odd and $$f(x)=x/2$$ if $x$ is even.  As far as I know the only periodic orbit is the trivial  $$1\to 2 \to 1\to 2....$$  If we extend the domain to include the integers, then I found nontrivial periodic orbits such as $$-5\to -7\to -10\to -5\to -7\to -10.....$$  and $$-1\to -1\to -1\to -1....$$  and $$ -91\to -136\to -68\to -34\to -17\to -25 \to -37 \to -55 \to -82 \to-41\to -61\to -91 .....$$  My first question is " Are these the only periodic orbits in the extended $3x+1$ conjecture ?"  The other question is "Are all orbits in the extended $3x+1$ conjecture  eventually periodic?"

Does applying the Collatz conjecture algorithm to negative integers always result in sequences ending with $-1$ and then repeating themselves an infinite number of times? It is so for the first several seed values.  After hours of thinking and research, I don't know how to answer the question.


Supposing I have a byte array of size 4096, what's an efficient way to get the start position of a chunk of say... 5 bytes that matches a pattern?  For e.g., I would like to get the start position of the 1st possible match of the byte array  var match = new byte[] { 0x03, 0x04, 0x05, 0x06, 0x07 };   So if the above chunk is found within my byte array, it will return me the position of the 1st byte (0x03)

Anyone know a good and effective way to search/match for a byte pattern in an byte[] array and then return the positions.  For example  byte[] pattern = new byte[] {12,3,5,76,8,0,6,125};  byte[] toBeSearched = new byte[] {23,36,43,76,125,56,34,234,12,3,5,76,8,0,6,125,234,56,211,122,22,4,7,89,76,64,12,3,5,76,8,0,6,125}


I'm using Window 7. When I download a large file through Firefox browser and screen gets locked, the download stops. I want to continue downloading even if screen is locked.  How to do this.

How do I set it so that my computer (OS is Windows 7) won't go into auto-standby/sleep mode while Opera is downloading a file? (Without disabling Windows' auto-standby/sleep setting.)  I'm thinking of enabling a functionality similar to uTorrent's 'prevent standby if there are active torrents' option, if there is one.


He's so hard! He's invincible! I just need advice on how to beat the hell outta him! Please I've literally tried for months and he won't die! Advice needed make it a simple answer! 😩sigh

I barely made it through the forced battle and he seems to have gotten significantly stronger now that he's just sitting around.  It does seem like I should be able to beat him without doing the actual mission, since he's not invincible, he's just very strong.    Should I just come back after I beat the game or is it feasible much earlier than that?


This is a general question regarding pagination.  I have posts on the main page, but the pagination is redirected to main page.  For example, site.com/page/2 goes to site.com.  Is there a general setting in the backened which I can fix the redirect?   (otherwise, I am guessing it is from plugin setting).  Thanks

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


Back in the old days scroll bars were used to show if and how much a page can be scrolled down. I'm working on a smartphone app and the settings screen takes up more than one screen and needs to be scrolled. The trouble is, from the top it looks like it could be all there is and the user is given no indication they can scroll down for more settings. Scrolling is done, in the normal smartphone way, where a finger can drag to move the container.

I'm trying to find the best method of showing users on mobile devices that they can scroll in a <div>.   As iPhones/iPads don't have scrollbars, I will need an indicator to show that you can scroll. This should be subtle but present the idea well.


My data has this struture:  ID 12354 linea+b 3 ID 15687 linea+b 7 ID 26894 linea+b 10   This is my proposition: r'ID\s+([0-9]+)\s+linea+b\s+([0-9]+)\s+' The problem is with linea+b  where python does not accept + as a string, it analyzes it as a metacharacter.

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


I was dual-booting Ubuntu 14.04.2 LTS with my main OS, Windows 8.1 and in the middle of the installation, the screen turned to black. The laptop was still on, but the screen was black. Is this supposed to happen? Will my PC bootloader get corrupt? The computer is an Acer Aspire E5-521-238Q.  What do I do to stop the black screen?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Question: Let $G$ be a finite group, $A$ and $B$ non-empty subsets of $G$. Set $AB=\lbrace ab\colon a\in A, b\in B\rbrace$. If $\vert A\vert+\vert B\vert>\vert G\vert$, prove that $AB=G$.  I try to prove inductively on the order of $G$. For $\vert G\vert=1$, it is trivial. Now we assume the proposition holds for $\vert G\vert=n$. If $G$ is not simple, i.e., $G$ contains a nontrivial normal subgroup, namely $N$, the inductive hypothesis can be used as follows:  Make the cannonical maps $f_{A}\colon A\to G/N$, $f_{B}\colon B\to G/N$. We claim that $\vert f\left(A\right)\vert+\vert f\left(B\right)\vert>\vert G/N\vert$. (If this were not the case, i.e., $\vert f\left(A\right)\vert+\vert f\left(B\right)\vert\leq\vert G/N\vert$, $A$ and $B$ together would not "cover" all the cosets of $N$, or they would just happen to "cover" all the cosets. This is contradictory to the assumption that $\vert A\vert+\vert B\vert>\vert G\vert$.) By induction hypothesis, $f\left(A\right)f\left(B\right)=G/N$. It follows that $AB=G$, noticing that $N$ is normal.  What if $G$ is simple? Can it be shown inductively even if $G$ is simple? Or shall we seek an alternative way of proving? THX!

Let $G$ be a finite group. Suppose that $A$ and $B$ are to subsets of $G$. If $|G|<|A|+|B|$ prove that $$G=AB.$$


Has anyone been able to install AceStreams? I had it , worked fine, but the same repository doesn't work and the attempt to install from them returns the error of unmet dependencies. Is there a workaround?

Have you guys used ? The repository has not yet issued for 16.04 LTS, but besides, it might not be free anymore.  Is anyone watching Acestreams/Sopcast with any other software + where can I find such software?  Thank you!


I am learning english, an I am wondering if I would be "correct" in using only the past tense and never using the present perfect tense. I might be over-simplifying the english grammar ...   So, are there some situations where it would be incorrect using the past tense instead of present pefect ?  (the following link gives some axample where past tense shall be used instead of present perfect, but no example where present perfect shall be used instead of past tense: )  Many thanks for your replies, Thierry

If I seem tired, can I say: "I haven't slept last night"? If not, why have I been told that we use present perfect for actions that have present effects?


I need hint to find this sum $$\sum_{k=1}^{n}{3^kk}$$  $\sum_{k=1}^{n}{3^k}$ can be easily calculated as it is sum of geometric progression.

I want to know the general formula for $\sum_{n=0}^{m}nr^n$ for some constant r and how it is derived.  For example, when r = 2, the formula is given by: $\sum_{n=0}^{m}n2^n = 2(m2^m - 2^m +1)$ according to   Thanks!


Consider the set $(-\infty, 0]\cup\{1/n:n\in\mathbb{N}\}$ with the subspace topology. Then   $0$ is an isolated point    $(–2, 0]$ is an open set    $0$ is a limit point of the subset $\{1/n:n\in\mathbb{N}\}$    $(–2, 0)$ is an open set.   I think 3 and 4 are correct.am I right?

$X=(-\infty,0]\cup\left\{{1\over n}:n\in\mathbb N\right\}$ with subspace topology. Then   $0$ is an isolated point $(-2,0]$ is an open set $0$ is a limit point of the subset $\left\{{1\over n}:n\in\mathbb N\right\}$ $(-2,0)$ is open set.   $0$ is not an isolated point of $X$ as every nbd of $0$ contains a point of the form $1\over n$ so  $3$ is true and $1$ is false, $2$ is false as $0$ is not interior point, $4$ is true as every point is interior point. Am i right?


I have a SQL Server table that contains country names translated into various languages. I am attempting to display this in a web page. However, what is stored in the database as Amérique du Nord comes out in PHP as AmÃ©rique du Nord  My PDO connection string is   sqlsrv:SERVER=<SERVER>;DATABASE=<DATABASE>   There is no charset option for SQL Server, but the default according to the documentation is UTF-8.  I have tried casting the column to varbinary, but that just gives me an ascii number that I have not been able to convert to a character. I have also tried a few variations of mb_character_encode which ended up making the characters Chinese.  For additional information:  I am on IIS 7.5, running PHP through FastCGI.  The script is sending the utf-8 header.  On other areas of the same page, I am successfully outputting UTF-8 that I am reading in from a .po file. Only text from the database query is mis-encoded.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Im using texstudio and have this problem that whenever i use the \cline command and try to compile, it starts compiling and never finishes here is what im trying to compile. Im using this source    \newpage \begin{tabular}{|c|c|c|c|c|c|}                                                                                \hline     Typ algoritmu                   & Kryptosystém      & Level bezpe\v cnosti (bit)    \\                                     &                   & 80   & 128  & 192  & 256      \\     Faktorizácia celých \v císel    & RSA               & 1024 & 3072 & 7680 & 15360    \\     Diskrétny logaritmus            & DH, DSA, Elgamal  & 1024 & 3072 & 7680 & 15360    \\ \cline{1-2}     Eliptické krivky                & ECDH, ECDSA       & 160  & 256  & 384  & 512      \\      Symetrický                      & AES, 3DES         & 80   & 128  & 192  & 256      \\                                                                                \hline \end{tabular}

I tried to use the Slovak language with the booktabs package.    Let's see a couple of cases.   slovak is included in the options to babel     \usepackage[english,slovak]{babel}   or    \usepackage[slovak,english]{babel}   or    \usepackage[slovak]{babel}`  "slovak" is NOT included in the options to babel  \usepackage[english]{babel}    Similarly two cases for \cmidrule  A. \cmidrule{2-3} is included in the table    B. \cmidrule{2-3} is NOT included in the table    If both (slovak+\cmidrule) are included (case 1A), then following error occurrs  Paragraph ended before \@@@cmidrule was complete   (and a lot of other errors)  In the other cases (1B, 2A and 2B) (NO slovak or NO \cmidrule), then pdflatex is succesful  Does anybody know why 1A is wrong?    And how to use slovak and \cmidrule together (case 1A)?  \documentclass[10pt]{book} \usepackage[english,slovak]{babel} \usepackage{booktabs}  \begin{document}  \begin{tabular}{ccc} A & B & C \\ %\cmidrule{2-3} A & B & C \\ \end{tabular}  \end{document}   I have Win7, TeXstudio 2.5.2


In the , a private function is assigned to a variables as shown in this example:  var myNamespace = (function () {    var myPrivateVar, myPrivateMethod;    // A private counter variable   myPrivateVar = 0;    // A private function which logs any arguments   myPrivateMethod = function( foo ) {       console.log( foo );   };    return {      // A public function utilizing privates     myPublicFunction: function( bar ) {        // Increment our private counter       myPrivateVar++;        // Call our private method using bar       myPrivateMethod( bar );      }   };  })();   I would have simply written the private function as:     function myPrivateMethod( foo ) {       console.log( foo );   };   Is there any reason to assign the function to a variable if it's not used as a delegate? I'm looking at some code that uses this pattern consistently and I'm finding it hard to follow. For example:  var _initializeContext = function() { // many lines of code }

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


In information theory, specifically in information content, I am struggling to conceptualise what the unit of measurement actually is. I have read quite a few similar  and worked through the derivation in Probability Theory: The Logic of Science, E.T Jaynes but still struggling to piece together the information.   The part I am struggling with is why the information content takes the form.  $$ I_X(x) = log\biggl(\frac{1}{p_X(x)}\biggr)$$  From what I have read so far, the use of the logarithm function makes sense, but $\bigl(\frac{1}{p_X(x)}\bigr)$ is where I am stuck. In plain english, I understand this to mean the quantity of information transmitted, or level of surprise when some event occurs. But I don't follow why this would takes this form. One idea I have trying to confirm (unsuccessfully so far) is that if that if some event $E$ occurs with probability $P$, then the amount of information received when this event occurs could be considered as $1 - P$.   If this is true, while also satisfying the requirements outlined by Shannon, is information content defined as above due to the following?  $$ I_X(x) = log\bigl(1\bigr) - log\bigl(p_X(x)\bigr)$$ $$ I_X(x) = 0 - log\bigl(p_X(x)\bigr)$$  or  $$ I_X(x) = log\biggl(\frac{1}{p_X(x)}\biggr)$$  I'm not sure if this is just assumed as being obvious, or a coincidence, but I haven't yet found an explanation that formally describes information content in this way (i.e. why information is $\frac{1}{p_X(x)}$).

I have a random process that follows a normal distribution. It's parameters are mean = 35 units, std.dev. = 8 units. I've seen from the  for the normal distribution that there is a formula to calculate the entropy. So plugging in the figures as:- $$     .5\log\left(2\pi e^1 8\cdot 8\right) $$ I get a value of 1.52, which I take to be  per sample.  My question is what are these units?  What thing do I have 1.52 of?    is (typically) measured in units of bits, after Claude Shannon's definition.  So can I take it that each sample generates 1.52 bits of entropy?  Clearly recording those samples generates information and therefore occupies a real and discrete amount of storage space. Ergo entropy cannot be unit less.


I have an old router that I have set up as an AP on my home network. For some reason it loses connectivity every few days and needs a reboot.   I would like to set up a script to run once every night to do this automatically.  I can open the my browser (iceweasel) and navigate to my admin page of the router from the terminal:  iceweasel http://admin:password@192.168.1.1/WLG_adv.htm   On the page that this command opens there is a button with this code:  <input onclick="return checkData();" name="Apply" value="Apply" type="submit">   Is there a way of performing the same action as this button from the terminal? I'm using a Debian Linux.

One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks up on this post-painted content.   So to fetch these types of webpages from the command line, I've been reduced to writing scripts in Ruby that drive the SeleniumRC to fire up a Firefox instance and then return the source HTML after these AJAX calls have completed.  It would be much better to have a leaner command line solution for this type of problem.  Does anyone know of any?


I read if I wish to run Windows based programs in Ubuntu without the full licence I need to install wine. Now I typed:   sudo apt-get install wine   After reading package list is done at the end the message says   The following packages have unmet dependencies:     wine : Depends: Wine1.6 but it is not going to be installed  E: unable to correct problems, you have held broken packages .   What can I do?

Every time I try to install "WINE" VIA the Software Center on Ubuntu 12.10, I get this error:  The following packages have unmet dependencies:  wine1.4: PreDepends: dpkg (>= 1.15.7.2~) but 1.16.7ubuntu6 is to be installed          Depends: libc6 (>= 2.14) but 2.15-0ubuntu20 is to be installed          Depends: wine1.4-amd64 (= 1.4.1-0ubuntu1) but 1.4.1-0ubuntu1 is to be installed          Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not going to be installed   When I try installing it VIA the terminal, this is what I get:  Reading package lists... Done 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:  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not installable            Recommends: gnome-exe-thumbnailer but it is not going to be installed or                        kde-runtime but it is not going to be installed            Recommends: ttf-droid            Recommends: ttf-mscorefonts-installer but it is not going to be installed            Recommends: ttf-umefont but it is not going to be installed            Recommends: ttf-unfonts-core but it is not going to be installed            Recommends: winbind but it is not going to be installed            Recommends: winetricks but it is not going to be installed E: Unable to correct problems, you have held broken packages.   how do I fix this?


In a test, there is a question I need to translate. "People of the opposite gender need to be treated with respect just as much as I do". What is the correct word for it - "the opposite gender" or "the opposite sex"? Does it have the same meaning?   This psychological test is for children

What is the difference between gender and sex?  says that gender is The mental analog of sex but that's too high English for me.  Basically, I'm developing a web-application that stores people's profile along with a field for gender/sex. Which name would be more appropriate?  __  [UPDATE]  After getting these good answers, I can figure out that,   Sex - Biological characteristics  Gender - Social characteristics   And, well, for my web-application, I went with the term sex, as it sounds more scientific and less political. P.S. Values for sex are clearly defined and can be easily validated (only two values * + an optional blank value).  * plus some anomalies.


Can I say that the answer is $3$?  When I exponentiated both sides I got:  $$ (-2)^3 = -8$$  But I am being told that negative logarithms cannot occur. Why is this?

Given a logarithm is true, if and only if, $y = \log_b{x}$ and $b^y = x$ (and $x$ and $b$ are positive, and $b$ is not equal to $1$), are true, why aren't logarithms defined for negative numbers?  Why can't $b$ be negative? Take $(-2)^3 = -8$ for example. Turning that into a logarithm, we get $3 = \log_{(-2)}{(-8)}$ which is an invalid equation as $b$ and $x$ are not positive! Why is this?


Find the relationship between the sides of a triangle and the diameter of the circumscribed circle.   I tried to solve this question. But, I didn't get any solution

Given the length ot the sides $a , b$ and $c$  of $ \triangle ABC$.  What is the length of the radius of the circumcribed circle?  After some formula substitution I came to the monster formula:  $$ \frac {a b c}{\sqrt{2a^2b^2+2a^2c^2+2b^2c^2-a^4-b^4-c^4}} $$  Can this formula be simplified?


How does following assertion hold? I have tried some real values but can anyone explain it to me mathematically/algebraically?  $$ a^{\log_{b}n} = n^{\log_{b}a} $$  I'm reading something that asserts this, but I do not see the connection. Any help would be appreciated.

This actually triggered me in my mind from . After some playing around I notice that the relation $a^{\log_b x} = x^{\log_b a}$ is true for any valid value of $a,b$ and $x$. I am very inquisitive to see how this holds ?


When saving as a kml, is it possible to keep the style of the QGIS layer?  I have tried a couple plugins that have been mentioned on here: qgis2kml ('format not yet supported') and qgis2google2 (crashed QGIS upon activating). Is there anything else?

I see there were plugins in the past that may have done this such as qgis2kml and qgis2google, but they no longer exist.


I want to install Ubuntu 14 Desktop on PC which doesn't have internet. So I created a bootable USB of Ubuntu, installed all updates including KDevelop. Then I installed Ubuntu from it on my PC, but the KDevelop and other updates are not refelecting in the installation. When I boot from USB, KDevelop is running, but not from hard disk.  What could be solution? Please let me have your suggestions.

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


I want to generate files which have a sequential numbers in their file names with numbers having same width (appended with zeros) like file names should be generated like below : File_001.txt File_002.txt ..... File_020.txt  `  int main() { for(int i=1; i<=20; i++) { std::string file = "File_"+std::to_string(i)+".txt"; } }   `  With above code, file names generated are : File_1.txt ...... File_20.txt  But I want to generate file names as mentioned above

How can I format my output in C++? In other words, what is the C++ equivalent to the use of printf like this:  printf("%05d", zipCode);   I know I could just use printf in C++, but I would prefer the output operator <<.  Would you just use the following?  std::cout << "ZIP code: " << sprintf("%05d", zipCode) << std::endl;


I am trying to uninstall Ubuntu 16.04 and re-install it using VirtualBox. I had installed (dual boot) it using an USB stick. Now I have a problem in locating the partition to be deleted.       from ubuntu side, I got to know that partition 7 and 8 are of Ubuntu while others are of Windows. So, should I delete that on Ubuntu? If I delete that will it effect my windows.  If I have to delete on windows, which partition on disk manager on pic 1 should I delete?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


When to use have you had and did you have in sentence?  e.g.  1) To ask some if he had his lunch or not?  Have you had your lunch?  Or  Did you have your lunch?  2) To ask some if he faced this situation in past or not?  Have you had this situation when you were doing this?  Or  Did you have this situation when you were doing this?

I already knew that we use the present perfect for an action in the past with a result now. Consider the following questions:   "I'm looking for Paula. Have you seen her?" "I'm looking for Paula. Did you see her?"   Is there any difference between these two questions for this specific action (verb)? What is the result of "seeing" action which can't be represented by simple past?


I tried to search about adding a database to my android application but all solutions I found create a database at run time and start inserting and selecting from that database.   What I need is to add a database to my android application before run time because my database has data inside so I don't need to create an empty database once the application is run.  Thanks anyway.

If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.


Show that if $Y$ is compact, then the projection $\pi_{X} : X \times Y \rightarrow X$ is a closed function.   I can't to solve the question above. Indeed, I think that projection is a closed (and opened) function even without Y compact. I'm right?

Let $\pi: X \times Y \to X$ be the projection map where $Y$ is compact. Prove that $\pi$ is a closed map.   First I would like to see a proof of this claim.  I want to know that here why compactness is necessary or do we have any other weaker condition other than compactness for the same result to hold.


Please I am trying to validate a Chinese phone number, which has the condition of having to start with 1 followed by 10 other number for eg.  14375847232  Thanks in advance.

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


\begin{table}[ht] \label{tab:intro} \caption{Anonymized data - output example} \begin{tabular}{llll} \toprule           Age & SEX & ETHNIC & STUDIES \\ \midrule     * &   * &      * &       * \\    42 &   1 &      1 &       7 \\    40 &   1 &      1 &       7 \\    45 &   1 &      1 &       7 \\  [48, 51[ &   2 &      1 &     <=3 \\  [48, 51[ &   1 &      1 &     <=3 \\     * &   * &      * &       * \\  [60, 63[ &   2 &      6 &     <=6 \\    58 &   1 &      1 &       5 \\     * &   * &      * &       * \\ \bottomrule \end{tabular} \end{table}   Everything works fine if I remove [, but i need to put them.  This is the error:  ! Paragraph ended before \@argarraycr was complete.

\begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] & [] & [] & [] & []\\         [] & [] & [] & [] & []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   I cannot run the above code, latex returned an error about missing number, but I can't see anything I am missing.  And the weirdest thing is that  \begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] & [] & [] & [] & []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   This code works.  Anyone have any idea?


I reviewed my daily 20 edits this morning. I love to do it with my coffee and waffles beside me.   Now I capped the reviewed edits limit not the edits limit itself. This is the tricky part : I see a suggested edit on a post like this and I read it        I know I can't approve / reject it but I still feel it could be upgraded. So I consider adding my own edit. But I get stuck with this page teasing me because I reached my limit of 20 reviews ... !!        Where is the I don't want to review. Let me add my own Edit button ?

Note: Somewhat related to .  As a Suggested Edits queue reviewer, it's frustrating when reviewing a question that requires an edit, and going to edit only to find that you're not able due to a pending edit.  Of course, if I hadn't used up all 20 edits from the queue in this day, I would be able to either Accept or Improve the edit with my own changes. However when all of the edits are used up, this leaves no option but to move on which is fairly limiting. It's made worse when the pending edit doesn't actually address what you wanted to change.    Is there any way to bypass this limitation? (That is, of course, without refreshing endlessly waiting for the edit to be approved or rejected to make your own)


If $G$ is a non-abelian group of order $p^{3}$ for prime p , then the center of $G$ is generated by all elements of the form $aba^{-1}b^{-1}(a,b\in G).$  i.e. $C(G)=G',$where $C(G)$ is the center of $G$ and $G'$ is the comutator subgroup of $G$  Here is my attempt :  Note that the center $C(G)$ is of order $p:$  As $G$ is a $p-$group, then $C(G)$ is non-trivial and $C(G)\unlhd G,$  so, $|C(G)|=$$p$ or $p^2$ or $p^3$   Case(i):   $|C(G)|=p^{3}$, then $C(G)=G$ forces that $G$ is abelian, a contradiction.  Case(ii):  $|C(G)|=p^{2},$ then the order of the quotient group $G/C(G)$ is $p$. So,the original  $G$ must be abelian, $~~~~~~~~~~~~~~~~~~~~~~~$a contradiction.  Therefore, consider this quotient group $G/C(G)\,,$ again.   Now the order of $\,G/C(G)$ is $p^{2}$ which implies that $G/C(G)$ is abelian. Then $C(G)$ must contains the comutator of $G$,that is, $G'$. Therefore $G'\le C(G)$ and $|C(G)|=p$, so either $G'=\langle e\rangle$ or $G'=C(G)$. But $G'=\langle e \rangle$ gives that G is abelian, which is impossible.  Whence , the only possibility is that $G'=C(G),$so our conclusion follows.   If you have the time , please check my proof for validity . Any suggestion and advice will be better for me . Thanks a lot and considering my request.

Let $p$ be a prime number and $G$ a non abelian group or order $p^3$. Prove that $Z(G) = [G,G]$.   I have already figured out that $|Z(G)| = p$, and that $G'=[G,G] \lhd G$.  Also, $|G'| = p$ or $p²$.  I suppose I'd have to prove that $G' \subset Z(G)$, but I've been trying and I have no idea how. Any hints? Thanks!


I did some search and found out that we can only block hostnames using /etc/hosts file, so my question is how can I block a specific web page in my Ubuntu 20 server e.g.: facebook.com/somepage

I want to block certain URLs on browsers. I don't want to block whole site. For example, I want to block , but not whole  domain. Is there any way I can do it?


I'm receiving notifications correctly when the app is on background or closed. But when the app its in foreground, and I send a push notification by firebase, it crashes without no error. Even I receive the object with the notification, I can see it in the console.  My Error code is  08-02 09:17:23.251 13843-27245/com.faraksoch.sagar.cdproutine E/AndroidRuntime: FATAL EXCEPTION: pool-7-thread-1     Process: com.faraksoch.sagar.cdproutine, PID: 13843     java.lang.NullPointerException         at libcore.net.UriCodec.decode(UriCodec.java:153)         at java.net.URLDecoder.decode(URLDecoder.java:60)         at com.faraksoch.sagar.cdproutine.fcm.MyFirebaseMessagingService.sendNotification(MyFirebaseMessagingService.java:66)         at com.faraksoch.sagar.cdproutine.fcm.MyFirebaseMessagingService.onMessageReceived(MyFirebaseMessagingService.java:44)         at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(Unknown Source)         at com.google.firebase.iid.zzc.run(Unknown Source)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)         at java.lang.Thread.run(Thread.java:841)   and here is my FirebaseMessagingservice  public class MyFirebaseMessagingService extends FirebaseMessagingService {  private static final String TAG = "MyGcmListenerService";  @Override public void onMessageReceived(RemoteMessage message) {      String image = message.getNotification().getIcon();     String title = message.getNotification().getTitle();     String text = message.getNotification().getBody();     String sound = message.getNotification().getSound();      int id = 0;     Object obj = message.getData().get("id");     if (obj != null) {         id = Integer.valueOf(obj.toString());     }      this.sendNotification(new NotificationData(image, id, title, text, sound)); }  /**  * Create and show a simple notification containing the received GCM message.  *  * @param notificationData GCM message received.  */ private void sendNotification(NotificationData notificationData) {      Intent intent = new Intent(this, MainActivity.class);     intent.putExtra(NotificationData.TEXT, notificationData.getTextMessage());      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);     PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,             PendingIntent.FLAG_ONE_SHOT);      NotificationCompat.Builder notificationBuilder = null;     try {          notificationBuilder = new NotificationCompat.Builder(this)                 .setSmallIcon(R.mipmap.ic_launcher)                 .setContentTitle(URLDecoder.decode(notificationData.getTitle(), "UTF-8"))                 .setContentText(URLDecoder.decode(notificationData.getTextMessage(), "UTF-8"))                 .setAutoCancel(true)                 .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))                 .setContentIntent(pendingIntent);      } catch (UnsupportedEncodingException e) {         e.printStackTrace();     }      if (notificationBuilder != null) {         NotificationManager notificationManager =                 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);         notificationManager.notify(notificationData.getId(), notificationBuilder.build());     } else {         Log.d(TAG, "Não foi possível criar objeto notificationBuilder");     } }   }  I'm totally new to Android Studio and don't know how to solve this. Any help would be much appreciated.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a lots of Views(about 30, may be it will be more), like cards. I set onClickListener for each of them, but its does not working. No reaction. Here is my code:  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_start);     final EditText searchProfile = (EditText) findViewById(R.id.search_profile);     final Button btnSearch = (Button) findViewById(R.id.btn_search);     final LinearLayout layoutProfileLeft = (LinearLayout) findViewById(R.id.layout_profiles_left);     searchProfile.setHint("UserName...");     btnSearch.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             String profileName = searchProfile.getText().toString();             urlForProfile = "http://www.dotabuff.com/search?utf8=&q=" + searchProfile.getText().toString().replace(" ", "+") + "&commit=Search";             while (htmlSrc == "" || htmlSrc == null) {                 setHtmlSrc(urlForProfile);             }             ArrayList<Integer> ids = new ArrayList<Integer>();             for (int i = 0; i < 30; i++) {                 searchedHeroes.add(i, new SearchedHero(i));                 RelativeLayout l = new RelativeLayout(StartActivity.this);                 RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(-1,-2);                 rlp.setMargins(8, 0, 8, 8);                 l.setLayoutParams(rlp);                 l.setBackgroundColor(Color.rgb(69,90,100));                 l.setPadding(8,0,8,8);                 l.setId(i);                 //l.setLayoutParams(LinearLayout.);                 ImageView img = new ImageView(StartActivity.this);                 new DownloadImageTask(img).execute(searchedHeroes.get(i).getImageSrc());                 img.setOnClickListener(this);                 img.setId(i + 40);                 l.addView(img);                 RelativeLayout innerL = new RelativeLayout(StartActivity.this);                 RelativeLayout.LayoutParams paramsForInnerL = new RelativeLayout.LayoutParams                         (-2, -2);                 paramsForInnerL.addRule(RelativeLayout.RIGHT_OF, img.getId());                 TextView txtProfileName = new TextView(StartActivity.this);                 txtProfileName.setText(searchedHeroes.get(i).getName());                 txtProfileName.setId(i + 80);                 TextView txtLastMatch = new TextView(StartActivity.this);                 txtLastMatch.setText(searchedHeroes.get(i).getLastMatch());                 txtProfileName.setTextSize(14);                 txtProfileName.setTextColor(Color.WHITE);                 txtLastMatch.setId(i + 120);                 RelativeLayout.LayoutParams paramsForNameLastMatch = new RelativeLayout.LayoutParams                         (                                 RelativeLayout.LayoutParams.WRAP_CONTENT,                                 RelativeLayout.LayoutParams.WRAP_CONTENT                         );                 innerL.addView(txtProfileName, rlp);                 paramsForNameLastMatch.addRule(RelativeLayout.BELOW, txtLastMatch.getId());                 innerL.addView(txtLastMatch, paramsForNameLastMatch);                 l.addView(innerL, paramsForInnerL);                 l.setOnClickListener(this);                 ids.add(i, l.getId());                 layoutProfileLeft.addView(l, rlp);                 //}                 //m.find();                 //passUrl = "http://www.dotabuff.com" + m.group(1);                 //Intent pass = new Intent(StartActivity.this, MainActivity.class);                 //pass.putExtra("EmpID", searchedHeroes.get(0).getProfileUrl());                 //startActivity(pass);                 //}                 //}             }         }     }); }  @Override public void onClick(View v) {     Intent pass = new Intent(StartActivity.this, MainActivity.class);     pass.putExtra("Link", searchedHeroes.get(v.getId()).getProfileUrl());     startActivity(pass); }   Probably, each view must intent other activity. Thanks.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


im learning Java and i was trying to create two arrays one for Employees and another for Employees positions and it ask the user to enter his name then compare it to the Employees name array  . but i keep getting this error and i know its coming from the if statement inside( for ) but i cant figure out what cues it please help me to understand it .  and thank you <3  here is the error im getting :  Enter Your Name to know Your Position :  jjj No! Exception in thread "main"  java.lang.NullPointerException     at constructors.Aconstructors.main(Aconstructors.java:19)  package constructors;   import java.util.Scanner ;  public class Aconstructors {  public static void main(String[] args) {     Scanner scan = new Scanner(System.in) ;         String user ;          String [] empName , empPos ;          empName = new String [10] ;         empName [0] = "Employ one" ;         empPos = new String [10] ;         empPos [0] = " Manager" ;          System.out.println("Enter Your Name to know Your Position : ");         user = scan.nextLine()  ;         for (int i = 0 ; i <empName.length;i++ ) {              if(empName[i].equals(user)) {                 System.out.println("yes !!");             } else {                 System.out.println("No!");             }                   }  }          }


We have an old app that uses ntwdblib.dll to connect to sql server.  It works, but it appears to connect over named pipes.  Due to moving the sql server to a data center, we need to change this so it connects over tcpip.  Currently, we connect by connecting to:  < server name>\< instance name>  We tried putting just the server name, and < server name>,1433  and that did not work.  How do we specify/configure for this lib to use tcpip?

We understand when connecting to SQL server that specifying:   < ip address> < host or ip>,< port number>   That the ADO or ODBC client will typically use tcpip to connect.  However, we observe that when a client asks to connect to:  < server>\< instance name> that it seems the client (ODBC in this case) does NOT use tcpip.  We believe in some cases, connecting to:   < host name>   May also result in a named pipes connection.  Questions:   Since < server>\< instance name> is not connecting over tcpip, that means it is using named pipes, right? How do I force the connection to use tcpip?   And is the behavior (of the 32 bit Windows ODBC driver for SQL Server) in this regard the same as the behavior of the old dblib client?


I can´t see the test texture placed according to the UV unwrap I made for the mesh. I preview mesh in Texture shading mode. These are screenshots in Edit mode showing unwrapped mesh:

I have added some textures to objects in blender but the textures don't show up until I render the file. it can be difficult to know what the objects look like without rendering it. is there a way to have textures show in the editor even if they are at a lower res?  In editor:    Rendered:


What driver do I need on Ubuntu for an ATI RADEON 8670 HD. How do I install an ATI driver for the video card as in windows? I'm using Ubuntu 14.04 "trusty" with Unity desktop environment.

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I need to stop server running at aws within 750 hours. Is there anyway i can automate it shutdown process within that time limit ?

How can I automatically shutdown the system after a certain customizable time?


I recently bought a new laptop, a HP ProBook 430 G4 with an Intel I5-7200U CPU and 8GB RAM. The laptop has two RAM slots and was delivered with a single 8GB 2133 MHz / PC4-17000 SO-DIMM. I've upgraded it to 16GB with a second 8GB SO-DIMM. The specs for this laptop say that it can be upgraded to 16GB, but other laptops with the same CPU and chipset can be upgraded to 32GB.  So, if the chipset and CPU support 32GB RAM, can the motherboard limit this to 16GB max? I haven't opened the laptop to look at the motherboard, and I haven't found the motherboard specified yet. What else may HP have done to limit the maximum supported RAM of this laptop to only 16GB? Both the RAM slots are available, so I can easily replace both units with single 16GB SO-DIMMs.  I haven't got two 16GB SO-DIMMs available to try, has anyone else tried?

My specific question is with the ASUS M3N78-VM motherboard that my home server uses. I currently have 4x2GB installed for a total of 8GB but I was hoping to upgrade to say 16GB (4x4GB). The official specifications of that motherboard says it only supports up to 8GB but it was released back when only 2GB sticks were available. What, if any, would prevent it from working with 4GB sticks now that 4GB sticks are available?  My general question is with motherboards in general... what would prevent a motherboard from working with bigger sticks if its all just the same type (DDR2 for example and same speeds) of memory?


A friend of mine as a child lent me a sci-fi book that I enjoyed at the time but lost track of.  I've tried searching for it over the years, but having only a few scant details of the story (and no title/author), I haven't had much luck.  The story takes place on a planet that is a sister planet or moon of the main colonized planet in the system.  It is/was used as a prison planet and is completely colonized by exiled families from the main planet.  The main character in the novel is on some kind of path of discovery, trying to find out the origins of the planet that have been lost in antiquity, if I remember correctly.  I remember that he travels to different portions of the planet, meeting with various inhabitants and picking up pieces of their culture, tech and/or powers.  One such culture teaches him to communicate with the living planet, allowing him to bend the 'earth' itself to his will.  He learns this skill by jumping off of a cliff and allowing the ground to 'swallow' him, cushioning his fall. In one scene he is taken prisoner and is unable to escape, even though the cell is made of stone, because the shaped stone is no longer 'alive' in a way that he can communicate with it.  At another point he uses this power to sink an entire island or continent, killing everyone on it, (to what end I don't recall) and the sounds of their dying haunts his head afterwards.  Unfortunately, these specific pieces are about all I can remember other than some vague impressions.  Hopefully they're recognizable to someone!

I read a book 10+ years ago where the world was ruled by various factions, each one had a special ability of some sort. The main characters faction had regenerative ability. Another faction had the ability to speed up or slow down time. I am not sure of the plot, but I know at one point he is injured so badly he starts growing a clone which he attempts to kill, but comes back later in the story.    Any ideas?


I am sorry if this is a duplicate question, but I failed to find the existing one. How can I make text of the notes in the page on the right to appear consistently with the left one? Here is my MWE:  \documentclass{beamer}  \usepackage{pgfpages} % Use notes on the 2nd screen. \setbeameroption{show notes on second screen=right}  \begin{document} \begin{frame}   \begin{itemize}   \item<1-> item 1     \note<1-> [item] {item 1}   \item<2-> item 2     \note<2-> [item] {item 2}   \end{itemize}   \visible<3->{     Text after \texttt{itemize} environment.   }   \note<3->{Text after...} \end{frame} \end{document}

Currently, (and this is even mentioned in the current , Chapter 19), in-frame notes are ordered such that those notes that used the "[item]" option are all bunched up at the end of the subject note page.  Is there a relatively painless way to change this so that you can list said "[item]" notes, say, in the middle of the notes page?  Here is a MWE to show what I'm looking for:  \documentclass{beamer}  \setbeameroption{show notes}  \begin{document}  \begin{frame}     This is boring.     \note{I want this to be line 1\par}     \note[item]{I want this to be line 2}     \note{I want this to be line 3} \end{frame}  \end{document}   The output (notes page) of this code is:    WHAT FINALLY WORKED FOR ME:  Please see the selected answer below, plus the comments attached to same, for the explanation behind the following code.  Also note that the indentation problem (as per ted_kingdom's comment below said selected answer) still exists.  \documentclass{beamer} \setbeameroption{show notes} \begin{document}   \makeatletter \def\myrenewcommand{\@ifnextchar<{\beamer@myrenewcom}{\beamer@origrenewcommand}} \def\beamer@myrenewcom<>{\@star@or@long\beamer@myrenew@command} \def\beamer@myrenew@command#1{%   \expandafter\def\expandafter\beamer@name\expandafter{\csname @orig\string#1\endcsname}%   \expandafter\let\beamer@name=#1\relax% \@ifnextchar[{\beamer@@myrenewcom{#1}}{\beamer@myrenewcomnoopt {#1}{0}}} \def\beamer@@myrenewcom#1[#2]{\@ifnextchar[{\beamer@myrenewcomopt{#1}{#2}}{\beamer@myrenewcomnoopt{#1}{#2}}} \long\def\beamer@myrenewcomnoopt#1#2#3{%   \ifnum#2=0\relax%     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sortzero\expandafter{\csname beamerx@\string#1\endcsname}}%   \else     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sort\expandafter{\csname beamerx@\string#1\endcsname}{#2}}%   \fi%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#3}% } \long\def\beamer@myrenewcomopt#1#2[#3]#4{%   \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@presort\expandafter{\csname beamerx@\string#1\endcsname}{#2}{#3}}%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#4}% }   \makeatletter \myrenewcommand<>{\beamer@inframenote}[2][]{%   \ifbeamer@inlecture%     \only#3{%       \def\beamer@temp{#1}%       \ifx\beamer@temp\beamer@itemtext%         \expandafter\gdef\expandafter\beamer@notes%         \expandafter{\beamer@notes\par\hskip30pt$\bullet$\hskip10pt#2\par}%       \else         \expandafter\gdef\expandafter\beamer@notes%          \expandafter{\beamer@notes#2\par}       \fi%     }%   \fi%   }  \begin{frame}     This is boring.     \note{I want this to be line 1}     \note[item]{I want this to be line 2}     \note[item]{I want this to be line 3}     \note{I want this to be line 4}     \note{I want this to be line 5}     \note[item]{I want this to be line 6}     \note[item]{I want this to be line 7}     \note{I want this to be line 8}     \note{I want this to be line 9}     \note[item]{I want this to be line 10} \end{frame}  \end{document}


So, normally for detecting user input, I use int and double variable types.   Example:      Scanner in = new Scanner(System.in);     int selection;     System.out.println("Welcome to RPG! (prototype name)\nIn this game, you do stuff.\nChoose a class:\n1. Soldier\n2. Knight\n3. Paladin\n4. Heavy");     selection = in.nextInt();        if(selection == 1){         System.out.print("you are a soldier");     }     else{         System.out.print(selection);     } }   This technique usually works fine for me, but I noticed that if the user inputs a letter into the int variable, the game will crash because integers can't store letters. (right?) So I tried using a String variable in its place, like this:      Scanner in = new Scanner(System.in);     String selection;     System.out.println("Welcome to RPG! (prototype name)\nIn this game, you do stuff.\nChoose a class:\n1. Soldier\n2. Knight\n3. Paladin\n4. Heavy");     selection = in.next();       if(selection == "1"){         System.out.print("you are a soldier");     }     else{         System.out.print(selection);     } }   This seemed to work at first, but as you can see, I have it set so that if the variable "selection" is equal to 1, that it will print "you are a soldier", yet this did not work, instead it printed out the "selection" variables value (1). Did I do something wrong or should I use a different type of variable?


I am almost new to blender and completely new to UV unwrapping.I have modeled a row boat following a tutorial on youtube. After completing the model, I am trying to unwrap it. But when I mark the seams and hit U to unwrap it.It shows nothing on UV/Image editor.I think I have done some serious mistake but can not figure it out.I have attached the blender file with marking all the seam:

I've gone through tutorials and get the UV Mapping to work when testing on a simple block. However, when trying this on a bigger model, the UV Mapping won't display in the UV/Image_Editor. The Eiffel Tower model is all one mesh and I select Smart UV Project. Any suggestions.


I'm new to C++. I've searched around a bit but cannot find something that helps.  Very simple program, just trying to store 'Person' objects in a Vector and access those objects. My Vector, as of now, holds one object of type 'Person'. 'Person' objects have a 'name' field. I'm simply trying to display that 'name' field. But when the program runs, nothing prints to the console.   I'm still getting comfortable with Vectors and pointers, so my vector setup may be the cause. My 'getName()' function is setup correctly. Can someone please let me know if the way I'm declaring and inserting objects into my vector, as well as the vector declaration/iteration, is correct?   #include <iostream> #include <string>  #include <ctime> #include <vector> #include "Person.h"  #include "Record.h"    //addition of a user to list  void addUser(int id, int age, std::string name, std::vector<Person*> userList)  {     Person *newPerson = new Person(id, age, name);      userList.push_back(newPerson);   }  //deletion of a user of the list by ID  void deleteUserByID(int id, std::vector<Person*> userList)  {      for(int i = 0; i < userList.size(); i++) {          if (userList.at(i)->getID() == id)         delete userList.at(i);      } }  //Print all user names in the list  void printUserList(std::vector<Person*> userList)  {     for(auto it = std::begin(v); it != std::end(v); it++)    {         std::string name = it->getName();       }   }   int main ()  {     //create vector     static std::vector<Person*> userList;      //add first user    addUser(626968231, 21, "Ryan", userList);       //print all users (just one so far)     printUserList(userList);       return 0;  }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


On my desktop I have two partition containing both windows8, one of them is an expired trial. I'm a windows based developer and I want to learn even some Linux development stuff, so I want to install Ubuntu and overwrite that expired Window 8 version. At present when my computer boot there is  a dual boot that let me to choose from which win8 start. Can I use the same dual boot to choose between windows and ubuntu? Do I have to remove that dual boot ( don't know how, but will investigate ) before installing Ubuntu? Can I reuse the already present boot manager and must overwrite the useless partition with Ubuntu?

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I'm running Ubuntu 14.04 LTS and I have a Western Digital external hard drive (Passport Ultra) mounted. I want to encrypt the entire drive. WD has Windows and Mac utilities available, but nothing for Linux/Ubuntu.  I have consulted Ubuntu help and found one article (), but the material appears to be seriously dated. The article recommends installing a utility, Gnome-disk-utility, but my attempt to do so failed owing to dependency problems which I am not sufficiently knowledgeable even to attempt to resolve. The help article also gives a routine for encrypting entirely from the terminal, but I am hesitant to try because apparently it hasn't been tested since version 10.04.  So my questions are:    is there a Gnome-disk-utility package available for 14.04 (and if so, where); or failing that  is the command line routine reliable for 14.04?   Any help would be much appreciated.

I've been a Windows power user/administrator and professional tech for years, I just made the decision to go Linux, and wow, what a difference.     Is there any decently easy way to encrypt external volumes (i.e. USB keys, external hard drives, memory sticks, etc.) that works under Ubuntu 14.04?


I am aware of the technical limitations when comparing floats, but consider the following example: import pandas as pd import numpy as np  df = pd.DataFrame({'col1': [1.12060000],                    'col2': [1.12065000]}) df Out[155]:          col1       col2 0 1.12060000 1.12065000  As you can see col2 and col1 are exactly 0.00005 apart. Now, I want to test that. I understand that this returns the wrong result because I am using decimals (df.col2 - df.col1) < 0.00005 Out[156]:  0    True dtype: bool  However, more puzzling to me are the following results (100000*df.col2 - 100000*df.col1) < 5 Out[157]:  0    True dtype: bool  while (1000000*df.col2 - 1000000*df.col1) < 50 Out[158]:  0    False dtype: bool  Why does the comparison to 5 fails and only the last one works? I thought using integers would solve the issues when comparing floats? Thanks!

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am using one of the stock background pictures for my Windows Desktop background and would like to now make a slideshow as my background. I like the current stock picture that I have and would like to figure out where Windows puts them so I can copy the picture and add it to my slideshow.  Also, I have Windows Spotlight setting for my Lock Screen background. Where does Windows 10 store those pictures? (I want to use them for the same purpose). I know they are from the Internet, so maybe they are only available on Microsofts online server?

I have these automatically changing wallpapers active on my work laptop (not activated by me) and I think the vast majority is at least high quality, some are brilliant and a few I just adore.  What is the source of these images?  I'd definitely like to download or even buy some of them.


So I recently bought a new low-price laptop, Lenovo Essential B40-30. Specs are: Intel® Celeron® Dual-Core™ N2840 2.16 GHz processor, 14", HD, 2GB DDR3  I was wondering now if I could use Lubuntu or Ubuntu on it. I'm not sure about this because I checked the certified hardware for Ubuntu and the "essential" series isn't on the , while "ThinkPad" series for example are. Is it even possible to install Ubuntu if its not on there?

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I'm wondering is there any predefined macro or something in C++ that could possible to trace back where the destructor is triggered?  It could be something like this:      class myClass{     myClass();     ~myClass();     };     myClass::~myClass(){         printf("Object destroyed in %s.\n", __TRACEBACKMACRO__);     }      int main(){     myClass tempClass;     return 0;     }   It should output something like this:      Object destroyed in main().   It's better to output the scope and namespace information as well.  Additional information: FUNCTION or func macro seems only work in functions not in structs and classes. . Any macros that work in struct and class?

I want to have a way to report the stack trace to the user if an exception is thrown. What is the best way to do this? Does it take huge amounts of extra code?  To answer questions:  I'd like it to be portable if possible. I want information to pop up, so the user can copy the stack trace and email it to me if an error comes up.


To witch release has the most stable video and what driver and where to get them.

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


I have several higher evees, one of which I am going to evolve. One evee, at cp 267, has a 70 dig attack, and the other cp 325 evee has a much weaker 40 attack. Will evolving the lower evee produce an über powerful attack? I am hoping so, as this will be my first vaporeon, and it will complete my evee team.

When activating the evolution for a caught Pokemon, it seems to amplify the Combat Power (CP). Thus it seems most beneficial to evolve your Pokemon with the highest CP, if you have multiple of the same kind.   But what I am not sure about is whether it makes an efficiency difference if you spend candies and dust to boost CP before evolving, to gain more from the amplification? Or is it more efficient to just evolve without spending, and then using the leftover candies afterwards, since they now give a bigger CP boost per candy?   I only tested with a Rattata so far, which gained +8 CP per candy before evolving, and +15 CP afterwards. I collected no numbers on the amplification efficiency though, and now ran out of materials for further testing.  Or maybe it is a balanced calculation and makes no difference at all? I would love to have some insight on that.    Some data I collected thus far: (GPC = CP gain per candy)  79 CP Weedle (GPC 6) evolved to: 84 CP Kakuna (GPC 6), evolved at 90 CP to: 297 CP Beedrill    Note: The max-CP "half circle" in the profile stayed filled roughly at the same relative position throughout the evolutions.


I am reading about Signing vs. Public-Key encryption and a question pop up in mind that is it possible to transform any signature scheme to a public-key encryption scheme?

Is it possible to construct an (asymmetric) encryption scheme from a signature scheme?  If the signature scheme is deterministic and allows  (e.g. ), then the answer is yes (create a forgery (m, sig); encrypt plaintexts using  with sig as the key; send m in clear to the signer along with ciphertexts, who can then compute sig and decrypt these ciphertexts) .  I am interested in similar reductions for probabilistic signature schemes.  What should the properties of a probabilistic signature scheme be so that it can be used for encryption?


Suppose $a$, $b$, and $c$ are integers. Prove that if $a \mid  b$ and $a  \mid  c$, then $a \mid  (b +c)$

Let $a$, $b$, and $c$ be integers, where a $\ne$ 0. Then $$ $$ (i) if $a$ | $b$ and $a$ | $c$, then $a$ | ($b+c$) $$ $$ (ii) if $a$ | $b$ then $a$|$bc$ for all integers $c$; $$ $$ (iii) if $a$ |$b$ and $b$|$c$, then $a$|$c$.  Prove that if $a$|$b$ and $b$|$c$ then $a$|$c$ using a column proof that has steps in the first column and the reason for the step in the second column.  My book is really vague. I'm not really sure what to do..  First I was thinking something like this: $a\mid b\Rightarrow b=as$ and  $b\mid c\Rightarrow c=bt$ and $a\mid c\Rightarrow c = au$ $$ $$ $b + c + c = b + 2c$  $$ $$ $=as + 2(bt+au)$  Yea then I just got lost.


I am trying to make a document containing a box with text that i want to appear a certain exact size when i print it. (Specifically I want to make a nametag that fits exactly inside a slot on my mailbox.) Here's a MWE:  \documentclass[a4paper]{article}  \begin{document} \fbox{ \begin{minipage}[c][3cm][c]{7.5cm}     words \end{minipage} } \end{document}   The problem is that when i measure the lengths in the PDF (in Preview on macOS and printed on paper), the box is not 7.5 cm by 3 cm but rather (approximately) 7.9 cm by 3.2 cm. The paper size looks fine in Preview (approx. 21 cm  by 29.7 cm).  Is this an issue with the method I used to create the box, e.g. the \fbox doesn't fit exactly around the minipage? Or is it something else? Is there a better way to do this? I'm lost.

How can I remove ALL space around TiKZ. So given MWE below, I want no space between fbox and the node box (so essentially I want to see 1 line). How to realize this?   Is this space in tikzpicture or in \fbox?   How to remove space between \fbox and node    MWE  \documentclass{article} \usepackage{tikz}  \begin{document} \fbox{%   \begin{tikzpicture}[node distance = 0.8cm and 0.2cm]%     \node[draw] (center) {CENTER}; %   \end{tikzpicture}% } \end{document}


Using the Logitech Options software, I am trying to change the screenshot customizable key to instead open the Snip & Sketch tool. While you are able to customize the key to launch an application, it requires the path to the file, however, Snip & Sketch is a Windows 10 application and does not have a file location. Is there a work around to customize the key to launch native Windows 10 applications that do not have a file path?

I want to make my own hot key for Window's 10 Snip & Sketch. I have it installed on my OS and I can run it from the search menu. However, I can not find the app location of it. Anyone know where it lives?


Sometimes I misinterpret questions and like to remove my irrelevant answer.   For the past few days I could not delete my own answers anymore on Stack Overflow. The following dialog appears after clicking the delete button:     Vote to delete this post?   Bug or new feature?

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


I am trying to give a combinatorial proof for: $$\sum_{k=0}^p (-1)^k {n \choose k} = (-1)^p {n-1 \choose p}$$ Where $p$ and $n$ are natural numbers.    We could easily see that if $p=n$ this reduces to the fact that a set has as many subsets of even cardinality, as those with odd cardinality. However, this formula suggests a relation between the even and odd cardinalities less that $p$.  Note: I'm not interested in an algebraic proof, as Pascal's identity gives a telescopic sum on the RHS.       Thank you in advance.

Given the following identity: $$\sum_{i=0}^k (-1)^i \binom ni = (-1)^k \binom {n-1}{k}.$$  This is provable by induction. However, I wonder if there is a way to prove this in a combinatorial fashion (something like subsets, groups, choosing $n$ balls from a box with $k$ balls, et cetera.)  Thank you.


I found a way to change the background colour but I couldn't find any way to use an image instead.  When you boot the computer you're presented with the lock screen before you go to the log on one, so you can choose a background image for the former easily but I couldn't find the equivalent setting for the later.  Is it possible at all?

I got irritated by the standard Windows 8 logon screen (the same one as lock screen). How do I change the background?


Is it possible to display the name of the branch in this place?    How is this done in git bash for windows?

I am using  to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file:  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes    ...  # Add git branch if its present to PS1 parse_git_branch() {  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } if [ "$color_prompt" = yes ]; then  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ ' else  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' fi unset color_prompt force_color_prompt   As a result I now get:    so it works. But why has the coloring of my user@host been removed? And I would also expect that the branch name should be colored. Before it looked like this:    UPDATE: I have now tried this guide instead:    adding this to .bashrc:  parse_git_branch() {      git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "   and that works:    Notice in .bashrc I also have this (default):  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes   I have yet to find the reason why that snippet gives the correct result and the other version does not. Any input on this?  Here is the version of my .bashrc that has the old snippet enabled that does not work:


I am getting the below error during execution of archydro. "system runtime interoperservices com exception (0x80004005): error HRESULT E_FAIL"  I tried all options available on internet to solve this but no luck.  What is the cause of these type of issues? Is this related to application or os ? What is the perfect fix if it is caused by arcgis/hydro or os ?  I am using windows7, 64-bit, Arcgis10.

I am trying to run a function from  in ArcMap 10.1; Sink evaluation. But before it can finish it returns an error message, that, frankly, I don't understand at all.  It goes System.runtime.interopservices.comexception (0x80004005): error hresult e_fail .  Can anyone help me solve this? I have tried all I can think of. Run the function from the toolbox instead of dropdown menus, shorten paths, restart ArcMap, reinstall AHT, open new map documents, restart my computer, wait till next day and see if it automagically have fixed itself...   After searching this forum I found a , although it's got no answers. Now I'm all out of ideas, can anyone please help me?!    I'm using ArcMap 10.1 SP1 basic license and Windows 7.    I think I have narrowed it down a bit, still not clear what's wrong though. Sink evaluation uses a series of functions in Arcmap, of which one is Zonal statistics as table. That's the one it gets stuck on. The input raster somehow does not exist, path unknown. I guess this is some intermediary raster.       After consulting the Arc Hydro team, I got the advice not to use grids stored in a gdb (which I didn't). I have also tried to change target locations, thanks to @G.Oxsen. Unfortunately neither of those solved the issue. According to the Arc Hydro team, GPL0 that I asked about earlier is an in-memory grid, so probably no problem there.   I am currently pursuing that it is related to the installation of SP1. Anyone out there using AHT with SP1 and got Sink evaluation working?    Uninstalling SP1 did not change anything, unfortunately. Still working on this, but with less intensity. Seems like I'll have to find workarounds...    By reducing the number of sinks in need of processing I managed to get Sink evaluation running. Having the files not stored in a gdb seem to help as well, as mentioned earlier, and using integer grids.  Changing the "Maximum number of unique values to render" in ArcMap Options (Customize menu), tab Raster --> Raster dataset is another tip that I got (from the Arc Hydro Team). Restarting ArcMap after running every one or two functions also helps keeping things stable.


In windows we can find the max memory process from task manager process tab(ctrl+sht+esc) and can kill it.  Is there a similar way to find out the process running ordered by the memory usage and kill the max memory process ?  Is there any GUI tool like the task manager in windows for Ubuntu ?

I would like to see what are all the applications/process being run at present in my Ubuntu system. is it possible to get the list of running applications, and how to do so.


Today I had a test about IMO which is pretty hard though, I have worked on a combinatoric question that I found a special formula: $$\sum_{k=0}^n \left(k+1\right)\left(C^n_k\right)^2 = \dfrac{n+2}{2} C^{2n}_n$$ I don't know it is true or not, but it seems true because I have tested for some small $n$ and it is true. I have thought of using binomial theorem and breaking the $C^{n}_k$, but I still can't prove it. Luckily, I can do the question without using this formula, but I still someone can prove this formula. Tips and comments are welcome too.

If $C_0, C_1, C_2,..., C_n$ denote the binomial cofficients in the expansion of $(1+x)^n$ then find $$C_{0}^2+2C_{1}^2 + 3C_{2}^2  +\dots+ (n+1)C_{n}^2.$$


x is a real number between 0 and 1  $ \lim_{n\rightarrow\infty} x ^ {\left(\frac 1 n\right)} = 1 $  SO far i know you need to do this to prove it:  let b>1, prove that $\root n \of b \rightarrow 1$ as $n \rightarrow\infty$  I was given this hint: let $a_n = \root n \of b - 1$ , prove that  $a_n \rightarrow 0$  Thanks!

How do I prove that:   $\lim \limits_{n\to \infty}2^{1/n}=1$  Thank you very much.


Chrome 29.0.1547.57:  0.0095 .toFixed(3) // "0.009" 0.1095 .toFixed(3) // "0.110" 1.1095 .toFixed(3) // "1.109"   What's wrong with this function? I know that I can write my own function, the question here is why stock function is so buggy? According to MDN it was implemented in JS 1.5 so it's not new. Or maybe I don't understand this function right?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Yet again a conjecture!  Motivated by  and a , I conjecture that     For distinct, positive integers $a,b$, the only solution to this equation $$a^b-b^a=a+b\tag1$$ is $(a,b)=(2,5).$   It is of anticipation that there will be much fewer solutions for increasing $a,b$ since the values that $a^b-b^a$ are extremely restricted due to the small growth rate of $a+b$.  Plotting  on Desmos strongly suggests that are no other solutions other than those on the line $y=x$.  Is there something obvious I'm missing to solve this?

Prompted by , I tried to show that $(2,5)$ is the only solution in positive integers of $x^y - y^x = x+y$ (which would show, a fortiori, that it's the only solution in primes). It's convenient to rewrite the equation as $f(x,y) = x^y - y^x - x - y = 0$.  With the aid of some trial calculations, I reasoned informally as follows:  If $x=1$ then $f(x,y) = -2y=0$, implying $y=0$.  If $x=2$ and $y \leq 5$, then a case-by-case check shows that only $(2,5)$ is a solution.  If $(x,y) = (2,6)$ then $f(x,y) = 20$, and as $y$ increases above $6$, $f(x,y)$ increases.  If $x \geq 3$ and $y \leq x$ then $f(x,y) < 0$.   If $x \geq 3$ and $y=x+1$, then $f(x,y)>0$, and as $y$ increases above $x+1$, $f(x,y)$ increases.  How can the above be made into a rigorous proof?  I've included calculus as a tag since it could be useful in showing under what conditions $f(x,y)$ is an increasing function of $y$ (viewing it as a real variable).


What is the meaning of "it was to this" in the following sentence?  It was to this remote, impregnable fortress that Hitler, and a coterie of his most fanatical supporters, intended to retreat when the Wehrmacht was beaten. -Catherine Bailey Fey's war-

Is there a place for using these pleonasms:  "It is John who runs." (instead of: "John runs.")  "It was congress that legislated." (instead of: "Congress legislated.")   ? It would seem to have its use only when what comes after the "that" is a long clause: Example from the intro. of :  It is an old observation that the best writers sometimes disregard the rules of rhetoric.  could be rewritten as:  That the best writers sometimes disregard the rules of rhetoric is an old observation.  But this isn't conciser.


Can a Sun Soul monk use Radiant Sun bolt as an action and then again as a bonus action as well?  There's another question, , but it is about using Radiant Sun Bolt once after an unarmed attack, so it does not answer my question. I want to Radiant Sun Bolt a target as an action, then as a bonus action Radiant Sun Bolt the same target.

Can you use Radiant Sun Bolt as your bonus attack for Martial Arts?     "When you use the Attack action with an unarmed strike or a monk weapon on your turn, you can make one unarmed strike as a bonus action."    For example, can I hit the guy then shoot a bolt at someone else?


I'm developing an Android application, I have to implement a function that allow me to draw different points with canvas.  I have realized this function that works:  public class MainActivity extends AppCompatActivity {     public Paint paint;     public List<Point> coords;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(new DrawingView(this));          paint = new Paint();         coords = new ArrayList();          ImageView iv = new ImageView(getApplicationContext());         iv.setImageResource(R.drawable.car);         iv.setScaleType(ImageView.ScaleType.CENTER_INSIDE);         LinearLayout.LayoutParams parms = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT);         iv.setLayoutParams(parms);     }      class DrawingView extends SurfaceView {          private final SurfaceHolder surfaceHolder;         private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);          public DrawingView(Context context) {             super(context);             surfaceHolder = getHolder();             paint.setColor(Color.BLACK);             paint.setStyle(Paint.Style.FILL);         }          @Override         public boolean onTouchEvent(MotionEvent event) {             if(event.getAction() == MotionEvent.ACTION_DOWN) {               addpoint(event.getX(), event.getY());             }             return false;         }          public void addpoint(float x, float y){              Point point = new Point();             point.x = Math.round(x);             point.y = Math.round(y);             coords.add(point);              for(int i = 0; i< coords.size(); i++) {                 Canvas canvas = surfaceHolder.lockCanvas();                 canvas.drawColor(Color.WHITE);                 canvas.drawCircle(coords.get(i).x, coords.get(i).y, 20, paint);                 surfaceHolder.unlockCanvasAndPost(canvas);             }         }     } }   I have a problem, when i rotate my device the orientation change, and all points drawed disappear.  How i can keep all points ?

I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example:  package com.android.hello;  import android.app.Activity; import android.os.Bundle; import android.widget.TextView;  public class HelloAndroid extends Activity {    private TextView mTextView = null;    /** Called when the activity is first created. */   @Override   public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);      mTextView = new TextView(this);      if (savedInstanceState == null) {        mTextView.setText("Welcome to HelloAndroid!");     } else {        mTextView.setText("Welcome back.");     }      setContentView(mTextView);   } }   I thought it would be enough for the simplest case, but it always responds with the first message, no matter how I navigate away from the app.  I'm sure the solution is as simple as overriding onPause or something like that, but I've been poking away in the documentation for 30 minutes or so and haven't found anything obvious.


I have two tables that are joined together.   A has many B  Normally you would do:   select * from a,b where b.a_id = a.id   To get all of the records from a that has a record in b.   How do I get just the records in a that does not have anything in b?


My friend installed Ubuntu along side windows xp so I could dual boot, after a while I decided to delete the Ubuntu partition unaware that you need the xp recovery disk or something like that to fix windows. So every time I start my computer the grub rescue prompt appearers so is there a way for booting window from grub rescue without the window xp recovery disk?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


At school I learnt the  to remember the resulting direction of different phenomena, such as geometrical cross products, mechanical torque, or the direction a screw will move when turning it. This directions are however decided by humans, and we could have easily defined the directions in the opposite way.  However the right hand rule also predicts phenomena which is not arbitrarily set by humans, but is intrinsic to the nature. If you have a coil in which you put some current, and the nature creates a magnetic field in a direction perpendicular to it, the direction depends on the right hand rule.  My question is, why this direction and not the opposite? Nature tends to be symmetric and not have apparent preferences for two equal options, so in a so why is one direction preferred over the other one? Why doesn't a "left hand" rule apply?

In definition of vector multiplication, the direction of the resulting vector is given by the right hand rule. However I don't know any mathematical requirement to pick right hand instead of left for this purpose. Is there any?


I'm having problems enumerating my bibliography list. I'm using these lines to define my bibliography style:  \usepackage[sort,authoryear]{natbib} \bibliographystyle{apalike}   I know I could use:  \usepackage[sort,numbers]{natbib} \bibliographystyle{ieeetr}   And it would result in numbered citations list, like:  [1] Author. 2015. Paper. [2] Second Author. 2011. Paper. ...   But the problem is that references change (\citep and \cite). In text instead of reference (Author, 2015) it becomes numbers like [1]. I want to keep my apalike style references, and add numbers to each item in my bibliography list. How do I do that? I tried adding \begin{enumerare} and \item near each \bibitem  and \end{enumerare}. It didn't work.

I am having difficulties with setting up the layout of my bibliography. I would like to have a numeric style which does a none sorting so its order is as it appears in the text. Plus I would like my bibliography entry to look like this (so authoryear style):     References      [1] Surname, Y.G. Year. Title ...   I don't know what to do and can't come up with anymore keywords to look for it. I just started using biblatex.  My setup is as follows:  \documentclass[12pt,a4paper]{scrartcl} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage{textcomp} \usepackage{hyperref}  \usepackage[     backend=biber,     bibstyle=authoryear,     citestyle=numeric-comp     sorting=none, ]{biblatex}  \bibliography{mybib}  \begin{document}  Structures \cite{definition}  \newpage  \printbibliography  \end{document}


Which of the following way of using . punctuation is correct? There are two sentences here.  Donald Trump became the President of the U.S. The election took place in 2016.    Donald Trump became the President of the U.S.. The election took place in 2016.

What if an abbreviation is at the end of a declarative sentence? Should I duplicate a full stop sign? If the following sentence begins with a proper noun, not putting two periods may be confusing, in theory. Edit: It used to be 'contraction' instead of 'abbreviation'.


Hi I've been looking everywhere and I found an answer but it still doesn't apply to what I'm asking. I'm new with Cycles and have trouble with it, but I was wondering how I can combine more then two normal maps? I have different image textures and want to apply them all to a model without having to adjust a factor or whatever, and this is my set up so far:    If I can get some help and get an uncomplicated node set up that would be amazing, anyways thanks guys!

I made a high poly model and then baked its textures onto a low poly model. Now I want to give another normal map's details to the model. How can this be done?


I am trying to understand Forms.Timers better. As I understand, a timer is executed on a thread from the thread pool, in this case you should not update a control on the form from the timer (because this is not the thread that created this control).  But, in the examples provided by microsoft (  ) thay are updating a control from a timer.  So, my question is, is there any problem updating a control (like a label) from a timer (without a control.Invoke call)?  If not, why not? (because this is a thread from the thread pool and not the thread that created the control)

I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding functionality to. One of the additions is a warning which needs to be raised when the current time nears a specified value (a deadline). My intention is to check the time once an hour until there is less than an hour until the deadline, then display warnings at specified intervals until the time's up.  The user needs to be able to continue to use the app up to and even after the deadline, but they need to periodically be made aware of the deadline's proximity.   The app does not use System.Threading yet and my knowledge of it is limited at this time. I do know that there are 3 different Timer() methods available:    System.Threading.Timer(), Windows.Forms.Timer() and  System.Timers.Timer()   My question is, which is the best way to go with this? I attempted to use the threaded timer, but since WinForms are not thread safe I got a run time error trying to access another class. Is it worth making the class/form thread safe? Am I completely off track?  Thanks.


I need to take some online tests for school. This website tells me I need Flash Player 11.3.0 or higher. As far as I can see that is not yet avaible for Linux. I use Ubuntu 12.04 LTS and Chromium. Is there a way I can work around it?  Greetz. Rob.

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -   - a particular online flash game still requests that I update to the latest flash player.  I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.  Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?


I know the Federation did away with currency, and for the most part a Starfleet Officer would never need currency because what would they do with it on a Starship?  Shore leave would most often occur on Starfleet installations or Federation planets, again negating the need for any form of currency.  But for people serving on neutral bases such as Deep Space Nine or serving as attaches for other Alpha/Beta Quadrant powers they would be disadvantaged without access to Latinum.   All of the entertainment spaces I can think of except the Replimat on DS9 would have required some form of payment.  You never see anyone paying for something at Quarks, so it is possible Quark had an arrangement with Starfleet to either pay a tab directly, or to trade goods for services.  But then you see Dax playing Tongo with Quark and using Latinum so at some point she acquired some either by trading goods for services or by receiving some sort of Starfleet salary.  I wondered if it was perhaps play money, but Ezri references Quark owing Jadzia Latinum after she joins the crew and I assume there is more evidence that they were playing with real Latinum.  Has there ever been any sort of explanation as to how Starfleet Officers pay for items outside of the Federation?

I've always wondered this ... I recall fleeting references to the lack of a money system in TNG (something about abandoning the quest for material wealth), but was it ever explained why and how and when that came about? Is there a canonical explanation? And, what motivates them in that case -- why go to work if you're not getting paid and obviously, don't need to be paid because there's no money to buy anything? Were all the main races moneyless?