i have this item in Jquery Function to get date from backend  + item.Status_Date +   the problem in browser show me date like this --&gt; /Date(1592664441607)/
I'm taking my first crack at  with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this:  /Date(1224043200000)/   From someone totally new to JSON - How do I format this to a short date format? Should this be handled somewhere in the jQuery code? I've tried the jQuery.UI.datepicker plugin using $.datepicker.formatDate() without any success.  FYI: Here's the solution I came up with using a combination of the answers here:  function getMismatch(id) {   $.getJSON("Main.aspx?Callback=GetMismatch",     { MismatchId: id },      function (result) {       $("#AuthMerchId").text(result.AuthorizationMerchantId);       $("#SttlMerchId").text(result.SettlementMerchantId);       $("#CreateDate").text(formatJSONDate(Date(result.AppendDts)));       $("#ExpireDate").text(formatJSONDate(Date(result.ExpiresDts)));       $("#LastUpdate").text(formatJSONDate(Date(result.LastUpdateDts)));       $("#LastUpdatedBy").text(result.LastUpdateNt);       $("#ProcessIn").text(result.ProcessIn);     }   );    return false; }  function formatJSONDate(jsonDate) {   var newDate = dateFormat(jsonDate, "mm/dd/yyyy");   return newDate; }   This solution got my object from the callback method and displayed the dates on the page properly using the date format library.
10% rule for sample sizes In an introductory stats book by Nicole Radziwell "Statistics the easy way with R" , an assumption used  for nearly every statistical test (e.g.t-tets, anova, etc) is that the sample size should not be more than 10% of the population size (where the population size in known).   I havent seen it mentioned in other introductory stats books. My question is: how important is theis assumotion and what is the reason for it?  The author didn't say where this comes from (at least as far as I could see). A bit of googling suggests that it refers to making a simple random sample without replacement, if the sample size is above 10% then the observations wont be (approximately) independent, and indepedence of observations is an assumption stated in most textbooks.   In the case where you have a small population (e.g. &lt;50), should you give up on this assumption because it results in sample sizes too small to get decent estimates of variability and to check other assumptions such as normality.    Thank you for any insights. Why does a mirror split my laser beam? Prove $\forall n\geq 2,n\in\mathbb{Z}$, $(n+1)\mid(n^3+1)$ Question: Prove $\forall n\geq 2,n\in\mathbb{Z}$, $(n+1)\mid(n^3+1)$    I know that it is possible to solve by factoring $n^3+1$ and showing that $n+1$ is a multiple, but I would like to show this via induction.  Attempt: Using induction:  Let $n=2:3\mid 9$, so true for $n=2$  (1) Assume true for $n=k:(k+1)\mid(k^3+1)$, so $(k+1)r=k^3+1$ for some $r\in\mathbb{Z}$  (2) Let $n=k+1:(k+2)\mid(k+1)^3+1$, so $(k+2)s=(k+1)^3+1$ for some $s\in\mathbb{Z}$  From (2) we have $(k+1)s+s=(k+1)^3+1$, subbing (1) into (2), I get $k^3+1+s=(k+1)^3+1$  Therefore $k^3+s=(k+1)^3$.  Setting $s=3k^2+3k+1$, this holds.  Where am I going wrong, is the proof valid, any help would be greatly appreciated. I have a .csv file of coordinates that looks like this:        Is there a way for QGIS to plot coordinates formatted like this?  I've tried Adding a Delimited Text Layer... in QGIS, but do not see any options appropriate for this format:  Nxx.xx.xxx Wxxx.xx.xxx   I am able to use a  website to convert that data to Decimal Degrees, Degrees, Minutes &amp; Seconds, and UTM.  For example, inputting N39.56.854 W074.28.013 outputs a latitude of 39.947567, and longitude of -74.466883.  However, I would like to stay in QGIS and make the same conversion.  Things I've tried:   Created a new .csv that has formatting that matches the output of coordinate conversion site mentioned above, and with separated lat-long columns:     However, using the QGIS Add Delimited Text Layer... option yields no visualization of the points. British placement of punctuation relative to inverted commas Left ideals of $M_n(K)$ Recommended way to save uploaded files in a servlet application I use  on Windows 7 and I want to know if there is a good substitution for it on Ubuntu.   I want something that is good for editing html files. How do I report a bug? I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide? Can a non-EU citizen travel freely within the Schengen area without passport? My current situation is that I have residence permit of Germany (as a stamp in passport) and I wish to apply for UK visa in next few days from Germany and won't have my passport anymore during the processing time.  Instead of waiting for the process, I wish to travel to Scandinavian countries immediately on holidays, later receive my passport from visa center after I return back to Germany.   I am wondering if photocopy of passport and residence permit suffice as identity proof to border control (if I face them)? What else are valid documents that I can show as valid identity proof to border control? What are the exact problems I will face if I face the border control, and they are not satisfied with my travel documents? #1115 - Unknown character set: 'utf8mb4' When I Import Mysql from local server to web ser it is showng me error 1115 - Unknown character set: 'utf8mb4' in Creating wordpress wp_comment table CREATE TABLE IF NOT EXISTS  `wp_commentmeta` ( // // ) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 AUTO_INCREMENT =1;  #1115 - Unknown character set: 'utf8mb4'  My mysql version is Version information: 4.0.4, latest stable version: 4.4.10 (local version)  Version information: 4.0.10.7, latest stable version: 4.4.10( server version)  Please help me to solve out the error In English, the number 0 is treated as plural. It is then:   0 seconds 1 second    1.2 seconds   2 seconds     Shouldn't it be "nobody want to go there," instead of "nobody wants to go there"?  I also saw in TOEFL that "any __" should be used with a singular.  But I see it very common that it is a plural also.  Why is that?  (updated: example, "we don't have any apples any more" vs "If you get any apple, please let me know.") How to prove that a left-invariant metric on a Lie group is smooth? I have really no idea about this:  Problem: Show that there exists a function $f:[0,1]\rightarrow\mathbb{R}$ such that:  $f$ is discontinuous in all $x\in \mathbb Q$. $f$ is increasing in $[0,1]$. $f$ is integrable.   EDIT: Sorry, it is not discontinuous in all $x\in \mathbb R \setminus \mathbb Q$, just in $\mathbb Q$. Hiding sublayer with toggle button using LayerActions? I have a toggle map (like ) with sublayers. I want all the sublayers to be visible when you open the map, but I would like to hide some sublayers when the toggle buttons are clicked. I've tried adding a hide sublayer code into the LayerActions section of my code, but it's not hiding the sublayers (the button does the same function no matter whether the 'layer.getSubLayer(1).hide()' is there or not). This is the code I'm using:  var LayerActions = {  all: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet");   return true;  },  2011: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true;  },  2012: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2012', '2012/2013') AND year IS NOT NULL");   return true;  } }   $('.button').click(function() {  $('.button').removeClass('selected');  $(this).addClass('selected');  LayerActions[$(this).attr('id')](); });   Could someone point me to where I'm messing up with my code? Or is it not possible to hide a sublayer using the LayerActions?    I'm now loading my layers differently, and this is my new code:   cartodb.createLayer(map, url1)     .addTo(map, 0)     .done(function (layer) {         console.log('added url1 ',url1);         cartodb.createLayer(map, url2)         .addTo(map, 1)         .done(function (layer) {             console.log('added url2 ',url2);         })         .error(function (){             console.log('problem adding 2nd layer');         });     })     .error(function () {         console.log('There is something wrong with requested data!');     });   So if I wanted to hide the first layer that's loaded (url1) and select only certain points from the second layer (url2), how would I code that in my LayerActions section? I've tried the following, but nothing changes when I click the buttons:  var LayerActions = { all: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet");   return true; }, 2011: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true; }, ... I made a series of outdoor shots with Nikon D5000, with the 18-55mm 1:3.5-5.6G VR kit lens.  On some shots, I see in the EXIF info f/11, and in another shot, f/9.    How can that be, that the f-number is greater than 5.6, when that's listed as the maximum in the lens spec? I'm trying to determine which battery to use for my application. I'll be using a class 1 or class 2 Bluetooth (not low energy) module, which requires about ~50/60mA of RX/TX current. In addition, there is a microcontroller and some low power analog IC's. I require a continuous stream of data from the device for 1-10 minutes.  Are coin cells completely out of the question? I'm talking about CR2450 Lithium-ions. I don't really mind if they don't last long, but will they work? Because in my application, size is key, and battery life is a trade off that I'm willing to make. Consider the following figure from Faraway's Linear Models with R (2005, p. 59).    The first plot seems to indicate that the residuals and the fitted values are uncorrelated, as they should be in a homoscedastic linear model with normally distributed errors. Therefore, the second and third plots, which seem to indicate dependency between the residuals and the fitted values, suggest a different model.  But why does the second plot suggest, as Faraway notes, a heteroscedastic linear model, while the third plot suggest a non-linear model?  The second plot seems to indicate that the absolute value of the residuals is strongly positively correlated with the fitted values, whereas no such trend is evident in the third plot. So if it were the case that, theoretically speaking, in a heteroscedastic linear model with normally distributed errors  $$ \mbox{Cor}\left(\mathbf{e},\hat{\mathbf{y}}\right) = \left[\begin{array}{ccc}1 &amp; \cdots &amp; 1 \\ \vdots &amp; \ddots &amp; \vdots \\ 1 &amp; \cdots &amp; 1\end{array}\right] $$  (where the expression on the left is the variance-covariance matrix between the residuals and the fitted values) this would explain why the second and third plots agree with Faraway's interpretations.  But is this the case? If not, how else can Faraway's interpretations of the second and third plots be justified? Also, why does the third plot necessarily indicate non-linearity? Isn't it possible that it is linear, but that the errors are either not normally distributed, or else that they are normally distributed, but do not center around zero? I have a sequence $T_1,T_2,\ldots$ of independent exponential random variables with paramter $\lambda$. I take the sum $S=\sum_{i=1}^n T_i$ and now I would like to calculate the probability density function.  Well, I know that $P(T_i&gt;t)=e^{-\lambda t}$ and therefore $f_{T_i}(t)=\lambda e^{-\lambda t}$ so I need to find $P(T_1+\cdots+T_n&gt;t)$ and take the derivative. But I cannot expand the probability term, you have any ideas? 6-digit password - a special decoding method