My UK Visa was refused. Can I change the details about my circumstances in my next application?

I applied for UK visa and was rejected on 16th June on the grounds that I have not provided documents to verify my personal circumstances.  I'm planning to reapply. My question is when completing the new application form can I change figures like my monthly income after taxes must correct what I have done wrong last time?


In a long code of 600 lines I have one part of the code that calculates something weird.  idl = 0 print type(dl), dl idl = int(dl*10)+1 print idl   This returns:  <type 'float'> 0.1 1   This calculation is done in a definition in my code. This is obviously not the expected result. The weird thing is, when I copy the code above in a separate python file:  idl = 0 dl = 0.1 print type(dl), dl idl = int(dl*10)+1 print idl   I get:  <type 'float'> 0.1 2   What could be the origin of this problem? I've extracted these parts, to make the problem simple, but if you want I can give more information.


Removing element in ArrayList using INDEX causing java.util.ConcurrentModificationException

The following code is causing      java.util.ConcurrentModificationException   I am not sure how to solve the error please help !  ArrayList strList =  new ArrayList<String>(Arrays.asList(cmd.split(" ")));          if (strList.get(0).equals("LIST")) {          }          if (strList.get(0).equals("DEPEND")) {             strList.remove(0); // getting error at this point              cm.createComponent(strList);          }   Full Method The outer loop is not related to the List   public static void main(String[] args) throws IOException {         ComponentManager cm = new ComponentManager();      List<String> lines = Files.readAllLines(Paths.get("cmdList.txt"));     for (String cmd : lines) {         ArrayList strList =  new ArrayList<String>(Arrays.asList(cmd.split(" ")));          if (strList.get(0).equals("LIST")) {          }          if (strList.get(0).equals("DEPEND")) {             strList.remove(0);             cm.createComponent(strList);          }          if (strList.get(0).equals("INSTALL")) {          }          if (strList.get(0).equals("REMOVE")) {          }      }  }


Add event listener to items that don't exist on the page

I'm trying to add an event listener to items that don't exit yet. I will be adding the items dynamically, but I would like them to have event listener when they are added to the DOM. I have used the .on() function but this only works for items that are on the page when it loads and not for items added dynamically. The following is my code:  $(document).ready(function () {     var $add_button = $('#add-item')     var newItem;     var $incompleteTasks = $('#incomplete-tasks');      $('button.check').on("click", function () {          alert('Helloww');     });      $add_button.click(function () {          newItem = $('#new-task').val();          //create li element and assign it to variable         var li = $('

');         var label = $('');         var button = $('<button class="check">Check</button>');          //Use input value as the text for li item         label.text(newItem);           //append new item to incomplete tasks ul          $incompleteTasks.append(li);         li.append(label);         li.append(button);      });  });   I'm not sure where I'm going wrong here.   Thank you for the help.


What do I do when two squares are equally valid?

The following happened playing Minesweeper:   How do I figure out which square to click?


How can I exclude meshes or objects from being renderd

I use two planes to emit light.  How can I exclude them from being visible in the final render BUT still have their light?  Thanks, Armin


How and when is old-releases.ubuntu.com updated?

The old-releases.ubuntu.com mirror hosts the repositories for EOL Ubuntu releases. The  currently lists up to 11.10 (or 12.04.3 if you count point upgrades), but the  lists up to 13.04. Why the discrepancy? When will the main page be updated? When will the newest EOL release (13.10) be shifted here?


Can't install Skype from partner repository

I'm a new user to Ubuntu and Linux, and I'm trying to install Skype. The software manager is starting but then canceling without any report, I tried doing it through the terminal using:  echo "deb http://archive.canonical.com/ubuntu trusty partner" | sudo tee -a /etc/apt/sources.list.d/canonical_partner.list sudo apt-get update sudo apt-get install skype   And some other methods, but I always get the same error every time:  E: Unable to locate package skype   I checked the Canonical reps, and I really have no idea what am I doing wrong here?  I am using Ubuntu 16.04, and I just tried to follow various threads, but reached the same dead end.


Can electronics be damaged by undervolting it?

I was wondering if there are some particularly important mechanism by which one can break electronics, when undervolting it. Its pretty obvious that lots of electronics will not work properly if undervolted, but what about permanent damage? The question was motivated by repair work. I was wondering about what sorts of secondary effects one should look for when a damaged power supply was involved.  I imagine motors could be damaged if they stalled due to undervolting.  So what are specific mechanisms for permemenant damage due to undervolting (or better put undersupplying)? Are there even any?  To add to the question, what are components or simple circuits that fail when undersupplied?


Is there a way to disable the DHCP client in Raspbian Linux on a Rasperry Pi?

I have a Linux server (Rasperry Pi using Raspbian as OS) that should be using only static IP.   However I noticed that it also has got IP from DHCP server (The IP given out by DHCP is 192.168.111.2). According to network settings the server should be only using static IP (192.168.111.100).  The contents of /etc/network/interfaces:  auto lo iface lo inet loopback  auto eth0 iface eth0 inet static address 192.168.111.100 netmask 255.255.255.0 gateway 192.168.111.1 dns-nameservers ip1 ip2   Despite using static configuration I can SSH to the device also using the IP given by DHCP. Also it appears that ntpd is using the wrong IP as well as the correct one.  Output of Netstat:  udp        0      0 192.168.111.2:123       0.0.0.0:*                           2774/ntpd udp        0      0 192.168.111.100:123     0.0.0.0:*                           2774/ntpd   According to ifconfig the IP 192.168.111.2 is not used:  eth0      Link encap:Ethernet  HWaddr b8:27:eb:be:18:1c           inet addr:192.168.111.100  Bcast:192.168.111.255  Mask:255.255.255.0           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:138099 errors:0 dropped:0 overruns:0 frame:0           TX packets:81146 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:95954711 (91.5 MiB)  TX bytes:27076870 (25.8 MiB)   ps -ef | grep dhcp shows that I have a DHCP daemon running:  root      2000     1  0 Oct07 ?        00:00:06 /sbin/dhcpcd   How do I disable the DHCP daemon from starting and make sure that my server uses only the static?


Does wax on citrus fruit make the zest unsafe to eat or compromise its flavor?

A number of  specify  for zesting. Unwaxed citrus fruit are not widely available here in Sweden, so I have to make do by attempting to remove the wax before zesting. Recently I have had , and now I wonder whether it is even worth the trouble.  Citrus fruit have a natural wax coating that is washed off along with orchard grime at the packing house. A new protective coating is applied before packing, and it is this that I am concerned about.  I have two concerns. First there is a food safety issue. Reading the  and  food additive regulations, I see that some substances are permitted for citrus and fruit such as apples and pears where the peel is normally eaten. Other substances are only to be used on citrus or other fruit where the peel is not normally ingested. On the face of it this seems to suggest that the consumption of citrus peel has not been taken into account. I understand that this may not be the case, but since neither regulatory body clarify the issue (at least not in the linked documents), I feel my concern is warranted.  My second concern is regarding whether the taste of the peel is compromised by the coating. This is a tricky question for me to answer since I have no access to untreated citrus. There is the additional difficulty that there are so many substances permitted, and the supermarkets here give no indication of what is used. Presumably some types of coating taste better and others worse. I include this part of question with the faint hope that there may be someone reading who is not subject to the same limitations.  Is it worth bothering even trying to wash the wax of citrus?


Is it acceptable to insult god in a user profile?

Like always I hang around in Stack Overflow's chatrooms. Today, someone posted a link to his new "reloaded" user profile.  Along the lines I read in Arabic "god is a pig". So I asked him to remove it:     Me: I have a lot of respect towards you because of your knowledge but what you wrote there in Arabic is offensive. Could you remove it please?   OP: if it were in English, would it be equally offensive?   I will write it in Dutch because you ask it so kindly.   Me: yeah, I mean what's your goal? You're just seeding hatred   OP: It is an experiment.   After that, the user changed it to Dutch.  My question is: are such statements acceptable by Stack Exchange's standards? If not, should I flag one of his posts like stated ? If yes, could you state why?  My answers to possible questions:   This happened on SO, why don't you post it on MSO?   This happened on SO but I think it's applicable to all SE sites.  Why didn't you link the user or the chat conversation?   I want the user to remain anonymous unless he or she chooses to reveal him/her self. I will give the user a link to this question  Why do you care?   I find it offensive, not only to my religion but to any religion that believes in god. I posted this question to know what you guys and girls think about this. I live by the rules, so if it's acceptable by SE then so be it and I won't bother you again.  If you don't like it then move on.   I know that this is not a mosque/church/temple and that swearing  to a certain degree. But I don't see the point in insulting god, a religion or a race in a public profile. More over, it's not even built on arguments.


Evaluate the integral of $\int_0^\infty \frac{k}{(1+x)^4} \, dx$

Evaluating the integral:  $$u=(1+x), \qquad du=1\,dx$$  $$\int_0^\infty \frac k {\frac{u^{-4+1}}{-4+1}} \, du \to \left. \frac{-3k}{(1+x)^{-3}} \right|_0^\infty$$  but the answer given has:  $$\left.\frac{-1}{3(1+x)^3} \right|_0^\infty$$ What did I do wrong?


How to describe someone who speaks a language "as if it is his mother tongue" in a CV?

Let's say English is not my mother tongue, but I claim in my CV that my English level is "as if" it was my mother tongue? Is natively the word for that? As in:  Languages:  Hebrew: mother-tongue English: natively   P.S. It's quite paradoxical and funny, asking how to say in English "my level of English is like a native speaker"; if my level was really like a native English speaker, I wouldn't have needed to ask.


How to find whether two times are over lapping or not using SQL?

I have two sets of times of which, we need to check some overlapping occurs or not. For eg. (BeginTime_1, EndTime_1) and (BeginTime_2, EndTime_2) are the two sets of timings. I need to find whether these timings overlap or not. Is it possible to do using SQL. I have achieved it using C#, and now I need to do it using SQL. Is there any builtin function for achieving this? Any help will be highly appreciated. (I'm considering only time in hh:mm:ss)


Need help understanding "getbits()" method in Chapter 2 of K&R C

In chapter 2, the section on bitwise operators (section 2.9), I'm having trouble understanding how one of the sample methods works.  Here's the method provided:  unsigned int getbits(unsigned int x, int p, int n) {     return (x >> (p + 1 - n)) & ~(~0 << n); }   The idea is that, for the given number x, it will return the n bits starting at position p, counting from the right (with the farthest right bit being position 0). Given the following main() method:  int main(void) {     int x = 0xF994, p = 4, n = 3;     int z = getbits(x, p, n);     printf("getbits(%u (%x), %d, %d) = %u (%X)\n", x, x, p, n, z, z);      return 0; }   The output is:     getbits(63892 (f994), 4, 3) = 5 (5)   I get portions of this, but am having trouble with the "big picture," mostly because of the bits (no pun intended) that I don't understand.  The part I'm specifically having issues with is the complements piece: ~(~0 << n). I think I get the first part, dealing with x; it's this part (and then the mask) that I'm struggling with -- and how it all comes together to actually retrieve those bits. (Which I've verified it is doing, both with code and checking my results using calc.exe -- thank God it has a binary view!)  Any help?


When I try to get latest windows updates, windows (7 home) tells me that it needs to update the windows update. And that the Update window needs to be restarted in order to do that. After that restart I get error "WindowsUpdate 8007006D". Googlin that code doesnt' give me any more information.  This is my windows update log:  2012-06-30  09:57:36:212    4956    2e8 Report  REPORT EVENT: {102103FB-11A6-4FF5-B910-75D5B104956B}    2012-06-30 09:57:30:865+0300    1   182 101 {61CA813A-7585-442E-A66B-B0D15CE6BDC0}  1   8007006d    SelfUpdate  Failure Content Install Installation Failure: Windows failed to install the following update with error 0x8007006d: Windows Update Setup Handler. 2012-06-30  09:57:36:231    4956    2e8 Report  CWERReporter::HandleEvents - WER report upload completed with status 0x8 2012-06-30  09:57:36:231    4956    2e8 Report  WER Report sent: 7.5.7601.17514 0x8007006d 61CA813A-7585-442E-A66B-B0D15CE6BDC0 Install 101 Unmanaged


Character encoding for music symbols in mySQL

I am trying to store the characters ♯ and ♭ in a mySQL database, but ♯ gets stored as Aâ™¯ and ♭ as Bâ™  In the HTML, I have used ♯ and &#9839; and both render fine in the browser, but neither is being stored correctly.  I have tried UTF-8 and UTF-16 character sets for both the PHP page and for the field where the values are being stored and I get the same result.  I'm not very familiar with character sets, so maybe I should be using something other that UTF-8 or -16 or maybe I'm missing something else entirely?


What creates the "soap opera" look? Is it the same thing as HFR movies?

Soap operas have a distinctive look to them in terms of motion and feel. It's a bit difficult to describe. What exactly creates this look?   I have heard it compared to  films such as the 48 fps version of The Hobbit trilogy, with some describing it specifically as having a "soap opera" look to them. Is it the same thing that creates this appearance in both soap operas and HFR movies?


Can we show that the decimal expansion of $\pi$ doesn't occur in the decimal expansion of the Champernowne constant?

This question was inspired by an answer and some comments to .   Recall that the Champernowne constant is obtained by concatenating all natural numbers written in base 10 and then put $0.$ in front, that is, $$C_{10}=0.123456789101112131415161718192021222324\cdots$$  The question is does the decimal expansion of $\pi$ occur as a tail of this number? By which I mean is there some $n$ such that $$\pi=C_{10}\cdot10^{n+1}-10\cdot\lfloor C_{10}\cdot10^n\rfloor$$  Now it is obvious that any finite initial string of $\pi$ occurs in $C_{10}$. Not only that, it also occurs infinitely often (that's just because any finite string of numbers occurs infinitely often in $C_{10}$).  Hagen von Eitzen (who's answer inspired this question) also notes that proving that $\pi$ does occur as the tail of $C_{10}$ would imply that $\pi$ is base-$10$-normal which is an open question see e.g. , so it is very unlikely we can prove that. He also notes "that if such a position exists [one where $C_{10}$ starts giving the digits of $\pi$] (somewhere in the middle of an $n$-digit integer, say) then the first $10^{n/2}n$ or so digits of $\pi$ turn out nearly regular and this should give rise to an unusually good rational approximation."  I tried to consider if there might be some relationship with relative algebraicity, but even in that direction little seems to be known since it is unknown even whether $\pi$ is algebraic over $e$.   In conclusion it seems intuitively extremely unlikely that $\pi$ would occur in $C_{10}$, but I can't think of a proof that it doesn't. A good answer would also be a reduction of this problem to some known open problem (note that we need to reduce that $\pi$ is not the tail of $C_{10}$).  PS If someone can come up with better tags please have a go at it.


What causes ExecuteError: ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute) on shapefile?

My script runs perfectly for feature classes, but not shapefiles. It crashes at the point of selection, provided there is a query.  gp.Workspace = "C:/someworkspace" fc = "featureclass.shp" query = "[SOME_TEXT_FIELD] = \"666\"" gp.MakeFeatureLayer(fc, "flyr") gp.SelectLayerByAttribute("flyr", "NEW_SELECTION", query)   returns      ExecuteError: ERROR 000358: Invalid expression Failed to execute   (SelectLayerByAttribute).   Tested a similar simple example in the Python Shell. This runs fine with a geodatabase and feature class. I assume there is some sort of special treatment for shapefiles I'm not aware of, but arcgis desktop help does not specify anything.


How to remove specified character from a string using php

I have a string (994)773-2296 or (+919)947-732296.   I want to remove ( , ) , - and + from the above numbers to get the exact phone numbers.  How can I achieve this. Is there any method in php to do so?


I am a novice. I accidentally ran a command  sudo chown www-data:www-data -R /  Now mysql is not working.   Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)  Please help.


How far can something travel in a straight line?

Suppose you have an object some distance from you and moving at a velocity different to the Hubble velocity you'd expect at that point. How does the motion of this object change with time? Does it travel in a straight line (i.e. geodesic), and if you wait long enough how far will it get?


In my users table I need to calculate count of users by username length.  For example:   200  users has name 1 char length 500  users has name 2 chars length 1500 users has name 3 chars length ...   I created MSSQL query:  SELECT    TOP 1000   LEN(nick) as 'title',   Count(*) FROM [userstable] WITH(NOLOCK) GROUP BY title   After I run it I see next problem:     column 'userstable.Nick' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.   Could someone explain why?


Help identify the title of a story about the back side of moon being missing

In his latest book 'The crash of 2016' author Thom Hartmann describes a story he once read in 'Amazing Stories'.   He doesn't mention a title or the author. Here is how he writes about it:     I was around ten years old, and a total science fiction junkie.   Amazing Stories—a pulp magazine of science fiction short stories,   commentary, and science news—arrived every month, and that meant that   on that day all homework and play were forgotten. These were some of   the most brilliant stories, written for a penny or so a word by people   such as Robert Silverberg, Jack Vance, Poul Anderson, and Frank   Herbert, who would go on to become the biggest names in the field of   Fantasy and Sci-Fi.      And one particular story haunted me for years. Eight years later, when   the first men landed on the Moon, that story was brought back to me as   if I’d read it the day before.      In the story, a group of astronauts are finally, for the first time,   going to blast off from Earth and circle the Moon. It had never been   done before, and because our moon doesn’t itself rotate on its axis   like we do relative to the Sun, but instead circles us with a single   side always facing us, nobody had ever before seen the “dark back side   of the Moon.” These men would be the first in human history to do so.      The rocket roared to life from the launchpad, the astronauts chatting   with Mission Control as they hurtled toward the Moon. When they got   close enough, they let the Moon’s light gravity grab their space   capsule and, with a few deft rocket thrusts, they put themselves into   orbit around it. They were unbelievably excited, as were the NASA   folks on the ground, chattering back and forth about what they hoped   and expected to see.      Was the dark side of the Moon identical to the front, or was it more   mountainous? (We now know it is the latter.) Might there be frozen   water there, since it has a different exposure to the Sun? Might there   even be wreckage there from ancient astronauts, or something else   exotic like that? Anything was possible!      As the astronauts began their turn around to the back side of the   Moon, Mission Control told them they’d lose communication because the   giant mass of the Moon would block their signals, so they prepared for   radio silence. But as they made the turn, they could still hear   Mission Control.      What they saw as they glimpsed behind the face of the Moon we see on   full-moon nights brought an audible gasp from all of them.      One picked up the microphone to radio the ground and tell the horrible   story. Another knocked the microphone from his hand with a warning   gesture. They continued to circle around the back side of the Moon,   and the view became even clearer, ever more undeniable.      “Should we report it?” A debate—virtually a fistfight—broke out in the   capsule. What would it mean for earthlings? What if nobody believed   them? What if they were quarantined upon returning and imprisoned or   sent to a mental hospital? I remember what they saw that so horrified   the astronauts.      The back side of the Moon was missing. They were looking into the   concave half ball of the front side of the Moon, which was made of   canvas stretched over an elaborate superstructure of two-by-fours,   nailed together like the scaffolds that held up roller coasters from   that era.   I would like to know the name of this story


Why is the CS0120 error showing up? I cant figure it out

namespace LEARNING {     public class Human     {         public string nameOne;         public string nameTwo;         public int ageOne;         public bool hasagetwo;         public int ageTwo;         public bool isalive;          public void Info()         {             Console.WriteLine("Name =" + nameOne + "," + nameTwo);         }     }     class Program         {             static void Main(string[] args)             {              /* Class Stuff */              Human humanOne = new Human();              Human.nameOne = "Adrian";             Human.hasagetwo = true;             Console.WriteLine(humanOne.nameOne);              Human.Info();              /* Basic Things Down There */             const string stringOne = "String";                 const string notes = "The Fact that String One has the Value of 'String One' is :";                  Console.WriteLine(notes);                  Console.WriteLine(stringOne == "StringOne");                  int a = 10;                 int b = 3;                 int c = 11;                  Console.WriteLine(++a);                 Console.WriteLine(a - b);                 Console.WriteLine(a == c);                 Console.WriteLine(b != a);                  Console.WriteLine(a = c);                  Console.WriteLine(a != c && a == 10);                 Console.WriteLine(b != 6 || a == c);                  Console.WriteLine(!(a == b));                  /* Classes Down There */                 Human Adrian = new Human();             }          }  }      CS0120 C# An object reference is required for the non-static field, method, or property


Can I answer my own questions, even if I knew the answer before asking?

I might want to answer my own question because:  I arrived at a solution before there were any other correct answers or I like mine better, can I still answer my own question?  I have a folder with lists of code snippets for things I always forget or get wrong, such as regular expressions for processing XML, common WinForms control idioms, etc. Is it considered poor etiquette for Stack Overflow to ask a question I already know the answer to, and then self answer, just so it gets recorded on the website?   Related:          For more information, see "" in the .


Does someone know if the following is true:  Let $\mathbb{X}$ be some arbitrary Banach space. $\{x_k \}_{k=1}^{\infty} \in \mathbb{X}$ is a sequence chosen from $\mathbb{X}$.  Now, if the series  $$\sum_{k=1}^\infty \|x_k\|_X$$ converges, would the "more generic" series $$\sum_{k=1}^\infty x_k$$  also converge?  If yes, could you please give the proof (or just mark the proof steps) ?  Thank you.


Can we prove that matrix multiplication by its inverse is commutative?

We know that $AA^{-1} = I$ and $A^{-1}A = I$, but is there a proof for the commutative property here? Or is this just the definition of invertibility?


Elementary approach to proving that a group of order 9 is Abelian

The trick here is to provide an elementary solution; I'll explain what I mean.  Prove that a group of order 9 must be Abelian.  The standard approach is to use the class equation to show that any $p$-group has a non-trivial center.  From that, it's easy to show that any group of order $p^2$ is Abelian.  If not, pick an element $a$ not in the center and look at its centralizer.  This includes the center and $a$, so it has at least $p+1$ elements; hence it's the whole group by Lagrange; hence $a$ is in the center, a contradiction.  Okay, but the problem is given as an exercise very early in Herstein, before any of this is discussed.  Other than Lagrange and some easy consequences, all we really have to work with is the fundamental homomorphism theorem; in fact, the exercise is included in the set at the end of the section introducing the theorem.  So what I'm looking for is an approach that uses only very basic group properties and, especially, one that applies the homomorphism theorem.


I have found this question in a book, but I don't know how to use that $\left\Vert P\right\Vert =1$.  Question: If $P\in\mathcal{L}(H)$ is a projection and $\left\Vert P\right\Vert =1$, show that $P$ is an orthogonal projection.  Where $\mathcal{L}(H)$ is the set of linear bounded operators on a Hilbert space $H$.  Thanks.


What are the differences between the manga and the anime adaptation of Erased and where does the anime diverge?

As stated in the title, I want to know what the major differences between the manga and the anime adaptation are. From what I've read online, the anime adaptation diverged from the manga. So where does this diversion occur? Does it start from a particular chapter of the manga or has it been taking its own course gradually from the very beginning?


Account Id field not available in 'Standard Fields' list of Contacts

I have a requirement where we need to prevent Duplicate Contacts. The criteria should be based on First Name, last Name and Account id. I am trying to implement 'Duplicate management' functionality.  Account is related to Contact on a Look up relationship. Account Name is available in Standard Fields list and we enter it in UI. But Account Id is not available in Standard Field list. So it's not available to pick when I create 'Duplicate Rules'. But it's available to pick in 'Validation Rules', I am not sure how. Does anyone has any idea on this?


How calculate the difference of hours between two dates in PHP?

This may sound very unlikely to the other question.  I have two hour range.  $start = 18:00; $end = 2:00;  the result 8 hours.   sample two.  $start = 17:30; $end = 2:00;   result 7.5 Hours.   How can I get this on PHP code.


QGIS - create linking lines or arrows to points when I move lables manually

When I move labels manually in QGIS by using the data-defined placements X and Y fields, I wonder if a line or arrow can be inserted automatically which will link the new label position to the point in question?


In a multi-threaded C++ app, do I need a mutex to protect a simple boolean?

I have a multi-threaded C++ app which does 3D rendering with the OpenSceneGraph library. I'm planning to kick off OSG's render loop as a separate thread using boost::threads, passing a data structure containing shared state in to the thread. I'm trying to avoid anything too heavyweight (like mutexes) for synchronization, as the render loop needs to be pretty tight, and OSG itself tries to avoid having to ever lock. Most of the shared state is set before the thread is started, and never changed. I do have some data that does need to be changed, which I am planning to double-buffer. However, I have a simple boolean for signaling the thread to suspend rendering, and later resume rendering, and another to kill it. In both cases the app thread sets the bool, and the render thread only reads it. Do I need to synchronize access to these bools? As far as I can tell, the worse thing that could happen is the the render loop continues on for an extra frame before suspending or quitting.


Is there a way to animate undead creatures beyond existing spells' restrictions, such as size?

In Dungeons and Dragons 3rd edition they introduced skeletons with all kinds of sizes such as Tiny, Small, Medium, Large, Huge, Gargantuan, and Colossal.   As a necromancer, it would be really entertaining to have undead of all kinds and sizes. However, Dungeons and Dragons 5th Edition limits the abilities of a necromancer, as the spell animate dead only allows the caster to reanimate Small and Medium humanoid creatures. Though it's understandable that WOTC made it this way as a way of balancing to prevent the creation of overpowered undead armies, it would be interesting for some sort of way of animating a creature larger than medium.   Personally, I like the idea of having a Gargantuan humanoid skeleton; however, I would not be sure how to apply statistics to an undead or create a proper way of balancing.  There is a section in DMG p. 282 for skeleton and zombie templates, however, the largest creature that exists with a humanoid body is a hill giant categorized as huge. Even then the challenge rating is 5 making thinking of a way of balancing difficult.  Even beyond my desires, I'm sure there are many other necromancer-loving individuals who would desire to animate and control a minotaur skeleton, or any other undead such as beasts or monstrosities.   Is there a way (even house or homebrew rules) of animating undead beyond these restrictions?


If a JButton is clicked change current frame, how can i do it?

I´m a beginner in Java or Programming in general, and i´m trying to make a program that works as a calculator to things like Sigma notation, Pythagoras theorem...  But as a "noob" i am at programming, i need help.  Well, i have a menu to choose the kind of "calculator" you want, and i have some JButtons. How can i make so that when one of those buttons is clicked, change what is showing in the frame. Like if button1 is clicked, in the frame it would appear a different menu? i don´t know if i made myself clear, but i hope you could help me.


Query what Linux/Unix distribution you're using (from the command-line)

When using an unfamiliar Linux/BSD/Unix computer (e.g. by SSH) from the command line, how can you tell what distribution (and what version of that distribution) you're using?  Some options I've tried:   lsb_release --all: doesn't exist on OpenSuSE 11.3; works on Debian squeeze and Ubuntu 10.10. uname --all: doesn't give distro information on SuSE and Debian; works in Ubuntu. cat /etc/apt/sources.list in you can see which distribution's servers the machine connects to for updates. Obviously, only works for Debian-based distributions. Won't work if the computer has been configured to use a custom repository server.   Unfortunately none of these seem to work across many distributions. Is there a simple command to check?


Dollar cost averaging - Should I still do it if I have a large pile of cash now?

I currently have a large pile of cash savings ($240,000) which I really should have been investing all this time, but the past is past and no point dwelling on it.  I am currently 38 years old (2 kids. Wife who is also a high earner - $100,000), with a high salary ($150,000). I have read "The Intelligent Investor" and am really sold on dollar cost averaging as a strategy, using the index funds offered by Vanguard.  My current dilemma is what to do with the cash I already have. My current plan is to still follow the dollar cost averaging and slowly move it into vanguard over a period of 4 years (~$5000 per month). While leaving the remaining parts of the cash in term deposits. So $50,000 in a 3 year term deposit at 3%, $50,000 in a 2 year term deposit at 2.8% etc.  But in someways it feels overly conservative. Should I just move all the money now? Or perhaps in a shorter time frame (3 years? 2 years? 1 year?).  There are a few other questions on the site similar to mine, but they are from 2013/2014 etc. Given that currently the stock market is at a high and there is a lot of economic uncertainty on the horizon, putting everything in the stock/bond market at once now seems like a risky move. And it seems to violate the principle of dollar cost averaging. Or am I violating dollar cost averaging by trying to "time the market" by looking at it's current value?  Reading this section  seems to indicate that I should just invest everything now. But the first paragraph also seems to suggest giving more weight to that advice if the market was trending upwards (Which I am not certain the current market is/will be for long).  PS: My current investment horizon is long. Basically retirement, about 20 years from now.


I am having trouble and was wondering if someone could go over the steps slowly to show that:  $$2n + 3 < 2^n \ \text{for} \ n \geq 4$$  Any help would be amazing!


Do Indian citizens need transit visa for Thailand if going through DMK?

I am traveling from Chennai to Don Mueang International Airport, Bangkok, Thailand, and from there to Mandalay, Myanmar. In Bangkok, the layover time is 8 hours. Do I require transit visa?


How do I calculate the elapsed time of an event in java?

What's a simple/easy way to access the system clock using Java, so that I can calculate the elapsed time of an event?


I have some machines that have several network interfaces, and one or more IP addresses per interfaces. These IP addresses might or might not be in the same subnet. For example, the outcome of ip a might look like that:   1: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000                                                                                link/ether 11:11:11:11:11:11 brd ff:ff:ff:ff:ff:ff                                                                                inet 10.0.1.2/24 brd 10.0.1.255 scope global eno1                                                                                valid_lft forever preferred_lft forever                                                                                inet 10.12.1.3/24 brd 10.12.1.255 scope global secondary eno1:0                                                                                valid_lft forever preferred_lft forever                                                                                2: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000                                                                                link/ether 22:22:22:22:22:22 brd ff:ff:ff:ff:ff:ff                                                                                inet 10.0.1.4/24 brd 10.0.1.255 scope global eno2                                                                                valid_lft forever preferred_lft forever                                                                                inet 192.168.1.3/24 brd 192.168.1.255 scope global secondary eno2:0                                                                                valid_lft forever preferred_lft forever    2: eno3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000                                                                                link/ether 33:33:33:33:33:33 brd ff:ff:ff:ff:ff:ff                                                                                inet 172.23.1.2/24 brd 172.23.1.255 scope global eno3                                                                                valid_lft forever preferred_lft forever                                 What I want, is that response to traffic coming into one interface goes out through the same interface; and also be able to tell applications to send traffic through one specific interface, regardless of the destination.  Right now it's not the case; for example, if I ping 10.0.1.2 from another machine in the 192.168.1.0/24 network, the response will be routed through eno2, and that causes all sorts of problems.   How do I do that? Can I set up several routing tables? Can I tag incoming packets with the interface name or something?


Stopping script processing without shutting down QGIS

I'm looking for a way to abort a script execution if a sql query returns some results. I've found a few solutions on the forum but all of them lead to shutting down QGIS (thing I precisely want to avoid). This question has already been discussed at  and the conclusion was that it was not possible yet. 7 years later, I'm wondering if this has eventually been made possible? My script: conn = psycopg2.connect(db_key)  cur = conn.cursor()  try:     cur.execute(""" --  SELECT * FROM a.table1 WHERE ps_code like 'test_erreur' """)  except:     print ("Can't run this SQL query")  rows = cur.fetchall()  if rows is None:      print("No error found") if len(rows) > 0:     iface.messageBar().pushMessage("Erreur", "Script processing had to be stopped because errors has been detected", level=Qgis.Critical, duration=30)     for row in rows:         print (row)     sys.exit()


one-to-one holomorphic map of $\mathbb{C}$ onto itself must be of the form $az+b$?

If $h: \mathbb{C} \rightarrow \mathbb{C}$ is a one-to-one holomorphic map, then $h(z)=az+b$,  where $a,b\in\mathbb{C}$.  How to prove this argument?


I followed  to install ftp server.  And also added ftp user(ftpuser) and also added ftp password(1234567).  But when I am using this password in any wordpress site or any ftp software such as FileZilla it is showing 530 Login incorrect  vsftpd file  listen=YES anonymous_enable=NO write_enable=YES local_enable=YES dirmessage_enable=YES use_localtime=YES connect_from_port_20=YES ftpd_banner=Welcome to blah FTP service. secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key


The limit in question is  $$\lim_{(x,y,z)\to(0,0,0)}\frac{xy+yz^2+xz^2}{x^2+y^2+z^4}$$  I set $z=0$ and converted this to polar coordinates:  $$\lim_{r\to0}\frac{r^2\cos \theta \sin \theta}{r^2\cos^2 \theta +r^2\sin^2 \theta}$$  This can be reduced to $$\lim_{r\to0}\cos \theta \sin \theta$$  if I did everything properly. Does this mean that the limit on the origin doesn't exist? Plugging different values of $\theta$ in the limit returns different values, but I'm not entirely sure if this is correct. I know there are easier ways to do this, and several of them are already on MSE, but I have a feeling a trick like this (if it is correct) might be useful for some other more complicated limit.


I thought you were one of those people who like listening to this kind of music.  I thought you were one of those people who liked listening to this kind of music.  Are both the sentences grammatically correct, and do they mean the same thing?


I know what centrifugal force is, but how does it work? Why are things forced to the outside?


Not able to see links to chat, logout, or privileges

Today I open my SO account like I always do. But the UI of menus has changed. I am not able to see the chat tab, the logout link or the privileges link. Are they missing or moved somewhere else?  Changed UI:


What is a qualitative description of energy?

In elementary physics courses one is taught that energy is a measure of an object's ability to do work (this in itself seems a little flaky as how does one then define exactly what "work" is, other than stating that when a force acting on an system causes a displacement of that system, then the force is said to have done work on the system, or resorting to a tautological statement that describes it in terms of energy?!). Then in more advanced courses this description usually becomes more abstract in as such that energy is a conserved quantity attributed to a physical system, or an emergent quantity as a natural consequence of time translation invariance of a physical system (via Noether's theorem).  My question is, though, what exactly is energy? Is it possible to give a qualitative description of what it is a measure of?   I have read through the answers given in  and although they are somewhat useful, I feel that they don't really answer my question in terms of whether we can give a qualitative statement of what energy is, by this I mean, for example, velocity is a measure of the rate of change in position of an object per unit of time, is there a similar statement that can be ascribed to energy (or momentum for that matter)?


How to call articles, online courses, educational videos with one phrase?

I want to write a sentence "You can put any ... on our platform". ... is a phrase that would mean articles, online courses, educational videos, etc.  1) What would be the appropriate phrase?  2.1) Is "learning materials" too narrow for the intended meaning? 2.2) Is "educational content" too formal?


I got stuck in solving a question of power series in complex analysis in Conway's exercise. Which is as follows $:$  Find the radius of convergence of the power series $:$ $$\sum_{n=1}^{\infty} \frac {(-1)^n} {n} z^{n(n+1)}.$$ What happens at the boundary of the disk of convergence?  I found that the radius of convergence to be $1$ and hence the disk of convergence is $|z|=1$. Now I found at $z=1,-1$ the series is convergent by Leibnitz test. Now how can I check the point of convergence (if any) in the disk of convergence other than $1$ and $-1$. I tried with Dirchilet's test. But I couldn't actually figure out how is $$\sum_{k=1}^{n} z^{k(k+1)}$$ look like? Is it bounded for arbitrary $n$ for all $z$ on $\partial B(0;1)$ except at $1$ and $-1$? Please give me some suggestions. Thank you in advance.


Are we close to a pure DC (or hybrid) household?

This is a philosophical question. Over the last few years, many of the household devices, particularly those that are more mobile and etc are DC devices. Are we at some point where a DC household may become a possibility and Edisons dream might come true??  The array of DC devices    Internet stuff - routers, modems Most complex computer electronics - Desktops, laptops, NAS, phones, tablets, gaming consoles, etc Lighting - LED More that I cant think of or perhaps know which also convert AC -> DC   Problems with AC     Each device needs its own power supply ( AC-> DC power brick). This is a) Unpleasant to look at and deal with, and b) a costly point of failure.  Each power brick may or may not be optimized, as far as power conversion goes.   Alternative - A central (or a few ) high capacity power adapter which converts the AC into a DC power grid for the house which can then be tapped directly by the various devices. This eliminates the need for the power brick, and hopefully the central power adapter is of state of the art, and can be upgraded seperately from the devices, as needed.  Need standardization of:   Device voltage. Currently devices use 5/ 9 / 12 or others I may not be aware of, for this idea to work they need to work with one particular one, unless switching between voltages is cheap enough, or multiple DC lines are provided. Power socket input. Each device appears to have its own input socket type, this should standardize if the power supply cable should be comoditized, perhaps USB - C will play a part here.


Distribution of scalar products of two random unit vectors in $D$ dimensions

If $\mathbf{x}$ and $\mathbf{y}$ are two independent random unit vectors in $\mathbb{R}^D$ (uniformly distributed on a unit sphere), what is the distribution of their scalar product (dot product) $\mathbf x \cdot \mathbf y$? I guess as $D$ grows the distribution quickly (?) becomes normal with zero mean and variance decreasing in higher dimensions $$\lim_{D\to\infty}\sigma^2(D) \to 0,$$ but is there an explicit formula for $\sigma^2(D)$? Update I ran some quick simulations. First, generating 10000 pairs of random unit vectors for $D=1000$ it is easy to see that the distribution of their dot products is perfectly Gaussian (in fact it is quite Gaussian already for $D=100$), see the subplot on the left. Second, for each $D$ ranging from 1 to 10000 (with increasing steps) I generated 1000 pairs and computed the variance. Log-log plot is shown on the right, and it is clear that the formula is very well approximated by $1/D$. Note that for $D=1$ and $D=2$ this formula even gives exact results (but I am not sure what happens later).


I'm trying to install Android Studio but I found this error. Can someone help me?  If I write on terminal  sudo apt-get install android-studio  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package android-studio


I have never seen this problem before unfortunately, until I came across in a past paper.     Prove that a finite set has exactly one Hausdorff topology.   My approach was first to actually assume that there are two distinct topologies $\tau_1,\tau_2$ such that $(X,\tau_1),(X,\tau_2)$ are Hausdorff topologies. Then my aim is to somehow show that elements of each topologies are exactly the same for it to be Hausdorff but I am already stuck here and I don't have any other ideas to tackle this.  Does anyone have a solution to this?


execute a shell script when USB is connected

I am working on an application which deals with all kinds of USB storage devices(such as taking backup, updating DataLogFile etc)   My problem is :  I want to write a shell script which is stored in this USB drive(As usb is at center of my project so USB is going to be same but PC's will change) AND this script should be executed as soon as the USB drive is connected to my Linux system.I will not need any kind of "root" or "sudo" permissions for other tasks which I am going to do in this shell script.


Decades ago I read a short story about a scientist who had a theory that crocodiles were dragons, but stuck in the pre-flight, pre-flame stage.  He experimented, and finally produced a method of unblocking the croc's developmental process - whereupon the world was plagued with flying, flaming crocodiles.


Why is maximizing expected value always rational according to Pascal?

In the modern version of Pascal's wager argument, we assume an infinite value to ending up in heaven, and hence an infinite expected value for choosing to believe in god.  I do not understand why this should be the case. In general, it is a bad idea to place a bet on a highly unlikely option even if the rewards are great.   For example, if there is a lottery that will give a quadrillion dollars to one in quadrillion people and the cost of a lottery ticket is half a dollar (for a net expected value of 50 cents), you might as well not apply and save 50 cents because this event is so unlikely it might as well be impossible.  Indeed, it is only optimal to choose paths which maximize expected value if you have a large number of trials (a quadrillion in the lottery case). In Pascal's case there is only one trial in your hand.   Why should it be the case that we should still choose to maximize expected value (even though it is infinite)?


Measuring the maximum resident set size of a Java program

I need to compare the memory consumption of the same algorithms when executed in C, C++ and Java. After doing some reading I figured out that measuring maximum resident set size is the best indicator of memory consumption. For C/C++ I am able to use getrusage() to get the data, but for Java I am not able to find any equivalent.


How should a Software Tester deal with missed Defects/bugs in release

I work as a QA/test engineer in a small software company. It is a web based product. I was assigned a few projects by my manager. I mostly do functional/black-box testing. Before the release, I tested many good scenarios and found quite a few defects in the code. Most of them got fixed. I did my analysis and gave important information to the stakeholders. I had a good test strategy at that time. Now, a client found a lot of bugs and the client is disappointed with testing.   So how to improve my testing and cover all test cases?  My manager and the stakeholders don't trust my work as a tester, as how dare I say that it PASS the QA the first time. They think that I'm careless, not worthy of working, and risky.


Can we have a significant intercept even if the p-value is grater than alpha?

Good Morning,  I have a scientific article to discuss and present in class, the article is about the positif benefit of the standard ISO 9001 on medium and large companies. By doing a multiple regression analysis they have the table below:   For the intercept of all the variable (except the last one) they have a p-value greater than alpha, so we should reject the null hypothesis thus the model should not have an intercept,  But in scientific article they put the models as follow and add the intercept in each one even if the p-value is greater than alpha.    Can we accept the intercept even if it p-value is greater than alpha?  Thank you very much for you help


Can anybody shortly describe solutions to start develop for iPhone on PC?


Question is:  Let $n$ represent a positive integer.  Describe the largest set of values $n$ for which you think that $2^n < n!$  I'm not sure I get this question. For $n > 3$, it seems like $2^n$ is always less than $n!$ So how would I prove this description correct? Would I use principle of simple induction?  Thank you for your help.


Editing duplicate banner edited into the text of the question

> **Possible Duplicate:**   > [Possible to remove the link to duplicate question?](https://meta.stackexchange.com/questions/50336/possible-to-remove-the-link-to-duplicate-question)    <!-- End of automatically inserted text -->  Some  have this text at the top of the Markdown. I read a bit on the history, and Shog announced this behavior stopped with changes to the system in :  [R]ather than editing in the banner, it's generated as-needed and displayed separately above the question  I'm not able to find much recent information about this, so I'm just wondering what happens if I remove the banner. Does it make a "real" duplicate banner appear? Will it still be closed as a duplicate? Should I remove it or is there some benefit to keeping it there?


Append same text to many files using cat or echo?

How can I write the same content to many text files by using cat or echo in only one command?  For example I want to write "hello" to file1 and file2. I tried:   echo "hello" >> file1 file2   but it didn't work. How can I do it?


What is the easiest way for me to download all my questions+answers across all Stack Exchange sites?

How do I download all of my questions and answers across all of the sites in the network?   And is there a way that could preserve special LaTeX formatting?


Can we create black holes in modern particle accelerators?

The question is if modern particle accelerators (or cosmic rays for that matter) can create black holes. Has those events been detected? If not, how far are we in terms of orders of magnitude energy? Bonus question: is creating black holes scientifically interesting? I've read , but the accepted answer is about string theory and politics. My question is about energies and devices required.


So when I start installing flash player from software center , it gives an error saying that it couldnt download flash plugin. "The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.  flashplugin-installer  The download will be attempted again later, or you can try the download again now.  Running this command requires an active Internet connection."


Determine if given variable is a directory

I have a batch file script that needs to verify if the directory that the user enters in is a real directory or path so that I can create it if it dose not exist.  :GetDir set /p Dir= if not <is directory?> %Dir% goto:GetDir if not exist %Dir% mkdir %Dir%   How can I determine if the value given by the user is a directory? There are millions of things that the user could enter in that is obviously not a directory.  notes for editor: This note is to be removed after the editor reads it. I apologize ahead of time if I was not supposed to add this note in. Please correct me so I don't do this again if this is the case and I would appreciate being told where to add these types of notes if a similar situation comes up again. I am trying to maintain and recover this question from when I originally asked it in order to fix my bad reputation for asking bad questions on here. This is not a duplicate question because the marked duplicate is in a different scripting language that I am unfamiliar with. I would also like to mention that I did to some heavy research before asking this question on the the issue that I was having. It would also be greatly appreciated if answering this question could be enabled again so that I can answer my own question because I am not sure that anybody else is going to have the answer, and I currently know how to answer it.


'unsubscribed' and 'held' clean up Salesforce Marketing cloud

Can I know how we are charged for Salesforce Marketing Cloud in terms of contact? Is it based on number of subscribers in 'All Subscribers' list or is it subscribers for each publication list we have? We want to clean up 'unsubscribed' and 'held'. Should we clean this for each publication or only for the master list? Any reference to salesforce doc will be good to see.


℃ from mysql database cannot display on website

I have a Mysql database having data below:  Thermometer -10℃ - 110℃  I copied that degree symbol from other website.  I did declare on my html like some example here:  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />   But it just wont show up when I call this data using php to my website, it only display  Thermometer -10?C - 110?C   What else do I need to do??


Why are naturals < modulus equal if congruent? [uniqueness of remainder]

Let $a$, $b$, and $n$ be integers with $0 \le a \lt n$ and $0 \le b \lt n$. Suppose $a \equiv b \pmod n$. Then $a-b=0$ and $a=b$. Why does the congruence of two non negative integers imply that they must be equal?


I don't know the proper term, but I'm a new blender user and I was trying to create a light and the shadows from it are very clipped, but only on Eevee. Works fine on cycles.


Where to ask for recommendations selecting a IRC client?

I would like to ask the following questions:   Are there any IRC programmes (local or web), plugins, features, etc. that allow for making rich-text formatting, either directly or through markup (e.g. )? If not, then is there a way to give an IRC programme said capability?   But I'm not sure which site to ask on: StackOverflow or SuperUser.  On the one hand, I'm asking a question that may involve a markup language, so StackOverflow seems most appropriate for that. On the other hand, I'm asking about poweruser-esque capabilities of applications, so in that case SuperUser would be most appropriate.    Note: I'm not asking about any particular StackExchange or StackExchange-related feature or channel or whatever. I'm asking about IRC in general.


Minecraft: java.net.connectexception no further information. Me and my girlfriend get this error when we try joining each other's lan worlds

As stated in the title, we get the error Minecraft: java.net.connectexception whenever we try to connect to each other's LAN worlds. We have tried several fixes including:   Using Hamachi Turning off our firewalls Creating new inbound rules for Minecraft Installing a different version of Minecraft   Nothing so far has worked. We can connect to other servers just fine, but can never join each other's LAN worlds.  Any suggestions or fixes, would be greatly appreciated.  Thank you in advance you wonderful person <3.


get current user info using jquery ,REST and csom

My goal is to get the login name and picture for the current user. I am using SharePoint 2013 Foundation. I tried three method and non of then worked correctly:   This is with jQuery SPServices:   function getCurrentUserInfo() {     var thisUsersValues = $().SPServices.SPGetCurrentUser({         fieldNames: ["ID", "Name", "Picture"],         debug: false     });      var name = thisUsersValues["Name"];      var ID = thisUsersValues["ID"];      var SIPAddress = thisUsersValues["Picture"];  }    But I am getting this error:     SCRIPT438: Object doesn't support property or method 'replace'      File: jquery.SPServices-2014.01.js, Line: 2414, Column: 17    REST API method:   function getinfo(loginName) {     var theData = {         "propertiesForUser": {             "__metadata": { "type": "SP.UserProfiles.UserProfilePropertiesForUser" },             "accountName": loginName,             "propertyNames": ["PreferredName", "PictureURL"]         }     };      var requestHeaders = {         "Accept": "application/json;odata=verbose",         "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()     };      jQuery.ajax({         url: _spPageContextInfo.webAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertiesFor",         type: "POST",         data: JSON.stringify(theData),         contentType: "application/json;odata=verbose",         headers: requestHeaders,         success: function (data) {             document.getElementById("profilelink").href = userProfileProperties[1];;             document.getElementById("username").innerHTML = userProfileProperties[0];             if (userProfileProperties[1] !== null) {                 document.getElementById("Userprofileimage").src = userProfileProperties[1];             }         },         error: function (jqxr, errorCode, errorThrown) {             console.log(jqxr.responseText);         }     }); }    Error:     "{\"error\":{\"code\":\"-1,        Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\":\"en-US\",\"value\":\"The method         GetUserProfilePropertiesFor cannot be invoked as its parameter propertiesForUser is not supported.\"},\"innererror\":        {\"message\":\"The method GetUserProfilePropertiesFor cannot be invoked as its parameter propertiesForUser is not supported.\"        ,\"type\":\"Microsoft.SharePoint.Client.InvalidClientQueryException\",\"stacktrace\":\"     With CSOM:  //SP.SOD.executeOrDelayUntilScriptLoaded(getUserProperties, 'SP.UserProfiles.js'); function getUserProperties(targetUser) {      // get the target users domain name and account name.     var tUser = targetUser.substring(7);     // Get the current client context.     var clientContext = new SP.ClientContext.get_current();     //Get PeopleManager Instance     var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);     // Get the properties to retrieve     var profilePropertyNames = ["PreferredName", "PictureURL"];     var userProfilePropertiesForUser = new SP.UserProfiles.UserProfilePropertiesForUser(         clientContext,         tUser,         profilePropertyNames);     // Get user profile properties for the target user     userProfileProperties = peopleManager.getUserProfilePropertiesFor(userProfilePropertiesForUser);     // Load the UserProfilePropertiesForUser object.     clientContext.load(userProfilePropertiesForUser);     //Execute the Query     clientContext.executeQueryAsync(onRequestSuccess, onRequestFail); }    I really don't understand where the issue is. Does anyone have an idea?


How to send a header using a HTTP request through a cURL call?

I wish to send a header to my Apache server on a Linux box.  How can I achieve this via a cURL call?


functional equality of unions/intersections

I came across a statement which said that if we have a function $f:X\rightarrow Y$ where $A\subset X$ and $B\subset X$, then its true that $f(A\cup B)=f(A)\cup f(B)$, however its false that $f(A\cap B)=f(A)\cap f(B)$. I do not understand how this is so. Any help?


Any *real* useful usage for the "clear key" on apple wired keyboard?

I work on Macs for over two years and still haven't done anything useful with the "clear key" ().  Do you know of any useful stuff it can do? Other than with the built-in Calculator app, that one doesn't count :)  EDIT: Anything you use on regular bases.


Why do I need to enter the Stack Exchange password so many times?

After, for example, a cookie reset I need to log in again.  Why do I need to enter the password N times for N Stack Exchange sites? Isn't the account consolidated?  Sometimes I can wait for some time and refresh the page and it says at a top something like "Oh, it's you. Click here for the login.", but not in this case.


Event listener gets removed on post method

After I click on a th with the class database-header, my table gets sorted via the post method, but for some reason the click event listener gets removed, so when I click again on a different database-header, nothing happens. What em i doing wrong ?   $(function () {     var user = $('#user');     var databaseHeader = $('.database-header');     var tableContainer = $('.table-container');     var databaseHeaderValue;     var url = './php/table.php';      databaseHeader.click(function () {  /* Checks for the user login div */         if (user.closest('html').length){              databaseHeaderValue = $(this).html();             $.post(url, {'sort' : databaseHeaderValue}, function (data) {                 tableContainer.html(data);             });         }     }); });


ssh: transparent redirect of incoming connections based on host- or username

I have a Linux server with a single, static IPv4 address and several DNS entries pointing to the IP. The server hosts several Docker container, and listens on port 22 for incoming SSH connections.  There are three different use cases, where SSH connections to the server are made:   access to git repositories (git.myserver.tld, username is always git, access is realized by using different keys) access to files using sftp (data.myserver.tld, username is always data, access is realized by using different keys) direct access to the server (myserver.tld, username corresponds to local unix user)   The first two servers (git and data) are each running inside a Docker container. My question is: Is it somehow possible to redirect incoming SSH connections to the SSH servers of the Docker containers, if Git or Data is required, or handle it directly if not? Could this be realized by looking at the username (redirect if it is git or data, handle it otherwise) or the hostname (is there some equivalent to SNI for TLS)?   Using another port than 22 is not an option, as the access should be allowed from environments, where only a few  ports are allowed for outgoing connections.  The user management is handled by the appropriate Docker container services; there is no static list of SSH keys used to connect, but no connection ever uses password authentication.  The server runs Debian Linux with OpenSSH.  [Edit]  I do not think that this is a duplicate, because my questions was not only about the possibility to define hostname-based virtual SSH servers. I also asked if it is possible to differ on a per-user basis, which is not handled by the linked question. The username is transmitted during the SSH session, so there might be a possibility..


So, I am a newbie to js and don't have much knowledge of JSON... I was making a speech-assistant kind of thing with node and when I came upon weather I googled it...I just ctrl+c  ctrl+v somethings (I am just 14) The output I am getting is [   {     location:  {       name: 'Chennai, India',       zipcode: undefined,       lat: '13.012',       long: '80.221',       timezone: '5.5',       alert: '',       degreetype: 'F',       imagerelativeurl: 'http://blob.weather.microsoft.com/static/weather4/en-us/'     },     current: {       temperature: '86',       skycode: '31',       skytext: 'Mostly Clear',       date: '2020-07-24',       observationtime: '22:00:00',       observationpoint: 'Chennai, India',       feelslike: '99',       humidity: '79',       winddisplay: '8 mph South',       day: 'Friday',       shortday: 'Fri',       windspeed: '8 mph',       imageUrl: 'http://blob.weather.microsoft.com/static/weather4/en-us/law/31.gif'     },     forecast: [ [Object], [Object], [Object], [Object], [Object] ]   },   {     location: {       name: 'Chennai, India',       zipcode: undefined,       lat: '13.072',       long: '80.202',       timezone: '5.5',       alert: '',       degreetype: 'F',       imagerelativeurl: 'http://blob.weather.microsoft.com/static/weather4/en-us/'     },     current: {       temperature: '86',       skycode: '31',       skytext: 'Mostly Clear',       date: '2020-07-24',       observationtime: '22:00:00',       observationpoint: 'Chennai, India',       feelslike: '99',       humidity: '79',       winddisplay: '8 mph South',       day: 'Friday',       shortday: 'Fri',       windspeed: '8 mph',       imageUrl: 'http://blob.weather.microsoft.com/static/weather4/en-us/law/31.gif'     },     forecast: [ [Object], [Object], [Object], [Object], [Object] ]   } ]  (if you don't like the look of this then-->   ) Can anyone please help me get the values of things like temperature, sky text, humidity and same for the forecast Thanks a lot...


Let $A$ and $B$ be $n×n$ matrices such that $AB = BA$. If all the eigenvalues of $A$ are distinct, then $B$ can be expressed uniquely as a polynomial in $A$ with degree no more than $n − 1$.  My Try: From the fact that $A$ has distinct eigen values, we can say that $A$ is diagonalizable. And from the fact fact that $AB = BA$, I have shown the fact that $B$ also have distinct eigen values and hence also Diagonalizable.  It is also noticed that the matrix $P$ for which $P^{-1}AP = C$, the same matrix $P$ also satisfies $P^{-1}BP = D$, where $C,D$ are resp diagonal matrices.  I have also arrived the fact that if $D$ can be expressed uniquely expressed as a polynomial in $C$ with degree no more than $n − 1$, then $B$ can be expressed uniquely as a polynomial in $A$ with degree no more than $n − 1$.  Having Problem to show that $D$ can be expressed uniquely expressed as a polynomial in $C$ with degree no more than $n − 1$.  Thanks in Advance..


Why can’t Windows 98 be installed on latest computers?

Why can’t   be installed on latest computers?


What does it mean when multimeter accuracy is marked as: ±0,03%+10Digit?

I have a digital multimeter and its accuracy for VDC is marked like this:      ±0,03%+10Digit   This multimeter has maximum display of 80000. So in the 80 V range it can show for example 79.999V.  0.03% of 80V is 0.024V - that is clear for me. But what does the +10Digit mean?  The device in question in .


For example , I write a Python program by vim , but how can I run it ? It just show a editor program when I double tap on it .


I love onions, but as an IBS sufferer, I find that it is one of my trigger foods and gives me diarrhea. Is there anything that I can put in recipes as a substitute?


I just want to ask if ubuntu mobile is available for LG optimus VU and how to install it if it is available .  Thanks and more power  MJ


Net work done on the body when we lift it and put it on the table is zero?

I'm little confused here.  done on the body when we lift it and put it on the table is zero, because according to work energy theorem, change in kinetic energy of the body is zero. So, the net work done is zero.   Fine, but now the object has $mgh$ (where $m=$mass of body; $h=$height of body) amount of potential energy stored in it. If the net work done is zero then who has increased its energy?  I'm confused and unable to think it through kindly help.


Is there a simple way to automate calls to QGIS plugins from a QGIS Python script? Either from console or a plugin?   I am ideally looking for a way to specify input/output parameters and bypass GUI.  Specifically, I'm trying to use the SimpleSVG plugin in a script that generates a whole bunch of maps.


Let $A = \{p \in \mathbb{Q}^+ : p^2 \lt 2\} $ and $B = \{p \in \mathbb{Q}^+ : p^2 \gt 2\} $. We want to prove that $A$ has no maximum and $B $ has no minimum. I spent a good hour on this without being able to do it. This is how it was done in the book:     Associate with every rational $p \gt 0$ the number      (3) $$q=p- \frac{p^2-2}{p+2}$$        Then      (4) $$q^2-2 = \frac{2 (p^2-2)}{(p+2)^2} $$        If $p $ is in $A $ then $p^2-2 \lt 0$, (3) shows that $q \gt p $, and (4) shows that $q^2 \lt 2$. Thus q is in $A $.  (and analogous for $B $).   Ok I can see it works. But how did he find that $q $? Why divide $p^2-2$ by $p+2$ and then subtract it to $p $? What process does one go to find the expressions that work?


How do I install Google Chrome dev version?

I want to install Google Chrome Nightly (the dev version) next to the stable version. Is there a PPA for Nightly and 12.04?   are the only PPAs I found and they are not working on 12.04 yet.


Can't I use different Wi-Fi networks for different Locations?

I'm having trouble understanding what I'm doing wrong here: I'm trying to set up two network Locations, one for my home network via my cable modem and a second for Wi-Fi tethering via my mobile phone. What I'd like to be able to do is change the Location (under the Apple menu > Location) and have my Mac automatically connect to the proper Wi-Fi network: either my home network SSID or my WiFi tethering SSID. I defined two locations, switched between them, and set the preferred network list for each location. But when I change the preferred network list for one Location, it changes the list for the other Location as well! Am I doing something wrong or is it really not possible to maintain a separate list of Preferred Networks for each network Location? It seems doubtful it's not possible since just about every other netrok setting depends on the location... I am using OS X 10.7.2.


Kill all process of particular user in Ubuntu?

How to kill all process of one user? When I make ps aux I obtain a list of process with several users, and I want to kill all process of user name1, for example. What's a command to do that in Ubuntu?


Why do wheels appear to revolve opposite to the direction they are rotating?

When viewing cars that are driving along side of us, sometimes their wheels appear to be turning backwards even though they are traveling in the same direction as our car. Why do they look that way?


How to ask multiple computers by ssh through the same command

computer1:~$ ssh -p 2222 computer2@192.x.x.x 'who -b' | \ > awk '{print $(NF-1)" "$NF}' >> textfile.txt   This code help me figure out when computer2 last booted and puts the information in a textfile named textfile.txt.  But what if i want to ask computer2 AND a computer3 the same thing in the same command and then puts the information in the textfile? How do i ask multiple computers in the same command?  Thanks!


Prove that the ring $\mathbb{Z}_n$ contains a nonzero element $a$, such that $a^2=0$ if and only if $p^2|n$ for some prime p

I'm completely lost on this one. The best I could come up with is that $pn=p^2q$ for some integer $q$, but this doesn't imply $p^2=nq$. Hints would be appreciated.


A question regarding the number of generators of an ideal

Let $I$ be an ideal in $\mathbb{C}[x_1 ,x_2 ,x_3 ,x_4 ]$  such that $I$  is generated by $x_1 x_3$, $x_2 x_3$, $x_1 x_4$,  and $x_2 x_4$. How to show that this I cannot be generated by two elements?    It seems intuitively clear but, can't prove it rigorously


Size of an array in C is smaller than expected

I have a string in C named buff. It is defined as char *buf = malloc(size);. I'm new to C but think this means that the values of the bytes of data allocated is stored in buf. All code is below When I run sizeof(buf) it gives a size of 8 despite it clearly being full of more than 8 characters. I also have problems with taking the returned pointer and putting it through strlen which gives a value double what I expect. This is a function to create an array of characaters read from a file. The comments below used an example file of input.txt with contents ()()(()()( const char* readFile()  {     FILE* fp;     int c;     int nch = 0;     int size = 100;     fp = fopen("./input.txt","r");     //allocates a block of 100 bytes and sets buf as the values associated with those values     char *buf = malloc(size);     if(buf == NULL)         {         fprintf(stderr, "out of memory\n");         return NULL;         }     while((c = fgetc(fp)) != EOF) //sets c to the next character of fp and checks it isn't the end         {         if(nch >= size-1) //size-1 as need an extra character for '\0'             {             /* time to make it bigger */             //printf("size: %d \n",size);             size += 50;             buf = realloc(buf, size);             //size_t n = arraySize(buf);             //printf("buf is %zu chars long \n",n);             if(buf == NULL)                 {                 fprintf(stderr, "out of memory\n");                 return NULL;                 }             }          buf[nch++] = c; //steps nch and stores c         }     buf[nch++] = '\0';     printf("size: %d\n",size); //output 100      printf("nch: %d\n",nch); //output 11     buf = realloc(buf, nch); //sets the buf to the size it actually needs      printf("buf is %d long\n",sizeof(buf)); //outputs sizeof(buf) as 8.     printf("buf[0] is %d long\n",sizeof(buf[0])); //outputs sizeof(buf[0]) as 1.     printf("\"%s\"\n", buf); //shows it reads the file properly. outputs "0123456789"     return buf; }  int main(){     const char *fileContents = readFile(); //defines it as the address of the first character     printf("\"%s\"\n", fileContents); //outputs the file contents correctly     int count = 0;     printf("strlen: %d\n",strlen(fileContents)); //outputs 10     int i, lenStr = strlen(fileContents);     for(i = 0; i < lenStr; i++){          char c = *(fileContents+i); //sets character at position i to c         printf("character: %c  i: %d\n",c,i); //outputs expected value         switch(c){ //this works sort of and correctly identifies values         case '(':             printf("increasing count\n");             count++;             break;         case ')':             printf("decreasing count\n");             count--;             break;         default:             printf("things are going wrong \n");             break;         }         fileContents++;     }     printf("go up %d floors",count);     getchar();     return 0; }  output of for loop with select statment character: (  i: 0 increasing count character: (  i: 1 increasing count character: (  i: 2 increasing count character: )  i: 3 decreasing count character: )  i: 4 decreasing count character:    i: 5 things are going wrong character:    i: 6 things are going wrong character:    i: 7 things are going wrong character: e  i: 8 things are going wrong character: s  i: 9 things are going wrong  For some reason the output is in the wrong order before it starts breaking. It feels like the problem is I don't fully understand pointers. I'm just not sure how I am misunderstanding them.


Need help to choose a desktop or server for the 50 clients in a local network?

We are going to build a application for school labs. Each lab contains maximum 60 students and all the students has to be connected in a local network. Each student will get a Android tablet or a desktop to watch the videos which will be served from a Lab's Server.    Here server has following tasks.   It has to download videos from internet or cloud at some time in a day by manually or cron. It has to a run an Apache/Nginx server to stream the downloaded videos to all the students connected. we are thinking to code in NOdejs or python. It has to serve 50 to 60 clients for 2 hrs continuously in different batches. For example 4 different batch students(50 students) may come to the lab and listen to the videos. So server uptime will be 8 hrs per day with max 60 concurrent connections at a time.   Now, we are in a situation that do we need a dedicated server for serving clients offline or a desktop with good processor and RAM is enough?  Please guide us in this usecase. Happy to give more details.Please comment.


Strong Induction - Any integer greater than 1 is divisible by a prime number

Prove any integer greater than 1 is divisible by a prime number(strong induction)  Let P(n) be an integer divisible by a prime number, where n>=2.  Base Case:  Show true for $P(2)$  $P(2)$ is true because 2 is a prime number itself.   Inductive Case:  Show that for integers $k>2$, if true for all $i$ with $2<=i<k$, then it's true for k.  Suppose that for all integers i with $2<=i<k$, i is divisible by a prime number (inductive hypothesis)  If someone could explain how the inductive case above works that would be appreciated


How much extra distance to an event horizon?

How much extra distance would I have to travel through space to get from Earth to a stellar mass event horizon? (compared to the same point in space without a black hole)


How can I print ’ (unicode u2019) in python exactly as ’? Note: I know that if I do print(text_bytes) that I get b'’', this is not what i want, just ’. Using python version 3.5.3 on Windows 10.  Code:  text = '’' text_bytes = text.encode('utf-8') text_str = str(text_bytes, 'utf-8') print(text_str)   Result:  File "C:\Python\Python35\lib\encodings\cp850.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 0: character maps to <undefined>


Is there a class for typesetting novels? I know it's trivial to you, but I really need one.


Why is my LTspice simulation taking so long?

I'm simulating an audio amplifier circuit in LTspice, using an opamp and 555 timer, based on the circuit I found  This is the circuit diagram and output:  As seen below, the transient analysis is progressing very slowly. I need an audio sample (from the output) of at least 5s. But even after leaving it for 20 minutes or so, the transient analysis only progressed to 3%. I tried using some commands the , but it's not helping much. I had made this circuit using a BJT earlier. It didn't take too long to simulate then, although the output wasn't that great. I had built opamp circuits using the same opamp, and it simulated fine. It's just this circuit with the 555 timer. How do I speed up the simulation?


How many ways are there to arrange 10 distinct tasks of type A and 10 distinct tasks of type B in 7 slots?

Restrictions:   No 2 tasks of type B can be adjacent in the arrangement. Same task can occur multiple times in the arrangement. One slot can have one task. No slot can be empty   Also, What would happen if the number of slots is greater than the number of Task A + number of Task B?  Edit 1:   Similar Question:   The question is different from this one in the sense that a tasks can be performed/placed in slot twice but a man/woman cannot sit on two seats.


Possible Duplicate:          I would like to know if when I'm writing about a "user" (in the broad sense), what do I use? Example: "from the user’s perspective, saving a file is very easy; ? only needs..."  What is correct: she, he, she or he, or they.


The question is to evaluate $$\sum_{n=1}^\infty \frac1{n(2n-1)}$$   I have done this:   $$\sum_1^\infty\frac1{n(2n-1)}=\sum_{n=1}^\infty\frac2{2n-1}-\frac1n=\frac21-\frac11+\frac23-\frac12+\cdots\\=1-\frac12+\frac13-\frac14+\cdots=\log 2$$ But Wolfram alpha says the initial sum is $2\log 2$. I think the wrong step is when I started a new line above - the sum needs to be re-ordered to get it into the form I have got. But the series is not absolutely convergent (I think), so this shouldn't be allowed. Am I right? How can I correct this argument? If it is not possible to correct is, can someone provide an alternative method I could use instead?


My only local Administrator login account vanished after changing PW

I am new to server administering and learning and I have an old dell server with windows server 2008 standard installed.  I almost forgot the password for the admininstrator account so I went in and changed it from the control panel user section.  Now after reboot the administrator button vanished.  It was the only administrator account.  What happened and how do I log in as admin now?  Ive looked and cannot see anybody with this same issue on searching.  I logged on to a normal user account and looked at properties of the user groups and I see the Adminstrator account there and it doesnt say its disabled.  It just doesnt want to show on login screen for some reason.


Javascript - how to get variable value from another function in different function

I'm trying to get variable d value from function b in function e, but the result not value from function b. The result just from variable outside the function b.  var d = "maybe"; var a = 1;  function b() {     if (a == 1) {         var d = "yes";     } else {         var d = "no";     } } b();  function e() { console.log(d); //output maybe } e();   How do I get the result to be the value from function b, or equal to "yes"?


SQL Server - How to shrink the allocated space for a staging table used by SSIS?

I'm facing a strange problem about a staging database used by my ETL (to update rows).  Only rows to update are stored in the database, then a script is executed to update the destination database. At the end of the process, It truncates the staging database. It removes all data, however the allocated size for my database grows every execution time of my SSIS package. So, is there a way to reduce the allocated size and to limit the maximum allocated size ? In SQL Server Management Studio, there is a wizard to reduce data size and database size.  Is there the same command in T-SQL ?  Thanks !


Why weren't Ron and Hermione allowed to enter the Three Broomsticks?

In Harry Potter and the Prisoner of Azkaban (film), why were Ron and Hermione kept from entering the Three Broomsticks by the shrunken heads for being underage, when Hogwarts students went in there all the time?


How to prove $\sqrt{1+x} \le 1+\dfrac{x}{2}$, $x > -1$ using MVT

How to prove this question?(picture) I don't know the way and sorry for weird typing (i'm korean...)


Create a biblatex bibliography of all entries without citations

This question is sort-of the opposite of  FAQ.  I am having a .bib file with all the literature I've consulted for my project. Currently (until I have a solution) I use \nocite{*} to print the whole bibliography (using biblatex with biber). But what I want to have is two separate bibliographies: first the regular one with all cited entries and then another one (labeled "further literature") that includes all entries from the .bib file for which there is no citation.  Of course I could use a keyword (e.g. further-literature) and do something like \nocite{*} \printbibliography[keyword={further-literature}]. But I definitely don't want to maintain that list of uncited works manually! That's not how that should be done.  So is there a filter in biblatex that allows to print entries without citations but no entries that do have a citation?


Unable to highlight the intersection area of $x^2+y^2=2x ; x=y^2$ using tikz

I am unable to highlight the intersection area of $x^2+y^2=2x ; x=y^2$ using TikZ, I have tried two different codes by using pgfonlayer, as mentioned below, one is running but giving output as filling shade in the form of triangle, other is not running which I have shown below in comments.   Please help... thanks   \documentclass{article} \usepackage{tikz,pgfplots} %\usepackage[x11names]{xcolor} \usepackage{tikz} \usetikzlibrary{intersections} \pgfdeclarelayer{bg}    % declare background \pgfsetlayers{bg,main}  % order of layers (main = standard layer) \pgfplotsset{compat=1.13} \usepackage{amsmath} \usetikzlibrary{positioning}      \begin{document}     \begin{tikzpicture}   \draw(1,0)circle(1cm); % DRAW CIRCLE \draw[blue,line width = 0.50mm]   plot[smooth,domain= -2:2,variable=\y] ( {(\y)^2},\y);  \draw (-2,0)--(4,0) (0,-2)--(0,4); \draw(1,1)node(a){A}--(1,0)node(c){C}; \draw(2,0)node(b){B}--(0,0)node(o){O};   \begin{pgfonlayer}{bg}    % select background \path [fill=blue!50] (o.center) --(a.center) --(b.center) -- cycle;  \end{pgfonlayer}  I have tried the following code as well, but it is showing some error, please help.  %   \begin{pgfonlayer}{bg}    % select background %   \clip plot[smooth,domain=0:2] (\sqrt{1-(x-1)^2}, \x); %   \fill[red]  plot[smooth,domain= -2:2,variable=\y] ({(\y)^2},\y); %   \end{pgfonlayer} \end{tikzpicture}  \end{document}


Is differentiating on both sides of an equation allowed?

Let's say we have $x^2=25$ So we have two real roots ie $+5$ and $-5$.  But if we were to differentiate on both sides with respect to $x$ we'll have the equation $2x=0$ which gives us the only root as $x=0$.  So does differentiating on both sides of an equation alter it? If it does, then how do we conveniently do it in Integration by substitutions? If not then what exactly is going on here ?


What is a hypernym for different fields of expertise?

It was only after he mastered psychology, philosophy, history, spiritualism, prophesizing and religion, in his old age, that he knew his know he could be at peace. He mastered all these ____ (collective word).   The best fit I can think of fields but could mean anything really and is too generic. Sciences sounds better since he researched it from a fundamental point of view but history, prophesizing and religion are not sciences. It's not in school or academic, and spiritualism is not a subject, so subjects doesn't sound correct. Is there a better word for fields that sounds more high-brow?


I would like to use my own domain name for my email address and use Gmail as my email client.    How can I do this without using email forwarding?


Build path name with variable as input to touch

I want to store a path I often use as an environment variable, then call this variable to construct a path name.   $ mypath="~/local/bin/" $ newFile="${mypath}newFile.sh" $ echo $newFile ~/local/bin/newFile.sh   That appears to work.   But, if I call $newFile as the input to touch, it fails:  $ touch $newFile touch: ~/local/bin/newFile.sh: No such file or directory  $ touch "${mypath}newFile.sh" touch: ~/local/bin/newFile.sh: No such file or directory   Both don't work. What am I missing?  P.S. I'm certain that this has been discussed already but I'm new to bash so I don't know what the jargon is to search yet. Thanks for any help.


The plural of tooth is teeth but the plural of booth is booths. The plural of goose is geese but the plural of moose is moose. The plural of  foot is feet but the plurals of root, boot, and toot are roots, boots, and toots.   I have ascertained from my research that whenever an oo word changes its plural form to ee, that word traces to West Germanic. The counterexamples come from different languages.  Questions      How did these irregular nouns come to be?        When was an oo to ee change first attested, and why didn't the West Germanic speakers simply add an s?       Is there any significant linguistic research on this topic?   Some places I researched:   Oxford Dictionaries: ?  EL&U:   SpanishDict:   Quora:     Yahoo! Answers:   Wikipedia:   Encyclopædia Britannica:    This is not a duplicate because the post in question, , doesn't answer my question: I want to know how the oo-ee change occurred in West Germanic, and the answer on that only briefly touched on this topic.


Why don’t electrons radiate energy when in circular orbits?

Wikipedia states that     The electrons can only orbit stably, without radiating, in certain orbits (called by Bohr the "stationary orbits") at a certain discrete set of distances from the nucleus. These orbits are associated with definite energies and are also called energy shells or energy levels. In these orbits, the electron's acceleration does not result in radiation and energy loss as required by classical electromagnetic.   How can you just say anything? Is there any proof of this statement ? I mean, electrons are also objects and they must follow the classical theories!   PS- Please try not to use QM, as Bohr did not explain this stuff by QM!


Let $(M,d)$ be a compact metric space and $f:M \to M$ such that $d(f(x),f(y)) \ge d(x,y) , \forall x,y \in M$ , then $f$ is isometry?

Let $(M,d)$ be a compact metric space and $f:M \to M$ such that $d(f(x),f(y)) \ge d(x,y) , \forall x,y \in M$ ; then how to prove that $d(f(x),f(y))=d(x,y) , \forall x,y \in M$ i.e. that $f$ is an isometry  ? I wanted to prove by contradiction , that suppose $\exists a,b \in M$ such that $d(f(a),f(b)) > d(a,b)$ ; I wanted to use the sequences $\{f^n(a)\}$ and $\{f^n(b)\}$ , these have convergent subsequences $\{f^{r_n}(a) \}$ and $\{f^{r_n}(b)\}$ ( without loss of generality we have extracted a common subsequence ) converging to say $x,y \in M $ respectively . Then $d (f^{r_n}(a) , f^{r_n}(b))$ converges to $d(x,y) >d(a,b)$ ;  but I don't know what to do next , please help . Thanks in advance


How to auto sync a folder on my external hard drive with a folder on my computer

I would like to know if there is a way to somehow auto sync a folder on my external hard drive with a folder on my computer.  You see, previously my computer's internal Hard Drive got damaged and all my data erased. So now I am wondering, as if I have only a single folder which is important to me, like really important. It would be very safe for me to know that this one folder is auto syncing with my external hard drive's, which is always plugged into my computer. So in case of my computer's Internal hard drive crash, I would know that my data is all safe on my external hard drive.   Or perhaps there is a more simple way out there using which I will be able to have data auto syncing from my internal computers drive to somewhere I can access from any computer.


jQuery click on anything but div AND EVERYTHING INSIDE

I use tis code:  $(document).bind('click', function(e) {   if(!$(e.target).is('#paybox')) {     $('#paybox').hide();   } });   to hide #paybox when user click anywhere but #paybox.  But when I click on "radio" form:

             <form method="post" action="">                                      <input type="radio" name="dauer" value="small" checked>                 	                                       <input type="radio" name="dauer" value="mid">                 	                                       <input type="radio" name="dauer" value="big">                 	             </form>

   INSIDE the #payboy then #payboy get hidden!   How can I prevent this?


EDIT: This post was edited due to the automated "Title" keyword matching function of this site that caused some confusion for us humans with the word "AutoHotKey"


why cant ubuntu 14.04 install on my windows 8.1

please can you tell me how to install ubuntu on my windows 8.1 ive tried to install with the disk. But its not installing its saying missing file from the disk but it installed on another laptop.


Do I need a transit visa for 16.5-hour transit in LHR?

In order to book a flight which has a connection time nearly for 16 hours in LHR, do I need have a transit visa?  I have gone through the , to check whether I need a transit visa. But only thing that I couldn't figure out is the answer for the following:     there’s nowhere for you to stay overnight in the airport, for example in a transit hotel   I haven't been to LHR before so I don't know whether they have facilities for overnight stay on airside. I have heard that if the transit is more than 10 hours usually we need a transit visa for certain connections (airports).   I just wanted to know whether LHR has such regulations?


Problems updating Python from the repositories today (Feb 25, 2021)

NOTE: This is a Master Canonical Post for the issues observed on February 25, 2020.  All issues on Feb 25 relating to Python updates not found should be dupe-linked here.  Errors have been seen such as this today, February 25, 2021: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7-minimal_2.7.17-1~18.04ubuntu1.3_amd64.deb 404 Not Found  Is there something up with the repositories?


Which equation to use for simple harmonic motion?

I recently started studying simple harmonic motion and I came across two equations for the displacement of a particle, as given in my textbook:  \begin{align} y &= a\sin(\omega t +\phi)\\ x &= a\cos(\omega t+ \phi) \, . \end{align}  I really have no clue when to use which one. It would help me a lot if someone could give an explanation on this.


How to prove that a ring is not flat over $k[t,s]$?

Let $k$ be a field, $A=k[t,s]$, and $C=A[z]/(tz-s)$. How can I prove, using the ideals $tA$ and $sA$, that $C$ is not flat over $A$? (Liu, Algebraic Geometry and Arithmetic Curves, Exercise 2.6(c).)   I know that if $A$ is a Dedekind domain then $A$-module is flat if and only if it is not torsion-free over $A$. But Dedekind domains are new structures for me so I'm not sure if $k[t,s]$ is a Dedekind domain. Or do I have to show that not both of $tA$ and $sA$ can't be maximal or prime over $A_{tA}$ or $A_{sA}$?


Treating odd and even numbered pages differently?

I was wondering how to treat odd and even numbered pages differently, for example I want the page number appear on the upper right corner of the page on odd pages while upper left corner of the page on even pages. How can I accomplish this? Many thanks in advance


I have a basic question in java. from my research I found out that downcasting is not allowed in java because it throws an exception in runtime but in some limited cases such as   But I can't understand why this statement proceeds  HttpURLConnection connection = (HttpURLConnection) url.openConnection() without problem?  (because openConnection() returns a URLConnection object )  be specific  I'm sorry for poor english language because i am not a native speaker


Elementary proof that $3$ is a primitive root of a Fermat prime?

The following is exercise 6 of Chapter 4 in Ireland and Rosen's Number Theory.  If $p=2^n+1$ is a Fermat prime, show that $3$ is a primitive root modulo $p$.  I first recall that any Fermat prime actually has form $2^{2^n}+1$. Hence $p\equiv 1\pmod{4}$. Exercise 4 from the same chapter states the if $p\equiv 1\pmod{4}$, then $a$ is a primitive root mod $p$ iff $-a$ is as well. I was able to prove this, but unable to show $-3$ is a primitive root.   Is there a fruitful approach?    P.S. I was able to cheat and use the fact that  $$ \phi(p-1)=\phi(2^{2^n})=2^{2^n-1}=(p-1)/2 $$ and since there are $(p-1)/2$ quadratic nonresides and each of the $\phi(p-1)$ primitive roots is a quadratic nonresidue, then the two sets are actually the same.  Then $3$ is a nonresidue since applying quadratic reciprocity $$ \left(\frac{3}{p}\right)=\left(\frac{p}{3}\right)=\left(\frac{2}{3}\right)=-1 $$ hence not primitive. But I only know this from a number theory class I took back in school, not from anything in Ireland and Rosen so far. Is there a way to avoid using a sledgehammer the authors haven't given me yet?


Mirror for Fedora core 4 still available?

I'm trying to rebuild , which uses Fedora Core 4 as its base. Can anyone direct me to a mirror that still hosts the files?


how do you only allow uppercase or lowercase in inputs?

I'm already using elif not re.match("^[a-z]*$", first_name), but every time I enter a capital letter for the name, it returns the message I use if they are using anything other than a letter in the alphabet. Thank You in advance for any help you can give.


Multiple regression with 2 correlated variables

I have a data set with a dichotomous outcome variable (surgery result good/bad) and two MR scan markers that are continuous (measurements on the scan).  Now if you have a large measurement in one marker, you probably also have a large measurement in the other marker.  When regressing the relationship with one variable at a time, there is no significance, but if I regress both together, there is a high significance, that is it predicts a good surgery outcome if you have a larger marker in either one.  Does this mean that the measurement cannot predict surgery results on its own, but if both markers are enlarged, it can predict surgery results?  Note that the model does run without multicollinearity problems.


draw roc curve on an example of 10 probability scores

I'm studying machine learning and find an example question on the book which really confused me.  Q:  A scoring classifier is evaluated on a test set of 10 examples  resulting in the following probability scores:             0.9, 0.8, 0.7, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1   with true classes:              1     1    0    1    1    0    1    1    0    0   The answer for the ROC curve is  Could anyone give me some hints on how they draw this? I'm very confused on why the curve turn right when the tpr raise to approx 0.3 and 0.7. Thanks!