How to install multiple versions of php on one server?

I want to install two PHP versions on a single server . I have PHP v7.1 installed on my server and i want to install another version that is php5.5 on my server.   I tried installing v5.5 but it either upgrades from the previous version or it does not get installed because of the previous version .  What commands should i use to install an additional phpv5.5 (having phpv7.1 already installed) on my server.  I'm using centos 6.8


Should I use q-values or p-values when presenting results?

I am presenting an analysis in which I performed a number of tests for N variables. The variables which are significant at q < 0.05 are presented in a table (q is the Benjamini-Hochberg corrected p-value) along their q-value.  A colleague argues that since we are only presenting a few variables, one should show the actual p-values rather than the q-values in the table, since without the context (all other variables that were not significant) the context is lost and the q-values are misleading.  What do you think?


Extract value from XML file using shell script

I have file filestore.xml from which I need to extract /local/armdata/data/filestore1, /local/armdata/data/filestore2.  grep binariesDir filestore.xml     <binariesDir>/local/armdata/data/filestore1</binariesDir>     <binariesDir>/local/armdata/data/filestore2</binariesDir>   Is there any way to do this?


Invalid field count when uploading CSV to a data extension

I tried uploading non-English text to my Data Extensions but the system is throwing error named "Invalid Field Count".


We are in an impartial hearing to get special education for our son.  The school social worker testified a tremendous load of lies, distortions and nonsense.  She (having set herself up as an armchair expert on everything in the DSM-5) didn't see any outward signs of OCD or anxiety in the child => therefore the highly qualified experts' diagnoses (made after careful work-ups) must be total B.S., and the child's parents must be delusional.  I need to describe her (or her statements or her attitude) in my written closing argument.  Know-it-all feels too informal for this kind of document.  Unhumble isn't a word.  Dismissive only covers part of it.  I want to get at the arrogance of the ignorant.  Well, not exactly ignorant.  It's a person who thinks that from a two-week unit in one college course she has now mastered everything there is to know about a complex psychiatric condition.  Her knowledge is at the level of a dabbler, but being an anti-snob, she thinks that her down-to-earth intuition and street smarts make her better qualified than the highly trained specialists.  (Whom she laughs at.)  It's okay to pull in a character from popular culture who fits this description, perhaps with some sarcasm.  Sometimes such an approach is very effective.  See .  If you come up with something really good that is a different part of speech, e.g. a verb, that's okay, I'll try to work with it.  I was asked to give an example sentence.  I'll try, but really, I would rather put together a sentence around a particularly effective word or phrase that really gets the idea across.  In her conceited ignorance, Ms. X dismisses the child's OCD, on the assumption that if the symptoms are not trotted out in her office, the condition must be a figment of his parents' imagination.  (In a separate sentence I'll give a statistic about how long, on average, it takes OCD to get diagnosed, because it can be so well hidden.)  Note 1: the answers suggested to the OP who was looking for  did not have the formal tone I need.  Note 2: Quack, etc., don't work here. If I take my son to see a doctor or therapist, and I think the person is a quack, that's different from the current situation. I would be paying the quack. Here, the social worker is a gatekeeper who is preventing the child from getting needed services and accommodations. She is the queen who gets to decide who gets what, and she can do so in a completely arbitrary way.  Note 3: Charlatan doesn't work because she isn't pretending to be an expert on OCD, etc. She just assumes she has enough knowledge of the subject to say "I did not see any evidence of OCD" => "therefore the parents are blowing a little bit of normal adolescent anxiety out of proportion". Pretentious is a little different from pretender. Pretender doesn't work, for the same reason as for charlatan.   She hasn't made unjustified or false claims or statements about her personal status, abilities, or intentions.  She just thinks she knows better than the experts (whom she thinks have been manipulated by the horrible, Machiavellian parents).  Note 5: Please don't get too sophisticated on me!  If I use a word the hearing officer doesn't know, I'll have to explain it, and then I'm back at square one!  Anyway, I'm glad the question got reopened, I'm seeing a number of promising ideas here.


How to draw change-of-coordinates notation in LaTeX?

For a homework assignment, I'd like to include something like the following image in my document as a single term in an equation:   I know I could simply use another variable name, but my professor prefers this notation. My main problem is placing the P above the B \leftarrow C; is there a way to do this?


Why are my picture not as sharp when shot RAW as when saved as JPEG

Newbie question here.  I shot an image in low light in jpeg format and it's crisp, but when I shoot raw in plain day at 1/125, my image looks blurry most of the time. Unless I max out the sharpness gain, and even so they're not as crisp as when shot directly in jpeg or using a phone.  Below I have two images for comparison. The first image was shot with the settings to save as JPEG. I shot the second image of the flower in RAW, then saved as JPEG in Adobe Camera Raw without making any edits. The image was shot at 1/125 f25 at 55mm (plus crop factor) with VR enabled. - I don't think at this focal length and speed the movement provoked by pressing the shutter would be an issue, would it?   Both were shot with the same Nikon D5500 DSLR with the basic 18-55 3.5 lens.  I like the flexibility shooting in RAW format gives, but I hate finding all my pictures a bit blurry. What settings do the camera applies when it saves as JPEG and how can I edit my pictures in Camera RAW to achieve the same baseline sharpness ? Is there a good read about the RAW format vs saving in JPEG to get me started ?   Although the DOF is short, the ball that is in the front is very crisp. We can see the dust on the glass bowl.   Image shot in RAW, not as crisp. I am not seeing the details on the petals as much as I would like.   PS. I am aware the two images are hard to compare, but I am using them just to express my question. It's not meant to be a scientific analysis but a means to communicate my question. I have many other images which were shot in RAW and present the same issue. My question is : am I missing something obvious that could explain this ?  Thanks!!!


Let $V$ be a vector space with $\dim V=n$ . If $\ker f\subset \ker g$ where $f,g $ are non-zero linear functionals then show that $f=cg$ for some $c\in F$.  Now let $\mathcal B=\{v_1,v_2,\ldots ,v_n\}$ be a basis of $V$, since $f,g$ are non-zero linear functionals then $\exists v_i\in \mathcal B $ such that $g(v_i)\neq 0\implies f(v_i)\neq 0$ Take $i=1$ without any loss of generality so take $g(v_1)\neq 0,f(v_1)\neq 0$. Now take $c=\dfrac{f(v_1)}{g(v_1)}$ Then we need to show that $(f-cg)(v_i)=0\forall i$ Now $(f-cg)(v_1)=0$ How to show that $(f-cg)(v_i)=0\forall i\ge 2$ Can someone please help? Note::Another Question Why do we need the dimension of the vector space to be finite?


I have some trouble with my MacBook Pro screen : on it appeared a transparent strip. It's visible from the MacBook start and I can't make it disappear. However, I still can click on files, softwares...  I've already tried :   Many restarts Safe mode Reset NVRAM Apple Diagnostics   When I plug another screen with HDMI I don't see it on 2nd screen.    Weird thing is that this strip has disappear once after using a full screen app for some time. But today after 2 days without using it, it's now more visible and flashes when I'm on some apps (but not flashing on desktop).  Thanks !


I came across this English sentence when I was reading an article:     Have you ever met anyone on holiday who you were friends with at school or university?    Wasn't it supposed to be "friend" in place of "friends" there?


How to create user with only SSH permissions

I need to create a user which can SSH to a server, but can not run any commands or view anything, for the purposes of tunneling the connection without risk of revealing credentials. How do I do this? I looked on google but found no sources.  Edit: Would it also be possible to show a certain message to the user upon login? Instead of the usual 'Last logged in from xxx at yyy'?


New York stopover on EU passport for dual US citizen during transatlantic trip

I am flying from London to Central America and back this summer on a bit of an extended holiday.   I am considering stopping over in NYC on the way back for a few days. (My flight from Panama to London would be through NYC anyway and got offered a good deal by a travel agent.)   I am residing in London as an EU citizen and I always use my EU passport to get around the world. However as I was born in the States I am also a fully fledged US citizen with the blue passport. The only time I've used my US passport in the past was for a US holiday a decade ago. I've never lived in the States so I don't sound American etc.   I want to book my flights and travel around Central America using my EU passport for simplicity's sake.   However I have come across on the US foreign office website a bit stating that US dual citizens can only enter and exit the State with a US passport.   What should I do?   I assume that I can't check into my flight on a European passport then enter and exit US border control with a US passport?   Can I just ignore the fact that I've got a US passport and hope they don't clock on it? My EU passport will state my place of birth as the States but as I've said I don't sound American or anything. Is that risky?   I don't want to be turned back at the gates on my first NYC trip!


Yesterday I was updating some applications. I come back later and I see a red stop sign on top of my screen that stated there was an error. It said that some of my packages needed some dependencies. I ignored it and shut off my laptop. Now Ubuntu starts up and takes me to my login screen but freezes. I can't move the mouse or type in my password. Does anyone know how I can fix this?   I hope this was clear enough, I'm a newbie with ubuntu. I have a 2012 macbook pro 15inch.


I've done some googling, and looking around this stack overflow, but this one seems to elude me.  How might I reduce/edit the displayed bash name on the terminal prompt? I.E.  This:     fresearch@fresearch-MM061:~/Desktop/blog$   To:     |>$   I (sort of) know who I am, and (sometimes) know where I am. I have a small laptop screen, and would rather have the screen space. I have read through some of the bash man pages, but I decided not to start mucking about with vital settings files, and no idea what I was doing.  Thoughts?  Thanks!


Approximation of Riemann integrable function with a continuous function

I have proved that if $f \in R[a,b]$ and given $\epsilon > 0$ there exists a continuous function $g$ such that $$\int_a^b |f-g| < \epsilon$$ I was wondering if using this fact there is some way to show that there is also some continuous function $h$ such that $$\int_a^b |f-h|^2 < \epsilon$$ Any help will be appreciated, thanks :)


Biblatex + Xelatex does not display accents

Biblatex works fine with pdflatex, but when compiling with Xelatex, suddenly accents disappear.  MWE:  \documentclass{article}  \usepackage[ backend=biber, style=alphabetic, citestyle=authoryear  ]{biblatex}  \usepackage{filecontents} \begin{filecontents*}{temp.bib}     @article{Beck_Johnson_2013,         title               ={The Effect of Temperature on \textit{{Anopheles}} Mosquito Population},         author              ={Bj{\' o}rnstad, Ottar N.},         year                ={2013},         journaltitle        ={PLOS ONE}     } \end{filecontents*}  \addbibresource{temp.bib}  \begin{document}  \cite{Beck_Johnson_2013}  \printbibliography \end{document}   With Xelatex:   With Pdflatex:


The universe appears to have a lower bound in the time dimension, why not an upper bound?

The Big Bang looks like a lower bound to the "size" of the universe in the time dimension. Could it also have an upper bound, some furthest point in time from the Big Bang?


The ttf-mscorefonts-installer is installed but no fonts in  /usr/share/fonts/truetype/msttcorefonts. message in this folder reads:  License refused.  Please reinstall the ttf-mscorefonts-installer package (e.g. via apt-get install --reinstall ttf-mscorefonts-installer to get prompted for the license again.   Re-installing the installer proceeds until license. Unable to click OK at bottom.  When attempting to install netflix-desktop I have the same problem. Message reads   It appears you have not installed MS true type fonts. You need to accept the license agreement and install these fonts for Netflix Desktop to work properly.   I checked the accept box in the previous screen but still get this message.


(This question is only as reference, I will add the answer myself)  Suddenly the search in the expl3 documentation interface3.pdf no longer works. As an example searching for "divis" gives this as the first hit:    In sumatra there is no problem, other files (e.g. source3.pdf) works fine. What could be the reason?)


There are those triangulated shadows on my object in the rendered viewport and in the render,I use a sun as a lamp.How to avoid those weird triangles?


My transaction log is larger than I'd like it to be, and I want to know how I can fix that.


Logistic regression: class probabilities

I am using logistic regression to solve the classification problem.  g = glm(target ~ ., data=trainData, family = binomial("logit"))   There are two classes (target): 0 and 1   When I run the prediction function, it returns probabilities.  p = predict(g, testData, type = "response")   However, it is not clear to me how to understand which class has been assigned?  Real  p   1   0.17568578 1   0.41698474 1   0.19151927 1   0.25587242 1   0.25604452 0   0.39976069 0   0.39910282 0   0.16879320   I appreciate if someone can explain me how this works based on the above example. Thanks


What is the correct format for if then? I tried lots of varieties. Should the format work at the command line when not in a program?  $ if [1==2] then echo "y" fi; > ; -bash: syntax error near unexpected token `;'


How do I detect a tile map collision's direction?

I'm implementing collision detection with the map for my platformer. I have a method that generates a polygon on every tile and checks if the player hits it -- that's all fine. The problem is that when ever a player touches a wall in front of him the d key which moves him to the front gets disabled so he can't walk any further that way.  This method works great for preventing him from walking into walls, but I also want him to be able to jump on the walls and there is the problem. So he falls on the tile(polygon) the game senses that and applies the same method for the d key, preventing the character from walking left or right, because the game thinks it is hitting the tile in the front but it is hitting from above.  Long story short, the game handles collision from above same as from the front or back. How do I make it recognise collisions from the side separately from above?  My code is along these lines:  if(PlayerPolygon.interesects(TiledPolygon) && dKey==1) {          moveX = 0; } if(dKey==1) {   player.x +=moveX }


A quick definition of asset is a useful or valuable thing, person, or quality.  Can a high credit score be thought as an asset ?  I am not asking what can I do with my credit score, I am simply asking, is it an asset or not. If Yes then up to what degree and if not then what attributes are missing.


Start bounty on Stackoverflow.com question and got Page Not Found

I tried to start bounty here:    But I got this strange error after I submitted:    Any idea?


Show warning or 404 when following permalink to deleted answer

When following a permalink to an answer that has been deleted, most viewers get to see the question instead. (The browser cannot find the <div id="answer-xx" ...> to scroll to, unless one has enough reputation to see deleted posts.) Most of the time this is nice, but it can be confusing.  For those who cannot see deleted posts:   Could some warning be shown when this happens? If yes, then maybe even including the reason like on ? Such as:     The answer you were linked to has been deleted for reasons of moderation.  An alternative could be to show an actual 404 page. To ensure people can then still find the related question, that question should then be linked on that 404 page too.    I guess I'd rather keep the current behavior instead of a 404 page. I assume showing the question when an answer is deleted is very much on purpose, if only for search engines? I like it too.  Like for some time, following links to deleted answers from the global Inbox did show a 404. In that Inbox, links to answers actually use the URLs for questions. Like  where 75129 really is the answer, not the question. For deleted answers this used to show a 404 for those with limited access rights. But nowadays it always redirects to the full URL, where the browser won't scroll for those who cannot see deleted answers. I like that better.


Light is a high frequency electromagnetic wave. Can an LC oscillation circuit emit visible light?

As we all know, light is a kind of high-frequency electromagnetic waves. Can LC oscillation circuit emit visible light?


In how many ways can we choose k items from n distinct items put in a circle.   Then further extension of the question, if I want to find out the number of ways to choose k items from n distinct items in a circle such that no 2 are together.  Thanks


Trying to understand how [::-1] works in Python

What does g(xs[:-2]) mean? def f(xs):     def g(ys):         return ys[::-1]          return [x-2+(2*7/4) for x in g(xs[:-2])]


List packages - software with their size and last use

I would like to know if there is any way on ubuntu to get a list of softwares/packages installed on the machine with their size and last use.   This is something which I have on windows and it is really useful because it helps me understanding which software I installed and which of them I am not using anymore. In this way I could delete them in order to make some space on my computer.  I am on Ubuntu 14.04 and the command  dpkg -l   Just gives me a list of software but NOT their size/use   Thanks in advance for your help.


Can the stack exchange system work with subjective and argumentative websites?

The first experiment of a subjective proposal -  - was created 11 days ago and has been in public beta for 4 days so far. As a private beta user I followed the website since day 1, reading most questions (even though I didn't actively participate much), and so far my impression is very good: programmers is a wonderful website to read when you have some time to kill. It's like reading a magazine. In my opinion, reading  is much more fun than reading , and thus it's no surprise that most of the  actually belong on programmers, as they are subjective/argumentative (but have been grand-fathered). I believe that the very nature of subjective answers make them more interesting. Of course there is a (big) place for non-subjective websites where you can get help or help with a specific problem, but I think there should be a (big) place for subjective websites too. It's early to say (this is meant to be an ongoing discussion that will probably last months), but so far programmers seems to be one of the more successful - if not the most successful - proposals ever created. It has , and the only beta website with more views is gaming. So, what do you say? Should subjective proposals be allowed? Can they be successful?


I want to echo the domain tld such as .com or .net from any domain  althought I want to echo if this domain https or http  example :   I want to echo com and https  example 2 :   I want to echo info and http  example 3 :  I want to echo info and http  I have tried this     <?php  function get_domain($url) {   $pieces = parse_url($url);   $domain = isset($pieces['host']) ? $pieces['host'] : $pieces['path'];        if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {     return $regs['domain'];   }   return false; }  echo get_domain("https://facebook.com");  ?>     but this  echo facebook.com  edit: I want to echo domain tld and the https/http


Why relativity doesn't rule out Inflation theory?

Nothing can go faster than the speed of light, then how at the time of inflation space expanded faster than the speed of light? Clearly universe had already begun at the start (10−36 seconds) of inflationary epoch.


s => s == 'w' - Help me understand this line of code

I am new to C# and coding in general and have a question on one exercise I'm doing. I am following the exercises on w3resource and I came across a challenge where I have to solve this:  "Write a C# program to check if a given string contains 'w' character between 1 and 3 times."  My solution was this:      var theString = Console.ReadLine();      var theArray = theString.ToCharArray();     int betweenOneAndThree = 0;          for (int i = 0; i < theArray.Length - 1; i++)         {             if (theArray[i] == 'w')                 betweenOneAndThree++;         }         Console.WriteLine(betweenOneAndThree >= 1 && betweenOneAndThree <= 3);         Console.ReadLine();   This worked just fine, but I checked their solution and it goes like this:  Console.Write("Input a string (contains at least one 'w' char) : ");             string str = Console.ReadLine();             var count = str.Count(s => s == 'w');             Console.WriteLine("Test the string contains 'w' character  between 1 and 3 times: ");             Console.WriteLine(count >= 1 && count <= 3);             Console.ReadLine();   I can't see 's' being declared as a char variable and I do not understand what it does here. Can anyone please explain to me what s => s == 'w' does?   Yes, I have tried googling this. But I can't seem to find an answer.  Thank you in advance :)


I want to create an array of lights contained within a space. There appears to be no way to apply an Array Modifier to a light object -- why not? Is there a non-Python way perhaps to create and space light objects without Python?


How do I set the hostname of a Windows machine?

There are several questions similar to what I'm trying to do here, but I can't find any that actually answer the question. Feel free to just link me if you find one.  I need to set the hostname of a Windows 7 machine. In Linux, it's a simple   hostname mymachine.mydomain.com   But on Windows, I can't figure out how to set my hostname to this without having an actual domain set up called mydomain.com.    Is it possible to do this? I have a DNS domain called mydomain.com but it is not a Windows active directory domain, so when I try to set it in the Network ID menu in sysdm.cpl, it doesn't recognize the domain and fails to connect.  Is there a simple way to do this in Windows?


Segmentation error in C when trying to concatenate a string and char

I keep getting a segmentation error when I try to add a character to the string test.  I have tried multiple iterations and can't figure out why I get the error.  I tried having the test set to \0.  I can't figure out how I am accessing outside test.  #include <stdio.h> #include <cs50.h> #include <ctype.h> #include <string.h>  #define _XOPEN_SOURCE #include <unistd.h> #include <crypt.h>  //this intializes the argument count and argument vector int main(int argc, string argv[]) {     //this makes sure it is a string     if (argv[1] != NULL) {         //this makes sure that the user typed 2 arguments,          //  the second being the keyword         if (argc != 2) {             printf("no hash inputed\n");             return 1;         }          //main program once the keyword has been verified         int h_len = strlen(argv[1]);          string hash = argv[1];         string test = "A";         int p_len = 0;         printf("H len is %i and P len is %i\n", h_len, p_len);         printf("%s and test: %s\n", hash, test);          //this will iterate through the 1st space and test the charachters         for (int j = 0; j < 4; j++) {              //iterates through the characters that can be used in the  password             //for (int i = A; i < z; i++)             //for (char ch = 'A' ; ch <= 'z' ; ch == 'Z' ? ch = 'a' : ++ch )             for (char i = 'A'; i <= 'z'; i++) {                 //this skips the ASCII inbetween Z and a                 if (i > 'Z' && i < 'a') {                     i = 'a';                 }                 printf("%c", i);                  //test[j] = test[j] + (char)i;                 test = strncat(test, &i, 1);                 printf("  test is %s\n", test);                 ...


Can sites like Reddit see your real IP address when you're behind a proxy?

I was trying to create a reddit account but didn't want to use my real IP address for it. So when I was trying to find a working proxy I kept refreshing the site to test each one, then when I found one it told me they have been getting too much requests from my computer and I had to wait like 10 minutes before I could sign up. How did they then know that all the requests were being made by the same PC when I was behind a proxy? I even tested the IP to check that it was different from my real one and it was.


Why are my HashMap contents not printing?

I'm writing a program that reads in a text file line by line - then stores each sentence in a HashMap with the sentence as the key and number of letters in that sentence as the object. This is the code I wrote, with comments:       FileReader reader = new FileReader(new File("src/test.txt"));     BufferedReader br = new BufferedReader(reader);     HashMap<String, Integer> map = new HashMap<String, Integer>();     StringBuilder builder = new StringBuilder();     String line, sentence;     int letters = 0;     try {         // While there are more lines to read          while ((line = br.readLine()) != null) {             String[] words = line.split(" "); // split line into words, add to array             for (int i = 0; i < words.length; i++) { // loop through array                 letters += words[i].length();                  // if the word ends with "." then we have reached end of sentence                 if (Character.toString(words[i].charAt(words[i].length() - 1)) == ".") {                      for(String word : words) {                         if(builder.length() > 0) {                             builder.append(" ");                         }                         builder.append(word);                     }                     sentence = builder.toString(); // store sentence                     map.put(sentence, letters); // add to HashMap                     letters = 0; // restore letters back to 0                 }             }         }     } catch (IOException e) {         e.printStackTrace();     }      for(String key : map.keySet()) {         System.out.println(key + " has " + map.get(key) + " letters");     }   For some reason in that little for-loop at the end nothing gets printed. I notice that if I write a print statement before the for-loop to print out the size of my HashMap it prints out "0" - so I'm assuming that my HashMap isn't being populated.   Does anyone know why this might be the case? This is the text file I'm using:   this is a test.  this is a test.  this is not a test.  this is a test.  this is not a test.  not not not not not not not   Really appreciate any insight, cheers.


Does light accelerate inside event horizon

Any object which reaches close to a black hole accelerates towards it just like an apple accelerates towards earth when released from a height.  My question is that what happens when light reaches close a black hole does it accelerates and if it accelerates then its speed would become greater than 299,792,458 m / s which is a speed limit of anything in the universe.  So should it accelerate or not.


Edit and create more text files in git with command line

I'm trying to learn using git in windows with command line. I want create a txt file in master, then create 2 branches and modify text differently but I have a problem. I succesfully create repository file. Then I add the file and commit it. No problem until this point. After this I create and checkout to new branch with code: git checkout -b feature2  Then I open the text with notepad(with command) and modify and save it. Then checkout to master and when I open the text it is modified version. So I can not create third branch with different text. It seems that there is only one text file to all branches. What do I miss?


Querying DE for subscriber Status = Active not working?

We're trying to find the number of subscribers who are marked as "ACTIVE" in a Data Extension. Seems simple enough, right?    Here's our SQL  SELECT a.Email  From [Newsletter List] a JOIN _ListSubscribers b ON a.email = b.subscriberkey WHERE Status = 'active'   But, when we run it the number is WAY too low (700K out of 1.1MM). I know that's low because we sent email to 1MM names just this week.  The DE is part of a child BU.  No email is sent from the parent BU. Does this impact the query?  What are we missing here?


Not receiving email confirmation on My filtered tags

I have tried to subscribe to my required tags for every 3 hours. But it just doesn't work. I have also tried "resend confirmation mail"; the page says confirmation mail sent. But I have not received any mail since I have been trying. There are many new questions and updates for these tags since 2-3 days. But I do not get any update mails either. My subscription email id is gmail id. I have not blocked any mails in my settings. Please note, in past I have received updates for my own questions. So getting mails inside my gmail inbox cannot be an issue.  Why I am not getting the confirmation mail from stackexchange??  Here is snapshot of how I am trying to subscribe:-


Temporary block all incoming and outgoing except chrome in Windows Firewall

Possible Duplicate:          I sometimes work outside and are using a 3G usb connection with quite a limited data allowance.  I want some fast and easy way to temporary block all incoming and outgoing traffic in windows firewall except for chrome to be sure that Dropbox or something else is not using up my data.  I've tried to set Windows Firewall Properties to "Block" which gives "Outgoing/Incoming connections that do not match a rule are blocked".  Problem: There are many allow-rules like Dropbox that would "override" the block. And I don't want to disable all rules and then enable them, since there are some that I want disabled even when I get to the office...  Any suggestions?  Thanks!


The individual questions take up a lot more vertical space in the question listing compared to any other site.  As you can see in the screenshot below, SO can fit about 5 and 1/2 questions in the same space that Meta.SE fits 3 questions.    Is this on purpose or because the site is still being worked on?


Safety of encryption when knowing part of the content

I want to encrypt a JSON file while exposing its interface (the name of the object fields) in clear text. Since this exposes part of the content of the file, my guess is that an attacker could use this to hack the encryption key. Are there encryption methods that can circumvent, or at least be safer for cases like this? I am mostly convinced that knowing part of the content of an encrypted file can make attacks easier, but I do not know if there is a technical term for such conditions or how to evaluate if some algorithms are safer or not. So far I am specially interested if using aes-192-cbc or gpg would be OK.


I am confused with preposition. I have experiences in the field of children and young people or I have experiences on the field of children and young people? which is correct?


Conjectures Involving floor(x)/piecewise continuity with regards to Integration and Differential Equations

[This answer has been heavily edited in response to a long chain of comments on Eric Stucky's answer.]  I came up with these few theorems and I am curious whether or not my hypothesis are true. I don't really have a method for proving these, mind you. I'm more considering these as things I've noticed to be true. I just don't know whether they are always true.  Some of these are definitions to which I will append "def." to the end of the title. Think of these as a given. It's like how the integral is defined abstractly as area. I'm defining terms.  Jump Series Theorem def.  A function $f$ [consisting of floor] is said to have a jump series if there is a series $\Sigma=\sum_{n=1}^\infty a_nH_n$ of scaled step functions such that $f+\Sigma$ no longer has any discontinuity attributable to floor. The sequence of scaling factors $a_n$ is called the jump sequence for the function.  Definition of Implied Derivative def.  We define the evaluation of the implied derivative of a function $y$ at the point $x$ as the set of values $y^{\to}(x) = \{y | y = \lim_{h \to 0^+} \frac {y(x+h) - f(h)}{h} \lor y = \lim_{h \to 0^-} \frac {y(x+h) - f(h)}{h}\}$. It is in this sense that the implied derivative has the potential of being a multi-valued operator.  Jump Series Resolution Theorem  [The original wording is preserved; I have a formalism but it assumes that having a jump function is equivalent to being piecewise continuous, which I'm not sure is true.]   The integral of a floor-based function is floor treated as a constant minus the appropriate jump series of the integral.  Integration Continuity Theorem  The (ordinary) indefinite integral of any function $f$ having a jump series must be continuous (or fixably discontinuous) on the domain of $f$. However, this can vary for the implied indefinite integral.  Calculus Jump Theorem def.  [Again, the original wording is preserved; the meaning of this phrase has not been properly illuminated]  Any form of jumping within a function representable as a floor function can be considered as a portion of the constant of the implied integration for floor.  Jump Location Theorem  For any function $a(x)$ with a jump series, the function $\lfloor a(x)\rfloor$, has points of discontinuity precisely at those $x$ such that $a(x) - [a(x)] = 0$.  Composite Floor Function Jump Sequence Theorem One  If $a$ is a function such that $a(x) - \lfloor a(x) \rfloor = 0$ when $x - \lfloor x \rfloor = 0$, then the jump sequence of the composite function $f(x - \lfloor a\rfloor)$ is a constant value $f(0) - f(1)$.  Implied Differential Equations Conjecture  Any continuous solution to an equation constructed with implied derivatives of various orders is the same as the solution to the similarly constructed differential equation.


Could Harry turn into an obscurus, if Dursleys were successful in keeping him away from Hogwarts

Given the fact that Dursleys were cruel towards Harry and didn't ever want him to know that he is a wizard. If they were somehow successful in keeping him away from Hogwarts, I wonder would it be possible that Harry's magical powers if continuously suppressed by Dursleys turned him into an obscurus?


Copy\ Paste folders and subfolders with python

continuously to  , i work with arcview 10.3 and ptyhon 2.7.8. I try to copy a folder (dir_src) that divided into a lot of subfolders (all subfolders contain files and also gdb files) to other folder (dir_dst). i try this code:  import os,shutil  dir_src = r"C:\Project\layers" dir_dst = r"C:\Project\new"  for file in os.listdir(dir_src):     print file      src_file = os.path.join(dir_src, file)     dst_file = os.path.join(dir_dst, file)     shutil.copytree(src_file, dst_file)   and get error:    File "C:\Python27\ArcGISx6410.3\lib\shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 13] Permission denied: 'C:\\Project\\layers\\New File Geodatabase.gdb'   any help would be great.


Cron, command is working, but not in cron, missing }

I have this cronjob.  50 15 * * * cd /var/www/html; for i in $(ls -d */); do tar zcvf ${i%%/}.tar.gz $i; done   But it shows me this.  /bin/sh: 1: Syntax error: Missing '}'   But when I run this command from command line directly, it works.  Where is the problem?  Thanks.


Better way to return the index of an element from a list, with element BEHIND preferred

for example, there is a list: numbers = [1,2,3,4,2,1] print(numbers.index(1))  output is 0 element behind is preferred means that, the index of the "1" at the end should be printed instead of the the "1" at the beginning. i.e. output should be 5 A baseline method of "reverse the list" is provided bellow, it there a faster & simpler way to do this? numbers = [1,2,3,4,2,1] numbers.reverse() output = [] for i in range(1,4):     inv_inx= len(numbers)-numbers.index(i)-1     output.append(inv_inx) print(output) assert output == [5, 4, 2]


Bluetooth Not connecting - Searching for Devices - 18.04.4 LTS

My system is not detecting any Bluetooth device and i checked similar questions such as these -  None of those links helped. I would like to know what to look for to identify whats missing at the first place. any help is appreciated  dmesg | grep -i blue [   23.314055] Bluetooth: Core ver 2.22 [   23.314074] Bluetooth: HCI device and connection manager initialized [   23.314077] Bluetooth: HCI socket layer initialized [   23.314079] Bluetooth: L2CAP socket layer initialized [   23.314088] Bluetooth: SCO socket layer initialized [   24.733996] Bluetooth: hci0: BCM: chip id 70 [   24.734998] Bluetooth: hci0: BCM: features 0x06 [   24.750996] Bluetooth: hci0: akash [   24.750999] Bluetooth: hci0: BCM (001.001.011) build 0000 [   24.943442] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [   24.943446] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   26.976024] Bluetooth: hci0: command 0x1003 tx timeout [   26.976976] Bluetooth: hci0: unexpected event for opcode 0x1003 [   51.085298] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   51.085300] Bluetooth: BNEP filters: protocol multicast [   51.085303] Bluetooth: BNEP socket layer initialized [  105.580132] Bluetooth: RFCOMM TTY layer initialized [  105.580152] Bluetooth: RFCOMM socket layer initialized [  105.580167] Bluetooth: RFCOMM ver 1.11 [ 8328.267411] Bluetooth: hci0: BCM: chip id 70 [ 8328.268372] Bluetooth: hci0: BCM: features 0x06 [ 8328.284464] Bluetooth: hci0: akash [ 8328.284477] Bluetooth: hci0: BCM (001.001.011) build 0000 [ 8328.315338] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [ 8328.315345] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [ 8330.341315] Bluetooth: hci0: command 0x1003 tx timeout [ 8330.342261] Bluetooth: hci0: unexpected event for opcode 0x1003 [ 9003.350396] Bluetooth: hci0: BCM: chip id 70 [ 9003.351370] Bluetooth: hci0: BCM: features 0x06 [ 9003.367383] Bluetooth: hci0: akash [ 9003.367395] Bluetooth: hci0: BCM (001.001.011) build 0000 [ 9003.367442] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [ 9003.367449] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found


Tag encoding breaks when redirecting after successful login

Here is a little bug I found, this is the step I followed :  From SO, click the ad link to look for a job in Careers suggesting the 'C#' tag  View the job list in Careers, with 'C#' written in the keyword field  Click on 'create account' because you don't have one yet, and create it with your SE account  Once Carrers is allowed to access your information, you are redirected to the job list you were looking previously, BUT : the '#' is gone, new keyword field value is only 'c' EDIT : Finally this thread is not duplicated with  as the issue explained there is supposed to be fixed since 2014, and I had the bug I explained today. I think my issue is slightly different, as my bug is not related with table sorting.


What can i do now? It was denied because of my account overflow and now we fix it and re-applied this is what i got.


Google keeps redirecting me to a country domain

I installed a new OS and I added Google Chrome to it.  Now whenever I search for something it searches in google.com.cy. I do not want to keep searching there; I want it to search in google.com. For example if I search something in the Google Chrome Omnibox, after it searches the wanted result it searches in google.com.cy. If I click a new tab it brings me again Google in region. I want to prevent this.


Surjectivity of Composition of Surjective Functions

Suppose we have two functions, $f:X\rightarrow Y$ and $g:Y\rightarrow Z$. If both of these functions are onto, how can we show that $g\circ f:X\rightarrow Z$ is also onto?


Does blocking an attack with the Shield spell still trigger Armor of Agathys?

I am contemplating a Oath of Conquest Paladin / Sorcerer multiclass character, with a 1 level dip in hexblade warlock. This character will have access to the Armor of Agathys and Shield spells, which potentially allows for a pretty nice combo. The Shield spell states (PHB 275):  Casting Time: 1 reaction, which you take when you are hit by an attack or targeted by the magic missile spell... Until the start of your next turn, you have a +5 bonus to AC, including against the triggering attack,  It looks like you are indeed hit by an attack, but since you have a bonus to AC, you can potentially force that attack to miss instead. Armor of Agathys states (PHB 215),  If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.  If I cast Shield and cause an attack that "hit" me to miss, does Armor of Agathys still deal damage? I am leaning toward yes, though this combo seems a little too strong--Shield is already a strong spell, and this character will eventually have 9 1st level spell slots and a 7th level spell slot. Not only can they freely block attacks with Shield, but they can also deal up to 35 (5d10) damage to the attacker without an attack roll or saving throw. While a Warlock would have to spend both of their spell slots to do this once, my character would be able to do this 4 times with spell slots to spare. Some notes:    ask about reducing the damage from a confirmed hit to zero. This question is asking about what happens when the Shield spell causes the attack to miss entirely. A number of online resources, such as the Roll20 5th edition compendium, seem to be missing the correct casting time for the Shield spell. Answerers should make sure they're looking at the correct version from the PHB.


Unknown Parsing error for less than operator for number fields

I have a simple query where there 2 number fields Total_Amount__c and Value__c but when i want to query in console it is throwing an unknown parsing error not able to understand what is the issue exactly here select id,Total_Amount__c,Value__c from account where Total_Amount__c <= Value__c


Can an argument be passed through the "alias" command?

I want to know if i can pass an argument with an alias command.  for example:  alias d="dmesg|grep -iw usb|tail -5"    Now d will print the last 5 lines. if i want to use d to print a different number of lines, i have to make change in the alias command declaration of d again.  Is there any way i can modify the declaration of alias command so that i don't have to retype the declaration to change the number of lines. Like incorporating passing the number of lines as an argument while declaring alias for d or is there some other method to solve this?


I have a big problem with my drive because when I try to put anything on it it says that is write protected.I seen that with diskpart would work but nothing,same with regedit.I need help quick with any methods that would work because I need to use the drive.


Story with the continuum hypothesis at the end

When I was in my teens, I think (if so it must have been in the seventies or early eighties), I read a short story about a single person landing in a space ship on a hostile military planet, and then driving everyone mad there with paradoxes. In this way he managed to beat them, or get out safely or something like that. Maybe even engender a revolution.  The reason I would like to find this story again, is that it ends with a description of him back in his ship and on his way, trying to think of a cardinality between those of the natural numbers and the real numbers. This clearly was about the continuum hypothesis, although I don't think it was named like that in the story. And then the story ends with something like "... and then he did not look stable at all."  This might have been a Robert Sheckley story, but I searched for a long time and haven't found it, so this may not be the case.


How to interpret ggbiplot() visualization of PCA in R?

To apply and visualize PCA in R often ggbiplot() is used. What is the meaning of this plot ? Why  it is useful for PCA ?  We can consider this example:     In particular, what is the meaning of arrows and circle?


What magic extends life or grants immortality?

Are there any magic items or spells that extend the natural life of a creature (meaning the age of the creature, and not preventing death from a wound or injury) or that grants immortality in the 5e books published by Wizards of the Coast.  I'm looking only for options available to PCs through character creation or options available to the DM via canon books.  What is not a valid answer is:   Reincarnation   A lich's phylactery   Raise dead   Resurrections of any kind Spare the dying   or similar effects.


How can I see a list of all open windows in a panel in Unity?

Is there any reason why this is missing from Unity? It's a really helpful thing to have when you have a lot of windows open.


Change beamer normal text color per frame

I would like to change the normal text color in a beamer frame with different colors for different frames.  In the following example, the frame title color seems to change correctly, but not the normal text color.  \documentclass{beamer}  \title{Example}  \setbeamercolor{normal text}{fg=green} \setbeamercolor{frametitle}{fg=green}  \begin{document}  \setbeamercolor{normal text}{fg=red} \setbeamercolor{frametitle}{fg=red} \begin{frame}   \frametitle{Red Title}   Some text in red \end{frame}  \setbeamercolor{normal text}{fg=blue} \setbeamercolor{frametitle}{fg=blue} \begin{frame}   \frametitle{Blue Title}   Some text in blue \end{frame}  \end{document}


As a graphic designer I have found it always very interesting that how designs made in past look very outdated, unfit, out of place, underwhelming and just wrong. Even though i know it's true designs/trends of today WILL become the old ones in near future. But why...what is it about us or designs that makes them like that to us.  So far I have thought of several things maybe it's one of these or mixture....   Newer designs/trends are in fact an Improvement? or .. Novelty of newer designs hasn't just worn off? So in comparison they look better. Old designs are beautiful it's just they functionally hard for us as we are accustomed to other forms of retrieving message.    But the thing that bothers me is that if most/some designs' newer version looks better just because it's better related to current era, achievements, and technical capabilities, then why does it appear that designs have improved in all last 10 iterations per decade. If my view is subjective to previous and newer design..then why do designs of era in which i don't live in or lived in appear progressively getting better.  For that i have also happen to have some things in my mind...   I am shortsighted in a way that most designs i get to see today are on digital media and digital media has been technologically challenged in its abilities so That means there is "Good Design" for the most part. There is Good Design and recently good UI, public representation, marketing is becoming a more of a priority...seriously most sites in past looked liked they were meant to be used by desperate people.  They were just designed bad without consideration of aesthetics..I say that because some art looks just amazing even if it was made 2000 years ago..some things just do look beautiful.   So do old art/designs/logo/typography look repulsive subjectively or they objectively are inferior?


How to retrieve the background images of Windows 10 lock screen?

These images seem to change constantly, every time it's a completely new image. Where do they come from, is there a way to retrieve them somehow?


Transit visa requirement. EgyptAir Mumbai to Toronto via Cairo

We are Indian passport holders, with valid visas for Canada. Plan is to take the EgyptAir flight Mumbai to Toronto, via Cairo. Problem is Egypt embassy website says we don't need Transit Visa if transit is up to 12 hours but here transit is 14 hours.    Has anyone with a Indian passport traveled this route? What was your experience at Cairo? Did you need a transit visa?


Number Theory Greatest Common Divisor proof

Prove the following: $\gcd(a^2,b^2)=\gcd(a,b)^2$


In the past I was using my Canon 430EXII and Godox AD200 with Godox X2T-C Trigger and it was working fine. Recently, my trigger broke and needed to buy a new one. Now I have Godox XProC, unfortunately, I could not get it peered with Godox X1R-C. I watched different Youtube videos, searched online, read the manuals but could not find what I am doing wrong. The transmitter and the receiver is both set to same channel and groups. Does anyone have any suggestion, what I may be doing wrong. By the way AD-200 fires fine. Thank you in advance!


This is the second time i hear songs with it don't instead of it doesn't. The first time i thought that it is just music and the singer made that change in order to let it fit  This is the first song   but now even Adele in here new Hello song, she says it don't    What is going on? is that normal? is it like old English rule? or just because of the music ?  As always: It is not duplicated for that question (listed) this is about it not about he.


iPhone warranty valid in another country?

I bought the iPhone 6 gold 64 gb three months ago from USA. But now I'm resident in India. Is there any way to transfer the warranty in India of my phone?


Which does 'only' intensify in: he only knew he was now married?

He only knew he was now married.  (COCA)   In the sentence alone, when there aren’t any other sayings, can you tell which ‘only’ intensify: (1) previous noun, ‘he,’ as in 'The bar is for members only()'; (2) its following words, ‘knew he was now married.’ Or do you have to defer your decision until you get further contextual information?


What are the criteria for a question to appear in the "Hot Network Questions" section?

I am asking out of curiousity, because I believe there are many questions that should be there but they aren't.


How to automount a share on every user on the computer?

I want to automount a share from a Ubuntu file-server on my Ubuntu client. I managed to actually mount it with with the following line in /etc/fstab :   //192.168.1.64/myProj3kt/myProj3kt /home/administrator/myProjekt cifs guest,uid=1000,iocharset=utf8 0 0    I tried to repeat the command in /etc/fstab with different users, but the following error popped up:  Unable to access "sharename" mount: according to mtab is already mounted on xxxx/xxxx   I read on this forum about a credentials-file but I never used/made one. Can someone help me?


$\epsilon{\rm -}\delta$ proof of the discontinuity of Dirichlet's function

How can I prove that the function  $$   f(x) = \left\{\begin{array}{l l}     x &\text{if }x \in \mathbb{Q} \\     -x & \text{if } x \notin \mathbb{Q}    \end{array} \right. $$ is discontinuous for $x \neq 0$, using $\epsilon$'s and $\delta$'s?  I see that is truth. But I cannot prove using only $\epsilon$'s and $\delta$'s.


Is the triple quotation mark legitimate (for translated foreign language quote)?

I was watching Last Week Tonight with John Oliver, and I noticed that it seemed that when he was quoting a foreign speaker, but in English, the written quote on the screen used a triple quotation mark:    I haven't seen this before, nor can I find it in the Unicode character chart or as a ligature. Is this something new, or am I misinterpreting what it means? Or maybe it was just a typo?  EDIT: I don't believe this is a duplicate question, as it seems to be simply a triple-quote mark, and not more than one speaker, or a quote-of-a-quote. That said, I did find another clip from the same show that does have the double-then-single quote, used in the traditional way:    The triple quote at the beginning does look identical, so my assumption is that the first picture above is just a typo. I do find it interesting that it almost looks like a ligature.


How to differentiate expressions with square roots and division

I'm having trouble working out how to differentiate expressions that have both division and square roots in them such as:  $$\frac{2x}{\sqrt{x^2+7}}$$  if someone could show me the necessary process that would be great.


If E is a Borel set in $\Bbb R^n$, the density $D_E (x)$ of $E$ at $x$ is defined as  $$D_E(x) = \lim_{r \to 0} \frac{m(E \cap B(r,x))}{m(B(r,x))}$$  Show that $D_E(x) = 1$ for almost everywhere $x \in E$ and $D_E(x) = 0$ for almost everywhere $x \in E^C$.  I am not sure what to do to prove this statement.  As far as I can tell, this is the Lebesgue Density Theorem, but I can only find proofs of this in the one-dimensional case (which is by far the easiest case).


I know that a domain name is resolved by a DNS server to an IP address, which is then used to reach the requested server. I'm slightly embarrassed that I don't know some of the details of how this works.   In order for my computer to ask the DNS service to resolve a domain, the DNS server must be known by my computer. I never explicitly told my computer about any DNS servers, so how does it know which DNS server it should use? Is it the ISP that pushes this information to my computer somehow? For that matter, where are these DNS servers located? Does my ISP have some DNS servers running somewhere which are used by all it's (the ISP's) customers? The DNS server my computer uses must know all domains in order to be able to resolve them, how are it's records updated/maintained?  Is there some central entity/registry/... that feeds a DNS server changes that have occurred? If I order a domain name somewhere, the seller has to establish a connection between an IP address and the domain name it sold to me. How are all DNS servers updated to know about this link? So in other words, what actions does the seller take to inform 'the internet' where this domain now points to?   I know this seems like a bunch of questions but I think they're just different aspects of the same story. Can somebody tell me how this all works together?


What is the difference between eclipse-cdt and eclipse IDE?


Class inheriting itself? Question about inheritance and the super() method

I have a question about classes, subclasses and inheritance in Python. I've been using Tkinter for GUI development for some time and have decided to learn how to use Kivy. In the Kivy documentation I came across a line of code that didn't make any sense to me. It is as follows (note, GridLayout is a class I imported from the kivy module): class LoginScreen(GridLayout):      def __init__(self, **kwargs):         super(LoginScreen, self).__init__(**kwargs)  The super call on LoginScreen and self instead of GridLayout really confuses me! Is the class inheriting itself? What is going on? In Tkinter I would write something like (note again that, tk.Frame is a class imported from the Tkinter module): class LoginScreen(tk.Frame)         def __init__(self, parent):         super().__init__(parent)  As I typed out these two examples I noticed that I am not passing anything into super(). Are the default parameters of the super method the name of the class and self? i.e. is the above akin to writing... class LoginScreen(tk.Frame):      def __init__(self, parent):         super(LoginScreen, self).__init__(parent)   If they are different can you explain why they are different, but if they are the same can you explain a little more in-depth as to how super() does what it does (beyond simply it inherits the methods and attributes of the parent class)?


"[adjective] and [adjective] [noun]" -- Should the noun be singular or plural?

In a scientific paper I submitted, a reviewer suggested that I change the sentence     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver side.   to     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver sides.   by changing the last word from singular to plural.  There is only one sender side and only one receiver side, so my intuition tells me to use the former version, since   one would clearly write "...both the sender side and the receiver side" and I'd also write "The green and the blue box are standing on the table" (instead of "boxes").   However, I failed to find a grammatical rule for this, and English is not my main language. Is the reviewer right? And why?


Recently I upgraded from Ubuntu 16.04 to 18.04. After the upgrade, I did the usual sudo apt-get update to be sure that I will have the latest updates. But when I tried to update my Nvidia drivers, I tried to detect the recommended one with:   ubuntu-drivers devices   and as usual, I got the recommended drivers and the graphics card model:  == /sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0 == modalias : pci:v000010DEd00001299sv00001043sd0000105Ebc03sc02i00 vendor   : NVIDIA Corporation model    : GK208BM [GeForce 920M] driver   : nvidia-driver-390 - distro non-free recommended driver   : xserver-xorg-video-nouveau - distro free builtin   So when I input the command:  sudo apt install nvidia-390  After reading the package, building etc., I got this message:  Package nvidia-390 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:   libnvidia-gl-390  nvidia-kernel-source-390:i386   nvidia-headless-no-dkms-390:i386  libnvidia-gl-390:i386  nvidia-kernel-source-390  nvidia-headless-no-dkms-390 E: Package 'nvidia-390' has no installation candidate   I know it says that is replaced but I observe some "pixel spikes" when I move a window. So did it fail. Should I do something else in order to update the drivers?


Computation of distribution parameters for the maximum of two random variables

Let $X$ be a beta distributed variable with parameters $a$, $b$. Let $Y$ be a beta distributed variable with parameters $c$, $d$. Let $Z = \max(X, Y)$.  Does anybody know of a fast way to compute the mean and variance of $Z$ given $(a, b, c, d)$?  $X$, $Y$ don't necessarily need to have beta distributions, but they should be similar -- in $[0, 1]$.  What I really want to find is a way to quickly approximate the distribution of the sample max of a bunch of random variables. Let $Z = \max(\{X_1, X_2,\dots , X_n\})$. If I know parameters (not necessarily beta-distribution) for $X_1, X_2,\dots, X_n$, can I quickly compute a set of parameters (same distribution as $X_i$) to form a distribution that closely approximates $Z$?    EDIT: To clarify, the purpose of this has to do with programming AI for board games. If we are evaluating a position in a chess game and we determine one move leads to a 60% chance of winning while all others have a 20% chance of winning, then we value the position as a 60% win. This is the minimax algorithm... However, what I'm curious about is whether this can be improved upon. In the simple case, we approximate: $$ \mu_c = \max(\{\mu_1, \mu_2,\dots, \mu_n\}) $$ where $\mu_c$ is the expectation from the current position and $\mu_i$ is the expectation from each of the sub-trees.  It seems like we should be able to do better than this. Can we find a function f that replaces max and closely approximates parameters for the distribution of the sample maximum? $$ (\mu_c, \sigma_c) = f\left(\{(\mu_1,\sigma_1), (\mu_2,\sigma_2), \dots, (\mu_n, \sigma_n)\}\right) $$ In this case, we still want $\mu_i$ to be the expectation from each of the nodes. However, $\sigma_i$ does not necessarily need to be variance/standard deviation; just a parameter that represents uncertainty.  Just as: $$ \max(\{a, b, c\}) = \max\left(\{\max(\{a, b\}), c\}\right) $$ We should expect: $$ f\left(\{a, b, c\}\right) \approx f\left(\{f(\{a, b\}), c\}\right) $$ So $f$ does not necessarily need to take parameters for more than two nodes.  One thing, however, is that $f$ should be relatively fast to compute. If the integrals must be calculated, I think doing double exponential integration might work well, but I'm not sure --


Why is the public/private key length used in libsodium so much shorter than needed for RSA

Reading the libsodium  I see that is uses a key length of 32 bytes (256 bit) for private/public key encryption.  For RSA private/public key encryption a key length of 2048 (or 4095) bit is suggested. Why is the key length in libsodium so much shorter? Is the used algorithm so much more "efficient"? Or is there something I am missing?


How to enable my flashdrive while im in the BIOS Setup Utility

Im trying to install Ubuntu 32bits on my ASUS Eee PC. I want to install it over Windows XP Home Edition, using my 8gb flashdrive. On my flashdrive I have Universal-USB-Installer 1.9.5.5 by pendrivelinux also on the drive I have Install Ubuntu with the Ubuntu logo. I have downloaded Ubuntu-14.04.1-desktop-i386, it has the Power ISO logo in front of it.NOW with all that said. Everythings working until I get to my BIOS Setup Utility Im typing everything that is under the BOOT tab.  HARD DRIVE DISK   1st Drive [HDD:PM-Hitachi HTS]   2nd Drive [USB: MyFlashdrive DT]   OPTIONS   HDD:PM-Hitachi HTS 543216L9SA00 [Disabled]   USB: MyFlashdrive DT [Disabled]    BOOT DEVICE PRIORITY   1st boot Device [HDD:PM-Hitachi HTS] Disabled   2nd boot Device [Removable Dev.] Disabled   3rd boot Device [ATAPI CD-ROM] Disabled     BOOT SETTING CONFIGURATION    Quiet Boot [enabled]    On Board LAN Boot ROM  [Disabled]    Boot Loader [enabled]      My question is how do I enable my flashdrive so I can boot up. HELP! I also tried the Ubuntu CD Helper, I get a error message. Could not retrieve the installation files. For more info, see the log files. I went thru the Uncheck Hidden files process, that didn't work either. PLEASE HELP          I WANT MY UBUNTU


I use golang for writing programs that are too complex to express as bash functions. The programs read stdin line by line and write modified output to stdout.  The problem with this iterating over all the lines in stdin approach, is that it doesn't exit early. For example, the following command will process all the lines instead of just 10:  cat largefile | custom-program | head -n 10   How do the native unix application manage to exit early and how can I do the same in my custom scripts?


I am currently working on my thesis and I discovered a nasty problem. I use the following code to reference a table:  \fref{tab:alternatives}   Now I defined the table like this:  \begin{table}[h]     \centering     \begin{tabular}{l|*{10}{c}}     %removed the content     \end{tabular} \label{tab:alternatives} \caption{Comparing functionalities} \end{table}   Now when I generate the pdf fancyref produces the following: "First in table 2.2" but the table is called: "Table 2.1.: Comparing functionalities"  How can this be?


I need help with wiring my range hood fan. My challenge is I need precise instructions on how to connect the 3 wires. Please see new range hood wiring diagram attached. How do I connect wires 1, 2 & 3 to the Hot and Neutral wires?  The hood has one switch for the light and one for the fan. The light works fine with the current configuration. I’m assuming the black wire coming out of the range hood is from the light switch.


Subdivision of a simple polygon into triangles?

Suppose that we have a simple and closed plane polygon. How to show (inductively) that every such polygon can be subdivided into triangles, see the following picture? Are there good reference books?   EDIT: Here is some additional material to prof. Blatter's answer:


For multiclassed warlock/clerics, do your spell slots from the two classes stack?

So I'm a new DM and one of my PC's who's a 1st-level warlock wants to multi-class into cleric. So he would essentially be a warlock 1/cleric 1.  Since the Warlock only has one 1st-level spell slot at 1st level while clerics have two at 1st level, do they stack, or do you just have two 1st-level spell slots? How exactly does this work?  Also, how would the number of cantrips change?


Expected JSON object to deserialize apex parameter from at []

I develop an Apex REST web service in Salesforce and I would like to test it with Postman. Unfortunately, I get an error message than I don't understand:  Expected JSON object to deserialize apex parameter from at [line:3, column:14]  This is the JSON I tr to send with postman:     {       "data":  [             {                   "attendantYear":"2014;2015;2016;2018;2019",                   "birthDate":"1981-12-11",                   "city":"New-York",                   "country":"USA",                   "email":"jean-paul.gus@gmail.com",                   "firstname":"Jean-Paul",                   "itra":450,                   "lastname":"Gus",                   "salutation":"Mr."             }       ] }  And this is how looks like my apex web service: @RestResource(urlMapping='/accounts/*') global with sharing class ABT_WSAccounts{      @HttpPost     global static String upsertAccounts(String data){         String result;          System.debug('--- data : ' + data);          if(!String.isBlank(data)){             List<Account> accountsToUpsert = new List<Account>();              List<ABT_AccountInnerClass> sobjects = (List<ABT_AccountInnerClass>) JSON.deserialize(data, List<ABT_AccountInnerClass>.class);             System.debug('--- sobjects : ' + sobjects);              .....         }          return result;     } }  And my inner class: global class ABT_AccountInnerClass{      global String firstname;     global String lastname;     global String salutation;     global Date birthDate;     global String email;     global String street;     global String country;     global String attendantYear;     global Decimal itra;  }  Please, can you explain me the error? Thanks


How to extract space from Ubuntu occupied Partition

I want to extract half of the space used by the sda1 that is being used by my Ubuntu 17 OS to Dual boot with windows.   Is there any safe way of doing this without losing any data?


Is answering beyond the scope of the question a valid thing? Or should we just stick to the question asked and ignore any potential bugs which might be present (of course OP is unaware of that, as of now).  To make myself more clear, please have a look at this .  There are 3 answers which talk about the issue asked and that's it. If you look at my answer, I've added an additional point about a potential bug which the OP has missed now (may find out later). So is it a good thing to point out such potential bugs or not? Should this practice be encouraged?


Error while running sudo apt-get update: "ModuleNotFoundError: No module named 'apt_pkg'"

I am relatively new to Ubuntu. I have been trying to run sudo apt-get update only to get a error. This has not happened to me before.  $ sudo apt-get update Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease              Hit:2 http://dl.google.com/linux/chrome/deb stable Release                Hit:3 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease              Hit:6 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease      Hit:7 http://in.archive.ubuntu.com/ubuntu bionic InRelease                     Hit:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease             Hit:9 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease           Get:10 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]   Fetched 88.7 kB in 9s (9,888 B/s)                     Traceback (most recent call last):   File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator   File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator   File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code   What could be causing this problem, and how can I fix it?


Accidentally deleted files on Windows 7 partition when upgrading to Ubuntu 16.04

I accidentally lost all my data on the hard drive. I thought only C: drive would be erased.  I am now on Ubuntu 16.04. Is there any way to resolve this in an easy manner?


Consequences of unbalanced subgroups of categorical variables in logistic regression?

I have a dataset of around 120000 (120K) unique individuals. I am fitting a binary logistic regression, where I have around 150 variables to choose from. For the categorical variables, some are very imbalanced. For example, there is a variable that can take on Yes (=1) or No (=0). There are 119K individuals with Yes and the remaining 1K with No.    What are the consequences of having such a variable in the logistic regression?  Can it make my results unstable if I have many of these (say 10-20 similar variables), when using stepwise (forward) or backward automatic selection procedures?  What if the predictor / variable is not binary, but has for example 5 categories where 1 category is largely over or underrepresented?


How to make tr aware of non-ascii(unicode) characters?

I'm trying to remove some characters from file(UTF-8). I'm using tr for this purpose:   tr -cs '[[:alpha:][:space:]]' ' ' <testdata.dat    File contains some foreign characters (like "Латвийская" or "àé"). tr doesn't seem to understand them: it treats them as non-alpha and removes too.  I've tried changing some of my locale settings:  LC_CTYPE=C LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' <testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' <testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=ru_RU.UTF-8 tr -cs '[[:alpha:][:space:]]' ' ' <testdata.dat   Unfortunately, none of these worked.  How can I make tr understand Unicode?


Which one is more correct:     Melissa said she was going to the mall.     or     Melissa said she is going to the mall.


How to switch to underlying window of the same application?

If I have 2 windows of the same program open (Google Chrome for instance), and I want to get to the underlying one, how can I do that -- without minimizing the fore window.  If I click the Chrome icon, in the bottom tray it justs shows me the window in the front. There is no window in the right of the tray since it it not minimized. If I command+tab, I just get one icon for the application, which focuses the window that is already in front.  The only way I know of to get to the rear window is to minimize (or move out of the way) the front window. I find this slightly annoying, (and sometimes even forget I have a second window open because I don't know of anything indicating there is a second window open?)   So is there another way?


Apt server certificate error with download.01.org

I should begin by mentioning that I am very new to Ubuntu and I am in the process of getting used to it.  Every time I try to update it gives me back an error. I have put it here in my question. Please tell me what to do.   Ign http://archive.ubuntu.com trusty/main Translation-en_IE                     Ign http://archive.ubuntu.com trusty/multiverse Translation-en_IE               Ign http://archive.ubuntu.com trusty/restricted Translation-en_IE               Ign http://archive.ubuntu.com trusty/universe Translation-en_IE                 Err https://download.01.org trusty/main amd64 Packages                            server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Err https://download.01.org trusty/main i386 Packages   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Ign https://download.01.org trusty/main Translation-en_IE Ign https://download.01.org trusty/main Translation-en W: Failed to fetch https://download.01.org/gfx/ubuntu/14.04/main/dists/trusty/main/binary-amd64/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none  W: Failed to fetch https://download.01.org/gfx/ubuntu/14.04/main/dists/trusty/main/binary-i386/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none  E: Some index files failed to download. They have been ignored, or old ones used instead.


Cannot get to a new line by hitting Enter

I am using a Mac machine.  I asked a question, and then, someone answered it.    I clicked "Edit" to add a comment, and I would like to press Enter to go to a new line, but doing so submitted my comment and ended the edit instead.


Algorithm for 2d AI aiming to compensate for gravity

In a 2d side-view scenario I have two riflemen aiming at each other. By normalizing the x and y difference they know the direct path to the enemy.  However, gravity will pull the projectiles downwards, so aiming straight for the enemy is obviously useless.   Any interesting ideas for AI-logic when it comes to adding a correction based on world.gravity (which is a "force" in y-pixels per physics tick) and enemy.path (libgdx Vector2 with the X and Y difference to the enemy. Weapon.muzzleVelocity could also be factored in (double, speed in pixels after the shot is fired.  I've been thinking of two things:  Option 1 - Magic numbers  The X distance is multiplied by a magic number (such as gravity) to produce a reasonable close result to an aiming offset. Possibly also factoring in Y-distance, but in most cases, the Y distance should be close to 0.  Pros: Simple, easy to implement, quick, low calculation overhead  Cons: Boring, A bit too arcade for my taste with a very static result, Been done before countless times including by me in previous projects  Option 2 - Firing table  AI trial and error, basically. Each time the unit fires, the X (and Y?) distance of that shot is recorded with the offset used, and the result (hit vs too low vs too high) is registered. Each time the unit fires it'll look up for the closest match to the x-distance to get a rough estimate on aiming offset.  Pros: Units become more valuable as they learn, it's a lot more modern, and it makes sense to me.  Cons: Unit types with low rate of fire will not have much use of their firing table. It's also somewhat complex to implement and will cause a much larger memory footprint as the firing table grows.  For the record, I'm writing this in java/libgdx, mainly targetting the android and HTML5 platforms, but if it turns out to be decent, ports are expected. I'd love to hear other ideas for how a unit can come up with an aiming offset, as well as pros/cons. I have to pick something, and I'm not entirely convinced either of my own algorithms are right for the task.


I have come across this sentence in a CNN report.  "We can't smell them because we have a measly five million sensors in our noses, but dogs have up to 300 million sensors in their noses."  "...a measly five million sensors..." ?  When can we use the article "a" before a plural noun? Could this be a mistake?


Glossaries entry in heading of book class causes an error

In the following MWE, an entry from glossaries is included in a section title so it gets included in the page heading created by the book class:  \documentclass{book} \usepackage{glossaries}  \begin{document} \newglossaryentry{asd}{name={ASD}, description={asd sda das}}  \section{A + S + D: \gls{asd}}  \end{document}   This causes the following error on the first pdflatex run (even before running makeglossaries):  ! Package glossaries Error: Glossary entry `ASD' has not been defined.  See the glossaries package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.9 \end{document}   What am I doing wrong? Should I just avoid using glossaries entries in chapter and section titles?


First chapter appearing before first line in table of contents

I have a table of contents in my memoir book. I want there to be one line for each chapter, in addition to headings for each set of similar chapters.  For some reason, the line for the first chapter appears before the first phantom line.  \documentclass{memoir}  \begin{document}  \frontmatter \tableofcontents*  \mainmatter  \phantomsection \addcontentsline{toc}{part}{Topic 1}  \include{intro}  \chapter{Chapter 2}  This is the second chapter.  \phantomsection \addcontentsline{toc}{part}{Topic 2}  \chapter{Chapter 3}  This is the third chapter.  \chapter{Chapter 4}  This is the fourth chapter.  \end{document}   The file intro.tex in the same directory contains the following:  \chapter{Introduction} \label{chap:intro}  \noindent This is the introductory chapter.   I've noticed that if I paste the contents of intro.tex into the main file (instead of using \include), the problem is fixed--the "Introduction" line in the table of contents appears before "Topic 1"!  However, this isn't a good solution, since I have large chapter files which I want to include separately...  What might be causing this problem?  And is there a way to fix it?


Can LaTeX do non-printable graphical elements?

Is there a way to make some graphical elements to be non-printable, i.e. prints as white, while staying fully visible on screen? Here's a MWE to play and have fun with: \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry} \usepackage{microtype} \usepackage{amsmath} \usepackage{mathtools} \usepackage{eso-pic} \usepackage{xcolor} \usepackage{showframe}  \newlength{\distance} \setlength{\distance}{0.0in} \newlength{\rulethickness} \setlength{\rulethickness}{0.5in} \newlength{\ruleheight} \setlength{\ruleheight}{\paperheight} \newlength{\xoffset} \newlength{\yoffset} \setlength{\yoffset}{0pt}  \AddToShipoutPicture{%     \setlength\fboxsep{0pt}%     \ifodd\value{page}%         \setlength{\xoffset}{\distance}%     \else         \setlength{\xoffset}{\dimexpr\paperwidth-\rulethickness-\distance}%     \fi     \AtPageLowerLeft{%         \put(\LenToUnit{\xoffset},\LenToUnit{\yoffset}){%         \colorbox{lightgray}{\parbox[b][\ruleheight][c]{\rulethickness}{%         \centering         \ifodd\value{page}%             \rotatebox[origin=cB]{90}{\color{red}{\large{\normalfont\textsc{Copyright notice}}}}%         \else             \rotatebox[origin=cB]{90}{\color{blue}{\huge{\normalfont\textsc{Some Title}}}}%         \fi     }}}}% }  \begin{document}  Test \newpage Another page  \end{document}  This code draws a gray vertical bar in the inner margins, with some copyright notice.  I need it to stay visible while reading the PDF document on screen.  But I would also like it to turn completely invisible when printed on paper.  Is that possible with some LaTeX commands?  EDIT: Oups !  This question appears to be a duplicate of this one :


What SPECIAL stats are useful in crafting rooms?

The new crafting rooms don't indicate what, if any, SPECIAL stat is best for dwellers in that room.  Do any of the stats affect crafting weapons or armor in any way? How?


If "time is relative", what does "the universe is 13 billion years old" mean?

Physcists say that the universe is approx. 13 billion years old. However, the amount of time that has elapsed since the big bang differs per object, dwpending on the trajectory that that object has travelled through spacetime (so far as I understand).  So what does the number 13 billion refer to?  Is it the time that has elapsed for a reference frame that has followed the earth (i.e. the particles that make up the earth)?


Verification required when attempting to purchase free app

When I'm trying to install a free app on my iPod, it'll say:  Verification Required Before you can make purchases, you must tap continue to verify your payment info.  Why do I see this when it's free? The "None" option is not available.


Subject/verb agreement when a title ends in a plural

1) "The book 'The Three Musketeers' is a wonderful example of..." Here we have a proper noun, a title that happens to end in a plural, and I have no sense that the verb should be plural. "Musketeers"/is seems proper/natural/correct, and 'are' not at all.   However, such certainty begins to wane in other examples: 2) "'The Heidi Chronicles' is a wonderful example of..." doesn't completely shake my confidence, but it moves the needle, at least a little bit. But, practically speaking, I wouldn't have a second thought about correcting a student who used 'are' instead of 'is'.  Here's the one that really bothers me: 3a) " 'The Basement Tapes' are a wonderful example of..." I don't think this sounds any less proper/natural/correct than 3b) " 'The Basement Tapes' is..." In fact, 3a seems less awkward than 3b.  Why?


Xorg scheduled expiry is in the past (-17ms), your system is too slow

I'm getting the following errors Xorg log file(Ubuntu 20.04). I have tried to google it but I have not found a reasonable answer. What does this error mean? [  7355.001] (II) event9  - 2.4G Mouse: SYN_DROPPED event - some input events have been lost. [  7358.334] (II) event9  - 2.4G Mouse: SYN_DROPPED event - some input events have been lost. [  7359.634] (EE) client bug: timer event9 debounce: scheduled expiry is in the past (-87ms), your system is too slow [ 10596.655] (EE) client bug: timer event9 debounce: scheduled expiry is in the past (-17ms), your system is too slow


Error with public void paint (Graphics g)'s in JApplet slideshow

I am trying to do a slideshow in a JApplet and I keep getting an error on the  "public void paint (Graphics g)'s." I know its outdated but its for a class in high school. This is my first time doing this so please im sorry if its a stupid question. The project is just to have an image with a yellow box around text and image.  import java.awt.*; import java.awt.event.*; import javax.swing.*; public class timers extends JApplet implements ActionListener { Timer timer1; int seconds = 1; Image picture1; Image picture2; Image picture3; Image picture4; Image picture5; public void init () {     // set applet size     setSize (800, 600);     //constructor Timer(int millidelay, ActionListener l)     timer1 = new Timer (1000, this);     picture1 = getImage (getDocumentBase (), "Red_Color.jpeg");     picture2 = getImage (getDocumentBase (), "Color-blue.jpeg");     picture3 = getImage (getDocumentBase (), "Color-yellow.jpeg");     picture4 = getImage (getDocumentBase (), "green.png");     picture5 = getImage (getDocumentBase (), "pink.jpeg");     //     repaint ();  }   public void start () {     timer1.start (); }   public void stop () {     timer1.stop (); }   public void destroy () {     //System.exit(0); }   public void paint (Graphics g) {     g.setColor (Color.BLACK);     g.fillRect (0, 0, 800, 600);     g.setFont (new Font ("Helvetica", Font.PLAIN, 20));     g.setColor (Color.yellow);     g.drawString ("This is the colour red", 270, 473);     g.drawImage (picture1, 300, 200, 200, 200, this);     g.setColor (Color.yellow);     g.drawRect (275, 175, 251, 251);     g.drawRect (269, 445, 265, 40); } // end of paint            public void paint (Graphics g)         {                 g.setColor (Color.BLACK);     g.fillRect (0, 0, 800, 600);     g.setFont (new Font ("Helvetica", Font.PLAIN, 20));     g.setColor (Color.yellow);     g.drawString ("This is the colour blue", 270, 473);     g.drawImage (picture2, 300, 200, 200, 200, this);     g.setColor (Color.yellow);     g.drawRect (275, 175, 251, 251);     g.drawRect (269, 445, 265, 40);    }                 public void actionPerformed (ActionEvent e) {     if (e.getSource () == timer1)      // timer is firing         // increment second counter         seconds++;         //call paint method         repaint ();              }     }


As I was told to ask a new question, I better do. :)  On the Internet I read the folowing conversation: Question: Do people say No to mean they are in agreement with negative statements? Answer: We aren't using "no" to agree, we are using "no" to CONFIRM a negative statement.   So my question is does that mean: Mother: We are not buying a new car. Father: No. (he confirms) / Father: Yes. (he agrees)  But somehow I would think if the father agrees or confirms he would buy the new car? So why does he say yes if he agrees? I always thought the father would say yes if he would like to buy the car.  Somehow even in the threads that have been marked as duplicates I couldn't find an answer.


Is VBUS sensing necessary for USB on a self-powered device?

I'm currently designing a self-powered PCB with a STM32L432KCU6 and USB. After having done some research, it seems that it is necessary to connect the VBUS pin for detection purposes. However, is it also needed if I want not to use the detection feature? I would prefer establishing the USB connection by clicking on a button instead of automatically establishing it when VBUS is sensed.  I'm sorry if this is a trivial question, but I don't have much experience with USB so far.         – Schematic created using


I have my PC with Ubuntu 19.04 on it, and I have "server" (it's old laptop with Debian 9 installed). However, getting physical access to laptop is complicated task, because it has some problems with screen and keyboard. I'd like to use my laptop to run some python codes, and when I connect (on my PC) to my laptop via SSH and run them, it works fine. However, when I close terminal on my PC, python program, which was running on my laptop, also closes. So, it is cause by closing terminal session. My question is: How to continue running application on that laptop after closing SSH connection? Because the main problem is: I can't just run it directly on my laptop, because it has technical problems (described above).


How to retrieve current wattage info on OS X?

Is there a way to retrieve the current watt usage info on OS X Snow Leopard? I'm using mid-2010 iMac, so I'm not looking for just battery-related apps. Does OS X even monitor power usage? Do I need to use an external reader between the power cord and the outlet? I'm most interested in command-line/applescript based solutions for more convenient logging & stats, but I'm open for alternatives.  Both (@'s & @'s) answers are undoubtedly correct. The meta–question in here was that is there any sensors/readers already on the PSU, that would work kind of like the way "kill-a-watt" works. I sense the answer for that is "no". I know, it probably is just a wet dream, but a watt meter on board would be ideal for the computer to shout: "Look how eco-friendly I am; using just these watts!"  Ah! @' suggested  do get the wattage readings from some sensor, along with volt and amp stats. So the meters are there, but how I could access them programmatically?  Bounty! Will be given for solid command-line sensor reading solution or for recommending exceptionally good 3rd party software (like one with statistical and historical data tools at minimum). Just to inform: the aforementioned iStat Menus 3 lists the following power related sensors:  Voltage Sensors (Volts)  AC/DC AC/DC AC/DC Shunt CPU CPU 1.8V S0 CPU CTT Graphics Module Memory   Current Sensors (Amps)  AC/DC CPU CPU VTT Graphics Module   Power Sensors (Watts)  AC/DC CPU Graphics Module    It does state "sensors", but they might be calculated as @msanford commented. How can I get my hands on that data programmatically?


Textures not showing up in downloaded `.blend` file from Sketchfab

This is my first foray into working with Blender, and to start off I'm trying to compose a simple static scene with a few pre-built character models sitting in a room.  I downloaded  from Sketchfab (clicked "Download 3D Model" in the lower-left right below the artist's name and selected "Original format (blend)"). However, after extracting the ZIP file and opening the .blend file in source/, the model appeared as a grey blob with no textures, despite the model clearly being textured in the web viewer on Sketchfab.  Following the instructions from other sources, I  (which for some reason now seems to be labeled "look dev" in the latest version of Blender), and attempted to  from the textures/ folder in the extracted ZIP. Neither of these actions seemed to fix the problem for me. Additionally, I will note that my model does not appear pink, which as I've heard from other sources is the usual sign of missing textures. Rather, the model is simply a dull, untextured grey.  Any ideas about what I'm doing wrong? I'm using Blender 2.8 (the latest version).


I have a Dell Inspiron 14R laptop, and I have tried almost everything to install Ubuntu.     Bootable USB drive  PLOP   Regular installation    I'm currently on Windows 8.1.  I want to install Ubuntu on my laptop and remove Windows 8 completely.  My problem is that I never got to the Ubuntu installation screen. I always failed to boot from the USB drive. When I use the special restart the only option available is the Windows 8 "Startup Settings".


How to set the search path for data files to be used by pgfplots

In the tikzpicture routine below I wish to use the data recorded ininvcum.dat which I know resides in folder C:\Users\Reinhard Neuwirth\AppData\Local\Programs\MiKTeX 2.9\doc\latex\pgfplots\plotdata. All my attempts to set this path in either the preamble or as a parameter to the \addplot instruction, for example like so:  \addplot [blue] table[\table \search path={C:\Users\Reinhard Neuwirth\AppData\Local\Programs\MiKTeX 2.9\doc\latex\pgfplots\plotdata}]{invcum.dat}; are failing.    \documentclass{article} % RN. 20 June 2019 % BRIEF DESCRIPTION: Setting the PATH to data files for use in pgfplots %======================= \usepackage{pgfplots} \pgfplotsset{compat=1.16}  ? how to set path to invcum.dat in the preamble ?  \begin{document}  \begin{tikzpicture} \begin{axis}[ title=Inv. cum. normal, xlabel={$x$}, ylabel={$y$}, ] \addplot [blue] table{invcum.dat}; \end{axis} \end{tikzpicture} \end{document}


Move the launcher to the right hand side?

I am running ubuntu 16.04 LTS and I'd love to have the launcher on the right hand side, as it is much more convenient, considering the way my monitors are set up.   I know it can be moved to the bottom, but I already have a dock there that I like. It would be more useful to me on the right hand side.  Is there a way to do this?  Currently, I can't find a way to do it. I have checked this and many other forums.


Intersection number of closed geodesics on compact 2-manifolds with positive sectional curvature

Let $M$ be a compact 2-manifold with positive sectional curvature. Show that any two closed geodesics of $M$ must intersect. The familiar example is $S^n$, where the closed geodesics are great circles, where any 2 geodesics must intersect. I'm wondering if there is a technic that transforms any 2-manifold with positive sectional curvature continuously into $S^n$, while in the mean time preserving geodesics? Specifically, let $c$ be the closed geodesic, $M_t$ be the transformation of $M$ with parameter $t\in [0, \infty)$, and let $c_t$ be the image of $c$ in $M_t$. Is is possible to find $M_t$ such that $c_t$ are geodesics, and $\lim_{t\rightarrow \infty} M_t \approx S^2$? If such transformation exists then the problem is trivial.


How is it that Java's BigDecimal can be this painful?  Double d = 13.3D;  BigDecimal bd1 = new BigDecimal(d); BigDecimal bd2 = new BigDecimal(String.valueOf(d));   System.out.println("RESULT 1: "+bd1.toString()); System.out.println("RESULT 2: "+bd2.toString());  RESULT 1: 13.300000000000000710542735760100185871124267578125 RESULT 2: 13.3   Is there any situation where Result 1 would be desired? I know that Java 1.5 changed the toString() method but was this the intended consequence?   Also I realise that BigDecimal has doubleValue() etc, but the library that I am working with helpfully uses a toString() and I can't change that :-(  Cheers.


How can I change my nationality in my PayPal account without having to open a new one?

Is there any way to change one's nationality in a PayPal account without having to open a new one?


Determinant of a specially structured matrix ($a$'s on the diagonal, all other entries equal to $b$)

I have the following $n\times n$ matrix:  $$A=\begin{bmatrix} a & b & \ldots & b\\ b & a & \ldots & b\\ \vdots & \vdots & \ddots & \vdots\\ b & b & \ldots & a\end{bmatrix}$$  where $0 < b < a$.  I am interested in the expression for the determinant $\det[A]$ in terms of $a$, $b$ and $n$.  This seems like a trivial problem, as the matrix $A$ has such a nice structure, but my linear algebra skills are pretty rusty and I can't figure it out.  Any help would be appreciated.


Need help to prove an identity for inner product space

Show that the following identity holds for vectors in any inner product space: $$ \langle \mathbf{u}, \mathbf{v} \rangle = \frac{1}{4}\left(\| \mathbf{u} + \mathbf{v}\|\right)^2 - \frac{1}{4}\left(\| \mathbf{u} - \mathbf{v}\|\right)^2. $$ The "in any inner product space" is quite confusing for me.


Single photon and double-slit experiment

Laser fires single particles of light, called photons, through the slits. Even though only single photons of light are being fired through the slits and They create three pattern again. How single particles of light can create this wave pattern?


Why, according to Nietzsche, is becoming a monster by fighting to overthrow monsters a bad thing?

Nietzsche states:  Whoever fights monsters should see to it that in the process he does not become a monster. And if you gaze long enough into an abyss, the abyss will gaze back into you. Source: Beyond Good and Evil  In fiction (and in real life at times) people embrace the inner monsters (sometimes literal, sometimes figurative) to gain the power they need to defeat their foes, get to the next level, or grit through something they'd rather not do. If this is something that seems to work, why are we specifically warned against it? In any war, in any problematic situation where horrible things are happening, it can be impossible (or virtually so) not to use the selfsame tactics of those that oppose you. The saying goes "ALL'S fair in love and war" and even if you'll pay for doing it in the long run by being seen as a monster, by doing these horrible things (or at times even MORE horrible than those that oppose you), you'll have the satisfaction that you won, even though at day's end it was a morally a pyrrhic victory. But if you accomplish what you set out to do, sometimes it's worth it. But such things can't help but drag you through the soil of morality, dirtying you in the process.


How to make an irregular blended circle effect?

I am trying to create an effect like this one in Illustrator, but I haven't been able to achieve a great result. I would really appreciate a little help, even if it is just the name of the effect. Also, if it is easier in another tool like photoshop, please let me know.   I have mostly tried a combination of the blend and warp tools. I haven't had any other ideas, or any luck googling.


Is a function with limits Riemann integrable?

Suppose $f : [ 0, 1 ] → \mathbb{R}$ and $\lim\limits_{x \rightarrow c} f ( x )$ exists for all $c \in [ a , b ]$. Show that $f$ is Riemann integrable on $[ a , b ]$.  I can show this $f$ is bounded on $[a,b]$ since the limit exists at every point. But I'm not sure how to proceed. Any hints or help would be great.


Why does new String('hello') === new String('hello') evaluate to False?

Why does the following statement return false in JavaScript?  new String('hello') === new String('hello')


In class, we were simply given that this limit is undefined since along the paths $y=\pm x$, the function is undefined.  Am I right to think that this should be the case for any function, where the denominator is $x^2-y^2$, regardless of what the numerator is?  Just wanted to see if this is a quick way to identify limits of this form.  Thanks for the discussion and help!