getting a java.lang.NullPointerException: in a simple app
What is a NullPointerException, and how do I fix it?
Query with BETWEEN returns Zero or ONE Why are C character literals ints instead of chars? In C++, sizeof('a') == sizeof(char) == 1. This makes intuitive sense, since 'a' is a character literal, and sizeof(char) == 1 as defined by the standard.  In C however, sizeof('a') == sizeof(int). That is, it appears that C character literals are actually integers. Does anyone know why? I can find plenty of mentions of this C quirk but no explanation for why it exists. I'm using a vanity country code top level domain (ccTLD), can I persuade Google to geotarget a different region? Because I'm still living like it's 2008, I run a website with a .in TLD. The website has nothing to do we India and does not target Indian users.  Unfortunately, when I go to Google Webmaster Tools I see that Google have locked my geotargeting status to India:    On the , Google state that:     Sites with country-coded top-level domains (such as .ie) are already associated with a geographic region, in this case Ireland. In this case, you won't be able to specify a geographic location.   This seems implausibly inflexible, so I want to know if there are any sneaky ways of removing auto-geotargeting, or changing it to a more appropriate region? How do I disable System Integrity Protection (SIP) AKA "rootless" on macOs [OS X] Intersecting transparent object causing artifacts in cycles When two objects -one of them transparent- intersects it creates some artifacts visible even in the alpha channel. Even with 1024 transparent bounces the artifacts remain.    In the example file there are two cubes in the same position, one transparent and one emission.    What is causing this? Any way to get rid of this artifacts? Let $p$ be a prime number, and let $\mathbb{F}_p$ be the field with $p$ elements. How many elements of $\mathbb{F}_p$ have cube roots in $\mathbb{F}_p$?   I had this question on an exam and after reviewing I am still not sure. Any help would be appreciated. Does "corresponding author" carry an implied meaning? I have a requirement for a custom app I am building to open an attachment on the parent record in a new window on create of a child record.  I have parent object Quality_Assessment__c with child object Chart_Review__c. Quality_Assessment__c has a PDF attached to it in the Notes &amp; Attachments section. When a user clicks to create a new Chart_Review__c record I need to have the PDF attachment on the Quality_Assessment__c record open in a new tab as well as the record create page for the Chart_Review__c record. Looking for help in generating the needed javascript for a custom button to accomplish this.  The 'Quality_Assessment__c' record will have a PDF file attached to it prior to the user clicking the 'New Chart Review' button.  My use case is to have users open the 'Quality_Assessment__c' record and perform what we call a Chart Review. To perform the Chart Review the user would click on a custom button called 'New Chart Review' which would do two things.   create a new 'Chart_Review__c' record displaying the new record edit page  open the PDF attachment from the related 'Quality_Assessment__c' record.    Preferably on click of the button the new record page would open in existing tab and a new tab with the PDF would open simultaneously. Using Boolean parameters in Python Script Tool of ArcPy? I'm using ArcGIS for Desktop 10.3.0.4322 I have a script tool which requires a parameter (folder path to a gdB, via GetParameterAsText) so that a later process can be saved there. The thing I want to do is make an Optional Boolean parameter, that when checked, automatically fills in the folder path gdB parameter. The Boolean text asks the user, &quot;Use default workspace?&quot;, to which if they check the box (boolean == True), then the folder path parameter will be automatically defaulted (saving the user a small amount of time). I have already created the Boolean parameter in the script tool, I am however unaware of how to &quot;fill in&quot; the required parameter based on the user's Boolean. Code Snippet: # Ask user to select the Geodatabase workspace to use for data output userWorkspace = arcpy.GetParameterAsText(0)  # Ask user if they want to use default workspace (boolean) useDefault = arcpy.GetParameterAsText(1)  # If user wants default workspace, then give it to the required parameter (0) if useDefault == True:  arcpy.env.workspace = path else:  # Set workspace environment based upon user's choice  arcpy.env.workspace = userWorkspace How would I use Takeown to take ownership of all folders on one drive? I have a hard drive which I need to recover specific files from but all the folders in the K:\ drive are denying me access even though I took owner ship of the full drive I.E      C:\Windows\System32>takeown /F K:\   This granted me access to the drive and see the folders but I can not access any of the folders after that.   Is there a way in which I can use Takeown to apply ownership to every directory on the drive> Sometimes, a question is perfectly solved by suggestion or actual resolution given in "comments" under it. In such case, how to mark that answer (comment) as "Accepted Answer"? Due to this, the question remains unanswered even if solution is provided in comment. I am trying to do kriging by gstat package through R.   Here is my Code:  krg&lt;-krige(var ~ 1,data,grid,model=vgm,nmax=30)   But each time I recive this warning:  1: In predict.gstat(g, newdata = newdata, block = block,  ... :    Warning: Covariance matrix (nearly) singular at location [1,4501,0]: skipping...   and when I try to plot it by spplot this error appears:  Error in seq.default(zrng[1], zrng[2], length.out = cuts + 2) :    'from' cannot be NA, NaN or infinite In addition: Warning messages: 1: In asMethod(object) :   complete map seems to be NA's -- no selection was made 2: In min(x) : no non-missing arguments to min; returning Inf 3: In max(x) : no non-missing arguments to max; returning -Inf   Here is the full code: You can download my data through this link:  and here is my full code:  library(gstat)                                          library(sp) library(raster)  coordinates(Mydata) &lt;- ~East + North proj4string(Mydata) &lt;- CRS("+proj=utm +zone=10+datum=WGS84") ext &lt;- as(extent(Mydata), "SpatialPolygons") r &lt;- rasterToPoints(raster(ext), spatial = TRUE) proj4string(r) &lt;- proj4string(Mydata)  v1 &lt;- variogram(cpue_female ~ 1, Mydata) vgm_mod_omni &lt;- vgm(psill = 0.0003, model = "Mat", range = 50000, nugget = 33, kappa = 0.5) G1 &lt;- krige(cpue_female ~ 1, Mydata, r, vgm_mod_omni, nmax = 30) gridded(G1) &lt;- TRUE spplot(G1) Continuity of analytic function implies convergence of power series? Suppose that $f(z)$ is analytic in the unit disk $\Delta:\,|z|&lt;1$. Then $f(z)$ has a Taylor series $\sum=\sum a_nz^n$ in the unit disk. One may assume that $\sum$ has $R=1$ as its radius of convergence for convenience.  Question 1 (local version):  If $f(z)$   is continous at some point, say $z=1$, on the unit circle $S^1$, then its Taylor series $\sum$  is  covergent at $z=1$?   Question 2 (global version):  Suppose that  $f(z)$   is continous on the closed unit disk $\overline\Delta$.  Is the  Taylor series $\sum$ covergent at every poin of $S^1$?   Of course, if the answer to the local version is "yes", then so is the answer to the global version.  EDIT. It seems that  Question 1 obviously has a negative answer. So I modify it into a new question.  Question 3 (New local version):  Suppose that  $f(z)$   is continous at some point, say $z=1$, on the unit circle $S^1$ and the coefficients of $\sum$ satisfies $a_n\to 0$.  Is the Taylor series $\sum$  covergent at $z=1$?   Note. If $f$ is analytic at $z=1$, then the answer to Question 3 is yes. This is Fatou's Theorem. How do I get timestamp from e.g. 22-09-2008? The StackExchange™ MultiCollider SuperDropdown™ says I've got replies, but I've already viewed those Command "find -name" must be enclosed in quotes or it doesn't work. Why is that? The rules on  state:     Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum [...]   Does this only apply if you aren't already at 0 HP? Or rather, what happens if you are currently at 0 HP and take massive damage? Control Cycles/Eevee material nodes and material properties using python? How can I define the different properties of an Cycles/Eevee material? Such things as glossy, glass, diffuse, RGB-color, emissive via python scripting? Subscript labels in QGIS legends Is it possible to include subscript and superscript text in the title of a legend item in QGIS ?  I have tried using &lt;sub&gt;some text&lt;/sub&gt; but this just appears in the title with no change to the contents.  I am looking to have layer titles such as   Annual NO2 concentration (μg/m3)  The superscript is not a big issue, as I can use the character map to get a 3, but I don't know how to get the subscript. TeXstudio not large enough to use on a 4k display