Error when using Raster Calculator in ArcGIS to compute NDVI, Process output is binary, limited to pixels that are either 0 or -1

I am using WorldView-3 satellite images that have been orthorectified and corrected to sensor reflectance values to compute a set of normalized difference indexes, including NDVI in ArcGIS version 10.31. While I am aware that it is possible to automatically compute NDVI in Image Analysis, I want to try the operation in Raster Calculator since NDVI is not the only index that I wish to compute.   However, whenever I run the operation (with any of the indexes that I am interested in using), the result is always the same. I obtain a binary raster output, in which pixels are either 0 or -1. The exact same pixels, no matter the type of index and bands that I choose. This is weird since when I manually calculate these indexes for the reflectance values in a set of control points, the result shows that the image should lead to an output that as expected ranges from 1 to -1.  The formula that I have been inputting into the raster calculator is the following.  ((NIR2 - Red)/(NIR2 + Red))   To add more context, the site that I am working at is a peninsula in the north of Madagascar. The 0 values are always restricted to the land and the -1 values are restricted to the surrounding ocean and a small lagoon. The WorldView dataset is stored as a 16-bit TIFF file, containing the 8 multispectral bands that the satellite's sensor pics up. To run the raster calculation, I extracted the bands using ArcCatalog and opened them independently in ArcGIS.  Has anyone ever run into a problem like this?   Or does anyone have an idea of what is causing the problem?


My program need to parse css files into an in-memory object format. Any advice on how this should be done ?


I am looking for a word or expression to describe those ladies, usually high society ladies, whose main aim in life is to find a good match for marriage and whose main activity is organising lunches or dinners for relatives and friends often to raise money for some non-profit organisation?


Finn knows nothing about his family because he was taken while he was very little.   But a black main character makes me think (not being racist guys). And when he used the lightsaber I thought that he had a Jedi parent. Master Windu is the only black Jedi we know so is there any canon explanation to that? Is it right?


Is it possible to use hostel booking for a UK Standard Visitor visa application or must it be a hotel?

I'm going to stay there for about a month.


How can I restart a Windows 7 computer without screen or mouse?

I've recently had problems with my work computer not recognizing either of its attached screens.  I've also had problems with my home computer "locking" the mouse to one app, and no longer acknowledging clicks on, say, the start menu.  In both cases the computer is still running, and I can close apps and so forth with the keyboard.  Restarting usually addresses the problem.  What's the simplest way to restart a Windows 7 computer by the keyboard alone?  Something consistent across all versions would be super.  In Win XP, I believe it was Ctrl-Alt-Delete; pause; Alt-R for Restart; Enter to select.  But on 7 Ctrl-Alt-Delete no longer brings up the same menu.  I'd use Ctrl-Alt-Esc for the Task Manager, but it no longer has a Restart menu (at least on Win 7 Home).


If there is an answer posted in the comments - can I still answer?

If someone posts the answer to a particular question (or the idea of the solution) in a comment, but has not posted this as an answer - can I post an answer using the same solution?  In particular, here are 2 cases:  1) I finished writing an answer and am ready to post it - only to realize that in the meantime someone else suggested the same thing in a comment 'x' minutes ago. (Maybe it depends on 'x'?)  2) The comment was written a long time ago - x hours/days etc - this time I saw the comment before writing an answer.


Is the acceleration due to gravity the same no matter the mass of the object?

The University of Illinois Department of Physics article  states that the acceleration due to gravity is the same no matter the mass of the object.   However if an object, say for example the moon, were falling to the Earth, gravity would have to pull harder to speed it up the same. Would the acceleration of gravity be the same?  My question is not the same as  because I'm asking about acceleration of gravity, I'm asking if heavier objects would fall slower, not faster. So, wouldn't they fall slower because gravity has to pull harder?  Side note: Let's just say we also ignore the effects the other question mentions.


The composition of continuous functions on $\mathbb{R}$ is continuous

I really need help in some theorems of real analysis. I don't even know where to start them. If someone know any of the following theorems, then please either give the proof or direct me to any good cites where I can find them because I couldn't find them anywhere. Theorem: Let A, B be subsets of R, let f: -> R be continuous on A, and let g: B -> R be continuous on B. If f(A) is a subset if B, then the composite function g o f: A -> R is continuous on A.  Theorem: Let $A\subseteq\mathbb{R}$, let $f:A\to\mathbb{R}$, and let $|f|$ be defined by $|f|(x) := |f(x)|$ for all $x\in A$.  If $f$ is continuous at a point $c\in A$, then $|f|$ is continuous at $c$. If $f$ is continuous on $A$, then $|f|$ is continuous on $A$.   and  Theorem: Let $A\subseteq\mathbb{R}$, let $f: A\to \mathbb{R}$, and let $f(x) \ge 0$ for all $x\in A$.  We let $\sqrt{f}$ be defined for $x\in A$ by $(\sqrt{f})(x) = \sqrt{f(x)}$.  If $f$ is continuous at a point $c\in A$, then $|f|$ is continuous at $c$. If $f$ is continuous on $A$, then $|f|$ is continuous on $A$.


jQuery .ready in a dynamically inserted iframe

We are using jQuery  to dynamically display an iframe when someone clicks on a picture.  In this iframe, we are using  a javascript library to display multiple pictures.  The problem seems to be that $(document).ready in the iframe seems to be fired too soon and the iframe content isn't even loaded yet, so galleria code is not applied properly on the DOM elements.  $(document).ready seems to use the iframe parent ready state to decide if the iframe is ready.  If we extract the function called by document ready in a separate function and call it after a timeout of 100 ms. It works, but we can't take the chance in production with a slow computer.  $(document).ready(function() { setTimeout(ApplyGalleria, 100); });   My question: which jQuery event should we bind to to be able to execute our code when the dynamic iframe is ready and not just it's a parent?


Javascript for-loop with "item in array" not working with DOM elements?

I came across a little issue with JS in my project.  Basically I use this type of for loop for most arrays:  for (var item in array) {     // Do something with each "item" }   Now that is working fine and dandy for the most part, but when I use it like this:  for (var element in someDOMelements) {     element.AddEventListener(...); }   It is going to throw me an error, saying AddEventListener is not working However if I adjust the code to something like:  for (var i = 0; i < someDOMelements.length; i++) {     someDOMelements[i].AddEventListener(...); }   It's working as it should. And just to rule it out I logged the array that the DOM elements are in before the loop and it correclty gave me a list (HTML Collection) of all the objects..  Is there anything specific going on here, that prevents me from manipulating DOM elements with these kind of for loops?  Cheers!


How to display a reference image in a new window?

How do I open an extra window to display a reference image? How do I import the reference image into the window?


How is $E_q[\log p(x,z)] - E_q[\log q(z|x)]$ equal to$ E_{q(z|x)}[\log p(x|z)] - KL(q(z|x) || p(z))$?

In , it has been explained why maximizing the ELBO minimizes KL divergence, but then this: $$ELBO_\lambda = E_q[\log \space p(x,z)] - E_q[\log \space q_\lambda(z|x)]$$ became this: $$ELBO_\lambda = E_{q_\lambda(z|x)}[\log \space p(x|z)] - KL(q_\lambda(z|x)||p(z))$$ and I don't understand how. What I also noticed, that while in the first equation, there are expected values with respect to $q$, in the lower index, but in the second, it is not in the lower index, so I don't know what $E_{q_\lambda(z|x)}[]$ is supposed to mean.


Equivalence relation on topological space such that each equivalence class and the quotient space is connected

Let $X$ be a topological space and $\sim$ be an equivalence relation on $X$ such that the quotient space $X/\sim$ is connected and each equivalence class of $\sim$ is connected (as a subspace of $X$ ). Then how to prove that $X$ is connected ?   I was trying to go by contradiction assuming $X$ has a non-trivial cl-open subset say $A$  and then trying to get a non-trivial cl-open subset of $X/\sim$ from that, but with no luck. Please help.


Prove that $\prod_{k=0}^{n-1}\sin \left( x + k\frac{\pi}{n} \right) = \frac{\sin nx}{2^{n - 1}}$

Prove that for any $n \in \mathbb{N}^*$ we have: $$\sin x \sin \left( x + \frac{\pi}{n} \right) \sin \left( x + \frac{2\pi}{n} \right)\cdots \sin \left( x + \frac{(n - 1)\pi}{n} \right) = \frac{\sin nx}{2^{n - 1}}$$  Here is what I did so far:  We know that $\sin x = \Im (e^{ix})$. So, we can rewrite our product the following way:  $\prod_{k = 1}^{n - 1} \sin \left( x + k\frac{\pi}{n} \right) = \prod_{k = 1}^{n - 1} \Im \left( e^{i \left( x + k\frac{\pi}{n} \right)} \right)$  At this point I got stuck, mainly because I'm not sure if I can take the $\Im$ of the whole product or not.  Thank you in advance!


How does linux load firmeware for built-in driver modules

I've learned that the firmware-subsystem uses udevd to copy a firmware to the created sysfs 'data' entry.  But how does this work in case of a built-in driver module where udevd hasn't started yet?  I'am using a 3.14 Kernel.  TIA!


Lyx in text citation giving two author names before et al., rather than one

I'm using Lyx 2.3.2 and biblatex for my PhD thesis and I keep coming up against a strange issue with some in text citations. I am using author year format, which for references with more than two authors should give the citation (author1 et al., year). However, for two of my references I am getting (author1, author2 et al., year). The only thing I have been able to find out is that lyx would normally do this if just having the author and year could cause confusion due tohaving two citations that are the same, but refer to different references (i.e [Author1, AuthorX et al., 1999], [Author1, AuthorY et al,. 1999]). However, in my instance this is not the case. I have looked through the associated Bib file and found nothing out of the ordinary, I have tried various different author, year reference styles, and I have deleted the two references from my computer and added them back into my reference manager. Nothing seems to work. Does anyone know what might be causing this? The only other thing I can think of is if the papers had dual first authorship, but as far as I am aware this isn't the case either. Any advice would be greatly appreciated. Below is the bib for the two references: @article{Hodgson2012, author = {Hodgson, Jenny A. and Thomas, Chris D. and Dytham, Calvin and Travis, Justin M.J. and Cornell, Stephen J.}, doi = {10.1371/journal.pone.0047141}, editor = {Getz, Wayne M.} issn = {19326203}, journal = {PLoS ONE}, keywords = {Climate change,Conservation science,Electric conductivity,Extinction risk,Fractals,Habitats,Species colonization,Species extinction}, month = {oct}, number = {10}, pages = {e47141}, pmid = {23082145}, publisher = {Public Library of Science}, title = {{The Speed of Range Shifts in Fragmented Landscapes}}, volume = {7}, year = {2012} } @article{Hodgson2016, author = {Hodgson, Jenny A. and Wallis, David W. and Krishna, Ritesh and Cornell, Stephen J.}, doi = {10.1111/2041-210X.12614}, isbn = {2041-210X}, issn = {2041210X}, journal = {Methods in Ecology and Evolution}, keywords = {circuit theory,climate change,dispersal,ecological restoration,indicators,invasion,networks,optimisation,reserve design,systematic conservation planning}, number = {12}, pages = {1558--1566}, title = {{How to manipulate landscapes to improve the potential for range expansion}}, volume = {7}, year = {2016} }


HashMap login system with string variables in java database

Previously I created a login system which used a HashMap, but no database. I then ran into the problem of not being able to change the passwords of the system, as they would be reset everytime I booted up the program. It was like this:  HashMap<String, String> credentials = new HashMap<String, String>();      UserData() {         credentials.put("Manager", "adminpass");         credentials.put("Employee", "employeepass");         credentials.put("Customer", "customerpass");      }  I then realised I want to use text files to store the passwords, so I could edit them and the changes would take effect. So I created 3 text files. adminpass.txt, employeepass.txt, customerpass.txt They all contain the passwords which are 'adminpass', 'employeepass', 'customerpass' With the previous system, I used .equals to compare the password of user input and the real password as it was a string. Now it's a variable, so I am using ==. Here is my code for logging in: public void actionPerformed(ActionEvent ae) {                  if (ae.getSource() == authenticateButton) {                      String roleID = usernameField.getText();                     String password = String.valueOf(((JPasswordField) passwordField).getPassword());                      if (credentials.containsKey(roleID)) {                         if (credentials.get(roleID) == password) {                             messageLabel.setForeground(Color.green);                             messageLabel.setText("Login successful");                             frame.dispose();                             m.launch(roleID);                          } else {                             messageLabel.setForeground(Color.red);                             messageLabel.setText("Incorrect password");                                                      }                      } else {                         messageLabel.setForeground(Color.red);                         messageLabel.setText("Incorrect username");                     }                 }             }         });  I also have read from the text files on startup, assigning what the system has read from the files to the adminpass, employeepass, and customerpass variables. Everytime I login I get 'incorrect password' even though they're correct. So I decided to do System.out.println(credentials.get(roleID))  And it just returns null. I'm completely confused here, I am grateful if anyone can help or point me in the right direction! Thanks! EDIT: when i use .equals(password), i get Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "java.util.HashMap.get(Object)" is null


I would like to do a minor change to the form in which articles are added, it's just a few lines of CSS. However drupal doesn't seem to load the stylesheets of my theme if the admin interface is used in non-overlay mode.  So is there a way to add CSS to the administration interface without touching the system stylesheets?


how to calculate $\int_C \frac{2xy^2dx-2yx^2dy}{x^2+y^2},$ where $C$ is the ellipse $3x^2 +5y^2 = 1$ taken in the positive direction.


what is the difference between `find .` and /home/user/* as an input to for command

What is the difference between find . and /home/user/* as an input to for command.? For example:  for var in $(find .) do echo "$var" done   or  for var in /home/user/* do echo "$var" done   In the first case for command breaks up the file with names containing spaces. While in the second case it does not. Why?


How do I give two equations different reference numbers on the same line?

Consider the following equation:  \begin{align}  & A x = b & C x = d. \end{align}   Is there a possibility to count both the left equation and the right equation separately, so I can refer to them separately? I would prefer if this is done without subequation, so the count continues.


For many months the Review Queue list at the  had been showing me the "Low Quality Posts" as very busy (with the red dot), but when I visit the queue, the list is empty.     It's been  at the Portuguese Meta that the queue indeed has posts, but probably only ones on which I have already voted, so they aren't visible to me any more. The latter is expected behavior, but then the queue list shouldn't show itself as busy either - I consider that a bug (or at least ill-adjusted thresholds).  I know the system , but right now it's really only getting people to ignore the queue completely.  Update: right now it's back to normal, after a local mod emptied the queue. This probably means it's not a solution, just a temporary respite.


Geometric Proof that $\frac{d}{d\theta}(\tan{\theta}) = 1 + \tan^{2}{\theta}$

The following proof sketch is from the preface of Tristan Needham's Visual Complex Analysis:    Why is the left side of the black triangle labeled $L \, d\theta$?  I can see that the length of this side is $L \tan{d\theta}$, so it seems that Needham is approximating $\tan{d\theta}$ with $d\theta$ as $d\theta$ approaches $0$. Why is this justified? It makes sense to me in light of the fact that the derivative of $\tan{\theta}$ at $\theta = 0$ is $1$, but this doesn't seem like the intended justification, given what he's trying to prove. Is there another, more obvious (and perhaps geometric), justification?


There's addition, multiplication and exponentiation. Is there another "level" after exponentiation?

I guess they all can be broken back down into addition but I just have always had this burning question if there was some other mystery operator after exponentiation.


What is the difference between Java awt and JFrame?

Can someone please explain me what's the difference between Swing and JFrame?  Are there any cases where AWT is more useful/advised to use than jframe or vice-versa?


How does a electron revolve in Rutherford's model?

How can an electron revolve in a circular orbit because circular motion is an accelerated motion and  acc. charged particle is a source of E.M. Wave. So,it should radiate out energy and hence would loose energy; so from where does it get energy from?


Sorcerer: does Twinned spell allow you to cast 2 concentration spells?

Does Twinned spell allow a character to cast 2 concentration spells like Hold Person, Hold monster, Banishment etc.?


Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?

I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the  and I understand the rules and their reasons, as well as the several other commands that are affected.  However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al.  My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness.


Containment check tstzrange @> timestamptz not using btree or gist index

Schema:          Column        |           Type            ----------------------+--------------------------  id                   | integer                    event_id             | integer                    started_at           | timestamp with time zone   ended_at             | timestamp with time zone   created_at           | timestamp with time zone      "event_seat_state_lookup_pkey" PRIMARY KEY, btree (id)     "event_seating_lookup_created_at_idx" btree (created_at)     "event_seating_lookup_created_at_idx2" gist (created_at)   Query:  SELECT id FROM event_seating_lookup esl1 WHERE   tstzrange(now() - interval '1 hour', now() + interval '1 hour', '[)') @> esl1.created_at;   Explain analyze:  Table with <100k rows.   Seq Scan on event_seating_lookup esl1  (cost=0.00..1550.30 rows=148 width=4) (actual time=0.013..19.956 rows=29103 loops=1)    Filter: (tstzrange((now() - '01:00:00'::interval), (now() + '01:00:00'::interval), '[)'::text) @> created_at)    Buffers: shared hit=809  Planning Time: 0.110 ms  Execution Time: 21.942 ms   Table with 1M+ rows:  Seq Scan on event_seating_lookup esl1  (cost=10000000000.00..10000042152.75 rows=5832 width=4) (actual time=0.009..621.895 rows=1166413 loops=1)   Filter: (tstzrange((now() - '01:00:00'::interval), (now() + '01:00:00'::interval), '[)'::text) @> created_at)   Buffers: shared hit=12995 Planning Time: 0.092 ms Execution Time: 697.927 ms   I have tried:  VACUUM FULL event_seating_lookup; VACUUM event_seating_lookup; VACUUM ANALYZE event_seating_lookup; SET enable_seqscan = OFF;   Problem:  event_seating_lookup_created_at_idx or event_seating_lookup_created_at_idx2 indexes are not being used.  Notes:   PostgreSQL 11.1. btree_gist extension is installed. I have tried equivalent setup with created_at timestamp without time zone and using tsrange; same result. I understand that rewriting the query with >=, < checks would make it use the btree index. The question is what is the reason the index is not used with the tstzrange containment operator and if there is a way to make it work.


How can I show that the Petersen graph is not a Cayley graph?  I don't know very much about Cayley graphs, I know that they are vertex-transitive, but so is the Petersen graph. It probably has to do with the group structure of $\Gamma$ in $Cay(\Gamma,S)$ (which is a group of order $10$, i.e., it is either the cyclic group $C_{10}$ or the dihedral group $D_{10}$). Then I am guessing we go for some sort of contradiction(?). My group theory is a bit rusty, I would very much appreciate someone showing me how to do this one!


`sudo`, `gksu` and `gksudo` without password

In , I am surprised that if my administrator account does not have a password, sudo, gksu and gksudo won't prompt me for one! (it is not caused by /etc/sudoers). In Ubuntu,    How does Fedora do this? (what are the technical design details in Fedora that causes this behavior?) How can I make Ubuntu behave like this? (how to configure Ubuntu to act like Fedora in this regard?)   Similar questions have been asked many times before, but they only address sudo and not gksu, gksudo nor any other graphical tool. Also, neither sudo -i nor editing /etc/sudoers is needed; this is default Fedora behavior.  Of course this is probably not recommended, I just ask this so that I can learn more about how Linux works.


Cartesian product of compact sets is compact

Prove that if two sets $A$ and $B$ are compact then so is their Cartesian product $A \times B = \{(a,b): a \in A, b\in B\}$.   The hint is to use Bolzano Weiertrass theorem and an argument of sequence to proof the statement.


Why is a home fiber connection asymmetric?

I recently switched from an ADSL to a fiber connection and was surprised to see that the bandwidth is asymmetric (1 Gbps down / 250 Mbps up).  While this is understandable in ADSL, I do not understand why fiber at home is asymmetric as well? It is not a limitation of the technology (I have symmetric fiber at the office, and always had)


Find the sum of series $\sum_{n=1}^{\infty} \frac{2n-1}{2^n}$?


Should it be: "each other's belongings" or "each others' belongings"?

In this sentence:     I'm proud we're not one of those couples who have to snoop through   each other's belongings.   Is the above correct? Or should it be "each others' belongings"? Can you ever say each others' in any situation?  Thanks for any advice!


How to Align Vector Layer on QGIS cloud Imageries for Printing

I noticed a weird problem every time I save maps with either Bing or Google Imageries from QGIS Cloud. The vector features all align perfectly well on the map canvas and even on print composer. But after saving the map as either .jpg or .pdf, the vector layer on the saved map file would have shifted by a huge margin.  Please see picture attached.    Does anyone have a solution?


Let $X$ be a vector space and $x \otimes y \in X \otimes  X$.  Under which conditions is $x \otimes y  = y \otimes x$? Does it  nessecarily follow that $x = \lambda y$ for some $\lambda$ in the underlying field?


A good question is duplicate of a bad question

I found this question:  and a big bunch of questions marked as duplicates of it. The problem is, this question itself include a partial answer in the form of some bad code. So the first thing everyone who is redirected to this question sees is a bunch of code that looks much like an answer, but which they are best off ignoring. On top of this some of the answers naturally comment on this code, thus including information that is not relevant to the general topic. In the specific case I request that another question is chosen to be the "hub". The following question is clean and concise, so a good candidate for a replacement:  In general I request that no question is ever marked as a duplicate of a question that is significantly more complicated, provoke more complicated responses, or in other ways generate unnecessary noise. The result of such a duplication mark is a worse experience for those seeking an answer to the simple question. Update: Ilmari Karonen has now heavily edited the question in order to make it a better duplicate hub. Is this a practice with any precedence? If so are there any further guidelines for its application? If not, what does everyone think about it? Also this question has been closed as duplicate of a quite different question. Did any of the closers bother to read and comprehend what I wrote?


Methods of initializing K-means clustering

I am interested in the current state of the art for selecting initial seeds (cluster centers) for K-means.   Googling leads to two popular choices:   random selection of initial seeds, and, using the KMeans++ selection technique:    Are there any other promising methods that anyone here is aware of, which might not be as popular?


Explain electrostatic potential and similar terms?

How would you explain electrostatic potential, electrostatic potential energy, electrostatic potential difference, electrostatic potential gradient and  common potential What is the difference between them?


Installing Ubuntu-16.04.3-desktop-amd64 to Dell XPS 15 9560 from DVD encounters problems

I have a new Dell XPS 15 9560, which comes with Windows 10 Home 64-bit. I want to scratch that OS entirely and run Ubuntu 16.04.3 desktop amd64.   I use an external ASUS DVD, attached to USB3. From within Windows it works as expected, both to read and write.  However, booting with the proper Ubuntu image on the DVD encounters problems. I obtain the menu with four entries. Selecting either Try Ubuntu or Install Ubuntu brings up a screen with the word Ubuntu and a progress bar under it. Activity continues for a while, and then nothing more happens. If I started tty1 (ctrl+alt+F1) before it get stuck, I can see activity traces, which indicate errors like  ACPI exception AE_NOT_FOUND/while loading table ACPI error 1 table load failure, 12 successful DRM: failed to create kernel channel, -22.    To get away from this, I have to do a hard reboot. The Windows system is not affected.  There are obviously a number of different parameters that might affect this behaviour, and I have made changes which appear ok, e.g. changing to SATA AHCI from RAID. Dell support have no answer, as it should suffice to press F12 during boot to select the DVD drive, provided it is enabled for boot in the BIOS.  How to possibly resolve this problem?  Continued research:   Burnt the same 16.04.3 XPS AMD64 iso distribution to a USB memory, and attempted a new install. This time, Ubuntu appeared to install, granting all the questions required, but at the final "Reboot now" to complete the install, nothing happened, thus no reboot performed, although waiting a long time. Performed a hard reboot. At boot, the ubuntu boot option was there, but without being able to boot. Burnt ubuntu-17.04-desktop-amd64.iso to the same USB, and attempted a new install. This time, install completed, and the machine could be rebooted by clicking the "Reboot now" button. System booted and presented the login screen to logon as the administrator. Entering the appropriate password, followed by clicking on the arrow at the right end of the password field, resulted in only the background screen, no status line at the top of the window and no pointing device available. The only way out of this seems to be a hard shutdown. Left the laptop with a friend, who succeeded to install Ubuntu 17.04 desktop amd64. Most things appear to work now. There still are flaws (no exception messages, does not shutdown properly, some installs do not start after installation completed, installs using the Ubuntu install service might not run at all. Comments by friend: Seems to be two different graphics, NVIDIA and another. Currently additional driver in use is x.org.xserver - Nouveau display driver from xserver-xorg-video-nouveau. The NVIDIA binary driver, ver 375.66 from nvidia-375 not in use. Problems with graphics also seen in document: .    In all cases, UEFI was used, secure boot was disabled, SATA mode changed from RAID to AHCI, and fastboot set to "thorough" in POST behavior. The machine used was Dell XPS 15 9560 with 32GB memory, 1TB SSD, and, as currently reported by Ubuntu 17.04 desktop:  Processor: Intel Core i7-7700 HQ CPU @ 2.80GHz x 8;  Graphics:  Intel Kabylake GT2;  OS type:   64-bit;  Disk:      1TB;  To summarize, the problems encountered might be due to inappropriate graphics driver usage, although exact reasons are unknown.


In the whole series we never know who were Harry's grandparents. He sees them in that magical mirror in the first book but it does not ever occur to him to ask about them from anyone. He never wonders how they died or where they lived nor he ever asks about any relatives from his father's side.  Why JKR never mentioned the Potters? Has she had any interview about this?


I have html menu    $('.mobile-menu_icon').click(function(event) {   $('.menu-mobile_list').addClass('mobile-menu_active'); });

Main

Contacts

About Us

FAQ

     How to write something like:  !$("ul, li").click(function(e){    $('.menu-mobile_list').removeClass('mobile-menu_active'); })   (if user click on a different place of the screen, but not on menu, menu should close)


The same linux permission characters but with different numbers

I have two different folders in my directory with the following permissions:  file x: drwxr-xr-x 2 , file y: drwxr-xr-x 5. What is the permission difference between these two folders? why one has number 2 and the other 5?


Test whether variables follow the same distribution

If you want to test whether two variables follow the same distribution, would it be a good test to simply sort both variables, and then check their correlation? If it is high (at least 0.9?), then the variables most likely come from the same distribution.  With distribution here I mean "normal", "chi-square", "gamma" etc.


I'll be traveling to the UK (London) on a study abroad in the spring and will be bring my laptop for school and intern purposes.  I was just curious what/if any rights UK customs has to search laptops at the border, and how common laptop seizure and search is when returning to the good old U.S.A.


Closed form recurrence formula for getting N consecutive heads on a coin

I want to find the expected number of coin tosses to get $N$ heads in a row, where $p$ is the probability of getting a head in a single toss.    Let $F(N)$ be the expected number of tosses to get $N$ heads consecutively, so    $$F(N) = 1 + p F(N-1) + (1-p) F(N)$$   which gives   $$F(N) = 1/p + F(N-1)$$  With base condition : $F(1) = 1 + 1/p$   My logic is as follows:     if we get a head, in current toss we need to get N-1 more heads consecutively, but if we get a tail, we have to start over   This is what I thought, but is not correct. Can you please help me?


The intersection of an empty family of sets

I am confused about the following.  Could you explain me why if $A=\varnothing$,then $\cap A$ is the set of all sets?  Definition of $\cap A$:  For $A \neq \varnothing$:  $$x \in \cap A \leftrightarrow (\forall b \in A )x \in b$$  EDIT:  I want to prove that $\cap \varnothing$ is not a set.  To do that, do I have to begin, supposing that it is a set?


Is it a good idea to edit the spam away instead of waiting for enough flags to be raised?

The aim of this question is to understand what the system prefers.  On Aviation it often happens that spam messages end up in the LQ queue and thus end up being "reccommended for deletion" but not flagged as spam. They end up deleted, but not recognized as spam from the system.  As a consequence, some users have started to edit away the spammy posts while they are in the queue.  Is this a good idea? I.e., does the spam prevention system like this? Or should we somehow prod more users into flagging the posts instead?


As far as I know, PBKDF2 uses an underlying pseudorandom function in order to generate a hash (like SHA256) so as far I understood PBKDF2 is basically a hash function that uses an underlying function in order to generate a hash but what I don't understand is that what's the point of hmac here?  I expected to use something like PBKDF2WithSHA512 instead of PBKDF2WithHmacSHA512 and I really can't understand what's the point of HMAC.


Let $V$ be a vector space and $T:V\to V$ be a linear transformation. Prove that $T=T^2$ if and only if $T$ is a projection on $W_1=\{y\in V:T(y)=y\}$ along $N(T)$.  Does $W_1=\{y\in V:T(y)=y\}$ imply it is an identity map, and how am I supposed to prove that the only way the projection works is letting $0_v\in N(T)$? What's the sketch?


Look at the following sentence.  In order to keep fit, we must eat healthy food.  Can we also say "eat healthy" and "eat healthily" to mean eat healthy food ?  In order to keep fit, we must eat healthy. In order to keep fit, we must eat healthily.  Are they both correct or is either of them wrong? Thanks for Kate Bunting's comment. I am asking this because I know "go to bed hungry" makes sense and is quite different from "go to bed hungrily" Does "eat healthy" also make sense?


Solving indefinite integrals gives multiple answers. Are all those answers correct?

While solving problems on indefinite integrals many a times I get answers which are different from those given in my text book's answer keys page. I then verify my solution steps to ensure that even my answer is correct. Now my question is, Can it have different answers? If yes how can I ensure that all those different answers are correct?


Test for correlation between continuous and categorical variable

I am wanting to know what type of statistical test would need to be carried out to determine if there is a correlation between one categorical variable and one continuous variable.


$(W_1+W_2+\cdots+W_n)^a \leq W_1^a +\cdots + W_n^a$ for $n$ integer, $n\geq 2$, $W\gt 0$ and $a$ constant, real, $0\lt a\lt 1$

I am looking for a proof that this inequality: $$(W_1+W_2+\cdots+W_n)^a \leq  W_1^a +\cdots +  W_n^a$$  is valid.  I have a power function $f(W)=W^a$ where $a$ is a real number, constant but usually $0\lt a\lt 1$. The $W_i$ are real positive numbers.  Then I want to check if $\left(\sum W_i\right)^a \leq \sum(W_i^a)$   For example for $n=2$ : $(x+y)^a \leq x^a + y^a$.  Thanks.


Prevent questions put on hold in the first 24-48 hours

I'm new here but so far I've seen many times (inc myself) how questions are put on hold way too quick!  Without offending those who put them on hold, I think people are doing it too quickly and without much thought sometimes. There are many questions that are not perfect but are reasonable and understandable to more expert people or just those that understand them better.  Also - sometimes instead of letting a person to fix-edit his question, it it hold at once. This leads to questions being somewhat 'stuck' when they can be answered or edited quickly (with other's help sometimes)  I'm not you shouldn't use this option at all, or that there aren't questions that actually deserve that 'treatment' but i think that you should give a 12-24 hours for the community and original poster, to answer or edit the questions.  Does anyone else think so? Is it something that will be able to change?  EDITS  Alright so I was at fault, since on-hold questions can be commented it is far more reasonable. But Since my rep was low i wasn't even able to realize that >.<  So - I guess this Q can be closed/erased - whichever. It's a little too bad the line that answers that ^^ is the last line in the on-hold help page, which i did read just well - not to the last word apparently :/  I do recommend some sort of edit to the  page - too much text + not enough listing and use of typography = hard to read!!


I'm using  to make some backend tables. What I want to do is show these tables in a different admin menu than the TablePress menu, because they'll be available to lower user groups.  So I found out how to create a custom menu and in that menu I have custom pages. In these pages I would like to show the shortcode [table id=1 /] (a table that has already been created).   I've tried  echo do_shortcode('[table id=1 /]');   but that just shows [table id=1 /].  The plugin uses  add_shortcode( 'table', array( $this, 'shortcode_table' ) );   so I can't use directly the shortcode callback because I've no access to $this variable outside the object (the object class is TablePress_Frontend_Controller).  In addition, looking at plugin files, I've noticed one called template-tag-functions.php that contains a function tablepress_print_table. However this function, just like shortcode, works on frontend but not on backend (throwing an error).  What is the best way to solve this?


How to show address bar in Ubuntu 18.04?

In my Ubuntu the address is shown as this:    How to configure it to show the editable textbox in address bar like this?    The pic is from here:


PHP & MySQL: Preventing attacks - What's the different between these functions?

I've been working off of some example code for logging into a database, and the author has provided two functions, for making entered data safe for the DB, with little explanation for why which is used where. I'm trying to figure out if it's a redundancy, and whether or not I shouldn't be using one of them at all, because it looks much... um... lighter in what it does.  Here's the first:  /* Sanitize() function removes any potential threat from the data submitted. Prevents email injections or any other hacker attempts. if $remove_nl is true, newline chracters are removed from the input. */ function Sanitize($str,$remove_nl=true) {     $str = StripSlashes($str);      if($remove_nl)     {         $injections = array('/(\n+)/i',             '/(\r+)/i',             '/(\t+)/i',             '/(%0A+)/i',             '/(%0D+)/i',             '/(%08+)/i',             '/(%09+)/i'             );         $str = preg_replace($injections,'',$str);     }      return $str; }     function StripSlashes($str) {     if(get_magic_quotes_gpc())     {         $str = stripslashes($str);     }     return $str; }   And now the second:  /* No explanation whatsoever... */ function SanitizeForSQL($str) {     if( function_exists( "mysqli_real_escape_string" ) )     {           $ret_str = mysqli_real_escape_string($connection, $str);     }     else     {           $ret_str = addslashes( $str );     }     return $ret_str; }   The first code (which appears much more useful) looks like it's only used once when collecting the posted form fields into an array:  function CollectRegistrationSubmission(&$formvars) {     $formvars['Email'] = Sanitize($_POST['Email']); }   And the second is used pretty much any time anything is placed into a table field in the database or pulled from the SESSION data, such as:      $qry = "SELECT * FROM sessions WHERE Email='".SanitizeForSQL($Email)."'";      /* or */      $Email = SanitizeForSQL($_SESSION['email_of_user']);   My main concern is this seems redundant, but maybe that's because I don't understand it. Is there really a reason you would have to do both of these?      $formvars['Email'] = Sanitize($_POST['Email']);      $qry = "SELECT * FROM sessions WHERE Email='".SanitizeForSQL($formvars['Email'])."'";   So,  what's the difference?  Should I only be using one of these?   Should I be using something else entirely in one or both of these places?  Thank you for any light you can shed on this!


Should the Unused Contact of a DPDT Relay be Connected in Parallel or Series?

I am designing a PCB which uses a  DPDT relay. I actually only need one of the relay contacts, but this relay was cheaper than any equivalent SPST relay I could find. Is there any advantage to connecting the second relay contact either in parallel (as shown in the picture) or in series? Or would it be better to just use one contact and leave the second unconnected?    I already know that connecting in parallel will not allow me to double the amount of current the relay can handle, since the two contacts might not switch at the exact same moment. One advantage to connecting in parallel I could think of is that if one of the contacts eventually became stuck open, the circuit would still work as long as the other contact still worked. However, if the contacts were more likely to become stuck closed rather than open, it would actually be better to connect them in series instead. Is one of these modes of failure more common in this type of relay, or is there any other advantage to either connecting the second contact in parallel, series, or not at all?  Edit: This relay is used as an auxiliary dry contact output. The user can connect the relay contacts to another device in order to trigger it to do something. The relay will be triggered by some sort of event, turn on for a configurable amount of time (usually no more than a few seconds), then turn off again.


Win10 insists on "updating" a driver it shouldn't need

My Windows-10 frequently displays the following driver among the updates to download/install :     Hewlett-Packard driver update for HP LaserJet CP 1025nw     This is puzzling because   I have never installed a Laserjet printer (actually this notebook has no printer attached, and the only "installed printers" shown are the default "virtual" ones: "Microsoft Print to PDF", etc) Although I agree to "update" this driver  (well, I have no choice, this is win10....), it's shown again where there are (others) update available. Immediately after I've performed the update (with apparent success, no errors), if I press "Check for updates", the progress window first displays "Checking for updates..." then it (very) briefly displays "Updates available" together with that HP driver update message above, then it soon goes back to the "Checking for updates..." progress message (as if had restarted the process). This repeats for about five times, until I get the "Your device is up to date" message. All this happens again if I recheck for updates afterwards. All looks as if Windows Update tried several times to update this driver and failed.     Any idea what is happening here, or how can I debug this?    Update: this question has been marked as duplicate, I disagree. The other question is about blocking a legitimate non-driver update. My scenario is different: Windows is doing something wrong here, it wants to install an update of a driver that I don't have (I don't have that printer installed). Besides, when I let it do the update, it apparently does nothing, because later it insists on doing the same exact update. This is suggesting that the update process is messed up in my computer. I'm looking for answers about this issue, what is happening, how can I remedy the underlying problem - or at least, understand, or get some pointers to debug it. The answer: "use a third party program that replaces the standard Windows update program to block that particular update" is not a satisfactory answer.


Infinite subset with pairwise comprime elements

I'm looking for solution for this problem     Let $a$ be an integer greater then 1. Then, the set   $A\mathrel{:=}\{a^n(a+1)-1\mid n\in\mathbb{Z}_{+}\}$ a has an infinite   subset b such that it's elements are pairwise coprime.   I found similar question  but proposed solutions are wrong:  Author of solution claims that " Then $d$ is also a multiple of $m$ and using the well-known fact that $x−y$ divides $x^k−y^k$, we see that $a^m−1$ is a multiple of $a^d−1$ "  Here we can find a small but critical mistake: from $m\mid d$ follows that $a^m-1 \mid a^d-1$ but no $a^d-1\mid a^m-1$.  Also author states that if $m\mid n$ that $\gcd(X_m,X_n)=1$. It's also false because we can take $X_1=a(a+1)-1$ and it's prime factor $p$. But then $X_p=a^p(a+1)-1$ is also divided by $p$ because of Fermat's little theorem.


I don't know why I can't install ia32-libs. It claims for a dependency that cannot be found on repos. junior@mediacenter:~$ sudo apt-get install ia32-libs Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch E: Unable to correct problems, you have held broken packages.   junior@mediacenter:~$ sudo apt-get install ia32-libs-multiarch Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  ia32-libs-multiarch:i386 : Depends: gstreamer0.10-plugins-good:i386 but it is not going to be installed                             Depends: gtk2-engines:i386 but it is not going to be installed                             Depends: gtk2-engines-murrine:i386 but it is not going to be installed                             Depends: gtk2-engines-pixbuf:i386 but it is not going to be installed                             Depends: gtk2-engines-oxygen:i386 but it is not going to be installed                             Depends: ibus-gtk:i386 but it is not going to be installed                             Depends: libcanberra-gtk-module:i386 but it is not going to be installed                             Depends: libcurl3:i386 but it is not going to be installed                             Depends: libgail-common:i386 but it is not going to be installed                             Depends: libglapi-mesa:i386 but it is not going to be installed                             Depends: libglu1-mesa:i386 but it is not going to be installed                             Depends: libgtk2.0-0:i386 but it is not going to be installed                             Depends: libqt4-opengl:i386 but it is not going to be installed                             Depends: librsvg2-common:i386 but it is not going to be installed                             Recommends: libgl1-mesa-glx:i386 but it is not going to be installed                             Recommends: libgl1-mesa-dri:i386 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  Running ubuntu Precise: junior@mediacenter:~$ uname -a Linux mediacenter 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux  Synaptic fix broken package does nothing. Any tips?? Thanks I need this package to install other apps like teamviewer7.


Can I (26m) prove the fund instead of my girlfriend (24f) for a schengen Visa when traveling together?

I'll try to keep this as short and precise as possible: I am 26 y.o. male from Tunisia. I work as a  with an Australian company. I receive $2500/month through bank transfer. I am not an employee of that company, instead I have my own company here, and we do all the necessary exchange. Everything is legal and I pay my taxes and all that jazz since 2017 Also can provide bank account statement, and the €30k coverage can be provided by my bank (they include that service for companies like mine) My girlfriend is 24 y.o., also from Tunsia. She finished highschool and then studied in a private school and graduated as a pharmacist. She doesn't work cause the max salary here for her field is ~$200/month, and the work condition is awful. We traveled together 3 times in the past (2016, 2017 and 2019), all 3 times where to South Korea (doesn't require Visa for Tunisians), we stayed almost 1 month for each visit, and spent around $10k per visit (can prove that through my Payoneer transactions). Also, not sure if this matter but we've been together since 2012 and we can easily prove that. The questions:  Is it possible for me to support her application and help establish her willingness to return to the country?  Do you happen to know any certain services online that offers premium help for this kinda of situations? Knowing that my main potential destinations (just one of them) are (in order): the Netherlands, Finland, Sweden, Italy and Spain (or Canada if for some reason it's easier)  Is there any other advice that you can recommend?


Website Home Page URL Not Show On Google Search

If i search like site:www.paka.tv my main homepage URL not showing, but categories of my site pages showing on results. How to show my website URL (www.pakka.tv) on google search.


Why do I have 300 GB of ghost data on my harddrive?

If I enable both hidden and system files, and then select them all while in the C:\ Drive, the properties window adds their data up to 220 GB. However, if I right click on the C:\ Drive itself and select properties, I have 300 more GB than what was shown previously.    Where is this other 300 GB of data coming from? Is it something vital to the OS? Is it something that's still hidden somehow?


grouping options problem in `pgfplots.groupplots` when also using `units` library

I have a problem with the grouping options of pgfplots.groupplots. Besides the labels I have also units defined. With the option xlabels at=edge bottom only the label, but not the unit is moved to the bottom of the group (same with ylabels).  \pgfplotsset{     use units,     x unit=s, x unit prefix={}, % 5.3.1 p227     y unit=\unitfrac{rad}{s}, y unit prefix={},     xlabel=time,     ylabel=frequency $\omega$, }  \begin{groupplot}[     group style={      group name=my plots,         group size=2 by 2,         xlabels at=edge bottom,         ylabels at=edge left,     },   Any ideas how to put also the unit to the bottom?


Algorithm for detection of overlaping between vectors

I am currently developing a math-physics program and I need to calculate if two vectors overlap one another, the one is vertical and the other is horizontral. Is there any fast algorithm to do this because what I came up so far, has a lot of repeats. Eg lets say we have vector V1((0,1),(2,1)) and a V2((1,0),(1,2)) where the first parenthesis is the coordinates starting and the second coordinates that the vector reaches. I want as a result to take that they overlap at (1,1)  So far the only idea I came up is to ''expand'' each vector to a list of points and then compare the lists e.g for V1 its list would be (0,1) (1,1) (2,1)


How to set up UBUNTU ONE in Ubuntu 14.10

I am a ubuntu 14.10 user and i can not install Ubuntu_one in my PC! How i can install it and can set it up into my Menu bar also .


Old related post from 8 years ago:   As of now, there's no way to see the tags on a Hot Network question in the sidebar without clicking into it.  We already show the name of the site the question is hosted on when the site icon on the left is hovered over.  Could we add similar hover-text to the title link that will show the tags? Something like:  [feature-request], [tags], [design], [hot-questions], [sidebar]   Especially on sites like Movies & TV, Arqade and SciFi.SE, this would allow users to easily check whether or not the question is about something that interests them without being forced to click in for more context about the title.


java.lang.NullPointerException , when converting arraylist to array

public static void main(String args[]){     Scanner sc = new Scanner(System.in);      Integer n = sc.nextInt();      ArrayList<Integer> li = new ArrayList<Integer>();      while(true){         System.out.println("Please enter coin value: ");         li.add(sc.nextInt());         System.out.println("Do you want to add more yes/no?");         String answer = sc.next();           if (answer.equals("no")){             break;         }     }     Integer arr[] = new Integer[li.size()];     arr = li.toArray(arr); }


Expected value of $c^X$ where $X$ is a binomial random variable

I'm trying calculate this expression $$ \sum_{i=0}^n \binom{n}{i} p^i (1-p)^{n-i} c^i $$  where $c$ is a constant. And this expression is the same as $E[c^X]$ with $X \sim Binom(n, p)$. I wonder if anyone could give some hint. Thank you!  EDIT: This question is solved by a simple application of the binomial theorem.


I am new to Apex and I am trying to make SOQL to be outside of FOR Loops but then my trigger stopped working. Here is my code: trigger AccountFieldUpdate on Contract (after insert, after update) {      Set<Id> accountIds = new Set<Id>();      for (Contract contr : Trigger.new) {             accountIds.add(contr.AccountId);     }         for (Contract con: Trigger.new) {         Account act = [SELECT ID FROM ACCOUNT WHERE ID =:con.AccountId];             if (con.Contract_Year__c == '2018' ){                  act.Contract_2018__c = con.Id;                 act.Contract_2019__c = null;                 act.Contract_2018__c = null;             } else if (con.Contract_Year__c == '2019') {                 act.Contract_2019__c = con.Id;                 act.Contract_2020__c = null;                 act.Contract_2018__c = null;             } else if (con.Contract_Year__c == '2020') {                 act.Contract_2020__c = con.Id;                 act.Contract_2019__c = null;                 act.Contract_2018__c = null;             }             update act;             } }  Can anyone help me to solve this issue? Thank you!


Is my netbook powerful enough to run Ubuntu 14.04?

Mods: this question is not a duplicate of others. While related in subject, this question is not a general specifications request, nor is it concerned with building kernels and whatnot. This question concerns the cause(s) of a degredation of performance on a netbook, and what remedies might be available.  My netbook:   Gateway NAV50 Processor: Intel Atom CPU N450 166Ghz x2 Memory: 991.4 MiB OS type: 32 bit Disk: 245.0 GB Graphics: Intel IGD X86/MMX/SSE2 Chrome: Version 37.0.2062.94 Ubuntu 14.04 (290621)   (BTW, with regards to the processor, I don't know what the "x2" means. Two chips? Twice the speed?)  Out of the box, this computer ran Windows 7. I replaced Win7 with Ubuntu 12.xx. It was not a dual-boot situation. I completely removed Win7, leaving Linux/Ubuntu as the only OS/desktop on the machine.  A few weeks ago, Ubuntu automatically upgraded to 14.04. so, that's the system on my computer now.  Even prior to the upgrade, I had noticed degraded performance. The various tasks and programs would perform without error, but they would respond slowly. Bootup takes more than 60 seconds. The time between clicking the Chrome icon in the taskbar and the launch of the program is 30 seconds or longer. The loading of the startup tabs can be equally as long. In the browser, new pages load, and load, and load, forever before all elements finally are present. Even swapping between programs (alt+tab) is a slow-motion experience, with one program slowly fading from view as the other program window slowly fades into view, instead of an instantaneous snap from one window to the other.  There is a general lack of "snappiness" to the response to commands. Every launch of a program or app involves a spongy lag time that I don't experience on my Windows-based Dell XPS or Chrome-based Nexus 5.  My netbook has little beyond Ubuntu loaded on it, no graphics- or video-editing programs. I don't store my photos or music on this machine, and at most keep a dozen or so text documents on the drive. I store most of my files in the cloud or on an external drive.  I did not notice this laggy performance when I first replaced Windows with Ubuntu 12.xx. The response at that time was just as quick and immediate as it had been under Windows, from which I concluded that this machine, humble as it is, has the power necessary to handle Ubuntu. The draggy performance became evident only much later. So now I'm left to wonder what is causing it, and what I might be able to do to improve performance.  Thank you.


Too much space between links in post menu

In the 'menu' under the post, some extra space has been added (I presume accidentally) between the 'flag' link and the other options:    It looks like the separators are always shown, even though their corresponding options might be hidden. Here's how a full menu looks, and it's still evenly spaced:


E: Type 'http://repository.spotify.com' is not known on line 7 in source list /etc/apt/sources.list.d/spotify.list E: The list of sources could not be read. E: Type 'http://repository.spotify.com' is not known on line 7 in source list /etc/apt/sources.list.d/spotify.list E: The list of sources could not be read.   i dont know how to open the source list please use explicit detail


How can I triple boot Xubuntu, Ubuntu and Windows?

Triple Booting Xubuntu, Ubuntu and Windows   I'm an avid Xubuntu (Ubuntu + XFCE) user but I also dual boot with Windows XP.  I originally created 3 partitions and wanted to use the empty one as a storage volume but now I want to install Ubuntu 12.04 LTS (the one with Unity) to do advanced testing and packaging. Ideally I would love to keep these two totally separate as I had problems in the past with conflicts between Unity and XFCE.  This way I could wipe the Ubuntu w/ Unity installation if there are problems and really mess around with it.  My disk looks like this:   Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63    78139454    39069696    7  HPFS/NTFS/exFAT /dev/sda2        78141440   156280831    39069696   83  Linux /dev/sda3       156282878   386533375   115125249    5  Extended /dev/sda4       386533376   390721535     2094080   82  Linux swap / Solaris /dev/sda5       156282880   386533375   115125248   83  Linux   Keep each in it's own partition and totally separate and be able to select from each of the three systems from the GRUB boot menu...  sda1 ---> [Windows XP] sda2 ---> [Ubuntu 12.04] "Unity" sda3(4,5) --> [Xubuntu 12.02] "Primary XFCE"   What is the safest and easiest way to do this without messing my system up and requiring invasive activity?


Need guidance on how to navigate Istanbul Atatürk Airport (IST)

This is more of a panic question after reading reviews on Istanbul Atatürk Airport. They said it's messy and hard to navigate, therefore I'm asking questions here in name of my girlfriend who will need to transit through this airport.  My girlfriend (Canadian national) traveling from Toronto (YYZ) to Istanbul (IST) for a couple hours (~4 hrs, so transiting) in order to come to Pristina (PRN). I would like a quick guideline on how to pass through this airport seamlessly without facing any trouble or delay.  Her tickets are both with Turkish Airlines. She purchased it via a third party (Flighthub.ca). It's only one booking and it includes both flights in it.   Once my girlfriend departs, she's obviously required to follow the signs and go to the transit area. Once she's there, will she be required to present a ticket? Where does she get that ticket? Does she get it in YYZ or does she need to visit a counter in IST and get it? After she's got the proper ticket, what does she need to do exactly? Wait in line to have her passport checked? Will they also control her carryon?  After this step, does she simply go to the PRN flight gate and that's it?   We're simply worried about Istanbul Atatürk Airport because of the recent things that happened in Turkey (coup attempt and ISIS attack) and she doesn't wanna somehow end up locked up there. I've read that the airport is a mess lately and a lot of people will be there waiting in line. So, another question: Are 4 hours enough?  I would appreciate a step by step guideline on how she needs to navigate and what she needs to do in that airport to have a smooth experience without facing any delays. Also some misc information on Istanbul Atatürk Airport would be appreciated.


My camera view area (red dash square) is not in the middle?

edit: THE ACTUAL ANSWER IS IN THE COMMENT SECTION I've not yet get anything so I'll ask a question here then.. It's hard to explain for me (don't even know what to call this problem) but basically this is what it looks like:  ^The red dash box (which is yellow now since I selected the camera) is not on the middle.  ^This is what it should look like. How to like move that red dash box to the middle? I've been using blender for years but never really find out or knew ways or shortcuts to move the camera view red dash box, it can get annoying too if I render a square image. Sorry if this is probably something that people already asked before, I just don't know what to search for this problem :p


Black bar covering bottom half of images, with or without flash

I use a Nikon D610 and whenever I take a picture, I get a black bar at the bottom covering half of the photo. How do I fix this? Is my shutter speed off? It isn't very fast, but no matter what I do I can't figure out a way to fix it. The camera is 3 months old even without flash I get the black bar in my photos.


Would Snape have switched sides if Voldemort never attacked Harry and the Potters and instead attacked Neville and the Longbottoms?

In Deathly Hallows, we learn that Snape switched sides and obeyed Dumbledore once Voldemort started hunting down Harry's mother, Lily Potter.  Evidence is below, from the Deathly Hallows:      “Severus Snape wasn’t yours,” said Harry. “Snape was Dumbledore’s, Dumbledore’s from the moment you started hunting down my mother. And you never realized it, because of the thing you can’t understand. You never saw Snape cast a Patronus, did you, Riddle?”   Voldemort did not answer. They continued to circle each other like wolves about to tear each other apart.   “Snape’s Patronus was a doe,” said Harry, “the same as my mother’s, because he loved her for nearly all of his life, from the time when they were children. You should have realized,” he said as he saw Voldemort’s nostrils flare, “he asked you to spare her life, didn’t he?”   “He desired her, that was all,” sneered Voldemort, “but when she had gone, he agreed that there were other women, and of purer blood, worthier of him —”      “Of course he told you that,” said Harry, “but he was Dumbledore’s spy from the moment you threatened her, and he’s been working against you ever since! Dumbledore was already dying when Snape finished him!”   So the question is, if Voldemort never had targeted the Potters and instead had targeted the Longbottoms, would Snape have switched sides or would he have stayed aligned with the Death Eaters? Snape was never in love with Neville's mother, so that will not have convinced Snape to switch sides since it was Snape's undying love for Lily that caused him to switch sides in the first place.


Can anyone please highlight the process behind the formation of words ending in -cial/-tial? For instance,  finance is the root for financial  but,  different is the root for differential substance is the root for substantial  Is there some general rule to apply?


Does the Heisenberg uncertainty principle hold up for events in the past?

I was watching this youtube video on predicting the future if you can know the exact position and momentum of every particle in the whole universe. But you can't ever know that says Heisenberg. But what about the past? If you could theoretically take a moment in the past and look at an event, say a chemical reaction, atom by atom, would you be able to know the exact position and momentum for every particle that was in that reaction because you knew the outcome?


I have an image (example.png) divided in n times m blocks, and consider this class:  .myFullImg{    background: url(example.png); }   I want to create a div in which i show in his background just a specific block:

   I don't know what to put in style above ?  Example: the image image.png had: height:150px and width:100px.  Then i have 6x4=24 blocks in this image with height:25px and width:25px  And i want in a div to display a block from the image image.png  Thank you for your help


I came across this phrase on the website:      Over all, this site is sure to be appreciated by anyone that needs to take his or her mind off of more pressing matters.   I looked it up into the dictionary, and the explanation for take his mind off is "if an activity takes someone's mind off their problems, it stops them from thinking about it".  But why does of exist in the sentence above?


How to make the term "page" show in the Glossary list?

I have recently started to use the package glossaries.  When I make the Glossary list, the page numbers show up at the end of the description. So far so good.  I have found information about how to not show the page numbers.  I have found one solution in  how to add the words "page" or "pages". But it had some issues:   The previously existing cross-references disappeared. It used to look like  .  So my question is, can you include the words "page" or "pages" without losing the clickable cross-references? Another problem with the found solution is that it tends to repeat the term "page"      instead of just using it once.   The second issue seems to be solved     in the proposed solution of , but I was not sure how to implement the proposed solution. At least I got error codes when trying to add the  % Columns in acronym table \newglossarystyle{mylong}{%   \setglossarystyle{long}%   \renewenvironment{theglossary}%      {\begin{longtable}[l]{@{}p{\dimexpr 2cm-\tabcolsep}p{0.8\hsize}}}%      {\end{longtable}}%       \renewcommand{\glossentry}[2]{%       \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &       \glossentrydesc{##1}\glspostdescription\space        \pagesfalse       \usepagestag{##1}\space       ##2%       \ifpages         \savepagestag{##1}{pages}%       \else         \savepagestag{##1}{page}%       \fi       \tabularnewline      }%  }   code block from  to my .tex document.  Can anyone help me out with this?  /Lars


NGINX server is under the BSD license. Does anyone know how to find information about the costs of BSD license, I mean, how much is paid to apply this license to NGINX, and how much does a user has to pay that goes to the license usage, when using NGINX (even if it's near zero cost)?


My Eevee evolved into a Flareon not a Jolteon, despite being nicknamed Sparky. Why?

I used Sparky as a name for Eevee so that it would evolve into a Jolteon, but it turned into a Flareon, instead. Why did this happen?


How to approach solving $\int_0^{\pi/2} \ln(a^2 \cos^2 x +b^2 \sin^2 x ) dx$

I have been attempting to solve this integral for several days in preparation for an exam and keep reaching dead ends.  I(a,b) = $\int_0^{\pi/2} \ln(a^{2}\cos^2(x)+b^{2}\sin^2(x)) dx$, where $a,b>0$  My best approach so far is defining:  $F(x) = I(x, b)$  Then, I know:  $F(b) = I(b, b) = \pi/2 * \ln(b^2)$  Then I am now attempting to find $F'(x)$ using differentiation under the integral sign, and integrating from b to a.  This is where I am stuck - no matter what I do, I cannot solve the integral. Am I in the right direction or should this be solved in a different manner? I also considered something elliptical due to the acos, bsin in the original integral, yet it has also reached a dead end.


Reading huge Hive table using jdbc leads to java.lang.OutOfMemoryError: Java heap space

I'm trying to read huge hive table with 13 million records using groovy where the data is in parquet format. I used following to code but I'm getting OOM java heap space error. I have given max 32 GB memory and setFetchsize(5000) still its getting error.  JAVA_OPTS="-Xms1024M" JAVA_OPTS="-Xmx32556M"   Any Help will be appreciated.  Code:    String contSql = "select * from staging.cont_staging";                 ResultSet resRateRecords = stmt.executeQuery(contSql);                 Map <String,Map<String,String>> masterRecords = new HashMap<String,Map<String,String>>();                 Map<String,String> existingRecords = null;                 int count = 0;                 resRateRecords.setFetchSize(5000);                 while(resRateRecords.next()) {                          try{existingRecords = new HashMap<String,String>();  masterRecords.put(resRateRecords.getString("contract_id")+"#"+count++,existingRecords);                         }catch(Exception e){                                 e.printStackTrace();                         }   Error  java.lang.OutOfMemoryError: Java heap space         at org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:355)         at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:347)         at org.apache.hive.service.cli.thrift.TStringColumn$TStringColumnStandardScheme.read(TStringColumn.java:453)         at org.apache.hive.service.cli.thrift.TStringColumn$TStringColumnStandardScheme.read(TStringColumn.java:433)         at org.apache.hive.service.cli.thrift.TStringColumn.read(TStringColumn.java:367)         at org.apache.hive.service.cli.thrift.TColumn.standardSchemeReadValue(TColumn.java:328)         at org.apache.thrift.TUnion$TUnionStandardScheme.read(TUnion.java:224)         at org.apache.thrift.TUnion$TUnionStandardScheme.read(TUnion.java:213)         at org.apache.thrift.TUnion.read(TUnion.java:138)         at org.apache.hive.service.cli.thrift.TRowSet$TRowSetStandardScheme.read(TRowSet.java:573)         at org.apache.hive.service.cli.thrift.TRowSet$TRowSetStandardScheme.read(TRowSet.java:525)         at org.apache.hive.service.cli.thrift.TRowSet.read(TRowSet.java:451)         at org.apache.hive.service.cli.thrift.TFetchResultsResp$TFetchResultsRespStandardScheme.read(TFetchResultsResp.java:518)         at org.apache.hive.service.cli.thrift.TFetchResultsResp$TFetchResultsRespStandardScheme.read(TFetchResultsResp.java:486)         at org.apache.hive.service.cli.thrift.TFetchResultsResp.read(TFetchResultsResp.java:408)         at org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result$FetchResults_resultStandardScheme.read(TCLIService.java:13251)         at org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result$FetchResults_resultStandardScheme.read(TCLIService.java:13236)         at org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result.read(TCLIService.java:13183)         at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)         at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_FetchResults(TCLIService.java:505)         at org.apache.hive.service.cli.thrift.TCLIService$Client.FetchResults(TCLIService.java:492)         at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:335)         at java_sql_ResultSet$next.call(Unknown Source)         at BEContractRateLoad.fetchContractRateRecords(DestRateLoad.groovy:300)         at BEContractRateLoad.processContractRecords(DestRateLoad.groovy:397)         at BEContractRateLoad$processContractRecords$1.call(Unknown Source) Groovy has reported an error, terminating


I shot with some friends a star wars shot in the woods. We want to make a scene, where everything stands still (frozen time effect) and a blaster-shot hangs in the air. For that we need to motion track it in blender. But It is very hard because the camera is moving very strongly. Many keyframes have already lost their path after some frames. I have to tick the trip box in the motion editor (solve panle) that I can even track my scene. I get a solving error of about 26 and that's not even quite good. Can anyone help me please! I don't know how to fix it and get the track at least a little bit better. I would love to get some tips from you because we can't shoot the scene again. As you can see I'm not the best in Motion-tracking and still a beginner so if it is possible, don't make it too complicated and give me a good explanation. Thank you for the help! :)   The woods looks like this:


How do I find out which one of those pesky programs keeps waking my machine from sleep?

Every night I put my Windows 7 machine into sleep mode, and every morning I wake up and the thing is running.    How I can find out which process is waking the thing up?  I've already looked at the Event Log and for the past two days the answer seems to be the "Windows Image Acquisition (WIA) service entered the running state."  What can I do about this?


Using the itemize environment inside a caption

The following code does not compile. However, if I remove the itemize environment it does. I googled for this problem, and found suggestions that using the caption package would solve the problem, though I did not find any clear description of why the problem occurred in the first place. See for example    I'm using Debian squeeze with TeX Live 2009-11. The included version of caption has   \ProvidesPackage{caption}[2009/10/09 v3.1k Customizing captions (AR)]   I also tried downloading and using the caption package from     but this doesn't change anything. I put the sty files in my current directory. I assume that overrides the system files. This one corresponds to  \ProvidesPackage{caption}[2010/01/09 v3.1m Customizing captions (AR)]   Error message and example file follow.  *******************************************     ERROR: Argument of \@caption has an extra }.  --- TeX said --- <inserted text>                  \par  l.13     }  --- HELP --- From the .log file...  I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. ******************************************************  \documentclass{article} \usepackage{caption} \begin{document}  \begin{figure}     \captionsetup{singlelinecheck=off}     \caption     {       foo       \begin{itemize}       \item bar       \end{itemize}     } \end{figure} \end{document}


What this code mean in VB.NET ?  I don't understand with : operator. Is it same with ternary operator in Java/C#/C ?   If InStr(elementName, "*") > 0 And depth < maxDepth Then isRule = True : isGrRule = True


Let $f$ be a differentiable function satisfying the functional time $f(xy)=f(x) +f(y) +\frac{x+y-1}{xy} \forall x,y \gt 0 $ and $f'(1)=2$  My work   Putting $y=1$  $$f(1)=-1$$ $$f'(x)=\lim_{h\to 0}\frac{f(x+h) - f(x)}{h}$$ But I don't know anything about $f(x+h)$  so what to do in this problem ?


Is thanking email recommended after a response from author?

Suppose I read a research paper and contacted the author for a resource through email. The author responded to the email. I have no further queries or requests to ask the author. In such context, do I need to compose a reply mail thanking the response provided? Or is it a kind of disturbance for them if I compose mail without any substantial information and just to thank?


What are the security disadvantages of rooting an Android phone?

I know there was a discussion previously BUT they didn't talk about security. E.g.: if I root my phone will all my apps run with root permission?  Related:


Tangent and Normal lines that pass through the origin

Let $\alpha$ be a regular curve in $\mathbb{R}^2$ and let all of its tangent lines pass through the origin. Also, let $\beta$ be a regular curve in $\mathbb{R}^2$ and let all of its normal lines pass through the origin.   How can I show that $\alpha$ is contained in a straight line through the origin and that $\beta$ is contained in a circle around the origin?  I know that the tangent line $\alpha(t)$ is the line that points in the direction of the tangent vector $T(t)$ and that the normal line of $\beta(t)$ is the line that points in the direction of $N(t)$, but how can I put this all together to complete the proof?


Can I get the parameters of a lognormal distribution from the sample mean & median?

I have the mean and median values for a sample drawn from a lognormal distribution. Note that this is not the mean and median of the logs of the variable, though I can of course calculate the logs of the mean and median. Is there a closed form solution for μ and σ from this information? If there is only a numeric solution, could you tell me how to find it, ideally with R?  I note that this question has been answered for deriving μ and σ from the sample mean and the sample variance, here:   However, I do not have the sample variance, only the mean and median.  If there is no closed-form or straightforward numeric solution, I'd like to know if using the logs of the sample mean and median, or some transform of them, will provide a reasonable answer for a large sample (in the hundreds of millions).


How to include a movie in a PDF? Step by step instructions

There are a few question/answers regarding the embedding movies in PDF with pdflatex and special packages. However I find the information dispersed all around and confusing. And so far, in the best cases I get a "3D rendering error in Acrobat Reader" and I don't know what step is failing.  Maybe this particular case serves as guide for a step by step explanation:   pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian), Acrobat Reader 9.5.1, Linux (Ubuntu 12.04). Need to upgrade something?      Let's start with a movie file: movie.avi with FFmpeg MPEG-4 encoding. Does it need to be encoded in some other way? what is the best tool to reencode? what encodings are going to work? Is a conversion to flv format really necessary? pdflatex: what packages need to be included, media9, movie15 (obsolete?), flashmovie?  what is the latex command to include the movie? Can one have the option to keep the file inside the PDF or external? How does one get the playback controls rendered with the movie inside the page? Does one really have to use a third party flash-based movie player? If so which player works with Acrobat 9.5.1? Can I expect the movie to be player inside the PDF page in the monitor? Can one expect to have a preview of the movie (first frame) in the static rendering of the page. Can one expect the resulting PDF and embedded movie to work when switching to Windows/Linux/OSX? Does one need to change (hidden?) security preferences in Acrobat to see the movie?   A solution compatible with beamer is also desirable.


HDD I/O fast at first but gradually decreases?

I was benchmarking my WD 500 GB HDD in Ubuntu Disks several times and saw that the read speeds started at 140 MB/s, but it consistently would gradually decrease by a few MB/s with seemingly no floor. The same was for write speeds, but to a dramatically greater extent. What is the meaning of that? I am installing Ubuntu on it now; what might I expect the impacts will be on daily use as time goes on (i.e. how will that behavior manifest in daily use)?


Proof by induction: $2(\sqrt n - 1) < \sum\limits_{i=1}^n \left(\frac{1}{\sqrt{i}}\right)$

Need help with proof by induction for: $$2(\sqrt n - 1) < \sum_{i=1}^n \left(\frac{1}{\sqrt i}\right)$$  For n=1: Good. Assuming for n, trying to proof for (n+1)... Thanks.


NO_PUBKEY error when attempting to re-install Ubuntu Software Center

I try to execute the command sudo apt-get update; sudo apt-get --reinstall software-center but the below response is follow:  W: GPG error: http://private-ppa.launchpad.net trusty InRelease:     The following signatures couldn't be verified because the public key    is not available: NO_PUBKEY E131728675254D99 E: Command line option --reinstall is not understood   First: I remove "View File" from Software Ubuntu Center after which my Software Ubuntu Center deleted as well.  How can I reinstall my Software Ubuntu Center?


I am having trouble grasping how the average velocity of a particle between an initial position and final position equals to the arithmetic mean of the initial velocity and the final velocity when the acceleration is constant.  My textbook offers me the following explanation:   Because the velocity at constant acceleration varies linearly in time according to: $$v_{xf}=v_{xi}+a_{x}t,$$ we can express the average velocity in any time interval as the arithmetic mean of the initial and final velocity.  $$v_{x, average}=\frac{v_{xf}+v_{xi}}{2}$$ (for constant $a_{x}$)  I tried graphing a theoretical position-time, velocity-time graph to understand this but I still cannot see why it is the arithmetic mean.  Could someone please explain this to me?


When I offer a bounty, I don't see upvote notifications

When I get an upvote, I get a green bubble:    These can merge to show total rep across all the sites:    That shows that I got + 40 and -1 (I downvoted).  This however, doesn't exist:    You don't get bubbles for - rep.  What this means is, if I offer a bounty for 50 (e.g. ) and then get 2 upvotes (I did) I don't see the bubble. It would have to display this:    That's the bounty (-) and upvotes (+). It can't show this.  At the end of it all, because it isn't showing me - rep, I don't see that I have any rep gains here because they cancel out.  Just to be clear, it is only when the bounty and upvotes are on the same question that I don't see upvotes... For example, just here I got the +5 notification for this question being upvoted  Request:  Upvotes and downvotes etc still cancel out, and it is only displayed if the over all is +ve, but bounties are not included in this measure. Either it would show the -40 or it would just show +10 and completely forget showing the bounty.


Can we add some sort of "gift"-like feature for excellent users?

Just suggesting a sort of thing where I could award someone a trophy, maybe.  For example, if someone writes a really good question, I could award them a "Great First Question!" trophy.  Some trophies could possibly have reputation associated with them.


How do I get two way coupling in FLIP Fluids?

I'm on Blender 2.91 and I'm trying to make a simulation with Suzanne being pushed around by liquid. No idea how I'd approach that though. Obviously I'm making it a rigid body and a fluid obstacle, but what should I do from there? There's no FLIP two way coupling option, is there?


Increase size of APFS partion in High Sierra

I replaced my 250Gb HDD with a 500Gb SSD. The problem is that after installing my new SSD and copying all my stuff onto it, my SSD reports it has a single partition of 250Gb and free space of 250Gb instead of a single 500Gb partition.  This has more than likely come about because I cloned my SSD from my old HDD (it seemed like a good idea at the time!).  If I open Disk Utility, select my SSD and click the Partition button it shows the free space and the SSD with a resize control on the border between the two. The resize control won't let me drag it to the left (clockwise into the free space) no matter how much I try. It also won't let me create a new partition in the free space.  My OS is High Sierra and the format is APFS.  I've had a look at some third party tools but haven't found any that work with APFS.  All the googling I've done on this subject suggests that Disk Utility doesn't work with all the features of APFS.  It seems it's possible to increase the size of a partition from the command line in Terminal but I can't find any instructions that deal specifically with my scenario. Here's the output from the diskutil list command:    ...and the output from sudo gpt -r show /dev/disk1:    I've tried to resize the container using:  diskutil apfs resizeContainer disk0s2 500g   but this command throws an error:     The size (500g) must not be greater than the partition map allocatable size   Can anyone help? Ideally I'd like to have a single 500Gb partition.


How did Trills get the idea of putting symbionts inside themselves?

The title says it all.  How did the people of Trill decide that it was a good thing to put symbionts inside themselves?    The symbionts seem to be quite wise, but unjoined symbionts lack any obvious means of communicating with other life forms, and therefore don't have an obvious way of saying,     "Hey, humanoid!  Yeah, you!  Put me in your abdomen!"   Only a fraction of the Trill population get joined, and in the DS9 episode  we see a pool of healthy, unjoined symbionts being tended to, and so joining is not essential to the survival of either species.  How was the practice of joining Trill humanoids and symbionts initiated?


Cross tabulation of two categorical variables: recommended techniques

I'm aware that this one is far from yes or no question, but I'd like to know which techniques do you prefer in categorical data analysis - i.e. cross tabulation with two categorical variables.  I've come up with:    χ2 test - well, this is quite self-explanatory  Fisher's exact test - when n < 40, Yates' continuity correction - when n > 40,  Cramer's V - measure of association for tables which have more than 2 x 2 cells, Φ coefficient - measure of association for 2 x 2 tables, contingency coefficient (C) - measure of association for n x n tables, odds ratio - independence of two categorical variables, McNemar marginal homogeniety test,   And my question here is: Which statistical techniques for cross-tabulated data (two categorical variables) do you consider relevant (and why)?


As the title asks, I'm curious about why the permanency spell isn't in 5e. It's not in the PHB, DMG, or any forum page on the interwebs. It's been incorporated into various spells like  or , but what about other spells/effects/conditions?  Anyways, I'm wondering if anyone from Wizards has released any info on this matter. Interview, Twitter, Supplement?


Find $\lim_\limits{x\to \infty}{\sqrt[3]{x^3+ax^2+bx+c}-x}$. As I understand, I should use Taylor series, but I don't know how. What should I translate into Taylor series, to what extent, etc. This is the formula I know: $f(x)=\sum_{j=0}^{\infty}{f^{(j)}(x_0)\over j!}(x-x_0)^j+o((x-x_0)^n)$. I would really appreciate your help.


Can someone help me prove these commutation relations? $$[M_{ij},M_{kl}]=\delta_{jk}M_{il}+\delta_{il}M_{jk}-\delta_{ik}M_{jl}-\delta_{jl}M_{ik}$$ where $i, j, k, l$ run from $1$ to $3$. And: $$[M_{\mu\nu},M_{\lambda\rho}]=\eta_{\mu\rho}M_{\nu\lambda}+\eta_{\nu\lambda}M_{\mu\rho}-\eta_{\mu\lambda}M_{\nu\rho}-\eta_{\nu\rho}M_{\mu\lambda}~?$$ I know that $\partial_{i}x_{j}$ gives us $\eta_{ij}$, but why am I getting Kronecker delta in the first expression? Is it because of the Euclidean space? I read somewhere that $\partial_{i}x^{j}$ gives us $\delta_{i}^{j}$, then why am I getting Kronecker delta in the above expression instead of $\eta$?


Points in rectangular coordinate system - specifying coordinates as function values

I am trying to locate the vertices of a rectangle and to color the rectangular region.  I specify the y-coordinate as a function value, like \sqrt{3}/2 or \sin(60).  I am getting an error.  \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{calc}   \begin{document} \begin{tikzpicture}  \coordinate (A) at (-1,{-\sqrt{3}/2}); \coordinate (B) at (-1,{\sin(60)}); \coordinate (C) at (2,{\sin(60)); \coordinate (D) at (2,{-\sqrt{3}/2});  \path[fill=yellow] (A) -- (B) -- (C) -- (D) -- cycle;  \node[outer sep=0pt,circle, fill,inner sep=1.5pt,label={[fill=white]below left:$A$}] at (A) {}; \node[outer sep=0pt,circle, fill,inner sep=1.5pt,label={[fill=white]above left:$B$}] at (B) {}; \node[outer sep=0pt,circle, fill,inner sep=1.5pt,label={[fill=white]above right:$C$}] at (C) {}; \node[outer sep=0pt,circle, fill,inner sep=1.5pt,label={[fill=white]below right:$D$}] at (D) {}; \end{tikzpicture}


Should the comment be removed once it becomes obsolete?

Comments like "can you provide more information?" or "clarify what you mean" can become obsolete when the post gets edited. Should the comment be removed after the edit, or not? I think that removing the unneeded comments (those that do not contribute towards solving the issue) is the right thing to do, since it cleans up the question.


I would like to create conference posters using idiomatic TikZ code as far as possible. I took a look at tikzposter () but it seems rather unmaintained. The documentation was last updated in January 2014.  To make things precise, I am missing e.g. this:   Predefined coordinates like page.north east. Multi-row titles without . Less vbox, hbox, ... in the . Support any number of font sizes.   Should I rewrite tikzposter or is there something else ideally with a Github page which I can use and contribute to?


What is the easiest method to check if I have DDR3 memory?

I want to find out if my mother-in-law's computer has DDR3 memory. She is living quite far away, and she is not completly computer illiterate, but downloading, installing and running a program might be too much for her.   Is there an easy way built into Windows to check this? Something I can guide her through on the phone, without going insane? She might have XP or 7.  If I can find out remotely, I can buy the RAM now, and install it on my next visit. If not, it will take two visits, one to check, one to install.


Any tips or tricks to hasten USB device detection and initialisation?

I reattach dozens of USB devices to my Windows 7 across the day, such as printers, flash drives, mice, modems, midi keyboards, and scanners. The computer has seen them all before; all have been set up previously.    Yet in most cases, Windows takes 20-60 seconds to finish initialising the device and get it ready for use. Is there a way via software to cut this time short?


How to print streaming JSON to file after processing with JQ and SED

I am using the following code to download streaming financial data  curl -s -H "Content-Type: application/json" -H "Authorization: Bearer XXX..." "https://...=EUR_USD" | jq --raw-output '[.time, .bids[0].price, .asks[0].price] | @csv'   which is successfully streaming in the terminal thus  "2020-05-05T10:02:37.060299264Z","1.08472","1.08481"   However, what I would really like is to further process this, using sed, to get  2020,05,05,10,02,37.060299264,1.08472,1.08481   and then append this to a file, let's call it "output," but when I try piping to sed I no longer see the streaming data although I'm sure my sed syntax is correct as I've checked it against a static test file.  So my question is: how do I further pipe to sed and then append to the file "output?"


Sum of total variation over countable partition of interval equals variation over interval?

Let $I=[a,b]$, and consider some $f\in BV(I)$ (the space of all functions with bounded total variation on $I$). Let  $$\mathcal Q=\{[a_k,b_k]:k\in\mathbb N,~\operatorname{cl}\left(\bigcup_{k=1}^\infty[a_k,b_k]\right)=I,~(a_k,b_k)\cap(a_j,b_j)=\emptyset~\forall i\neq j \}.$$ In their book, Laws of Chaos: Invariant Measures and Dynamical Systems in One Dimension, Gora and Boyarsky claim in a problem that it is possible for  $$\sum_{k=1}^\infty V_{[a_k,b_k]}(f)<V_I(f).$$ I struggle to see how this is true, and believe I have a proof that  $$\sum_{k=1}^\infty V_{[a_k,b_k]}(f)=V_I(f).$$ Now this question is pretty much the same as  one, but I do not think the accepted answer there is actually correct, as the example given shows that we can have  $$V_{[a,c)}(f)+V_{[c,d]}(f)<V_I(f),$$ but the variation of a function over half open intervals is very different from that over closed intervals, so this does not actually address the question. In fact we know that we always have $$V_{[a,c]}(f)+V_{[c,d]}(f)=V_I(f).$$ My supposed proof for the countable case is a standard approximation argument showing inequalities both ways, but it is quite long to type out, and Boyarski and Gora are much wiser than me so my proof is most probably wrong. Thus before I go through the effort of typing it out I'd appreciate some input from the learned members here, because I might be being silly and missing an easy counterexample.  EDIT: On inspecting the fantastic answer by mathcounterexamples.net I realised that I misinterpreted the given counterexample in the linked post, and it is actually shows perfectly what fails in the countable case. Thus I will be flagging this post as a duplicate, as it adds nothing new.


Possible for client to edit geoJSON on server?

I am a webmapping newbie so pardon any misnomers I am probably making.  I have a geoJSON file that represents garbage cans as lines running along a street (i.e. the line is an aggregated representation of all the cans on that street, so if 1 can is 20 lbs and there are 3 cans on the street, the line feature on that street will have a weight attribute of 60 lbs).   These lines have four attributes: weight, time (seconds per picking up all cans on that street), number of cans on the street, and the route number that services them. These attributes appear in a div at the bottom of the screen when you click/select a given line:   Is it possible to allow the user/client to change the route attribute value in a manner that it changes the original geoJSON and then refresh the web page to see the new changes (lines are symbolized by route number)?


Finding integers $m,n$ such that $(m-n)^2=4mn/(m+n-1)$

Find all the integer numbers (m, n) which satisfy: $(m-n)^2=4mn/(m+n-1)$


How to combine arithmetic expansion and brace expansion?

Can peoples combine arithmetic expansion and brace expansion?  $ for i in {$((1 + 1))..5}; do echo $i; done; {2..5} $ echo "bash laughs at me"


How to get back up of my installed program in ubuntu

i have Ubuntu version 13 on my system now i want to install ubuntu 14. the problem is that i installed GEDIT and Aptana studio and some other software from ubuntu and installed on my device. the question is that should i have to download them again????


How to evaluate $ \int_{-\infty}^{+\infty} \frac{x\sin(x)}{x^2 +1} \,dx $

In order to evaluate the following integral: $$ \int_{-\infty}^{+\infty} \frac{x\sin(x)}{x^2 +1} \,dx $$ I transformed it into a complex integral $$ w = \int_{V_r} f(z) \,dz + \int_{V_l} f(z) \,dz \textit{, where f(z) =} \frac{ze^{iz}}{z^2 +1}$$ : My solution should be the imaginary part of $w$. I was no able to prove that $\int_{V_l} f(z) \,dz$ tends to $0$ as $R$ tends to $\infty$. Could somenone give me a hint? Thanks in advance


Using two fields to control display format on map in QGIS

I have a point shapefile with several numeric fields, among them FuelFlow and Slope. I have successfully applied colour to the various points according to the value of the FuelFlow field. Now I would like to control some other attribute of the map symbols (shape? size?) according to the value in the Slope field. Something like slope between 0 and 10 gets one display style, 10-20 gets a second style, 20-30 etc. I get the sense that this is possible in QGIS (using v 2.2.0 - Windows) according to some of the tools in the Style dialog, but I don't know where to start. Can someone point me in the right direction? I believe I saw one online posting about using a CASE statement in the style definition, but now 1) I can't find it in the UI and 2) I don't know how to construct the CASE statement.


How can i to change below function for case insensitive search all div elements(div[id*=music]) which has a link contains search_text;  function search(el){     var search_text = $(el).val();     //if(!search_text) return false;     var search_block = $('div.music_box');     search_block.children('div[id*=music]:hidden').show();     search_block.children('div[id*=music]').filter(':not(:has(a:contains('+search_text+')))').hide();     console.log(search_block.children('div[id*=music]')); }   jQuery v1.10.2


REVTeX automatically combines \email and \thanks macros into a single footnote, and uses the same footnote if multiple authors share the exact same set of macros.  Is there any way to force the \email and \thanks macros to have their own footnotes so that two authors can share the \thanks note?  e.g. I would like the author list to look like:     A. Author,a),b) B. Author,b) C. Author   a) Electronic address: a@example.com b) These two authors   contributed equally   The Review of Scientific Instruments  does this, however I cannot work out how to get this result in REVTeX.


Ball thrown faster than terminal velocity

I recently read about the property of terminal velocity for objects and I got a question when doing so. If from a very tall building I throw a ball faster than terminal velocity downwards, will the ball slow down, then continue with terminal velocity, or will it continue with the speed I threw it with?