How do I avoid Post 11, Post 12" from 4th page of Pagination?   Total number of posts in my blog ( say 15 ) Maximum number of posts, I want to show ( say $max = 10) Posts per page should be 3 only.        $max = 10;      $items_per_page = 3;    $paged = ( get_query_var('paged') > 0 ) ? get_query_var('paged') : 1;      $query = new WP_Query( array( 'posts_per_page' => $items_per_page  , 'paged' => $paged ) );       if( $query->have_posts() ) {       while( $query->have_posts() ) {        $query->the_post();        the_title();       }      }       $total = ceil( $max / $items_per_page );  // 4     echo paginate_links( array( 'total' => $total ) );       wp_reset_postdata();      wp_reset_query();    output  Pagination  Page 1      : Post 1, Post 2, Post 3 Page 2      : Post 4, Post 5, Post 6 Page 3      : Post 7, Post 8, Post 9 Page 4      : Post 10, Post 11, Post 12 ==> should show only "Post 10"   Note  From my question, i want to show 10 posts only. paginate_links() generates 4 links. site.com/page/1/ = shows P1, P2, P3 site.com/page/2/ = shows P4, P5, P6 site.com/page/3/ = shows P7, P8, P9 site.com/page/4/ = shows P10, P11, P12 => Here i need to avoid P11, P12


Is it true that for algebraic sets $V,W$ we have $I(V \times W ) =I(V) + I(W)$?

This is a follow up question to my previous question  Let $k$ be a field and $V \subseteq \Bbb{A}^n$ and $W \subseteq \Bbb{A}^m$ be algebraic sets. Then it should be true that $I(V \times W ) = I(V) + I(W)$ where by $I(V)$ here we mean the extension of $I(V)k[x_1,\ldots,x_{m+n}]$. Now I believe I have proven this (see the proof at the bottom of my question) but when I look at Martin's answer , it is instead claimed that we  actually have  $$I(V \times W )= \sqrt{I(V) + I(W)},$$  and for $I(V) + I(W)$ to be a radical ideal we need $k$ to be algebraically closed.           My question is: What's going on here? I believe my claim is true even without the assumption that $k$ is algebraically closed.           Here's a proof user Sanchez told me of, which I have simplified:       First it is clear that we always have $I(V) + I(W) \subseteq I(V \times W)$. For the reverse inclusion consider a polynomial $f \in I(V \times W)$. Then we can always write $$f = \sum_{i=1}^n f_ig_i$$ where $f_i \in k[x_1,\ldots,x_n]$ and $g_i \in k[x_{n+1},\ldots,x_{m+n}]$. Now take any $b' \in W$. If for all $i$ we have $g_i(b') = 0$ then since $b'$ is arbitrary, $g_i \in I(W)$ for all $i$. Then $f \in I(W) \subseteq I(V ) + I(w)$ and we are done. Otherwise suppose there exists $b \in W$  and $i$ such that $g_i(b) \neq 0$. Then wlog we may suppose that  $g_1(b) \neq 0$.   Next, $\sum f_ig_i(b) = 0 $ on all of $V$ by assumption of $f \in I(V \times W)$. So $\sum f_i g_i(b) = p$ for some $p \in I(V)$. Now write $$f_1 = \frac{ p - g_2(b) f_2 + \ldots g_n(b)f_n}{g_1(b)}.$$  Substituting this for $f_1$ in $\sum f_ig_i$, followed by taking things mod $I(V)$ we get an  expression with only $n-1$ terms $\mod{I(V)}$. Continuing this process we will finally get an expression with $0$ terms $\mod{I(V)}$ so that $f \in I(V)$. This shows $I(V \times W) \subseteq I(V) + I(W)$ which completes the proof.


I've got a recipe that calls for some buttermilk, but none on-hand. Is there some way I could use some common ingredient(s) as a substitute?


Show $(x+y)^a > x^a + y^a$ for $x,y>0$ and $a>1$

This is a pretty straightforward question. I want to show $(x+y)^a > x^a + y^a$ for $x,y>0$ and $a>1$.  One way would be this. WLOG, suppose $x \leq y$. Then:  $(1+\frac{x}{y})^a >1+\frac{x}{y} \geq 1+(\frac{x}{y})^a$.  Noting that $\frac{1}{y^a}t_1>\frac{1}{y^a}t_2 \implies t_1 > t_2$, it follows that $(x+y)^a > x^a + y^a$.  But what other ways are there to show this inequality?


Invalid video mode specification `text' with no further display

My Ubuntu server crashed and after recovering with fsck, the server starts with a prompt:  error: invalid video mode specification `text'. Booting in blind mode.   There is no further echo of my inputs. However, the recovery mode seems to work perfectly.  I tried to do a grub-install and grub-update, which didn't work. Anyone knows how to fix this?


I need to rewrite the following function using only the python standard library.  def request_release_info(self):     req = requests.get('https://api.github.com/repos/user/repo/releases/latest',                        auth=('user', 'token'))     content = req.json()     return content   So I need to replace Requests by Urllib/Urllib2 but I'm unable to find a way to pass my username and my token in a similar way.  Thank you for your help !


"Let P(n) be the statement that (n)! < (n)^n, where is an integer greater than 1. Prove by mathematical induction that P(n) is true for all integers n greater than 1."  I've written  Basic step   Show that P(2) is true:  2! < (2)^2   1*2 < 2*2  2 < 4 (which is true)  Thus we've proven that the first step is true.   Inductive hypothesis  Assume P(k) => ((k)! < (k)^k ) is true   Inductive step  Show that P(k+1) is true:  (k+1)! < (k+1)^(k+1)  1*2*3*...(k)(k+1) < (k+1)(k+1)(k+1)...(k+1)  1*2*3*...(k^2 + k ) < (k+1)(k+1)(k+1)...*(k+1)    I'm not sure on how to continue from here...


Expected Sum of n numbers after m random opeartions on range of n numbers.

I have been given 25 objects numbered from 1 to 25 and a set S = {-2, -1, 0, 1, 2}. I have to choose a random number from the given set and add it to all objects from 1 to 5. Again choose a random number and add it to objects from 15 to 25 and again choose a random number and add it to objects from 5 to 12, indexing of objects is 1 based.What will be the expected sum of all objects after all 3 turns?


How do I install, learn and benefit maximally by using LaTeX

I am new to LaTeX, but learnt that it's the best document preparation as researchers. I have downloaded ProTeX, but I do not know anything about coding and programming, how do I ( I am a PhD mechanical engineering student ) start enjoying what the great researchers like you have been enjoying by optimally using it? What other program(s) do I need to download to maximally make the best of this document preparation? How do I collaborate with other researchers of different accent ( speaking a different language )? How can I import or export to MS word? Are there good or even better reference managers like EndNote on this platform? I would appreciate answers from intelligent professional / researchers.  Thank you.


Is 'action this matter' a correct phrase? Is it correct to say "Pls check with Mr. X to ascertain whether his team or we should action this matter."


Term for when the sound of a movie starts before the image

Is there a technical term for when the first sound of a movie is heard while the screen is still black? A hypothetical example: we hear the sound of howling wind for a second or two before we see an establishing shot of a mountain range.


How to merge multiple rows in one single column field with given condition in SQL SERVER 2008

I am using SQL Server 2008 and I need to implement this :-> I get a result like this :  Table:-sql query ..............   acc_no           name    001-000001       John    001-000001       Bob    001-000001       James    001-000002       Sam    001-000002       Bin     001-000002       Dus   So, the condition is that; multiple persons can have same acc_no. So i want following result:   acc_no           name    001-000001       John,Bob,James    001-000002       Sam,Bin,Dus   There are other conditions for displaying the results but I got stuck in displaying this format.


Explain why a stationary object on an inclined plane may start moving after a random time?

An object (such as a mug of coffee, expensive phone, laptop) is placed on an inclined plane and remains stationary due to friction. After an interval (observed as random) it will begin to move (and hence probably fall off).  Explain this in terms of classical mechanics.   (My guess is that it's due to a tiny amount of vibrational energy reducing the normal moment and hence the frictional force).


How would one detect antihydrogen in the universe?

Since the spectra of hydrogen and  are the same, how do astronomers know which one they're detecting? Is, perhaps, the  in antihydrogen different?


What we have: extremely cheap dedicated server with configured corp mail server. Unreliable work plus it has permanent troubles with mails verifying (configured by another person).  What we need: at least several important addresses with 99% reliability.  Idea how to reach that: Pay to mail provider (right now i'm thinking about G Suite) for several high-reliable addresses, leaving every other user on dedicated server.  So, what we must get at the end - two MX servers, same mail domain, each server handles it's own addresses. I'm hardware engineer, so that part of configuring is totally unclear for me - is it possible to make such configuration? I know that it's possible to add second MX server with same address list for redundancy, but what about my variant? Is it even possible somehow to make routing inbound mails between different servers? (as i understood outbound mails won't be a problem at all).  For saving your time - i know that normal reconfiguration of dedicated server or full migration to G Suite is much more easier, but sadly both options aren't for me :(  Also question for G Suite experienced users - is it possible to setup some sort of mail relaying in G Suite? For example, i'm placing 1 MX record with google MX server in domain. If letter arrives at a@domain.com - it goes into G suite address, and if it's b@domain.com - google MX relays it to another server.com. I'm not so good in MX technology, so maybe my question is dumb :) But such solution will also work well in my case.


Why does `which` point to a different binary?

I have 2 versions of curl installed on my system, one with http2 support.   I thought I could use which to point to the binary, but it doesn't seem to work the way I expect.  $ curl --http2 -I https://something.example.com curl: (1) Unsupported protocol $ which curl /usr/local/bin/curl $ /usr/local/bin/curl --http2 -I https://something.example.com HTTP/2 200   server: nginx/1.10.0 (Ubuntu)   date: Thu, 08 Jun 2017 20:55:09 GMT   content-length: 928   last-modified: Thu, 08 Jun 2017 19:43:10 GMT   cache-control: public, max-age=31536000   accept-ranges: bytes     which is pointing to my locally built binary /usr/local/bin/curl but the actual command is executing the package binary /usr/bin/curl  I don't have an alias for curl, so can someone please explain to me why this is so? And what command should I run to find the actual path to curl, which I happen to know is /usr/bin/curl


So, I'm using Ubuntu desktop and have installed Apache, PHP and MySQL, all working great.  I want to use start adding files and folders to /var/www using the file manager, but my user doesn't have permissions to do this.  Any ideas what permissions I need to update?


Inverse of function is continuous or not?

If $f:I\subseteq \Bbb R \rightarrow \Bbb R$ is injective and everywhere continuous in its domain then $f^{-1}$ is also continuous everywhere. Here  $I$ cannot be discrete set and $f$ is single variable function The above statement is always correct or not? I thought it is always correct. Am I correct or not?


Currently I have this:  However, I find this font more appealing:  How does on generally figure out which font is which (without formal training in typography), and how in this particular case to use the font specified in the second image? I know this is a rather ad hoc question, and SO favours more "conceptual" ones, but I simply cannot think of a better venue to post this question. EDIT: The  to the original pdf. I've used the pdffont and it mentioned something like Garamond and MacTimes.


How can I convert Input.gyro.attitude into a float?

I am working on a VR project with a 360 video in it. I am trying to set the start rotation of the video to the same rotation as my phones.   How can I convert Input.gyro.attitude to a float? That way I can use it in this line of code: videoSphere.transform.Rotate(initialX - Input.gyro.rotationRateUnbiased.x, initialY - Input.gyro.rotationRateUnbiased.y, float);  Help is really appreciated!


I'm very new to Java and I'm having an issue with adding a set to a list of sets. The code builds fine but gives me a Null pointer exception whenever I run it, and I have no idea why. Here it is:  public class Jaccard{  List<SentenceUtils> sents; List<Set> shingleSets;  public Jaccard( List<SentenceUtils> list ){      sents = list;     generateShingleSets(); }  private void generateShingleSets(){      for(int i = 0; i < sents.size(); i++){          String[] shingle = sents.get(i).getShingles();         Set<String> setShingles = new HashSet<>(Arrays.asList(shingle));       }     shingleSets.add(setShingles); }   Please help if you can.


Novel or series about humans who deal with monsters who come out at night

I recall reading a book or series of novels published in the 70s or 80s about an embattled group of humans who were struggling with monstrous creatures who only appeared at night and the days are getting shorter.   I'm thinking this was in the fantasy genre as I recall a map at the beginning of the book.  In some ways similar to the "Riddick/Pitch Black" film series. Very atmospheric, but not sci-fi, and definitely without Vin Diesel.


Proving an inequality without using $ AM\geq GM$

I was trying to do this question. Let $a_1\times a_2\times a_3\times ....\times a_n = 1$ where all ai are positive real numbers. We have to prove that $$(1+a_1)(1+a_2)....(1+a_n) \geq 2^n$$ How to go about proving this since we can't use $ AM\geq GM$? Although this inequality seems obvious. Thanks


Got a corrupt BTRFS partition, but is still usable, how to convert it to ext4?

I've got a corrupt btrfs partition, and also because of its low speed, I am thinking of 'converting' it to ext4, how can I convert a root partition from btrfs to ext4 without loosing the ability to boot, .. I am willing to do it manually, but I am not sure how to do it, or is there a better option ?   # btrfsck /dev/sda1 root 257 inode 3064 errors 400 root 257 inode 43998 errors 400 root 257 inode 44001 errors 400 root 257 inode 44003 errors 400 root 257 inode 44007 errors 400 root 257 inode 100607 errors 400 found 1677811712 bytes used err is 1 total csum bytes: 1430484 total tree bytes: 201265152 total fs tree bytes: 186617856 btree space waste bytes: 51677064 file data blocks allocated: 1636151296  referenced 2796367872 Btrfs Btrfs v0.19   /etc/fstab  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda1 during installation UUID=f46eee48-3256-4e22-9928-4743074ba775 /               btrfs   defaults,subvol=@,compress-force 0       1 # /home was on /dev/sda1 during installation UUID=f46eee48-3256-4e22-9928-4743074ba775 /home           btrfs   defaults,subvol=@home,compress-force 0       2 /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0   This will not work, since it was a btrfs partition all along:


I have four foreach loops that iterate through the collections and based on a condition do something.   Here is the code that I am writing now:  boolean breakFlag = false; String valueFromObj2 = null; String valueFromObj4 = null; for(Object1 object1: objects){   for(Object2 object2: object1){     // I get some value from object2     valueFromObj2 = object2.getSomeValue();     for(Object3 object3 : object2){       for(Object4 object4: object3){        // Finally I get some value from Object4.        valueFromObj4 = object4.getSomeValue();        // Compare with valueFromObj2 to decide either to break all the foreach loop        breakFlag = compareTwoVariable(valueFromObj2, valueFromObj4 );        if(breakFlag){break;}       } // fourth loop ends here       if(breakFlag){break;}     } // third loop ends here     if(breakFlag){break;}   } // second loop ends here   if(breakFlag){break;} } // first loop ends here   The main object (objects in the code) comes from a third-party provider SDK, so I cannot change anything on that portion. I want to ask the Stack Overflow community if there is a better approach to break all the four foreach loops. Or if there is any other way to refactor this code to make it more readable and maintainable.


Show that all roots of a Polynomial must be real numbers

I have a polynomial $p(z) = (z+i)^{100} - (z-i)^{100}$ and I am trying to show that all roots should be real. I was thinking I should use the Fundamental Theorem of Algebra which says that every non-constant polynomial has at least one zero in C. I thought maybe I needed to prove that $p(z)$ has no complex coefficients and hence no zeros would be in C. However I am not sure if I am on the right track and if I am, where can I go from there. If the exponents were smaller, I would probably expand the function and check the coefficients like that. The number being too big here, I am guessing I am missing a more elegant solution. Another idea would be to try to find a root or two and and see if there is a pattern whereby I can show that all roots are real. Is this possible? How would I proceed to find any such root?


I am writing my thesis and need to do this with apa citation style.  I used the following code in my main document:  \usepackage[backend=biber,style=apa,sorting=none,natbib=true]{biblatex} \addbibresource{library.bib}  \usepackage[autostyle=true]{csquotes}    and in the end of my main document..  \printbibliography[heading=bibintoc,[title={References}]   However I always get this error:     "Undefined control sequence.   \printbibliography[heading=bibintoc,[title={References}]"   Furthermore in my references table, I get (yearmonthday) instead of (2015)e.g. and the references are not alphabetically sorted.


Find a vector equation for the line through the point $(a,b,c)$ which is normal to the plane $\cdots$

Find a vector equation for the line through the point $(a,b,c)$ which is normal to the plane through $P(x_1,y_1,z_1), Q(x_2,y_2,z_2) $and $R(x_3,y_3,z_3)$  What would the process be to answer a question like this?


Using a method of derived class through pointer to base class in C++

in my program I have 2 headers (IP and MAC headers) that are 'sons' of GeneralHeader. All General, IP and MAC headers classes have PrintMe() function. In addition, I have a Packet class that holds list of GeneralHeaders (the list actually may have IP or MAC headers: (without IP defenition, to shorten):  //Packet.h      class GeneralHeader {     public:         bool Valid;         HeaderType_t HeaderType; // MAC or IP         virtual void PrintMe();     };      class HW_MACHeader: public GeneralHeader {     public:         long unsigned DestAddr:48;         long unsigned SourceAddr:48;         virtual void PrintMe();     };      struct NetworkPacket_t {         NetworkPacket_t();         list<GeneralHeader> Headers;//TODO GeneralHeader         void PrintMe();     };   I have dificulty to implement the PrintMe() method that will print the list of GeneralHeaders using the appropriate for MAC or IP PrintMe() method (not the base PrintMe() of GeneralHeader):  //Packet.cpp  //This implementation prints GeneralHeaders :( //(although MAC headers were added to the Headers list)  void NetworkPacket_t::PrintMe() {     list<GeneralHeader>::iterator it_H;     for (it_H = Headers.begin(); it_H != Headers.end(); ++it_H) {         it_H->PrintMe();     }; };   Another try was to cast the iterator it_H to appropriate MAC or IP header (according to HeaderType), but whichever way i tried to cast it, it did not work, e.g.:  //Packet.cpp //Casting implementation //Here I get run error:  //terminate called after throwing an instance of 'std::bad_cast'  void NetworkPacket_t::PrintMe() {     list<GeneralHeader>::iterator it_H;     for (it_H = Headers.begin(); it_H != Headers.end(); ++it_H) {         switch (it_H->HeaderType) {         case General_Header_type:             std::cout << " General Header " << endl;             it_H->PrintMe();             break;         case MAC_Header_type:             dynamic_cast<HW_MACHeader&>(*it_H).PrintMe();             break;         default:             std::cout << " default" << endl;         };     }; };   I really appreciate any help you can prvide


I am using Ubuntu 14.04 LTS. Since an update late yesterday, my wi-fi does not  work. I receive the following message Under System Settings ==> Network  "The system network services are not compatible with this version"  The wi-fi worked well previous to the update. Seems like the update had a problem.  The problem was at least partially corrected temporally by using the Advanced  Features on the GRUB menu and pick the Network option. This must be done on each boot.  I then ran Software Updater. It looks like the system update fixed this network problem,


I am new to GIS application world. I would like to ask what are the other alternatives to   in the market preferably open source?


Badge request: "Practically Perfect in Every Way"

Bronze/Silver/Gold badges awarded for having 10/50/200 questions which have not had any edits.  Includes questions at least a week old that are still open.  Encourages people to review their questions before submitting (some people like to submit, then review, but by the time they've submitted the edited version it's halfway down the main page and gets a bump, even within the 5 minute edit window).


Is significance of the p-value reliable with extremely small sample sizes?

As I'm completely new to statistics and clinical trials, I would ask you for help and clarification.  Let's assume we have 2 really small samples (each of n = 2, or so) derived from two normally distributed, infinite populations (with sigma of each being unknown). We would like to check whether the means of those populations are significantly different (alpha = 0.05). To do so, we perform a t-test for difference of the means and achieve statistical significance (p-value = 0.04).   I was told, that this approach is wrong and one cannot infer from the p-value derived from the test of such a small sample size. I do not understand why.  I know, that if the sample size is so small:   we can not test for population normality (and t-test is based on this assumption) the mean of our sample  is more likely to be distant from the population mean the variance of our sample is more likely to be underestimated   But I thought, that if:   I already know, that my population is distributed normally SD of the mean depends on the sample size t-test takes into account the issue with the underestimated population variance (by the fact, that t-distribution depends on the sample size and the smaller the sample size, the more the variance is underestimated; am I right?)   this solves all the issues. I know that this way I'll receive really huge confidence intervals, but I'm still able to achieve significance when the differences are big enough. As I understand, wider confidence intervals are "a penalty" for inaccurate estimates of population mean and variance. But why p-value should be considered wrong as well? The distribution is normal, so I'm not violating any assumptions.  If the p-value would be non-significant (p>0.05) I definitely won't infer that the null hypothesis is true, because I know this test is likely to be underpowered. I only want to know how can I interpret the obtained significant p-value and why it's not as valuable, as a significant p-value derived from the sample of n=30?   To extend this problem, what would happen if the population distribution were not known and I used some sort of nonparametric test, instead of the aforementioned t-test?  Thanks!


Are there any practical implementation of a homomorphic hashing or signature scheme?

A  is a function $H : A \to B$ between two sets with some algebraic structure $(A, *)$ and $(B, \star)$ such that   $H$ is collision resistant, i.e. it is hard to find $x \neq y$ such that $H(x) = H(y)$ and $H$ is a homomorphism, i.e. $H(x * y) = H(x) \star H(y)$.   Are there any practical realizations of such a homomorphic hash function, or even a homomorphic signature scheme (i.e., where we can "add" valid signatures to get a signature of the "sum" of two messages)?  Even better, are there even any libraries implementing this?


How to put a full stop at the bottom, not mid-line, after an aligned matrix?

How can I put a full stop at the bottom rather than at mid-line following the end of an aligned matrix expression such as $\begin{pmatrix} x\\ y \end{pmatrix}$?


What is the best version of Ubuntu for an aging IBM T60 laptop?

What is the best version/distro of Ubuntu for an aging IBM Thinkpad T60 laptop?


I am a software developer but not much of an OS/Hardware Guy, I guess that's par for the course as they say.   I have a fully clean system here with 1TB. I have installed windows on a 500GB primary partition. I want to use the remaining space for Ubuntu.   Here is the deal. I want the system to just boot into windows, as it will be used by my wife 95% of the time. I want to be able to option at boot and select the Ubuntu drive when I need to.   To be clear, my current system is dual boot as well, but it goes to the grub screen to select my OS, I want to avoid this for her so she can just boot up.   What should I do before or when installing Ubuntu to accomplish successfully.


I want to validate an email with a regex. And the code following shows the regular expression that I've used. The form however does not accept a simple anystring@anystring.anystring. (anystring is an alphabetic).  Am I missing out something?  window.onload = function () {     document.getElementById("form").onsubmit = validate; }  function validate() {     var email = document.getElementsByTagName("input")[6].value;     var regex = /^\w@\w+\.\w$/;     if (!regex.test(email)) {         alert("enter a valid email");         return false;     } else return true; }


Direct proof of empty set being subset of every set

Recently I finished my first pure mathematics course but with some intrigue about some proofs of definitions by contradiction and contrapositive but not direct proofs (the existence of infinite primes for example), I think most of them because the direct proof extends away from a first mathematics course or the proofs by contradiction/contrapositive are more didactic. The one that most bothers me in particular is the demonstration that the empty set is a subset of every set, and it is unique. I understand the uniqueness and understand the proof by contradiction:  "Suppose $\emptyset \subsetneq A$ where $A$ is a set. So it exists an element $x \in \emptyset$ such that $x \notin A$ wich is absurd because $\emptyset$ does not have any elements by definition."  but I would like to know if there exists a direct proof of this and if indeed extends from a first course. Thanks beforehand.


Proving that $\mathbb{Z}_m\oplus \mathbb{Z}_n \cong \mathbb{Z}_d\oplus \mathbb{Z}_l $ as groups, where $l=\mathrm{lcm}(m,n)$ and $d=\gcd(m,n)$

How would one go about proving that $\mathbb{Z}_m\oplus \mathbb{Z}_n \cong \mathbb{Z}_d\oplus \mathbb{Z}_l $ as groups, where  $l=\mathrm{lcm}(m,n)$ and $d=\gcd(m,n)$?    I am attempting to use the fundamental theorem of finitely generated abelian groups but am struggling. In the interest of honesty, this is a past exam question that I am attempting for which the solutions are not available. EDIT: As the question was asked in the paper, the Chinese Remainder Theorem would not be permitted since this is only proved in the follow-up course.


how to avoid chrome from showing a white bar at bottom left of page when page load?

look at the white bar at the bottom left of the picture, is there any way to get rid of that?  Notice: I don't want to use chrome theme


Can you please help me out with this limit problem. Actually, I tried to solve it by the conjugate method but it didn't work with me.  Thank you.  $$\lim_{x \to 0}\; \bigg( \frac{1}{\sqrt{x}} - \frac{1}{\sqrt{x²+x}} \bigg)$$


Should I send answers to reviewers comments to a new journal?

I recently got a paper rejected at a very good journal. Reading the reviewers comments, I think the suggested scores were:  Reviewer 1: Accept Reviewer 2: Major revision Reviewer 3: Major revision Reviewer 4: Reject  Reviews 3 and 4 were not good reviews (review 4 length was 2 lines...) and partially based on a common misunderstanding on my field. Nevertheless, the editor decided to reject the paper. So, I don't plan to appeal and I cannot resubmit due to the journal policy not allowing it. Instead, I'll try another journal. My question is: should I submit also my comments to this reviewers in the new submission? Even if I clarified even more in the paper the common misunderstanding, I feel like new reviewers may misunderstand again, while having the answers to the previous comments may help. Is this acceptable? May this penalize my submission because I disclose it has been already rejected elsewhere?


How to shutdown laptop automatically after certain process

I want to know how to shut down my laptop automatically after completion of certain task. I know how to do that settings in control panel but i just want my laptop to shutdown automatically after completing the task. Tasks for eg. download in progress, file copying, watching movie etc..  The setting in control panel never ask for the completion of the task. That just shuts down after certain interval of time.


Let $a=(a_na_{n-1}…a_o)_b$ and $s=\sum_{i=0}^na_i$ Show that if $b-1 \mid a \iff b-1\mid s $. I’ve found this problem in the number theory book that i read. I think if the Base was $10$, it would be more simple, however i don’t know how to prove this.


Enabling free shipping on Woo Commerce by specific items

I would like to know if it is possible to enable free shipping with Woo Commerce only if certain items (or items of certain categories / shipping classes) are included in the cart.  The Free Shipping option only activates on the basis of cart value or via a coupon code so I investigated Flat Rate shipping and discovered that it prioritises the most expensive shipping class over the cheaper ones. This means the free shipping class I created never overrides the default charge.  I understand the logic behind this but it's the opposite of what I need as the idea is to incentivise purchases of higher profit margin products by eliminating delivery charges when they're included in an order.  I don't know if what I am trying to achieve is simply not possible within Woo Commerce. A coupon that only applies to certain products / categories seems to be the closest I can get but I'd rather not force users to enter a code at checkout.  Does anybody know if there any simpler ways to give users who purchase certain products free shipping?


Using gdal_translate for multiband raster to convert into .XYZ file?

I have raster containing 2 bands (NDVI and DEM). This raster was created in SNAP using "Add Elevation Band" option, "DEM Model:SRTM 1sec Grid" to the NDVI product I had generated earlier. I could not find any option in SNAP to make the conversion of this combined product into an ASCII file. There is however one option in SNAP to export the product to a CSV but the result of that process were not as expected. So I switched to QGIS. Here I tried the Raster>Conversion>Translate option, which ultimately uses the gdal_translate tool.   So in QGIS-Translate I could convert the .tif to .XYZ(ascii) but the output had only one band value along with the lat-long for each pixel. I got the warning "Warning 6: XYZ driver only uses the first band of the dataset."  I used the option -b 1 -b 3 to include the bands I want in my output file but still the same warning kept coming.  My gdal_query looks as below,  gdal_translate -of XYZ test-op-1p-ndvi_DEM.tif gdaltranslate-op1DEM.xyz -b 1 -b 3  I tried using the other option in this query like -ot with Byte format (as mentioned in one related question here in GIS-StackExchange) and also by removing the -of XYZ parameter  I have also tried gdal_translate through the OSGeo4W desktop tool but got same warning there too,    After searching hard enough, I could not find anything satisfactory. So now I am trying the long way by generating 2 separate .XYZ for each band and then combine through python script, parsing and combining the 2 columns.  Can anyone please provide any hint or suggestion. Even if someone can link to similar questions in this forum would be really helpful, as i have already tried solutions from many related questions but could have missed something important.  Screenshot of .XYZ with only NDVI values   Screenshot of .XYZ with only DEM values


line between the numerator and the denominator

What would you call the line in a fraction? It is a horizontal line that is between the numerator and the denominator.    Suggestions:   vinculum solidus fraction line fraction bar fraction stroke *shilling stroke   I admit that sometimes it can have a shape of a slash, so it doesn't have to be horizontal.


Logistic regression understanding variable nature

I have 2 categorically dependent variables(both binomial) in logistic regression which individually both give positive estimates against the response(binomial). However if modeled together one give positive and other give negative. I checked for the multicollinearity using VIF, which seems fine. What could be the possible reason for such behaviour.


I am working with Java and Postgresql server. I have never used it before. I am trying to create a REST API that receives http requests and stores them in a Postgresql server. Here is the endpoint I am trying to build.  @POST     @Consumes(MediaType.APPLICATION_JSON)     @Produces(MediaType.APPLICATION_JSON)     @Path("/validation")     public Response Validation(C2BUtils c2BUtils) {          PreparedStatement ps = null;         Connection conn = null;         conn = DBConnector.getPostgresSqlDBConnection();          try {             String insertValidationTxn = "INSERT INTO c2b(TransactionType,TransID,TransAmount,BusinessShortCode,BillRefNumber,InvoiceNumber,OrgAccountBalance,ThirdPartyTransID,MSISDN,FirstName,MiddleName,LastName,TransTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";             ps = conn.prepareStatement(insertValidationTxn);             ps.setString(1, c2BUtils.getTransactionType());             ps.setString(2, c2BUtils.getTransID());             ps.setDouble(3, c2BUtils.getTransAmount());             ps.setString(4, c2BUtils.getBusinessShortCode());             ps.setString(5, c2BUtils.getBillRefNumber());             ps.setString(6, c2BUtils.getInvoiceNumber());             ps.setDouble(7, c2BUtils.getOrgAccountBalance());             ps.setString(8, c2BUtils.getThirdPartyTransID());             ps.setString(9, c2BUtils.getMsisdn());             ps.setString(10, c2BUtils.getFirstName());             ps.setString(11, c2BUtils.getMiddleName());             ps.setString(12, c2BUtils.getLastName());             ps.setString(13, c2BUtils.getTransTime());             int add_detail = ps.executeUpdate();              if (add_detail == 1) {                 System.out.println("New tx " + c2BUtils.getTransID() + " added");             } else {                 System.out.println("no txn added");             }              conn.close();          } catch (Exception e) {             Logger lgr = Logger.getLogger(C2B.class.getName());             lgr.log(Level.SEVERE, e.getMessage(), e);             System.out.println("Message-->" + e.getMessage());         }         String re = "OK-2000";         return Response.status(201).entity(re).build();     }   Whenever I make an POST request , I get java.lang.NullPointerException and on the code it shows the error originates on this line   ps.setString(1, c2BUtils.getTransactionType());   I have tried to find out what the issue is without success. Any help will be appreciated.


Inverting the process of composing functions (anti-composition)

The main idea is that if you have some well defined function $f$, is there a function $f^{\frac{1}{2}}$ such that $f^{\frac{1}{2}}\left(f^{\frac{1}{2}}\left(x\right)\right) = f\left(x\right)$. For lack of a better name, I will call the process of finding $f^{\frac{1}{2}}$ anti-composition. My question is, are there any known techniques to anti-composing function? Is this even a problem that conventional mathematics has looked at?   For example, the problem I am working on finding the anti-composition of $f\left(x\right) = x^2+C$. I know that when $C=0$, $f^{\frac{1}{2}}\left(x\right)=x^\sqrt{2}$, because $\left(x^\sqrt{2}\right)^\sqrt{2}=x^2$. Due to this rather simple form, I assume that $f^{\frac{1}{2}}\left(x\right)=\left(x-h\right)^n+k$ for some $h$,$k$, and $n$, which may depend on $C$. However, the composition of this is $f\left(x\right)=\left(\left(x-h\right)^n+k-h\right)^n+k$. I assume that $n=\sqrt{2}$, so $x^{n^2} = x^2$. Also, I know that $h=0$, because any change in $h$ will translate the whole function, whereas $x^2+C$ definitely has no x-translation. This means $f\left(x\right)=\left(x^\sqrt{2}+k\right)^\sqrt{2}+k$. However, in order for this to equal $x^2+C$, $k$ must equal $0$ and $C$ simultaneously, which is not possible unless $C=0$.  That's all I've worked on it so far, but I really have no idea what to try next.  I have an idea to use the above properties and use a point to get other points of the function and then manipulate the inputs until it looks like a function, but I have no idea how to generalize it or fill in the intervals between the points produced. My attempt at can be found at , but I didn't find anything useful, except for the general shape of the function.  Any help is appreciated!


Prove that there do not exist distinct integers $a,b,c$ and polynomial $P$, with integer coefficients, such that $P(a)=b, P(b)=c, P(c)=a$.

Let $P(x)$ be a polynomial of degree $n$ with integer coefficients. Assume that there exist three distinct integers $a,b,c$ such that $$P(a)=b, P(b)=c, P(c)=a.$$  Since the integers $a,b,c$ are all different, there must be a least among them. Without loss of generality, we can write $a<b$ and $a<c$.  Note that, for any $x,y \in{\mathbb{R}}$:  $$P(x) -P(y)=a_n(x^n-y^n)+a_{n-1}(x^{n-1}-y^{n-1})+ \cdots + a_1(x-y).$$  Thus, using the identity  $$x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+\cdots+xy^{n-2}+y^{n-1}),$$  it follows that  $$P(x) -P(y)=(x-y)Q(x,y),$$  where $Q(x,y)$ is a polynomial in $x,y$ of degree $(n-1)$. Evaluating $P(a)$ and $P(b)$ this way gives us the following equation:  $$P(a)-P(b)=(a-b) Q(a,b)=b-c $$  By our construction, the polynomial $Q$ must also have integer coefficients and so $Q(a,b)=m_1$, for some integer $m_1$. Arguing similarly as above, we get the following three equations:  $$(a-b)m_1=b-c$$ $$(b-c)m_2=c-a$$ $$(a-c)m_3=b-a$$  Clearly $m_i\neq0$ for any $i$. Dividing the first of these equations by the second:  $$\frac{a-b}{c-a}m_1=\frac{b-c}{(b-c)m_2}$$ $$\frac{a-b}{c-a}m_1=\frac{1}{m_2} \qquad (1)$$  A few algebraic manipulations of the last equation gives  $$\frac{1}{c-a}=\frac{m_3}{a-b},$$  which we can substitute into $(1)$ and get  $$m_1 m_3= \frac{1}{m_2}.$$  Since the $m_i$ are integers we must have $$m_i=\pm1.$$  We need only consider the two cases for $m_3$. If $m_3=-1$ this implies $c-a=b-a \implies c=b$. If $m_3= 1$ this implies $a-c=b-a$, which is not possible, since $a$ is less than both $c$ and $b$. Thus, since both possible values for $m_3$ lead to a contradiction, there is no polynomial $P(x)$ and distinct integers $a,b,c$ which satisfy the condition $P(a)=b, P(b)=c, P(c)=a.$ $\quad \square$


Regexp: multiline-match anything between ( and );

Here's my current setup:  My regexp match is Skript\.register(effect|expression|event|condition)\((.*)\)\; Basically, I want to match all methods from a source code file that start with Skript.registerwhatever.( and end with );, but the problem is the code can go multiline. If I change (.*) to ([\s\S]*), it completely wrecks and matches everything until the very last );.


Longtable vs. supertabular: Which is right for which job?

I have a fixed-column long table, with much text inside, that spans about three pages. I set it using the supertabular package, and for the most part it is working  (I will still have to go back to manually tweak a few things once the document is complete). However, I sometimes wonder if longtable would have been a better choice.   Looking for troubleshooting tips for tables in this site, I noticed that there are a little over three times as many questions tagged for longtable than there are for supertabular. I could speculate that this is either because supertabular has fewer undesirable side-effects or because longtable is the preferred package, therefore more people will have problems with it. I have tried them both, and by putting enough time into them I have gotten the desired results; however, the question still nags me: which one is the right one (or the better one) for which type of long-table?


javascript 'Array of Object' after copying Altering original array as well

I made an Array of objects named features. And then I am trying to copy in variable new_array.      var features = mapport.panels.info.current.features();    console.log(typeof features);    new_array = features.slice(0);   //new_array is copy of this   And with another method as well like this  var new_array = $.map(features, function (obj) {      return $.extend({}, obj);      });   After this I compare new_array with a array and I delete entries which are not common So after comparison I do like  delete new_array[i].attributes.fields[f_index]   No issue is after deleting specific index values from new_array, it deleting from features as well.  How to prevent this ?  Example to demonstrate:    var features = [{   attributes: {     fields: ["feat1", "feat2"]   } }, {   attributes: {     fields: ["feat3", "feat4"]   } }]  console.log(typeof features);  // This one works! var new_array0 = $.map(features, function(obj) {   return $.extend(true, {}, obj); // deep clone }); delete new_array0[1].attributes.fields[0] document.write(JSON.stringify(new_array0)+'
'+JSON.stringify(features)+'
')   // these make shallow copies  var new_array = features.slice(0); //new_array is copy of this delete new_array[1].attributes.fields[0]  document.write(JSON.stringify(new_array)+'
'+JSON.stringify(features)+'
')  var new_array1 = $.map(features, function(obj) {   return $.extend({}, obj); }); delete new_array1[1].attributes.fields[0] document.write(JSON.stringify(new_array1)+'
'+JSON.stringify(features))


Homotopy equivalence from torus minus a point to a figure-eight.

Let $I$ be the unit interval, and define the torus using the usual identifications on $I \times I$. I've shown that $I \times I - \{x\}$ (where $x$ is a point not on the boundary of $I \times I$) is homotopy equivalent to its boundary (and that it even retracts onto its boundary). Let $p: I \times I \rightarrow I \times I /\sim$ be the canonical quotient map. Using the retraction above, call it $r$, is there a way I can explicitly show that $p(I \times I - \{x\})$ is homotopy equivalent to $p(\text{boundary of } I \times I)$, i.e., that torus minus a point to a figure-eight?  More generally, if $A \subset X$, and $X$ is homotopy equivalent to $A$ (or $X$ retracts to $A$), for which maps $p$ can I say that $p[X]$ is homotopy equivalent to $p[A]$?   Hints appreciated!


Centimorgan's aren't physical distances. The analogy that I could come up with is if you had an array with 10 items,  A = [a, b, c, d, e, f ,g ,h ,i ,j, k]   The distance of a in the array is closer to b than k, ie A[0] is closer to A[1] than A[10] so that the centimorgan of A[0] and A[1] is less than A[0] and A[10]?


What do you call a person who "shuts down" ideas?

You know, the kind of person who you tell stuff like "I really want to go to this thing" and they point out everything wrong with it.


Log in with username vs. login with email address - which option provides better user experience?

I am developing a new web application and was wondering if I should have people pick their usernames and login with their usernames or should I have them login via their email addresses.  Which option provides a better user experience and why?


Not that it's a very good idea to change it, but for fun. According to  post, there are still some problems even after changing entries in /etc/passwd, /etc/shadow, and /etc/sudoers. Any suggestions?


As, the above link shows, other countries have similar murder rates but they are not in the radar of international travelers.  For example, as seen in the list, Puerto Rico has similar statistics. But, personally, I never heard of Puerto Rico to be a dangerous place to travel.  Why is it considered so dangerous to travel in South Africa? Is that due to the incompetent law enforcement agencies?


I have this following method:  public static <T, U> T[] getKeysForValue(Map<T,U> map,U value){     if(map == null || map.isEmpty()) {         return null;     }      Set<T> keys = new HashSet<T>();      for (Map.Entry<T,U> entry : map.entrySet()) {         if (entry.getValue().equals(value)) {             keys.add(entry.getKey());         }     }      return keys.toArray(new T[keys.size()]); }   I am getting compilation error on the line: keys.toArray(new T[keys.size()]), which says "Cannot create a generic array of T", which is obvious. How can I solve this issue?


ArcMap Replication tool does not synchronize changes made from database tool i.e SQL Developer?

I want to synchronize some datasets and feature classes from Oracle to MS SQL Server using ArcMap replication tools. Both databases are geodatabase enabled. I don't want to replicate/synchronize data in real time but once a day.  I have created one-way replica(parent to child) and it works fine for only the changes that are made from ArcMap, but when I make changes in the table/feature class from Oracle (SQL Developer) i.e updating the attributes of a record, those changes are not synchronized. How can I synchronize all the changes either made from ArcMap or from SQL Developer?


How can I get spacing between paragraphs while also keeping the default indentations?

I'm using the report documentclass, and the paragraph formatting looks something like this with two paragraphs:  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ac odio est. Morbi vel turpis ipsum.     Pellentesque ac ultricies mauris. Vivamus turpis dui, congue a hendrerit vitae, accumsan  id nulla. Proin laoreet est id est tempor commodo.   However I would like to have:  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ac odio est. Morbi vel turpis ipsum.      Pellentesque ac ultricies mauris. Vivamus turpis dui, congue a hendrerit vitae, accumsan  id nulla. Proin laoreet est id est tempor commodo.   I have tried the parskip package, which added the spacing between the paragraphs I'm looking for, but it also removed all of the indentations.


Continuity of absolute value of a function

Let $f(x)$ be a continuous function. Prove that $\left|f(x)\right|$ is also continuous.  Is it correct to say that, by the reverse triangle inequality, $\left|f(x)-f(c)\right| \geq \left|f(x)\right|-\left|f(c)\right|$ in all cases, so we will always have that for all $\left|x-c\right|<\delta$ implies $\left|f(x)-f(c)\right|\leq \epsilon$?  I am not sure if my solution adequately uses the functional form, since I just used the equation and not my actual function. Please help with the proper solution!


Is there any downside to ignoring 'raider troubles/ghoul problem' missions?

I seem to get a non-stop flow of Raider Troubles, Ghoul Problems, and Kidnapping missions--there seems to always be one or two that want my attention. They're kind of irritating, and I was curious if there's any downside to just ignoring them and letting them fail.


Help in identifying the pop up notification icon

Can anyone please help me figure out the icon provided by me in the screenshot that appears on the top left corner of the notification bar which looks like a message box with an exclamation mark! Whether it is an app notification icon or android system based icon.


On causality in physics: is the concept of cause an operational concept in physics?

This is a broad question motivated by philosophical interests. I hope it will not be considered as off topic.   What I am looking for is a technical answer reflecting the standard conception of nowadays physics.   Let me give some details regarding the context.   Traditionnaly, since Hume I think ,  the distinction betweeen mathematics and natural sciences ( like physics) has been made in the following way:    mathematics deals with "relations of ideas" that are purely logical  natural science deals with truth of facts, involving causal relations ( that cannot be reduced to logoical ones), there is ( said Hume) no logical link betweeen " temperature is below zero" and " water has frozen".    My question is not on the logical status of physical-science  truths, but on the role of causality in physics.   I suppose physicists cannot prevent themselves from thinking ( privately) of natural phenomena in terms of causality. But is causality an official concept in physics, a concept having an official theoretical status?   One problem I see is that the language of physics is mathematical, and it seems difficult to translate the ideas of cause and effect in a mathematical languege.   More generally, are physicists interested in problems relating to causality?


Should I withdraw my paper from a journal which even didn't give me the manuscript number after one week?

I submitted an article to Elsevier which even after one week its status is still "submitted to journal" and they didn't give me even the manuscript number. I have several past experiences with this publisher, where they gave me the manuscript number promptly, but this time after one week without even manuscript number seems a little bit odd.   Should I withdraw my article and submit it somewhere else, which probably their process may be faster? The reason why I'm asking this question is that I don't want to waste my time but on the other hand I don't want to make a bad reputation for potential future submissions by withdrawing my article because their journal is pretty famous in my field (computational physics).


Prevent area light from being reflected on glass?

I did setup an easy scene with an area light behind a window. In the glass (simple plane) which is in front the area light is visible - how can I turn this off so that the background is shining throgh?


Showing that $|N \cap Z(G)| > 1$ for normal subgroups of p-groups

I have a finite $p$-group $G$ and a normal subgroup $N$ which is not the trivial subgroup. I am asked to show that $|N \cap Z(G)| > 1$.  There has been a similar question on MSE here:  Unfortunately, I cannot comment on other user's questions yet, so I made my own question.  I know that the trick is to use conjugation but I can't follow the logic. Can someone elaborate? Especially on the last part of the top answer.


I would like to ask a question which is quite similar to . I am sorry to make a new thread since I could not add my comment after those answers to ask.  I would like to number subsections through the text (not depending on section they belong to) as the following  Currently: 1. Section 1.1 subsection 1.2 subsection 1.3 subsection 2. Section 2.1 subsection 2.2 subsection  Should be: 1.Section   1. subsection   2. subsection   3. subsection 2. Section   4. subsection   5. subsection   Please give me some advice. Many thanks in advance.


Automatically detect edit abuse and exclude from badges/flag for mod review

has 5 pages of 1 character edits (including an edit to one of my posts), apparently in a massive attempt to earn the Copy Editor badge.  Should Copy Editor, etc., ignore 1 character whitespace-only edits?    If we still want to count minor edits (which may be useful), could we at least detect edit abuse via some secret algorithm? ~20+ one character whitespace-only edits in the course of an hour should at least raise a flag of some sort.    If whitespace character are too hard to count, can we at least assume that 20 non-tag edits in 20 minutes (less than a minute per edit) is a good signal of abuse? The specific algorithm should be secret, obviously, but I think these sorts of edit abuses shouldn't be too difficult to detect.


Can we see a real image with naked eyes?

If we can't see a real inverted image without the help of a screen, why are we able to see an inverted image on the concave side of a spoon and in the convex lens when the object is far from the focal point?


can I convert python to an application for android

I have a python script(.py) and I have installed some libraries for this script, is there any way I make it usable for android I have tried to convert it to EXE then APK but I hit a dead-end


Computing $\int \sqrt{x\sqrt[3]{x\sqrt[4]{x\sqrt[5]{x\cdots}}}} \,\mathrm{d}x$

I've just read a post that has been put on hold.  The question was about computing $$ \int_{ }^{ }\sqrt{x\sqrt[3]{x\sqrt[4]{x\sqrt[5]{x \cdots}}}}\, \mathrm{d}x $$ My attempt was to find explicitely the integrand hence I introduced the sequence $$ a_1=1\ \text{ and }\ a_{n+1}=\left(xa_n\right)^{1/(n+1)} $$ hence $$ a_2=\sqrt{xa_1}=\sqrt{x}, \ a_3=\sqrt[3]{xa_2}=\sqrt[3]{x\sqrt{x}} \ \dots $$ But the power is reversed, how can I ffind the corresponding $(a_n)_{n\in \mathbb{N}}$ ?


GeoServer not rendering GeoTIFFs after JPEG compression

I previously asked about some problems I was having converting JP2/MrSid data to GeoTIFF for use in GeoServer. It was suggested that I needed to add overview data to the 4 GB-sized GeoTIFF -- and that helped. GeoServer then rendered and served the raster and was quite fast about it.  I've since been reading about cloud-optimized GeoTIFFs, and tried to follow the three-step process recommended :  gdal_translate sample.jp2 sample_deflate.tif -co tiled=yes -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COMPRESS=DEFLATE -co PREDICTOR=2     cp sample_deflate.tif sample_addo.tif  gdaladdo -r average sample_addo.tif 2 4 8 16 32 64 128 --config PHOTOMETRIC_OVERVIEW YCBCR --config COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY_OVERVIEW 85 --config INTERLEAVE_OVERVIEW PIXEL   gdal_translate sample_addo.tif sample_compressed.tif -co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COMPRESS=JPEG -co JPEG_QUALITY=85 -co PHOTOMETRIC=YCBCR -co COPY_SRC_OVERVIEWS=YES --config GDAL_TIFF_OVR_BLOCKSIZE 512   But the resulting file, after JPEG compression with photometric, would not serve at all in GeoServer. The intermediate file -- with just the added overviews -- serves fine in GeoServer, but is 6 GB in size.  Thinking the problem might be the photometric, I backed up and redid the compression with no photometric:  gdal_translate sample_addo.tif sample_compressed.tif -co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COMPRESS=JPEG -co JPEG_QUALITY=85 -co COPY_SRC_OVERVIEWS=YES --config GDAL_TIFF_OVR_BLOCKSIZE 512   It still wouldn't work. So something to do with my third step, compressing the image, is rendering it unusable by GeoServer. (It could also, I guess, be a problem with my GeoServer settings.)  Here is the gdalinfo for the third (not working) file (with photometric compression):  Driver: GTiff/GeoTIFF Files: sample_compressed.tif Size is 43221, 36021 Coordinate System is: GEOGCS["WGS 84",     DATUM["WGS_1984",         SPHEROID["WGS 84",6378137,298.257223563,             AUTHORITY["EPSG","7030"]],         AUTHORITY["EPSG","6326"]],     PRIMEM["Greenwich",0],     UNIT["degree",0.0174532925199433],     AUTHORITY["EPSG","4326"]] Origin = (95.998541666740138,45.001424215510333) Pixel Size = (0.000138888892252,-0.000138888892252) Metadata:   AREA_OR_POINT=Point Image Structure Metadata:   COMPRESSION=YCbCr JPEG   INTERLEAVE=PIXEL   SOURCE_COLOR_SPACE=YCbCr Corner Coordinates: Upper Left  (  95.9985417,  45.0014242) ( 95d59'54.75"E, 45d 0' 5.13"N) Lower Left  (  95.9985417,  39.9985074) ( 95d59'54.75"E, 39d59'54.63"N) Upper Right ( 102.0014585,  45.0014242) (102d 0' 5.25"E, 45d 0' 5.13"N) Lower Right ( 102.0014585,  39.9985074) (102d 0' 5.25"E, 39d59'54.63"N) Center      (  99.0000001,  42.4999658) ( 99d 0' 0.00"E, 42d29'59.88"N) Band 1 Block=512x512 Type=Byte, ColorInterp=Red   Overviews: 21611x18011, 10806x9006, 5403x4503, 2702x2252, 1351x1126, 676x563, 338x282 Band 2 Block=512x512 Type=Byte, ColorInterp=Green   Overviews: 21611x18011, 10806x9006, 5403x4503, 2702x2252, 1351x1126, 676x563, 338x282 Band 3 Block=512x512 Type=Byte, ColorInterp=Blue   Overviews: 21611x18011, 10806x9006, 5403x4503, 2702x2252, 1351x1126, 676x563, 338x282   Any ideas what I'm doing wrong or how I can get GeoServer to serve this?


How can I create documents in LaTeX using a calligraphic first letter for chapters?

Books often have a special letter (often spanning two lines) at the beginning of chapters. How can I create this in LaTeX?


In my .bib file, there is a reference including the following name in the authors list:  Mitášová, Helena   When the PDF is generated, this name does not display correctly:  MitÃaÅaovÃa   I searched for related topics, and found the following link:  [  I tried including the package Alegreya mentioned therein, but still the problem persists.   Can someone tell me if there is a package which I can use to get all the unicode text (I am presuming that this will take care of Eastern European names as well, or please correct me if I am wrong) displayed correctly in the output?  TIA  I tried adding \usepackage[utf8]{inputenc} but get a inputenc Error: Unicode char \u8” for the equation $\mu = 4\pi \times 10^{-7}$. I tried using \usepackage[utf8x]{inputenc} instead based on search, but that shows a different error not seen before.  If I remove both the packages, the PDF document is generated as before, so I am not sure whether utf8 package is the way forward for me as I do not wish to spend a lot of time debugging latex issues....unless someone can tell me a one time fix to make all the issues go away associated only with the introduction of the utf8 package, or may be suggest an alternate package which could display all the European names correctly.


I wonder why p columns are aligned at the bottom and b columns aligned at the top?   created with this code:  \begin{tabular}{|p{0.3\linewidth}|m{0.3\linewidth}|b{0.3\linewidth}|} \hline \centering header p & \centering header m &    \centering header b \tabularnewline \hline text which is considerably longer than the width of the column  &  text which is considerably longer than the width of the column  &  text which is considerably longer than the width of the column  \tabularnewline \hline \end{tabular}


The p-norm is defined as:  $$ \ \|x\|_p=\left(|x_1|^p+|x_2|^p+\dotsb+|x_n|^p\right)^{\frac{1}{p}} $$  When $p<1$, this is no longer a "norm" because it violates the triangle inequality (- it is super additive and not subadditive). However, it is still valid to ask, what is its limit when p goes to 0?  My guess is that:   If all coordinates are 0, then $l_p=0$, and it remains like this when p=0. If exactly one coordinate, say $x_i$, is non-zero, then $l_p=x_i$, and it remains like this when p=0. If more than one coordinate (say, $x_i$ and $x_j$) are non-zero, then $l_p>x_i$, and because the exponent goes to $\infty$, the value of $l_p$ also goes to $\infty$.   Is this correct?  (Note that this is not equal to the  = the number of nonzero elements. This is also not equal to the , in which there is an additional $1/n$ factor).


I know that compact sets imply the existence of a maximizer, but is the converse true:   Let $(X,d)$ be a metric space. Suppose that whenever $f$ is a continuous (and real) function on $X$, there exists a point $y \in X$ such that $f(y) \geq f(x)$ for all $x \in X$. Then X is compact.


Wifi password dialog popup don't take a password more then 20 chars

How do I report this as a bug in 19.04? when I don't find which package it belongs to


How long should I keep financial records for closed brokerage accounts?

For example, if I close a brokerage account and move the monies to an account with a separate company, is there a reason to keep records beyond the tax year, or ?


Spanish to English and English to Spanish dictionary for Dictionary app?

For quite a while now, I have been looking for English and Spanish conversion dictionaries (both ways) for Apple's native Dictionary application. So far I have not had any success.    Is there any free, decent quality solution such as "New Oxford American Dictionary" and "Dictionnaire de l'Académie Française"?   Any links or information would be highly appreciated.


How to get the directory of open blend file? (from Python)

What's the best way to get the full directory of the current Blender file in Python?  It should be cross-platform.


How to open multiple browsers without sharing cookies to each other?

I want to ask how can I open a browser (doesn't matter which to be honest, as long as it has the main features of each browser) multiple times without sharing the cookies and other stuff between each other.  Thank you.


Maps - question about $f(A \cup B)=f(A) \cup f(B)$ and $ f(A \cap B)=f(A) \cap f(B)$

I am struggling to prove this map statement on sets.   The statement is:   Let $f:X \rightarrow Y$ be a map.   i) $\forall_{A,B \subset X}: f(A \cup B)=f(A) \cup f(B)$ ii) $\forall_{A,B \subset X}: f(A \cap B) \subset f(A) \cap f(B)$ iii) $f$ is injective $ \Longleftrightarrow$ $\forall_{A,B \subset X}: f(A \cap B)=f(A) \cap f(B)$  My problem is: I know how to operate on sets, I know how to operate on sets, but I don't know how and where to start the proof,  the biggest problem in mathematics, I think.   Thanks for help!


Let $\omega$ be a primitive third root of unity with $K=\mathbb{Q}(\omega,\sqrt{2})$.  Find $\operatorname{min}(\omega\sqrt{2},\mathbb{Q})$  Could anyone tell me how to find this? and generally which is the way to find similar problems with minimals?


Tax liability for Resident indians through funds received from NRE account

Please, I would like to transfer a bulk amount from my NRE account to my parents account, For Taxation purposes,Do they need to pay only for interest accrued thereof or for the entire lumpsum amount received as income?


My goal is to display a form in a page made with panels. The form will be between content panes.    The single page (made with page manager & panels) will be like below:   Content Pane Form Content Pane   How can I achieve that, and display the form in a page made with panels ?  Update 2-4-2014:  I found this  and created the following block that doesn't work (I am getting an error when trying to add that to panels). can sombody help make this thing work?  <?php  function my_answer_form_block_info() {     $blocks = array();      $blocks['my_answer_form'] = array(             'info' => t('My-Answer-Form'),             'cache' => DRUPAL_CACHE_GLOBAL,     );      return $blocks; }  function my_answer_form_block_view($delta = '') {     $block = array();     switch($delta) {             case 'my_answer_form':                     $block['subject'] = t('My Answer Form');                     $block['content'] = drupal_get_form('answer_node_form');             break;     }      return $block; }   ?>   Note: Form ID is: "answer_node_form"  I am using the . The form I want to put on the panel page is the Answer Form, that was created by the Answers Module. Is that a node form or a custom form?


java.lang.NullPointerException: Attempt to invoke virtual method 'int java.io.InputStream.read(byte[])' on a null object reference. How to fix

I always see toast notice! Code `if-ge v1, v3, :cond_29 invoke-virtual {p0, v1}, Landroidx/collection/ArraySet;->valueAt(I)Ljava/lang/Object; move-result-object v3 invoke-interface {p1, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result v3 :try_end_23 .catch Ljava/lang/NullPointerException; {:try_start_17 .. :try_end_23} :catch_2a .catch Ljava/lang/ClassCastException; {:try_start_17 .. :try_end_23} :catch_2a if-nez v3, :cond_26 return v2 ` Code 2 '   .catchall {:try_start_52  :try_end_53} :catchall_51 throw p1 :cond_54 new-instance p1, Ljava/lang/NullPointerException; const-string v0, "key == null" invoke-direct {p1, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 .end metho'


Academic rank equivalence between the UK and the US systems

What are the US equivalent ranks to the Lecturer, Senior Lecturer, Reader (or Associate Prof), Professor ranks of the UK system? Is it correct that in the US system they are Assistant Prof, Associate Prof, Full Prof and Chair/Endowed Prof, respectively? I know that in the British system, there are further sub-levels in each of these ranks whereas in the US system there is no further gradation within each rank. So I am looking for only rough equivalence.  Edit: It would be great if a formal/informal reference which compares the two is also pointed out.


com.android.volley.VolleyError:java.lang.NullPointerException:Attempt to invoke virtual method 'in java.lang.String.length()' on object reference

Getting the error in Listener whenever the fb_flag is 1, m just beginner; learning volley  NullPointerException ::: Have tried to solve the error; but couldn't solve it  LoginCall.java  public class Login_Call {     Context con;     String email ="", pass = "";     String fb_flag = String.valueOf(0);     String URL = "";     UserData userData;     String Message = "Success";   Constructor for setting the data items;      public Login_Call(Context context, String email, String password, String flag) {         con = context;         this.email = email;`enter code here`         pass = password;         fb_flag = flag;         Toast.makeText(con,fb_flag, Toast.LENGTH_SHORT).show();     }      public UserData getUserDataObject() {         return userData;     }   Getting error in this method ; Method is for mapping the string data with url;      public String getLoginAcc() {         RequestQueue queue = Volley.newRequestQueue(con);         StringRequest postRequest = new StringRequest(Method.POST, URL, new Listener<String>() {             @Override             public void onResponse(String s) {                 Log.d("LoginCheck", s);                 Toast.makeText(con,s, Toast.LENGTH_SHORT).show();                 authenticateLoginResponse(s);             }         }, new Response.ErrorListener() {             @Override             public void onErrorResponse(VolleyError volleyError) {                 Toast.makeText(con, "Server Not Responding" + volleyError, Toast.LENGTH_SHORT).show();             }         }) {             @Override             protected Map<String, String> getParams() throws AuthFailureError {                 Map<String, String> params = new HashMap<String, String>();                 params.put("fb_flag", fb_flag);                 params.put("email", email);                 params.put("password", pass);                 return params;              }         };         postRequest.setTag("Publiko Login");         postRequest.setRetryPolicy(new DefaultRetryPolicy(5000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));         queue.add(postRequest);         return Message;     }      private void authenticateLoginResponse(String data) {         String response;         try {             JSONObject responseObject = new JSONObject(data);             response = responseObject.getString("response");             if (response.equals("success")) {                 // ToDo succes response Login Acces Granted                 JSONArray responseArray = responseObject.getJSONArray("data");                 JSONObject reponseInnerObject = responseArray.getJSONObject(0);                 UserData user = new UserData();                 user.setUsername(reponseInnerObject.getString("user_name"));                 user.setEmail(reponseInnerObject.getString("email"));                 user.setAddress(reponseInnerObject.getString("address"));                 user.setPhone(reponseInnerObject.getString("phone"));                 user.setUserid(reponseInnerObject.getString("user_id"));                 userData = user;             } else {                 // ToDo Failed Response Invalid Email/Password                 this.Message = responseObject.getString("message");             }         } catch (JSONException e) {             e.printStackTrace();         }     } }   thanks in advance :)


Is it popular to omit "as" while using "consider this one that one"?

I found an interesting quote in this .     I believe if we love something and have fun, we tend to self teach and   learn at a rapid rate. I also consider confusion a starting state for   learning. It opens us to new patterns emerging. - Author: Todd Rice   Is it necessary to insert an "as" into "consider confusion a starting state" which produces "consider confusion as a starting state"?  ... or thanks to , insert "to be" into "consider confusion a starting state" which produces "consider confusion to be a starting state"?  The key is to insert something, in case someone has unclear pronunciation, low voice.


What is a simple, effective, and physically consistent explanation of Bernoulli's principle (in the context of airfoil lift)?

I am not here to continue any debate about . Rather, what I am looking for is an informed, thoughtful, illuminating and self-contained explanation of Bernoulli's principle in the context of airfoil lift.   Assume that the reader has an undergraduate/graduate background in physics/math/fluid dynamics e.g. has a basic understanding of boundary layer theory, control volume analysis/derivation in continuity and momentum equations, and can understand the difference between Eulerian vs. Lagrangian specifications when prompted (I suspect that these are all be relevant to Bernoulli's principle...?) but please avoid particularly esoteric results; keep concise-ness and elegance in mind for clarity's sake.


Is there a command to typeset the Unicode symbol 'DIVISION TIMES' (U+22C7)?

of the Unicode symbol 'DIVISION TIMES' (U+22C7), which is ⋇. That is, it is a hybrid of times and division and the intended semantics ought to be the multiplicative analogue of the well-known ±,  which can be typeset in LaTeX by \pm.  Is there a command like \pm for getting ⋇? (Detexify does not recognize it.)  If there is no command, how would one go about typesetting this in LaTeX?  I am given to understand some variants of LaTeX support Unicode, so it would be non-issue there, but I would like to know about other ways.


I've set off some TNT, what should I do?

I accidentally set off a large pile of TNT. I managed to hit escape before the explosion. Is there any way to prevent it going off?


Is it better to use C void arguments "void foo(void)" or not "void foo()"?

What is better: void foo() or void foo(void)? With void it looks ugly and inconsistent, but I've been told that it is good. Is this true?  Edit: I know some old compilers do weird things, but if I'm using just GCC, is void foo() Ok? Will foo(bar); then be accepted?


Proof that a sum of Bernoulli rvs has Binomial distribution

Let $\{X_n, n \geq 1\}$ be iid Bernoulli random variables with $\Pr(X_1 = 1) = p = 1 - \Pr(X_1 = 0)$ and let $S_n = \sum\limits_{i=1}^n X_i$ be the number of successes in $n$ trials. Show $S_n$ has a binomial distribution by the following methods:  1.) Prove for $n\geq0,$ $1\leq{k}\leq{n+1}$  $$\Pr(S_{n+1} = k) = p\Pr(S_n = k - 1) + q\Pr(S_n = k)\text{ where }q = 1-p.$$  2.) Solve the recursion using generating functions.  For the first method, I think I need to use convolution of $n + 1$ Bernoulli rvs, but I cannot immediately see the progression. For the second method, I don't exactly understand how to proceed either. This is problem 1.2 from Resnick's Adventures in Stochastic Processes.


A polyhedron is defined as the intersection of a finite collection of generalized halfspaces. In my book, a generalized halfspace is defined as a set where we allow the vector of coefficients $(a_1, a_2,\ldots, a_n )$ in the definition of a halfspace to vanish (or = 0).   I said yes. $\mathbb{R}^n$ is a polyhedron because a generalized halfspace can be all of $\mathbb{R}^n$. But I feel there's something wrong with that logic. Please help. Thanks.


Prevent file from being modified or deleted even by chattr

Is there a way to prevent anyone from deleting or modifying a file even with chattr.  For example: If I use chattr +I on a file. And another root user or the same root user uses chattr -I they'd be able to modify/delete the file. Is there a way for this not to happen.


Proper Acronym Usage With Multiple Plurals

Given that MOTU -> Master of the Universe - One master of one universe    .   Would the following be correct? And if not, what would be correct, and how would I answer the plural-plural problem at the bottom?  Again, I'm looking for the multiple plural situation   MOTUs -> Masters of the Universe - Two masters of one universe    MOTUs -> Master of the Universes - One master of many universes    ????? -> Masters of the Universes - Two masters of many universes   The usage would be something like-    The MOTU has spoken- the master of the universe has spoken   The MOTUs have spoken- the masters of the universe have spoken   The MOTUs has spoken- the master of the universes has spoken   The ????? have spoken- the masters of the universes have spoken


if you set a dish filled with water onto a loudspeaker or other vibrator and make vibration, When it oscillates, it is possible to hold small droplets on its surface for a long time. I mean, when you put a droplet of water on vibrating water surface, it doesn't coalesce with the water and bounce on the surface of water.( see this video  )  As we know, drop reaches its minimal potential when coalescing with water ( that's why drops coalesce)  what exactly cause this? why doesn't the drop coalesce with the water?


Photograph of Light as Wave and Particle

what is this? actually its the first photo of light as wave and a particle.   The bottom "slice" of the image shows the particles, while the top image shows light as a wave.  i have questions  1.how this experiment was conducted. Explain it briefly.  2.how this proves the duality.  3.how does this ripples show the duality nature of light.


How long, in-universe, were each of the Star Wars movies?

Inspired by this question:    Currently, the only answer there addresses the fact that the "names you first know someone by are hard to shake".  However, when thinking on this, I realized that another factor would be the amount of time during which Luke actually knew his mentor as Obi-Wan, in comparison to the length of their relationship beforehand.  Luke came to know the true name of Obi-Wan Kenobi fairly early in Episode IV.  At this time, he was about 19 years old and presumably had known (or known of) "Old Ben Kenobi" all his life.  So, to get a rough comparison of this against how long he actually knew "Obi-Wan Kenobi", we just need to know how long (in in-universe time) Episode IV was.  Starting from there, I'd like to expand the question to more generally encompass all six of the movies which are the primary canon of the Star Wars universe.  So, over what duration (and, ideally, dates) did the events represented in each movie occur?


"To have a dinner" vs "to have dinner": which one is correct?

Does one need to use the article in this case?


Is there a viable alternative to MTP for file transfer?

Since the latest versions (ICS+?) no longer have mass storage, is there any viable alternative to MTP?  The protocol seems inherently broken and the decision to regress to this format seems like a very 'iphone-esque' move (dumb things down, take away power from the users).  There seem to be numerous problems  with files not showing and it seems to me that transferring a file should be simpler than requiring a system reboot - I am unreasonably demanding that way.  I'm aware of tools like Wi-Fi file transfer but often I find myself in areas without wifi, with just my laptop, phone and a usb cable. The other day, for example, I was one a plane, which is an environment decidedly non-conducive to using a wireless system.


Is the set of roots unique for each $g(x)$ in $a_n x^n + g(x)$?

I woke up and suddenly wondered about the following: A polynomial of degree $n$ $a_n x^n + a_{n-1} x^{n-1} + \cdot\cdot\cdot + a_{n-n} x^{n-n}$ can be written as $a_n x^n + g(x)$ where $g(x)$ is a polynomial of degree $n-1$. Then I was thinking that for every $g(x)$ has a unique set of roots with respect to their values and multiplicities - is this true?  So for instance consider a polynomial of degree $2$: $x^2 + a_1 x + a_0$ which can be written as $x^2 + g(x)$ where $h(x) = a_1 x + a_0$. Then every unique combination of $a_1$ and $a_0$ in $g(x)$ will give a unique set of roots in terms of values and multiplicities.   An example of this is $x^2 + 5x + 4$ (with $a_2 = 1$) - this polynomial has the roots $-4$ and $-1$, both with a multiplicity of $1$. Thus, for this $a_2$, only $g(x) = 5x + 4$ will give this set of roots. Only for a different $a_n$ a different $g(x)$ may yield this set of roots. I mean after all, any polynomial of degree $2$ can be written as $a_2(x - r_1)(x - r_2)$.  This is all something that I think could be true. So can any of you smart guys out there tell me if I am right and if so, might explain why this holds - that the set of roots with respect to their values and multiplicities are unique for each $g(x)$?


Determine whether the series $\sum_{n=1}^{\infty}\left(\frac{n}{n+1}\right)^{n^2}$ converges

Determine whether the following series converges: $$\sum_{n=1}^{\infty}\left(\frac{n}{n+1}\right)^{n^2}.$$   I tried to solve it using ratio's test but it leads me nowhere.


Ubuntu root mount failed and also fsck not found at initramfs

fsck /dev/sda1  -->/bin/bash: Output: not found


For each 𝑘 ∈ ℤ⩾0, let 𝐷𝑘 = {𝑛 ∈ ℤ⩾0 ∶ 𝑘 = 𝑚𝑛 for some 𝑚 ∈ ℤ⩾0}. D1 = {1} D2={1,2} D3={1,3} D4={1,2,4} D5={1,5} Find the following:(write in roster notation) 1.{𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for some 𝑘 ∈ ℤ⩾0}  {𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for all 𝑘 ∈ ℤ⩾0}.  My attempt: 1.{1,2,3,4.....} 2.{1} Is my attempt for question 1 correct? I could not think of a more convincing answer and if my answer happens to be correct, can anyone else explain how to derive the answer for both part 1 and 2. Thanks!


rsync a file from serverC to serverA through serverB

I have computers A, B and C. Every one of them has ssh enabled and I can use rsync.  A can ssh to B B can ssh to C A can't ssh to C  B has public ssh access, so A can connect B and C can communicate because they are in a vpn and A is not part of it. I would like to copy some files (and create a cronjob for this) from C to A. What is a good way to do this? UPDATE: I was able to ssh to C  via B as it was explained in the related answers that you suggest me but I was not able to rsync through serverB.     Consider that B is listening for ssh not on port 22.


How can I have 2 different mod folders with the new Minecraft launcher?

I like playing Equivalent Exchange 2 mod, which was only updated for 1.2.5.  It was also an external mod, meaning it was put in the "mods" folder.  The new launcher works great, but I cannot find a way to manage the mods in the mods folder based on the profiles I want to play.    So what I want is to have a "Skytable" version that runs EE2 and a few other external mods, and also have a "Tekkit" version that has a custom layout of mods, some of which are external.  Both are on the 1.2.5 base Minecraft, but I don't want mods from Skytable to work on Tekkit and vise versa.  Is there a way to have the "profiles" the launcher creates look in a subfolder of "mods" for something like '/mods/"Profile name" for external mods? I know moderate Java programming, but have never looked at the code for Minecraft or any mods and etc.


Simultaneous diagonalization of commuting linear transformations

Let $V$ be a vector space of finite dimension and let $T,S$ linear diagonalizable  transformations from $V$ to itself. I need to prove that if $TS=ST$ every eigenspace $V_\lambda$ of $S$ is $T$-invariant and the restriction of $T$ to $V_\lambda$ ($T:{V_{\lambda }}\rightarrow V_{\lambda }$) is diagonalizable. In addition, I need to show that there's a base $B$ of $V$ such that $[S]_{B}^{B}$, $[T]_{B}^{B}$ are diagonalizable if and only if $TS=ST$.  Ok, so first let $v\in V_\lambda$. From $TS=ST$ we get that $\lambda T(v)= S(T(v))$ so $T(v)$ is eigenvector of $S$ and we get what we want. I want to use that in order to get the following claim, I just don't know how. One direction of the "iff" is obvious, the other one is more tricky to me.


Prove that $\lim_{(x,y)\rightarrow(0,0)} \frac{|x|^{a}|y|^{b}}{|x|^{c} + |y|^{d}}$ does not exist

Given $\frac{a}{c} + \frac{b}{d} = 1$ Prove that $$\lim_{(x,y)\rightarrow(0,0)} \frac{|x|^{a}|y|^{b}}{|x|^{c} + |y|^{d}}$$ does not exist.  So I have done the proof for strict inequalities. And the limit only exists when the fractions add up to an integer greater than $1$. I'm not sure how to approach this other than counter examples.


countability of the subset of cartesian product of integers

Let us consider the set $X$ of the following infinite dimensional vectors:  $$ x = (x_{1}, x_{2}, \dots, x_{k}, 0, \dots,),  $$ such that $x_{i} \in \mathbb{Z}$ and for any $x$ there exist $k < \infty$ such that $x_{j} = 0$ for all $j > k$.   The statement: $X$ is not countable.   Try: I tried to show this using the fact that the set of all subsets of all integers is uncountable


I want to examine and hopefully deduce a formula that generates all $n\geq0$ for which $n\cdot2^n+1$ is divisible by $3$. Let's assume that it is true for all $n$ and that there exist a natural number $k\geq0$ such that $$n\cdot2^n+1=3k,$$  Now I want to proceed with induction, but clearly this will not work because for $n=3$ we have $3\cdot2^3+1=3\cdot8+1=24+1=25$ which is clearly not divisible by $3$.   Any ideas how to evaluate a formula that generates all the $n$'s for which $n2^n+1$ is divisible by $3$?


I have read al lot of the pgrouting, but i still not quite sure if it can do what i want.  I have 20 stop points and i have 1 starting point and 1 finish point.  I want to calculate the shortest path between starting point, all 20 stop point and finish point.  Its something like delivering packects, so from starting point to point x then point y and last finish point,  Maybe iets possible with a dijkstra algorimte ?


How to get rid of erroneously drag-n-dropped folder shortcut in Finder toolbar?

I erroneously drag-n-dropped a folder shortcut in my Finder toolbar.  I tried dragging it off and right clicking, to no avail.  How do I remove it?


I wanted to create new field in QGIS to store date and time from a datetime string field named dateposte. Here is the code I used to make it: import datetime   layers = QgsProject.instance().mapLayers() for layer_id, layer in layers.items():     #creating new field     layer.dataProvider().addAttributes( [ QgsField("date", QVariant.Date) ] )     layer.dataProvider().addAttributes( [ QgsField("time", QVariant.Time) ] )     layer.updateFields()     with edit(layer):         for feature in layer.getFeatures():             thedatetime = datetime.datetime.strptime(feature['dateposte'], '%Y-%m-%d %H:%M:%S')             feature.setAttribute(feature.fieldNameIndex('date'), thedatetime.date())             feature.setAttribute(feature.fieldNameIndex('time'), thedatetime.time())             layer.updateFeature(feature)  But I got error on this line: feature.setAttribute(feature.fieldNameIndex('time'), thedatetime.time())  and getting error message Erreur OGR lors la création du champ time : Can't create fields of type Time on shapefile layers.  How can I do this?


Anyways, I have been rendering this office for a while now, and everything was fine. I came back after modelling something else and everytime I render an image this screen appears.  How can I fix this black screen?


Six months have passed since paper has been accepted and it was not yet published - has the editor changed his mind?

About 10 months ago, I submitted one little article to a journal and six months ago I received the acceptance. I uploaded the latex file and since then I didn't hear anything about it being published.  Today it appeared a new issue of the journal so I must wait at least another 3 months.  This will be my first published article and I started to become a little nervous about it.  Can you tell me if something happened, like editor's changing his mind or delaying because they consider it less valuable than other submissions?  Should I contact my editor about this?


Can a Monk "turn off" the Tongue of the Sun and Moon feature?

The description of the monk's  feature states:     Starting at 13th level, you learn to touch the ki of other minds so   that you understand all spoken languages. Moreover, any creature that   can understand a language can understand what you say.   While the ability is useful in social situations, it can occasionally be detrimental. For example, communicating tactics in Common while fighting Duergar (who only speak Dwarvish and Undercommon) is a situation where the Monk would prefer not to be understood.  Is a Monk capable of "turning off" the Tongue of the Sun and Moon class feature?


how does following for loop work ? for (String temp : uniqueSet)

Set<String> uniqueSet = new HashSet<String>(list); for (String temp : uniqueSet) {     System.out.println(temp + ": " + Collections.frequency(list, temp)); }   Above is the java code that i got from one of the forum, the for loop was looking little mysterious, can some one please explain.


Untrusted Source .jar file will not open

How could I bypass blocked files from "untrusted" sources? I am using 15.10 (Wily Werewolf)


I have been looking into the inner-workings of the standard error recently, and I found myself unable to understand how it works. My understanding of the standard error is that it is the standard deviation of the distribution of sample means. My questions are:  • how do we know the standard error is the standard deviation of the sample means when we usually take just a single sample?  • why doesnt the equation to calculate the standard error mirror the standard deviation equation for a single sample?


Let's say I have my method myMethod checking a series of scenarios then throws exception accordingly without handling those exceptions.  public MyResponse myMethod(MyRequest req) {     try        {           if(req.property1 == null || req.property1.isEmpty())              throw new Exception("Property 1 is null of empty");            if(req.property2 == null || req.property2.isEmpty())              throw new Exception("Property 2 is null of empty");            //if no problem is found then proceed ...        }        catch(Exception e)        {           //log error           throw e;        }  }   How do I test the exception being thrown or at least check the message that was sent with the exception?  @Test public void aNullOrEmptyProperty1CausesExceptionTest() throws Exception {     //..     String property1 = "";     req.setProperty1(property1);     //...     MyResponse response = target.myMethod(req);      //How to check for the exception? }   Thanks for helpin


I am founding "not found /etc/locale.conf " issue in my pc

root@tony-Satellite-C665:~# ls /etc/locale.conf ls: cannot access /etc/locale.conf: No such file or directory


Tooling API usage in salesforce Apex method

I am trying all my level best to know how the Tooling API is used. Can someone suggest or show me with a small example on how do I create a apexClass in a controller method.   I have already generated metadataservice from WSDL.


Should site icons be generic black when accessed through the left drop-down?

I noticed that when I am on the generic Stack Exchange page, the one that is linked to by clicking the button furthest left on the top bar, and then I click on that button again to access the drop-down.  The icons for established SE sites are showing up as a generic black icon with lettering. This is in contrast to the dropdown on the farthest right of the top bar, which displays the site icons for each site.  Perhaps this is status-by-design, but it seems to me that the two dropdowns should have consistent icon usage to avoid confusion.  Here are screenshots of both dropdowns, first the one from the top left button that shows the black icons, and then the top right button that shows the normal site icons.  Black lettering icons:    Normal icons that I'm used to:


How to make a film in black and white and add color to some objects?

How is a movie made to show selective colors. For instance, in  a sister and brother are transported to the universe of an old black and white TV show, and the movie switches to being B&W. Then, as the protagonists cause the inhabitants to have 'real' emotions, like fright, anger, or love, things (people, places, etc.) start having color. In the middle of the movie, many objects are still B&W, yet many more are now colorized.   also used this effect (the whole film was initially shot in full color, and was converted to black-and-white. Colorization is used on certain subjects in a scene), for example.  How is this effect achieved? Is it post-production editing? What techniques might a director employ to do this?


Is it possible to delete the Minecraft folder on a Mac?

I'm trying to fix a Null Pointer Exception I'm getting when running Minecraft on my Mac. Some instructions I've found said that I needed to do two things:   Uninstall/Reinstall Java 'Nuke' the Minecraft folder   I've done the first, but I am unsure how to delete the Minecraft folder.  So how can I delete (nuke) a Minecraft folder?


Whats wrong with this proof? Are laws of surds different for negative numbers?

The following "proof" is given:  $$i^2=(i)(i)=\sqrt{-1}\cdot \sqrt{-1}=\sqrt{(-1)(-1)}=\sqrt{1}=1$$  Could someone please explain to me where the logic has broken Down?


Is there any effort in determining if a duplicate question is better than the original?

I was wondering, sometimes the reason for the existence of a duplicate question might be, because the original was not very "findable." Or the duplicate might have better answers, or applicable to more circumstances. Are there any efforts to merge questions in those circumstances?


How do I add a C/ Common wire to my "Specific" HVAC system?

I just bought a new WiFi thermostat that requires me to add a C-Wire at the furnace. I have read the questions related to my issue but would like a suggestion on my particular (incredibly OLD) furnace. I have run 18/5 wire down to the furnace and just need to know where the C wire would go in my particular case.


The use of OP's in a sentence in english stack exchange

I have come cross the use of OP's.What does OP's mean as used in a sentence.


I am getting the following error with the example given at the end:  Option clash for package xcolor.  Example:  \documentclass{beamer} \usetheme{Warsaw}  \usepackage{amsmath,amsfonts,amssymb,pxfonts,eulervm,xspace} \usepackage{graphicx} \usecolortheme{dolphin} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}  \useinnertheme{circles} \useoutertheme{smoothbars} \usepackage{geometry}  \oddsidemargin = -2cm \usepackage{pdfpages} \setcounter{framenumber}{-1}  \usepackage{tcolorbox} \usepackage[spanish, es-tabla]{babel} \usepackage[utf8]{inputenc} \begin{document}     contenidos... \end{document}


No. of ways to choose $n$ things from $n$ alike "a" things $n$ alike "b" things and $n$ different things.  Answer is $(n+2)2^{n-1}$. But how to prove it..?


I just installed Open Office from the deb package. By default, it is installed in /opt so I can start OO writer with:  /opt/openoffice4/program/soffice   But, I want it to automatically open .docx files.   When I right-click on a docx file and select "Open With", it doesn't let me select Open Office. How can I tell Ubuntu to always open docx files with /opt/openoffice4/program/soffice ?  I have Ubuntu 12.04.


every few minutes I found this process running   root      949062  100  0.0  37204  1488 ?        R<   05:14   0:51 /usr/local/cpanel/3rdparty/bin/clamdscan --quiet --no-summary /etc/passwd   It's using 100% cpu. I kill it , and after some time I see it again . How can I determine who is running this process ?


Prove that there is only one unique base b representation of any natural number.

I have been asked to prove that for any integer base $b \geqslant 2$, every natural number has a unique base $b$ representation. I am not sure if this has been answered somewhere already, but I could not find a general answer that can be applied to any base.   Would the division algorithm apply here? I know that it would serve to give every number a unique quotient and remainder, but I'm not sure how exactly to craft the proof. I appreciate any input, thanks in advance!!


WMD unable to render markup inside words

Wrote text in an rtl language (from the  you can see it is done with good reason). I then tried to make bold one letter within the word, while making the entire word in italics -> example.  As you can see, it's actually not connected to the orientation of the language.


Is it possible to export a layered PNG file from Photoshop to Paint.net?

I do not have Photoshop installed on my own local machine unfortunately, but would like to know if Photoshop can export an image file to a PNG and retain the separate layers for a different program such as Paint.net?


Is an arbitrary sum of nil (nilpotent) right ideals a nil (nilpotent) right ideal?  If $I=\sum I_i$ is a sum of nil ideals then each element $x$ of $I$ is a finite sum $x=x_1+...+x_n$ of elements $x_k\in I_k$ a power ${x_k}^{p_k}$of each of which is zero. But, since each power of $x$ is a finite sum constituting of  summands of the form $∏{x_i}^{t_i}  $( of course, in this product the $x_i$'s may be repeated with different powers), I guess that one could choose the power of $x$ so "big" that it be annihilated.   Is my guess true? How?  Thanks!


How can I make a "Movie Clip" node start at a certain frame of the scene?

When I use "Movie Clip" node in Blender 2.7, it always starts at Scene Frame 1. How can I change it in order to make it start at Frame 6, for instance? The movie clip I am using is a Movie FX for another video, and I want to use it with the Mix node.   Thanks


No redraw after assigning new vertex position with python

I'm trying to write a new operator which modifies my geometry in some way, but I'm struggling with vertex manipulation. I can get the selected vertices fine and also print the individual components. So, lets say I have a vertex v. I can get the position of this vertex via v.co. But when I set a new value for this vertex with my operator it does not redraw in the 3D View. I assign a new value like this:  v.co = Vector((1,2,3))   Like said above the 3D View does not update. I have to quit my operator and navigate in the 3D View to update. What do I have to do to make blender update the 3D View correctly?


Ubuntu 18.04 Extracting files "parsing filters is unsupported"

Running Ubuntu 18.04 on a laptop.   I tried extracting a file(~700MB) using right click+extract here but got the following error message:    The file contains mainly pdfs, but also text files, some executables, but it does have alot of files which themselves have files.  I went through some of the pdfs in the file and found that some of them are open able as normal, yet others give the same error.


Ubuntu "USB for OS X" instructions doesn't create bootable USB drive

iMac i3 running 10.6.8   I've downloaded the 12.0.4 32-bit Intel ubuntu.iso and converted it to ubuntu.img and moved to root. The "USB for OS X" instructions say insert USB Flash media.   My flash media is FAT32.   But, if one were to use Disk Utility to Erase, what format is correct: FAT, ExFAT, Mac OS Extended (Case-sensitivity), or Mac OS Extended? Found the drive: /dev/disk1 and unmounted OK. Issued: sudo dd if=/ubuntu.img of=/dev/rdisk1 bs=1m The copy goes fine, BUT at the end I get a OS X message that The disk you inserted was not readable by this computer.   This is not in the Ubuntu instructions. So, I choose the Ignore option. Issued: diskutil eject /dev/disk1 and restart with Option held down.   No USB drive shows up to boot from. Eventually I get an "Unrecognized Disk" error. I'm not surprised because my memory is that to get a bootable drive for a Mac requires some version of the correct OS X to be on the disk.   Yet, the folks who wrote these instructions would certainly know this fact -- yet their instructions don't work.


How does pointing a CNAME on my domain to a service-provider's server enable them to offer customized services?

I'm trying to understand how web services which have you setup CNAME records on your domain pointing to their servers work.  For example, following the instructions on LaunchRock (), I create a CNAME record as  signup.mysite.com    with the value   sites.launchrock.com   I understand that folks accessing signup.mysite.com would be redirected to sites.launchrock.com, but I'm trying to understand how sites.launchrock.com is configured so that it detects this incoming request and tailors the webpage appropriately for my landing page.  What software / configuration is present there that handles this properly?  I looked at this  - but this did not explain how to serve different content to different domains.


How much server RAM docker-machine instance needs?

I have a docker installed at OS X and using docker-machine with my host provider server. The server OS is CoreOS, I have 3 lightweight sites with NGINX, Mongo and MySQL instances. Sometimes sites down and provider's support suggesting me with low RAM, but 2GB RAM isn't sufficient for such sort of thing?