problem while removing package from ubuntu 13.10
E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
Is JavaScript a pass-by-reference or pass-by-value language? The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this? build argument lists containing whitespace I want to have a script that takes the current working directory to a variable. The section that needs the directory is like this dir = pwd. It just prints pwd how do I get the current working directory into a variable? Showing $\rho (x,y)=\frac{d(x,y)}{1+d(x,y)}$ is a metric Is there a RegExp.escape function in JavaScript? Using MAX in SQL Expression of ArcMap ModelBuilder Using Image exportToDrive in Google Earth Engine? I want to export image to drive for my roi. For this i have specified a geometry(roi). But exported map doesn't cover the area specified and it's not showing the color palette. Is there any possible way to export a colored image (which shows in my layer) to Drive? Why it's not covering the region I have specified. Problem is in export.To.Drive section. But all the codes are given to check error that i did.  Code was:    var region = ee.FeatureCollection('users/karmakersourav/shape')   .filter(ee.Filter.eq('NAME_1', 'Chittagong'));   var addNDVI = function(image) {     var ndvi= image.normalizedDifference(['B4', 'B3']).rename('NDVI');     return image.addBands(ndvi);   };    var cloudMask = function(image) {     var clouds = ee.Algorithms.Landsat.simpleCloudScore(image).select(['cloud']);     return image.updateMask(clouds.lt(25));   };   // Select the land mask.   var landMask = function(image) {   var datamask = hansenImage.select('datamask');   // Create a binary mask.   var mask = datamask.eq(1);   return image.updateMask(mask);   };     // Load a Landsat collection, apply the NDVI and cloud/water masking functions over it.   var collection1 = ee.ImageCollection('LANDSAT/LE07/C01/T1_RT_TOA')     .filterBounds(region)     .filterDate('2008-01-01','2008-12-31')     .map(addNDVI)     .map(cloudMask)     .map(landMask)     .select('NDVI') ;   print(collection1);     //reducer   var annualNDVI = collection1.reduce(ee.Reducer.median());   var region_NDVI = annualNDVI.reduceRegions({     collection: region,     reducer: ee.Reducer.median(),     scale: 30 // the resolution of the dataset   });     var ndviParams = {min: -1, max: 1, palette: ['blue', 'white','green']};   var boundParams = {palette: ['black']};   Map.addLayer(annualNDVI.clip(region), ndviParams, 'NDVI', 1);    Map.addLayer(region, boundParams, 'LA', 1);    //here's the problem  Export.image.toDrive({    image: annualNDVI,    description: 'CTG_NDVi',    scale: 30,    region: roi,    fileFormat: 'GeoTIFF',    maxPixels: 1e12,    formatOptions: {       cloudOptimized: true     }   });     My imports was:  var image = ee.Image("UMD/hansen/global_forest_change_2015_v1_3"),       region = ee.FeatureCollection("users/karmakersourav/shape"),       hansenImage = ee.Image("UMD/hansen/global_forest_change_2015"),       roi = /* color: #98ff00 */ee.Geometry.Polygon(           [[[91.26571433292804, 22.382447200369512],           [91.70516745792804, 22.24015355729955],           [91.81503073917804, 21.50608889294255],           [91.99081198917804, 21.158146277513005],           [92.36434714542804, 20.74775339022756],           [92.38631980167804, 21.362918378188724],           [92.68868864595584, 21.285515736407884],           [92.66671598970584, 22.12251851402064],           [92.42501677095584, 22.964696114885136],           [92.43600309908084, 23.237540932485988],           [92.31515348970584, 23.620600408965007],           [92.21627653658084, 23.781555321668222],           [92.04049528658084, 23.691042604440895],           [91.90865934908084, 23.731278240693108],           [91.89767302095584, 23.47960242153599],           [91.75485075533084, 23.28800680321665],           [91.77682341158084, 23.08602889002461],           [91.61202848970584, 22.99503954262493],           [91.46920622408084, 23.277915158047364],           [91.34835661470584, 23.308187798303887],           [91.22750700533084, 23.600467103459394],           [91.28243864595584, 23.872005072934794],           [91.32638395845584, 24.082808607079368],           [91.24947966158084, 24.263221977268092],           [91.06271208345584, 24.223152164577193],           [90.73312223970584, 23.88205115062075],           [90.63424528658084, 23.660857737733508],           [90.54635466158084, 23.328365731356676],           [90.65621794283084, 22.83312931280329],           [90.98580778658084, 22.437667249990497],           [90.98580778658084, 22.071621721722586]]]); How to to resize an ext4 partition from the command line? What's the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)?  Using a tool like Gparted is obviously easy in a GUI, but what about in the command line? I guess text-based GUIs can count for the answer too since it's technically still in the command line. It just needs to be easy.  By partition I mean a simple partition on a single disk of a personal computer (e.g. on a laptop). For example, I want to resize /dev/sda4. There's no RAIDs, there's not more than one disk drive, there's not anything complicated here. Just a simple partition on a single disk (/dev/sdaX on /dev/sda). Say we have the following sample and we are trying to estimate the variance of the sample mean of the population.  X = [0, -1, 2, 10, -3]   If I take an increasing number of bootstrap (e.g. 100, 1000, 10,000, 100,0000), the bootstrap distribution of the sample mean gets narrower and narrower. In other words, I can make the bootstrap distribution arbitrarily narrow.   Given the above, what's the point of using a different number of bootstrap samples here? And wouldn't this mean that I could make the standard error of the mean arbitrarily small by just taking more and more bootstrap samples? What am I missing?  Please note that I am doing a proper bootstrap sample in the sense that each bootstrap sample has the same exact size as the original sample (input array). SELinux preventing Apache from writing to a file SELinux is preventing the apache user from writing to a log file which it owns. When I do setenforce 0 it works. Otherwise it shows this error  IOError: [Errno 13] Permission denied: '/var/www/webapp/k/site/k.log'   The security context of the file:  $ ll -Z k.log  -rw-r--r--. apache apache system_u:object_r:httpd_sys_content_t:s0 k.log   The file was created when the SELinux mode was set to permissive.  How to set the security context so the apache user can write in that directory? I did set that directory security context using chcon but I can't find a suitable file type.  From audit.log:  type=AVC msg=audit(1409945481.163:1561): avc:  denied  { append } for  pid=16862 comm="httpd" name="k.log" dev="dm-1" ino=201614333 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=file type=SYSCALL msg=audit(1409945481.163:1561): arch=c000003e syscall=2 success=no exit=-13 a0=7fa8080847a0 a1=441 a2=1b6 a3=3 items=0 ppid=15256 pid=16862 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null) Execute vs Read bit. How do directory permissions in Linux work? What is a catchy word that means (non-)self-descriptive I'm having fun with paradoxes, and I'm trying to come up with a catchy word for non-self-descriptive.  Maybe "autosemantic" fits the bill for self-descriptive (definitely open to other suggestions!), but I'm having a hard time negating it in a natural way.  For an example of the sentence I'm trying to construct:     Is "inautosemantic" inautosemantic?   It just isn't flowing. Is there a faster way to open a process as Administrator (With UAC enabled)? Currently (In Windows 10) - if I want to open a CMD prompt, I'll hit the Windows key, type CMD and hit Enter. If I want it open as an administrator, I have to right click the item and click Run As administrator. Is there a way I can do this without using the mouse? I encountered the integral $$\int_0^1 \frac{\log \left(1-x^2\right) \sin ^{-1}(x)^2}{x^2} \, dx = -0.9393323982...$$ while researching the evaluation of harmonic sums. Mathematica 11 is not able to evaluate this integral, and is not able to evaluate the underlying indefinite integral.  I considered using the Maclaurin series for the expression $\sin ^{-1}(x)^2$ to evaluate this integral. Using this Maclaurin series, it is easily seen that the problem of evaluating the above integral is equivalent to the problem of evaluating the series $$\sum _{n=1}^{\infty } \frac{2^{2 n-1} H_{n-\frac{1}{2}}}{(1-2 n) n^2 \binom{2 n}{n}}=-0.9393323982...$$ which Mathematica 11 is not able to evaluate directly.  I also considered using the Maclaurin series for the expression $\log \left(1-x^2\right)$ to evaluate the above integral. Using this Macluarin series, it is easily seen that this integral is equal to $$\frac{1}{4} \left(16 \pi  C-\pi ^3-\pi ^2 \log (4)\right)+\sum _{n=1}^{\infty } \frac{\, _3F_2\left(\frac{1}{2},\frac{1}{2},1;\frac{3}{2},n+1;1\right)}{n^2-2 n^3}=-0.939332...,$$ but Mathematica is unable to evaluate the above infinite series.  What is a closed-form evaluation of $\int_0^1 \frac{\log \left(1-x^2\right) \sin ^{-1}(x)^2}{x^2} \, dx$? What techniques can be applied to evaluate this definite integral? Merging two xml files in C# without appending and without deleting anything (example given) How can I vertically align the numerators of two fractions? An example of the nucleus of an atom being in an excited state is the , which was a theory devised by the Astronomer Fred Hoyle to help describe the vast quantities of carbon-12 present in the universe, which wouldn't be possible without said Hoyle State.  It's easy to visualise and comprehend the excited states of electrons, because they exist on discrete energy levels that orbit the nucleus, so one can easily see how an electron can excite from one energy level into a higher one, hence making it excited.  However, I can't see how the nucleus can get into an excited state, because clearly, they don't exist on energy levels that they can transfer between, but instead it's just a 'ball' of protons and neutrons.  So how can the nucleus of an atom be excited? What makes it excited? Pausing a long running program in the terminal? Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this? Why does an argument similiar to 0.999...=1 show 999...=-1? I accept that two numbers can have the same supremum depending on how you generate a decimal representation. So $2.4999\ldots = 2.5$ etc. Can anyone point me to resources that would explain what the below argument that shows $999\ldots = -1$ is about? Here is the most usual proof I see that $0.999\ldots = 1$:  $x=0.999\ldots$ $10x=9.999\ldots$ $10x - x = 9$ $x=1$  Using this same argument template I can show $999\ldots=-1$:  $x= \ldots9999.0 $ $0.1x= \ldots9999.9$ $0.1x - x = 0.9$ $x=-1$  What might this mean? Edit from one of the comments: $$\sum_{k=0}^{\infty}{9 \cdot 10^k}=-1$$ Node only partially rendered near edge of plot I'm trying to draw a relatively simple chart of a number line, and when one of the nodes is too close to the edge of the plot, it gets cut off.  The code:  \documentclass{article}  \usepackage{natbib} \usepackage{graphicx} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture} \begin{axis}[   width=\columnwidth,   axis y line=none,   axis lines=left,   axis line style={-},   xmin=0,   xmax=1,   ymin=0,   ymax=1,   xlabel=$\mu$,   scatter/classes={o={mark=*}},   restrict y to domain=0:1,   xtick={0,1} ] \draw[ultra thin] (axis cs:0, 0) -- (axis cs:0,.05); \draw[ultra thin] (axis cs:.4, 0) -- (axis cs:.4,.05); \node[coordinate,label=above:{$B$}] at (axis cs:0.0,0.05) {}; \node[coordinate,label=above:{$A$}] at (axis cs:0.4,0.05) {}; \node[coordinate,label=above:{$b$}] at (axis cs:0.2,0.02) {}; \node[coordinate,label=above:{$a$}] at (axis cs:0.7,0.02) {}; \end{axis}; \end{tikzpicture} \end{document}   The Result:    How do I get the B to fully render?