Break indentation for nested loop
How to break out of multiple loops?
Prove that $\exp(x)>0$ using only formal definition of exp Evaluate $\sum_{k=1}^\infty\frac{x^k}{k(k+1)}$ My partner is tutoring a Civil Engineering student in maths. Conveniently, I am a civil engineer so when any maths that's confusing comes up, I can usually help out. However, we are having a problem with the summing of power series, one area where I am sorely lacking.  After spending two hours on a question, we still cannot solve it and are always left with a $k$. Admittedly, I don't fully know what I am doing.     Evaluate $\displaystyle \sum_{k=1}^\infty\frac{x^k}{k(k+1)}$.   We do know that the answer is $1 + \dfrac{1-x}{x}\ln (1-x)$.  Any hints or help in the direction to go would be very much appreciated. Polar form to cartesian Let $\Gamma$ be a circle that passes through the origin. Show that we can find real numbers $s$ and $t$ such that $\Gamma$ is the graph of $r = 2s \cos (\theta + t).$  I know this has to be converted to a cartesian equation, but how do I do this, and what do I do after?  Thanks Conformally Map Region between tangent circles to Disk If $f(x)$ is continuous on $[a,b]$ and $M=\max \; |f(x)|$, is $M=\lim \limits_{n\to\infty} \left(\int_a^b|f(x)|^n\,\mathrm dx\right)^{1/n}$? Let $f(x)$ be a continuous real-valued function on $[a,b]$ and $M=\max\{|f(x)| \; :\; x \in [a,b]\}$. Is it true that: $$ M= \lim_{n\to\infty}\left(\int_a^b|f(x)|^n\,\mathrm dx\right)^{1/n} ? $$  Thanks! Possible to turn on Airplane mode with WiFi on only? I know the definition of Airplane mode is all communications and radio signals are blocked. But is it possible to turn off the "calling/receiving" part of the phone so your phone is not connecting to a cell tower and only allow Wifi? I've looked into a couple of apps in Google Play but they're either not working or out of date with newer versions of Android.   I know there is strong opinions on both sides of the issue but I'm worried about radiation from my phone since i use it a lot in bed and I hold the phone close to my head and face. At night I'm not worried about receiving calls, so I just want to turn off the phone part and  use WiFi. Is there a way? Or am i just crazy and paranoid? says that a photon of  to $10^{-62}$ kg has been detected:     10×10−62 kg   Mass equivalent of the energy of the lightest photon   detected [citation needed]   This equates ($mc^2=E=hf=h\frac{c}{\lambda}$) to a wavelength of $\lambda=2.2\times 10^{20}$ m (roughly a million ly)! Can anyone provide a citation for this measurement? And how can such a large wavelength/low energy photon be detected?  Edit  Apart from the quotation (true/false un/reliable un/documented ....), I'd like to learn about the lightest photon detected, or about the instrumental limit: what is the lower limit of energy that can be registerd by an intrument (or the greatest wavelength), and how it is done? For example, can you detect a radiowave of 1 Hz? character "5" repeated in text fields, and system freezes I am running Ubuntu 15.10, with the latest updates.  When I type in a text field (google search, type name of file, etc..) the number 5 gets typed on its own and it keeps repeating until I press ESC and when I try to continue typing the number 5 resumes filling in the text field.  I have tried to set the keyboard repeat to zero, but does not help.  This does not happen all the time, sometimes if I shut down the computer it then behaves normally when I restart it, other times the computer becomes useless because I cannot type in any of the text fields.  Thanks Sal Check whether $\sum _{m=1}^{\infty }\sum _{n=1}^{\infty }\frac{1}{\left(m+n\right)^2}$ converges or NOT? Suppose we have two twins travelling away from each other, each twin moving at some speed $v$:    Twin $A$ observes twin $B$’s time to be dilated so his clock runs faster than twin $B$’s clock. But twin $B$ observes twin $A$’s time to be dilated so his clock runs faster than twin $A$’s clock. Each twin thinks their clock is running faster. How can this be? Isn’t this a paradox? Why is . not in the path by default? On UNIX-like systems over the years (most relevantly to me, Linux), I've noticed that . (current dir) is never in the $PATH by default.  Why is this?  I recall reading years ago that it was a security problem, but the article I read didn't explain what exactly the problem was.  Is it because someone could leave a malicious version of ls or cp in a directory, and I'd end up running it without realizing it was there? How do you get a submit button in the Windows Phone keyboard? Im using a program called Daisy Disk to see what is taking up space in my Mac and I find that the /cores directory is taking up 77gb.   Is that a problem? Can I get rid of it to regain the space? How do I set a static IP address in Windows? Upon searching for the OpenLayers plugin, it shows that this plugin is incompatible with version QGIS 3.0. Will this be updated? Is there another way to add Google imagery or any other aerial imagery other than through this plugin?   I noticed the OpenStreetMap layer I had been using with QGIS 2 is still working now that I am using QGIS 3, but the Google Satellite layer no longer appears. For some reason my iMac keeps turning off around 5 to 10 minutes into boot.  Also just recently it turns on but has shaded lines going down the screen. I have not installed any weird programs and i have not used it in around 3 months.   Any ideas on what the issue is, i don't have any other information about the issue besides whats happening when i use it.  The image i'm showing you was found on google but this looks exactly like mine does.  The model of my imac is the late 2011 model. What command(s) would you use to extract all of the usernames from a database called /etc/passwd and then sort this output alphabetically in reverse order? I followed the beginner steps for creating a .  The child theme was created and it appears as an option on my Themes page. But unlike the other Themes on the page (including its parent), there is no preview.  The other themes ("Twenty Twelve," "Twenty Thirteen," and "Twenty Fourteen") are all listed with an image preview.  My child theme ("Twenty Fourteen Child") does not have any image. The child theme can be applied without issue.  This issue arises when I create child themes from other themes as well. Any ideas why this is happening and if I can resolve? Drush CC all returning "No Drupal site found, only 'drush' cache was cleared" I've tried other solutions, but none of them are specific to my setup. I just started using the new Linux subsystem featured in the recent Windows 10 update. I'm using WAMP x64 v3.0.6, and have successfully cloned my website and got it up and running. At the root of the Linux subsystem, I installed Drush globally with Composer, using the directions given on the .  Typing drush status returns the following when I run it in my default directory:  Drupal version         :  7.50  Site URI               :  http://default  Database driver        :  mysql  Database hostname      :  localhost  Database port          :  Database username      :  root  Database name          :  aerosphere  PHP executable         :  /usr/bin/php  PHP configuration      :  /etc/php5/cli/php.ini  PHP OS                 :  Linux  Drush script           :  /home/bob/.composer/vendor/drush/drush/drush.php  Drush version          :  7.1.0  Drush temp directory   :  /tmp  Drush configuration    :  Drush alias files      :  Drupal root            :  /mnt/c/wamp64/www/drupal-7.50  Site path              :  sites/default   But, as mentioned in the title, drush cc all returns No Drupal site found, only 'drush' cache was cleared.[warning] I assume it has something to do with adding a path to the .bashrc, but I don't know what to add. Any tips would be greatly appreciated!  My question is different from "", they're on a Mac and using MAMP, and I'm using WAMP on Windows. I've tried the solutions offered on that post, but the issue has not been resolved.  I'm obviously having issues connecting to MySQL as I get this when I run mysql command:     The program 'mysql' can be found in the following packages: * mysql-client-core-5.5 * mariadb-client-core-5.5 * mysql-client-core-5.6 * percona-xtradb-cluster-client-5.5      Try: sudo apt-get install .   So I've added these lines to my .bashrc file:  PATH="$HOME/.composer/vendor/bin:$PATH" export PATH="/mnt/c/wamp64/mysql/mysql5.7.14/bin:$PATH"   The top line was added to get drush working. I've checked multiple times, and I have the path correctly set, but it's still not working. Creating image with specific latitude/longitude positions using GDAL? I have an ASCII file with latitude, longitude, and data_val in the following format.  35-13.643782N, 080-57.190157W, 118.6 ...   I have a GeoTiff image file, and I can easily view it.  I want to place a "pin" (can be a dot/flag/star or whatever is easiest) on the image at the specific latitude/longitude position found in the ASCII file.  Here is what I've managed to do so far:  My source image looks like this:  Driver: GTiff/GeoTIFF Files: /tmp/Charlotte SEC 100.tif Size is 16867, 12358 Coordinate System is: PROJCS["Lambert Conformal Conic",     GEOGCS["NAD83",         DATUM["North_American_Datum_1983",             SPHEROID["GRS 1980",6378137,298.2572221010042,                 AUTHORITY["EPSG","7019"]],             AUTHORITY["EPSG","6269"]],         PRIMEM["Greenwich",0],         UNIT["degree",0.0174532925199433],         AUTHORITY["EPSG","4269"]],     PROJECTION["Lambert_Conformal_Conic_2SP"],     PARAMETER["standard_parallel_1",38.66666666666666],     PARAMETER["standard_parallel_2",33.33333333333334],     PARAMETER["latitude_of_origin",34.11666666666667],     PARAMETER["central_meridian",-78.75],     PARAMETER["false_easting",0],     PARAMETER["false_northing",0],     UNIT["metre",1,         AUTHORITY["EPSG","9001"]]] Origin = (-365041.822331817995291,240536.419747152860509) Pixel Size = (42.334586069440391,-42.334898968590878) Metadata:   AREA_OR_POINT=Area   TIFFTAG_DATETIME=2016:06:24 12:46:45   TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)   TIFFTAG_SOFTWARE=Adobe Photoshop CS5 Windows   TIFFTAG_XRESOLUTION=300   TIFFTAG_YRESOLUTION=300 Image Structure Metadata:   COMPRESSION=LZW   INTERLEAVE=BAND Corner Coordinates: Upper Left  ( -365041.822,  240536.420) ( 82d48'55.43"W, 36d13' 4.92"N) Lower Left  ( -365041.822, -282638.262) ( 82d35'10.11"W, 31d30'17.00"N) Upper Right (  349015.641,  240536.420) ( 74d51'46.40"W, 36d13'26.16"N) Lower Right (  349015.641, -282638.262) ( 75d 4'55.60"W, 31d30'36.99"N) Center      (   -8013.091,  -21050.921) ( 78d50'12.11"W, 33d55'36.35"N) Band 1 Block=16867x1 Type=Byte, ColorInterp=Palette   Color Table (RGB with 256 entries)     0: 255,255,255,255 ...   Here is what I've managed to cobble together in Python:  from osgeo import gdal, osr  src_filename = '/tmp/Charlotte SEC 100.tif' dst_filename = '/tmp/foo.tiff'  # Opens source dataset src_ds = gdal.Open(src_filename) format = "GTiff" driver = gdal.GetDriverByName(format)  # Open destination dataset dst_ds = driver.CreateCopy(dst_filename, src_ds, 0)  # Specify raster location through geotransform array # (upperleftx, scalex, skewx, upperlefty, skewy, scaley) # Scale = size of one pixel in units of raster projection # this example below assumes 100x100 gt = [-365041.822, 100, 0, 240536.420, 0, -100]  # Set location dst_ds.SetGeoTransform(gt)  # Get raster projection epsg = 4269            # http://spatialreference.org/ref/sr-org/lambert_conformal_conic_2sp/ srs = osr.SpatialReference() srs.ImportFromEPSG(epsg) dest_wkt = srs.ExportToWkt()  # Set projection dst_ds.SetProjection(dest_wkt)  # Close files dst_ds = None src_ds = None   But, I can't quite figure out how to place a "red dot" at 35-13.643782N, 080-57.190157W  I'm having to learn some new details here (nomenclature about GIS).