I'm georeferencing an image using gdal and the following command:  gdal_translate -of Gtiff -co tfw=yes -a_ullr 0.016264915466308594 51.505109712517786 -0.0024890899658203125 51.492018739579336 -a_srs EPSG:4326 Penguins.jpg penguins.tif   then I'm generating the tiles using gdal2tiles and the following command:  python gdal2tiles.py -t 'Penguins' -k penguins.tif penguins_gdal   but for some reason the resulting tiles show the image flipped on the y axis even though the tif image is not flipped.  Am I doing something wrong?  Thanks
As an example I have a BSB file from NOAA which is a navigational map. The map has a SRS of WGS84 and a Mercator projection.  I initially translate the file from BSB format to GTiff format using the following command:  gdal_translate -of GTiff 18554_1.kap noaa.tif  I can view this GTiff file using Paint Shop Pro quite fine. I then translate the file from GTiff format to VRT format using the following command:  gdal_translate -of vrt –expand rgba noaa.tif noaa.vrt  I then try to generate a tile matrix set using the following command:  gdal2tiles.py noaa.vrt tiles_folder  Where the map tiles are located in tiles_folder. If I try to open the openmaps.html or google.html, the map zoom in and out looks good. However, on tiles generator like MBTiles, I see tiles swap. See the image below. I am pulling my hair off to get the tiles to line up. I am guessing it is projection error. I am not understanding those projection types. It would great someone can explain it while finding the error. I am planning to use on a tiling  like this. By the way, on GDAL how do I specify the BSB (reference) file that is associated with KAP (data) file? I have seen cases where only one BSB file referred by multiple KAP files.
The difference between GPU and CPU I've recently bought a new Android smartphone. After setting it up and loading my contacts onto it I thought that would be it.  Now after some days, every time I unlock the phone it takes a few seconds before it opens the default browser and opens some spam website. I tried to see what was causing it. I removed any apps I didn't know I could trust, but the problem persisted. After trying to solve it for some time I gave up and reset the phone to factory default. Now after having it reset to the default it ran without issues for roughly a week before the problem reappeared.    I tried to uninstall some apps in order to see if they were to cause of it, but nothing changed after doing so. However I did notice that if I turn off the wifi it won't even try to open the browser (I haven't tried mobile data since I don't have a bundle). This makes me feel like it might be related to something on the network but that wouldn't explain why only that phone would have the issue when there are at least 6 android phones on that very same network.  I hope that there is someone who can help me find the cause of this issue and help me solve it.  TL;DR When unlocking my phone, it opens the browser and tries to open a spam website. But only does so while connected to the wifi.  Things I've tried so far:   Factory reset (only helped for a limited time) Clearing the browser cache and all related data  Removing any app I don't know to be reliable Attempting to find what triggers it (seems like some type of internet connection is required??)   The device is the Doogee Shoot 1. As for the browser, the default is set to be the Android browser, but if I change the default it would use Chrome just as well. It seems to really just use the browser that is set to default. Is there a way to change the process group of a running process? Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure. Can I change a user's keyboard input? I have this picture:  (I have the original in Pixen and could export it to several different formats. I went with PNG though since it's lossless.)  When I open my picture in Preview (OS X) and zoom in, it looks fine. The characters have extremely sharp boarders between them and the background. However, when I put it into my LaTeX document, compile it to a PDF (using TeXShop) and then zoom in, it suddenly have gotten blurry (see screenshot: ).  Minimal working example:  \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \includegraphics[scale=1]{fig1.png} \end{document}   In the end, I would like to be able to scale the picture freely without there being any blurring at all. Matrix of Linear Transformation by right multiplication I am trying to solve the following problem:   Let $A$ be an $n\times n$ matrix, and let $V$ denote the space of $n$-dimensional row vectors. What is the matrix of the linear operator ‘‘right multiplication by $A$’’ with respect to the standard basis of $V$?  I am not sure where to begin with this problem. Bearing in mind I am a layman - with no background in physics - please could someone explain what the "big deal" is with quantum entanglement?  I used to think I understood it - that 2 particles, say a light-year apart spatially, could affect each other physically, instantly.  Here I would understand the "big deal".  On further reading I've come to understand (maybe incorrectly) that the spatially separated particles may not affect each other, but in knowing one's properties you can infer the other's.  If that it the case, I don't see what the big deal is... 2 things have some properties set in correlation to each other at the point of entanglement, they are separated, measured, and found to have these properties...?  What am I missing? Is it that the particles properties are in an "un-set" state, and only when measured do they get set?  (i.e. the wave-function collapses).  If this is true - why do we think this instead of the more intuitive thought that the properties were set at an earlier time? Virtual functions and performance - C++ In my class design, I use abstract classes and virtual functions extensively. I had a  feeling that virtual functions affects the performance. Is this true? But I think this performance difference is not noticeable and looks like I am doing premature optimization. Right? For which values $r, s \in \mathbb R$ is the set $\{u, v, w\}$ linearly independent? A message may be accompanied with a digital signature, a MAC or a message hash, as a proof of some kind.  Which assurances does each primitive provide to the recipient?  What kind of keys are needed? A virtual file containing the concatenation of other files Some doubts about photons How long does a ban or suspension on an SE site last? I've tried to make some searches about ban and suspension but the data I found doesn't seem to correspond to my experience. I also cannot find a FAQ on the help section.  Can you explain me how these mechanics work?   I've just found  for a review ban duration to be extended automatically at every new suspension . But it's speaking of 2, 7, 30 days.  I've heard from a moderator that the suspension duration is 7, 30, 365 days. Is that correct? Can a moderator change the duration of a suspension? Why does cout print char arrays differently from other arrays? When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation) Integrating $\int\frac{x^3}{\sqrt{9-x^2}}dx$ via trig substitution What I have done so far: Substituting $$x=3\sin(t)\Rightarrow dx=3\cos(t)dt$$ converting our integral to  $$I=\int\frac{x^3}{\sqrt{9-x^2}}dx=\int \frac{27\sin^3(t) dt}{3\sqrt{\cos^2(t)}}3\cos(t)dt\\ \Rightarrow \frac{I}{27}=\int \sin^3(t)dt=-\frac{\sin^2(t)\cos(t)}{3}+\frac{2}{3}\int\sin(t)dt\\ \Rightarrow I=18\cos(t)-9\sin^2(t)\cos(t)+c$$ Which is where I'm stuck. I can substitute back in for the $\sin(t)$ terms but don't know hot to deal with the $\cos(t)$ terms and back out information about $x$.   edited: because I miswrote the problem, I am sorry. Example code required for how to access embedded .Net image resources in C# It's very easy to mark an image file to become an embedded resource however how does one access the image thereafter. Please can I have some example code? Separate labels in cases I know it is possible for a group $G$ to have normal subgroups $H, K$, such that $H\cong K$ but $G/H\not\cong G/K$, but I couldn't think of any examples with $G$ finite. What is an illustrative example? Logins with only HTTP - are they as insecure as I'm thinking? Recently I was thinking about how websites like gmail and amazon use HTTPS during the login process when accessing your account. This makes sense, obviously, since you're typing in your account username and password and you would want that to be secure. However, on Facebook, among countless other websites, their logins are done with simple HTTP. Doesn't that mean that my login name and password are completely unencrypted? Which, even worse, means that all those people who login to their facebooks (or similar sites) at a wifi hotspot in public are susceptible to anyone getting their credentials using a simple packet sniffer (or something similar)? Is it really that easy? Or am I misunderstanding internet security?  I'm a software engineer working on some web related stuff, and although at the current time I'm not too involved with the security aspect of our software, I knew I should probably know the answer to this question, since it's extremely fundamental to website security.  Thanks!