NullPointerException when attempting to change textView text in fragment

I am getting a nullPointerException for when I try to change the text of a textView within a fragment I have tried suggestions of putting getView() and getActivity() before findByViewId but they both result in errors. Thank you.    public class MainFragment extends Fragment {   public MainFragment() {     // Required empty public constructor }   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     View rootview = inflater.inflate(R.layout.fragment_main, container, false);      //calls setdate function     setDate();      return rootview; }  public void setDate(){     String mydate = java.text.DateFormat.getDateTimeInstance().format(Calendar.getInstance().getTime());     //need to use calendar class as Date is deprecated (old)       TextView textView = (TextView) getActivity().findViewById(R.id.info_text);     textView.setText("updated"); }     <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical" android:layout_width="match_parent"     android:layout_height="match_parent">      <android.support.v7.widget.CardView         xmlns:card_view="http://schemas.android.com/apk/res-auto"         android:id="@+id/card_view"         android:layout_gravity="center"         android:layout_width="fill_parent"         android:layout_height="200dp"         card_view:cardCornerRadius="4dp"         android:layout_marginLeft="25dp"         android:layout_marginRight="25dp"         android:layout_marginTop="75dp">          <TextView             android:id="@+id/info_text"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:text="Test"             android:textSize="25dp"             android:textStyle="bold"             android:textColor="#252525" />     </android.support.v7.widget.CardView>      <android.support.v7.widget.CardView         xmlns:card_view="http://schemas.android.com/apk/res-auto"         android:id="@+id/card_view2"         android:layout_gravity="center"         android:layout_width="fill_parent"         android:layout_height="395dp"         card_view:cardCornerRadius="4dp"         android:layout_marginLeft="25dp"         android:layout_marginRight="25dp"         android:layout_marginTop="15dp">          <TextView             android:id="@+id/info_text2"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:text="placeholder_text"             android:textSize="25dp"             android:textStyle="bold"             android:textColor="#252525" />     </android.support.v7.widget.CardView>  </LinearLayout>     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference                                                                            at au.com.alexh.dayrater.MainFragment.setDate(MainFragment.java:43)                                                                            at au.com.alexh.dayrater.MainFragment.onCreateView(MainFragment.java:33)


Prove for any given positive integer $N$ there exist only finitely many integers n with $φ(n)=N$

Prove for any given  positive integer $N$ there exist only finitely many integers $n$ with $φ(n)=N$, where $φ$ denotes Euler’s $φ$-function. Conclude in particular that $φ(n)$ tend to infinity as n tend to infinity.  How can I prove the above statement? Because Euler’s $φ$-function is bijection?


Controlling Image Output Settings in QGIS?

I am exporting a QGIS map to an image format. I would like to have control over the output settings of the image (dpi), as currently it is only exporting the images at 96 dpi.   Does anyone know if this is possible?


Ubuntu fails to boot after updating nvidia drivers

I have a Dell XPS 15, and my computer runs Kubuntu 16.10.  I recently updated my NVIDIA graphics driver (through the terminal), and while installing it asked me to "turn off Secure UEFI Boot", so I did, and rebooted my computer, and then the computer doesn't start.  It gets stuck at a black and white terminal-like screen that says:  [6.036253] brcmf_c_preinit_dcmds: Firmware version = w10: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c [6.074532] brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30) [15.660363] brcmf_inetaddr_changed: fail to get arp ip table err:-23   and won't go any further.  I am very new to Linux and need help on how to fix this; I have some important work on this computer that I would really like to keep.


This was explained to me many years ago, by a physics teacher, with the following analogy:  "If someone on the beach wants to reach someone else that is in the water, they will try to travel as much as they can on the beach and as little as possible on the water, because this way they will get there faster."  I'm paraphrasing of course, but this is as accurate as I recall it. This explanation makes no sense to me. Was he telling me the light knows where it is going? It wants to get there faster? It chooses a different direction? (No need to answer these questions, this was just me trying to understand the analogy.)  My attempts to clarify the issue were without success and many years later I still don't know.    Why does light change direction when it travels through glass?


I've got a db like this:  Accounts  -------- id BankName AcctNumber Balance  AccountGroups ------------- id GroupName  JoinAccountsGroups ------------------ aid gid   I'm trying to generate data like this:  Bank       AcctNum       Balance    Groups --------|--------------|----------|---------------- Citi       930938        400        Payroll B of A     8372933       100        Monthly, Payroll Wells      09837         800        - Chase      8730923       250        Monthly   Is there an easy way of generating that Groups column in a sql query, that will combine the results of the join into a comma-separated field? I'm currently doing it on the php side using a secondary query on each row as I'm processing it. It's fine for a small dataset, but it seems pretty inefficient...  I'm using php > jet > ms access .mdb file.


Move sessions in Chrome to a different computer

I need to move my browsing session in Chrome to a different computer.  For example, on my current computer, I have sessions saved for Gmail, Facebook etc.  So, I can go to Facebook.com and it will not prompt me to login (even after a restart).  I need to move over these and many other sessions to a new computer which also has Chrome installed.  I want to still be able to go into any of the sites such as Gmail or Facebook and not be asked to log in at all.


On my Linux box (Gentoo Linux 2.6.31 to be specific) I have noticed that the HOSTNAME environment variable is available in my shell, but not in scripts. For example,  $ echo $HOSTNAME   returns  xxxxxxxx.com,   but  $ ruby -e 'puts ENV["HOSTNAME"]'   returns  nil   On the other hand, the USER environment variable, for instance, is available both in the shell and in scripts.   I have noticed that USER appears in the list of environment variables that appears when I type  export   i.e.,  declare -x USER="infogrind"   but HOSTNAME doesn't. I suspect the issue has something to do with that.   My questions: 1) how can I make HOSTNAME available in scripts, and 2) for my better understanding, where is this variable initially set, and why is it not "exported"?


What really determins the color of light?

I have been considering this problem:     Colour is characterized by which of following character of light?      a)Frequency      b)Amplitude      c)Wavelength      d)Velocity   Different websites claim different answers; some claim wavelength, some claim frequency. My textbook is an average Indian textbook and has wavelength as the answer. I searched in standard books but did not find the answer.  But, as the wavelength changes from one medium to another medium, frequency does not change, and colour also does not change, it seems confusing to decide between frequency and wavelength. I consulted a teacher as well, he said wavelength, with logic I did not understand, and as he seemed to be in a hurry I did not feel comfortable to prolong the conversation.  References:          // says frequency             //says wavelength but answer mentioned(in the lower section of webpage) is frequency.     //says wavelength               //says wavelength     //says frequency


Applying derangement principle to drunken postman problem.

Two letters need to be delivered to each of n houses. How many ways can a postman deliver two letters to each house such that each house receives at least one incorrect letter?    I got stuck and don't now how to progress. Can someone provide hint?   1) $(2n)!/2^n$ is the number of all possible onto functions from our domain of houses to the codomain of letters.  2) Let $A_i$ be property that two delivered letters are correct. $ |A_1'   \cup A_2'   \cup...  \cup A_n'|=(2n)!/2^n-|A_1   \cap A_2   \cap...  \cap A_n|$    I tried everything I could come up with but I cannot find $|A_1   \cap A_2   \cap...  \cap A_n|$. I feel like I need to find union first but in order to do that I should find intersection. Really confused. Any hint would be appreciated.   Edit: Corrected mistake in the equation.


I am VERY green. My ex left Debian on my laptop and it's too complex for me so  I want to install Ubuntu on it. But I can't even get Ubuntu installed on a USB.   Start Up Disk Creator sees my USB but the "Make Start Up Disk" button is not clickable.   I have Ubuntu 18.04 LTS on one laptop --thanks to a Linux MeetUp! But it won't let me burn an ISO file (like I know what I'm talking about). I see there are similar questions but the answers are overwhelming. There is no simple way to create a bootable USB?  Time to go to another Linux MeetUp (and be the only girl)?


Changed response to Recommendation questions now that there's a site for them?

SO has long had a policy of closing questions asking for recommendations as "off topic", with the following kind of closure annotation:     Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.   Since we now have , could this response be changed to something more along the lines of:     Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow.  Consider submitting this to Software Recommendations.     An alternative is to have the question simply migrated to Software Recommendations.  This might not produce high-quality questions because there's no a priori reason to believe the question has been posed well, but SR can probably handle those cases.  See also .  A suggestion that a link to the SR rules be included, to ensure the poster understands the not-implied threat of secondary closure, is an excellent one.  Maybe something like this?     Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow.  Consider submitting this to Software Recommendations. Be sure to follow their  to avoid closure there.


CommonOpenFileDialog to show files that can't be selected

For an application I am writing, users have to select a folder containing some logfiles that the app works with. To make it more intuitive, I want them to be able to see the files in the folder, but still only be able to select the folder of course.  So my problem is, how can I have the Dialog open folders only, but still show the other files.  I have tried the solution from this thread,     However, it doesn't seem to work on Windows10, at least not for me and the other PCs I've tried it on.  This is what I currently have to open:  CommonOpenFileDialog dialog = new CommonOpenFileDialog(); dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); dialog.IsFolderPicker = true; if (dialog.ShowDialog() == CommonFileDialogResult.Ok) { }


Counting number of lines in a file using grep and wc

I am trying to display a number of lines in a file using grep and word count (wc -l) with a pipe.  I tried many different methods but neither of them wordked. The file is in /home/[User]/[Folder]/[File Name.Extension].  Any suggestion is appreciated.  Thanks,


How To Read/Write Files From a SFTP Server in Python?

I am wondering how to read and write files to an SFTP server in Python. I tried searching for other Stackoverflow posts, but they all suggested using outdated modules like pysftp, or other modules that rely on pysftp. Does anyone know any SFTP Modules for Python?


The package system is broken error during Ubuntu package update

Getting the following error when trying to update Ubuntu software: Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Transaction failed: The package system is broken  The following packages have unmet dependencies:  golang-1.10: Depends: golang-1.10-doc (>= 1.10.4-2ubuntu1~18.04.2) but 1.10.4-2ubuntu1~18.04.2 is installed              Depends: golang-1.10-go (>= 1.10.4-2ubuntu1~18.04.2) but 1.10.4-2ubuntu1~18.04.1 is installed              Depends: golang-1.10-src (>= 1.10.4-2ubuntu1~18.04.2) but 1.10.4-2ubuntu1~18.04.2 is installed  Got following error when tried apt-get install -f  sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   gconf-service gconf-service-backend gconf2 gconf2-common libappindicator1 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbsd0:i386 libdbus-1-3:i386 libde265-0   libdevmapper1.02.1:i386 libexif12:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libfuse2:i386 libgconf-2-4 libgd3:i386 libglade2-0 libgphoto2-6:i386 libgphoto2-port12:i386   libheif1 libicu60:i386 libieee1284-3:i386 libindicator7 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libllvm7 libllvm8 libllvm9 libltdl7:i386 libpng16-16:i386 libsdl1.2debian libssl-doc   libstdc++6:i386 libsystemd0:i386 libtiff5:i386 libudev1:i386 libusb-1.0-0:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxml2:i386 libxpm4:i386   linux-headers-4.15.0-135 linux-headers-4.15.0-135-generic linux-image-4.15.0-135-generic linux-modules-4.15.0-135-generic linux-modules-extra-4.15.0-135-generic python-appindicator   python-cairo python-gconf python-gi python-glade2 python-gobject python-gobject-2 python-gtk2 python-pexpect python-ptyprocess python-xdg python3-click python3-colorama Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   golang-1.10-go Suggested packages:   bzr mercurial subversion The following packages will be upgraded:   golang-1.10-go 1 upgraded, 0 newly installed, 0 to remove and 130 not upgraded. 2 not fully installed or removed. Need to get 28.6 MB of archives. After this operation, 4,096 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 golang-1.10-go amd64 1.10.4-2ubuntu1~18.04.2 [28.6 MB] Fetched 28.6 MB in 7s (4,059 kB/s)                                                                                (Reading database ... 273804 files and directories currently installed.) Preparing to unpack .../golang-1.10-go_1.10.4-2ubuntu1~18.04.2_amd64.deb ... Unpacking golang-1.10-go (1.10.4-2ubuntu1~18.04.2) over (1.10.4-2ubuntu1~18.04.1) ... dpkg: error processing archive /var/cache/apt/archives/golang-1.10-go_1.10.4-2ubuntu1~18.04.2_amd64.deb (--unpack):  trying to overwrite '/usr/lib/go-1.10/src', which is also in package golang-1.10-race-detector-runtime 0.0+svn285455-0ubuntu1 Errors were encountered while processing:  /var/cache/apt/archives/golang-1.10-go_1.10.4-2ubuntu1~18.04.2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  How to solve this?


how to I add a class to an element created with javascript?

I am trying to add a class to a div I create with javascript. I could append it inside another div with a class. This is the line of code in question.    var car_storage = document.createElement('div');   I have tried using, the code below, but I get instead of a class this, "is[object, object]"     var car_storage = document.createElement('div'{className: 'car_storage_cont'});   Please help.


We know the definition of ED only assume that the existence of an Euclidean function in which Euclidean algorithm works.   My question is: Could we request the Euclidean function is multiplicative in addition?


About upgrading on Dell Inspiron 15, 3000 series from Ubuntu 14.04 to 16.04

I am thinking of buying Dell Inspiron 15, 3000 series that comes with Ubuntu 14.04 LTS pre-installed () I have been searching everywhere about the experiences of upgrading from Ubuntu 14.04 to 16.04 on this machine, and so far it seems like the upgrade fails quite badly for most cases, with some others having problems with hardwares. But these search results dated at least 3 to 6 months back.  So I am wondering if there has been anyone who has succeeded with the upgrade with all the hardware working in order? How about other distributions such as Debian or Linux Mint? I would really love to have this computer but it would be a waste if 14.04LTS is the only OS that works, even if its support cycle ends in 2019. I will also be happy if someone knows of a link where people post their successful upgrades.


How to clip a raster with a mask in QGIS?

I am trying to clip a raster using a virtual raster as mask layer in QGIS. It doesn't create a file. Could anyone explain how I should proceed to do that?


Should a country name in a country selection list be the country's local name?

The other day I was browsing a German-localized website but needed to order something from their UK site. There was a country selection dropdown so I tried to use that one. I'm not fluent in German so It was hard to figure out that what I was looking for was "Großbritannien". I did look at all countries starting with "U" for UK, "E" for England, "B" for Britain and finally even starting with G but did not easily read Großbritannien as Große Britannien.  My question is, wouldn't it make more sense for this kind of dropdown to show the - or one of the local country names in one of the local languages?  Edit: After posting, I remembered the particular offending website:


In Minecraft Bedrock Edition, how would I specify larger, zoomed- out maps in a /clear command

I am making a pvp survival world on Minecraft BEDROCK EDITION. I don't want players to be able to see where everyone is in a huge area with huge maps, but I also would like it if they could see people just nearby them. I would like to delete the larger maps from their inventory but keep the smaller ones. Is there any way I could differentiate between the map levels/sizes?


can't call a function in addEventListener

So I have a few elements that share the same class that I want to trigger separately when I click each element.

   I am looping through the classes this way  const box = document.getElementsByClassName('box');      Array.from(box).forEach(boxItem => {       boxItem.addEventListener('click', changeBg });   And as you can see I am trying to call the function changeBg which does not work.     changeBg = () => {   boxItem.style.backgroundColor = "black"; }   It works if I just write out the entire function inside the addEventListener. What am I missing here to be able to call the function? I need to define boxItem in my function, but how? It don't work passing boxItem as a parameter, it just just adds black to all box-elements immediately


I am looking for a disassembler or better, a decompiler for .net.  The situation is that the source code for an assembly written by one of my predecessors is lost and I'd like to take a look to see what it's doing.  I know that ildasm comes with the Visual Studio installation so I can get at the MSIL, but I was hoping there was a program clever enough to work back to the C# code (or best approximation).  Are there any tools for this out there?  (If not, I suppose it'll be a good excuse for me to sit down and start to learn MSIL)


Getting a relationship value from an Sobject

I need to get a relationship value from an sObject but I dont know how.  What I mean is the following.  I am doing a query and one of the fields I am getting is CreatedBy.Name. The query results are being stored in a SObject array because the query might be for a number of different objects.  The problem is I can't use   String name = (String) sObject.get('CreatedBy.Name')   So is there a way to do it that doesnt involve me getting the CreatedById and then querying for the name using that?


I am working on an Encryption Project and have used PyCrypto module in Python for all the Cryptographic algorithm.  When I connect PHP with MongoDB, at the user sign up I need to link each user with a specific public and private key, the code for RSA Key generation is in Python and I am using PHP to store all the user information in MongoDB.  How to call Python scripts and use the output in PHP without executing the script in shell first as it is a time taking process?  Is there any cross-compiler present for both PHP and Python so that I can execute on the same compiler ?


I am currently learning about the concept of convolution  between two functions in my university course. The course notes are vague about what convolution is, so I was wondering if anyone could give me a good explanation. I can't seem to grasp other than the fact that it is just a particular integral of two functions. What is the physical meaning of convolution and why is it useful? Thanks a lot.


Skip leg and book a connection with the same airline

As part of a larger trip my last two flights are DFW-LHR and LHR-AMS. However, I would be a lot faster, if I skip the last leg and book an extra flight from London to my final destination.  My question: Can I run into problems, if the additional flight is with the same airline, which I have my original reservation with. If they checked, the would see, that I booked two different flights at almost the exact same time.  The original booking was an error fare, so trying to change it, is probably not the best idea either. Can anyone provide me with some ideas or recommendations?


Number of strings lenght $n$ with no consecutive zeros

I know this problem is familiar to "the number of binary strings of length $n$ with no consecutive zeros" but still it is a way different problem. But in that question the alphabet is set to $\{0,1\}$ and here:  Q:  Let $A=\{0,1,2\}$ be an alphabet, what is the the number of possible strings of length $n$ with no consecutive zeros in it?


I have a social network, where I can place comments on posts. I havce implemented this using a ReactionController that handles API calls for a post that has an event that indicates that the API call finished.  My code goes like this (in my "timeline" controller, when the UI asks me to place a reaction):  public void PlaceReaction(string reaction) {     var reactionController = new ReactionController(post);     reactionController.DishUpdatedEvent += (updatedPost) => {         // Notify the UI         UIThreadDispatcher.Invoke(() => SinglePostUpdatedEvent?.Invoke(updatedPost));     };      reactionController.PlaceReaction(reaction); }   and in my ReactionController:  // Saved to API UIThreadDispatcher.Invoke(() => PostUpdatedEvent?.Invoke(_post));   I am afraid my liberal use of events may cause the ReactionController to remain in memory, but I only want it to stay in memory for the duration of the call, until the event is fired. Will this act like I want it to or do I have a memory leak?


HTML and SEO - Relative Links and Absolute Links

Question:  Does it matter if some links are full URL:  ie: http://example.com/contact-us.html (absolute) versus relative (example.com/contact-us.html) for SEO purposes? The difference is when using absolute it includes the full http:// part versus relative doesn't include it in the link when viewing source.  I have a site that has a submission form that I would like to serve up via SSL / HTTPS. The issue is that when I force (via .htaccess) for this particular submission form page to SSL / HTTPS only then all of the links on the page are to HTTPS. For example, the main navigation bar on all pages of the site and what is indexed by search engines is HTTP only. On this one HTTPS page it shows all of the other navigation links as HTTPS because I used relative links in the HTML (ie: /contact-us.html). I don't want search engines to index HTTP and HTTPS versions of all of the same pages (identical indexing).  I have updated the main navigation section to do absolute links (ie: www.example.com/contact-us.html) however, I noticed when I looked in the source it will reflect the whole www.example.com/page-name.html section but on other relative links that I didn't make absolute it will only reflect the /page-name.html.  Will this matter for SEO purposes that some links on the page show the domain's www.example.com/page-name.html while some links are relative /page-name.html? If you look at the source of any page the navigation is now all absolute and any content, paragraph, etc related links are all relative.   Does this matter SEO-wise? If so, what is the work around? Go through the source of ALL pages and make them absolute?


How beneficial is IEEE student membership for a mathematics student?

I am a Ph.D. mathematics student. I have no idea regarding IEEE student membership. IEEE has advertised many benefits and opportunities of it in their web pages.  Can you kindly explain how beneficial it may be for me? How may I use it for my academic and research works?


Custom arrangement for fields with multiple values in Drupal 7

In Drupal 6 I used to make every sort of customised markup for CCK fields with multiple values. Usually this happened when I wanted to lay out thumnails for a gallery inside a table: I used to go into the relevant tpl.php file, grab the relevant $field_fieldname variable, loop through it, and print out the 'view' key for it, which contained the styled thumbnail, often linked to the original image and whatever.  Now, I'm a bit confused on how this should be done in Drupal 7. For now, I set up a suboptimal solution that goes like

     <?php foreach($content['field_gallery'] as $k => $v) : ?>         <?php if(is_numeric($k)) : ?>             <?php echo render($v) ?>             <?php if((($k+1) % 4) == 0) : ?>

             <?php endif ?>         <?php endif ?>     <?php endforeach ?>

   but it's obviously wrong. I can't seem to get my head around this, even after having read lots of docs about the Field API and theming for D7. Ideas?


What are the popular e-book readers for Ubuntu? I am trying to download books in electronic format but I don't know any suitable e-book reader.


When I run the attached code I get this error:  ************************************ Missing \endcsname inserted. <to be read again>                     \c@float@type  l.23 \end{algorithm} ************************************   Any help would be highly appreciated.  \documentclass[aip, amsmath, amssymb, reprint]{revtex4-1}  \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \usepackage{float} \usepackage{algorithm} \usepackage{algpseudocode}  \begin{document}  \begin{algorithm*}   \caption{Hello}   \label{EPSA}    \begin{algorithmic}[1]    \State $T_m= \min\limits_k (T_c(k)),  k_m= \arg\min\limits_k (T_c(k))$    \end{algorithmic} \end{algorithm*}  \end{document}


While searching some solution on my problem I found a mirror site of Stack Overflow named w3stack.  Here are the links:   The  The mirror site /


I have finished destroying all the Crimson Hearts and have gone to the guide to see what to do next and the guide is telling me to keep destroying them. I think it's a bug and I can't find out ANYWHERE what to do next.


New Navigation Bar Linking Back to Page 1

When I use the back button to go out of a question, I am redirected back to page 1. This is annoying because I already looked over the questions on that page.  This is probably because the page does not use GET requests for the page number. Is there a reason for this? This did not happen when I was using the old navigation bar.


Protect our WMS map tiles to only accessible from our site

We are using geoserver (2.3) to serve WMS map tiles generated from mapping data we licenced. We use leaflet on the client side to show the map (part of a ruby on rails site running on heroku). Because of the licence of the mapping data, we should not allow anybody to use these map tiles, it should be only accessible by our users when they are using the map on our website.  Is there any way to avoid somebody just taking the WMS URL from our javascript code and using it on another site? Or bulk downloading all the map tiles?  We can configure the geoserver to require username/password or certificate, but then we would need to expose it to the client side.  Thanks!


kdevtmpfsi using all resources. Can't stop it

kdevtmpfsi is running on my server and apprears to hog all the resources, it also restarts after being killed. Ok so googling around I've found kdevtmpfsi is a coin miner, great! I've tried to set write permissions to the file with no luck as it run reloads with a random bunch of numbers appended to it. kdevtmpfsi spawns in the /tmp folder currently. Also: There was a cron job setup for my postgres user which I've not added to cron.allow to try and stop this from running. Any one have a solution to stop a process running by a partial name match? OR any other suggestion to stop this once and for all? Everything I try appears to be a temporary fix.


Command to (attempt to) format a disk as non-root

I am wondering how to make a filesystem as a non-root user, using GNOME 3 (openSUSE Leap 42.3).  ~> fallocate -l ### part.bin # Create a sparse file on disk ~> #sudo mkfs -t FSTYPE part.bin # Requires root; how can I do this without root privileges?   I am assuming this is possible because of the implications of .  Though sudo can give root privileges to only certain executables, I am looking for a pure non-root solution, requiring no superuser privileges.


Is there a formula to find every number divisible by $7$ but not $2,3$,or $5$? Not counting numbers but looking for specific solutions.

All numbers divisible by 3 but not 2 can be found using  $6*n+3$  All numbers Divisible by 5 but not 3 or 2 can be found using  $10*n+5$  Is there a formula for divisible by 7 but not 5,3,or 2?


No grub menu/ lost password/ grub command line

I can get to a grub command line by pressing the ESC key during boot. But no grub menu. I hadn’t used this computer in a while and forgot the password. Is there a way to reset the password from the grub command line rather than the grub menu?  Dell XPS 13 9360 Ubuntu 18.0.4  Thanks


How can I find the owner of an obstinate iPhone?

So, I have this iphone that my parents found. I need some advice on how to find the owner. It's a puzzler though.  It was dead and I'm an android user so I couldn't power it up to find the owners info. So, I took it to the Apple store assuming that since I thought Apple was all about service, they would just take care of it.  No such luck. They said they couldn't help me. They did let me charge it up though. Might I point out that it's really stupid how long you have to wait for usability when plugging in a dead iPhone.  Anyway, when it finally became usable (20 minutes of standing foolishly in the Apple store later), it immediately popped up a little message saying it had no sim installed and when touched it just displayed a lock screen. The store employee told me there was nothing that could be done with that except a wipe.  I doubt a carrier would be helpful since there is no sim. I was under the impression that the sim couldn't be removed from an iphone though. Is that inaccurate?  Anyway, it also said the date was December 31st and my parents just found it a little over a week ago so I'm assuming it was sitting in that location for quite some time, which isn't all that surprising considering where it was. I guess maybe the clock isn't updating due to the lack of a sim... Just a guess though.  So now the only thing I really have to link it to it's original owner is the background pic on the phone which isn't much to go on at all. ;) Especially since it's half covered by the missing sim message.  Any ideas? You would think in this connected world that this wouldn't be that hard. Unfortunately I think it might be.


What is the intuition behind exchangeable samples under the null hypothesis?

Permutation tests (also called a randomization test, re-randomization test, or an exact test) are very useful and come in handy when the assumption of normal distribution required by for instance, t-test is not met and when transformation of the values by ranking of the non-parametric test like Mann-Whitney-U-test would lead to more information being lost. However, one and only one assumption should not be overlooked when using this kind of test is the assumption of exchangeability of the samples under the null hypothesis. It is also noteworthy that this kind of approach can also be applied when there are more than two samples like what implemented in coin R package.   Can you please use some figurative language or conceptual intuition in plain English to illustrate this assumption? This would be very useful to clarify this overlooked issue among non-statisticians like me.  Note: It would be very helpful to mention a case where applying a permutation test doesn't hold or invalid under the same assumption.    Update: Supppose that I have 50 subjects collected from the local clinic in my district at random. They were randomly assigned to received drug or a placebo at 1:1 ratio. They were all measured for paramerter 1 Par1 at V1 (baseline), V2 (3 months later), and V3 (1 year later). All 50 subjects can be subgrouped into 2 groups based on feature A; A positive = 20 and A negative = 30. They can also be subgrouped into another 2 groups based on feature B; B positive = 15 and B negative = 35. Now, I have values of Par1 from all subjects at all visits. Under the assumption of exchangeability, can I do comparison between levels of Par1 using permutation test if I would: - Compare subjects with drug with those received placebo at V2? - Compare subjects with feature A with those having feature B at V2? - Compare subjects having feature A at V2 with those having feature A but at V3? - By which situation this comparison would be invalid and would violate the assumption of exchangeability?


Can I apply for another Schengen Visa when I already have a single entry unused one?

I'm traveling to Belgium for a month for a training and already got my single entry Schengen visa from 29-6 to 13-8 with a 30 days stay duration. My stay in Belgium will be from 30-6 to 28-7 for the training. However, I wish to visit a friend in Croatia and stay there for 7 more days after Belgium; where Croatia will become part of the EU countries in 1/7.  My questions are: can I apply for Croatia as a non-EU country and expect a normal entry OR do I apply for a multiple entry visa from Germany since I will be landing there to go to Belgium even is I don't stay there. If I apply for Germany, can I simply go from Germany to Belgium, then Belgium to Croatia then back home or do I have to pass by Germany on my way back. How long does a visa from the Embassy take to be issued and do they keep the passport? Is it possible that I apply to Croatia from Belgium or not? Sorry for the long question. Your help is much appreciated.


Moving a very large (40 TB) DB from a 2008 server to a 2016 server

The Situation: Our 2008 MSSQL server is old and rapidly running out of drive space.  We have a new 2016 server ready, we just need to move a 40 TB database from the old server to the new one. The DB, of course, has dozens of tables, but the EVENTS table is the one that is eating up all the space.  The EVENTS table is partitioned by month, and the partitions are spread out on multiple logical drives (we kept adding disks until we physically ran out of space).  The Question: How do we move this massive database from the old server to the new server with a minimal amount of down time?  Outside of not upsetting the users, the table grows by about 15 GB per day, so every day spent offline creates a significant backlog of records that needs to be worked through.  The backup/restore method doesn't really seem feasible, as we have no place to store the backup.   Is it possible to move a partition at a time? (My research so far leads me to believe it is not)  We are a bit overwhelmed by the task, and any advice would be appreciated.


effective way to validate the processing time

am trying to find the best way/approach for performance of using different block usage. i am running the below palindrome program with 3 different way measuring the executing time for each. but i always get '0' as output. what is wrong in my code. please help me.  main      long startTime, endTime, duration;      startTime = Instant.now().toEpochMilli();     System.out.println(palindromeUsingStringBuilderReverse(str));     endTime = Instant.now().toEpochMilli();     duration = (endTime - startTime);     System.out.println("Duration for using string builder : " + duration);      startTime = Instant.now().toEpochMilli();     System.out.println(palindromeUsingForLoop(str));     endTime = Instant.now().toEpochMilli();     duration = (endTime - startTime);     System.out.println("Duration for using for loop : " + duration);       startTime = Instant.now().toEpochMilli();     System.out.println(palindromeUsingWhile(str));     endTime = Instant.now().toEpochMilli();     duration = (endTime - startTime);     System.out.println("Duration for using while loop : " + duration);   palindromeUsingStringBuilderReverse  StringBuilder bdr = new StringBuilder(str);         if (str.equalsIgnoreCase(bdr.reverse().toString())) {             return "The given string is a Palindrome.";         } else {             return "This is not a Palindrome string.";         }   palindromeUsingForLoop  String revStr = ""; for (int i=str.length()-1; i>=0; i--) {                 revStr = revStr + str.charAt(i);                 }      if (str.equalsIgnoreCase(revStr)) {                 return "The given string is a Palindrome.";             } else {                 return "This is not a Palindrome string.";             }   palindromeUsingWhile      int i = 0, j = str.length() - 1;     while (i < str.length()) {         if (str.charAt(i) != str.charAt(j)) {             return "This is not a Palindrome string.";         } else {             i++;             j--;         }     }     return "The given string is a Palindrome.";   output on execution  Enter a word to check its a palindrome or not : madammadammadammadammadammadammadammadammadammadam The given string is a Palindrome. Duration for using string builder : 0 The given string is a Palindrome. Duration for using for loop : 0 The given string is a Palindrome. Duration for using while loop : 0  Process finished with exit code 0


If golden describes something that has the appearance of gold, why "golden paper" sounds odd?

I am trying hard to understand how to properly determine the difference.   A gold watch. --A watch that is made of gold A golden watch --A watch that looks like and could be made of gold   But why then I cannot use the same logic for the following:   A gold T-Shirt -- why not golden? A shirt with gold stripes --why not golden? They look like gold but they are not   wrapped in gold and silver paper. -- the same problem    How would you perceive it if I used golden instead?


Does ArcMap have non-breaking space for labels?

Is it possible to have a non-breaking space in ArcMap? I particularly need it for labels.  &amp; gives me a & but &nbsp; doesn't work.   Is there any way to make a non-breaking space?  I'm using Arc10, but this question applies to previous versions as well.


Is there any significant performance difference when using string vs bigint as a primary key in Postgres (Aurora)?

We can use same logic for both types (string/bigint) to generate consecutive ids (e.g. like ). This way both are naturally sortable. So, let's say we have a value 30722102503933550. What is the real performance difference if we would leave it as bigint (30722102503933550::bigint) vs using as a string ("30722102503933550"::text) for a primary key.


If Liouville’s theorem states that an area in phase space doesn't change, then can the area go scattered, but with total area conserved? If not, wouldn't it be contradicted to the entropy law?


This is a somewhat obvious fact that is intuitively obvious to me, but I haven't been able to construct a proof of it. Euclid's lemma states for for $p$ a prime and $ab$ a product of integers (let's take everything to be positive for simplicity), if $p \mid ab$, then $p \mid a$ or $p \mid b$. This is clear, and I know how to prove it. Let's extend it somewhat. Suppose that $a$ and $b$ are two relatively prime integers, and we have $a \mid bc$ for some other integer $c$. Then $a \not \mid b$, so it must divide $c$. This fact is obvious to me, but I can't figure out how to prove it. Does anyone have any hints or advice? Do I need the assumption of positivity? (For my purposes at the moment, I only need them to be positive, but there is value in having the most general result possible). EDIT: Updated attempt: We have that $a,b$ are relatively prime, so there exist $r,s \in \mathbb{Z}$ such that $ar + bs = 1$ by Bézout's lemma. Multiply through by $c$ to get $arc + bsc = c$. Then $a \mid arc$ and $a \mid bsc$, so $a \mid c$. How is that?


When using regularization wouldnt it make all parameters very small?

In regularization, we add square of thetas multiplied by lambda(excluding theta_0). The value of lambda is high because values of theta should be close to zero to neglect the value of its associated feature. Now my question is when we apply gradient descent to set the values of theta which will result in best fit to data. Wouldn't it also reduce the values of all the thetas (which we don't want to reduce)? Because we are adding every value of theta at the end of the cost function. Which will result in a very low slope linear line causing underfitting.


Temp table lives after being explicitly dropped

I'm creating a post-deployment script in VS2017 database project. In this script, I'm using single temp table, which is re-created frequently to adjust to different data structures.  Below you can see a sample excerpt:      SELECT         *     INTO #tmp     FROM dbo.SourceTable1     WHERE         1 = 0      drop table #tmp       SELECT         *     INTO #tmp     FROM dbo.SourceTable2     WHERE         1 = 0   Unfortunately, when I execute this code, I receive an exception:  Msg 2714, Level 16, State 1, Line 15 There is already an object named '#tmp' in the database.   It looks like the DROP statement is not working here as expected to. Do you have any idea why does it behave like this?


Error to return php value with ajax call

I have a question,I'd like to send data using method post using ajax call,so I do like that:          jQuery.noConflict();          jQuery(document).ready(function () {         $("input#submit").click(function(){             $.ajax({                 type: "POST",                 url: "ajax?uid="+<?php echo   $sf_user->getGuardUser()->getId() ?>+"fid="+<?php echo $user->getId() ?>+"fn="+<?php echo $user->getfirstName() ?> +"ln="+<?php echo $user->getlastName() ?>, //                  data: $('form.contact').serialize(),                 success: function(msg){                     $("#thanks").html(msg)                     $("#form-content").modal('hide');                    },                 error: function(){                     alert("Something is wrong!");                 }             });         });     }); </script>   But It seems not working for me, i get this strange error :   ReferenceError: Jean is not defined url: "ajax?uid="+1+"fid="+13+"fn="+Jean +"ln="+paul, //   Very strange because when I remove fn and ln and I keep just the number value it works very well?


Add the user name, as default in the footer of a powerpoint template

In a PowerPoint template footer we can add the date, the page numbers, but is there a way to also add the user name as a variable depending on who creates the presentation?


This is my vF page:  <apex:page controller="NewNoteControllerExtension" tabStyle="Account">   <apex:sectionHeader title="New Note"/>  <apex:form >    <apex:pageBlock >   <apex:pageBlockButtons >     <apex:commandButton action="{!Save}" value="Save"/>         <apex:commandButton action="{!back}" value="Back" immediate="true"/>      </apex:pageBlockButtons>  <apex:pageMessages />    <apex:pageBlockSection columns="1">       <apex:pageBlockSectionItem >       <apex:outputLabel value="Title" for="Title"/>        <apex:inputText id="Title" value="{!NoteName}"  required="true" size="55"/>     </apex:pageBlockSectionItem>       <apex:pageBlockSectionItem >       <apex:outputLabel value="Body" for="Body"/>        <apex:inputTextarea id="Body" value="{!NoteBody}"  required="true" rows="14" cols="80"/>     </apex:pageBlockSectionItem>      <apex:pageBlockSectionItem >       <apex:outputLabel value="Select Folder" for="folder"/>       <apex:selectList value="{!selectedFolder}" size="1" id="folder">       <apex:selectOptions value="{!Folders}"/>        </apex:selectList>    </apex:pageBlockSectionItem>      <apex:pageBlockSectionItem >       <apex:outputLabel value="Is Visible to Management User" for="visible"/>       <apex:inputCheckbox value="{!IsVisibleManagement}"  id="visible" />     </apex:pageBlockSectionItem>    </apex:pageBlockSection>   </apex:pageBlock>   </apex:form>  </apex:page>   I´ve a required validation for NoteBody Property:  id="Body" value="{!NoteBody}"  required="true"    This is message showed:   Do you know how can i remove this strange text (component id?),"j_id0:j_", from the message?  Thanks in advantage for any advice.


Keeping an floated image inside the div with CSS

I'm having this problem, same as ever, but never try to find the right solution  code:

                      Some text about the photo

                      Some text about the photo2

                      Some text about the photo3

   Question: How do I to keep the photo inside the DIV? with the separator line under the photo


At one time, it seems that I made a mistake in something, and the object I was creating went far.    Then, even I scroll the mouse wheel to zoom it, it gradually stops zooming, and eventually stops.  Someone can help?  Thank you.


Creating sub sections (groups) of layers in QGIS?

I am working on a project regarding Fish species and fishing methods with many layers.  This creates confusion.   I would like to create layer sub sections (groups) like the following:   Fish Species   species 1 species 2 species 3   Fishing Methods   method 1 method 2 method 3    and so on.   Possibly even a 2nd level sub section (layer group).   I have no idea how to tackle this.  I'm using QGIS 2.4.  To clarify an image of the project is below.


Does falling through an enemy's threatened area trigger an attack of opportunity?

More specifically, if you fall off of a gargantuan dragon would it get an attack on you while you are falling?


I bought a Cherry mechanical keyboard yesterday. Cherry is a German keyboard-making company. I had a chance to use a Cherry keyboard before. One of my coworkers used a Cherry keyboard, and he let me use it for some time. It felt very nicer to type on than my membrane keyboard. I hadn't understood why people buy such expensive keyboards, but after using his, I realized why people buy them. My native English-speaking friend told me that I can't say "I hadn't understood" because it sounds like a discrete action and thus sounds very weird to him. I used the past perfect tense to refer to a time earlier than the time when I had a chance to use his keyboard. Could you grammatically explain why it is wrong?


Adding PDF (especially GeoPDF) to ArcMap as data?

I receive a lot of PDF maps (vector, image, with georeference and without) and I am having to convert them to an image file before I can add them to ArcMap and georeference.    I can't see any obvious out-of-the-box utility that would allow me to add and georeference a PDF directly without having to convert to an image file first.   Any ideas?  I would prefer to add a PDF to map directly without any prior "pdf to image" conversion


I noticed the iOS Stack Exchange app is still using the old iOS form factor (pre-iPhone X). Is the app being actively developed?    If not consider open sourcing it so the community can contribute.


Java version problem with Eclipse and NetBeans on 18.04

I'm new to Ubuntu, using 18.04 and trying to install Netbeans or Eclipse but neither of them works.  At first my java was version 10. Searching for solutions I found many suggestions to install version 8 so I installed that and changed my default java to 8, but I'm getting new errors.  Here is the error of eclipse which is in its configuration folder (after running eclipse from terminal, eclipse guided me there to see the error):  !SESSION Sat Jun 09 15:21:19 CEST 2018 ----------------------------------------- !ENTRY org.eclipse.equinox.launcher 4 0 2018-06-09 15:21:19.382 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)     at org.eclipse.equinox.launcher.Main.run(Main.java:1438)     at org.eclipse.equinox.launcher.Main.main(Main.java:1414)   Netbeans doesn't even give error messages - it just can't load.  Again I searched to see what is wrong it seems these applications even need older versions of java but I can't find any older version. (java doesn't support them)  Can someone please help?


Can not boot from SSD on Samsung NP530U4C

I wanted to install Ubuntu for my Samsung NP530U4C on SSD. There are 2 drives available in this machine one is 750 GB HDD and 24 GB iSSD. But SSD one is not available in boot loader. After I tried to install Ubuntu on SSD and restarted the machine, I was stuck at the splash screen of samsung motherboard. It kept restarting. After a quick research I thought it was because I deleted grub2 loader.  Then I tried to repartition and install again. I put 500 MB /boot ext2 partition on HDD, 5000 MB swap area on HDD, and 24 GB / ext4 partition on SSD. And set bootloader on HDD. But this time en error occured "grub-install /dev/sda failed".  So I just wanted to install Ubuntu on SSD, but failed. How could I achieved that now?


I have a valid H1-B visa. I am going to India from the US via Heathrow. Do I need a UK transit visa?

I already went to this site and put in my info:    It said: You’ll need a visa to pass through the UK in transit (unless you’re exempt) You should apply for a Direct Airside Transit visa if you arrive in the UK on a flight and leave again without passing through immigration control.  Exemptions You don’t need a visa if you have one of the following:  a visa for Canada, New Zealand, Australia or the USA (this can be used for travel to any country)  This is the what the site said on Monday September 4th 2017.  However I did read in a StackExchange thread from 2013 I believe where they said I had to have entered US 6 months prior or some rule like that, I do not see that rule anymore.  SO just wanted to verify before I booked my ticket. Last time when I flew British Airways, they were kind enough to send me on another airline as I did not have a H1-B stamp.  This time I have a stamped H1-B so, I am assuming if the site has nothing I am not aware of. I can transit via London with just my Valid, unexpired H1-B stamped on my passport.  Thanks. Whitchurch


Are there sets $S\subseteq\Bbb N$ which are provably non-empty, but we don't know what is $\min S$?

I was wondering if there is a property that is known to be satisfied for certain "things" but for which we do not know any explicit example.  More explicitly (also more restrictive but possibly easier):     Is there a set $S \subseteq \mathbb{N}$ for which one can prove that $S \neq \varnothing$ and yet there is no known (to us, humans, at this point in time) element of $S$?


My hd has "449 defective sectors", although system says it's "ok". What does that mean and what should I do to solve the problem? Thanks!


I just added a new battery to my laptop today, and a new webcam. Then suddenly about maybe 12 hours after it starts making the USB sound when you insert and remove it. It plays the 'IN' sound then the 'OUT' sound and then plays them both together at the same time, then a little pause, then it continues the loop. Please help me :( Especially this is on Christmas.


Finding WMS URL for addWMSTTiles call in R

Continuing from a previously asked question here (), I am having trouble finding the proper URL to use to get data from a WMS to add to a leaflet map. I believe this service is free to use by the public. My code is below: library(leaflet) url="https://nowcoast.noaa.gov/arcgis/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/WMSServer?request=GetCapabilities&service=WMS" leaflet() %>%   addTiles() %>%   setView(lat=42,lng = -78,zoom=6) %>%   addWMSTiles(url,layers = 9)  The links to the data on the site is here: , use control F and this ("analysis_meteohydro_sfc_qpe_time") string to get to the exact data I am looking for. The service name is "analysis_meteohydro_sfc_qpe_time" The image layer ID number is 9 The layer description is, "24-Hr Quantitative Precipitation Accumulation (inches)" The WMS instruction guide for getting data is here:


Before reading the Wikipedia article, my idea to calculate the probability was as follows:  $1-\left(\frac{364}{365}\right)^{_nC_{2}}$  Basically, I thought to compare all combinations of pairs ($_nC_{2}$) and require them to have different birthday ($\frac{364}{365}$). It gave a very similar result to the wiki method, but is slightly different and I can't tell how  my way of thinking is wrong.  Can anyone tell me what I'm missing?


Pros and cons of displaying 2 CTA for the same purpose?

I am building a comment section and I am trying to display clear call to actions to get the user to participate in the current debate.  I put into perspective statistics about the comment section and the two best contributions.  Here is what it looks like on desktop and on phones      I thought two buttons would do the trick to get the user to the comment section but my users tests weren't as successful as expected.  What do you think ?


How to install graphical environment to work simultaneously with Ubuntu 12.04 Server

I have a machine running Ubuntu 12.04 (only console as this is supposed to be my server) and now I also want to add a graphical environment on this machine.   More details:   I want the main OS to be the: Ubuntu 12.04 console as it is now and by typing commands on this console to open a graphical environment (I prefer Ubuntu 12.04 desktop) in order to access the internet more easily without having to search from another PC   I was thinking of installing a virtual machine from my Ubuntu console and then installing Ubuntu desktop on this virtual machine.  Can anyone please tell me if this is feasible and how can be done?


What is a good mathematical introduction to QFT

I've noticed that, any time I try to pick up Peskin and Schroeder, the main stumbling block it the leap in mathematical constructs from QM. Is there a good textbook that could teach me some of the math I need to know (advanced properties of Fourier transforms, vector integration tricks, etc.) to get a foothold on this?  I noticed this question might be misleading; I am not looking for a mathematical-physics take on QFT, anything regarding rigorous abstract algebra, topology, etc. Mainly I'm looking for what might be the textbook between the level of undergraduate and graduate math curriculum that contains principles used in introductory QFT.  Again, I am not trying to answer this question . I am an engineer with a decent background in QM but I can't understand the math in QFT. I am not looking for a mathematical approach to QFT as I would be hopefully lost, I am looking for a source to give me the mathematical pre-requisites for QFT.


I want to add values to a lookupmulti field with c#. the form shows the field correctly but my code just won't work:  SPList list = SPContext.Current.Web.Lists["testlist"]; SPListItem item = list.GetItemById(someId); SPFieldLookupValueCollection fieldValues = new SPFieldLookupValueCollection(); foreach(int id in itemIds) {    fieldValues.Add(new SPFieldLookupValue {LookupId = id}); } item["lookupmultifield"] = fieldValues;   The code above is not exactly my code, but it's how i thought it should work.  FieldValues has 2 entries, but only the first is inserted in the lookupmulti field. can anyone help?


Why has stackexchange.com a different top bar

Most StackExchange sites have picked up this new black top bar by now. One notable exception is the stackexchange.com page itself: the bar there has a different style, and no direct access to the inbox / reputation (/ hats). Furthermore, the hot questions list apparently keeps loading forever, so it doesn't seem to work properly any more. Is there some intention to replace that top bar as well soon?


I understand the outlier impact for linear regression with squared loss. @gung had  to explain the concept of leverage and residual.   My question is How does outlier impact logistic regression? Does the same concept apply? (that we want to have a closer look at high leverage/residual points?)  For example, R, plot(glm(am~wt,mtcars,family="binomial")) is telling me Toyota Corona has high leverage and residual, should I take a closer look?      I found  that says logistic regression is robust to outliers but did not discuss leverage and residual. Is it correct?


What tax class in Germany I will belong to?

I received an offer from Germany. However, my husband is working in France. Both of us are immigrants with temporary residence permit. We don't have kids.  In this case, what is my tax class in Germany?  Thanks


Is there always a "the" before a superlative adjective?

For example:     I could not face being alone again and losing the person dearest to me.   I wonder why there is no "the" in front of "dearest".


The sequence ${a_n}$ is defined by $a_1=2$, and   $a_{n+1}= {1\over2}(a_n+{2\over{a_n}})$ for $n≥1$. Assuming $a_n$ converges, find its limit.  I've found that the limit is $\sqrt2$ just by plugging a couple points, but not sure how to figure this out without plotting points (ie. by taking $\lim_{n\to\infty}S_n$) but I can't seem to figure out a formula for $a_n$ either.


I forgot my passwork for wireless. How do I recover or change it for a Westell router

Forgot my password for wireless.  How do I get it or change it.


Forgotten Username and Password in Ubuntu 7

Hi I found an old laptop that I would love to find out what is still on it. I hadn't updated an ubuntu that was installed in 2009. Any Idea on how to change a forgotten username and password from the login screen?


Could mods have "add comments to chat" to supplement "move comments to chat"?

Moderators can move comments to a chat room associated with the post, and now we don't even have to wait for 20 comments to be posted in a short period of time -- we can do this at any time .  This is great; it gives people a place to have that tangential discussion that might be valuable but isn't about the post any more and doesn't belong on the main site.  Here's the problem: we move comments to chat, which leaves an auto-generated comment saying "comments have been moved to chat (link)".  And then some people continue the discussion in chat but other people .  Sometimes there are so many new comments that the "moved to chat" comment gets buried so people don't even notice.  (I've had several cases where dozens of new comments came in after a move to chat.)  When more (non-clarification-seeking) comments appear after a chat migration, our choices are:   delete the comments (failure to follow directions), but users think this is mean and it's also tedious to do (have to either delete them individually or purge and then dig through the big pile to undelete the "moved to chat" comment buried in the middle) leave it alone, but then we're being inconsistent (why did those have to move but not these?) and thus inviting the unwanted behavior hand-copy them into the chat room, which is a lot to ask of moderators, especially to serve people who didn't take the initial hint (translation: no we are not going to do that)   The "move comments to chat" feature is single-use; once it's been used on a post it's grayed out on the menu, presumably because bad things would happen if it tried to create the same chat room a second time.  Would it be possible for that option to remain (optionally renamed "add comments to chat" if you think that's valuable), with later invocations adding new comments to the existing room?  It could find the comment with the link to the room (which might or might not be the earliest comment on the post), and then send everything after that comment to the existing room.  (It wouldn't need to generate a new auto-comment, but it would need to make sure those users can chat in that room, same as the current behavior.)  One might ask why we shouldn't instead just shut down comments after a move to chat -- once there's a chat room, force everything there and take away the "add comment" link.  Attractive as that idea is to me, it also prevents the (few) comments that are actually what comments are for -- requests for clarification.  If we can come up with a practical way to add some friction for post-migration comments that'd be cool, but we're always going to end up with some comments that should be in the chat room but aren't.  I'd like to have a way to send them there.


$a,b,c,d,e$ are positive real numbers such that $a+b+c+d+e=8$ and $a^2+b^2+c^2+d^2+e^2=16$, find the range of $e$.   My book tells me to use tchebycheff's inequality $$\left(\frac{a+b+c+d}{4}\right)^2\le \frac{a^2+b^2+c^2+d^2}{4}$$  But this not the Chebyshev's inequality given in wikipedia. Can someone state the actual name of the inequality so I can read more about it?  (I got $e\in\left[0,\frac{16}{5}\right]$ using the inequality)


Assume that the word child had to be replaced with son in a file consisting of sentences (not a list of words).   It isn't a straight string replacement; for example, the following should not happen:  children should not be changed to sonren  but the following should happen:  child. should be changed to son.  child! should be changed to son!  Basically, the text that is to be replaced must be an independent word and the word separators must be preserved.  How can this be done without hard-coding for every possible word separator?


Why do some processes end with the letter "d"?

Some Linux binaries end with a "d", for example sshd, httpd, ppd, etc.  Why is this so?


Terminology question. Reading , in the middle of the second page, when it says  Left-handed quarks form 3 (3; 2; + 1 6 ) multiplets Qn (n = 1; 2; 3);  What does this (3;2;+1/6) mean?


It's possible to install the Ubuntu SDK for Ubuntu 16.04? I'm following the instructions:   and this line it's giving me the following error  sudo apt update && sudo apt install ubuntu-sdk  W: Error de GPG: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_15.10  Release: Las firmas siguientes no se pudieron verificar porque su clave pública no está disponible: NO_PUBKEY 1BE1E8D7A2B5E9D5 E: El repositorio «http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_15.10  Release» no está firmado. N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión. N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.   Any idea why is this error happening?


What methods exist (either inbuilt or via third party) to password protect (encrypt) folders within OS X ?


Why didn't Dumbledore keep Harry with himself after the Potters got killed?

Why couldn't have Dumbledore keep Harry with himself? I know about the charm that was on harry due to Lily's sacrifice. But if Harry had lived with Dumbledore :   Dumbledore was an extraordinary talented wizard as compared to other Magical families who could adopt Harry. He could provide excellent protection to Harry. Imagine what the boy could have become. He could have been trained for what was waiting out there. Dumbledore knew that Voldemort was still alive and he also knew  the prophecy that it was Harry only who can kill Voldemort. So he could have trained harry from the beginning.    The answer on the basis of which this was marked duplicate only talks about protection. But Dumbledore could easily provide that along with some other benefits as the one I mentioned above. And of Harry getting arrogant, I am sure Dumbledore would have looked after that.


Permissions conflict with screen overlays

I installed Marshmallow on my Galaxy Note 4 like 2 months ago. Everything was nice and peaceful, and I was happy to be able to select custom permissions per app.   A few days ago, out of the blue, I started getting this very irritating and well known problem, where every time I want to grant an app permissions, I have to get a message that asks me to turn off screen overlays.   The most annoying part, is that it doesn't tell me what overlaying app I have to disable. I just get this generic annoying message, PLUS, there's no master switch for overlays on my Note 4! Am I gonna have to spend the next two years being unable to give any app any permissions? Every time this happens, I spend an hour digging... This is crazy and very impractical!   What are my options here? How can I get rid of this problem once and for all?   PS: My phone is rooted, so please, whatever it takes!   Thanks!


Given a finite group $G$ of order an even number, prove that $G$ contains a non-identity element of order $2$.  Proof: For every non-idenity element $g \in G:g^2 \ne e \iff g \ne g^{-1}$ If such $g$'s exist then the number of them is an even number, since every one of them can be paired with its inverse, follows the number of elements in $G$ that are their own inverse in even, clearly $e=e^{-1}$, so the number of non-identity elements in $G$ that are their own inverse is odd, implies at least $1$ such element does exist.  Another way I tried is as follows: $G$ has an even order iff $\text{ord}(G)=2n$ for some $n \in \mathbb N^+$ iff $ g^{2n} =e$ for $\langle g \rangle = G$ and $e$ the identity element of the given group.Every element is in the group generated by itself and so $g \in \langle g \rangle$,$G$ is a group and so $g^n \in \langle g \rangle$. On the other hand $(g^n)^2=g^{2n}=e$. Then I figured out that this just implies that $\text{ord}(g^n)$ divides $2$ and is not necessarily equal to $2$. Is my conclusion true? besides is it possible to finish the proof using the second way?


Find all continuous functions from positive reals to positive reals such that $f(x)^2=f(x^2)$

Find all continuous functions $f:\mathbb R^{+}\to\mathbb R^{+}$ such that $f(x)^2=f(x^2)$ for all positive reals $x$.  If $f$ is a constant function, then $f(x)=1$. If $f$ is non-constant, I'm suspecting the only solutions are of the form $f(x)=x^k$, where $k$ is a constant, but I have no idea how to prove this. Thanks in advance.


GParted not shrinking below 46GB on Virtual Machine

Okay so, I've got Ubuntu 16 running in a virtual machine (on a Windows 10 host but I don't think that is relevant). Right now my partition looks like that :    What I want to do is shrink my /dev/sda1 partition because my virtual image takes up 50GB of my host's space and that's much more than what I need. Problem is, when I try to, GParted won't let me shrink it below around 46GB, although it looks perfectly aware that only 25GB are used atm. I even tried deleting /dev/sda2 to have unallocated space on the right but it doesn't work.    I tried to use google but all I can find are problems where GParted thinks that a partition is full while it's not, which is obviously not the case here.  Thanks for your help !  PS : I start GParted using "sudo gparted" in my terminal if that is of any help.


1970s era Huffy 3 speed Sea Trails chain

How do I know what size chain fits this bike? Which chain should I purchase?  Thanks,  Mike


Alice and Belle are in combat, 30ft apart from each other.  Alice takes first turn, and readies an action; "If Belle comes within 25ft of me, I move my full speed directly away."  On Belle's turn, Belle says "I move 30ft right next to Alice."   states: "When the trigger occurs, you can either take your reaction right after the trigger finishes or ignore the trigger." Does this mean that Belle is able to move next to Alice before Alice is able to react?   states: "You can break up your movement on your turn, using some of your speed before and after your action." Does this mean that even if Belle moves in 5ft increments towards Alice, it is still one "move" and so Alice still cannot react before Belle is right next to them?


What is the term for replacing a letter with a number in a word?

What is the term for replacing a letter with a number in a word, such as UNREAL being written as UNR34L?  Quite often seen on licence plates, it is almost satirical misspelling, but the definition of that does not seem to include substitution of letters for numbers.


Do electric motors have the same efficiency when operating as generators?

Its in the title.  I'm just curious and it turns out that either this is such a stupid question that no one has bothered to answer it, or i'm just not good at googling today.  I guess I'm thinking specifically about the permanent magnet synchronous motor (PMSM) in my car, but any answer however general would interest me.


I also learned that to get a list of tax rates for the territory I need to use the address and possibly a zip code. Is there a unified method for storing a structure of addresses in the database?


Dealing with multiple private DNS servers

I'll try to explain this as best I can...  I'm on ubuntu 13.04, and I am running a local BIND instance at 127.0.0.1 for access to basic wild-card DNS for development (i.e. "*.dev == 127.0.0.1" - yes, I know, don't create fake tlds, etc. This is entirely local to my machine, though).  I also have clients who have their own DNS servers set up through a VPN (at 192.168.140.111 or something similar).  My problem is that if my resolv.conf has their DNS server listed first, I can't access my *.dev, and if I have my DNS server listed first, I can't access their *.vpn records.  Currently, this is my resolv.conf:  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.140.111 search ns1.vpn nameserver 127.0.0.1 nameserver 127.0.1.1 search fritz.box   The first three lines of the config are in /etc/resolvconf/resolv.conf.d/head, so they'll survive through a resolvconf -u.  Essentially what I want to know is this: is there a way for me to set this up so *.dev goes to my dns server, and *.vpn goes to theirs, (and everything else goes off to my ISP).


Show that the solution of the system remains in a region for all future time $t \geq 0$

Consider the system of equations       \begin{cases} \dot{x} = x(1- x^2 - y^2)\\ \dot{y} = y(4- x^2 - y^2) \end{cases}      Define $(x(t;(x_0,y_0)), y(t;(x_0,y_0)))$ as the solution of this system with initial condtition $(x_0,y_0) \in \mathbb{R^2}$, so $(x(0;(x_0,y_0)), y(0;(x_0,y_0))) = (x_0 , y_0)$.       Suppose that the initial condition $(x_0,y_0)$ lies in the region $S \subset \mathbb{R^2}$, with       $S = \{(x,y) : x>0 , y>0$ and $1 < x^2 + y^2 < 4 \}$.        So $(x(0;(x_0,y_0)), y(0;(x_0,y_0))) = (x_0 , y_0) \in S$.       Show that $(x(t;(x_0,y_0)), y(t;(x_0,y_0))) \in S$, for all $t \geq 0$ and $\lim_{t \rightarrow \infty} (x(t;(x_0,y_0)), y(t;(x_0,y_0))) = (0,2)$.   Well, for $(x,y) \in S$ we have $\dot{x} <0$ and $\dot{y} > 0$. Then, $x(t)$ is a monotonic decreasing function of time, and $y(t)$ is a monotonic increasing function of time.  A Lemma in my textbook says that in this case any solution $x(t)$, $y(t)$ must leave a region at some later time. This confuses me, since I have to show that a solution remains in the region for all $t \geq 0$. Maybe I am misinterpreting something.  Furthermore $(0,2)$ is clearly a critical point of the system. How can be showed that the limit approaches $(0,2)$?


Framework for Genetic Algorithms on python

I'm trying to use a framework implemented in python to use GA (Genetic algorithms) and other related algorithms . But I'm not sure about what framework to use, I've found two interesting options Pymoo and JmetalPy, the former it seems well documented it and the latter isn't looks like it (it's under construction), but the version in Java is very popular and well know. I need choose a framework to make a comparation with an algorithm made by me. For this reason a reliable framework is needed and with small learning curve. Do you have any good or  bad experience using it?, Do you know another framework? Pymoo:   JmetalPy:


Kotlin throws a NullPointerException Using Kotlin's Android Extensions

I'm using Kotlin to make an android app, but I keep getting a NullPointerException when trying to access a layout elements using Kotlin's android extensions. The code is a little bit complicated, so I'll try to explain the problem with a simple example. Say I have a layout second_layout.xml with a button and a textView:  <LinearLayout ...>      <TextView         android:id="@+id/textView"         ..../>     <Button         android:id="@+id/button"         android:onClick="onButtonClicked"         ... />  </LinearLayout>   In the main activity, I want to change the textView text when I click on the button:  import kotlinx.android.synthetic.main.second_layout.*  override fun onCreate(savedInstanceState: Bundle?) {     ... }  fun onButtonClicked(view: View) {     textView.text = "TextView text has changed" }   Now when I click the button, Kotlin throw a NullPointerException, apparently the textView property is null. I hope the above code is clear.  Does anyone have an idea what's going on? Did I do something wrong? Thanks.


How to punctuate a range of hyphenated numbers?

What is the best way to punctuate a range of hyphenated numbers, e.g., sections 12-3 through 12-7?  EDIT: Just to reply to those who marked this as a duplicate, I really fail to see how the post that this question purportedly duplicates is responsive my question. I'm not expressing a misunderstanding of en-dashes and hyphens, but rather asking a question about preferred usage. In fact, the top answer (which I think is correct) suggests not using a dash or a hyphen at all.


Can anyone help me out with this flowchart?

Once again unable to understand the arrows. Can any one guide with example?


How does a single-photon double-slit experiment work?

With respect to Thomas Young's double-slit experiment, I have heard that it can be done with a single photon.  But how does the single photon go through both slits?  And how far apart are the slits?


discrete math - one equation with two variables

look at this equation:  101x + 103y = 1  how can i prove if there is a solution or not to this equation?  x and y must to be intergers  i really have no any idea how is possible to prove something like this, hope you can give me any direction.  Thanks!


How can I get the URL my js was served from in that same js code

In my   www.my-site.com/index.html    there is a script tag  <script src="https://api.3rd-pary-site.com/some/path/js/foo.js"></script>   How can code in foo.js get to the "" ?


Is there any positive function $f$ such that $f(x)f(y)\leq |x-y|$ for every $x$ rational and $y$ irrational?

We are given a function $f$ from reals to positive reals (not including $0)$ satisfying    $$f(x)f(y)\leq |x-y|$$   for every rational number $x$ and irrational number $y$. Does this function exist?   If $f$ is continuous, it is easy to show that $f$ must be a constant zero function (So it does not exist, in this case).  Otherwise, for an irrational number $y$ it can be shown that for any sequence $x_n$ of rationals converging to $y$, $f(x_n)$ converges to zero and the same is true for rational number $x$ and the sequence of irrationals $y_n$.   Does this argument give us any information about $f$, and does it say whether $f$ exists at all?


I read that the soda's temperature allows it to contain its $\text{CO}_2$: colder means it can retain its bubbles better.  So, why does soda fizz when it meets ice?  If anything, because the soda is made colder, it should retain its gas better, as per above. The ice is taking away energy from the soda, thus freezing. Won't heating, not freezing, encourage the gas to escape, or is it not an energy matter?


As I read is bytecode an intermediate language which is used by a virtual machine which has to be installed on the computer to run the program.  says, that a VM either executes the bytecode directly or generates machine code for better performance. The article also says, that bytecode is a set of instructions. For me it sounds like normal machine code, except that only the VM can understand it (Am I right?).  So what is the purpose of bytecode? If a VM can also compile it to machine code why can't the compiler do it directly and we don't need the VM and have better performance?


It seems that some featured questions also show their last line as cut, while others do not.  See image:        I assume there is a set number of line used, so shouldn't each featured question section have a fixed height so that it always fit in?


True/ False: If $f '(c) < 0$, then $f$ is concave down at $x = c$?

Determine whether the following statement is true or false. Whether true or false, explain why. If false, also correct the statement.     If $f'(c) < 0$, then $f$ is concave down at $x = c$.   I know the question is False because if $f'(c) < 0$, then the graph is always decreasing.  How can I correct the question to be true?


Ubuntu 20.04 development branch looks exactly like 19.10?

So I updated my ubuntu 19.10 to development release 20.04 and it looks exactly like 19.10. There are no changes in the GUI. I have been trying to update it to the LTS version 20.04 but I am unable to do that either as it says that the software is up to date. Mainly used update-manager -c -d and tried do-release-upgrade -d  Distro: on entering the command lsb_release -a   I would like to know how to update to the LTS version of 20.04 or what's known as Final Release.  Thank you for any help!


What additional things should I do to understand language of science

I am about to complete my High school. Typically, I study text books of science but it takes a lot of time to understand the concept resulting less time to do questions and due to which I get low marks(not having English as my native language is also a factor). How should I start, please guide me from basic to advance level.   How could I study science, effectively, without wasting any time.


How do I check the logged-in user username/password/role using a function to validate them?

I am allowing users to register an account on my site. They get a specific role using user_save().  When they log in for the first time, I have to verify the login credentials.   Is there a function to verify the login credentials? Is there a function to get the user roles?


if condition not working, while trying to compare values in array list. Android

i am trying to pass some values in to a function and compare some values and get the array list.  calling the Collect function in Dbhand class.          TextView result = (TextView) findViewById(R.id.textviewres);          result.setText(dbhand.collect(                 getIntent().getExtras().getString("temple_type"),                  getIntent().getExtras().getString("notemples"))                 );   collect() Function in dbhand class.  public String collect(String temptype, String limit){      SQLiteDatabase ourDatabase = this.getWritableDatabase();     String result="";     String []column =new String[]{KEY_ID,KEY_TMPNAME,KEY_TMPTYPE,KEY_LATITUDE,KEY_LONGITUDE,KEY_IMGNAME,KEY_YEARBUILD,KEY_ADDRESS,KEY_CITY,KEY_EMAIL,KEY_WEB,KEY_TEL1,KEY_TEL2,KEY_DESCRI};     Cursor c=ourDatabase.query("templ", column, null, null, null, null,null, limit);       c.moveToFirst();     int iKEY_ID = c.getColumnIndex(KEY_ID);     int iKEY_TMPNAME= c.getColumnIndex(KEY_TMPNAME);     int iKEY_TMPTYPE= c.getColumnIndex(KEY_TMPTYPE);      for (c.moveToFirst();!c.isAfterLast();c.moveToNext()){          if (c.getString(iKEY_TMPTYPE) == temptype){      result = result+c.getString(iKEY_ID)+"\t\t"+c.getString(iKEY_TMPNAME)+"\t\t"+c.getString(iKEY_TMPTYPE)+" \n";         }     }      return result;  }   i didn't get any error, since the if condition is not compared. it does not return any value.  can anyone help me to fix this plz.


How come unpolarized light does not undergo destructive interference?

As far as I know, unpolarized light is defined as light which has no clear axis of polarization, but electric field vectors in all directions. However, I also know that electric fields can be superpositioned. So this leads me to the conclusion that if unpolarized light has equal $\vec E$ vectors in all directions, they should cancel.   Obviously, though, this is wrong (we've got light!). What's the explanation?


2.8x ADD-ON - I need an add-on to "paint" instances of an object over another object's surface

In 2.79 I used to use an add-on called "Paint Clones" which would allow me to basically paint instances of one or more objects over another object's surface with random scale/rotation.  That add-on hasn't been updated for Blender 2.8x, which means I need a substitute. I've googled far and wide, but the only similar tool I've found died with Blender 2.79 as well.  Obviously I've tried resorting to particle systems but, besides the useless intricacies of setting them up, they don't allow me to place multiple/different objects with a single system, nor (seemingly) to randomize rotation over multiple axes.  Does anybody know of an unspoken Blender function or add-on that could help me in the task?


In an acute angled triangle, prove that $\sin A + \sin B + \sin C > 2$, where $0<A<B<\frac{\pi}{2}$

Is there any way to prove this? When I check intuitively by taking $A=0$ and $B=C=\frac{\pi}{2}$, the value of the expression becomes $2$ and as I changed the angles the value kept increasing in $0$ to $\frac{\pi}{2}$. I tried using Jensen's inequality but we get $\sin A + \sin B + \sin C <\frac{3\sqrt{3}}{2}$, which is of no use.


How do I add a gameobject to a prefab's script's public gameobject field in Unity?

Okay, I have a prefab with a script. It has the public field gameobject, and I see that in the inspector. When I try to drag an object from the scene into that slot, I'm simply unable to. No error or anything, just acts like it's any other part of the screen.  Is there a type mismatch here? How do I drag something from the hierarchy?


Let be $\rho (x,y) $ a metric on X. Prove that $\rho _1 (x,y)=\rho (x,y)/(1+\rho (x,y) ) $ is a metric on X.

I'm trying to do this problem. Let be  $\rho (x,y) $ a metric  on X. Prove that $$\rho _1 (x,y)=\frac{\rho (x,y)}{1+\rho (x,y)}$$ is a metric on $X$. I have problems to prove  the triangle inequality because I have this: I know that $\rho (x,y)  $ is a metric $\Rightarrow $ $\rho (x,z)\leq \rho (x,y)+\rho (y,z)$ then $ \frac{1}{\rho (x,z) }\geq  \frac{1}{\rho (x,y)+\rho (y,z)}$  and the inequality changes, I need to conserve it, can someone help me please?.


"No candidate" when I try to install Gnome Classic on 15.04. Will that change? If not, what other "low-tech," lower-demanding UI options do I have for my older, weaker computer with 15.04?


What is this symbol on top of my service bar?

On my Galaxy s5  There's my Cell signal (2 bars), there's my Mobile Data (4G LTE).  But what is that strange symbol on top of the bars, I've never seen it before (I don't see it on my other phone or other devices)    There is this symbol that looks like a home with a signal, I'm wondering what it is?


I am given that $f(x)$ is continous on $[0,2\pi]$ and and $f''(x)\ge 0$ on the prescribed interval, I have to show $$\int_{0}^{2\pi}f(x)\cos x \; dx \ge 0;$$ well $\cos x\ge 0$ on $[0,\pi/2]$ and $\cos x\le 0$ on $[\pi/2,3\pi/2]$ and again $\cos x\ge 0$ on $[3\pi/2,2\pi]$, what I did, multiplied with $f''(x) \cos x$ and took the integration by parts, but nothing fruitful I came across; please give hint.


How do I run a 'sudo' command inside a script?

To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.


I recently used wine to install steam on my 17.04 system... but after installation, it does not connect to the internet, hence nothing is loading. However, it does print this error  [0623/151506:ERROR:child_process_launcher.cc(443)] Failed to launch child process


Correlation/association between two point layers

I’d like to know if there is a way of obtaining a correlation/association test between two point layers in QGIS (or another open source software if not possible in QGIS)?  I have two point layers- one layer is the location of individuals (long and lat coordinates) who have contracted an infection. The second layer is the long and lat coordinates of important buildings (e.g. schools). I’d like to know if the location of infected individuals is correlated/associated with the location of important buildings.


Work done by Friction. Can it be positive or zero?

The work done by frictional force is negative as it opposes the relative motion?  Please explain when will the work done by friction be (i) zero (ii) positive?


If I have three whole positive numbers $a, b$ and $c.$  If I form the product $a \cdot b$ and that product is divisible by $c.$  How can you prove the following assertion:  If the greatest common divisor of $b$ and $c$ is one, then $a$ must be divisible by $c.$


Is it possible to set Gnome Terminal's title to "user@host" for whatever host I'm connected to?

I'd like to set the terminal title to user@host so I can easily tell which machine I'm connected to from the window title. Is there a way to do this from SSH or from GNOME Terminal?


Graphic Design Resource for Indie Game Dev?

I'm creating my first game and want to improve upon the graphic design aspects of my game.   By graphic design I mean layout, font, spacing, etc..  Is there a good resource for learning graphic design for a programmer?   I've taken human-computer interaction classes, but that has more to do with task and making task as easy as possible for the user. Not necessarily about layout/spacing.   I mention layout/spacing twice because that's the biggest problem I'm having. I can clearly tell that things need to be spaced properly to be more visually pleasing.   Thanks to all that reply


How can I bring back the war proposal notification in Stellaris?

My alliance had suggested we go to war with someone I wanted to go to war with for a while, but before I could accept it, I saved my game just in case. Then loaded it again.   Now the proposition on the top is not there anymore and I cannot for the life of me find this war proposal anywhere.  It hasn't been declined, it just disappeared, because when I go to declare war against that enemy, it says: "Your alliance already has a proposition for actions against this empire."   What am I suppose to do? Just wait until the offer dies and it auto-declines? But then I lose -20 reputation with my entire alliance.   Wtf...


Examples for a K-module with K ring, but not an integral domain?

I am looking for an example for such a module, because I want to find a module for which the set of torsion elements is not a submodule of $M$.


To show every sylow p-subgroup is normal in G

Let $G$ be a finite group and suppose that $\phi$ is an automorphism of $G$ such that $\phi^3$ is the identity automorphism. Suppose further that $\phi(x)=x$ implies that $x=e$. Prove that for every prime $p$ which divides $o(G)$, the $p$-Sylow subgroup is normal in G.  Its an problem from Herstein, prob 19 in 2.12,2nd edition.I need some hint to solve this.Thank you.


I have some .m2 files which I need to copy from Finder in Mac but I don't see them there. How can I see the hidden files in Finder.  One workaround is to open the folder in terminal and use ls -a command to list all files but I am  looking for a way to view in Finder.


How to add all strings together in one row in group by in Postgresql

My data has a column classification that has about 10 different relevant classes:  ('CO', 'CO01','CR', 'CR01', 'CR06', 'CR07', 'CR08', 'CO01GV', 'CO01LG') and like 'CI%'   How do I create a new column containing all these classes whenever it is applid?  My query looks like this:  select parent_uprn, count(*) address_count, st_centroid(ST_Union(geom)) geom  from pedro_test.mbus_raw where parent_uprn is not null group by parent_uprn   I need the classification column containing all of the classifications in each group, so that I can later query and sort groups accordingly  edit: Okay tried string_agg as suggested and it worked, however the rows are for example CO CO CO CO CO CO01, instead of just being CO CO01


I first had Windows 8.1 already installed on my machine, and then I decided to install Ubuntu 14.04 LTS as well.  I first shrunk the size of my Windows Disk. Then I installed Ubuntu, splitting it into two partitions (One for swap and the other for the Ubuntu file system).  However, now whenever I attempt to boot via Windows Boot Manager(on /dev/sda2), I get the following error message:  /EndEntire file path: /ACPI(a0341d0,0)/PCI(2,1f)/Sata(0,0,0)/HD(2,1f4800,82000,0f6afd19c5af524e,2,2)/File(\EFI\Microsoft\Boot)/File(bootmgfw.efi)/EndEntire error: cannot load image.   How would I fix it so that Windows 8.1 can boot again as well?


Why are the "Trilogy" Stack Exchange sites the only ones that display ads?

I noticed that, as far as I can tell, the "Trilogy" Stack Exchange sites,      are the only ones that display non-Stack Exchange ads (i.e. ads for other Stack Exchanges or the iOS and Android apps), like the following (from Stack Overflow):  Stack Exchange's Business Model According to Jeff's answer in , besides generating revenue from job listings and candidate search, Stack Exchange also makes money through ads:  Traditional, but respectful (e.g. no animation or flash or pop-anything) display advertising on SO, SF, and to a lesser extent SU.  If such is the case, then why don't any of the other exchanges also display ads? The  exchange is the  (beating out Server Fault), and yet it displays no ads (as far as I could tell), and I would have thought that  would be a perfect site for displaying game ads, and yet it doesn't. Does Stack Exchange have any plans to display ads on these sites in the future?


Regarding priority is to be given to enums over interfaces

One thing is still not clear to me that why people are using  interface for storing just constants only ..when the java 5 had come up with it's new functionality of Enums..      interface OlympicMedal {   static final String GOLD = "Gold";   static final String SILVER = "Silver";   static final String BRONZE = "Bronze"; }   and another class is now implementing it..  public class OlympicAthlete implements OlympicMedal {    public OlympicAthlete( int aId ){     //..elided   }    //..elided    public void winEvent( ){     //the athlete gets a gold medal     //note the reference is not qualified, as     //in OlympicMedal.GOLD     fMedal = GOLD;   }    // PRIVATE //   private String fMedal; //possibly null }    As seen above the same thing could be easily establish by enums also , Please let me know if I have choice to store the constants as above which should I choose enums or interface..!  the enum would be like...  public enum OlympicMedal {       GOLD, SILVER, BRONZ    }     But please advise how the class will access this constants now..!!


While using PostGis, we can query using EWKT format like:  SRID=4326;POINT(lon lat)   or use the functions defined by PostGis itself. For example:  ST_SetSRID( ST_MakePoint( lon , lat ) , 4326 )   I'm concerned if there are any kind of differences/preferences.  p.s. I'm sorry if it's a duplicate. I was unable to find any related threads.


error with turning a bash (with * and pipes) command into Popen

I have this bash script I want to call directly from Python:  #!/bin/bash   for usb in $(ls /dev/ttyUSB*); do echo $(udevadm info $usb | grep ID_SERIAL= | cut -d ' ' -f 2) $usb; done   I'm getting error on the very first section:   from subprocess import Popen Popen('ls /dev/ttyUSB*'.split())   I understand that this is due to Popen running sh, and it does not support wildcard, so I tried invoking bash with:  from subprocess import Popen Popen('/bin/bash ls /dev/ttyUSB*'.split())   OR  Popen('/bin/bash "ls /dev/ttyUSB*"'.split())   but got      /bin/ls: /bin/ls: cannot execute binary file   However, the files do exist:  ls /dev/ttyUSB*   outputs: /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2  /dev/ttyUSB3  After solving this, I still have to understand how can I use a pipe in the middle of () [i.e. - for usb in $(ls /dev/ttyUSB*); do echo $(udevadm info $usb | grep


Is it considered plagiarism if I use my OWN answers twice

I am re-doing a module that I have failed, My first assignment have some questions that are identical to the ones I answered last year, would I be violating any laws or academic practices by copying my own answers from last year and re-use them?


$A$ nilpotent and $A+c_iB$ is nilpotent then $B$ is nilpotent.

Let $A$ and $B$ be $n \times n$ matrices over some field with $A$ nilpotent. Now let $c_1,\ldots,c_{n+1}$ be $n+1$ distinct scalars such that $A+c_i B$ is nilpotent for all $i=1, \ldots,n+1$. Then how can I show that $B$ is also nilpotent?    Thanks


Minimum Gap between visits on a UK 2 year visa

Can my parents re-enter UK, before completing 6 months outside UK, using a 2 year visa? They have indian passports  1) My parents got UK visa stamped on 16 nov 2016 and Travelled to UK on 9 dec 2017.  2) Then from UK they fly on 6 Jan 2017 to US and are scheduled to fly back from US to UK on 2 July.  This means although they still have their 2 year visa for UK valid, the time lapse between first and second visit to UK is less than 6 months (actually short by only 4 days).   I want to know if this will be a problem. Can find any such thing on Border agency website


Unresponsive when network is on, ok if off

Since a few weeks, my phone is behaving strangely, it works OK in airplane mode but when the network is on i get several of the following symptoms:   the phone becomes partially unresponsive, i experience freezes, lags  apps like twitter often crash and are very slow the phone reboots by itself the battery usage becomes very high (emptying a fully charged phone within the hour) the phone overheats   I have also noticed that when networking is on the battery charging indicator is stopping and starting alternatively (like 1-2 secs work, 1-2 secs frozen). This does not happen when airplane mode is on (indicator progress is fluid).   How do i troubleshoot this problem? Are there some diag tools i could use or logs i could check?  What i have tried so far:   install all app updates (but i have trouble doing that as google play works erraticaly) reset cache & davik partitions from the cm menu clear the cache of twitter & google play delete google play history    My combo:   Galaxy Note 1 - N7000 CyanogenMod 11-20160815-NIGHTLY-n7000 Android 4.4.4 Band version: N7000XXLT3   EDIT: This is not linked to a ROM update (last ROM update was 9 months ago and the trouble started about 1 month ago).


I have a dropdown list with a lot of values and I want to give the users the option to filter these values with a search input field, something like this:    So if the user types chicken in the search input field dropdown will only contain meals that contain the word chicken. However I don't think this is good user experience, what do you guys think? any alternative suggestions?


How can I (or can I even) transfer iTunes/App store credit from one Apple ID to another?

How can I transfer my $0.49 on my apple ID to my family members $0.54 on her apple ID?


Is $2^{1/4}$ (fourth root of two) constructible using only a straight edge and compass? How would you construct it?  I understand that a number is constructible if it can be done in a finite number of step in a field.   I believe it is constructible because the degree of $Q(2^{\frac{1}{4}}$ over the rationals is $[Q(2^{1/4})): Q] = 4$, which has the form $2^k$. The degree is 4 because a basis for $2^{1/4}$ is $${1, 2^{1/4},2^{1/2}, 8^{1/4}}.$$ Is this reasoning correct?  If it is constructible, do I need to find the four roots of unity and multiple each by $2^{1/4}$? And then how do I proceed from there?


Show that the closest zero of a sequence of polynomials obtain a lower bound

Consider $f_n(z) = \sum_{k=0}^{n}\frac{z^k}{k!}$. Let $z_n$ be the zero of $f_n$ which is closest to the origin, and prove that $\|z_n\| \geq tn$ for some constant $t$.   First of all, the statement makes perfect sense. Since $f_n$ is the partial sum of the power series expansion of $e^z$ which has no zero at all. So by Hurwitz theorem, the zeros of $f_n$ have to be pushed out. However, I do not know how to make the bound precise.  I do not really think this is the duplicate of the question asked. Since as I explained above using Hurwitz is enough to show that $f_n(z)$ cannot have zeros inside a given compact set for large enough $n$. But here I want a precise bound for $\|z_n\|$.