Why does java script resolves variable which is not passed to the function and is declared below this function

In line 10  to clearTimeout() function there is passed timer variable which is decleared outside moveBox function and under it in the line 20. Why does the java script resolves timer to a variable? Why it does see it?


Edittext field Not detecting. Throws Null Pointer Exception

I tried a number of things but my Application keeps Crashing.  I tried debugging it is returned this error when I run the application.  java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference  package com.zybooks.pigdice;   import androidx.appcompat.app.AppCompatActivity;  import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView;  public class MainActivity extends AppCompatActivity {      final Context context = this;     //private EditText playerName;     private String name;     private int target_score_display;     //public TextView player_name;     private  EditText targetScore;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         //player_name = findViewById(R.id.player_name);         targetScore = dialog.findViewById(R.id.enter_target_score);         //playerName = findViewById(R.id.enter_player_name);            Button start_game = findViewById(R.id.start_game);         start_game.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 // custom dialog                 final Dialog dialog = new Dialog(context);                 dialog.setContentView(R.layout.dialogbox);                 dialog.setTitle("Title...");                 Button dialogButton = dialog.findViewById(R.id.start_game_dialog);                 // if button is clicked, close the custom dialog                 dialogButton.setOnClickListener(new View.OnClickListener() {                     @Override                     public void onClick(View v) {                          try{                             String value = targetScore.getText().toString();                             target_score_display = Integer.parseInt(targetScore.getText().toString());                             Intent intent = new Intent(getApplicationContext(),Gameplay.class);                             intent.putExtra("TARGET_SCORE",target_score_display);                             Bundle bundle = new Bundle();                             bundle.putString("TARGET_SCORE",value);                             intent.putExtras(bundle);                             startActivity(intent);                         } catch(NumberFormatException nfe) {                             System.out.println("Could not parse " + nfe);                         }                     }                 });                 dialog.show();             }         });     } }   Trying to pass input taken in the dialog box to the next Activity. Have been struggling with this for over 3 hours.


Is it serial voting if I "investigate" a user and vote on poor questions?

When I come across an awful question , my  is to "investigate" that user to see what else they have posted.  All too often, the user has posted several poor questions that are en route to closure. I will typically add some comments and cast a down/close-vote here and there.  It occurs to me that this might be serial voting – a sudden rash of votes from one user to another. Do I risk being caught out by the serial voting algorithm?


Differentiate Ordinal and Nominal variables using python

How do I Differentiate between Ordinal and Nominal variables using Python?  The code needs to be dynamic and must be able to identify the difference for any data set that comes in. Is it possible to achieve this using python program?  The output must be the type of the variable (Nominal or Ordinal).


Applying filter on mail from specific subnet in postfix

I'm trying to get the following to work:  We have a postfix relay on the edge of our network, accepting all mail from our internal LAN & DMZ. What we are trying to get to work is limiting the maildomains a specific subnet (test & dev) can send mail to. Basically, this:  production-subnet -> relay:25 -> outbound mail all domains        = OK test-subnet       -> relay:25 -> outbound mail all domains        = NOK test-subnet       -> relay:25 -> outbound mail to allowed domain  = OK   I've tried check_send_access maps, but they can only allow or disallow mail from a sender, and can't filter based on recipient domain. In an ideal world where developers check their output, this wouldn't be necessary at all, but we've had a few occasions where dev was copied from production and suddenly people got rogue-mailed by the dev-environment and we want to stop that from happening again whilst still retaining the ability to be able to send mail to our own domain (for cronmail, et al)  I have toyed with the idea of setting up a second relay specific for this purpose, but due to a large (mostly unmanaged by ansible) environment, that would be significantly more work to get this to work, which is why I would prefer to do it on the existing relay on the standard smtp port.


How to remove bad "boot entries in windows 10?"

I booted Debian from a USB and installed but unfortunately was using the wrong version for my computer so wasn't completely successful.   I removed the incomplete installation, using the windows disk manager to delete the linux partitions.   On restart, the computer went into Grub rescue mode and I used windows 10 USB and diskpart to repair the MBR.   Currently, when booted into the UEFI menu has three options, a functioning Windows, a non-functioning Windows, and a non-functioning Debian.   My understanding is that each of these is meant to point to the given OS info on the hard disk, but the two non-functioning options aren't found because I deleted them, while the functioning one was created by the windows repair tool.  How can I go about "fixing" the boot menu to remove the bad records? Could I just leave them?  Sub-questions (Please just delete these if they need to be separate questions, thanks) :  I intend to reinstall Debian correctly once I get my boot menu squared away. Is there anything else I should check about the set up of the system before installing again?   edit:   I didn't find  due to the lack of any sort of windows tag. This question is specific to windows.  the two answers recommend using third party tools ,where as  uses native windows tools.


Why on Facebook on the button in the menu block an article "a" is missed. I have a guess, but not sure if I'm right. Could it be because of all the inscriptions on the button are cut?


I am planning to perform a Categorical Principal Component Analysis, I have 14 variables with categorical ordinal data (from a 5 point likert scale) and one variable with categorical nominal data. What optimal scaling level should I use?


Android java calculate distance many coordinates from sqlite

I'm making an app for tracking the driven routes via GPS, for the database I used SQLite. When the current position gets changed, the data (latitude, longitude, date) will be saved into the database, so I have a list of many coordinates+dates in my database.  Now, I want to calculate the distance for the whole route. I know the start and end position and the intermediate positions. I also know how to calculate a distance between two positions. I do NOT know how to calculate the distance for all segments. Can someone help me?  This is how I calculate the distance between two positions:  private double calculateDistance(double fromLong, double fromLat,double toLong, double toLat) {     double d2r = Math.PI / 180;     double dLong = (toLong - fromLong) * d2r;     double dLat = (toLat - fromLat) * d2r;     double a = Math.pow(Math.sin(dLat / 2.0), 2) + Math.cos(fromLat * d2r)             * Math.cos(toLat * d2r) * Math.pow(Math.sin(dLong / 2.0), 2);     double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));     double d = 6367000 * c;     return Math.round(d);  }


How to upload a Debian package to a repository when you have only the .deb file?

I have a local Debian repository I run for our organization using reprepro. This local repository hosts custom software we develop ourselves. There are Debian packages from other sources not included in the official Debian repos that I would like to add to our local repository.   Normally when I build a package I upload it to our local repository using dput which requires a .changes file. If I get a  Debian package from another source, I get only a .deb file and no .changes file.   How do I upload a .deb file to our local repository without the .changes file?


In C, what is the difference between passing array as *arr and *arr[] to function?

#include <stdio.h>  void test(int *arr, int n) {     for(int i = 0; i < n; ++i)         printf("%d ", *(arr + i));     printf("\n"); }  int main(void) {      int a[10] = { 1,2,3,4,5,6,7,8,9,10};      test(a,10);      return 0; }   this gives the correct answer which is "1 2 3 4 5 6 7 8 9 10" but when I change first argument's type in test function to *arr[] it gives   1 3 5 7 9 0 0 965108401 262144 404875544    looks like i += 2 happens in for loop.  The changed code is below  #include <stdio.h>  void test(int *arr[], int n) {     for(int i = 0; i < n; ++i)         printf("%d ", *(arr + i));     printf("\n"); }  int main(void) {      int a[10] = { 1,2,3,4,5,6,7,8,9,10};      test(a,10);      return 0; }   What *arr[] actually is?


I know this has been asked in other places but im having some issues I have installed dkms x11 all off that but auto-size guest display is still grayed out My machine has 32mb of video ram reserved but still after restart nothing


Are Maximum Likelihood Estimators asymptotically unbiased?

I can follow the proofs in which the asymptotic normal-distribution of a maximum likelihood estimator $\tilde{\theta}_n$ is derived.   however, does this already imply that the maximum likelihood estimates are asymptotically unbiased, i.e. do we have $$E(\tilde{\theta}_n) \to \theta \text{ as } n \to \infty?$$  Since I am aware that in general it is not true that convergence in distribution implies convergence in moments, an explanation would be nice.  The result is often stated e.g.  as "...it means that the bias of the maximum likelihood estimator is equal to zero up to the order $n^{-1/2}$")  1.) Are  some kind of regularity conditions from the mle theory used to establish this result?  2.) Or is a $\sqrt{n}$-convergence of an estimator (to a normal distribution) in general already enough to establish convergence of its moments?  Note: the Wikipedia article mentions Cox, David R.; Snell, E. Joyce (1968).  , as a source where the order of the bias is derived (formula (12) or (20)).   However in this paper I can't follow the arguments 100%, since their Taylor approximation of $L'(\widehat{\beta})$ is lacking the remainder term. What is the argument used here to discard it completely?


I wanted to append a new entry after an ajax request. This works perfectly. Unfortunately the design is messed up, and as I inspected my document the html has been loaded perfectly, but e.g. trying to access the data-status attribute of the recently inserted always fails.  What did I do wrong?  $('.newRoomSubmit').click(function(){                      if($.trim($('.roomName').val()) != "" && $.trim($('.roomDescription').val()) != "" && $.trim($('.building_id').val()) != ""   ){                         $('#myRoomModal').modal('hide');                      $.ajax({                         type : 'POST',                         url : '@routes.Admin.saveNewRoom()',                         data : {                             roomName: $('.roomName').val(), roomDescription: $('.roomDescription').val(), building_id : $('.building_id').val()                         },                         success : function(data) {                           var newReference =  reference.parent().parent().parent().children().eq(1).append(                       '
'+       '
'+$('.roomName').val()+'
'+       '
 '+ '<button class="btn  btn-sm btn-default editableRoom" data-status="'+parseInt(data,10)+';'+$(".roomName").val()+';'+$(".roomDescription").val()+';" data-toggle="modal" data-target="#roomEditModal"></button>'+ '<button class="btn btn-sm btn-danger removableRoom" data-status="'+parseInt(data,10)+';'+$(".roomName").val()+'" data-toggle="modal" data-target="#confirmRoomDelete"></button>'+       '
'+        '
');                          },                          error : function(err) {                              alert(err.responseText);                              }                         });                     } else {                         alert("Das Formular wurde nicht vollständig ausgefüllt!");                     }                  });   The design after my insertion looks like this, I added a red box and 2 red lines by way of illustration, just so that you can distinguish the difference:   The real problem is, that after my insertion I click on the button with the pencil-glyphicon in the inserted row. As my modal shows up, it doesnt get the data-status of the html as input. But as I inspected that row in my browser, I could clearly see that the data-status has been added correctly to the new row.  This is how it should look (example of one row above).   Why does my jquery has problems with it?  The click method of the pencil-icon on the newly inserted row should put the values into my input tags and it looks like this:  $('.editableRoom').click(function(w) {                    w.preventDefault();                    var statusCode = $(this).data('status');                      var felder = statusCode.split(';', 3);                     $('#roomEdit_id').val(felder[0]);                    $('#roomEditName').val(felder[1]);                    $('#roomEditDescription').html(felder[2]);                    $('#editRoomSubmit').click(function(){                         /** on click wird das modal versteckt und                         der User bekommt wieder die neugeladene lab Seite zu sehen*/                         $('#roomEditModal').modal('hide');                     });                 });   I researched here  and here  but it doesn't seem to relate to my problem.  Thanks in advance :), I would really appreciate your help :)!


This is a common question asked by those who want to root their phones. How exactly do I root my Android device? Are there risks involved?


Lenovo IdeaTab showing a screen with Chinese characters

I'm using a Lenovo IdeaTab S6000. As I was watching videos, suddenly my tablet turned off. The buttons did not work and I was unable to restore it or turned it on. On the display, there were exposed these Chinese characters as they were changing with the abbreviations WIFI, GPS and MMC.    What is this screen? Is this a virus? How to fix this?


Do you get trading cards faster when the game has the focus?

It seems like you get trading cards slower when you have the game in the background or minimized. Can someone confirm this?


Convergence of the real infinite series $\sum \frac{n!e^{n}}{n^{n}}$

I am trying to check the convergence of the real infinite  series  $\sum \frac{n!e^{n}}{n^{n}}$. My problem is  i tried for it ratio and root test both but both failed as in both case limit comes to $1$. Please give me a hint for its convergence.Thaks a lot.


How set height for select? i need that "select" it height less popup height. I found some more  solution with use js but this code is bad.


I am going to root HTC Desire (with Android 2.2). How can I do best backup, and how can I get sure that I won't lost my whatsapp history and other files?


How do I create delegates in Objective-C?

I know how delegates work, and I know how I can use them.  But how do I create them?


How to compare the old and new values in a trigger for multiple fields?

I have 30+ fields in a field set, and in the update part of my trigger, I want to see if any of those fields have been changed. Can I access them using field sets?  Anyway to do it, short of writing out every field in my trigger?  I'm doing something similar to this:


I have an old laptop on which I installed Lubuntu a rather long time ago. I need that pc to compile a Kivy app but I can't even install Python 3.6 since sudo apt-get update gives me the following output: E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Nie udało się pobrać http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/disco/InRelease  403  Forbidden [IP: 91.189.95.83 80] E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu disco InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/richardgv/compton/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-backports Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/webupd8team/atom/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  So as stated in the title: is there any way for my to update my system so that I can use all of it's functions? Oh, and I would also like to add that I'm a huge noob if it comes to Linux related things :/


Suppose that $f(x)$ is continuous on $(0, \infty)$ such that for all $x > 0$,$f(x^2) = f(x)$. Prove that $f$ is a constant function.

Suppose that $f(x)$ is continuous on $(0, +\infty)$ such that for all $x > 0$,$f(x^2) = f(x)$. Prove that $f$ is a constant function. My attempt is to show that for any point $a \neq b$ , we have $f(a)=f(b)$. But I have no idea on how to get this. Anyone can help?


I would like to know how and where I can download qgis2web Plugin. I use QGIS with 2.10.1 version.


Grid search vs. random search for hyperparameter tuning

I am interested in comparing the computational cost of grid search vs. random search algorithm for hyperparameter tuning. Is random search computationally less expensive then grid search? Is there an article/paper that talks about this topic? Thank you,


Is it possible to install Ubuntu through network?

I would like to install Ubuntu  for almost 120 users. But it's very difficult in using USB and drives.  Any suggestions?


How to match the first word after an expression with regex?

For example, in this text:     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu tellus vel nunc pretium lacinia. Proin sed lorem. Cras sed ipsum. Nunc a libero quis risus sollicitudin imperdiet.   I want to match the word after 'ipsum'.


Maximum time for symptoms of pregnancy to show up?

Just wanted to know what is the maximum possible time for symptoms of pregnancy to show up after having unprotected sex(assume conception occurs)? What I mean is visible symptoms,not something like missed period or anything?


Concept of reinterpret cast and static cast ?

I can't understand the concept of reinterpret_cast and static_ cast. Can anyone please explain in easy method using ASCII Art or something like that..


I tried uninstalling PCL 1.7.2 which I had installed  (without sudo apt-get) but when I tried to remove them using the apt-get remove , terminal showed me those files cannot be uninstalled because they were not installed in the first place.    How can I check if the files were installed correctly if I installed files using cmake How can I uninstall a file that I manually installed using cmake? How are the files installed using apt-get vs cmake different?   Note - similar question but using apt-get remove:


If gravity is simply a curvature of space, why does it accelerate objects?

I understand how an object moving through space would be affected if gravity were a curvature of space as opposed to being a force. However, I do not understand why this creates a "pull" on an object. If, for example, an object were to be placed on the edge of the "well" created by gravity, would it not simply stay there? What would cause it to accelerate "downwards" towards the planet, if it had no initial velocity?


If n is a positive integer, then prove that $2^n \gt 1 + n\;\sqrt{{2}^{n-1}}$ ; $n\gt 1$

I tried using A.M. $\ge$ G.M. and Mathematical Induction, but couldn't get anywhere.


How to update to the latest numpy and scipy on Ubuntu 14.04LTS

On my Ubuntu 14.04LTS, for python3, I have   >>> import numpy  >>> import scipy  >>> numpy.__version__  '1.8.2'  >>> scipy.__version__  '0.13.3'   I want to update numpy and scipy to the most , I tried with the following commands  sudo pip3 install --upgrade numpy sudo pip3 install --upgrade scipy   both commands ran successfully, but the version numbers didn't change to 1.9.2 and 0.16.0 at all for both python packages (after restarting the computer). Anyone knows how to update to the most version? Thank you very much!!


Not sure if this is a question for math.se or stats.se, but here we go:  Our MUD (Multi-User-Dungeon, a sort of textbased world of warcraft) has a casino where players can play a simple roulette.  My friend has devised this algorithm, which he himself calls genius:   Bet 1 gold If you win, bet 1 gold again If you lose, bet double what you bet before. Continue doubling until you win.   He claimed you will always win exactly 1 gold using this system, since even if you lose say 8 times, you lost 1+2+4+8+16+32+64+128 gold, but then won 256 gold, which still makes you win 1 gold.  He programmed this algorithm in his favorite MUD client, let it run for the night. When he woke up the morning, he was broke.   Why did he lose? What is the fault in his reasoning?


Prove that "sum of the degrees of two adjacent vertices is less than or equal to number of vertices"?

Let $d_G(v_i)$ be the degree of the vertex $v_i$ in $G$ which has $n$ vertices. Also $G$ is a triangle-free graph, so we have $d_G(v_i) + d_G(v_j)\leq n$ for any edge $v_iv_j\in E(G)$. how we can prove this: $d_G(v_i) + d_G(v_j)\leq n$ in general ??


I ran the command  sudo gedit /etc/modprobe.d/iwlwifi.conf   it gives the following output in termianal  ** (gedit: 3409): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-kFLmVcCiYa: Connection refused  (gedit: 3409): IBUS-WARNING **: The owner of /home/nitesh/. Config/ibus/bus is not root!   My Wi-Fi connection appears in network manager but it does not connect to the internet. This is the output of sudo iwconfig:  wlan0     IEEE 802. 11bgn  ESSID: "RFNet"             Mode:Managed  Frequency:2.462 GHz  Access Point: 9C:D6:43:16:21:20              Bit Rate=2 Mb/s   Tx-Power=16 dBm              Retry  long limit:7   RTS thr:off   Fragment thr:off           Encryption key:off           Power Management:off           Link Quality=48/70  Signal level=-62 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:1457   Missed beacon:0  lo        no wireless extensions.  eth0      no wireless extensions.   How can I restore my connection?


How to set environment variable in systemd service?

I have an  and I've created my own service. The configuration service at /etc/systemd/system/myservice.service looks like this:  [Unit] Description=My Daemon  [Service] ExecStart=/bin/myforegroundcmd  [Install] WantedBy=multi-user.target   Now I want to have an environment variable set for the /bin/myforegroundcmd. How do I do that?


I suspect  has been wrongly tagged with  instead .


I am looking for a word which might be used to describe the unnecessary and lavish expenditure of money.  I seem to recall this particular word roughly being the opposite of 'frugal'.  An example sentence might be; "The Decor of Sir Wilfred's house pointed to a _____ lifestyle"


Find a continuous function over reals that takes on every value exactly three times.   I was thinking such a function would have to have two critical points and must go from increasing to decreasing or decreasing to increasing. Something like $x^3$, but still there are some points there that aren't counted three times. How would I go about constructing such a function?


Is there any need of antivirous program such as microsoft windows?

Microsoft windows needs an anti virus program to protect system from virus and other programs which are harmful for the system. Is there any need of such type program for Ubuntu OS? If not then why?


What do the "buff/cache" and "avail mem" fields in top mean?

Within the output of top, there are two fields, marked "buff/cache" and "avail Mem" in the memory and swap usage lines:    What do these two fields mean?  I've tried Googling them, but the results only bring up generic articles on top, and they don't explain what these fields signify.


Where can I find the official APKs to download them, in order to install them later on my phone without using my Samsung phone data?  Regards.


My code only work inside a $(document).ajaxComplete(function ()

I have a little big problem with my code, i have a list that load with ajax and i want to add this code for each class on that list so here is my code $(document).ajaxComplete(function() {    $('#contactomodal').on('hide.bs.modal', function() {     $('#contactomodalabierto').empty();   });   if ($('.pflist-item-inner .pfquicklinks').parent().find('.informacion').length > 0) {} else {     $('.pflist-item-inner .pfquicklinks').prepend(' Contacte');   }    $('.informacion').each().click(function() {     if ($(this).attr('id') === '') {       var id = $(this).nextAll('.pfquickview').attr('data-pfitemid');     } else {       var id = $(this).attr('id');     }     var action = 'contactomodal';     $.ajax({       url: my_ajax_object.ajax_url,       data: {         id: id,         action: action       },       success: function(data) {         $('#contactomodalabierto').html(data);         return false;       }     });    });  });  The problem is when i click on .informacion class, at the 2nd or 3rd click the function repear several times and always is reloading the ajax. If i change the .ajaxComplete for .ready my code doesn't work. Any idea?


So I recently dual booted Ubuntu 14.04 onto a Windows 10. I handled the partitioning correctly. I checked that it is there after a reboot and I have a installed it with  secure boot off, hibernation off,  system protection off,  and a power setting off.  Yet my computer goes straight to Windows 10 with no Grub prompt to choose Linux. I have press/held the shift, f1, f2, f10, f11, f12 key and only the f12 key has brought up a menu, however the menu only appears when the install USB is in and my only choices are to boot Windows or INSTALL Ubuntu.   How can I fix this so a grub menu appears on boot?  I have seen in other posts a mysterious etc/grub folder, can i edit this from Windows? If so, where is this folder?


Finding Dirac Hamiltonian from Dirac equation

My question is can we get the Hamiltonain from Dirac Equation? We have the following for Dirac equation:  $$(i\gamma ^\mu \partial_\mu-m)\phi=0.$$   Then separating the time and space components:  $$(i\gamma ^0 \partial_0-i\gamma ^i \partial_i-m)\phi=0.$$  Then I try to write it in form $i\partial_0\phi=H_D\phi$  so if i take time component to one side and take the i components to the other side:  $$i\gamma^0\partial_0\phi=(i\gamma^i\partial_i+m)\phi.$$  now is it right or should I multiply everything by $\gamma^0$? If I try to do that i get nothing like the dirac hamiltonian. any help is appreciated. Thank you.   PS. this question is from chapter 10 of Matthew Schwartz Quantum field theory and the Standard model Problem 10.1.


Is it possible to run the Steam version of GTA 4 on Ubuntu?

Is it possible to run GTA4 from Steam on Ubuntu? How would I go about installing it from my Steam client? Do I need to use some sort of Windows application wrapper like Wine? And can I play multiplayer without any problems?


I shuffle my standard deck of 52 cards really, really well - a completely random shuffle.  This generates some configuration of cards: 9Clubs, 4Spades, KHearts, etc...  What are the odds that this exact same configuration has been generated before?  By before - I mean anytime before and anywhere - including all the poker games in all the world and all the magic tricks and all the kids just practicing and all their intermediate shuffles as well.


Which Ubuntu should I install for my GPU Quadro P400 to do Deep Learning (Python3, Cuda, Tensorflow, OpenCV)

I have been struggling for almost 6 months trying to find the suitable combination to make Tensorflow/Keras, Cuda and OpenCV work in harmony using Python3, so that I can do some Deep Learning research on Video processing. But I get each time a malfunctioning library.  I tested already the Ubuntu 16.04.3 LTS environment, and it wasn't going well for both of OpenCV and Cuda.  Today, OpenCV 4.0.0 is working fine within my Ubuntu 18.04.1 (64 Bits) setup. However, I am not able to compile Tensorflow, knowing that I have Cuda 9.1, Cudnn 7.1.3, and NCCL 2.1.15 installed.  I am ready to restart everything from scratch, in case you already experienced working on a P400 Quadro-like GPU (which is of compute capability 6.1) (I am these days meeting some problems with ).  nvidia-smi : When I run :  nvidia-smi    In the command line, I get the following answer :  NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.   I installed, days ago, the Nvidia driver metapackage from nvidia-driver-390 using the Software & Updates software.    Can you suggest me a stable user-friendly GNU/Linux distribution or any stable Ubuntu version that I can put in place to make my GPU run properly and reduce drastically such recurring library interconnection issues ?  Relevant settings to mention :   GPU : Quadro P400 (Compute Capability 6.1) CPU : Intel Core i7, 7700K


I changed my var folder permission to 777 do I have to re-install the system

I just accidentally changed my var folder permission to 777 and it's sub folders. Do I have to re-install my system? and as far until now it didn't made any trouble for me.


How can I detect if a player has a specific item with a specific datavalue in their inventory?

Let's say I want to track a group of players to see which one of them (if any) have a specific block type in their inventory that's of a specific datavalue; for instance Red Wool (minecraft:wool with a data value of 14).  I already know how to detect if a player has any wool in their inventory: /testfor @a {Inventory:[{id:"minecraft:wool"}]}. However, this doesn't discriminate between the various colours.  It'll find anyone with any colour wool, whereas I want to find only players with red wool.  I've tried modifying the data tag to also include a data value, such as /testfor @a {Inventory:[{id:"minecraft:wool",data:14}]} but this results in unmatched NBT tags and the  error message <Player> did not match the required data structure.  Obviously it's because data (or Data, damage, dataID, etc.) isn't the name of the NBT tag, or that the structure is wrong.  I realize I can accomplish this using the /clear command, but that's a bit clunky when running on a 20Hz /fill clock.  How can I filter out specific data values when using the /testfor or /scoreboard players commands?


Prove that if f is continous on R and the limit as x approaches infinity and negative infinity is infinity, then f obtains its minimum value in R?

Problem:  Suppose $f$ is a continous function defined on $\mathbb{R}$ s.t. $\lim\limits_{x\to -\infty}= \lim\limits_{x\to\infty} = \infty$. Then $f$ obtains its minimum value for some $x\in\mathbb{R}$.  My attempt:   Suppose $f$ is continous on $\mathbb{R}$ and $\lim\limits_{x\to -\infty}= \lim\limits_{x\to\infty} = \infty$. Let $[a,b]\in\mathbb{R}$ Since $f$ is continous on $\mathbb{R}$ and $[a,b]\in\mathbb{R}$, then $f$ is continous on $[a,b]$. Since $f$ is continous on $[a,b]$ and $[a,b]$ is closed and bounded, then $f$ is bounded on $[a,b]$. Thus, $f$ obtains its maximum and minimum value at some $x\in [a,b]$   Here is where I am stuck because I know that the minimum may be to the left or right of this closed interval, but I do not know how to connect that idea and the idea of the limits that are given.   Thanks for your help.


Change language of system and error messages in PostgreSQL

Is it possible to change the language of system messages from PostgreSQL?  In MSSQL for instance this is possible with the SQL statement .


Is there a way to rollup a field from child to grandparent?

i've a custom object Score has to be rollup to grand parent Account. Score-project-account is the lookup currently. How to get count of a field of score onto account?


My friend stumbled into a strange error (at least I think it is an error). When you multiply a certain number in the console of your browser, 1.4 in my case, then the output is very interesting when you multiply it with 3, 6 and 7. Check these outputs in Firefox:     In Chrome it is the same as in Firefox, in Edge and IE it's even more interesting, there is the outcome by the multiplication with 6 even more off:    I googled it but couldn't find any explanation about this error. Does anyone know why the browsers fail at this multiplication?  EDIT: The comments below explain why the number isn't just let's say 4.2 but a heck of a lot numbers which gets a 4.199999999999999. Thanks for referring me to those answers.   However, why does this only happen by 3, 6 and 7 and not with the other numbers? (Maybe at number higher than 10 it will happen to, didn't check that.)


What does 'Nice' mean on the processes tab

What does the 'Nice' column represent on the processes tab of the system monitor?


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


What does "To" mean in a newspaper headline?

What does to mean in a newspaper headline, for example:     Airline XY to cut cost of pilots' wages   Is it a shorter form of "Is going to" or "Is planning to"?


Exporting mxd to image with transparent background from ArcGIS for Desktop?

I cannot get ArcMap 10.0 or 10.1 to "Export Map" to a png or gif with a transparent background -- no matter what I set the background and transparent colors to.  Thus, I created the following script, which does the trick, but I'd rather be able to get the default tool in ArcMap to do it.  Any better ideas?    # Purpose: This script exports an MXD view to a png file with transparent background, # which is problematic to do manually due to a Windows-related bug in the ArcMap UI. # Warning: It will make any white features (e.g. the default background color) transparent. # # INSTRUCTIONS: # When in ArcMap, viewing a saved mxd... # 1. From the Geoprocessing menu, select 'Python'. # 2. In the new Python window, right-click somewhere after >>>, and select 'Load...' # 3. Select this script. # 4. When this script appears, press Enter twice to run it. # 5. A new [mxd-name].png with transparent background will appear in the same directory as the mxd. # 6. When finished/satisfied, close the Python window. # http://forums.arcgis.com/threads/65463-Zoom-to-tile-and-Export-to-JPEG-with-World-File import arcpy png_resolution = 300    # Can adjust DPI # Set mxd and png name mxd = arcpy.mapping.MapDocument("CURRENT") pngname = mxd.filePath.replace(".mxd",".png") df = arcpy.mapping.ListDataFrames(mxd)[0] # Calculate ideal image size from the mxd view and desired DPI png_width = int((df.extent.XMax - df.extent.XMin) * png_res * 12 / df.scale) png_height = int((df.extent.YMax - df.extent.YMin) * png_res * 12 / df.scale) #Export PNG print "Exporting: {0}\n{1} x {2} pixels, {3}-dpi".format(pngname,png_width,png_height,png_res) arcpy.mapping.ExportToPNG(mxd, pngname, df, df_export_width = png_width, df_export_height = png_height, resolution = png_res, transparent_color = "255, 255, 255") #Clean up del df, pngname, png_res, png_width, png_height, mxd


I have been doing an interpolation of rainfall data using QGIS and the interpolated data has a line which make the data uneven and the isohyets are being cut at the boundary line of 180 Degrees. I know that this is due to the dateline passing through Fiji Islands but I need a fix for this so that the isohyets are not cut into two different maps Attached is a QGIS map:


"In the Philippines", or "In the US" sounds okay, but why not "In the Japan", or "In the China"?

Random thought earlier.   I am basing my question on my memory of what seems to be normally used, but I am unsure of the actual correct grammar usage.  Which is correct, and if one is wrong, what is the reason for that?


How to tell which processes are uploading and downloading data (and how much)?

I can see in my System Monitor that data is being uploaded and downloaded, I can see in Etherape which sites it's connecting to and which protocol is being used. However without looking at the actual packets in WireShark and then finding the port and which process is listening on that port I am unable to tell which processes are uploading and downloading data. So I was wondering if there is an easier way that using WireShark (or some other tool) to find the port manually and then see which process is listening on that port? This application would ideally:   Give me a list of processes Show me (in KiB/s) the amount of data being uploaded and downloaded (in different columns)  Show me the PIDs of the processes Show me the ports which the processes are listening on Show me all this information in a table Be a CLI program (ideally, but it doesn't have to be in the CLI) Have the ability to change the update interval of the data   I am running Ubuntu GNOME 15.10 with GNOME 3.18, is there such a software that would meet my needs?


I had both ubunyu and win 10 l delete every thing l want yo make a new partition table with ubuntu live and then install both ubuntu and win 10 again but its my first time and l dont know what should be table type and which partitions i must have


I don't understand why my simple loop in vba not working as I want. I would like to make a diagram and loop through the x axis values with a step = 0,01. I cut out part of the code, probably not necessary for this question. My problem is that the generated values are not exact. It should be something like: 0; 0,01; 0,02; ... and so on but around 0,82 the cell value is: 0,820000000000001 and after that the error goes on. This little bit of difference between 0,82 and 0,820000000000001 is not much but makes a lot of problem for me. For example: in the loop I can not use this: If x = 0.82 ...  because it is not going to be equal. I can cure this problem but there are others and maybe there  is a simpler solution. Here is the code: Sub Generate_Punch()   Dim NoL As Integer NoL = Worksheets("Punch").Range("D5").Value 'Number of loops  Dim d As Double d = Worksheets("Punch").Range("D4").Value 'value of increment/step   'which line start Dim i As Integer i = 15  'Coordinate values: Dim x, y As Double x = 0 y = 0   Worksheets("Punch").Range("A" & i & ":F32767").Clear  For j = 1 To NoL          'Counter     Worksheets("Punch").Cells(i, 1).Value = j          'X coordinate values:     Worksheets("Punch").Cells(i, 2).Value = x      '.... .... ....          i = i + 1     x = x + d Next j  End Sub  Thank you for your answers. Best regards, Robert


No external fields penetrate the conductor as they are canceled at the outer surface by the induced charge.  My question is why is field inside conductor zero when there is no other field inside the conductor to cancel the field due to the induced charges?


I am trying to add a count of 3 to this command : /execute as @a if entity @s[nbt={Inventory:[{id:"minecraft:diamond"}]}]    Edit: Some may think that this question is a duplicate, but my question is different from .    The linked question uses tellraw while this one uses an execute command. Someone might need to add a run command and /execute has this built-in.


Found a heap of BTC but have no documentation. What do I do?

Many years ago, I bought around 400 BTC for a few hundred dollars (?) and stored them in a hard drive. Shortly after that, I lost this hard drive, wrote it off as an "Oh well" and didn't think anything more of it.   Last week I found the hard drive and, according to Google, it's worth around 1,000,000 USD.  I know how to sell the btc, I just don't know what will happen to me if I do and what I should prepare myself for legal and tax-wise. I would like that money, but have no idea what kind of tax and legal cataclysm I should expect, as I have no documentation on what I paid for them, or even where they came from. I am in the US, in Michigan.  I really don't know much about bitcoin, so if there is a way to track this stuff down I would be grateful if someone could share it with me.  What steps do I need to take to declare this money and obtain it without getting arrested / investigated?


Can I display a BoolProperty as a push button?

I have three BoolProperties in my addon (they represent the X Y and Z axes).  At the moment when I add add them in the draw method my panel, they are displaying as checkboxes.  I'd prefer a pushbutton display style where if they are drawn to look like buttons (and displayed as pressed when they are true).  Is there a way to do this?


Help for a comparator circuit immune to noise with an LED indicator

I have the following circuit which uses an LM2903 comparator. But Im not sure if it is designed well enough, and not sure about the open collector output is used correct:  THIS CIRCUIT UPDATED AND MODIFIED PLEASE SCROLL DOWN AND SEE MY EDIT AT THE END OF THE QUESTION    I want to modify the above circuit for two types of inputs from two types of pulse outputting devices.  Input to the circuit will be two types of pulse trains coming from one of the two types of devices. The devices will be either powered by 12VDC and which outputs 12VDC pulses or will be powered by 24VDC which outputs 24VDC pulses. Pulse freq. range is 5Hz to 800Hz. I want the device and the comparator circuit to be powered from the same power supply.  And as I tried to clarify the pulse outputs of the devices will go to the circuit as an input.  I want to modify this circuit in a way that:  1-)The output will be 0 to 5V or 6V pulse, for both 24V and 12V cases.  2-)I want the circuit has a large hysteresis in Schmitt trigger configuration and immune to noise(i.e. output as clean as possible).  3-) I also want an LED to blink and indicate whether there is output by not effecting the pulse freq. or introduce noise to the pulse outputs.  I would be glad to have your version or suggestions for this.  EDIT 1:  To add large amount of hysteresis I had to use the inverting input.  And to use an LED indicator I followed analogsystemsrf's suggestion.  Below is the circuit so far:   (click to view the image)  Now I have large hysteresis but LED doesn't go off.  But now I have the following problems and worries?     How can I employ an LED so that I don't introduce noise?      And what do you think about the capacitors in this circuit? Do you   recommend additional ones?   EDIT 2:  With analogsystemsrf's suggestion I modified the circuit again. When I did that, I had to rearrange some resistors to increase hysteresis. I also used 8V zener. Here is the last version:  (click to view image)  And here is the LED current(ringing due to LTSPICE?).


How to call out a variable that is passed from within 4 classes

I have 4 classes, Main, class A, class B, class C. I initiated a variable in Main, outside a loop_1 : int x=0 and then passed it into class A that uses a loop_2, and then from there straight into class B which is a part of that loop and right into class C.  I intended that after class A would finish the loop I'll get System.out.Println with X.  The problem is that I get x=0 every time. I have a checkUp System.out.println in class C and I see it grow there, But as I try to print x from class class A I always get x=0.  Note: I have  Main Class  public class SocketMain    {  public void mainMethod{  int x=0;  for (int edition = 0 ; edition<29 ; edition++){   classA.Method1(x);   x=0;   } }   class A (SelfNote : // InstrumentPage)   public class classA  {  public static void Method1(int x)  { for (int loopCounter = 0 ; loopCounter <29 ; loopCounter ++){   classB.Method2(x);    }   if (x=0) System.outprintln("FirstIf" +x);  if (x>0) System.out.println ("SecondIf" +x);     }   Class B (SelfNote : //TestClockOfInstrument)   public class classb           { public static void Method2(int x) {      classC.Method3(x);    }   Class C (SelfNote : //SocketChanges)   public class classc { public static void Method3 (int x) {  if (someThingHappens == 1)   x++;  System.out.println ("Check X" +x);   }


How to access the properties of a nested class with the instance of outer class

I have this example   public class AClass {      public class BClass      {          public string name;          public string id;      }  }   now i want to make an intsance of Aclass   public class Program {     public static void Main()     {          AClass newitem = new AClass();      } }   but i haven't access to the properties of BClass with the object newitem. How can achieve that with an instance of AClass?


Why are unions, in particular, infinite unions, of open sets open allowed by the definition of topology? Such a condition allows for interiors of sets to always exist, but why does this matter?


I am constantly using the command-shift-4 command to take a screenshot, since it is so easy, but it will always save to my Desktop, and I like having my Desktop clean. It is becoming a hassle to constantly move all my screenshots into a separate folder. Is there a way to change the save destination of the screenshots automatically? I would really like it to be able to save in a folder.


Why are there no elementary charged, spin-zero particles?

In the spirit of a  I would like to know if there's a basis for understanding why there  that have non-zero electric charge but zero spin?  Can such a quantum theory be written down and self-consistent? Do the current symmetries of our present QFTs not allow such a particle?


C# Loop through generic types known at compile time

Is there a way to call a generic function in a foreach loop for Types known at compile time? This code wont compile, because type is not a valid parameter for DoSmth, but illustrates what I want to do.      public class X { }      public class Y { }      public class Z { }      public class Example     {         public Example()         {             Types = new List<Type>             {                 typeof(X),                 typeof(Y),                 typeof(Z)             };         }          private List<Type> Types { get; }          public void DoAllTypes()         {             foreach (var type in Types)             {                 DoSmth<type>();             }         }          private void DoSmth<T>()         {             // ... do smth based on T         }     }   Edit: Why is the question a duplicate? I specifically stated "known at compile time". The other uses Reflections to get the types not known at compile time.


How can I remove all unused materials from a .blend file?

I'm testing different materials in the same object, and finally the file has a lot of unnecessary material, is there any command  that performs the cleaning of these materials automatically? in short, is it possible to make them disappear from the file?


Trouble with getting an index of an array in java

I have used a BufferedReader to read in information from a txt file. I know the file is reading but I cannot select the first index (bookID number) to go through my if statement. I want the first line of the string to match with the bookID and then complete the if statements without skipping to the book is not found statement. Code below.   String bookID =  jTextField7.getText();     String quantity = jTextField8.getText();       jLabel9.setText("Item #" + Integer.toString(currItem) + "info");      jButton8.setEnabled(false);     jButton9.setEnabled(true);      BufferedReader br = null;     String sCurrentLine;      try {          //String sCurrentLine;         br = new BufferedReader(new FileReader("inventory.txt"));           while ((sCurrentLine = br.readLine()) != null) {            String[] split = sCurrentLine.split(",");           System.out.println(sCurrentLine);                  if (split[0] == bookID) {                     int discount = calculateDiscount(Integer.parseInt(quantity));                     double itemSubTotal = (Integer.parseInt(quantity)*new BigDecimal(split[2]).doubleValue()*(discount/100));                     subTotal += itemSubTotal;                      String info = split[0] + " " +  split[1] + " " + split[2] + " " + quantity + " " + Integer.toString(discount) + " " + (Integer.parseInt(quantity)*new BigDecimal(split[2]).doubleValue()*(discount/100));                     books.add(info);                     jTextField9.setText(info);                         return;                 }         }     }     catch (IOException e ){         e.printStackTrace();     }     finally {         try {             if (br != null)br.close();         }         catch (IOException ex) {             ex.printStackTrace();         }     }      JOptionPane.showMessageDialog(null, "Book ID " + bookID + " not in File");   }                                          I would appreciate any help. Thank you.


Quantum entanglement used for FTL communication?

I'm aware of many ideas people have come up with for this question. I understand why they don't work. However I was thinking about another method involving an array of multiple entangled particles.  Each particle in array one would have an entangled corresponding particle in array two. Each array would have particles divided into groups of 2. With each group of two measure the first one to translate a 1 and the second to translate a 0. Someone far away would have a second array entangled in the same pattern as in the first array and would read the binary code sent. I'm assuming this would not work but am unsure why.


Flagging mechanism for offensive usernames

Is there a mechanism by which we can flag user-names as offensive?


When starring messages at the side, the actual message does not star:   We can see that the message by jadarnel27 is starred at the side but not the actual message itself. (Don't suspend GnomeSlice, its a joke)


I use the following code to fill a specific area with dots. Can the dots positions be randomized, and can the dots size be altered.      \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{tikz} \usepackage{pgfplots} \usepackage{tkz-fct} \begin{document} \begin{frame}[fragile,t] \frametitle{} \begin{tikzpicture}[scale=.9, transform shape] \fill[pattern=dots,pattern color = blue] (1.,.46) -- ++ (4.,1.66) -- ++ (-.6,.8) -- ++ (-3.68,-1.84) -- cycle; \end{tikzpicture} \end{frame} \end{document}


When I returned to the previous page, my app crashed

I have an app in which I can open camera and take a photo and to save gallery. When I click on button to open camera its works. If I click the back button on the phone without taking a photo, my application is stopped. How can I solve this problem ?      Button camera = (Button) findViewById(R.id.camer);     camera.setOnClickListener(new View.OnClickListener() {          @Override         public void onClick(View arg0) {             Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);             startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);           }     });      send.setOnClickListener(new OnClickListener() {          @Override         public void onClick(View arg0) {              Intent i = new Intent(Intent.ACTION_SEND);               //Log.d("URI@!@#!#!@##!", Uri.fromFile(pic).toString() + "   " + pic.exists());             if (pic != null) {                 i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(pic));             }              i.setType("image/jpg");              startActivity(Intent.createChooser(i, "Share you on the jobing"));         }     });   }  protected void onActivityResult(int requestCode, int resultCode, Intent data) {     if (requestCode == CAMERA_PIC_REQUEST) {         thumbnail = (Bitmap) data.getExtras().get("data");         image = (ImageView) findViewById(R.id.imageToUpload);          image.setImageBitmap(thumbnail);           try {             File root = Environment.getDataDirectory();             if (root.canWrite()) {                 pic = new File(root, "pic.jpg");                 FileOutputStream out = new FileOutputStream(pic);                 thumbnail.compress(CompressFormat.JPEG, 100, out);                 out.flush();                 out.close();             }          } catch (IOException e) {             Log.e("BROKEN", "Could not write file " + e.getMessage());         }      }  }      Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'android.os.Bundle android.content.Intent.getExtras()' on a   null object reference


Nonabelian semidirect products of order $pq$?

I just constructed the semidirect product in Lang, and I'm trying to tie some facts together. From Ash's Algebra, I know that if $p\lt q$ are distinct primes, if $q\not\equiv 1\pmod{p}$, then any group $G$ of order $pq$ is abelian.  Is the converse true, that for any primes $p\lt q$, if $q\equiv 1\pmod{p}$ then there exists a nonabelian group of order $pq$?  One example I found online is that $\mathbb{Z}_3\ltimes \mathbb{Z}_7$ is nonabelian, and here $7\equiv 1\pmod{3}$. I was considering then semidirect products $\mathbb{Z}_p\ltimes\mathbb{Z}_q$ where $q\equiv 1\pmod{p}$ and some homomorphism $\phi\colon \mathbb{Z}_p\to\operatorname{Aut}(\mathbb{Z}_q)$ I calculate that  $$ (1,0)(0,1)=(1+0,\phi_0(0)+1)=(1,1) $$ and $$ (0,1)(1,0)=(0+1,\phi_{-1}(1)+0)=(1,\phi_{p-1}(1)). $$ Is it true somehow that $\phi_{p-1}(1)\neq 1$ in each case to show the group is nonabelian? I guess if it did this would imply $\phi_{p-1}$ is the trivial automorphism, so maybe there's something there? If not, is there a way to show $\mathbb{Z}_p\ltimes\mathbb{Z}_q$ is nonabelian in these cases in general? Thanks.


Find the area of largest rectangle that can be inscribed in an ellipse

The actual problem reads:      Find the area of the largest rectangle that can be inscribed in the ellipse    $$\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1.$$   I got as far as coming up with the equation for the area to be $A=4xy$ but then when trying to find the derivative I don't think I'm doing it right.


Which prepositions collocate with "to be born"?

A baby girl was born to Mr Arthur Keller and Kate Keller.   Why does it use 'to' instead of 'by'?  Please tell me differences.  Note: An  does touch on this some. I would like more information about "to" vs. "by" here.


In string theory, does each string interact with all the other strings in the universe, or just the closest ones?

The question is likely to anger string theorists. But excuse me, I could not help but ask him.


Is there a 'rule of thumb' on the upper limit of how many related records in related objects an object should have to avoid slow page loading?

Typically, each record in Salesforce will be 2kb large: .   However, let's say in an extreme example, the Opportunity object is related to 40 custom objects, each which has 100,000 records. The page would load much slower, especially in an older browser version.   1) Is there a 'rule of thumb' as to what the upper limit of how many related records an object should have?   2) Also, , there's an indication that there's some sort of tier-tuning per org based on the volume of data it has. Is that correct? And if so, are the volume ranges and respective tier-tuning capacity available?


Concurrency of the heights of a tetrahedron with opposite edges perpendicular.

Can anyone give me a vectorial solution to the following problem:     Prove that if each pair of opposite edges of the tetrahedron $ABCD$ is perpendicular (that is, $AB \perp CD$ and $AC \perp BD$ and $AD \perp BC$), then the heights of the tetrahedron are concurrent.   Here, the heights (also known as the altitudes) of tetrahedron $ABCD$ are the perpendicular from $A$ to the plane $BCD$, and three other similarly defined perpendiculars.  Tetrahedra satisfying the condition of this problem are called , and this appears to be a known result.


Why does reanimated Itachi bleed while using Ametarasu (Naruto, killerbee vs reanimated Nagato, Itachi fight), while no other reanimated shinobi bleed when attacked? For example, Minato didn't bleed when his arm got chopped off, and third Raikage didn't bleed when he got struck by Naruto.


I was looking at the edit history for a question:  Notice how edit #3 is supposed to be a tag edit, but the diff is blank:  Why?


"Inspirational" quote at start of chapter

I recall seeing a package to make quotes like that of the following image at the start of a chapter, but I can't seem to find it again.    (This image is from the book Combinatorics and Graph Theory by Harris, Hirst, and Mossinghoff)


What is the fastest / most efficient way of getting all the distinct items from a list?  I have a List<string> that possibly has multiple repeating items in it and only want the unique values within the list.


Eeeek! "Community" user got sudden rep boost.. how come?

Until recently  had one single reputation point, you can see it in this old screenshot:    Now it has over 2K reputation all of a sudden.. what has caused this? Has it affected "real" members as well?


Why isn't auto spellcheck enabled for title/subject?

I have noticed that both Firefox/Outlook don't have auto spellcheck for the subject text box of emails. For Firefox, I am referring to Yahoo web mail.  The subject is supposed to contain texts; then why isn't any spellcheck enabled for these fields?


Trying to help someone get back into the USA

If they are needing to get back into USA is an eBay card actually helping them or is it a scam


I have been learning javaScript lately but I got confused in understanding the concept of closures.How does JavaScript closures actually work ?


What software to graphically design a simple schematic?

I need to draw a schematic similar to that shown in the figure attached in . Are there softwares that allow to graphically design a schematic like that?


Suppose that a star is encompassed by a . Do we need a position control system for the Dyson Sphere to keep its origin always aligned with the center of the star? Will it stay aligned itself and automatically neutralize small perturbational forces? Or will a small perturbation remove it out of the orbit of the star, so that it will be eventually destroyed and swallowed by the star?


I have made a script that I want to run only where the user kyle logs in. I don't want it to be run on all users like a start-up app. I only want it to run when the user kyle logs in


I have a gameobject to which a script is attached.  In this script I have the following code:      foreach (GameObject g in this.GetComponentsInChildren<GameObject>())     {         BagItem nBagItemScript = g.GetComponent<BagItem>();         if (nBagItemScript != null)         {             Bounds nBounds = Helpers.BoundsFromGO(g);              Vector3 nPos = new Vector3((nBounds.size.x / 2) - nBounds.center.x, mapHeight - (nBounds.size.y / 2) - nBounds.center.y, -0.01f);             g.transform.localPosition = nPos;          }     }   I thought this code was fail-safe, but Unity outputs the following error message:  ArgumentException: GetComponent requires that the requested component 'GameObject' derives from MonoBehaviour or Component or is an interface. UnityEngine.GameObject.GetComponentsInChildren[GameObject] (Boolean includeInactive) (at C:/buildslave/unity/build/Runtime/Export/GameObject.bindings.cs:133) UnityEngine.Component.GetComponentsInChildren[GameObject] (Boolean includeInactive) (at C:/buildslave/unity/build/Runtime/Export/Component.bindings.cs:88) UnityEngine.Component.GetComponentsInChildren[GameObject] () (at C:/buildslave/unity/build/Runtime/Export/Component.bindings.cs:98) Bag.pUpdatePositions () (at Assets/Bag.cs:173) Bag.Update () (at Assets/Bag.cs:107)  Can somebody tell me which error Unity / C# is choking on here?  Is the error really in this line   foreach (GameObject g in this.GetComponentsInChildren<GameObject>())   ... or perhaps somewhere else?  Thank you very much!


python one liner to add "0" if len of string is 2 and do nothing if len is 3

I have a string with len of 2 or 3 s1 = 22 s2 = 27 s3 = 102  I want to return a string with 3 chars. If orig string was len of 2 - add 0 at the begginig. So output will be: "022" , "027", "102".  Is there an elegant/one liner to do it in Python?


I have one problem which goes like this: "In how many ways can $10$ letters be placed in $10$ addressed envelope such that exactly $9$ letters are in correct envelope?"  If I understand the problem correctly this is similar to counting  with exactly $r$ matches,I don't know how to do it,please help.


Prove that $I=(xy-1)$ is prime but not maximal in $\mathbb{C}[x,y]$. Prove also that $\mathbb{C}[x,y]/I$ has infinitely many prime ideals. I must prove that the quotient Ring is an Integral domain and not a Field. No idea whatsoever. Any help please.


Are feature selection methods prone to multicollinearity?

I'm using R and I wonder whether I should first remove highly correlated variables via vif()and apply then lasso, forward selection etc.   Or doesn't it matter? Do the packages handle multicollinearity automatically?


I'm newbie with Python.  I have found this code:  array = FLAIR_array[..., np.newaxis] # FLAIR_array is a Numpy array.   FLAIR_array shape is (960, 200, 200) and array shape is (960, 200, 200, 1).  np.newaxis has added a new dimension to the array, but I don't know what value is in that new dimension (this is a question, but I think I can't ask more than one thing on the same question).  My question is: What does ... mean in FLAIR_array[..., np.newaxis]?


What is the latex code for the symbol "two colons and equals sign"?

I wish to use the symbol as in the following picture, however, I can not find it. Can someone help me?


I founded a religion in my capital (Buddhism).  After another civilization converted my city to their religion, I used an , thinking it would remove the other civilization's religion.  However, I was wrong.... very wrong.  Now, when I refer to my Religion Overview, it turns out no other cities/city-states follow Buddhism, so clearly my religion did not stand the test of time.    Question:  Is it possible to resurrect a religion?   Any help would be greatly appreciated!


How important is the 'admitted until' date stamped on my passport while entering the US

I have traveled to the US 3 times now within the past year, on the 2 previous trips, CPB stamped my passport for entry up to 6 months for which I stayed only 2 weeks each. On my 3rd trip in February, I was stamped for admittance for one month only, however something has come up that necessitates I stay an extra 3 weeks. Would this get me on the overstay list? I know you can stay between 90 and 180 days in the US on a B1/B2 visa, but given what was stamped on my passport, what is the best thing to do? Can I ignore it and stay?


cat is the command to concatenate files, however it seems it doesn't work with UTF-8 files with BOM (byte order mark). Those files have some bytes at the beginning which define the byte order (big / little endian). They are invisible in text editors like vi. If I concatenate such files, I don't expect to have the BOM multiple times in the concatenation result. Unfortunately cat doesn't care about that. It took me hours to find the problem, because I didn't knew my files have BOMs and Notepad++ doesn't even show them if they are in the middle of the file. So my question is: How can I concatenate multiple UTF-8 files with BOM? At the moment I'm trying to remove the BOM with sed and then add it again to the resulting file, but it still doesn't work and I wondered if there is a more simple solution or if I didn't use cat correctly.


Matrix within equation does not compile (missing $ inserted)

the following piece of code has a missing $ inserted error. \begin{equation} \theta^{\star} =   \begin{bmatrix} \boldsymbol{c}^{\star} \\ \boldsymbol{m}^{\star} \end{bmatrix}  ,\quad  \begin{bmatrix} \boldsymbol{\sum}_{cc}           & \boldsymbol{\sum}_{cm} \\  \boldsymbol{\sum}^{T}_{cm}   & \boldsymbol{\sum}_{mm} \end{bmatrix}  :=\boldsymbol{A}^{-1} \end{equation}  unfortunately i still cannot figure out why this occurs, my other equations without a matrix seem to compile normally, i appreciate the help.


I have created a tabular in latex and I would like to have flow lines on it, pointing from one element to an other. I do not care how it looks like, I just want to show there is a flow from one element to an other and so on. I would also like to do the same for Karnaugh maps. No matter how much I've searched the web, there hasn't even been someone to ask this sort of question.  Does anyone have any ideas how this could be done?


The use of the future tense for describing one's usual routines

In this  at 5 minute and 50 seconds, for reasons unknown to me, a speaker used the future tense for describing his usual routine.     So in the assistance portion of my workout, I will choose row variations that by nature are a little lighter.   Why didn't the person say "I choose row variations"? Does the use of the future simple add some sort of emphasis, like his habit cannot be changed, and no matter what, he will choose the row variations?


More numbers between $[0,1]$ or $[1,\infty)$?

There are infinitely many real numbers between any two real numbers, therefore there are infinitely many real numbers in the range $[0,1]$ as there are in $[1, \infty)$. In a mathematical sense, are there more numbers in one range as opposed to the other?  What about $[0,1]$ and $[0, \infty)$ ?  I'd assume this is akin to how limits work in that the limit as $x\to\infty$ of $\frac{x^x}{\log(x)}$ is $\infty$, even though both the numerator and denominator approach infinity.


is it possible to create a "cout <<" function in Python?

Unlike C++ cout <<, Python print() function prints the passed arguments with an endline/newline and sometimes I found it annoying having multiple lines in terminal. I know I can use the print(var1, end='') or sys.stderr.write() from sys library but it's too long and quite hard to read. What I think is that may be I can make a cout<< operator in python and prints variables or values without new line at the end # Example in Python: for x in range(3):     print(x)  # Output: 0 1 2  # In C++:     for (int x = 0; x < 3; x++){     cout << x << ' '; }  # output: 0 1 2  Also, '<<' is much easier to type because the key is in the lower portion of the keyboard unlike parenthesis.


There does not exist an entire function which satisfies $f({1\over n})={1\over 2^n}$?

There does not exist an entire function which satisfies $f({1\over n})={1\over 2^n}$, what I tried is if possible then define $g(z)=f(z)-{1\over 2^{1\over z}}$ Then $g({1\over n})=0$ and so $g(z)$ is entire and its $0$ set has limit point in it and so $f(z)={1\over 2^{1\over z}}$ which is not analytic at $0$? Please help!  Edit: OOps! the way I defined $g(z)$ that is not entire! could any one give me hint?


UK Immigration Control: Will henna/mehndi on my hands cause a problem?

I have plans to travel to the UK. This is the first time I will be going abroad. It would be a two week trip.  My question is, if I put mehndi or henna on my hands before I go, is it going to create any problem for me?   I wouldn't have put it on but my sister's wedding is just two days before I leave for the UK.


Replacing cmd.exe with an another console tool

I like to use  instead of the default command line for Windows. Out of habbit i'm still writing "cmd" into Total Commander's command line sometimes to open a DOS console into the current directory. And it doesn't open Console2 of course and it makes me angry. :) I wonder if it's possible to redirect the "cmd" command to run Console2 instead of cmd.exe?  I've already tried adding Console2's folder to the PATH and creating a cmd.lnk file pointing to console2.exe but it's not working. I don't think it's a good idea to rename cmd.exe to something else and simply copy console2.exe as cmd.exe into SYSTEM32.


How to prove the real value function $f$ is convex on $[a,d]$ if $f$ is convex on both $[a,c]$ and $[b,d]$? ($a<b<c<d$).    I try to show that: for arbitrary $x\in(a,b), z\in(c,d)$, and for all $y\in (x,z)$ the inequality   $\dfrac{f(y)-f(x)}{y-x}\leqslant \dfrac{f(z)-f(y)}{z-y}$  holds. Then $f$ is convex on $[a,d]$.   But it seems to need some inequality tricks, I can't finish it.


kernel_task consumes 500% CPU on AC power, sometimes

Typically, my kernel_task process uses 1-4% CPU and 100-700MB of memory. However, sometimes when I have the power adapter plugged in, the CPU usage jumps to around 500% (8 cores) and stays there until I unplug the power adapter. I can plug it back in and everything is fine for a few seconds or a few days, then it eventually happens again. How can I stop this from happening?


What purpose do transformers have in electrical interfaces such as ethernet?

Some electrical interfaces, such as ethernet, specify that the outward-facing socket are to be isolated by a transformer. For instance, see this circuit example from the data sheet of an ethernet controller:   Ostensibly, these transformers are there to "protect" the circuit from external high-voltage transients, such as lightning strikes. I couldn't imagine how transformers might help, so I simulated it, using this circuit (SW4 closes at 200 ms, "starting" the lightning strike and SW6 closes 50 ms later, ending the strike):   Below are the simulation results (click for larger image):   As you can see, the surge is let right through, and the transformer doesn't help at all! So what am I missing? How can a transformer protect against high voltage surges from the outside?


Can i use my ipad adapter cube and a usb cord together without any damage to the phone?

Is using the two together going to damage my phone in any way?


I'm not sure why we need Wayland (or X) at all. Since under wayland applications will be drawing themselves then what is the point of wayland? Applications can draw their own windows and widgets, can't they? What is it that we can't do without Wayland (or X)?


E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Note: This question is specifically about installed, desktop software. There is  specifically about free cloud-based software and services.  What free programs should every GIS user have installed?  I'm not necessarily referring to ESRI extensions or open-source products, but others that increase your productivity and ability to handle GIS tasks.  For example:    for writing code snippets or editing XMLs.  or  for quick graphic editing. I use  daily and I think it's worth mentioning. It's not GIS-specific, but it's a great tool, especially if used independently and on multiple projects where purchasing time-management software isn't reasonable. While it's not focused on GIS development,  has proven to be very useful in terms of increasing productivity and monitoring system resources. I have created a GIS "sidebar" on my desktop that holds all of my development tools, as well as links to the online resources I used the most. It's nice to be able to use one location, rather than many (e.g. taskbar, bookmarks in browser, search engine).


It looks like a partial alphabet a in black color over a white circular background.


How to make a page redirect using JavaScript?

I'm making a shopping mall website using a Yahoo solution. I have multiple options for items and some items have different price dependent on the options.  Yahoo doesn't support multiple price options, and therefore I try to find a solution for this problem. One of my ideas is to make multiple pages and redirect the page dependent on options. For example, if a customer chose  model A, the page will stay in the page A which displays $1000. If a customer chose model B, the page will redirect to the page B which displays $500.  I have already made dynamic options with JavaScript, but I want to modify it to redirect a page. Here is the link of my page:    In the page, there are options in the middle. If a customer chose his/her hand, it shows options, "#4 Thru AW," "Lob Wedge," and "Sand Wedge." If a customer chose either "Lob Wedge" or "Sand Wedge', the page has to redirect to a page which has a different price.  PS:  I'm using JavaScript to generate options dependent on the previous option. The code is:  <script type="text/javascript" language="javascript">     <!--     document.write('<select name="Iron(s)" onChange="javascript:     listboxchange     (this.options[this.selectedIndex].value);"><option value="">Select Iron(s)</option></select>')     --> </script>


Is "were scattered" a construction of passive voice or a simple past tense?

I am doing a study on the verbal forms "Simple Past". I have doubts with the construction "were scattered", because I do not know if it is the verb to be conjugated in Simple Past and followed by an adjective, or it is a Passive Construction, which I would therefore exclude from my study.  Therefore, is the verb that I have highlighted in bold written as part of a passive construction? Why? Or why not?     ...One, with his chin propped on his knees, stared at nothing, in an intolerable and appalling manner: his brother phantom rested its forehead, as if overcome with a great weariness; and all about others were scattered in every pose of contorted collapse, as in some picture of a massacre or a pestilence.   from Heart of Darkness, by Joseph Conrad.


$p$ and $q$ orthogonal projections in $B(H)$, then the orthogonal projection onto the intersection space is the strong operator limit of $(pq)^n$

$p$ and $q$ orthogonal projections why is it true that the orthogonal projection onto $p(H) \cap q(H)$ is the strong operator limit of $(pq)^n$ ?


in classical physics frequency represents how many cycles in one unit time, but I do not know how we define a frequency for a particle? what does it mean for a particle to have a frequency, the book I read it from just says Energy is proportional to the frequency of the photon but where is frequency?


Writing Java nested if statement for Excel nested if statement?

I am trying to convert an excel nested IF statement into code language, but I am not sure if I am doing it correctly and was hoping I could get some help  Here is the excel statement :  =IF(D3="Feather",IF(OR(I3>1000,R3="n/a"),"",IF(W3="F","F",IF(AND(I3<=1000,R3>8),"F","P"))),"")   My code :  if( D3 == "Feature"){    if (I3>1000 || R3 =="n/a") {     } else if (W3=="F"){        "F"      } else if( I3<=1000 && R3>8){        "F"    } else {        "P"    } }   Thank you


Short story about human life on Venus; girl locked in cupboard during seven-yearly hour of sunlight

In this short story, (I remember I read it a few years ago) a little girl was sent to live on Venus by her parents, where everyone has to live inside a building and there's only sun there for one hour every a certain amount of years (I think 7 or 12 years). The other children in the school at that settlement become jealous of her, and when the sun comes out - the number one thing she loves, the sun - they lock her in a closet and forget about her as they enjoy the sunshine. Then they remember after the sun has gone and let her out, and that's where the short story ends.  I don't remember who wrote it, but if anyone knows this story please help me identify it!


Kerbal Space Program - Can I transfer Parts to another in-orbit vessel?

I have a few satellites and stations orbiting my planets, but I'd like to add onto them. I've seen numerous videos on using docking clamps to attach my new ship to the existing station, but can I do that on a part-by-part basis? For example, I take an extra fuel tank up there, can I attach just the tank to my station, then send my vessel back to Kerbin? I'm not talking about refueling, but rather transferring individual parts from my ship to the station in orbit.  I'd prefer to not have to use an unmanned probe and jettison everything but the desired part in space after docking if possible, but if that's the only way I guess I don't have a choice.


Up to now I don't understand well what \null actually is and when we need it. I have only known that it can be used to create hypothetical anchors as follows.  \documentclass{article} \usepackage[a6paper,margin=2cm]{geometry} \parindent=0pt  \begin{document} \hfill xport \hfill\null\\ \null\hrulefill{} never \hrulefill\par \hrulefill{} dies. \hrulefill\par \hfill really? \hfill\null\par   \newpage \null \vfill \hfill The End \hfill\null \end{document}    What is \null and when do we need to use it? Why do \hrulefill and \hfill need starting \null when they follow \\ but not need \null when they follow \par? Why does \hfill always need ending \null but \hrulefill not need it?


Awk: if pattern not found add some text at the end of file

Using awk, how we can add text at the bottom, only if a certain pattern was not found in the file?    This is not working:    awk '{if ($0 !~ /pattern/) {print}; END {print "someText"}}' file   The file is small, less than 1MB.


Particle spin as evidence of space-time torsion

Why cannot we say that spin of "fundamental" particles is exactly an evidence or "proof" of space-time torsion?  Remark: spin is generally a source of torsion when gravity couples to fermions, so...Why can not be said spin is torsion in disguise?


Desktop entry, or other convinent but safe way to exec multiple statements,

I'm running Gnome on Ubuntu 15.4.  I want to execute two or more actions at once, but let's try with two:   sudo pm-suspend gnome-screensaver-command -l   pm-suspend has been added and allowed to be executed without providing passwords by specifying:  %sudo ALL = (root) NOPASSWD: /usr/sbin/pm-suspend`   , and  have no references if having multiple Exec is possible, but unfortunately:  [Desktop Entry] _Name=Sleep and logout _GenericName=Sleep and logout  #Exec=gnome-screensaver-command -l & sudo pm-suspend # does not work  #Exec=gnome-screensaver-command -l #Exec=sudo pm-suspend                                # does not work either  Terminal=false Type=Application Categories=System;Security;   I'm open to any other suggestions how to achieve given functionality except:   make a script and run it as sudo or similar - I consider solutions basing on this insecure, let's not delve into that matter   use gnome power switch or whatever that is called (top right corner) - mine does not have an option to suspend   also, while I'd be happy to have that what is stated above, I'd be even more happy to have an answers that say how to launch multiple different commands (without script/compiling own binary etc), in case I'd like to bundle and automate some other actions.


Will Moore's Law be no longer effective once quantum computers are created?

Moore's law states that computer power doubles in every 18 months (more formally: "the number of transistors in a dense integrated circuit doubles about every two years."). Statistics suggest that this observation should be correct, but aren't quantum computers much more powerful than just double-powered classical computers? More interesting question is, is there even a way to improve the power of quantum computers?


Can't SSH into Raspberry Pi after changing permissions

sudo chmod -R 777 / was entered in an attempt to regain access to directories that were previously accessible, but this caused the SSH connection to be closed and now can no longer be reconnected.  A "Login failed." error is displayed.  The Pi can still be accessed directly.  Any use of sudo returns sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set  How can this be reversed?  What did the permission changes do to cause this?


If the Agents wanted Morpheus over Neo then why only use three agents?

I have seen the Matrix movies over and over almost knowing every word off by heart. But the one thing that perplexes me is why the Agents (Smith etc) once they captured Morpheus, not send in more Agents to protect him from being rescued by Neo and Trinity? They must have known Neo would have tried to rescue him.  Besides, Neo is "part" of the puzzle to balance the Matrix right? So killing Neo is out of the question. I believe Agent Smith could have done that from the first movie when they fought in the subway - if he was allowed to (he was still connected to the machines). Smith simply has the skills preprogrammed into him by the machines. Neo only recently had the training given to him.  I am convinced that they needed Neo to fulfill the "prophecy" but they could not kill Morpheus just yet, or at least until Neo has completed his mission to bring order back into The Matrix. This is why they only used "loose" security around Morpheus. Otherwise they would have killed him the moment they captured him.  Furthermore, I also think they wanted Morpheus to gain access to another machine or machine world. I suspect the hard-drives in Zion were the keys to those other 'worlds'. The movies were set in a time when machines were at war with other machines, I think. Zion and humans were like hippies, more a distraction than a threat. But Morpheus, he was numero uno! He had the access codes, the knowledge, etc everything into the 'other' machines or another Matrix if you will.  I do not believe they wanted the codes to break into Zion itself, as they've done that 'very well in the past ... Many times'. So my question is, if Morpheus was THAT important to the machines, then why only the weak security once captured? And I do not believe they were over resourced. Come on, the machines can turn any "human" into an Agent.


How do I tell Google to ignore an entire fourth level wildcard subdomain with several sites?

I have multiple servers which host several sites, some of them being QA environments.  Unfortunately, Google has found its way to some of them, and it is displaying results which are in fact competing with the corresponding live site URLs, for multiple sites.  Is there a way I can tell google, via analytics or something similar, to simply delist all of the existing information for subdomains *.a.example.tld or *.b.example.tld?


Is Stack Exchange staff removing GoFundMe links?

According to ,     Stack Exchange staff will actively remove links to a legal fund campaign from user profiles, posts, and comments   Yet browsing around Meta Stack Exchange, I still see some links to said campaign in user profiles and posts. For the sake of transparency: is the removal actually happening? How often does it happen?


I'm currently playing as a Lizardfolk Warlock (Dungeons & Dragons 5E) and my character started with two daggers. Is there anyway to simultaneously attack with them while in combat? If I were to dual-wield them, how should I proceed?


I just downloaded the new Android app (version 1.0.2) and every question and answer consistently just shows up as a black box (excepting where there's a link) on my Sprint LG Mach. I see  complaining about this same issue in early betas--but that was four months ago. Has any progress been made on determining the cause of this bug or resolving it? Is the app open source so us community members can help solve bugs? This app looks absolutely fantastic, but completely useless if you can't read the answers because you have black text on a black background


Evaluate the product $\prod_{n=2}^\infty ( 1 + \frac{1}{n^2} + \frac{1}{n^4} + \frac{1}{n^6}+\cdots)$

Evaluate  the product $$\prod_{n=2}^\infty ( 1 + \frac{1}{n^2} + \frac{1}{n^4} + \frac{1}{n^6}+\cdots)$$ My attempt :$$y=\prod_{n=2}^\infty ( 1 + \frac{1}{n^2} + \frac{1}{n^4} + \frac{1}{n^6}+\cdots)$$ Taking log both  side , we get $$ \log y=\log \prod_{n=2}^\infty ( 1 + \frac{1}{n^2} + \frac{1}{n^4} + \frac{1}{n^6}+\cdots)=\log \prod_{n=2}^\infty \sum_0^\infty \frac{1}{n^2} = \log \prod_{n=2}^\infty \frac{\pi^2}{6}$$ $$\implies y=e^{\log \prod_{n=2}^\infty \frac{\pi^2}{6}}$$ After that im not able proceed further


What would be the differences between a persistent USB Live Session and a installed Ubuntu in a USB drive?

I'm a teacher and will ask my students to either bring their laptops with Ubuntu installed with an specific list of packages preinstalled or bring a USB Drive or External Hard Drive with Ubuntu and the packages preinstalled.  For those who are going to bring the USB are two posibilities:   Install with the Ubuntu's "Startup disk creator" program, and telling it to reserve some space for persistence. Boot with a LiveCD and Install Ubuntu in the USB drive.   Then, in either case, boot with that media and install the packages.  So, for my purpose or any other purpose:   What is the best choice and why? Do we have another option? full explanation please.


Show that $M=\bigcap_{\mathfrak{p}\in\operatorname{Spec}(R)}M_\mathfrak{p}=\bigcap_{\mathfrak{m}\in\text{Max}(R)}M_\mathfrak{m}$ for certain $M$.

$\newcommand{\Spec}{\operatorname{Spec}}$ $\newcommand{\mSpec}{\operatorname{Max}}$  This is a homework from my algebra course. I am in a situation where I think I have found a solution, though somehow there's a condition in the question that I don't need.     Important: I don't want help on the problem itself, I just want to know what's wrong with my proof!   Exercise: Let $R$ be an integral domain with quotient field $K$. Let $M \subset K$ be an $R$-submodule of $K$. Then for each prime ideal $\mathfrak{p} \subset R$ we can regard $M_\mathfrak{p} \subset K$.  Show that $M = \bigcap_{\mathfrak{p} \in \Spec(R)} M_\mathfrak{p} = \bigcap_{\mathfrak{m} \in \mSpec(R)} M_\mathfrak{m}$  as $R$-submodules of $K$.  My proof: the inclusions from left to right are obvious (since $R$ is an integral domain and $M$ is torsionfree the inclusion $M \rightarrow M_\mathfrak{a}$, $a \mapsto \frac{a}{1}$ is injective, so $M$ can be seen as an $R$-submodule of any of the $M_\mathfrak{p}$. The inclusion $\bigcap_{\mathfrak{p} \in \Spec(R)} M_\mathfrak{p} \subset \bigcap_{\mathfrak{m} \in \mSpec(R)} M_\mathfrak{m}$ is always trivial.  Now for the inclusion $\bigcap_{\mathfrak{m} \in \mSpec(R)} M_\mathfrak{m} \subset M$:  Let $\frac{1}{s} \cdot m \in \bigcap_{\mathfrak{m} \in \mSpec(R)} M_\mathfrak{m} \Rightarrow \forall \mathfrak{m} \in \mSpec(R): \frac{1}{s} \cdot m \in M_\mathfrak{m} \Rightarrow \forall \mathfrak{m} \in \max(R): s \notin \mathfrak{m}$.  Therefore $s$ is a unit in $R$ and $\frac{1}{s} \cdot m = s^{-1} \cdot m \in M$.  However, I don't see where my proof uses the fact that $M$ is a submodule of $K$ (torsionfree and integral domain would be enough). This confuses me a bit, so I am afraid to have made a mistake. It would be nice if someone could check this solution and tell me what I have done wrong, because right now I seem to be blind. Thanks a lot.  Edit: I've just realized that all the $M_\mathfrak{p}$ must be submodules of some module $P$ for the $\bigcap$ to be defined. But is this really all the problem?


Why does the checkbox stay checked when reloading the page?

I'm reloading a web page that has the following code:  Show Image <input id="showimage" name="showimage" type="checkbox" value="1" />   Even though the HTML stays sent to the browser is the same for each reload of the page, the checkbox always takes on the checked value when a reload was performed.  In other words, if the user checks the checkbox and reloads, the checkbox is still checked.  Is there some caching going on here?    Edit: I tried Gordon Bell's solution below and find that this is still happening even after removing the value="1".  Anything else I might be missing?  Show Image  <input id="showimage" name="showimage" type="checkbox" />


Computing $\operatorname{ad}_x$ where $\operatorname{ad}$ is the adjoint representation

Let $\operatorname{ad}_x:L\rightarrow GL(L)$ be the adjoint representation. In Humphreys "Introduction the Lie-Algebras and representation theory" one can find  where $x,y$ and $h$ are defined . (The first picture can be find on page 6 and the second one on page 22).  I would like to understand how one can compute $\operatorname{ad}_x$. Hopefully someone can help me :)


Prove by induction that all coins greater than or equal to 8p can be made using 3 pence and 5 pence coins .

Prove by induction that all coins greater than or equal to 8 pence  can be made using 3 pence and 5 pence coins .  Here is my thought : I looked at Z+ greater than 8 ... I considered multiples of 3(equivalent to using 3p coins with repetitions) and considered multiples of 5. Rest of them were mostly primes where I had to combine both 3 and 5 .  And I noticed that 3 and 5 are in the form of 4k+1 and 4k-1.  I would appreciate any information . Thanks


Better software for business forecasting?

I'd like to know what software provides better performance in business forecasting for thousands of SKU. Here the data is taken through databases.   I know three alternatives:   Autobox SAS Forecast PRO   I'm looking for an option that can forecast every SKU automatically, given an error measure (preferably MAE).  I can't find a comparison for these sofware with the same data. What do you know about the performance of them?


Can anyone explain when and how to use << operator for input redirection? I've googled enough but couldn't find.


Why doesn't the aperture change on a Nikon AF 50mm ƒ/1.8D lens?

I am facing problem with a Nikon AF 50mm ƒ/1.8 lens which is attached to a Nikon D7100. Although I can change the aperture from the camera (in M mode) it seems that it is not changing in photos. What I mean:  The aperture is locked in ƒ/22 and I am able to select all values (1.8 – 22) from the camera switch. The problem is that in every shoot the photos have exactly the same aperture, ignoring my initial selection in camera. Unfortunately I don't know which is the selected one. If I check the info of each photo I can see the ƒ-number that was selected; however, taking photos from 1.8 to 22 (in the same light conditions and without to change ISO or shutter), all photos appear the same! Which means that the aperture is not changed!  If I select the Auto mode I can see the aperture that the camera selects however, my photos are overexposed, which means that something is going wrong with the aperture selection.  Can anyone help about what to check in this lens? All other lens are working properly so I don't expect problems in camera.


Using Fermat's Little Theorem Prove if $p$ is prime, prove $1^p + 2^p + 3^p +...+(p-1)^p \equiv 0 \bmod{p}$

Using Fermat's Theorem prove if $p$ is prime, prove $1^p + 2^p + 3^p +...+(p-1)^p \equiv 0 \bmod{p}$  The two definitions of Fermat's Little Theorem is $a^p \equiv a \bmod{p}$ and $a^{p-1} \equiv 1 \bmod{p}$ but I don't know how to use this solve the problem


What are theta, phi and lambda in cu1(theta, ctl, tgt) and cu3(theta, phi, lam, ctl, tgt)? What are the rotation matrices being used?

I was reading the documentation for  and came across the functions cu1(theta, ctl, tgt) and cu3(theta, phi, lam, ctl, tgt). Looking at the names they seem to be controlled rotations. ctrl represents the controlled qubit and tgt represents the target qubit. However, what are theta, lambda and phi? They're rotations about which axes? Also, which rotation matrices are being used for cu1 and cu3?


Get every classes that implements an interface in a package in java dynamically

I have few classes in a package, that all implement the same interface. I'd like to get all these classes dynamically, to execute a method.  Is that possible in java? If not, how can i do something similar.  Should i use reflection?   Thanks


From the Nikon site,  [but the same caveat is on all 3 Teleconverters]     Compatible with AF-S and AF-I NIKKOR lenses except AF-S 17-35mm f/2.8D   IF-ED, 24-85mm f/3.5-4.5G IF-ED, VR 24-120mm f/3.5-5.6G IF-ED, 28-70mm   f/2.8D IF-ED and DX NIKKOR lenses.   Am I reading that correctly? No DX lenses are supported.    I'm somewhat disappointed that not only the lens I'm selling, the 24-120, isn't compatible, but also the one I've just replaced it with... a DX, isn't either.  I assume there's some sound reason for this - would anyone know what that is & what the penalty would be for ignoring the caveat?  I currently use a Nikon D5500 if that is relevant.