I'd like to add a local file (C:\Users\David\AppData\LocalLow\LastPass\iehome2.html) LastPass needs to open my LastPassVault in IE11.  Scripting is disabled in my Internet zone and the file needs JavaScript in order to work ("JavaScript is required for this page to function.").  However, I am having a hard time adding the file to IE's Trusted Sites or Local Intranet.   The most logical thing to me is to add file://* to the zones, but IE won't except that

Friend of mine has an interesting issue on his new corporate PC - it looks like his IE11 is somehow configured to open all HTML files from the local file system in compatibility mode (IE7).  While I'm aware of the Compatibility View for the specific web-sites and UNC paths, compatibility meta tag and "saved from" comment, it looks like all of these options are not applied here. The computer's options are hidden so I cannot examine them.  I've Googled for a solution but the most relevant result was to use the "display all sites in compatibility mode" option in IE8 (which is not applicable to IE11).  I can see two alternatives:   Somehow the filter for all the local files is added to the Compatibility View settings (I've tried it on my machine, but it just does not allow the file://* pattern) Somehow the local files are marked as intranet and the compatibility view is turned on for all intranet websites. There is a filter for that which allows file:\server\share patterns but it looks like it does not allow the pattern file://* as well.   Do you know how to configure IE7 mode to be the default one in IE11?  This very simple file demonstrates the issue:      If the page is in the IE7 mode, the IMG path will be absolute in the message box.


My iPhone is stuck on Connect to iTunes Screen (support.apple.com/iphone/restore iTunes logo and up arrow with lightning cable) I have Tried :-   Connecting it to iTunes and Updating, It updates Successfully.But on the same screen again   Restoring, It restores successfully.But on the same screen again  Tried Recovery Mode Screen Method and DFU method Tried Closing and Restarting iTunes Tried Deleting 'iPhone Software Update' folder in iTunes and Re-Downloding Updates    Nothing Works... Any Help will be appreciated

I am posting this for a friend.  For some reason the iPhone 5 suddenly won't turn on anymore.  When the power button is pressed the screen lights up, the apple logo shows and then it switches to another screen where the following url is shown: support.apple.com/iphone/restore, the iTunes logo and the a picture of a cable beneath.  What I have tried:  I have visited the url and followed the steps listed on the page, namely holding the power and home buttons for ten seconds, waiting and then trying to turn the phone on again.  I have connected to iTunes and tried to update the phone but this is unsuccessful and produces an error, with error code 26 which gives me this link here: .  I have followed the steps on this page as well.  What I think the problem is:  I believe the phone started to update but didn't have enough space and at some point the update failed midway and now the phone can't turn on.  I believe this is also the reason why it wont update via iTunes.  I do not know however as I wasn't present during this time and my friend isn't sure either, all she knows is it wont turn on anymore.  The phone has no backup and my friend would very much like to keep / retrieve the data on the phone somehow.  Therefore we have avoided trying a factory reset at this point.    We have taken it to a shop and they referred us to a specialist shop saying it would cost ~2000€ to decrypt and retrieve the data before performing a reset which is ridiculous.    Are there any steps or methods we could further try before resorting to a factory reset and losing the data or having to cough up all this money?  Any help would be greatly appreciated.


A  (in Debian unstable) generates an warning message for repositories SHA1 signed. I get the idea you should privilege SHA2 signed repositories but I use some softwares which does not offer yet SHA2 signature and I still want to be able to upgrade my computer with one command apt-get update && apt-get dist-upgrade (which is stopped by SHA1 warning message).  I'm wondering how to get rid of this blocking warning message?  The warning message is: The repository is insufficiently signed  sources.list :   ## Debian unstable - dépôts officiels  deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free deb-src http://ftp.fr.debian.org/debian/ unstable main contrib non-free  ## Debian testing - dépôts officiels  deb http://ftp.fr.debian.org/debian/ testing main contrib non-free  deb http://security.debian.org/ testing/updates main contrib non-free  ## Debian stable - dépôts officiels  deb http://ftp.fr.debian.org/debian/ stable main contrib non-free deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free  deb http://security.debian.org/ stable/updates main contrib non-free  #------ # samsung printer deb http://www.bchemnet.com/suldr/ debian extra # Deb-multimedia deb http://www.deb-multimedia.org sid main non-free # SpiderOakONE deb http://apt.spideroak.com/debian/ stable non-free   Blocking message on update:   # apt-get update Hit:1 http://ftp.fr.debian.org/debian unstable InRelease Hit:2 http://www.deb-multimedia.org sid InRelease                                                                                Hit:3 http://ftp.fr.debian.org/debian testing InRelease                                                                             Hit:4 http://security.debian.org testing/updates InRelease                                                                          Ign:5 http://ftp.fr.debian.org/debian stable InRelease                                                                            Hit:6 http://security.debian.org stable/updates InRelease                                                                           Hit:7 http://ftp.fr.debian.org/debian stable-updates InRelease                                                                      Hit:8 http://ftp.fr.debian.org/debian stable Release                                                                                Ign:9 http://download.opensuse.org/repositories/home:/selmf/Debian_8.0  InRelease                                                       Hit:10 http://www.bchemnet.com/suldr debian InRelease                                                                          Hit:11 http://download.opensuse.org/repositories/home:/selmf/Debian_8.0  Release             Ign:12 http://apt.spideroak.com/debian stable InRelease                                          Get:13 http://apt.spideroak.com/debian stable Release [1 025 B] Get:15 http://apt.spideroak.com/debian stable Release.gpg [189 B] Fetched 1 214 B in 0s (1 628 B/s)                         Reading package lists... Done W: gpgv:/var/lib/apt/lists/www.bchemnet.com_suldr_dists_debian_InRelease: The repository is insufficiently signed by key 52C1D92CE6FC35F636B045C3C95104E509BAC46D (weak digest) W: gpgv:/var/lib/apt/lists/download.opensuse.org_repositories_home:_selmf_Debian%5f8.0_Release.gpg: The repository is insufficiently signed by key 69CD0BB29BCA799AB242B1723F3411BE43F8BC1F (weak digest) W: gpgv:/var/lib/apt/lists/partial/apt.spideroak.com_debian_dists_stable_Release.gpg: The repository is insufficiently signed by key FE45E5330B11DCF03247EF49A6FF22FF08C15DD0 (weak digest) W: Failed to fetch http://apt.spideroak.com/debian/dists/stable/Release  No Hash entry in Release file /var/lib/apt/lists/partial/apt.spideroak.com_debian_dists_stable_Release, which is considered strong enough for security purposes E: Some index files failed to download. They have been ignored, or old ones used instead.

Attempting to upgrade testing/stretch Debian Linux:  $ sudo apt update  Ign:1 http://dl.google.com/linux/talkplugin/deb stable InRelease Hit:2 http://dl.google.com/linux/talkplugin/deb stable Release                                                                    ... Get:25 http://mirror.vorboss.net/debian unstable/main i386 Packages 2016-03-25-1456.28.pdiff [15.0 kB]              Fetched 686 kB in 7s (89.5 kB/s)                                                                                Reading package lists... Done W: gpgv:/var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release.gpg: The repository is insufficiently signed by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 (weak digest) W: gpgv:/var/lib/apt/lists/deb.opera.com_opera_dists_stable_InRelease: The repository is insufficiently signed by key 419D0ACF314E8E993F7F92E563F7D4AFF6D61D45 (weak digest) W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release  No Hash entry in Release file /var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release, which is considered strong enough for security purposes E: Some index files failed to download. They have been ignored, or old ones used instead.  What's wrong? How to fix it?


The thing is I don't know where to disable this action, even after I rebuild my frontpage with other blocks/views/panels instead the default blog list style page, drupal will still do the select from database. At /config/system/site-information can change number of articles drupal select, but cannot really turn it off.

Drupal out of the box comes with a page (which is the default homepage) that is assigned to the node path.  How do I avoid users reach it, and redirect them to the actual homepage of the site?


In other words, if F(a) = F(b), can I assume that a = b? I can see how this would always be the case if the function were strictly positive, but may not be the case for, say, a symmetric function with both positive and negative values.

Assume that we have two continuous functions $f(x)$ and $g(x)$. If the integrals $\int_{x_1}^{x_2}f dx$ and $\int_{x_1}^{x_2}g dx$ are the same for any choice of $x_1$ and $x_2$, then the functions are also the same?  My attempt: I fix $x_1$ and let $x_2$ vary. Then I take the derivative of both integrals. It sounds right. I am missing something? Any better solution?


I installed Seabios and then used a USB to install Ubuntu GNOME 16.04 with no problems; I completely removed Chrome OS.   I just realized while playing a game that the sound is not working. Do I need to install a driver or just make some adjustments in alsamixer or similar?

I am a total newbie to Ubuntu, and I'm not sure what to do here. I have a Toshiba Chromebook. I had a friend install the latest version of Ubuntu on it for me. For a while, the audio in Ubuntu was working fine, but now I can't hear any audio whatsoever.  How can I fix this?


What happens if a user has multiple accounts and keeps upvoting himself/someone else?  Does that happen? Is there a system to stop it?

A recent post on the Stack Overflow blog () states that the Stack Overflow team has implemented a voter fraud detection mechanism.  I look at the user board and noticed at least one user took a major hit as a result.  I'd like to know how it works.  No, not so that I can better circumvent it, but I'd just like to know that it is fair.


A local sports club has 10 players. You need to form a team of 5 players. How many teams can you form that include the best player and exclude the worst player?

This was a question from my textbook. This is how I approached it.   For the first part, you can do c(10,5) so you choose 5 of the 10 to be on a team.   For the second part, you have 10 ways to choose the "best player" and you multiply it by c(10,4) to pick the other 4 players. However, I am not sure how you can exclude the "worst player". Although this sounds subjective, I believe the question is saying that the "best" and "worst" players are distinct, whereas the other players aren't.


Here's what's going on. I have a 2019 windows server, and on it Im running a webserver (apache2), and multiple Minecraft servers. I have a domain with multiple subdomains for each Minecraft server instance and the webserver. They're all in my domain DNS settings with both A and SRV records. That works all fine and dandy. Let's say I have two Minecraft servers, running on different ports. First server is mc.domain.com, second is mc2.domain.com. Then for my webserver, it's site.domain.com. I can use each Minecraft domain and it connects to the corresponding server perfectly fine. I go to my web browser and put in site.domain.com and it brings me to that. Heres the issue, since this is all running on one machine and one IP, if I put mc.domain.com or mc2.domain.com in my web browser, it also points to site.domain.com. How can I only allow site.domain.com to bring me to my webserver and not any other subdomain? Please don't close this and say duplicate and send me to a general "how to forward a Minecraft server" because that isn't my issue. Thank you.

So I have my own windows server, and on it I am using Multicraft to host multiple Minecraft servers. I have also purchased a domain through google. I have a subdomain set up for each Minecraft server instance on different ports, as well as a subdomain for the Multicraft webserver. All domains work fine, but my issue is I only want multicraft.example.com to direct to the webserver, however all other subdomains when put into a web browser instead of Minecraft also direct to the Multicraft panel. I've looked at  but it does not answer my issue. I have the pointers already working with A records and SRV records for the webserver and Minecraft server. But because they're on the same IP, every subdomain for a Minecraft server points to the webserver. I only want the webserver domain to point to the webserver. Not the Minecraft subdomains.


I want to create a simple div that shrinks and expands according to the content contained.    <body>   <div style="border: 1px solid red; padding: 15px; width:auto;">     test text   </div> </body>   Result: the red box expands to the full width of the page. Why?

I have a layout similar to:  <div>     <table>     </table> </div>   I would like for the div to only expand to as wide as my table becomes.


I am using one main lightning component and all other components are opening within the main components. I want to update the browser URL when the user navigates. I am trying to navigate to a component in the community to update the URL. But it's not working. I used below code:   var pageReference = {            "type": "standard__component",         "attributes": {             "componentName": "c__Target"             },          };     navService.generateUrl(pageReference)     .then($A.getCallback(function(url) {         cmp.set("v.url", url ? url : defaultUrl);     }), $A.getCallback(function(error) {         cmp.set("v.url", defaultUrl);     }));   In the community it gives null value in url but in salesforce lightning its working fine.  I have also tried this but it didn't

Im on a lightning community, i have a lightning component and i want to open another component with this code:  navigateToMyComponent : function(component, event, helper) {     console.log('1');     var evt = $A.get("e.force:navigateToComponent");     console.log('2');     evt.setParams({         componentDef : "c:CompetenciaComponent"     });     console.log('3');     evt.fire();     console.log('4'); }   this its the console log:   NOTHINGS HAPPEND AND I DONT KNOW WHY


I have a coursework related to making a website displaying  this api. and then also using the search bar later on to search for specific things. I have no idea on how apis work. i have created a website with a searchbar and everything. I just dont know how I could display this api. total begginer. if anyone could help me explain js or anything. thank you

I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.


How can you explain the output of the following program? To me, it looks like, MyClass is maintaining two copies of __my_variable in later stages. Then, why is __init__() able to display "Hello World!"? To my understanding __init__() should print a blank. Right? class MyClass:     __my_variable: str = "Hello World!"      def __init__(self):         print(self.__my_variable)         self.__my_variable = "Constructor World!"      @classmethod     def cls_modify(cls):         cls.__my_variable = "Class World!"      @classmethod     def cls_display(cls):         print(cls.__my_variable)      def inst_modify(self):         self.__my_variable = "Instance World!"      def inst_display(self):         print(self.__my_variable)   if __name__ == '__main__':     my_obj = MyClass()     my_obj.cls_display()     my_obj.inst_display()     my_obj.cls_modify()     my_obj.cls_display()     my_obj.inst_display()     my_obj.inst_modify()     my_obj.cls_display()     my_obj.inst_display()  Output C:\Users\pc\AppData\Local\Microsoft\WindowsApps\python3.7.exe C:/Users/pc/source/classmethod__test.py Hello World! Hello World! Constructor World! Class World! Constructor World! Class World! Instance World!  Process finished with exit code 0

Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different?


I hope u can help me out, I want to make a Ghost with this shader. Would be nice if someone can help

I have tried a couple of things now but can't seem to get the material just right. I am trying to create a white blouse material that looks like the picture below. Has anybody got some tips or maybe some samples that are close to it?


Google is indexing parts of the site www.findinplumbing.com. If you use site: search, you get 5000 results. BUT: that is by far not enough. The site has around 11000 pages.  In Google search console it says:     11.240 URLs transferred 1.386 indexed URLs   so 10% ONLY.  Well now what? What can I do so Google indexes all 11,000 pages?  I provided a sitemap.xml here  and a page that I triggered in Google search tools to have indexed manually and recursively that contains all pages (). Still, nothing happens.  I provided even a page where ALL pages appear as direct links. Still: not all pages get indexed. What is the problem? Now: this page went live in November 2016. That is 2 months ago now. And only 10% are indexed... very little

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


Sometimes when I hover my mouse over an icon on the taskbar it will light up as usual. However occasionally the taskbar icon will stay lit, and sometimes show the icons tooltip. It isn't that big of a deal, but it does annoy me.  The only fix I know of is ending explorer in task manager then restarting it from task manager. I'd like to find a fix that doesn't involve such a disruptive procedure.

After running Win 7 for some unknown period of time, the taskbar icon highlight starts to stick (video demo here: ). If I restart or kill explorer.exe and relaunch, it goes away.  Any idea what might be causing this?


This image was put up by the NHL on Twitter. In the feed this is the image, when you click on it, a different one pops up. When you open it in Photoshop, the whites are very bold and the greys/blacks are pretty transparent. I was wondering how this is done.

This morning on twitter there was a tweet with the text "click on this picture".  When picture is clicked, it's opened in wider viewer, but looks completely different.  I tried to analyze this picture in ACDSee, and I also tried uploading on Facebook, but it's happening only when embedded on twitter. I don't have much knowledge about graphics so please explain this to me. Why does this PNG image change only when clicked on Twitter?  Screenshots (left = before clicking; right = after clicking):     Here's the original .


I always see that a room temperature of $T=300\,\text{K}$ corresponds to an energy of $k_BT \approx \frac{1}{40}\,\text{eV}$. But shouldn't it be $\frac{3}{2}k_BT$ since the molecules in the air have three degrees of freedom for translation and not two? Is there a deeper meaning to neglect the $3/2$?

Basically, which is the correct formula for thermal energy, and is this the same as kinetic energy? My notes are pretty conflicting on this topic, and I'm getting pretty confused.


The residue at infinity is given by:  $$\underset{z_0=\infty}{\operatorname{Res}}f(z)=\frac{1}{2\pi i}\int_{C_0} f(z)dz$$  Where $f$ is an analytic function except at finite number of singular points and $C_0$ is a closed countour so all singular points lie inside it.  It can be proven that the residue at infinity can be computed calculating the residue at zero.  $$\underset{z_0=\infty}{\operatorname{Res}}f(z)=\underset{z_0=0}{\operatorname{Res}}\frac{-1}{z^2}f\left(\frac{1}{z}\right)$$  The proof is just to expand $-\frac{1}{z^2}f\left(\frac{1}{z}\right)$ as a Laurent series and to see that the $1/z$ is the integral mentioned.  I can see that we change $f(z)$ to $f(1/z)$ so the variable tends to infinity.  But, is there any intutive reason of why we introduce the $-1/z^2$ factor?

I am stuck on the following problem :      $\,\,\,\,$*Problem*$\quad$The residue of an entire function at $\infty$ is $0$.      Solution: True. This follows from the definition of the residue at $\infty$ together with the Cauchy-Goursat Theorem. Another way to see this is to take the Taylor expansion for $f$ at $0$ $\displaystyle f(z)=\sum_{n=0}^\infty a_nz^n$ and replace $z$ with $1/z$ to get the Laurent expansion for $f(1/z)$ at $0$: $\displaystyle f(z)=\sum_{n=-\infty}^0a_{-n}z^n.$ Then we have that the residue at $\infty$ is given by the negative coefficient of the $1/z$ term of    $$ \dfrac1{z^2}f\left(\dfrac1z\right)=\sum_{n=-\infty}^{-2}a_{-n-2}z^n, $$   which is clearly $0$.   I am having trouble to understand the last few lines (in italic) in the given solution. Can someone give lucid explanation? Thanks and regards to all.


The Dropbox client 2.10.0 () has just presented me with the following message:    (The "See requirements" button links  which is of no help).  I am running Ubuntu 16.04 LTS with standard drive encryption. My filesystem is like this:    What can I do to get this working again?  I hate to be one of those posters, but this is urgent for me and I need a solution quick and I am dealing with a lot of computers that need to be in sync for machine learning purposes. I would supremely appreciate guidance.  please note  My problem is different to the one discussed  because I need an immediate solution that can be applied across multiple computers. I can look into the move to LUKS later. A solution is needed now.

Some time ago Dropbox began to warn me about supporting ext4 as FS only. As a happy BTRFS user I wasn't happy, but have done this:  dropbox stop dd if=/dev/zero of=~/dropbox.img bs=1M count=4096 mkfs.ext4 ~/dropbox.img echo "${HOME}/dropbox.img ${HOME}/Dropbox ext4 rw,async 0 2" | sudo tee -a /etc/fstab rm -rf ~/Dropbox/* sudo mount "${HOME}/Dropbox" sudo chown "${USER}:" "${HOME}/Dropbox"   Everything worked without errors, but Dropbox still says that I should use ext4 for its folder. What am I doing wrong?


The definition of an unconditionally secure cryptosystem is that it cannot be broken even with infinitely computational resources and time. The one-time pad (OTP) is an example of an unconditionally secure system, there is nothing in the ciphertext that makes one message seem more probable than the other, brute-force cryptanalysis is in vain because every plaintext is equally likely, even with infinite computational resources and time. OTP is unconditionally secure encryption. Is there also unconditionally secure message authentication, and if there is, how does it work?

Gilbert, MacWilliams, and Sloane defined a solution to "perfect integrity" in , unconditionally secure message authentication, not vulnerable to any cryptanalysis on its own even by an adversary with unbounded computational power, provided you have a key chosen uniformly at random the same length as the message. It sounds counter-intuitive that a MAC could have perfect integrity, any hash function can be broken with enough computational power. How does their solution have "perfect integrity"?


Was poking around my usual haunt, the MS-Access tag, when I came upon this disaster:    I hope I didn't come off sounding too snotty in my comment, but the guy/gal didn't even tag it properly, and it's clear he's fresh from Boot Camp.  In the old days, this was a no-brainer: Close it because even a minimal understanding of the application wasn't shown.  So, what do we do now?  Do we just downvote it?

Just recently,  question was posted. Here's the body of the question:     Write a function called highlight() that prompts the user for a string. Your code should ensure that the string is all lower case. Next, prompt the user for a smaller 'substring' of one or more characters. Then replace every occurrence of the substring in the first string with an upper case. Finally, report to the user how many changes were made (i.e., how many occurrences of the substring there were).      What would a script for this be?   This is basically a "do my homework for me" style question. In the past, I would have voted to close this question for lacking minimal understanding and moved on. However, it looks like this close reason was removed, and I'm having difficulty figuring out which alternative to use (if at all).  Here were some of the close reasons I was considering, and ultimately decided against since they didn't seem to precisely match:   Duplicate of    I sort of doubt there exists a precise duplicate of this question -- the question is a fairly specific request for some code. I could maybe link to a duplicate question that answers a part of the original (for example, checking if the string is lowercase), but it wouldn't answer every aspect of the problem. Problem that can't be reproduced/typographical error    This sort of matches, since it asks the user to produce a SSCCEE, but doesn't really match since there isn't even a problem to begin with (and closing a question because I couldn't "reproduce" a non-existent problem feels a bit silly to me) Unclear what you're asking    It's pretty obvious what the user is asking -- I could produce a 5 line script in about 20 seconds that precisely matches his spec. Too broad    The text for "Too broad" states that "There are either too many possible answers, or good answers would be too long for this format". This doesn't apply to this question -- once again, the answer I could give would be fairly short and would closely resemble solutions other people would give.   So, what should I do here? Am I misunderstanding how the close reasons should now be used? Should I use the "other" close reason and explain that the OP should have put in more effort? Should I simply downvote, perhaps leave a comment, and move on? Or is the new policy to embrace these kinds of questions and just post an answer?


This theorem is from Munkres Topology 2nd ed.:       In the last para, it is said that 'choose an element' $n$ of $D$. Why we do not need axiom of choice here? (Here $D$ may not be finite.)

Suppose I have a non-empty set $A$.     How do I choose an element $x\in A$?   More precisely, I believe I would like to find a formula $P(x,y)$ of ZF such that for every non-empty set $y$ there is exactly one $x\in y$ such that $P(x,y)$ is true.  I have thought about this for a while without success and I am beginning to doubt such a formula is even possible. But in mathematical proofs it is quite common to "choose a fixed element" from a non-empty set. So how exactly do we achieve such a thing? Am I missing something?  Thank you in advance.


I first use my team's account to ssh a server and then login to my server. To login to initial team's account, I need to enter a long very complex 30 character machine generated password and then in the next prompt I enter a pin and yubikey. I cannot use public, private key pair to make ssh easy. Currently I copy that long 30 character password to clipboard and then paste into terminal. Server keeps kicking out inactive connections and I end up doing this many many times. Is there any easy way to accomplish this task? I am open to using any clipboard trips or write a script to do this.

From the terminal I type: ssh user@ip and then it prompts for a password.  Is there a way to specify the password in the ssh command itself?


I need help with answering the following questions: Given $X,Y$ random variables: (1) prove that $\max(X,Y)$ is random variable (2) suppose $X$ and $Y$ iid show that: $F_{\max(X,Y)}(t) = F_X(t)F_Y(t)$ (3) give example for $X$ and $Y$ that: $F_{\max(X,Y)}(t) = F_X(t)$ My thoughts: (1) let's mark $\max(X,Y)$ as $Z$ for simplicity, $Z$ is a measurable function $Z:\Omega\rightarrow E\space$ , where $\space\Omega$ is the set of possible outcomes and $E$ is a measurable space. Is that enough to say that $\max(X,Y)$ is a random variable? (2) I don't know where to start with. (3) Each pair of CDFs which satisfy $F_X(t) \succ F_Y(t)$ will result $F_{\max(X,Y)}(t) = F_X(t)$ for example: $X\sim Unif[9,10],\space Y\sim Unif[5,6]$ Thanks in advance.

Suppose $X,Y$ are random variables. I'm trying to understand why $\max\{X,Y\}$ and $\min\{X,Y\}$ are also random variables. The proof in the book that I'm using states that for each $t$,      $\{ \max\{X,Y\} \leq t \} = \{X \leq t \} \cap \{Y \leq t \}$,   and     $\{ \min\{X,Y\} \leq t \} = \{X \leq t \} \cup \{Y \leq t \}$.   I can't make the mental leap. Could someone explain this more explicitly?  Edit:   We use the following definition for a random variable: A random variable is a function on  $X: \Omega \rightarrow \mathbb{R}$ such that      $X^{-1}((-\infty,t]) := \{\omega \in \Omega : X(\omega) \leq t\} \in \mathcal{F}$   for all $t\in\mathbb{R}$, where $\mathcal{F}$ is the set of all events.  The obvious first step that I made was      $\{ \max\{X,Y\} \leq t \} = \{ \omega : \max\{X(\omega),Y(\omega)\} \leq t \}$.   I just don't see why the next equality follows.  Edit2: Fixed typo.


I'm specifically interested in this request:    The feature was declined by some guy who now works for the Dark Side and his answer got downvoted into oblivion. My rebuttal has net 138 up votes.  What's changed since the request was declined?   I  explaining what merits reconsideration.  A bunch of people upvoted my answer and downvoted Jeff's. No moderator or Stack Exchange employee has responded in 5 years.   Do I really need to ask a duplicate question to have the issue revisited? What should I do to ensure the new question isn't just closed as a duplicate?

As I was browsing earlier today, I really happened to like an answer to a question. The question didn't interest me so much, and the answer was actually a tangential reply to some of the comments in the post, and was by far more valuable than the original question or the accepted answer. Now, my only options to favorite that answer are   Favorite the question. Add the link to the answer to my browser's bookmarks.   I was pretty sure others have had the need for this, and sure enough, I found a  and a , both nearly two years ago and a , nearly a year ago.  Now, there might have been several reasons why it (and several other old feature-requests) was denied. SO was pretty young back then, there probably weren't enough developers on board, perhaps they didn't have the resources to track favorite answers. But SO has grown since then from 1-3 sites to 30+ sites. Requests that might have at one point been too demanding, might now be easily implementable, which could greatly enhance user experience.  So, my question is: "Can we re-request features that were previously declined, provided the request and the denial are sufficiently old, so that the team can reconsider their decision?"  After how long is sufficient enough needs to be decided by the community and is only to prevent re-requesting a feature that was only declined say a week ago.


What is Wayland and how do I enable it? One extension that I installed said that it needs Wayland to work... Sorry if this is a stupid question. I am new to Ubuntu and the world of Coding. (I haven't even entered it. Still at the door... thinking and exploring...)

Since 17.10 I got familiar with Wayland and I really need the per-monitor-scaling!  How can I start a wayland session after dist-upgrade to Bionic? There is no option in GDM available out-of-the-box.  I do not see what is described as     The Wayland session will still be available, pre-installed


I want to forward incoming connections to any address within an assigned ipv6 /64 subnet on a VPS.  Obviously I can't add a billion individual address to the interface, but perhaps I could use a bogus route with a mangle iptables rule to pretend 1 address is a router for the subnet, then just answer arriving packets instead of forwarding them on? Not sure if that's possible or if there's a cleaner approach.

I know that the ip tool lets you bind multiple addresses to an interface (eg, ). Right now, though, I'm trying to build something on top of IPv6, and it would be really useful to have an entire block of addresses (say, a /64) available, so that programs could pick any address from the range and bind to that. Needless to say, attaching every IP from this range to an interface would take a while.  Does Linux support binding a whole block of addresses to an interface?


This evening, I accidentally typed in  .. blah   at the bash command line (Fedora 27, bash 4.4.12). To my surprise, it did (apparently) nothing, but gave no error. How come?  I get the same effect with .. on its own, with no argument.  I wondered whether it could have been treated as . ., i.e. source the current directory, but when I try that, it gives an error to say that . is a directory.  If I try three dots, it suggests trying two:  [james@melissa ~] $ ... bash: ...: command not found... Similar command is: '..' [james@melissa ~] $    so it certainly on some level thinks that the command exists. There's no man page for it, though, and .. --help doesn't give any output.  But perhaps most weirdly of all, it seems that if I execute .., with or without an argument, then I get an exit code of 127, which is the exit code for trying to run a non-existent command. So on some level it also thinks the command doesn't exist.  It doesn't appear to be related to the existence of a directory called ..; or, at least, I do get an error if I type the name of any other directory on its own, and .. doesn't throw an error even if I'm in the root directory, where there's no such directory as ..  All I can guess is that it's not really a command, but that the error message is being suppressed for some reason.  Any other ideas?  EDIT: this turns out to be the same underlying problem as in , although with different symptoms: there, any command starting with a . silently fails. That is not the case here, where only .. has this effect. It seems that the bug has been partly fixed, but not completely.

I just noted this on bash  4.3; exact version number is 4.3.42(1)-release (x86-redhat-linux-gnu).   $ .. $ ... $ .... $ .....   Why do the "command not found" is not prompted ?  $ ... $ echo $?  $ 127   I checked the $PATH and the alias nothing; The man is not helping neither. The bash run on Fedora Linux, but I think it is not related to the OS.   EDIT   I just noted this it the same for any dot starting command  .za .zaza ..za ..zaza


I have a log file and I need to extract the sections related to a specific event. I performed something similar before but easier with the "sed" command. The task I've been trying to solve is the following. I need to extract all the portions of text in the file starting with the word "BEGIN" included and ending before the next "BEGIN" where it is included a specific word identifying a table in my database. I need help with the usage of the sed command. The task can be summarized in "search between all occurrences delimited by Start and End containing the word word" The text looks like something like this: BEGIN ... something here something here containing the desired "word" something here ... COMMIT BEGIN  . . . COMMIT BEGIN  And I want to obtain all the occurrencies conaining "word" as this: BEGIN ... something here containing the desired "word" ... COMMIT

Using just shell script, how to search a text file and list all whole blocks of lines that has inside some text (simple grep criteria).   The text file has blocks of lines separated by "-----------------" (precisely, each block start with "\n\n\n--------------------"... about 50 chars "-").  A sample could be:  ------------------------------- Abracadabra, blablablalbalba blablablabla, banana    ------------------------------- Text, sample text, sample text, sample text Text, sample text, sample text, sample text Text, sample text, sample text, sample text Text, sample text, sample text, sample text   -------------------------------   Text, sample text, sample text, sample text banana. Sample text, sample text, sample text, sample text Text, sample text, sample text, sample text   Lets consider the word "banana" the search criteria. So, the blocks listed would be:  ------------------------------- Abracadabra, blablablalbalba blablablabla, banana   ------------------------------- Text, sample text, sample text, sample text banana. Sample text, sample text, sample text, sample text Text, sample text, sample text, sample text   EDIT:  Testing answers to try awk, like: awk 'BEGIN{RS="\n------------"}/INFO/{print}' where INFO is what was searched for. I cannot get the whole block. So, follows a real sample and the result:  A REAL SAMPLE (including the first 3 new lines):      ------------------------------------------------- Diretório separado do nome o arquivo: adis, IWZLM (/home/interx/adis/src/IWZLM.SRC) Gerando rotina em linguagem C: (yla5 adis IWZLM -if) .INFO =>Rotina BLOQUEADA (status 'M'): Geracao ignorada (use -is para ignorar checagem do status)  [  OK-I ] IWZLM (adis) - Lista lay: Geracao ignorada do codigo em C.    ------------------------------------------------- Diretório separado do nome d arquivo: adis, ADISA (/home/interx/adis/src/ADISA.SRC) Gerando rotina em linguagem C: (yla5 adis ADISA -if) .ERRO: Falha inesperada  Compilando o programa: (ycomp adis ADISA -exe adis/exe/ADISA.temp.exe ) adis/exe/ADISA.temp.exe => adis/exe/ADISA  [  OK   ] ADISA (adis) - Menu A : Gerada e compilada com sucesso.    ------------------------------------------------- Diretório separado do nome o arquivo: adis, ADISD1 (/home/interx/adis/src/ADISD1.SRC) Gerando rotina em linguagem C: (yla5 adis ADISD1 -if) .ATENCAO: Definicao nao localizada  Compilando o programa: (ycomp adis ADISD1 -exe adis/exe/ADISD1.temp.exe ) adis/exe/ADISD1.temp.exe => adis/exe/ADISD1  [  OK   ] ADISD1 (adis) - Menu : Gerada e compilada com sucesso.   I cannot get the whole block, just the line containing "INFO", like a ordinary grep, either setting or not ORS:  $ cat file  | awk 'BEGIN{RS="\n------------"}/INFO/{print}'  .INFO =>Rotina BLOQUEADA (status 'M'): Geracao ignorada (use -is para ignorar checagem do status)   NOTES: It is the awk from AIX 7.1, not gawk.


I want to start with my first LaTeX project and I am using a couple of templates, but I've encountered a problem. The template seems to be using:     \tableofcontents   For the table of contents, it looks good however I want to change the header from 'Contents' to something else, like 'Inhoudsopgave', but I can't seem to do that.   What is the solution?

I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE:  \documentclass{book}  \usepackage{titlesec} \titleformat{\chapter}{\normalfont\Large\scshape}{\thechapter}{1em}{} \vspace{6pt}]  \usepackage{lipsum}   %-------------------------------------------------------------------------  \begin{document}   \newpage \thispagestyle{empty} \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty}  \setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont\normalfont{Author1} \\ {\scshape\Large Title}}} \addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{Title}} \thispagestyle{empty} \Author{Author1} \Title{Title} \lipsum \newpage \thispagestyle{empty}    \end{document}


I have two sets of monthly Consumer Price Index (CPI) values for the period January 2014 through April 2017. One set is the national monthly CPI for Canada and the second is the provincial monthly CPI for Alberta (a province of Canada).   The CPI values for both Canada and Alberta represent a mean value calculated during the period by randomly sampling values within the geographic region in question. Alberta is part of Canada so there is necessarily some Alberta data being used to contribute to the Canadian CPI mean.  It is clear enough from the data that some months Alberta CPI is higher than the national value and some months it is lower but I want to be able to determine if the overall difference during the study period is statistically significant.   My current approach is to use a T-test and compare the two sets of data to see if there is a significant difference between their means. My concerns are:   A) is there an issue with this approach because the data is temporal? i.e. does the time series nature of the data preclude the use of a T-test?  B) is there an issue with independence given the fact that the Alberta data is a subset of the national data?   C) is there an issue with using a T-test to treat the monthly CPIs as point data given that they themselves are means? I don't have access to the raw data that was used to calculate the monthly CPIs and I am concerned with the validity of taking the mean of mean data to perform the statistical test.  Finally, if a T-test is out as an option, is there another statistical test that is appropriate?

I have two time series, shown in the plot below:    The plot is showing the full detail of both time series, but I can easily reduce it to just the coincident observations if needed.  My question is: What statistical methods can I use to assess the differences between the time series?  I know this is a fairly broad and vague question, but I can't seem to find much introductory material on this anywhere. As I can see it, there are two distinct things to assess:  1. Are the values the same?  2. Are the trends the same?  What sort of statistical tests would you suggest looking at to assess these questions? For question 1 I can obviously assess the means of the different datasets and look for significant differences in distributions, but is there a way of doing this that takes into account the time-series nature of the data?  For question 2 - is there something like the Mann-Kendall tests that looks for the similarity between two trends? I could do the Mann-Kendall test for both datasets and compare, but I don't know if that is a valid way to do things, or whether there is a better way?  I'm doing all of this in R, so if tests you suggest have a R package then please let me know.


I tried today for the first time Sound Recorder, but the list "Record as" is empty.  Does someone knows why? Is maybe some other problem I have with Ubuntu since I upgraded to 13.04? Is it going to be solved with 13.10?

I am setting up a Lubuntu box to install in a local classroom where people are not super tech-savvy.  I need an audio recording application for them to record things using the microphone and save in a specific folder. I have chosen Sound Recorder because Audio Recorder and Audacity are too complicated.  I have one problem; the only option in the Record From field is Master and the Record As field where there should be file format options (.ogg, .wav, etc.) is blank with no options.  Can anybody tell me how to actually record sound using "Sound Recorder"?  when run from terminal, when I press the record button it shows:  (gnome-sound-recorder:1894): GStreamer-WARNING **: Element 'gconfaudiosource' already has parent


What is the difference between cd /  and cd //?  We can see that adding / to the end doesn't do anything. But when I do cd // and pwd, I found:  $ cd // $ pwd //     What is difference between / and //? An ls in both directories shows the same content. Why is // needed?

I was working in my terminal, when I misspelled while cd to root (/). Accidentally, I typed // and I got in terminal:  root@weblocalhost://#   When i type pwd, i get response // but when I type ls -s i got same list as in / directory.  When you type more than 2, i.e. /// you get:  root@weblocalhost:/#   Always 1 / except for 2. Is there any difference and what is // for?


There is one feature that is available on Windows and which I would really love to discover on Linux. It works the following way.  Suppose I have an area which I can scroll both vertically and horizontally. Whenever I start scrolling it with two fingers on the touch pad, Windows detects the main scrolling direction (vertical or horizontal) and preserves it until I stop scrolling no matter how far I move my fingers in the direction perpendicular to the main detected direction.  For instance, if I start scrolling down, but also slightly to the right (just by a mistake), Windows detects that my intention is to scroll vertically and filters out my mistake by scrolling the area only vertically. Once I release my fingers from the touch pad and start scrolling say to the right, but also slightly up (again just by a mistake), Windows detects my intention and preserves the horizontal direction, not paying any attention to vertical movement of my fingers.  My current workaround is a keyboard shortcut for a script that toggles synclient HorizTwoFingerScroll, but this is not as convenient as what I have on Windows. Other synclient options do not seem to help either.  Is it possible (and how) to achieve on Linux the same scrolling behavior as I have on Windows?  In case that matters: Asus U36SD, Ubuntu 17.04.

If I'm browsing the internet and a page has both horizontal and vertical scroll bars it becomes really irritating to scroll with my touchpad. It keeps scrolling horizontally as well as vertically!  I'm using Ubuntu 16.04  and below are touchpad settings  Device 'SynPS/2 Synaptics TouchPad':     Device Enabled (160):   1     Coordinate Transformation Matrix (162): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000     Device Accel Profile (282): 1     Device Accel Constant Deceleration (283):   2.500000     Device Accel Adaptive Deceleration (284):   1.000000     Device Accel Velocity Scaling (285):    12.500000     Synaptics Edges (286):  1769, 5431, 1652, 4658     Synaptics Finger (287): 25, 30, 0     Synaptics Tap Time (288):   180     Synaptics Tap Move (289):   242     Synaptics Tap Durations (290):  180, 100, 100     Synaptics ClickPad (291):   0     Synaptics Middle Button Timeout (292):  75     Synaptics Two-Finger Pressure (293):    282     Synaptics Two-Finger Width (294):   7     Synaptics Scrolling Distance (295): 200, 200     Synaptics Edge Scrolling (296): 0, 0, 0     Synaptics Two-Finger Scrolling (297):   1, 1     Synaptics Move Speed (298): 1.000000, 1.750000, 0.036300, 0.000000     Synaptics Off (299):    1     Synaptics Locked Drags (300):   0     Synaptics Locked Drags Timeout (301):   5000     Synaptics Tap Action (302): 2, 0, 0, 0, 1, 3, 0     Synaptics Click Action (303):   1, 1, 0     Synaptics Circular Scrolling (304): 0     Synaptics Circular Scrolling Distance (305):    0.100007     Synaptics Circular Scrolling Trigger (306): 0     Synaptics Circular Pad (307):   0     Synaptics Palm Detection (308): 0     Synaptics Palm Dimensions (309):    10, 200     Synaptics Coasting Speed (310): 21.120001, 50.000000     Synaptics Pressure Motion (311):    30, 160     Synaptics Pressure Motion Factor (312): 1.000000, 1.000000     Synaptics Resolution Detect (313):  1     Synaptics Grab Event Device (314):  0     Synaptics Gestures (315):   1     Synaptics Capabilities (316):   1, 0, 1, 1, 1, 1, 1     Synaptics Pad Resolution (317): 83, 46     Synaptics Area (318):   0, 0, 0, 0     Synaptics Noise Cancellation (319): 8, 8     Device Product ID (277):    2, 7     Device Node (278):  "/dev/input/event6"


How can I close a curve / path / to make it closed shape ?

I was wondering if there was a way to connect the two end points of this strap I made on blender.   I can't seem to get an even fit.


I'm a beginner and I don't know what's going on. Some faces I've made look like two triangles glued together with different angles.   Removing doubles didn't do anything, nor flipping normals.

I think my question relates to a fundamental of 3D modeling that I haven't picked up on yet. It's very simple:  Let's say I have a flat quad. A plane on the XY plane inserted into am empty blender file is a great example. Now let's say I start moving each of the 4 vertices around on in any direction, especially the Z axis.   At this point, there would still be one face, but its extremely unlikely that the face would be planar (I just learned this word). So blender does its best to make sense of what this should look like.  The problem I'm having is that it seems like my quads are always like this, but they never look the way I want. There are edges and seams that look like they are dangling in space, and what tends to happen is that my mesh looks great when viewed from most angles, but if you look at it from just the right angle, you notice the dangling edges or sometimes even some kind of impossible geometry. And so I might try to nudge the problematic vertices around, but this often seems to either make it worse, or just hide the bad geometry until you see it from a different angle.  For me, this always seems to happen whenever I'm trying to move vertices to add roundness to something that is originally square.   There is another question on here about how to actually flatten the quads. That's great, and I might use some of the techniques mentioned there. My question is:   Why does this happen? (Can someone explain this better?) What are some tips and tricks to avoid this situation? What are some tips and tricks to mitigate this situation?   EDIT Here is an illustration:  The overall mesh as viewed from a distance looks decent (for my skill level)    But if you get closer and look from a certain angle...    Super close up:    The "edge" that is pointed to by the arrow is not actually an edge, but some kind of artifact created when blender tries to show the quad. The way the vertices are positioned, it shouldn't actually be possible to see the sliver of the face that I marked in red, since this face is supposed to be around the corner from the edges. The edges should form the silhouette on the right side of my figure.     Here is the side view. Maybe it is the angled topology that skews the face in a funny way?  But I'm not looking for help with this one particular issue, but rather a better understanding of why this happens, and ideas to prevent this in future models.


So in theory i have two html pages, and one js file.  I want to save a variable that i get from the first html page (in the form of a data attribute) and then use it in the other html page.  Think of it like this — there is a link and when I click on it, it takes me to the other page but also saves a data-attribute and then uses it in that next page.  Sorry if everyone hates me because I didn't post code,  but I figured this was a straight forward enough question.

I have two pages of jQuery, Page1 and Page2, and I'm able to get input in Page1.  The somval=1000$.  The page 1 user enters the somevalue. I have stored the value:  var val = somval;   Now in the second page, I need to get the result of somvalue in page 1. Of course two pages using My1.js My2.js respectively.  How do I share the values from one jQuery file to other JavaScript or how do I get the value from page1 value, to page2?  How do I tackle this?


Given $\{a_i\}_{i=1}^{\infty}$ as a sequence of real numbers, define $\{c_j\}_{j=1}^{\infty}$ Such that for each $j \in \{1,2,3,...\},$ We know that $$c_j = \frac{\sum_{i=1}^{j} a_i}{j}.$$ I want to show that if $\lim_{j \rightarrow \infty} a_j = q,$ then $\lim_{j \rightarrow \infty} c_j = q.$ That being said, I am not sure about the tools I have available to go about solving this problem. I do know that $\exists N \in \mathbb{N}$ such that for all $\epsilon > 0,$ $|a_j-q| < \epsilon$ for $j > N.$ I would like to go about using this knowledge to bound $|m_j - q|$ with a function of $\epsilon.$

Let $(a_n)_{n \in \mathbb{N}}$ be a convergent sequence with limit $a \in \mathbb{R}$. Show that the arithmetic mean given by: $$s_n:= \frac{1}{n}\sum_{i=1}^n a_i \tag{A.M.} $$ also converges to $a$.  I have read:  but unfortunately the answers there don't help me much because I don't understand their substitutions and most of it all, why their substitutions seem to work.   What I know from the problem is that since $a_n$ is convergent and $\epsilon >0$ is given, I can say that:   $$\exists N_1 \in \mathbb{N}, \forall n \geq N_1: |a_n-a|<\epsilon_1 $$ I also know that since $a_n$ is convergent, it is bound, so $(a_n) < M, \ \forall n \in \mathbb{N}$   I need to show that: $$\exists N_2 \in \mathbb{N}, \forall n \geq N_2: |s_n-a|< \epsilon_2$$ I started as follows: $$ \left|s_n-a \right| = \left|\frac{1}{n}\sum_{i=1}^na_i -a\right|= \left|\frac{1}{n}\sum_{i=1}^m(a_i-a)+\frac{1}{n}\sum_{i=m+1}^n(a_i-a) \right| \\ \leq \frac{1}{n} \sum_{i=1}^m|(a_i-a)|+\frac{1}{n}\sum_{i=m+1}^n|a_i-a|$$ I believe to understand that the left sum after the $\leq$ is finite, bound and doesn't depend on the values that $n$ takes on. However, I don't understand where all the substitutions come from and make this proof so seemingly easy to complete.   Is there a general idea I can follow to complete such proofs? Because I know that the last step is to show that the given sum is smaller than $\epsilon$. I also know that I should bring the condition $a_n < M$ into place somewhere, but I don't know where.  If I choose an $n \geq N: |a_n-a|< \epsilon'$ what does that tell me about $|a_i-a|$? I know that they are seemingly the same just with a different index.


The accepted answer checkmark seems to have gotten mysteriously lighter. While I question why this change was even made in the first place, I have a bigger problem with this:    If you're going to change the color, please change both the check and the upvote text. My OCD can't handle it!

At first I thought my eyes were fooling me, but after taking a second look, I found the SO answer-tick to be brighter than before!  old:  new:   (I find the new color to be too bright and stingy, especially with the white background. The old darker green was nicer for the eyes. Can haz old color back?)


My PC already have a 2gb ram in slot 1 and added a new 8gb to slot 2 but after booting it shows only 3.49 gb as available memory(I also checked it with speccy app). I checked msconfig options and the max memory is unchecked. How do I fix it?

I recently upgraded my computer's RAM to 4 GB. My 32-bit Windows installation shows only 3574 MB of the memory. How can I make Windows use the full amount of RAM?


I'm ok with cheating in one, but I can't get mods with the way I get my Minecraft.

In Minecraft, the NBT (Named Binary Tag) format is used to store data of our Minecraft worlds, including block, entity, and item properties. In the Java Edition of Minecraft, you can modify this data by including the data in the command, like so: /give @s diamond_sword{Enchantments:[{id:"minecraft:knockback",lvl:10s}]}  In the Bedrock Edition, on the other hand, NBT is inaccessible from commands. In order to modify NBT, we need to use an external editor. What are some useful item properties that I can modify with an NBT editor, and how can I do so?  Related:


For some answers the reputation doesn't seem to be counted correctly. Even when the answer get a lot of upvotes it doesn't affect the reputation in any way. Here is an example: In  I have  with 28 points for which I've already got  but  is still 101 (100 is just the account Association Bonus) and on  I see:  You have no recent positive reputation changes  I have not noticed such a problem on any other of , only on Math. I tried to find a solution but I haven't found any question or answer about similar problems. How can I solve this problem so the reputation is counted correctly? Is this a matter of my account configuration or is it an internal bug in Stack Exchange? Note on the question being a duplicate: Thanks to the answers below I now know that votes on community wiki answers don't increase reputation - but for someone who doesn't know that and tries to find out why the reputation seems to be counted incorrectly it may not be obvious to ask a question: What are “Community Wiki” posts? So even though one can find the needed information in the referenced question, this one is not its duplicate.

Some questions and answers are marked Community Wiki and are owned by a community wiki user:  (In fact, this very question is one of them)  Why have Community Wiki posts? How do Community Wiki posts work? How does a post become a Community Wiki post? How can the Community Wiki status be removed from a post? How can I find Community Wiki posts?


I'm on win10 64bit on an ACER laptop and I'm trying to dual boot ubuntu MATE 16.04.3 alongside it. However on startup it still always boots into windows. System info says I'm booting windows in UEFI.   This is what I've done so far:   I have an SSD and HDD, and I started by shrinking around 400GB from my HDD. Then I used rufus with the ubuntu-mate-16.04.3-desktop-amd64.iso to make my USB flash drive a bootable one. I disabled fast boot from my power settings in windows, and I didn't seem to be able to find it in BIOS. In BIOS I have a supervisor password, my settings were set to UEFI on secure boot. I booted from my usb and accidentally chose the install ubuntu option at first and got a file not found error and exited to try again, this time from the try ubuntu option to install ubuntu from there. I connected to my wifi within the live version and ran the install process there. I ticked both boxes for installing updates and third party software. As secure boot was enabled, I entered a password in. I simply chose the install ubuntu alongside windows boot loader option. Then I restarted the laptop from ubuntu once it was done. It didn't boot into ubuntu or give me a choice, going straight to windows. I've tried turning off secure boot and running boot-repair within the live ubuntu running from my usb, as well as moving up my HDD to the top of the boot load order and running the bcedit cmd as suggested by boot-repair. None of these worked! In disk management in windows I now have 3 partitions alongside my windows partition in my HDD replacing the 400GB shrinked unallocated space from the start, however they all say they have 100% free space. Are they supposed to be like that? Maybe I should clear the partitions and reinstall or something?   This is my first go at natively installing anything linux after I've been using them in vms with no problems, except that it ran too slowly.  Edit: I don't believe this is a duplicate as I've got a specific situation that I'm having problems with, and it seems like I've gone through the steps given in that post already.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I have just installed Ubuntu 14.04 LTS, but by mistake I deleted all partition. Now I want to recover the lost memory by installing testdisk . But when I try to execute the command sudo apt-get install testdisk in Terminal I get this error message:  Unable to locate package testdisk   Why does this occur and what can I do next?

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?


Let $\displaystyle g(x, y) = \frac{\sin^2(x - y)}{|x| + |y|}$. Prove   that $\lim_{(x, y)\to(0,0)} g(x) = 0$.   Any help on this would be appreciated. So far I think that the fact that $|x + y| \le |x| + |y|$ and $|\sin(x + y)| \le |x + y|$ has to be utilized but I am not sure how to do so in the epsilon delta proof.

I was asked to find limit of $f(x,y)= \frac{\sin^2 (x-y)}{|x|+|y|}$ as $(x,y)$ approaches $(0,0)$. I have an idea that it tends to $0$, but can't find a suitable way to proceed.Please help with any suggestions to proceed.  as per suggestions I tried by converting the given function to polar co-ordinates.  so $\frac {(x-y)^2}{|x|+|y|}$. which gives  $r\cdot \frac{(\cos(t)-\sin(t))^2}{(\cos(t)+\sin(t))}$. On using the limit as r goes to zero, we get answer as zero. Is there anything else to be taken care in this case?


I once knew a word that meant to mention something by announcing that you would not mention it. The word may be Greek; I encountered it in the study of poetry.  An example, then, from poetry, Edmund Spenser's Aegloga Quartet:  I will not match her with Latonaes seede. Such follic great sorrow to Niobe did breede.    Now she is a stone,    And makes daily mone, Warning all others to take heede.   Here the poet is publicly refusing to compare his subject, Elysa, with the goddess Latona, but in doing so (quite intentionally) makes the comparison.  This device is common in poetry, and I believe the term is most used in this regard, but is common in politics as well.

Is there a name for the rhetorical device whereby you ask a question and then list the rejected answers? For example:     "What was it then? It wasn't x, nor y, nor z. No, in fact it was . . .."   The Cicero De Imperio passage is as follows:  How was it, do you suppose, that he was able to display that excessive rapidity, and to perform that incredible voyage? For it was no unexampled number of rowers, no hitherto unknown skill in navigation, no new winds, which bore him so swiftly to the most distant lands; but those circumstances which are wont to delay other men did not delay him. No avarice turned him aside from his intended route in pursuit of some plunder or other; no lust led him away in pursuit of pleasure; no luxury allured him to seek its delights; the illustrious reputation of no city tempted him to make its acquaintance;


i have 500mb available but can't install 2mb app!!! it's so frustrating i tried uninstalling apps, clearing cache, deleting files ... nothing works.  Please help.

Every time I go to install a new app, I get the message "Insufficient storage", and an unable to install anything!  I am using Samsung GT19060 my internal memory is 8GB. I have not downloaded anything but anytime I try to download something it will tell me low memory space.


I have already changed my email via one of Stack Exchange's sites, and it has been changed on all other sites as well. However, I can only log in with my old email address.  I don't use any third-party OpenID providers to log in. I just want to use the Stack Exchange login with a different email. How do I change my Stack Exchange login email?

I registered my Stack Overflow account using the Stack Exchange OpenID provider. I later changed my e-mail, but I cannot change the e-mail address associated with my OpenID for some reason. Why is that, and how do I change it? I logged in to Stack Exchange and it lets me change my password, but never my e-mail.


I am travelling from US to India, with an Indian passport but expired F1 visa and going there to get my H1B visa stamping. I have a stop at Frankfurt, Germany for 4 hours while flying to India. Do I need a transit visa for my trip?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


first problem I need help with.   I defined a few coordinates, some of them are connected. Some were defined by intersection etc.  Now, i want to fill the triangle stretched out by coordinates D-E-G. It does not work. Is there anything missing in my code? I tried a lot of different things. The one given below is just a example.   \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{calc} \pgfplotsset{compat=newest} \begin{document}  \begin{tikzpicture} \begin{axis}[    xlabel={X-Achse},    ylabel={Y-Achse},    xmin=0,xmax=100,    ymin=0,ymax=200,    xtickmin=0,xtickmax=100,    ytickmin=0,ytickmax=200,    height=9cm,width=9cm,    title={Überschrift},    ]  %define coordinates    \coordinate[fill, circle, inner sep = 2pt,label=below:$A$] (A) at (40,40) {}; \coordinate[fill, circle, inner sep = 2pt,label=above:$B$] (B) at (20,80) {}; \coordinate[fill, circle, inner sep = 2pt,label=above:$C$] (C) at (60,160) {}; \coordinate[fill, circle, inner sep = 2pt,label=right:$D$] (D) at (80,80) {};  %draw lines \draw [thick,dashed](A) -- (B)      node[below,sloped,midway] {$wurscht$} ; \draw [thick,dashed,red](A) -- (C)      node[above,sloped,midway] {$egal$} ; \draw [thick,green](C) -- (D)      node[above,sloped,midway] {$wayne$} ;  %intersections,      \coordinate[fill, circle, inner sep = 2pt,label=left:$E$] (E) at      (intersection of A--C and B--D); \coordinate[fill, circle, inner sep = 2pt,label=right:$F$] (F) at ($(A)!0.7!(C)$); \coordinate[fill, circle, inner sep = 2pt,label=right:$G$,] (G) at ($(A)!1.5cm!-90:(E)$);  %filling D-E-G \draw [fill=red](E) -- (G) -- (D) -- (E) -- cycle;  \end{axis} \end{tikzpicture} \end{document}


I've been following  on Regex to be able to get the last occurrence of the pattern I intend to get. I intend to get the number (with / without a negative sign), the number, and any character that comes after that. Goal:     aa-11aa -> gets the -11aa     11aa -> gets the 11aa     aa11aa11aa -> gets the 2nd 11aa     aa-11aa-11aa -> gets the 2nd -11aa     aa-11a(a) -> gets the -11a(a)  However, I've only gotten this pattern to work to only get a single digit and the post fix of whatever comes after the number. (?:.*)(-*\d+)(.*)$. These are the results from my pattern: Issue:     aa-11aa -> gets the 1aa     11aa -> gets the 1aa     aa11aa11aa -> get the 2nd 1aa     aa-11aa-11aa -> get the 2nd 1aa     aa-11a(a) -> gets the 1a(a)  Any help on how I can get my desired result?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Could you please recommend should I carry all my lenses for a Safari Trip to Kruger Park in South Africa? I have the below lenses with Canon 80D Camera   Sigma 17-70mm f 2.8 - f4 OS HSM Tamron SP 70-200mm f2.8 VC USD Tamron SP 150-600mm f 5- f 6.3 VC USD Canon 50mm f 1.8   I am thinking should I carry both Tamrons or just the 150-600 and save up on weight on my shoulders? I am expecting there will be available light during the day to make sure 150-600 can shoot adequately.  Please help / advise should I carry an extra faster lens?

Currently I have the 70-300mm L lens from Canon.  I would like to go on a Safari trip, and was wondering, does it make sense to pick up the Canon EF 400mm f/2.8L IS II with the 1.4X and 2X Teleconverters which effectively allows me to reach up to 560mm + 1 stop and 800mm + 2 stops or just pick up the 600mm or 800mm prime lens from the beginning?  I know I am loosing a couple of stops, and image quality with the Teleconverters, but it allows me to have some what of a zoom function with a smaller package.  Thoughts?


Write a Python program to sort a list of dictionaries using Lambda device_models = [{'make':'Asus', 'model':216, 'color':'Black'}, {'make':'NOKIA', 'model':'2', 'color':'Gold'}, {'make':'Samsung', 'model': 7, 'color':'Blue'}]

I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


Nothing can ever fall into a black hole, even from the perspective of something in the process of falling through (a process I am arguing can never be completed.) Here's my argument.   As seen from the outside, nothing can enter a black hole because it becomes infinitely slow before it reaches the event horizon. Now suppose it takes a googol years (as measured from outside) for a particular black hole to dissipate. Then the black hole dissipates before anything can enter into it. So from the perspective of something falling toward the event horizon, they will experience the black hole dissipating and the event horizon vanishing before they can ever enter it.  Can you tell me what's wrong with this argument?

One thing I know about black holes is that an object gets closer to the event horizon, gravitation time dilation make it move more slower from an outside perspective, so that it looks like it take an infinite amount of time for the object to reach the event horizon. It seems like a similar process should slow the formation of the black hole itself: As the star collapses, its gravitational time dilation make itself collapse more slowly. This make me wonder, are what astronomers claim to be black holes really black holes, or are they stars that progressively make themselves more similar to one without actually reaching the stage of having an event horizon?  EDIT: Contemplating one answer, I realize the question is ambiguous. What does finite time mean in general relativity. Here is a less ambiguous question: Is there a connected solution of 3+1 dimensional general relativity with one space-like slice not have a singularity, and another space-like slice having one.


Is there a real performance gain when creating a view and selecting everything from it, compared to just running the TSQL that first "created" the view? Disconsider the cost of parsing the raw tsql-text.

Is a   select *  from myView   faster than the query itself to create the view (in order to have the same resultSet):  select * from ([query to create same resultSet as myView])   ?  It's not totally clear to me if the view uses some sort of caching making it faster compared to a simple query.


Im studying JavaScript,   I can make variables, and they work. However when I place them in side a function they dont work..? why? I recieve the answer ( 10 0 undefined)    var totalPeople = 3; var totalApples = 30;  function tree(totalApples, totalPeople) {   const shareApples = totalApples / totalPeople;   const moduloApples = totalApples % totalPeople;    const output = shareApples;    console.log(output + " " + moduloApples); }  console.log(tree(totalApples, totalPeople));

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


$G$ is a group. $N$ is cyclic and normal subgroup of $G$. Prove every element of $N$ commutes with every element of  $G'$. ( $G'$ denotes commutator of $G$). Could someone give ideas, thank you!

Given a finite group $G$, its commutator subgroup $H$ of $G$ and a cyclic normal subgroup $N$ of $G$, I'm trying to show that $hn = nh$ for all $n \in N$ and $h\in H$.  That basically means that every commutator fixes any $n$. My progress so far seems hardly any progress at all; if anything I feel like I'm making things messier. But I'm just going to write them anyway.   My first thought was that since $hnh^{-1} \in N$, $hnh^{-1} = n^r$ for some $r$ and we can show $r$ must be 1, but this went nowhere.   My second approach was to write, without lost of generality, $h=aba^{-1}b^{-1}$. Then the result becomes $a^{-1}b^{-1}nba = b^{-1}a^{-1}nab$ for any two elements $a$, $b$ of $G$. I feel like this should either be trivial somehow or additionally complicated.   Also, I'm having difficulty figuring out how the cyclic-normality of N comes into play here.  Any help would be greatly appreciated!


There is a NewClass.cs in which I collect data about ipconfig from cmd. How can I output data from this class (via arguments) to the TextBox that lies on the form ?! public static class NewClass {      public static void Test()      {          ProcessStartInfo Info = new ProcessStartInfo          {             FileName = "cmd.exe",             Arguments = "ipconfig /all",             CreateNoWindow = false,             UseShellExecute = false,             WindowStyle = ProcessWindowStyle.Normal          };          Process result = Process.Start(Info);          result.WaitForExit();     } }  On the form lies a TextBox, you need to make a call to the Test method (with passing arguments) from the NewClass.cs class so that everything from the command line (cmd.exe) is displayed in this TextBox without the console appearing. How to implement this? \  I tried like this but it doesn't work\ private void button1_click(object sender, EventArgs e) {     IProgress<string> progress = new Progress<string>(s =>     {         textBox1.Text += s;     });     NewClass.Test(progress); }  public static class NewClass {     public static void Test(IProgress<string> progress)     {         Process process = new Process();         process.StartInfo.FileName = "cmd.exe";         process.StartInfo.Arguments = "ipconfig /all";         process.StartInfo.CreateNoWindow = true;         process.StartInfo.UseShellExecute = false;         process.StartInfo.RedirectStandardOutput = true;         process.StartInfo.RedirectStandardError = true;         process.StartInfo.StandardOutputEncoding = Encoding.GetEncoding(866);         process.StartInfo.StandardErrorEncoding = Encoding.GetEncoding(866);         var handler = new DataReceivedEventHandler((s, e) => progress?.Report(e.Data));         process.OutputDataReceived += handler;         process.ErrorDataReceived += handler;         process.Start();         process.BeginOutputReadLine();     } }  Help Please

How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box.


I found plenty of solutions for Enum-Parsing into given types and given enums. But I wonder what shall I do when I only have the Name of the Enum I want the values? My current solution for this is a pretty dumb switch-case scenario That does the following:  string[] result = new string[0];              switch (lvKategorie.SelectedItem.ToString())             {                 case "Warten":                     result = Enum.GetNames(typeof(Warten));                     break;                  case "Maus":                     result = Enum.GetNames(typeof(Maus));                     break;   I now wish a better Method because my switch case is getting way too long. I only get the Name of the Enum by a string. This is being generated by my program before and I don't even know the name of the Enum I want to get before this point of my program. So how do I choose in-code which Enum shall be taken to get the values of? (In case my solution is also parsing I just did not get it right and need FURTHER explanations on how this works.)     To be absolutely clear: I want to replace the "typeof(xyz)"-parts in   the Enum.GetNames-Methods with an automatic pick of the correct enum by   the string of it's name.

I want to get a System.Type given only the type name in a string.  For instance, if I have an object:  MyClass abc = new MyClass();   I can then say:  System.Type type = abc.GetType();   But what if all I have is:  string className = "MyClass";


How can I check if 'ksize' in config = {'median': {}, 'gauss': {'ksize' :( 3,3), 'sigmaX': 3}} is a tuple? Is there any option to get values only from 'ksize' and not from all the gauss values? I am looking for a universal function if I need to check different values in different config values in the future.

What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?  Let's say I have an object o. How do I check whether it's a str?


See screenshot:  (Click image to enlarge)    That  ad seems to be the the one causing any application to die abruptly for absolutely nothing.  I saw that ad when I was using Skype. I also saw it when I was playing Clash of Clans and other games.  How do I get rid of it? What applications have that ad?  EDIT:   I restored factory settings and an app tried to ask permission to send ads. I click cancel. After a while that app tried to ask permission again. I have no idea what ad it is. I did a factory reset. Now the ad is gone. However it is replaced by annoying permission request.   The problem with the permission is it's not clear which app ask for that permission.    Also, I do not think this question is a duplicate because I got the problem even after factory reset and I see that this app is supported by airpush notification. Obviously, as a user, I just want to delete the app. What app?  Furthermore, I can't scan my Android. Every scanner, malware anti virus, airpush detector fails and crashes.  I think some apps are embedded in my ROM. That's why the price is a bit cheaper.

I am getting these popups regularly. They do not appear in the notification center so I can't find out what app is causing them. The only app I can think of that I have installed recently, I have already deleted and they still appear. I am using the Nexus 4 Android 4.2.2. None of the ad detector apps have found anything.   How can I determine what is causing this?  Here is a screenshot of an ad, and a screenshot of my task manager immediately after. I am not sure if the app would have to be running to show the ad:


I seem to have misunderstood something about Python variable binding. What are the precise rules for deciding which variable is accessed given a nested scope with shadowing names? Let me illustrate with some examples. First the basic shadow. a = 1  def foo():     a = 2     def _foo():         return a     return _foo()  print(foo())  # -> 2  Everything is fine here. The value is overwritten and returned accordingly. However, if the value is changed after the function definition, it is still the inner value: def bar():     def _bar():         return a     a = 2     return _bar()  print(bar())  # -> 2  What's more, defining a function that references a non-existent variable is possible. def baz():     def _baz():         return b     return _baz()  Then, if b is defined later, the function can be executed. But not if is defined in another inner scope: def qux(f):     b = 3     return f()  print(qux(baz()))  # -> NameError  Now all of these cases could be explained by having Python know about lines that come later in the program, but that conflicts with my knowledge of Python being an interpreted language, advancing line by line. So are statements parsed at once instead of line by line? A weird behaviour with shadowing class attributes throws me off a bit more. class C:     a = 2     b = a      def meth(self):         return a      c = meth  print(C.b, C().meth(), C.c)  # -> 2 1 C.meth  Here a is defined as a class attribute and is successfully used in b, but this does not carry over to the method definition. The method itself can be used in later attributes, but not for example in other methods without going through self. Is my guess about the binding happening all at once correct? And in that case are class bodies an exception by design, or are they not a scope at all? Or is something else going on here?

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


I am trying to display a random phrase from a dictionary every few seconds in a tkinter window.  I can get the phrase to display by just running a variable into a text box in tkinter, but I can't seem to get that phrase to change in the desired intervals.  So far this is the code that I have.  import time import sys import random import tkinter as tk from tkinter import *    """ DICTIONARY PHRASES """ phrases = ["Phrase1", "Phrase2", "Phrase3"]  def phraserefresh():     while True:         phrase_print = random.choice(phrases)         time.sleep(1)     return phrase_print  phrase = phraserefresh()  # Root is the name of the Tkinter Window. This is important to remember. root=tk.Tk()  # Sets background color to black root.configure(bg="black")  # Removes the window bar at the top creating a truely fullscreen root.wm_attributes('-fullscreen','true') tk.Button(root, text="Quit", bg="black", fg="black", command=lambda root=root:quit(root)).pack()  e = Label(root, text=phrase, fg="white", bg="black", font=("helvetica", 28)) e.pack()   root.mainloop()   The result of running this code is that the tkinter window never opens, as opposed to changing the displayed text. I know I must be over looking something simple but I can't seem to figure out what. Thanks for you help in advance!

My little brother is just getting into programming, and for his Science Fair project, he's doing a simulation of a flock of birds in the sky. He's gotten most of his code written, and it works nicely, but the birds need to move every moment.  Tkinter, however, hogs the time for its own event loop, and so his code won't run. Doing root.mainloop() runs, runs, and keeps running, and the only thing it runs is the event handlers.  Is there a way to have his code run alongside the mainloop (without multithreading, it's confusing and this should be kept simple), and if so, what is it?  Right now, he came up with an ugly hack, tying his move() function to <b1-motion>, so that as long as he holds the button down and wiggles the mouse, it works. But there's got to be a better way.


\I understand that it can be just a coincidence, but maybe there is a reason?  The closest I could find is using the property that $\log_2 x \approx \ln x + \log_{10}x$ and approximate values of $\log_2 10 \approx 3.3$ and $\log_{10}2 \approx 0.3$. Is there a better explanation?

The inequality $$\boxed{e^3 > 20}$$ is occasionally useful, including in the answer I wrote for  that comes from a GRE subject exam.  This bound is relatively tight: $$e^3 = 20.08553\!\ldots ,$$ a relative error of $< \frac{1}{200}$, which means establishing the inequality might be a little delicate. In a comment under the linked answer, TheSimpliFire posed the following natural question:     What is an efficient way to prove the inequality $e^3 > 20$ by hand?   (I would have guessed that this had been asked before, but neither the internal search nor searchonmath turned up any duplicates.)  A naive method is to use the series truncation $$e = \sum_{k = 0}^\infty \frac{1}{k!} > 1 + 1 + \frac{1}{2} + \frac{1}{6} + \frac{1}{24} + \frac{1}{120} = \frac{120 + 120 + 60 + 20 + 5 + 1}{160} = \frac{163}{60} .$$ Then, it suffices to prove that $\left(\frac{163}{60}\right)^3 > 20$, which is equivalent to $4\,330\,747 > 4\,320\,000$. This last step could even be outsourced to an enthusiastic primary school student, but it involves cubing a three-digit prime and so is slightly tedious.  One might try to refine this method by looking for rationals that are easier to cube, but the only rational numbers satisfying $\sqrt[3]{20} < q < e$ with denominator $< 60$ are $\frac{106}{39}, \frac{125}{46}, \frac{144}{53}$. It's again straightforward to show that the cube of any of these $> 20$, but doing so is no faster than cubing $\frac{163}{60}$ and one then has the additional burden of showing the number is $< e$.  One could also search for  for the difference $e^3 - 20$ (or to the difference corresponding to some other inequality equivalent thereto), by which I mean evidently positive definite integrals equal to that difference.  For example, some experimentation yields the definite integral \begin{align} &\int_1^2 - \frac{(x - 1) (2 - x) p(x) \,dx}{20 x (x^2 + 1)} \\ &\qquad = \int_1^2 \left(-\frac{1}{2} x^3 + \frac{63}{20} x^2 - \frac{153}{20} x + 9 - \frac{3}{x} - \frac{2 x}{x^2 + 1} \right) dx \\ &\qquad = 3 - \log 20 , \end{align} where $p(x) = 10 x^4 - 33 x^3 + 44 x^2 - 45 x + 30$. Computing gives that all of the coefficients of $p(x + 1)$ are positive, so $p$ is strictly positive for $x \geq 1$, and thus the integrand is strictly positive on $(1, 2)$. So, the integral is positive, that is, $3 > \log 20$, which is equivalent via exponentiation to $e^3 > 20$. This is again elementary, but not terribly fast.  Remark Incidentally this latter method lets us extract cheap but relatively sharp rational bounds on $\log 20$: Since $2 < x (x^2 + 1) < 10$ on the interval of integration, our integral is bounded by polynomial integrals: $$\int_1^2 - \frac{(x - 1) (2 - x) p(x) \,dx}{20 \cdot 10} < \int_1^2 - \frac{(x - 1) (2 - x) p(x) \,dx}{20 x (x^2 + 1)} < \int_1^2 - \frac{(x - 1) (2 - x) p(x) \,dx}{20 \cdot 2} .$$ Integrating gives $$\frac{163}{84000} < 3 - \log 20 < \frac{163}{16800},$$ and rearranging gives the bounds $$2.99027\!\ldots = \frac{251185}{84000} < \log 20 < \frac{251837}{84000} = 2.99805\!\ldots .$$


Issue  I am declaring a set of companies and dates per company, for some reason whenever I update one of the months for a company, the same month for every company gets updated.  Simplified code snippet  class Company:     rating = dict()  class Month:     score = 0     scoreCount = 0  ...  rating.company = "Google" rating.date = "Nov2018" rating.score = 5  if rating.company not in companies:     companies[rating.company] = Company()  if rating.date not in companies[rating.company].rating:     companies[rating.company].rating[rating.date] = Month() ...  companies[rating.company].rating[rating.date].score += rating.score companies[rating.company].rating[rating.date].scoreCount += 1   Using python3.5  Case scenario  companies["Google"]["Nov2018"].score = 0 companies["Microsoft"]["Nov2018"].score = 0   Then, when I update the score of one of the two months using the snippet above, the other one is also updated  Expected behavior  Only one of the two Month objects updates after each iteration  Here you can see how both Month objects share the same reference although they're under different companies and declared separately.

Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different?


I have a CSV with about 2 Mio. entries with X and Y coordinates WGS84 and many attributes. The X and Y coordinate are the south west coordinate of 100 meter by 100 meter grid over a country. But the grid is not complete.  Then I have a second CSV with X and Y coordinates WGS84 with point data. For each point of the second CSV I want to find the appropriate raster data so I have to identify in which raster the point lies...  I tried many approaches but I can't create a raster with the first CSV.    If I just create a layer with the CSV I can't rasterize since vector to raster expects a shapefile. When I save my layer first as a shapefile the vector to raster option does something. But how can I specify that the coordinate is the south west point of a raster? And how can I specify the the raster should be 100 by 100 meters?

If I load the original .csv file, I then have a map of the African continent represented by 14069 data points covering it at 40x40km resolution. Each data point shows solar radiation means across the year, (jan, feb, etc).   What I want to be able to do is convert that vector into a raster using GRASS.  What I have managed to do already, is import the .csv (tab delimited) file into the GRASS mapset using v.in.ascii. However, when I try use v.to.rast.constant to convert that vector into a raster, I get a solid square covering Africa, that cannot be edited. I.e. there is no data from the vector within the created raster.   What am I doing wrong?


Should I send email to a professor who has said on his website that he is recruiting new PhD students through xxx program? Some people marked this as a duplicate of another question, but I don't really think that question can solve my problem.

When applying for PhD programs (or  or ) that require only a statement of purpose and , I was advised to first check if some faculty members (or is one good enough?) in the university have the same research interests as I do. I remember reading or hearing something like, it may be helpful to read up on the research that those faculty members have done and possibly contact some of those faculty members, and then incorporate the reading and contacting in the statement of purpose.   So what could I ask those faculty members? What I think:      Hello Prof/Dr ___ .I'm interested in applying in your univ and am interested in X. Can I ask more about what you research? This is my  (I'm from blah blah blah. I have a master's, but it's in applied not pure math. I've done some self-study blah blah blah). Do you think I am a good fit for the university? Would you consider taking me on as a PhD student? Do you think I am better suited for MS/MPhil than a PhD?    And then how do I incorporate the e-mails in my statement of purpose?


Is this the correct way to  use and initialize the Optional variables .. I get an error "variable might not be initialized " on all these variables when I call calculateAnnualCalculationTotal ..I want to use these variables in the annualCalculationSummaryDto if the insurance.product isn't abc or def otherwise those three fields that am trying to set in the annualCalculationSummaryDto should remain null ..                    Optional<CalculatedPaymentsDto> calculatedPayments  ;         Optional<PaidPaymentsDTO> paidPayments  ;         Optional<CreatePaymentResponseDto> payment ;          if (!insurance.getProduct().equalsIgnoreCase("abc") && !insurance.getProduct().equalsIgnoreCase("def")) {              int totalAnnualCalculationSum = calculateAnnualCalculationTotal(insurance, requestDto.getAnnualCalculationYear(), calculatedPayments, paidPayments);             payment = Optional.ofNullable(createPayment(getCreatePaymentRequestDto(insurance, calculatedPayments.get(), totalAnnualCalculationSum, requestDto.getAnnualCalculationYear())));         }          AnnualCalculationSummaryDto annualCalculationSummaryDto = new AnnualCalculationSummaryDto();         if(calculatedPayments.isPresent() && paidPayments.isPresent() && payment.isPresent()){             annualCalculationSummaryDto.setCalculatedPaymentsDto(calculatedPayments.get());             annualCalculationSummaryDto.setPaidPaymentsDTO(paidPayments.get());             annualCalculationSummaryDto.setPayments(payment.get());         }      annualCalculationSummaryDto.setParam1(inr.getProduct());      annualCalculationSummaryDto.setParam2(requestDto.getTotal());      annualCalculationSummaryRepository.save(annualCalculationSummaryDto);   ............. ............. ..............  private int calculateAnnualCalculationTotal (Insurance insurance , int year , Optional<CalculatedPaymentsDto> calculatedPayments , Optional<PaidPaymentsDTO> paidPayments) {          calculatedPayments = Optional.ofNullable(paymentService.getCalculatedPayments(insurance.getId(), year));          paidPayments = Optional.ofNullable(paymentService.getPaidPayments(insurance.getInsuranceYears(), year));        totalSum = calculatedPayments.get().getParam1()+ paidPayments.get().getParam2(); ..... }   Or is there a better way to write this ..

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I,m working in eclipse with java language but i have error when write the  POS standford api code for tagging the text. plz, can any one help me , the  error as follow  "Exception in thread "main" java.lang.NoClassDefFoundError:   org/slf4j/LoggerFactory at edu.stanford.nlp.pipeline.StanfordCoreNLP.  (StanfordCore.<clinit>(StanfordCoreNLP.java:99) at tweetfileanalysis.TweetPOS.tweettag(TweetPOS.java:23) at tweetfileanalysis.ReadJson.readJsonf(ReadJson.java:288) at tweetfileanalysis.Mainclass.main(Mainclass.java:17) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown  Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more   i put all libraries by using configure build path so what can i do to solve the error the class code as follow:  package tweetfileanalysis;  import edu.stanford.nlp.ie.util.RelationTriple; import edu.stanford.nlp.ling.CoreAnnotations; import edu.stanford.nlp.pipeline.Annotation; import edu.stanford.nlp.pipeline.StanfordCoreNLP; import edu.stanford.nlp.naturalli.NaturalLogicAnnotations; import edu.stanford.nlp.util.CoreMap;  import java.util.Collection; import java.util.Properties;   public class TweetPOS{  public TweetPOS()  {}  public static void tweettag(String tweet)   {  // Create the Stanford CoreNLP pipeline     Properties props = new Properties();     props.getProperty("annotators",   "tokenize,ssplit,pos,lemma,depparse,natlog,openie");     StanfordCoreNLP pipeline = new StanfordCoreNLP(props);      // Annotate an example document.     Annotation doc = new Annotation("Obama was born in Hawaii. He is our    president.");     pipeline.annotate(doc);   System.out.println("fhfbg");     // Loop over sentences in the document     for (CoreMap sentence :    doc.get(CoreAnnotations.SentencesAnnotation.class)) {       // Get the OpenIE triples for the sentence      Collection<RelationTriple> triples =   sentence.get(NaturalLogicAnnotations.RelationTriplesAnnotation.class);       // Print the triples     System.out.println("uuuuuuuuuuuuuuuuuuu");       for (RelationTriple triple : triples) {         System.out.println(triple.confidence + "\t" +             triple.subjectLemmaGloss() + "\t" +             triple.relationLemmaGloss() + "\t" +             triple.objectLemmaGloss());       }     }      }   }

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


Several times while browsing stack exchange sites, I've noticed that people sometimes edit their question to include the answer to the question as a separate section of the question. Example (initially posted as a question then edited to include the answer)  How do I do XYZ with ABC? Question I'm trying to do XYZ with ABC, I've tried... etc Edit: Answer I found out how to do XYZ with ABC by taking the ...  I would have thought the thing to do upon seeing this would be to edit the question to remove the answer from it and then posting the answer as an answer to the question, but would it be better to flag and let a moderator do it

I saw this question:   I don't know what the best option is for dealing with such a question, because I've seen questions like this several times already.  So, what should we do with questions that are:   poorly asked finally answered by the OP as an update to the question itself, not as an answer.


For any $A>0$,$|\int_0^A{\sin(x)}|\le2$ and ${\frac{1}{\sqrt{x}}}$ is decreasing to $0$ as $x$ tend to $+\infty$.By Dirichlet's test,the integration $\int_0^{+\infty}{\frac{\sin(x)}{\sqrt{x}}}dx$ makes sense.  Moreover,I know the method of computing $\int_0^{+\infty}{\frac{\sin(x)}{x}}dx$ which is that considering the integration $$I(\beta)=\int_0^{+\infty}f(x,\beta)dx=\int_0^{+\infty}e^{-\beta{x}}{\frac{\sin(x)}{x}}dx$$ and $$I^{'}(\beta)=\int_0^{+\infty}f_\beta(x,\beta)dx=-\int_0^{+\infty}e^{-\beta{x}}{\sin(x)}dx.$$ We can compute $\int_0^{+\infty}e^{-\beta{x}}{\sin(x)}dx$ easily thourgh integral by parts.If we use the same method,we will obtain$$I^{'}(\beta)=-\int_0^{+\infty}e^{-\beta{\sqrt{x}}}{\sin(x)}dx.$$ Integral by parts is out of use since it will produce many $\sqrt{x}$.Can you tell me how to integrate this integration and more general case $\int_0^{+\infty}{\frac{\sin(x)}{x^a}}dx$,where $0<a<1$.Thank you in advance!

Numerically it seems to be true that  $$ \int_0^\infty \frac{\sin x}{\sqrt{x}}dx=\sqrt{\frac{\pi}{2}}. $$  Any ideas how to prove this?