I was given an RGB GeoTIFF orthomosaic image that is just over 10GB. I pulled it into QGIS and tried clipping it to get under 10GB (to use in another program that only allows up to 10GB). Though when I clip it or do any other process, the output file size is over double of the orginal (24GB). I tried setting the zero values to null, but that has minimal effect. I need to keep the image as an RGB, so I cannot export it as a jpeg or png. Has anyone else run into this problem and solved it, if yes then how?
I have a geo-tiff created by Pix4D which is about 375 Mb in file size.   I have clipped it to a smaller area using Qgis 2.8(using Raster ‣ Extraction ‣ Clipper), and the output file is about 900 MB in size.  Why did the clipping process generate such a large file, when the source file was smaller?   How do I run the clipper tool so that it produces a smaller size?
I have two examples of different scenarios that are confusing to me.  First, if I have a 1/1 creature with first strike and deathtouch, and my opponent blocks it with a 2/2 creature, will my creature die? I can see two alternative ways this could play out and I'm not sure which is correct.   My creature deals his first strike damage, immediately killing the opponent's creature before he is able to deal combat damage as a state-based effect. My creature deals his first strike damage, which would normally be lethal due to deathtouch, but state-based effects are not checked, and thus the opposing creature deals his damage and both die.   I'm almost positive in this case that it's the first option above.  What gets trickier is, for example, if a creature has first strike and a triggered ability "Whenever this creature deals combat damage to a creature, return that creature to its owner's hand."  This is not a state-based effect, but rather uses the stack. Similar to above, there are two possibilities.   My creature deals his first strike damage, and his triggered ability is placed on the stack. The stack waits to resolve until after all combat damage is dealt, so the opposing creature still kills mine. My creature deals his first strike damage, and his triggered ability is placed on the stack. Both players now gain priority between first strike and combat damage (which I don't think normally happens, thus my confusion). The stack finishes resolving, and the opponent's creature doesn't have a chance to deal damage.   Can someone clarify this area of the rules? What is the setting in bash for globbing, to control whether * matches dot files I was surprised recently when I did something like mv ./* ../somedirectory and found that files like .gitignore were not moved.  I do most of my work in zsh on OS X, and this surprise bit me in bash on CentOS.  I tried bash on OS X and found the same behavior: * does not match dot files.  This seems very undesirable to me, but apparently it's the bash default.  (It may be the zsh default too for all I remember, but I may have changed it years ago in my .zshrc and forgotten it ever worked differently.)  How can I configure bash to behave as I expected: for * to match all files, and not ignore dot files.  In case this is at all unclear, here's how to reproduce it    cd /tmp mkdir {t,d}est touch test/{.,}{1,2,3,4,5,6,7} ls -hal test mv test/* dest ls -hal test     # notice dot files are still there ls -hal dest     # notice only some files were mv'ed Who built the fortress of Dol Goldur, and when was it built? And was it always a place for evil, or Sauron just occupied it?  Despite the fact that Mordor is much better fortified; artificially by the old fortifications,  and geographically, as it is surrounded by the mountains. Also considering the presence of mount doom that seem to enhance Sauron's power, Sauron chose to start his campaign from Dol Goldur, despite Mordor being ready for quite some time.  Why did he choose this enigmatic fortress, and not go straight for Mordor or even go earlier? What is the name of this kind of character illustration? I have seen lots of UI designer nowadays including this kind of illustration i want to know the name of this style so that i can also learn and try this in my designs. putExtra treeMap returns HashMap cannot be cast to TreeMap android Why is $2\pi i \neq 0?$ Ted Shifrin on this site posed an interesting problem to me: show that   $$ \lim_{(x,y) \to (0,0)} \frac {|x|^ \alpha |y|^ \beta} {|x|^ \gamma + |y|^ \delta} \text {exists} \iff \frac\alpha\gamma + \frac\beta\delta &gt; 1, \,\,\,\,\text{where } \alpha, \beta, \gamma, \delta &gt;0$$  I think I've got the $(\Leftarrow)$ direction as follows: assume WLOG that $\gamma \leq \delta$. Then switch to polar coordinates and get   $$\frac {r^ {\alpha + \beta} (*) } {r^\gamma (1(*) + r^{\delta - \gamma}(*))},$$  where $(*)$ represents some trig stuff that is bounded near zero.   Edit: I need to make sure that $(1(*) + r^{\delta - \gamma}(*))$ is bounded below here.  The other direction is giving me some trouble. It seems we need a lower bound for the fraction (something to force to zero), and I'm not sure where to find one. In particular, I'm not sure what to do with the denominator. Any ideas? I wrote the wrong thing in a commit message.  How can I change the message? The commit has not been pushed yet. Is there a way to set up a default folder for Windows Explorer? I often use Win + E to pop up Windows Explorer, and then I usually have to navigate down into a few network folders to find my primary directory. Is there a way to set this folder as the default so that Windows Explorer always opens to this folder? Why is it so hard to do this in Java? If you want to have any kind of module system you need to be able to load JAR files dynamically. I'm told there's a way of doing it by writing your own ClassLoader, but that's a lot of work for something that should (in my mind at least) be as easy as calling a method with a JAR file as its argument.  Any suggestions for simple code that does this? Title restated: Show that $A\in\mathbb{C}_n$ is normal $\iff$ $tr(A^*A) = \sum_{i = 1}^n|\lambda_i|^2$, where $\lambda_1,...,\lambda_n$ are the eigenvalues of $A$.  This question comes from "Matrices and Linear Transformations" by Charles Cullen. I'm studying for an exam and am trying to do some problems but I'm having trouble with this one. Any help would be appreciated.  Thank you. Evaluating this integral $ \small\int \frac {x^2 dx} {(x\sin x+\cos x)^2} $ The question:      Compute$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} $$   Tried integration by parts. That didn't work.  How do I proceed? Multiple two pin multi-color LEDs pattern - how does this work? Convergence of the sequence $\sqrt{1+2\sqrt{1}},\sqrt{1+2\sqrt{1+3\sqrt{1}}},\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1}}}},\cdots$ I recently came across this problem     Q1 Show that $\lim\limits_{n \rightarrow \infty} \underbrace{{\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1+\cdots+n\sqrt{1}}}}}}}_{n \textrm{ times  }} = 3$   After trying it I looked at the solution from that book which was very ingenious but it was incomplete because it assumed that the limit already exists.  So my question is     Q2 Prove that the sequence$$\sqrt{1+2\sqrt{1}},\sqrt{1+2\sqrt{1+3\sqrt{1}}},\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1}}}},\cdots,\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1+\cdots+n\sqrt{1}}}}}$$ converges.   Though I only need solution for Q2, if you happen to know any complete solution for Q1 it would be a great help .  If the solution from that book is required I can post it but it is not complete as I mentioned.   Edit: I see that a similar question was asked before on this site but it was not proved that limit should exist. Multigroup (CCK3) / FlexiField-like solution for compound fields? I've used  in the past to do multiply occurring series of field groups; now, working on a Drupal 7 project, I'm setting up a "Resume" content type and need a way to set up repetitive entries for education/work experience.   IE: for "Education", I need the ability to dynamically add new rows comprised of a combination of dates and places for each institution studied at.  What is the best way to accomplish CCK3 multigroup/FlexiField-like functionality in Drupal 7?  Thanks! Django set default form values I have a Model as follows:  class TankJournal(models.Model):     user = models.ForeignKey(User)     tank = models.ForeignKey(TankProfile)     ts = models.IntegerField(max_length=15)     title = models.CharField(max_length=50)     body = models.TextField()   I also have a model form for the above model as follows:  class JournalForm(ModelForm):     tank = forms.IntegerField(widget=forms.HiddenInput())       class Meta:         model = TankJournal         exclude = ('user','ts')   I want to know how to set the default value for that tank hidden field. Here is my function to show/save the form so far:  def addJournal(request, id=0):     if not request.user.is_authenticated():         return HttpResponseRedirect('/')      # checking if they own the tank     from django.contrib.auth.models import User     user = User.objects.get(pk=request.session['id'])      if request.method == 'POST':         form = JournalForm(request.POST)         if form.is_valid():             obj = form.save(commit=False)              # setting the user and ts             from time import time             obj.ts = int(time())             obj.user = user              obj.tank = TankProfile.objects.get(pk=form.cleaned_data['tank_id'])              # saving the test             obj.save()      else:         form = JournalForm()      try:         tank = TankProfile.objects.get(user=user, id=id)     except TankProfile.DoesNotExist:         return HttpResponseRedirect('/error/') Proving $ \binom n 0 ^2 + \binom n 1 ^2 + \dots + \binom n n ^2 = \binom { 2n} n $ without induction I have to prove that: $$ \binom n 0 ^2  + \binom n 1 ^2  + \dots + \binom n n ^2 = \binom { 2n} n $$  I don't want a complete solution, but only a hint. Notify question OP (and those who marked it a favourite) if an answer has been modified Seriously, I had not noticed e.g. Jeff's edit  had he not also retagged my question. A circle has the same center as an ellipse and passes through the foci $F_1$ and $F_2$ of the ellipse, two curves intersect in $4$ points. Where has the trailing newline char gone from my command substitution?