I have got two existing rasters that have the same cell size (5x5m). The corner of cells from raster A are located exactly at the centres of cells in raster B. I want to place raster B exactly on top of my raster A.  I have tried these options:   the tool 'resample' on raster B, while maintaining the same cell size and snapping to raster A. the tools 'raster to points' and consequently 'points to raster' on raster B, again, maintaining the grid size and snapping to raster A.  the tool 'copy raster', snapping raster B-copy to raster A.    All options have the same result: raster B is still exactly where it lay before, with the corners of cells in B at the centre of cells in A.   Whenever Google this problem, I end up at 'environment settings' when making the grid for the first time - but I do not have the data on which the grid was based.  Do you have any suggestions on how I could solve this, without a need for the original data?  I am working in ArcGIS 10.2.1. I've got a basic license, but might be able to do an upgrade to Standard or Advanced if necessary.  Edit: the raster files are .asc files.
I have two rasters: a digital elevation model (DEM) and a Landsat band. The grid resolution of both is 30 m, but the grids are not coincident (see image: the dark raster on top is the DEM; the light raster underneath is the Landsat band).  I want to perform some transformation of the Landsat band so that its grid aligns perfectly with the DEM grid. I've tried resampling the Landsat band to 30 m in ArcGIS using the DEM as a Snap Raster in the Environment settings, but this does not have any effect. I've also tried clipping the Landsat band to the extent of a vector polygon (that the DEM is also clipped to), while setting the DEM as the Snap Raster, but to no avail.  I suspect this is happening because both rasters are already at the same resolution (just on different grids), but I really need their grids to be aligned to be able to do any further analysis.  Can I do this in ArcGIS Desktop?
If I am travelling on a car at around 60 km/h, and I shine a light, does that mean that the light is travelling faster than the speed of light? The title says it all.  If I was on a bus at 60 km/h, and I started walking on the bus at a steady pace of 5 km/h, then I'd technically be moving at 65 km/h, right?  So my son posed me an interesting question today: since light travels as fast as anything can go, what if I shined light when moving in a car?  How should I answer his question? Cannot redeem bounty I have about 25K of bounty vouchers but I cannot seem to redeem them. I believe I am sitting in the proper station and it has a office to redeem claimed bounties.  Bounty: 25,380 CR BOUNTY IN INDEPENDENT ERAVATE FREE  STATION: CLEVE HUB / INDEPENDENT ERAVATE NETWORK   If I am in the wrong station how do I find the information needed to travel to the correct station. Where can i see the faction running the station prior to flying there? I want to switch to French locale. So I tried the below command:  myUbundu@myUbundu-desktop:~$ export LC_ALL=fr_FR   But I am getting the warning  -bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR)   How to set the locale to French? Do I need to install additional packages? How do I set up a shipping condition that accesses the value of a specific field in product? I have a term reference field in product called "Weight" with values "Light", "Medium" &amp; "heavy". I am using flat rate shipping service and trying to check the value of "Weight" field in Calculation rules.I know that I need to expose it by using "entity has field" but I end up having  commerce-line-item:order:commerce-line-items:0 commerce-line-item:order:commerce-line-items:1 commerce-line-item:order:commerce-line-items:2 commerce-line-item:order:commerce-line-items:3 commerce-line-item:order:commerce-line-items:0... commerce-line-item:order:commerce-line-items:1... commerce-line-item:order:commerce-line-items:2... commerce-line-item:order:commerce-line-items:3...    I was able to get to the weight field by using any of them and then did a Data Comparison  commerce-line-item:order:commerce-line-items:0:commerce-product:field-product-weight   this condition worked ok first time but not after that. can anyone please help me on this or if you think of another solution please let me know. Thanks Need intuition about independence of events Suppose that we have the situation as depicted in the figure: a random experiment which has 4 outcomes $x_1, ..., x_4$ and two events $A$ and $B$. Also assume that $P(x_i)=0.25$.  Now, since $P(A \cap B) = P(A)P(B) = 0.25$, by definition the events $A$ and $B$ are independent. This does not make sense to me. Why are they independent? Is there an intuitive explanation?  Another thing is, suppose that there is a 5th outcome, $x_5$, outside of $A \cup B$, in that case the events $A$ and $B$ are no longer independent since  $P(A \cap B) \ne P(A)P(B)$. This result also does not make sense to me. A map $f:S^n\rightarrow S^n$ satisfying $f(x)=f(-x)$ for all $x\in S^n$ is said to be an even map. Show that if $f:S^n\rightarrow S^n$ is an even map, then $\deg f=0$ when $n$ is even and $\deg f$ is even when $n$ is odd. Moreover show that when $n$ is odd, there exist even maps of any given even degree.   My Try:  So $f=(-I)\circ f$. Then $\deg f=\deg (-I)\times \deg f$. If $n$ is even $\deg (-I)=-1$. Hence, $2\deg f=0$, so $\deg f=0$. But how do I show the results when $n$ is odd. No clue at all. This problem is in Hatchers book (A very complicated text). There is a hint but I do not understand it. Can somebody help me to proceed? How can I detect inside a TeX file which engine (pdftex/xetex/luatex) is used to compile the file? Is there a LaTeX package that provides this functionality? Analytic continuation of a power series 2 Another Qual question here,  For the function $$\sum_{n=0}^\infty z^{2^n}$$,  Prove the following:  i) $f$ converges to a function analytic in the open unit disk $D$,  ii) $f(z) =z+f(z^2)$ and  iii) $f(z)$ can not be analytically continued past any point on the unit circle.  I can even see (ii) very easily, but I can not see how can I prove rigorously (i) and  (iii). Help please. How to avoid the wrinkle at the poles of the UV sphere? What is the daily reputation cap and how can I hit it? I've found some questions and those two badges "Epic" and "Legendary" regarding the "daily reputation cap". What is it and how can I hit it? Frobenius element in cyclotomic extension Let $K=\mathbb{Q}(\zeta_m)$. Then if $p\nmid m$ is any odd prime, how i can show that Frobenius map is $(p,K/\mathbb{Q})(\zeta_m)=\zeta_m^p$.  We know, if $P$ is a prime above $p$   $$(p,K/\mathbb{Q})(x) \equiv x^p (\mbox{mod } P) \quad\forall x \in \mathbb{Z}_K$$  Thanks! I recently upgraded to Ubuntu 20.04 lts from 18.04 lts. After reboot audio is not working. I tried to reinstall pulseaudio and alsa but still not working. sudo apt-get install --reinstall alsa-base pulseaudio sudo alsa force-reload still not working. output  └─▶ inxi -SMA System:    Host: Wizard Kernel: 5.4.0-26-generic x86_64 bits: 64 Desktop: Gnome 3.36.1 Distro: Ubuntu 20.04 LTS (Focal Fossa)  Machine:   Type: Portable System: Dell product: Vostro 2520 v: N/A serial: &lt;superuser/root required&gt;             Mobo: Dell model: 0V1NDP v: A11 serial: &lt;superuser/root required&gt; BIOS: Dell v: A11 date: 02/24/2014  Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel             Sound Server: ALSA v: k5.4.0-26-generic     output └─▶ lspci  00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4) 00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM75 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04) 07:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01) 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07) Bibliography in Texmaker I'm having some problems with my bibliography in Texmaker. My code is:  \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{natbib} \usepackage[utf8]{inputenc}     \usepackage{natbib} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \begin{document}  ....  \cite{Johnson} \bibliographystyle{plain} \bibliography{mybib}  \end{document}   I also created a new file (File > New) that I saved as mybib.bib:  @Article{Johnson, author = {Edgar G. Johnson and Alfred O. Nier}, title = {Angular Aberrations in Sector Shaped Electromagnetic Lenses for Focusing Beams of  Charged Particles}, journal = {Physical Review}, year = {1953}, volume = {91}, number = {1}, }  @phdthesis{Zoran, author = {Zoran Racic}, title = {\'Etude et essais du spectromÃ¨tre Ã  plasma {DYMIO} de la  mission {MARS 96}}, publisher = {UniversitÃ© Pierre et Marie Curie}, year = {1996} }   When I compile my .tex file, I only have a [?] appearing.  Could you tell me what my mistake is? Detecting if resistances are parallel or series in complex circuits I know how to detect when resistors are arranged in parallel or series arrangement and I can also find their equivalent resistance in simple circuits or when resistances are connected in form of triangle but what happens when the arrangement is complex like this :   Which resistors are parallel and which are in series ? How can I find the equivalent resistance in such cases ? Is there rule or method for figuring this out ? Please add TeX rendering on the Android app MathJax isn't currently working on the Android app, which makes it totally useless for the 'technical' sites like  or .  For example, in the Android app:    Same post in a (mobile) browser:     Please add this functionality! Keep getting error 'list' object has no attribute 'split' I have created some search entries in Google Chrome using 'Edit search engines'.  How can I share some of these entries with my colleagues? How do I programmatically log in a user with a POST request? Do anyone have a working REST Login on Drupal 8? This is what I tried. POST /user/login HTTP/1.1 Host: 8.d8.local Content-Type: application/x-www-form-urlencoded Accept-Encoding: http://nikhilmohan.in Cache-Control: no-cache  name=test&amp;pass=password&amp;form_id=user_login_form  It returns me HTML instead of JSON. Code   find / -name netcdf   Output  find: `/root/.dbus': Permission denied find: `/root/.gconf': Permission denied find: `/root/.gconfd': Permission denied find: `/root/.gnome': Permission denied find: `/root/.gnome2': Permission denied find: `/root/.gnome2_private': Permission denied How to handle ordinal categorical variable as independent variable I am using a logit model. My dependent variable is binary. However I have an independent variable which is categorical and contains the responses: 1.very good, 2.good, 3.average, 4.poor and 5.very poor. So, it is ordinal ("quantitative categorical"). I am not sure how to handle this in the model. I am using gretl.  [Note from @ttnphns: Although the question says the model is logit (because the dependent is categorical), the crucial issue - ordinal independent variables - is basically alike, be the dependent categorical or quantitative. Therefore the question is equally relevant to, say, linear regression too - as it is to logistic regression or other logit model.]