Is there a difference between var i = []; and var i = new Array();
What's wrong with var x = new Array();
Recently I had a bunch of my own scripts for the thumbnails in Nautilus: , , office documents and so on.  Seems like either I’m doing something wrong (thumbnail generation behavior changed), or custom thumbnailes don’t work in latest GNOME at all, even my previous scripts, which worked smoothly on previous versions of Ubuntu.  I’ve done some research, tried to run a simple script (see below) and it didn’t work out.  My test thumbnailer in /usr/share/thumbnailers/z.thumbnailer:  [Thumbnailer Entry] Exec=/home/maximal/thumb.sh %s %i %u %o MimeType=image/webp;image/x-webp   Where /home/maximal/thumb.sh is:  #!/bin/bash echo $0 &gt;&gt; /home/maximal/thumb.log echo $1 &gt;&gt; /home/maximal/thumb.log echo $2 &gt;&gt; /home/maximal/thumb.log echo $3 &gt;&gt; /home/maximal/thumb.log echo $4 &gt;&gt; /home/maximal/thumb.log   Then, when I remove thumbnail cache rm -rf ~/.cache/thumbnails and restart Nautilus nautilus -q, my log file doesn’t contain anything and ~/.cache/thumbnails/fail/gnome-thumbnail-factory contains all the failed thumbs (looks like corrupted/empty PNGs):    So, apparently, Nautilus even didn’t try to execute my thumbnailer script. When I try to run thumb command itself, it works perfectly. For example convert through cwebp|dwebp package:  convert -thumbnail 256x256 file.webp png:file.webp.png   When I wrap this command to a thumbnailer, it looks like it wasn’t even requested to run by Nautilus.  [Thumbnailer Entry] Exec=convert -thumbnail %sx%s %i png:%o MimeType=image/webp;image/x-webp;   Exactly the same situation occurs with other my thumbnailers: audio waveforms, office documents, photoshop files and so on.  Could anyone help? When documenting location, should current or historical place names be used? When I am documenting records, do I use the name of a city or country as it is called today or as it was in the year an ancestor was there?  Related to: How to tell if a  tag failed to load I'm dynamically adding &lt;script&gt; tags to a page's &lt;head&gt;, and I'd like to be able to tell whether the loading failed in some way -- a 404, a script error in the loaded script, whatever.  In Firefox, this works:  var script_tag = document.createElement('script'); script_tag.setAttribute('type', 'text/javascript'); script_tag.setAttribute('src', 'http://fail.org/nonexistant.js'); script_tag.onerror = function() { alert("Loading failed!"); } document.getElementsByTagName('head')[0].appendChild(script_tag);   However, this doesn't work in IE or Safari.  Does anyone know of a way to make this work in browsers other than Firefox?  (I don't think a solution that requires placing special code within the .js files is a good one. It's inelegant and inflexible.) "I am going to have a walk" My teacher said "I am going to have a walk" today in class and to me it seems incorrect. Correct variants that I know are:    Going for a walk Going to take a walk Going to walk  ...   Is this correct? If so, why? This is the command I entered in the command block: testfor @p {Inventory:[{id:minecraft:diamond,Count:10}]}  But it doesn't seem to work. What am I doing wrong? I have an equation like this:     \begin{align}       P(A \cup B) = \sum_{\omega \in A \cup B} P(\omega) = \sum_{\omega \in A} P(\omega) + \sum_{\omega \in B} P(\omega)       = P(A) + P(B)     \end{align}   For some reason, LaTeX is automatically labeling the equation. How do I turn that off? Secondly how do I write something in LaTeX on this site. I tried enclosing in '$' but it doesn't work. Is AncestryDNA match of 1,655 cM a half sibling? Shared DNA: 1,655 cM across 46 segments.   Can someone that shows this as one of my matches on AncestryDNA be a half sibling? How to Convert 0 to 10V analog signal to 0 to 2.5V for ADC input? I have an analog signal which ranges between 0V and 10V.  I want to linearly scale it down to 0 to 2.5V for my ADC.     I'm concerned that using a resistive voltage divider will affect signal quality.  Is this true?  If it's not true, what value resistor should I use for voltage divider? I am flying from Doha to Philadelphia by Qatar Airway. While in Philadelphia, I need to change flight to US Airway. But I only have 1 hour and a half before my next flight to Birmingham. Do I have enough time to check out and check in my baggage?  1.Kuala Lumpur (KUL)  Tue, 21 Jul 2015 20:50  2.Doha (DOH)  Tue, 21 Jul 2015 23:20  3.Doha (DOH)  Wed, 22 Jul 2015 01:10   Philadelphia (PHL)  Wed, 22 Jul 2015 07:45   5.Philadelphia (PHL)  Wed, 22 Jul 2015 09:40 Terminal F  6.Birmingham (BHM)  Wed, 22 Jul 2015 11:00 What is the difference between “do” and “make”? How does "this" keyword work within a function? When will my device get the Android 5.0 update (Lollipop)? Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also: How to use the Bevel node in 2.79b I'd like to know how exactly to use the new bevel node in Blender 2.79b. It's in the manual now, but I've not yet been able to even locate it. How exactly do you use it? Box Cox Transforms for regression I'm trying to fit a linear model on some data with just one predictor (say (x,y)). The data is such that for small values of x, the y values give a tight fit to a straight line, however as x values increase, the y values become more volatile. Here is an example of such data (R code)  y = c(3.2,3.4,3.5,3.8,4.2,5.5,4.5,6.8,7.4,5.9) x = seq(1,10,1)   I'm curious to know if there exists any power transform (Box cox perhaps?) that lets me get a better fit for the data than simply doing a linear fit as shown below.  fit = lm(y ~ x) How to remove enamel from wire? I want to repair my computer mouse cable which has become disconnected from the PCB. The wire is insulated with enamel and I have to remove it before soldering it back onto the board.  How should I remove the enamel? Google Docs thumbnails do not update, can I force an update? Change icon on MATE main menu How can I change the default logo icon to a custom icon by the applications menu in Ubuntu MATE without changing the theme? Do you use "a" or "an" before acronyms / initialisms? Heres a picture. im making a body, and it seems to have flash in the middle. So I was playing around on Area 51 hoping for further news on the private beta for ebooks, and noticed that my avatar (a hand) was missing. Also the Area 51 has the old toolbar. So I looked at the flair page. The network flair has my hand, the Area 51 flair has a quilt. OK, so time to upload a new image, and WordPress -- WordPress -- I don't want to login to WordPress. Any idea what's up with that?  The following questions did not help, and have different causes and symptoms: