Can anyone tell me why $$1/2+\cos x+\cos 2x+\cdots+\cos nx=\frac{\sin((n+1/2)x)}{2\sin (x/2)}\text{ ?}$$


What happened to Loki after he fell from the bridge in Asgard (Thor, 2011)?

After Loki fell from the crystal bridge in Asgard..    in the post-credits of Thor (2011), he was seen in the mirror, apparently possessing Dr. Selvig to gain information on the Tesseract..    The question is where did Loki end up falling?


I am using my email address rather than profile name but it isn't working...I thought that maybe I was using the wrong password, so I changed it, but it still isn't working.  I don't know why.   My internet connection is great.  If there is anything I am doing wrong please let me know. I have had my account for less than a month and I am very irritated.  Is it possible there is an error on Mojang's side??


Regarding drawing phase boundaries on syntactic trees

My tree requires a phase boundary across the vP. However, getting a curved line to mark a phase boundary has become a cumbersome job. If I can get a code that helps me do that it would be really useful.


getting alfa awus036ach to work on my pc

I have searched everywhere for this, but I just cant find a solution to it. I am tryint to set up a alfa awus036ach on kubuntu. I have a wifi card in my pc (dont know if its affecting it) but whenver I pull a iwconfig, whether its plugged in or not, It just doesnt show up. I have tried installing drivers to solve the issue, but I am new to ubuntu (and linux in general) and have been having a hard time getting it to work. someone please help. Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 Device 002: ID 062a:5918 MosArt Semiconductor Corp. 2.4G Keyboard Mouse Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 003: ID 0b05:18f3 ASUSTek Computer, Inc. AURA LED Controller Bus 005 Device 002: ID 8087:0029 Intel Corp.  Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 003: ID 2516:0051 Cooler Master Co., Ltd. AMD SR4 lamplight Control Bus 003 Device 008: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 003 Device 002: ID 1a2c:2124 China Resource Semico Co., Ltd USB Keyboard Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  T:  Bus=03 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#=  4 Spd=480 MxCh= 0 D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1 P:  Vendor=0bda ProdID=8812 Rev=00.00 S:  Manufacturer=Realtek S:  Product=802.11n NIC S:  SerialNumber=123456 C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I:  If#=0x0 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)      8192cu, 1.11: added rtl8812au, 4.3.8.12175.20140902+dfsg, 5.4.0-60-generic, x86_64: installed      SecureBoot disabled Platform is in Setup Mode


Is there a way to "unminimize" a window from the terminal?

I'm making a small GUI extension, one of the things with which it struggles however are minimized windows (I do a lot of window moving via wmctrl). I heard that it is impossible to minimize windows with wmctrl (which it probably should be), so I assume that "un-minimizing" would be impossible as well, still worth the ask though.


Non-dot-wildcard (*-foo.example.com) for bind?

It seems there's no way to tell bind that *-foo.example.com should resolve to eg. 10.1.2.3, while *-bar.example.com resolves to 10.2.3.4. Is there any workaround? Can some names eg. resolve with an external program? Or should I change bind to eg. ?  I'm trying to avoid buying another SSL wildcard cert. (With wildcard certs, such as *.example.com, it's not possible to allow dots in the * part.)  Specifying all *-foo or *-bar names in the zone file is not an option, since I need to be able to create both type of addresses on the fly.


"Cancellation", "Canceled", "Canceling" — US usage

I'm trying to figure out if there is a specific rule behind the word "cancel" that would cause "cancellation" to have two L's, but "canceled" and "canceling" to have only one (in the US).    I understand the rules are very loose when it comes to double L's in English, and I have read several posts on here talking about "canceled" and "canceling" (vs "cancelled" and "cancelling"), but my specific question is more about the spelling of "cancellation".    - they do NOT mention cancelation with one "L"  - they do seem to have cancelation listed with one "L" Microsoft Word marks "cancelation" as an invalid word Same with the spell checker in Firefox   So my question is: is there a reason or rule why in US English, "cancellation" seems to have two L's (to most dictionaries), while "canceled" and "canceling" does not?


Suppose I have the following class:  class Dummy {     public static Dictionary<int, int> dict = new Dictionary<int, int>();  // (1)      static Dummy()   // (2)     {         dict.Add(1, 100);         dict.Add(2, 200);     }         }   This type will be accessed by multiple threads. When will the (1) and (2) be executed? Will they be executed for each thread? Is it possible that a key duplication exception will occur?


What will be the word order in converting this to reported speech?

We need to convert the following to reported speech:     Why have you taken a room on the tenth floor?   I am confused about the word order.  Should it be     He asked her why she had taken a room on the tenth floor.    or     He asked her why had she taken a room on the tenth floor.   or neither? Why?  I suppose since we convert an interrogative sentence into a declarative one (on conversion to reported speech), the correct one would be the first. However, the it doesn't 'sound' right. And English is not lacking in exceptions.


I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts?


Someone stole my phone today so I went and got a "new" older phone.  An iPhone 5.  It came with iOS 10.1.1 installed and I was wondering if there is a jailbreak for this?  I've been looking on Google and have tried a few different methods but they all seem to be fake and only install a "Cydia demo".    Can anyone point me towards finding a legitimate jailbreak or is non available?


null object reference when creating list tab on android

I try to create swipe tabs view. But got an error within my code.   Here is my code:   protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_third);      mAdapter = new MyPagerAdapter(getSupportFragmentManager());      mToolbar = (Toolbar) findViewById(R.id.app_bar);     setSupportActionBar(mToolbar);      mTabLayout = (TabLayout) findViewById(R.id.tab_layout);     mPager = (ViewPager) findViewById(R.id.pager);     mPager.setAdapter(mAdapter);     mTabLayout.setTabsFromPagerAdapter(mAdapter);     mTabLayout.setupWithViewPager(mPager);     mPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(mTabLayout)); }  public static class MyFragment extends Fragment {     public static final String ARG_PAGE = "arg_page";      public MyFragment() {      }      public static MyFragment newInstance(int pageNumber) {         MyFragment myFragment = new MyFragment();         Bundle arguments = new Bundle();         arguments.putInt(ARG_PAGE, pageNumber);         myFragment.setArguments(arguments);         return myFragment;     }      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {         Bundle arguments = getArguments();         int pageNumber = arguments.getInt(ARG_PAGE);         TextView myText = new TextView(getActivity());         myText.setText("Hello, " + pageNumber);         myText.setGravity(Gravity.CENTER);         return myText;      } }  public class MyPagerAdapter extends FragmentStatePagerAdapter {     public MyPagerAdapter(FragmentManager fm) {         super(fm);     }      public Fragment getItem(int position) {         ThirdActivity.MyFragment myFragment = new ThirdActivity.MyFragment();         return myFragment;     }      @Override     public int getCount() {         return 10;     }      @Override     public CharSequence getPageTitle(int position) {         return "Tab" + position;     } }   I can't find how to fix it. the error is on line 85:   int pageNumber = arguments.getInt(ARG_PAGE);   Any suggestion? What should i add so it can work properly.  I've read this link         but can't get it why my code can return null. when i read the code it should return the value.   arguments.putInt(ARG_PAGE, pageNumber);   and i take the arg_page number. so the value should be there.  Thanks


I'm having this error java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

How to solve this error? My app is not running


Using wilcox.test() and t.test() in R yielding to different p-values

I would like to test wether there's a significant difference in the mean between this two samples:  withincollaraccuracyknn<-c(0.960, 0.993,0.975,0.967,0.968,0.948) withincollaraccuracytree<-c(0.953,0.947,0.897,0.943,0.933,0.879)   The data is normally distributed as you can see after running a Shapiro-Wilk test:  > sh<-c(0.960,0.993,0.975,0.967,0.968,0.948,0.953,0.947,0.897,0.943,0.933,0.879) > shapiro.test(sh)      Shapiro-Wilk normality test  data:  sh W = 0.91711, p-value = 0.2628   However, using t.test() or wilcox.test() yield different p-values:  > t.test(withincollaraccuracyknn,withincollaraccuracytree)      Welch Two Sample t-test  data:  withincollaraccuracyknn and withincollaraccuracytree t = 3.1336, df = 7.3505, p-value = 0.01552 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:  0.01090532 0.07542802 sample estimates: mean of x mean of y  0.9685000 0.9253333   > wilcox.test(withincollaraccuracyknn,withincollaraccuracytree)      Wilcoxon rank sum test  data:  withincollaraccuracyknn and withincollaraccuracytree W = 35, p-value = 0.004329 alternative hypothesis: true location shift is not equal to 0   Could somebody please let me know why? On the Wikipedia page of Mann-Whitney U test, it is stated: "It is nearly as efficient as the t-test on normal distributions".  Note also a Warning when the data is not normally distributed:  > withincollarprecisionknn<-c(0.985,0.995,0.962,1,0.982,0.990) > withincollarprecisiontree<-c(1,0.889,0.96,0.953,0.926,0.833) >  > sh<-c(0.985,0.995,0.962,1,0.982,0.990,1,0.889,0.96,0.953,0.926,0.833) >  > shapiro.test(sh)      Shapiro-Wilk normality test  data:  sh W = 0.82062, p-value = 0.01623  >  >  > wilcox.test(withincollarprecisionknn,withincollarprecisiontree)      Wilcoxon rank sum test with continuity correction  data:  withincollarprecisionknn and withincollarprecisiontree W = 30.5, p-value = 0.05424 alternative hypothesis: true location shift is not equal to 0  Warning message: In wilcox.test.default(withincollarprecisionknn, withincollarprecisiontree) :   cannot compute exact p-value with ties   Any help is appreciated. Note that I need to run similar analysis for other datasets having not normally distributed data, so using wilcox.test() instead of t.test() would be an advantage!


Prove that $\lim_{x \to +\infty} \frac{f(x)}{x} = L$ if $\lim_{x \to +\infty} [f(x+1) - f(x)] = L \space$

Let $f:[0, +\infty) \rightarrow \mathbb{R} $ be a bounded function in each bounded interval. If $$\lim_{x \to +\infty} [f(x+1) - f(x)] = L$$ then $$\lim_{x \to +\infty} \frac{f(x)}{x} = L$$   I tried using the definition on the first limit; then, I attempted to use that inequality to apply the triangular inequality to arrive at the definition that gives me the second limit. It is supposed to be simple, but I'm not feeling safe as in how I should write it.


I've been trying to add to the Y coordinate after randomizing the X coordinate of some lines. It's giving me this error:  Exception in thread "Thread-0" java.lang.NullPointerException at uy.com.vincent.map.Background.tick(Background.java:24) at uy.com.vincent.Game.tick(Game.java:40) at uy.com.vincent.Game.run(Game.java:90) at java.lang.Thread.run(Unknown Source)   Code:  private int lineX[] = new int[50]; private int lineY[] = new int[50]; private Game game;  public Background(Game game) {     for(int i = 0; i < lineX.length; i++) {         lineX[i] = getRandom(game.getCanvas().getWidth());         lineY[i] = 0;     } }  public void tick() {     for(int i = 0; i < lineX.length; i++) {         if(lineY[i] >= game.getCanvas().getHeight() + 100) { // Line 24             lineX[i] = getRandom(game.getCanvas().getWidth());              lineY[i] = 0;         }         lineY[i] += 1;     } }  public int getRandom(int max) {     Random random = new Random();     int generatedRandom = random.nextInt(max + 1);     return generatedRandom; }   I'm sorry if the solution is obvious. I'm still learning.


public static void main(String[] args)     {         final int ELEMENTS = 13;         //int[] array = new int[ELEMENTS];         char[] array1 = new char[ELEMENTS];         printWord(array1);      }      public static void printWord(char[] array)     {         Random random = new Random();         int[] letters = new int[array.length];         for(int index = 0; index < array.length; index++)         {             letters[index] = random.nextInt(122)+97;             System.out.println(letters[index]);          }         System.exit(0);     }   My problem occurs within the method printword(). When it assigns a random integer to letters in the for loop the random method adds the 97 to the 122 instead of having a random number between 97-122.  Question: I've always constructed my random method this way, and now its not working why? Can you help me with an alternative?


Is there an official New York City architecture tour?

Every time I visit Chicago, I love taking one of the . These tours are excellent, run by enthusiasts, and take different forms. There are walking tours, an excellent riverboat tour, and several other options, as well. By far, it's the single best sightseeing tour of Chicago I've ever had.  Is there a New York City equivalent? I am having zero luck after a year, on and off, of searching. Short of buying a camera strap and a tour book, is there some sort of official architecture society tour that a sightseer or recent transplant could take of New York City? So far, I've found found food tours -- which, while awesome, aren't quite what I'm looking for.


Sum of two independent Student t variables with same dof is t distributed?

suggests that the sum of two t-distributions is never t distributed.   With t distribution I mean the (non-standardized) t distribution with location and scale parameter.  Now, let $Y_1,Y_2$ be independently t distributed with same dof $\nu$, location $\mu$ and scale $\sigma$.  Then the sum is given by $X = Y_1+Y_2 = (\mu+\sqrt{\nu/V}\sigma Z_1) + (\mu+\sqrt{\nu/V}\sigma Z_2)$, where $V$ is $\chi^2$ distributed with $\nu$ degrees of freedom and $Z_1,Z_2\stackrel{iid}{\sim}N(0,1)$. Since the sum of two independent $N(0,1)$ is $N(0,2)$, it follows that $X = 2\mu+\sqrt{\nu/V}\sqrt{2}{\sigma}Z$, where $Z\sim N(0,1)$. Thus $X$ is t distributed with unchanged dof, twice the location and new scale $\sqrt{2}\sigma$.   So am I missing something?


Find limit of a random variable: $\lim_\limits{s\to\infty} s^n P(|Y| > s)$.

$Y$ is a random variable such that ${E[|Y|^n]}<\infty$ for $n>0$.  Find $\lim_\limits{s\to\infty} s^n P(|Y| > s)$.  The answer key gives the answer $0$ without any explanation. I would assume this involves the use of Cauchy-Schwarz inequality and the fact that $E[Y^p]=\int p \, t^{p-1} \, S_x \,\mathrm{d}t$, $S_x$ being the survivor function. Any help would be appreciated thanks.


Attempt to invoke virtual method on a null object reference when invoking textview html code from string.xml file

I am going to add HTML code in each time in the textview, for that I have written my paragraph in my string.xml file and taken that every thing to story.java file, then I added one textview to show that text.  I don't know if it will work or not. So,first of all Is this a correct logic? If correct then,  I am getting Null pointer error.  Please give solution to solve this.  This is my Story.java file.  @SuppressWarnings("deprecation") public class story extends AppCompatActivity { Button next; Button prev; TextView t; int count=0; int[] stories = {         R.string.firststory,         R.string.story2,         R.string.story3,         R.string.story4,         R.string.story5,         R.string.story6,         R.string.story7,         R.string.story8,         R.string.story9,         R.string.story10, }; @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.story);      next = (Button) this.findViewById(R.id.next);     prev = (Button) this.findViewById(R.id.prev);     t = (TextView) this.findViewById(R.id.textview);     t.setText(Html.fromHtml(getString(stories[0])));     next.setOnClickListener(new View.OnClickListener() {         public void onClick(View v) {             // Perform action on click             count=count+1;             if(count<=10) {                 t.setText(Html.fromHtml(getString(stories[count])));             }             else             {                 Toast toast=Toast.makeText(getApplicationContext(),"This is Last story",Toast.LENGTH_SHORT);             }         }     });     prev.setOnClickListener(new View.OnClickListener() {         public void onClick(View v) {             // Perform action on click             count=count-1;             if(count>=0)             {             t.setText(Html.fromHtml(getString(stories[count])));             }             else{                 Toast toast=Toast.makeText(getApplicationContext(),"This is first story",Toast.LENGTH_SHORT);             }         }     }); } }   And this is my story.xml file  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">  <TextView     android:text="TextView"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:id="@+id/textView2" />  <Button     android:text="previous"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/prev"     android:layout_alignParentBottom="true"     android:layout_alignParentLeft="true"     android:layout_alignParentStart="true" />  <Button     android:text="next"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/next"     android:layout_alignParentRight="true"     android:layout_alignParentEnd="true"     android:layout_alignParentBottom="true" />  </RelativeLayout>


JQuery animate() doesnt work with my usage while css() works fine

My JQuery: //script.js  $(document).ready( function() { $(".image").bind('mouseenter',  function() {     $(this).stop().animate(     {         backgroundColor: "blue"     },     {         queue:false,         duration:300,         easing: "swing"     }); }); $(".image").bind('mouseleave',  function() {     $(this).stop().animate(     {          backgroundColor: "green"     },     {         queue:false,         duration:300,         easing: "swing"     }); }); });   HTML: //index.html  <!DOCTYPE html>       <link rel="stylesheet" type="text/css" href="stylesheet.css"></link>

     CSS: //stylesheet.css  body { background-image: url("background.jpg"); margin:0 auto; padding:0; } .image { background-color: green; width: 100px; height: 100px;  }   Nothing happens with the div, but if I try it with css() it works! How can I fix this? Everything gets called correctly, even some stuff after animate() (I added an alert() to check lol) so I have no clue why...


On ask.fedoraproject.org I click on Sign in, then enter the OpenID address  and click on Sign in. I am redirected to  where I enter my username and password for stackexchange (this is the account, so credentials are okay) and after clicking Sign in, this site shows the message:     An error occurred on the server This event has been recorded.      If you believe you encountered this message in error, please report it   This is for months now. On Fedora 64bit Firefox 31 and Chrome.


Wrong characters when using a dictionary

I am trying to make user-editable text in Python by using a config that can be easily edited. When I retrieve "Español" from my dictionary it instead returns "EspaÃ±ol". config.ini [text] language_english = English language_spanish = Español  from configparser import ConfigParser cfg = ConfigParser() cfg.read('config.ini')  print(cfg.get('text', 'language_spanish'))  returns:  EspaÃ±ol


Script or Command Line for enabling/disabling touch pad

Is it possible for someone to help me out with my problem ?  I would like to know whether it is possible to enable/disable touch pad using command line or via scripting ?


What are good automated testing resources?

As a Beginner, i am performing Manual Testing very well.   But when it comes to automated testing, I have struggled somewhat. I have used Load Runner fairly well. i am trying to learn more about using Selenium which seems very popular.   how to be excellent in automated testing?    I tried selenium, but have had some difficulties in checking conditions.  How can i improve my abilities as an automation tester? Is there an easier tools or approach I could use?


In the Philippine Grading System, my GWA is 1.6250, is there any chance to know the standing of this grade in the UK GRADING SYSTEM?


I want to set up a macro in TeXstudio for math mode which displays $*$ and places the cursor at position *. So far I have tried using $%|$ but upon triggering, this macro does not allow text insertion at the placeholder.  EDIT: The method above works fine if the macro shortcut is set to the default Shift+F1. However, changing the shortcut to another combination, as I would like to do, seems to be the cause of the problem.


What happens if you use a drone to build a building while he's carrying minerals?

Kind of a basic question, but what happens? Do you lose it? Does it count as harvested?  In a similar fashion, what happens when a drone/scv/probe goes harvesting gas when he's holding a mineral?


How to fix “LaTeX Error: File `beamerbasemodes.sty' not found”?

I am using MikTeX 2.9 on Windows 10 64-bit with texmaker. When I tried to compile a beamer presentation, I get a dialog window like this   I select "Install" and then get the following error:  ! LaTeX Error: File `beamerbasemodes.sty' not found.Type X to quit or  to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.  What can I do to solve this problem? Thanks in advance.


How does Spider-Man's "sticky" powers work? If his ability to climb walls works in the same way as spiders and most other insects (e.g. due to ) then his hand should have microhairs or thorn-like structures as shown in 2002 Spider-Man movie, which means he should not be able to climb walls while wearing his gloves since those structures can't pierce through gloves.  If the thorny structures are sharp enough to pierce through his clothes then how does he use his hands (like giving handshake to other people) without hurting them?


I would swear that we have had this conversation already.    I have two questions regarding the sentence above:    Can it be put just "I swear" instead of "I would swear". What is the difference? If they had the conversation already, why "we have had" not "we had"?


Why would a bot submit a sign up form with fake info?

I have a sign up form where people can enter their name and address, then click on a submit button.  However I am getting BOTs entering sign up details and submitting the form - or at least I presume it is a BOT, the user agent is "Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1" which seems ok, but the name is something like "5914f968f3ea6" and they did not confirm their email address immediately (I deleted the accounts when I noticed this, so it is now too late to confirm their email address on the off chance they are a real person).  I have had 4 BOT entries, so I was just wondering ... why would anyone have a BOT that submits fake sign ups?


If I travel almost side by side with light, how fast does light go near me?

If I travel almost side by side with light, and my speed is lets say 99% of speed of light..would I see the light going near me at the speed of light (i mean as same as when i would not be moving, when i would be stationary) or would i be able to actually see it going besides me?


I have a dynamic PHP table (tableData.php) that I need to import onto my main page (index.php). I'm using jQuery .load() to import the data, and that's working fine. The table is appended to the div that I want it in.  $(document).ready(function () {    $("#newTable").load("tableData.php");   Once tableData.php is rendered on my main page, I then need to then do things with that table. So if a user clicks on a < TD >, certain functions fire.   $('td').on('click', (this), function() { var time = $(this).closest("table").attr("id");   The problem is that .load() isn't sending the HTML elements to my main page so jQuery isn't recognizing that a < TD > has been clicked. Viewing the page source, it just shows an empty div where the new table sits. If I use      < ? php include 'tableData.php'; ?> it works great, but I want this table to render after the page has loaded.   My question is, is there a way to copy the actual HTML of one page into another page? Right now it seems that I just have a shallow copy, when I need a deep copy.


How to Iterate through Bands of Raster using ArcGIS 10.1 ModelBuilder?

I have a large number of rasters with 3 bands (R,G,B). What I want to do is add all 3 bands of each raster together to end up with a single band image with the summed R,G,B values in each pixel but I'm not sure how to do this in ModelBuilder. Do I have to somehow split each raster first, then add each one?  How would I iterate through each band of every raster?  Edit:Basically this is what I have so far. Right now it will take 3 bands of 1 raster and add the bands then go on to create a polygon of a certain reclassed area. I want to do this on a large number of rasters but am unsure of how to make it work.


Is ubuntu supports on Lenovo g5070 and how to install...?


Display notification when the question you are answering is voted as dupe

It'll be nice if a notification is displayed when you're writing an answer to a question and someone else votes it as a dupe. Today, I answered a question and when I submitted, I noticed that it's being voted as an exact duplicate. It was indeed a duplicate so I deleted my answer and voted as a dupe. It would be nice to have notifications like the one that says "2 new answers added to the question" for duplicate votes and closing too.


I'm trying to optimise my code and when I try to use a loop-invariant I get a segfault for a reason that I can't find. This my function: #include "kernel.h"  double baseline(unsigned n, double** a, double* b){      unsigned i,j;     double k;     double s=0.0;      for(j=0; j<n;j++)         k = b[j];         for(i=0;i<n; i++)             s += a[j][i] * k;      return s;  }   My malloc looks ok:          double** a = malloc(sizeof(double*)*n);         for(i = 0; i < n; i++)             a[i] = malloc(sizeof(double)*n);         double* b = malloc(sizeof(double)*n);     and I fill my array like this: //For tab a void RempTabrandDouble(double** a, int n){      for(int i=0;i<n; i++)         for(int j=0;j<n;j++)             a[i][j] = rand();   //On fera tjrs un random avec le meme seed  } //For tab b void RempTabAlea(double* b,int n){     for(int i=0;i<n; i++)         b[i] = rand(); }   Can you identify where is the seg problem please? Thanks for your help


Is it possible to bred event moves onto a Pokemon's offspring

The main ones I had in mind were Tickle Wobbuffet and Sludge Wave Gengar


Proving $\sum_{k=0}^{n-1} \text{cos}\left(\frac{2\pi k}{n} \right) = \sum_{k=0}^{n-1} \text{sin}\left(\frac{2\pi k}{n} \right) = 0$

I would like to prove the following, $$\sum_{k=0}^{n-1} \text{cos}\left(\frac{2\pi k}{n} \right) = \sum_{k=0}^{n-1} \text{sin}\left(\frac{2\pi k}{n} \right) = 0$$ This is equivalent to showing that if we have a regular n-gon, all of the vectors in $\mathbb{R}^2$ pointing to every vertex cancel eachother out to $\textbf{0}$. It seems obvious enough and i've tried a number of examples for small $n$.  I am not sure how to start a proof though.


How do I turn a String into a InputStreamReader in java?

How can I transform a String value into an InputStreamReader?


Congrats! :) Ubuntu 15.04 boot failure after latest kernel update 3-19-0-31

Ubuntu 15.04 boot failure after latest kernel update 3-19-0-31  *Fixed with Recovery from 3-19-0-30.  Linux Ubuntu 15.04 alongside W10.  Boot failure (black screen, infinite loading) today after 3-19-0-31.  Grub > Recovery from 3-19-0-30.


Expansion Mechanism in Loop Quantum Gravity

Loop Quantum Gravity suggests that spacetime is quantized.  Given that, what is the mechanism of expansion?  Do more quanta appear out of nowhere or do the quanta grow larger?


Where/how can I inlay my app screenshots to make an iPhone animation for a website?

I would like to do something like this:  It's quite common, but I have not been able to find a site or psd download that allows users to embed screenshots in phones. Does anyone know where a newbie can do this? Thanks for any tips.


SQL Query as a string - safe from injection?

most of the time I've been doing SQL like this:  $pdo = new PDO($dsn, $usr, $pass);  $qry = 'SELECT * FROM `my_table` WHERE `pk_id` = '. $id .';'; $res = $pdo->query($qry);   but recently I've seen a few posts showing that the only way to be safe is using prepared statements - this isn't an issue really for me, and this probably has an answer, just one I couldn't find from Googling around.  surely, if all of my statements, end in .';' using concat is ok?  Thanks,


install some package on ubuntu 14.4 LTS shows error

I want to install the following package on ubuntu 14.4 LTS  libreadline-dev   liblua5.2-dev libevent-dev  python-dev   But when i want to install libreadline-dev error shows:  The following packages have unmet dependencies: libreadline-dev : Depends: libreadline6-dev (= 6.2-8) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   And when i want to fix it by install libreadline6-dev error shows :  The following packages have unmet dependencies: libreadline6-dev : Depends: libreadline6 (= 6.2-8) but 6.3-4ubuntu2 is to be installed                    Depends: libtinfo-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Also install libevent-dev shows error:  The following packages have unmet dependencies: libevent-dev : Depends: libevent-2.0-5 (= 2.0.16-stable-1ubuntu0.1) but 2.0.21-stable-1ubuntu1.14.04.1 is to be installed E: Unable to correct problems, you have held broken packages.   And python-dev error shows:   The following packages have unmet dependencies:  python-dev : Depends: python (= 2.7.3-0ubuntu2.2) but 2.7.5-5ubuntu3 is to be installed           Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed  E: Unable to correct problems, you have held broken packages.   How can i fix it?


"Play" or "playing" – which one is correct and why?

People often see him play basketball on the playground at the weekend.   Can I use playing instead?


Some months ago I watched  video of Blenderguru about "How to create a realistic earth in blender". In this video blender render is used and  now that I understand texturing in cycles a little better I am trying to rebuild this "realistic earth" with cycles.    In the video - starting at about 11:30 min - it is shown how to map the "earth day" and "earth night" image textures. Depending on the lights shining on the earth the earth or night image is projected. I tried to rebuild that in cycles but I think I a making mistakes. In the circled box the "night" nodes are found. What Is my mistake ?   P.S When you see other mistakes in this node tree, please let me know.  OK ... I now have implemented the advice of Uncle Snail (except moving the black slider). Below an image of the earth and the updated node tree (I also rearranged nodes for better overview).    In the Color Ramp, I did not move the slider. Is that really necessary ??


What is the best way to contribute to bringing Stack Exchange (especially AI, but everything code) to other languages?

I'm active in AI governance and actually in a lecture recently Luisa Olaya was talking about the barriers to using AI in the developing world, and what a problem it was that there aren't tools to help local developers, even in Spanish. Lots of people talk about lack of data in local languages (as if AI just programs itself from data (hint: it doesn't really)). Anyone on Stack Exchange knows that actually providing real developer help is a big issue.  It wasn't initially obvious that there were existing projects like this, can we make the answers to this question somehow direct to the feedback that was in the "redundant question" response? There are actually a lot of resources globally to this kind of problem, and endless new AI NLP tools. Is there something we could do help link efforts to SE?


How do you prove that $<$ is transitive?

Given the rules of basic arithmetic, and defining $<$ as a binary relation with:   For all $a\in\mathbb{R}$, either $a<0$, $a=0$, or $0<a$  If $0<a$ and $0<b$ then $0<a+b$ and $0<ab$ $a<b$ iff $a-b<0$   Prove that $a<b$ and $b<c$ implies $a<c$.  The difficulty seems to be that I don't have the 2nd law also for negative a and b.  Axioms: Addition is commutativeAddition is associativeFor all a, a+0=a-a+a=0 and similar for multiplication


qt5-default package missing in Hirsute repo

When installing iriunwebcam-2.4.deb, it said iriunwebcam : Depends: qt5-default but it is not installable After searching I found out that the package qt5-default is available upto groovy repo but not hirsute. Is there any way to install it in 21.04?


What beings are included in Thanos' culling?

I've seen a few threads on whether or not Thanos would have been able to defeat Dormammu in single combat. It seems to be mostly speculation, but it got me thinking.  Did Dormammu have a 50/50 chance of also      perishing with Thanos' snap? Or is he a being outside the scope of that is defined as "life"?   Also, what about the rest of the creatures on Earth?      Were half the cats and dogs wiped out too? What about insects?   In Avengers: Infinity War we only really got to see      humans fall victim to the snap, but Thanos explicitly said "half of all life", and it didn't seem to be species-specific.   More importantly, if Thanos killed       half of all animals on Earth,   that would go a long way towards critically messing up the planet's entire ecosystem. Possibly beyond repair.


How to know if Mac OS X machine is being remotely viewed?

Currently I have no way to know if my machine is being remotely viewed by our tech support, and would prefer to know, given the massive privacy breach that would entail should this be happening. I am running Mac OS X Snow Leopard.  Running  ps -A | grep Remote   I know this service is running:  /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent   My knowledge of administration of Macs on a network is limited, so I don't know what tools allow this.


I was wondering if there is an easy way to indent the code in Stack Overflow. Whenever I paste in code, all the code loses its indentation; what I have been doing is manually indenting every line with the space button. Is there a quicker way to do all of this?


Wow that was fast...  There was a question tagged the following: , , which are obviously hardware tags, and the question was something like this:     How can i remove permanent marker from my laptop display?   it was instantly downvoted and flagged as OT, which is very good. But i felt pity to the newbie User asking this question, because he instantly got killed off. As OP was a new user, he was of course not able to create these tags, which are obviously almost only hardware tags, and who each have <50 Questions to them.  Please remove these Tags, that encourage asking OT-Questions, or tell me why they are not removed


I've looked at this site for the first time today. I've checked , the  and the  and searched, and I don't seem to be able to find an answer on this site.  These are the closest I can find:        Reading the first few responses, I'm perceiving quite a difference in scope between 'user experience' as a concept and what I see discussed as 'User Experience' on this site and elsewhere, and I'm definitely interested in opinions addressing this.  Also, while I appreciate the field is broad, maybe there are some human interactions that definitely aren't UX - between two of them face-to-face, for example?


Showing that the sequence $a_n=[1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\dots+\frac{1}{n}]-\ln(n)$ converges

How do you show that  the sequence $$a_n=\left(1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\dots+\frac{1}{n}\right)-\ln(n)$$ is convergent.  Give a convincing argument, that $a_n$ converges to a number called gamma. Using a picture if you want. Remember the anti-derivative of $\ln(x)$ is $\frac 1x$  I am not sure how to give a convincing argument that this sequence converges to $\gamma$ I never heard of this number gamma before.


Let $$S_n=e^{-n}\sum_{k=0}^n\frac{n^k}{k!}$$  Is the sequences$\{S_n\}$ convergent?  The following is my answer,but this is not correct. please give some hints.  For all $x\in\mathbb{R}$, $$\lim_{n\rightarrow\infty}\sum_{k=0}^n\frac{x^k}{k!}=e^x.$$ then   $$\lim_{n\rightarrow\infty}e^{-n}\sum_{k=0}^n\frac{n^k}{k!}=1.$$


Unknown graphic extension and file not found in beamer

The header of my file is the following:  \documentclass[xcolor=x11names,compress]{beamer}  \usepackage{times,amsmath,amsfonts,psfrag} \usepackage{latexsym,amssymb,float,stfloats,multirow,subfigure} \usepackage{graphicx,subfigure,epsfig,color} \usepackage{tikz} \usepackage{xcolor} %\usepackage[pdftex]{graphicx} %\usepackage{sidecap} \usepackage{cite}   and I'm including the figures as follows:  \begin{figure}[h]  \centering \epsfig{file=mainfigure,scale=.62} %\caption{Cognitive Radio Pair} \label{fig:CR_pair} \end{figure}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{columns}     \begin{column}{2.6in}  \begin{itemize} \small \item[$\bullet$] $\underbrace{\text{At each step of sequential estimation}}_{\underbrace{\text{\small CR pair decisions}}_{{\text{\small \textcolor[rgb]{1.00,0.00,0.00}{1. Terminate}\qquad} \underbrace{\text{\textcolor[rgb]{0.00,0.50,0.00}{2. Continue}}}_{\textcolor[rgb]{0.00,0.50,0.00}{\bigg\Downarrow \qquad \qquad \bigg\Downarrow}}}}}$\\   \qquad \qquad \quad \textcolor[rgb]{0.00,0.50,0.00}{Same channel\qquad Switch}     \end{itemize}   %\end{block}     \end{column}     \begin{column}{2.5in}     %\begin{block}{} % Your image included here %\begin{figure}     \centering \includegraphics[trim = 10mm 25mm 10mm 10mm, clip=true, width=1\textwidth]{mat-model-new3.eps}%\caption{Risk versus cost} %\end{figure} %\begin{center} %\end{center} %\begin{figure}[th] % \epsfig{file=risk_vs_c_snr_-10db_0db_alpha0-15.eps,scale=.41} \caption{Risk vs cost SNR=0,-10 dB} %\label{fig:risk_vs_c} %\end{figure}     %\end{block}     \end{column}   \end{columns}   then when I hit texify I get these two following errors:     File mainfigure not found   and     Unknown graphics extension .eps   FYI, I tried to install all the related package in Miktex packages manager but still doesn't work. Any help please?!!!!


Find $f(x)$ such that $f(f(x)) = x^2 - 2$

Find all $f(x)$ satisfying $f(f(x)) = x^2 - 2$.   Presumably $f(x)$ is supposed to be a function from $\mathbb R$ to $\mathbb R$ with no further restrictions (we don't assume continuity, etc), but the text of the problem does not specify further.   Possibly Helpful Links: Information on similar problems can be found  and .  Source:  It is about to be closed for containing too many problems in one question. I'm posting each problem separately.


We know that accelerating charged particles emit electromagnetic radiation. We also know that electrons around nucleus have an angular momentum which means that electrons are revolving around the nucleus, therefore, they are subjected to acceleration due to their orbital motion. However, atoms do not constantly emit light. Isn’t this a contradiction?


When I try to use  method, it shows an error Method was removed after version 45.0: isCurrentUserLicensed. If I change the API version of the class to v45 it works fine.  Is there a replacement for this method in v46?   Couldn't find any mention in .  The code that gives an error when saved as v46,  public Class foo {     public Boolean bar(String license){         return UserInfo.isCurrentUserLicensed(license);     } }     The same code that is saved as v45


How do I add a custom icon to the macOS menu bar?

I’ve been looking and the only thing I can find is how to add ones that already exist. Say I want to add a picture of the pog face, And when I click it it says ok. Is there any software to help me do that, or do I need to code my own AppleScript by myself? (Also I’m on high Sierra.)


How to delete a parameter inside an object?

I've take a look for some answers about this but any worked here.   I have this object:  [ { transactionId: 'oapcfgajnasdasddmamdgogjilkjga.AO-J1Oyho4K_fgrzggggggasdasdasdykGfBYG4',     orderId: undefined,     productId: 'casdasd',     purchaseDate: 1asd4831asdasd2080asd5241,     quantity: 1,     expirationDate: '14asdggg8g1' } ]   I need to delete the orderId parameter. I tried this two options of code but did not work.  one:   var index = productsList.indexOf("orderId");         productsList.splice(index, 1);   two:             for(var i=0 ; i<productsList.length; i++) {     if(productsList[i].value=='orderId')         productsList.splice(i); }   Any idea?


I use Linux Mint 13 MATE, and I'm trying to set up notifications when I plug/unplug devices.  First of all, I found  package, but unfortunately it almost doesn't work for me: it works for very little time (1-2 minutes), and then, if I connect/disconnect any device, it crashes:  Traceback (most recent call last):   File "./udev-notify.py", line 319, in <module>     notification.show() glib.GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.1061 was not provided by any .service files   I haven't found any solution, so I had to remove it. (filed  also)  Surprizingly, there're no similar utilities I've found so far. Then I tried to write udev rules that should match all devices. I have added new file /etc/udev/rules.d/notify.rules :  ACTION=="add",    RUN+="/bin/bash /home/dimon/tmp/device_plug.sh" ACTION=="remove", RUN+="/bin/bash /home/dimon/tmp/device_unplug.sh"   And two scripts:  device_plug.sh:  #!/bin/bash  export DISPLAY=":0" notify-send "device plugged"  /usr/bin/play -q /path/to/plug_sound.wav &   device_unplug.sh:  #!/bin/bash  export DISPLAY=":0" notify-send "device unplugged"  /usr/bin/play -q /path/to/unplug_sound.wav &   It works, but it works very dumb. My questions are:   How to get actual title of the device attached, the same as I can see in lsusb output? Currently, I just got notifications like "plugged" and "unpugged", and I can't find how can I retrieve the name of the device in my udev rule (If I can, then I'd pass it to my script as a parameter) Currently, too many notifications are activated. Say, when I attach my USB stick, I got about 15 notifications! But, if I run lsusb, attached USB stick is displayed as just single device. So, it seems I should add some more argument to rule filter, but I can't find it out. Probably there's some better solution for device plug/unplug notifications? Please suggest if you know something.


How do I fix typos and errors in formulas? Stack Exchange seems to have a 6 character minimum edit limit

The typo is 1-2 characters. Does Stack Exchange want broken formulas and typos?  What's the rationale for this limit?  (Maybe it's per setup. My current problem is with ham.stackexchange.com.)


How to get fifth highest salary from salary table by single query?

I can get second highest salary by this query. is it possible to use this query for calculate fifth highest salary??       SELECT max(salary)  FROM [Employee]  where (EmployeeID not in    (SELECT max(EmployeeID ) FROM [Employee] ))   please help me...


Shell Script (Bash): Omits special characters

I have a shell script that executes a jar file and stores the output generated by executing the jar file to a variable.   E.g:   myvariable=$(java -jar MyJavaJarFile.jar)   However the output when I execute the java statement given below consists of special characters such as /, \, +, =, etc. But when it is stored to the variable characters such as \ is omitted from the variable.   java -jar MyJavaJarFile.jar   If the actual output is abc=\=abc, then the variable stores only abc==abc.  Could someone help me out with this?  Thanks.. :)


This is more like a feature-request than a question. Anyway: I have some questions and I would like to delete some of these questions (some have upvoted answers). By deleting I mean that I don't want to show those questions in my profile page. I can send an email to stackoverflow team, but this sounds an overkill to me. I don't care if those questions remain on stackoverflow or on another website network, I simply want to hide them from my profile page.  I am the OP of those questions and I have also a good amount of reputation on stackoverflow +10k, so I think users like me should have this possibility, without resorting to send an email to stackoverflow asking for a complete removal, or flag for a moderator. For example there could be a an option to transfer the ownership of the question to a fake-account such as Community ♦, ONLY for trusted users with, for example, more than 10k reputation. This would be a win-win for both users and stackoverflow:  the questions will not be deleted (i.e. it will continue to get views from Google); the user will not have that question in his profile page AND the user will keep all the downvotes if any;  Maybe give this possibility with a reputation cost, such as each time you hide a question you get -1 reputation and also you keep all the downvotes (if any). Final note: Considering stackoverflow has more than 3 million users, I don't think there is any added value by showing an user nickname under a question (rather than a fake user) if the user doesn't want to be associated with that question.


archive.canonical.com and security.ubuntu.com InRelease files being sent as archives

I have no clue what is going on, all of my other repos update just fine except these two. Upon visiting the links in my browser, they appear as text, as they should.     EDIT: The error is this: Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) THESE ARE THE ONLY TWO PACKAGE ARCHIVES RECEIVING THIS ERROR.  I am on a mobile connection, which does have a transparent proxy, but I am tunneled on a VPN while doing this.  I have already cleared /var/lib/apt/lists to no avail. Any help is greatly appreciated, Walaryne


Uniform Continuity of function $\frac{1}{1+x^2}$

How to show $f(x)$=$\frac{1}{1+x^2}$ is uniform continuous on $\Bbb R$.   Although, of course for any interval $[a,b]$, this function is continuous and bounded, therefore also uniformly continuous. Following Continuous Extension Theorem  it is uniformly continuous on any $(a,b)$. Therefore proceeding this way, we can show it is uniformly continuous on $ \Bbb R$.    I wish to prove the same analytically. I assumed there exists $x,u \in \Bbb R$, such that $ |x-u|< \delta$.    Now,  $|f(x)-f(u)|$=$\frac {|x^2-u^2|}{|(1+x^2)(1+u^2)|}$ $\le$ $\frac{|x-u||x+u|}{x^2u^2}$    $\le$ $\delta$$\frac{|x+u|}{x^2u^2}$.  Here I stuck. I wish to find an $\epsilon$ so that the $|f(x)-f(y)|\lt \epsilon$, where $\delta$ depends only on $\epsilon$, not on $x$. But unable to do that. Tried to apply A.M-G.M inequality but could not find a fruitful result. What to do?


Creating legend with new data defined symbols functionality in QGIS?

I have a large geology data set that I need to display using an industry standard set of symbols and colours. The symbols and colours are attributes of the data. I have been using the data defined symbols capability of the dev build of QGIS (code revision b805894) to display the data according to its attributes. This works perfectly in terms of displaying the data correctly in the map window.  The problem arises when I try to create a legend in the composer. The data-defined colours displayed on the map don't pull through to the legend.  Here are some screens shots. The first shows the map window. You can see the problem manifesting in the Layers box on the left. The symbols are all coloured black.  The second screen shot shows the composer window with a legend.


Prior and posterior distributions involving a prior Beta distribution

Question: A poll is conducted to help ascertain  whether the Labour party  candidate or Tory candidate  will win in a forthcoming  election for Coventry Mayor ( there are no other candidates, and the election is decided by winning a simple majority of the  voters). On the basis of previous polling,  the polling company has a  prior  distribution for the proportion of all voters who intend to  support the Labour candidate which  is  the beta distribution with parameters 13 and 9. The poll asks a  sample  of 100 representative voters about  their voting intentions and  found that   48  people in the  sample intended to vote Labour  and 52  people intended to vote Tory. What is the updated probability that Labour win the election? Give your answer to two decimal places. [My apologies about the long-winded question :)] So far I have: $L \sim Beta(13,9)$ where L is the random variable representing the proportion of the population voting Labour. This is the prior distribution. Let M be the random variable reflecting the sample of 100, of which 48 voted labour. So $M \sim Binomial(100, 0.48)$. To work out the updated probability or the posterior distribution I need to calculate $P(L > 50 | M=48). $ SO $P(L > 50 | M=48) = \frac{P(L > 50, M = 48)}{P(M=48)}$ Where I am struggling is working out the conditional probability distribution as I haven't encountered the Beta distribution much. How would I go about doing this and is my method correct so far in terms of M being binomial and calculating the conditional probability? I need guidance on calculating $f_{LM}(l,m)$. Thank you.


OK so I was writing a sentence to explain that there are three holes at the same angular position on a wheel (different radii).  I started to write; 'there are more than one hole at each angular position...' But... it sounds wrong. Don't you agree? 'There is more than one hole...' sounds much better.  The construction 'there is' or 'there are' is used to indicate existence of a single thing or a plurality of things (countable nouns) respectively.  In this case, it seems that the thing that you are indicating the existence of is whatever 'more' is referring to, not the 'one'. Which is, in this case, two holes (on top of the first, three in total). So why does it sound so bad?  If there were two holes in total, then sure, 'there is more than one' would make sense, since the 'more' is one hole.  Is there some kind of special rule in English to say that we always say 'there is more than one' because there is at least one more?  Otherwise, why would we say 'there is' when referring to a plural, countable noun like in the above example?


Is there a way to make the for loop print the underscore in the same line not under eachother?

import random  list1 = ["chips", "banana", "cake", "wine", "cookie", "apple", "chocolate"] random_word = random.choice(list1) user_guesses = 0 guess_limit = 10 index = 0 guessleft = guess_limit - user_guesses index_1 = random_word[index] length = len(random_word)  for a in range(len(random_word)):     print("_")  So the output of this loop will be underscores under eachother instead of them being after eachother like this _ _ _ _ _ How can i fix this?


Why zero correlation does not necessarily imply independence

If two variables have 0 correlation, why are they not necessarily independent? Are zero correlated variables independent under special circumstances ?  If possible, I am looking for an intuitive explanation, not a highly technical one.


Brand new disk brakes are barely stopping the bike

I just built a mountain bike with Avid BB7 brakes and Shimano V-brake levers. I used the exact same configuration on another bike, and it worked beautifully. But on this one, the brakes are just weak as hell. I know that disk brakes are supposed to have a short break-in period, but I'm way beyond that now, and still no change. What's going on and how can I fix it?


How to detect which PHP script is sending SPAM

A php script is sending tons of emails. I want to detect what is the source. All emails are sent by the use www-data which the user used by apache. When I check process, I have this result :  www-data 16220  0.7  4.7 402508 95924 ?        S    09:37   0:06 /usr/sbin/apache2 -k start www-data 16352  0.4  3.8 402132 78064 ?        S    09:39   0:03 /usr/sbin/apache2 -k start www-data 16725  0.6  3.8 402472 78624 ?        S    09:46   0:02     /usr/sbin/apache2 -k start www-data 16840  0.8  4.2 410744 87204 ?        S    09:48   0:01 /usr/sbin/apache2 -k start www-data 16949  1.0  4.5 417560 93436 ?        S    09:49   0:01 /usr/sbin/apache2 -k start www-data 16958  1.0  3.5 402120 72748 ?        S    09:50   0:01 /usr/sbin/apache2 -k start www-data 16978  1.2  4.6 425160 94864 ?        S    09:51   0:00 /usr/sbin/apache2 -k start www-data 16980  0.8  3.5 402140 72208 ?        S    09:51   0:00 /usr/sbin/apache2 -k start www-data 16983  0.4  2.6 402160 54400 ?        S    09:51   0:00 /usr/sbin/apache2 -k start   Apache is using many processes and I don't know what is the script that send mail.  Is there a way to do that?


email address validation javascript for multiple '+' signs

I am trying to validate email address input by user in javascript something like this   var email = document.getElementById("<%=Email.ClientID%>").value;                 // checks if the e-mail address is valid                 var emailPat = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*(\+[a-z0-9-]+)?@[a-z0-9-]+(\.[a-z0-9-]+)*$/i;                 var matchArray = email.match(emailPat);                 if (matchArray == null) {                     alert("Not a valid e-mail address");                     document.getElementById("<%=Email.ClientID%>").focus();                      return false;                   }   This works great it validates email address ok but it return false on this email address  ayaz5+any+thing+you+want@gmail.com what I want is this is also a valid email address what changes do I need to made in this thanks


Can they all be amalgamated into the main site with their own tags? The reasons I can think of that this is a good idea are:  There are a lot of questions on the child meta sites that are duplicates of questions on the main site.  The child sites do not offer any reputation points and so the questions/answers cannot be taken seriously.  The main site would gain more traffic.  A lot of the child sites for the smaller sites are never used.


which is better href="#" or href="javascript:void();" in terms of all aspects  like user experience, speed etc  is it necessary to put a 0 inside void when using href="javascript:void();" .like this href="javascript:void(0);"


I know what an ND filter does. I know what a polarizer does. I also know what two polarizers stacked together and rotated properly do. I also know that two polarizers are not the best solution.  My question is, how variable ND filters works in theory. What is difference theoretically between good variable ND filter and two polarizers properly stacked together and rotated. Thank you


Adobe Photoshop running script for multiple layers

I have 103 layers which i need to save as PNG files(each layer individually) but the problem I'm haiving is;the background layer (is to be saved with each layer) how can i do this ? Kindly guide me thanks


How do i proceed with this question? In the book, in solution they have taken $x=\tan A,\ y=\tan B,z=\tan C$. But, isn't it wrong as we have to prove this generally. Please help


I have a seagate 2013 or 2014 external hard drive which has been working fine up until yesterday.  The drive wont appear anywhere on my mac-  not on desktop, finder, disk utility wont ever finish loading when its plugged in.  I've gone into System Information and it appears whether or not the device is installed so not sure what that means.  I have tried a few tips I found to use Terminal- I've tried creating and naming the volume usb and then linking it to dev/disk 2 but nothing.  It will however let me eject the device via terminal which I hope is a good sign? I ran diskutil verifyDisk /dev/disk2 and i got the following:  "Problems were found with the partition map which might prevent booting.  Error: -69854: A disk with a mount point is required." I've read that I probably need to do something that would wipe out all the information on my external but first I would need to back up.  As I said before, I can't access my drive on any macs (i've tried 2 others) so is my next step to send it out for someone to recover the data?  I'm just trying to save myself some money because I'm currently furloughed but I do need the documents on my external.  Any advice would be great! I'm not knowledgable on any of this, I've just been doing alot of searching and trying different tips so please leave advices fit for a computer dummy! ha! Thanks!


jQuery 1.10 Not Removing dynamically generated Input field

JsFiddle has a nice demo but only works up to jquery 1.8. Here is the link:   Add Another Input Box                        $(function() {     var scntDiv = $('#p_scents');     var i = $('#p_scents p').size() + 1;      $('#addScnt').on('click', function() {         $('
<input type="text" id="p_scnt" size="20" name="p_scnt_' + i +'" value="" placeholder="Input Value" /> Remove
').appendTo(scntDiv);         i++;         return false;     });      $('#remScnt').on('click', function() {          if( i > 2 ) {             $(this).parents('p').remove();             i--;         }         return false;     }); });   Version 1.9, it needs Migrate 1.1.0 to be able to have "Remove" work as expected.  Version 1.10 and later won't work for both .live and .on


Can I get new account but keep my current Pokemon?

If I want to join a different team, is there a way to start a new account and just transfer my Pokemon, or would I have to completely start over?


Learning web design with limited options

I need some guidelines as to where to start, what to learn (everything I need to learn to do the job of web design). I'm having quite a bit of free time at my current job and I've finished with codecademy's HTML & CSS course. What should I learn next? I would prefer something I could learn at my workplace, but that would mean no YouTube videos (can't plug in headphones and can't install software as I'm using the company's PC). I need as many suggestions as I can possibly get as I really want to learn this properly.


evaluate text present in specific format in another column in Excel

I have a text written as "12*14" in C4 and and number "1000" in B4. I want to calculate D4 as 1000-12*14   I have tried following, But both are not working here.  B4-NUMBERVALUE(C4)  B4-VALUE(C4)


I just got a computer with windows vista but I don't know the password nor do I even want windows on the computer. is there anyway to install ubuntu without knowing the password. I do have an installer disk for ubuntu 18.04.2. I don't mind erasing the hard drive. any ideas? I have tried just turning it on with the installer in the computer, and using 3rd party software.


How to show that this subgroup is normal?

$H = \left\{ id, (12)(34), (13)(24), (14)(23)\right\}$ is a subgroup of $A_4$.  A normal subgroup is a subgroup where the right and left cosets are the same.  To show that $H$ is a normal subgroup would I have to compute every single coset and show that the left and right cosets are the same?  Is there a clever way to do this problem?


Can't display Ubuntu dock on only 1 monitor

My Ubuntu dock was only displayed on my primary monitor. Then, I set Settings > Appearance > Dock > Show on: All displays Now, I can't change it back to my primary monitor. I have 3 monitors. When I try to select either of my 2 secondary displays with the mouse, it stays on "All displays". When I select my primary monitor, the selection shows my primary monitor, but the dock is still displayed on all monitors. If I close the window and reopen it, or try navigating to a different page and go back to the Appearance tab, it shows "All monitors" again. I assume there's a settings file somewhere where I can manually fix it since the GUI is broken. But I don't know where.


What is the best route or place to get started with ArcObjects if one is not a developer and not aiming to become a developer?  I've been using gis professionally for a long time, almost two decades, arcinfo/arcgis for most of that; I'm pretty good. I'm learning software development, and even have a modestly successful small python application used in a public project; I'm not good! I don't want to become a full fledged software developer but I keep running into things I just can't do without programming (). In the arcgis world this puts me pretty squarely in the python camp, which is fine by me since I like python, however python does not have straightforward access to ArcObjects. (Python and ArcObjects , but it's an unsupported route. This question is about following a beaten path.)  I need to get started, but where?  to get started with the  but $1500/yr is definitely not in my budget, and sounds like using a sledge hammer to swat mosquitos. And which language .NET, Visual Basic, or Visual C++?    UPDATE: Thank you everyone for the wonderful answers. In light of them I realise  I unecessarily narrowed the scope of my question be pre-supposing "ArcObjects" is the direction I need to go in. A more open ended formulation is more along the lines of:     I keep running into problems I just   can't solve with arcgis and python   alone. What else can I learn/use to   solve problems like X? I've no   interest or intention of becoming a   software developer. I just need to do   a couple things which aren't exposed   to the arcgis python modules.


Can only see the orange highlights on a selected object, not the actual object?

I haven't opened up Blender in a long while and when I opened it today, all of my projects appear like this. I can only see the orange outlines when the object is selected, and when not selected the object remains completely invisible. This is for every project I have on my computer, ones that have been viewable the last time I opened them and now are not. No settings were changed and I did not manually update the program; it's on 2.82. I've tried finding out what was wrong and haven't been able to find any solutions online, let alone many people having this problem in the first place. As far as I have checked, all my viewing settings are unchanged. Any advice would be much appreciated.


I just tried to check how memory is allocated to structure objects, its taking more space what i expected. I am using 64 bit windows OS and Microsoft visual studio 2010(i think its 32 bit), so can some explain why is its printing 52 bytes ?  struct test {   int year;// should take 4 byte   string title;// how much bytes would take ? in my case taking 31 bytes ?   double date;//should take 8 byte   int month;// should take 4 byte   } mine;  int main () {  cout << " size is: "<<sizeof(mine);//printing 52 ?  cout << " size is: "<<sizeof(struct test);//printing 52 ?   return 0; }


Which spell would Harry have used to kill Sirius?

Before this is marked as a duplicate, my question is more specific than the other one.  In the third book, when Harry has his wand on Black in the Shrieking Shack, he wants to kill him. He also clearly plans to use a spell because his wand was pointing at Black's heart, and when Crookshanks sits on Black's chest to protect him, Harry thinks:     So what if he had to kill the cat too? It was in league with   Black.... If it was prepared to die, trying to protect Black, that   wasn't Harry's business   If Harry was planning on using physical force to kill Black (which doesn't seem in character anyway - Harry bashing someone's head in?), he wouldn't worry about Crookshanks being in the way. And in that case, the cat's protection wouldn't make a difference anyway.  So if Harry was planning on using a spell, which one would he have used? Even if he knew about Avada Kedavra (which he doesn't until the next year), I doubt 13 year old Harry would be powerful enough for it to work. He didn't know Stunning, etc until next year, and he had no idea expelliarmus could knock someone out (the Snape incident happens later).  He seems very assured about killing Black. The only thing that seems to be getting in his way is his nerve. He seems like he knows what he wants to do.     "Harry raised his wand. Now was the moment to do it."      "-- but the footsteps were thundering up the stairs and Harry still hadn't done it."      "He hadn't done it. His nerve had failed him."   What spell could he have been thinking of, even if it may mot have ended working?


How to upgrade from Ubuntu-12.04 LTS to the latest Ubuntu version

How to upgrade from Ubuntu-12.04 LTS to the latest stable Ubuntu version, could someone please help me with the procedure, can I find a KB article somewhere. ? Thank you in advance.


I'd like to parse status.dat file for nagios3 and output as xml with a python script. The xml part is the easy one but how do I go about parsing the file? Use multi line regex?  It's possible the file will be large as many hosts and services are monitored, will loading the whole file in memory be wise? I only need to extract services that have critical state and host they belong to.  Any help and pointing in the right direction will be highly appreciated.  LE Here's how the file looks:  ######################################## #          NAGIOS STATUS FILE # # THIS FILE IS AUTOMATICALLY GENERATED # BY NAGIOS.  DO NOT MODIFY THIS FILE! ########################################  info {     created=1233491098     version=2.11     }  program {     modified_host_attributes=0     modified_service_attributes=0     nagios_pid=15015     daemon_mode=1     program_start=1233490393     last_command_check=0     last_log_rotation=0     enable_notifications=1     active_service_checks_enabled=1     passive_service_checks_enabled=1     active_host_checks_enabled=1     passive_host_checks_enabled=1     enable_event_handlers=1     obsess_over_services=0     obsess_over_hosts=0     check_service_freshness=1     check_host_freshness=0     enable_flap_detection=0     enable_failure_prediction=1     process_performance_data=0     global_host_event_handler=     global_service_event_handler=     total_external_command_buffer_slots=4096     used_external_command_buffer_slots=0     high_external_command_buffer_slots=0     total_check_result_buffer_slots=4096     used_check_result_buffer_slots=0     high_check_result_buffer_slots=2     }  host {     host_name=localhost     modified_attributes=0     check_command=check-host-alive     event_handler=     has_been_checked=1     should_be_scheduled=0     check_execution_time=0.019     check_latency=0.000     check_type=0     current_state=0     last_hard_state=0     plugin_output=PING OK - Packet loss = 0%, RTA = 3.57 ms     performance_data=     last_check=1233490883     next_check=0     current_attempt=1     max_attempts=10     state_type=1     last_state_change=1233489475     last_hard_state_change=1233489475     last_time_up=1233490883     last_time_down=0     last_time_unreachable=0     last_notification=0     next_notification=0     no_more_notifications=0     current_notification_number=0     notifications_enabled=1     problem_has_been_acknowledged=0     acknowledgement_type=0     active_checks_enabled=1     passive_checks_enabled=1     event_handler_enabled=1     flap_detection_enabled=1     failure_prediction_enabled=1     process_performance_data=1     obsess_over_host=1     last_update=1233491098     is_flapping=0     percent_state_change=0.00     scheduled_downtime_depth=0     }  service {     host_name=gateway     service_description=PING     modified_attributes=0     check_command=check_ping!100.0,20%!500.0,60%     event_handler=     has_been_checked=1     should_be_scheduled=1     check_execution_time=4.017     check_latency=0.210     check_type=0     current_state=0     last_hard_state=0     current_attempt=1     max_attempts=4     state_type=1     last_state_change=1233489432     last_hard_state_change=1233489432     last_time_ok=1233491078     last_time_warning=0     last_time_unknown=0     last_time_critical=0     plugin_output=PING OK - Packet loss = 0%, RTA = 2.98 ms     performance_data=     last_check=1233491078     next_check=1233491378     current_notification_number=0     last_notification=0     next_notification=0     no_more_notifications=0     notifications_enabled=1     active_checks_enabled=1     passive_checks_enabled=1     event_handler_enabled=1     problem_has_been_acknowledged=0     acknowledgement_type=0     flap_detection_enabled=1     failure_prediction_enabled=1     process_performance_data=1     obsess_over_service=1     last_update=1233491098     is_flapping=0     percent_state_change=0.00     scheduled_downtime_depth=0     }   It can have any number of hosts and a host can have any number of services.


How to change ONLY the prompt color of the Windows command-line?

As we all know, Windows command-line have the white-black color scheme. And we could use:   COLOR   command to change the colors of background and text.   But the command above will change the whole text in the command-line. E.g. the result of command is as follows:  COLOR 04     But I don't want this kind of color-scheme because that makes no difference with the original white-black one. It is hard to distinguish the command you input and the output of the command. What I want is something like this:    I want the color of command prompt is different with other text on the screen so that I can find the command I input easily. But I only get the solution on Linux. It uses:   export PS1=”\[\e[35;1m\][\u@\h: \W]\$\[\e[0m\] “   So my question is:   How can I change the color of command prompt like the above one on Windows?  Thanks very much.   Solution:  Following the prompt of @Luke I finally get the solution. Anyone who is interested in this topic please hit the two links below:   &   It is "ANSI hack developped for the CMD.exe shell".   Wish that would be helpful for you.


The instructions are:      The X potion is a legend. It is said  that whoever manage to brew it and drink  it would travel to a place where no one   have been before.     I don't know if this potion is just a   legend or not, but I will write in this   book everything I know about it.     The X potion is mentioned in many old   legends and alchemy books. Here's a  summary of the informations which may  help you to brew it. Good luck!    - It is said that 5 steps are necessary  to brew the X potion.    - It is said that no lollipops are  required, except for one of the steps.    - It is said that, unlike for other  potions, you can't brew multiple X  potions at once.    quoted when it comes to the X potion :               On the first day,   it gave birth to the very first Sweet.           But it was cold outside.              On the second day,         it gave the Sweet a father.          But it was cold outside.              On the third day,         it gave the Sweet a brother.          But it was cold outside.              On the fourth day,         it gave the Sweet a friend.          But it was cold outside.              On the fifth day,         it gave the Sweet a lover,      and it may sound simple or silly,        but now the Sweet was happy,          and it was hot outside.


Are decoupling capacitors needed with battery power?

Currently I run all my gadgets from batteries and don't use decoupling capacitors.  Are they generally needed/useful when drawing energy from a battery?


How wide is the learning gap between completing first and second/second and third/etc problems?


Given a idempotent endomorphism, show that $M = \ker(f) \oplus \ker (f-\text{id}_M)$

Let $M$ be an A-module and $f \in \text{End}(M)$ an idempotent endomorphism. Show that $M = \ker(f) \oplus \ker (f-\text{id}_M)$. I don't know how to approach this exercise, using only properties of modules and direct sums, without projections. Can you help me? Thanks in advance.


Why am I getting table is mutating, trigger/function may not see it error?

I have such simple trigger. I have no compilation error.   CREATE OR replace TRIGGER test_triger   BEFORE INSERT OR UPDATE ON users   FOR EACH ROW DECLARE     varii NUMBER; BEGIN     SELECT Count(dur.id)     INTO   varii     FROM   users dur     WHERE  dur.id = :old.id             OR dur.id = :new.id;      IF( varii > 0 ) THEN       Raise_application_error(-20001, 'error!, ');     END IF; END;    When I invoke update  I have such error:  TEST.USERS is mutating, trigger/function may not see it.   what does it mean?  ORA-04091, ORA-06512 and ORA-04088 Errors.


Suppose $V$ is a finite dimensional vector space over the field $\mathbb C$, and $T \in \mathcal{L}(V)$ is an arbitrary operator operating on $V$. Then $T$ is diagonalizable iff $V=\operatorname{null} (T-\lambda I)\oplus \operatorname{range} (T-\lambda I)$ for all $\lambda \in \mathbb C$. The first implication is obvious. It is well known that for any operator $T$, $V=\operatorname{null} T \oplus \operatorname{range} T$, so one implication immedaitely follows. For the secodn implication, i dont know where to start any help is appreciated


How to replace whitespaces in a filename?

i tried it the following way:  rename 'bla bla .txt' blabla.txt   But this doesn't work, what's the correct syntax for this case?


I have heard alot about , I have downloaded it and it is running fine. But the problem is I want to update my existing firefox which came installed by default, so as to have all my history, password etc to be on the latest i.e. Quantum one. Currently, it does not have any browsing history or any other data I had on my old-school browser.


Does magic missile hit silent image's illusory creature?

says:     You create three glowing darts of magical force. Each dart hits a creature of your choice that you can see within range.    says:     You create the image of an object, a creature, or some other visible phenomenon....   If one caster creates an illusory creature with silent image what happens when another caster targets that illusory creature with magic missile?  Assuming of course that the mm caster is shooting first and asking questions later, ie, rather than using his or her action to investigate the illusion is simply choosing to attack it.  Or I suppose the magic missile caster might have failed the investigation check.  Either way, the magic missile caster believes the illusion to be real.  My own inclination would be to rule that magic missile would in fact appear to hit the illusory creature, but I can't find much to either support that conclusion, or to support another.


My question reads:  If   c^2=ab and (a,b)=1, prove that a and b are perfect squares.  I began my proof by $a=p_1 p_2 \cdots p_n$ and $b=q_1 q_2\cdots q_m$. Then I gave $c$ its own decomposition as well and said $c=s_1 s_2\cdots s_t$.  From there I squares the c and just got the same except now with 2 in the exponent for each s.   I am not too sure how to continue on from there. Would I need to re-index? Also, I am not too sure when to bring in the fact that their gcd is 1.


What is the difference between $|0\rangle+|1\rangle$ and a balanced mixture of $|0\rangle$ and $|1\rangle$?

Suppose I have a quantum state $\frac{1}{\sqrt{2}}|0\rangle+\frac{1}{\sqrt{2}}|1\rangle$. Also I have a mixture of two quantum states $S_{1} = |0\rangle$ and $S_{2} = |1\rangle$. In this mixture $50\%$ chance of getting $S_{1}$ and $50\%$ chance of getting $S_{2}$.  If I give you these two situation one by one, is there anyway you can tell which is what? Also what is the difference between them?


Supremum of all y-coordinates of the Mandelbrot set

Let $M\subset \mathbb R^2$ be the . What is $\sup\{ y : (x,y) \in M \}$? Is this known?  To be more descriptive: What is the supremum of all y-coordinates of all black points in the following picture:   Picture  by  licensed under


SSH session drops - Does the command continue executing?

If I was running a command before the SSH connection was dropped, will the command continue executing?


Cosine Distance as Similarity Measure in KMeans

I am currently solving a problem where I have to use Cosine distance as the similarity measure for k-means clustering. However, the standard k-means clustering package (from Sklearn package) uses Euclidean distance as standard, and does not allow you to change this.  Therefore it is my understanding that by normalising my original dataset through the code below. I can then run kmeans package (using Euclidean distance); will it be the same as if I had changed the distance metric to Cosine distance?  from sklearn import preprocessing  # to normalise existing X X_Norm = preprocessing.normalize(X)  km2 = cluster.KMeans(n_clusters=5,init='random').fit(X_Norm)   Please let me know if my mathematical understanding of this is incorrect.


Simple solution to Question 6 from the 1988 Math Olympiad

Recall Question 6 of the 1988 Math Olympiad  Question 6 is as follows:     Let $a$ and $b$ be positive integers such that $ab + 1$ divides $a^2 +  b^2$. Show that $$\frac{a^2+b^2}{ab+1}$$ is the square of an integer.   My proof:     Proof:      Let us denote the square of an integer by $k^2$. We have to show that   $$\frac{a^2+b^2}{ab+1}=k^2$$ for some $a > 0$ and $b > 0$ where $a, b, > k \in \Bbb Z$.      Rewriting the equation:      $$a^2+b^2=k^2(ab+1)=k^2ab+k^2$$      Let $k = b$:      $$a^2+b^2=b^3a+b^2 \Rightarrow a^2=b^3a \Rightarrow a=b^3$$      To check, let's substitute these relations back in the original   expression:      $$\frac{a^2+b^2}{ab+1}=\frac{(k^3)^2+(k)^2}{(k^3)(k)+1}=\frac{k^6+k^2}{k^4+1}=\frac{k^2(k^4+1)}{k^4+1}=k^2$$   Two of things I would like to know about this Olympiad Question:   Is this proof correct? Is there a reliable way to check if a certain solution to a proof already exist?   Background  Every now and then I visit Youtube for educational purposes. I've been a great fan of Kurzgesagt, Numberphile, Computerphile, and other educational channels. For anyone not having heard of these channels I would greatly recommended to check them out!  Today I was watching this video on the channel of Numberphile: . In this video a great mathematician Professor Tao tells about his passion for mathematics from a young age. At some point in this video it is mentioned that Tao only scored 1 out of 7 points for the infamous Question 6 from the 1988 Math Olympiad. In the next couple of frames this video shows the details of the question. At that moment I paused the video to try and solve this question by myself, with only pen and paper.  After 10 minutes or so I figured out the solution to this problem and questioned myself why the question is called infamous. I came across some solutions at this site that are, in my opinion, mindblowing in terms of length and mathematical notation, for example  solution. Then I read something about Vieta-jumping that I'm not familiar with and how it's used to solve this question (or not). A rather simple solution I came across is  one. I think the elegance and quality of a solution is greatly influenced by its length and level of simplicity in terms of notation, terminology, and construction.  As far as I did my silly online research I couldn't find a solution that was equivalent to mine. Therefore I thought it would be a good idea to share it and let other people, with a much broader understandig of existing mathematical proofs, decide if this proof is correct (and a known solution).


I read somewhere that removing .pdb file cause increase in performance of the program. What are the cons and pros of removing these files?


Show that there are infinitely many primes $p$ with $p^5 \equiv 5 \pmod 6$

Show that there are infinitely many primes $p$ with $$p^5 \equiv 5 \pmod 6$$  I am very confused by this question. I am familiar with Euclid's proof of there being infinitely many primes and can see that most proofs of this nature run along a similar path. For instance, most usually involve assuming a limited number of primes of this type and then multiplying them all together and adding a number to this and this leads to a contradiction later on. For this problem, I have begun by also assuming there are only a finite number of primes with the above property. However, due to the index of 5, I don't see how I can simply multiply all the primes in the finite set together to figure this out. Multiplying two to more numbers with a remainder of 5 on division by six together always leads to a remainder of either 1 if the index is odd and 5 if it is even. I do not know where I can go any further with my analysis. Any hints at how I can tackle this question would be greatly appreciated.


How to use Voxelmap on different versions of Minecraft on the same computer

I play different versions of Minecraft on the same computer like 1.16.1, 1.16.2 etc. and I would like to be able to use  for Fabric for all of those versions. I downloaded and installed it for 1.16.1 and it worked fine, then when I downloaded and installed it for 1.16.2 it gave an error when I tried to to launch. To get it to work with 1.16.2 I had to remove the map version that works with 1.16.1. How can I install the map so that I can use it with the different Minecraft versions?


What is this strange symbol in Microsoft Word and how can I use it?

What is this symbol in Microsoft Word?    What is it for?  How can I use and delete it?


After Star Trek: The Next Generation, can I skip to Voyager without watching Deep Space Nine and not get spoiled?

I'm almost done watching the sixth season of Star Trek: The Next Generation, so I'm starting to look at what to watch next. After reading a little bit about Star Trek: Deep Space Nine and Star Trek: Voyager, it's clear to me that Voyager would be fit my current mood.  Would watching Voyager before Deep Space Nine spoil any event of importance?


javascript click function doesn't work for ID and Class?

I can't get my jquery function to work even when I have two pieces of identical code.  Here is the primary jquery function (i've removed the "<").  $(".spoiler").append("<button> Reveal Spoiler!</button>"); $(".spoiler button").click(function() {     $(this).remove(); });   This creates a button that is then removed when it is clicked.  Now when I do this:  $("#family-question").click(function(){     $("#answer-one").append("<button> Answer One </button>");     $("#answer-two").append("<button> Answer Two </button>");     $(".test").append("<button> Answer Three </button>"); });  $(".test button").click(function() {       $(this).remove(); });   This creates all the buttons. However if I click the button it isn't removed.  In terms of the HTML code. first one is;
          Darth Vader is Luke Skywalker's Father! Noooooooooooo!
   The second one has an ID as well as a class;
   Answer Option one
   Why doesn't it work?


Why do you add +1 in counting test questions?

Here's an example question from the :     On the last day of a one-week sale, customers numbered 149 through 201 were waited on. How many customers were waited on that day?   Possible answers: 51, 52, 53, 152, 153.   The correct answer here is 53, which is the result of (201-149) + 1 = 53.  What's the reasoning in adding the +1?


Is it possible to enable hibernation when dual booting Windows?

I'd love to be able to hibernate one Windows instance, boot into another, then switch back to the first instance and have it resume my hibernated state.  Is there some sort of hack or software product that would enable that, maybe by renaming the hibernation files based on the the instance I'm booting to?  I understand the technical issues with why it's not supported - I could make changes to the filesystem while I'm running instance two that would cause my hibernated state in instance one, but I'm a big boy and don't need to be protected from myself.


Is it possible that $\mathcal{X} = \mathcal{Y}$, yet $\mathcal{X} \in \mathcal{Y}$?

Is it possible for a set to equal another set, yet the former set be an element in the latter set?  I.e.:  $\mathcal{X} = \mathcal{Y}$, yet $\mathcal{X} \in \mathcal{Y}$


outdoor ultra sound positioning system robotic lawn mower

I have a dream to build robotic lawn mower that uses a positioning system, so that can cut grass once and effective. Building the robotic lawn mower is not a problem, but the navigation system is, so I came up with an ultrasound idea to locate the lawn mower on a field.   .   Basically the lawn mower will have mic mounted on it and will be listening for a signal from the speakers. There will be four ultrasound speakers in each corner emitting sound. At a start lawn mower will send by RF signal to first speaker to send sound and then will measure time and calculate distance. Then will do this process with second speaker and so on. When it will come to the end it will take all distance and calculate where exactly is it on field.   Now I have some questions will this system work outside and in greater distances like 100 meters X 100 meters? Which ultrasound speaker/mic is best for this job? Is there a better way to control position of lawn mower? Will this system ever work?


i checked here and tried but it's not working.  pawan@pawan-HP-Pavilion-13-Notebook-PC:~/Downloads$ wine start ExpressoSetup3.msi  err:mscoree:CLRRuntimeInfo_GetRuntimeDirectory error reading registry key for installroot  err:msi:ITERATE_Actions Execution halted, action L"VSDCA_VsdLaunchConditions" returned 1603 ^C  pawan@pawan-HP-Pavilion-13-Notebook-PC:~/Downloads$ wine msiexec /i ExpressoSetup3.msi  err:mscoree:CLRRuntimeInfo_GetRuntimeDirectory error reading registry key for installroot  err:msi:ITERATE_Actions Execution halted, action L"VSDCA_VsdLaunchConditions" returned 1603  pawan@pawan-HP-Pavilion-13-Notebook-PC:~/Downloads$    neither i get any MSI installer to install .msi  i can able to install .exe through wine but not .msi i am using ubuntu 17.10 and just started linux.


AWS Aurora with Postgres, ERROR: invalid locale name: "und-x-icu"

I got into picking collation for our new project and seems based on this document  und-x-icu seems like a good choice because it is culture agnostic. Whem I'm checking if und-x-icu is present with: SELECT * FROM pg_collation where collname = 'und-x-icu' indeed returns desired collation, but when I run CREATE DATABASE FooBar     WITH     OWNER = postgres     ENCODING = 'UTF8'     LC_COLLATE = 'und-x-icu'     LC_CTYPE = 'und-x-icu'     TABLESPACE = pg_default     CONNECTION LIMIT = -1     TEMPLATE=template0     ;  I get error: ERROR: invalid locale name: "und-x-icu" I found this answer  which says its not possible. It was 3 years and linked email list mentions it as "not-done-yet feature". I'm wondering if there is any development. From my experimentation seems like it's not possible. Can someone please confirm it? Is my understanding correct that UCI collation is only useful when used directly with every query?


I freelance, but I'm still green in some areas and Copyright is one of them. I know about using/purchasing stock and all that, I have accounts on all the stock sites, but I created a design, which resulted in some issues.The design had some copyrighted material and here's where I'm confused.   My design is complete vector based. I either made my own vector from an image, or I used a Photoshop brush. I was once told that a loophole with using images was that if you make a brush out of an image and create that image using a brush, it's considered a tool and there's technically no copyright. This could be wrong information, or maybe it doesn't apply to certain imagery. I downloaded a brush set that doesn't have any copyright restrictions attached to it and used that to create some of my images that are an issue. So my question is, if I create my own vector or use a brush of an image, let's say Mickey Mouse, could that still create copyright issues?      My next question is fonts. Can words be copyrighted? Some of the issues in my design were words and I understand the issue was probably related to the LOOK of the words, but if I find a font (one free font I found looked similar) can I use this without any issue?  Any help would be appreciated. I haven't had to worry about copyright before, until this project and it confuses me so much!


Etymology of *snap, crackle, pop* for higher derivatives of position?

The fourth, fifth, and sixth derivatives of position are known as snap (or, perhaps more commonly, jounce), crackle, and pop. The latter two of these are probably infrequently used even in a serious mathematics or physics environment, and clearly get their names as humorous allusions to the characters on the Rice Krispies cereal box. Wiktionary, Wikipedia, and etymonline all confirm the existence of the terms, but do not include references to the first usages. I would like to know, if possible, what the earliest source is that used these terms (crackle and pop).  The references on the Wikipedia page for , are to academic papers published after the year 2000 and reference the terminology as being nonstandard or facetious. They do not, however, refer to earlier uses in other publications.


How do I make the b43 kernel module load on boot in Ubuntu 16.04?

Background  I have a Dell Inspiron 1525 laptop from 2008, which has a Broadcom wireless chip. I have previously successfully used Ubuntu/Kubuntu on it by installing the firmware-b43-installer package, certainly on 14.04, I can't recall if I've installed 16.04 before on this laptop.  Recently, I installed Ubuntu 16.04, and installed firmware-b43-installer as before. Running sudo modprobe b43 makes the wireless work, but this does not persist after reboot.  The b43 module is blacklisted by /etc/modprobe.d/blacklist-bcm43.conf, which is autogenerated by bcmwl-kernel-source. This blacklisting doesn't stop sudo modprobe b43 from working - it loads the module anyway and WiFi then works until reboot.  What I've tried   Adding b43, preceeded by its dependencies, in /etc/modules, running sudo update-initramfs -u, and rebooting. The module does not get loaded. Adding b43, preceeded by its dependencies, in /etc/initramfs-tools/modules, running sudo update-initramfs -u, and rebooting. The module does not get loaded. Adding b43, preceeded by its dependencies, in both /etc/modules and /etc/initramfs-tools/modules, running sudo update-initramfs -u, and rebooting. The module does not get loaded. Uninstalling bcmwl-kernel-source in order to remove /etc/modprobe.d/blacklist-bcm43.conf, in combination with 1, 2, and 3 above. The module does not get loaded, and running sudo modprobe b43 manually no longer works, so I presume that the bcmwl-kernel-source package is necessary for b43 to work, despite the fact that bcmwl-kernel-source blacklists b43. Leaving bcmwl-kernel-source installed, but manually deleting /etc/modprobe.d/blacklist-bcm43.conf, in combination with 1, 2, and 3 above. The module does not get loaded, but running sudo modprobe b43 manually once booted works. Adding a script to root's crontab on @reboot that loops running modprobe b43 until lsmod indicates that it is loaded. The script runs, and keeps running indefinitely, but the module never gets loaded, despite the fact that the script works when run manually from a terminal once booted.


Dictionary - How to map list of KEY with list of VALUE?

I have two different list: key = ['key1', 'key2', 'key3'] value = ['value1', 'value2', 'value3']  I want to map it like this : dictionary = {'key1':'value1',               'key2':'value2',               'key3':'value3'}  I tried this: dictionary = {key, value}  But I got this result: TypeError: dict expected at most 1 arguments, got 2


I am trying to work through Peskin and Schröder and am a little stuck in Chapter 4 [section 4.2 p. 83 below eq. (4.13)], when he first treats interacting fields. The subject is the quartic interaction in Klein-Gordon Theory. They claim that:      "At any fixed time, we can of course expand the field (in the interacting theory) as before (in the free theory) in terms of ladder operators."    I don't see why this should be possible in general. Their argument for the ladder operators and the expansion in plane waves in the case of the free theory was that from the Klein-Gordon equation we get Fourier modes independently satisfying harmonic oscillator equations. However as far as I can see, once I add an interacting term I don't get these equations anymore.


Solution of a polynomial in interval $(0,1)$

Let $\displaystyle a_0 + \frac{a_1}{2} + \frac{a_2}{3} + ... + \frac{a_n}{n+1} = 0$, where $a_i$'s are some real constants.  How can we prove that the equation $a_0 + a_1x + a_2x^2 + ... +a_nx^n = 0$ has at least one solution in the interval $(0,1)$?


How do I have to implement the following comparison [TikZ]

How do I have to implement the following comparison?  \documentclass{scrartcl} \usepackage{etoolbox} \usepackage{tikz} \begin{document} \begin{tikzpicture}  \pgfmathparse{sin(60)}  \let\x=\pgfmathresult  \ifnumgreater{\x}{0}{}{} \end{tikzpicture} \end{document}


How do I make certain services dependent on certain interfaces?

With SystemD, how can I make certain services dependent on certain network interfaces being up?  For example, let's say I have an 802.1ad bond interface I need to wait on for access to my SAN/NAS before I bring up libvirtd, even though I may have network access available via a different interface. Or let's say I have an sshfs mount I want to come up automatically (and be torn down automatically) dependent on a VPN connection?  What's the idiomatic way to handle fine-grained dependencies on network interfaces?  At present, I'm using NetworkManager on Ubuntu and CentOS7, but I'm open to other platform-appropriate mechanisms for managing network state.


I have tomcat  server on windows 8 ,And I start tomcat through console i.e. using startup.bat. I got this exception. I deleted work directory and stared again, It does not worked.   Uncaught error in scheduled job runner  java.lang.NoClassDefFoundError: bitronix/tm/BitronixTransaction at bitronix.tm.BitronixTransactionManager.createTransaction(BitronixTran sactionManager.java:448) ~[btm-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManag er.java:158) ~[btm-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at org.moqui.impl.context.TransactionFacadeImpl.begin(TransactionFacadeI mpl.groovy:336) ~[moqui-framework-2.1.0.jar:2.1.0] at org.moqui.impl.service.ScheduledJobRunner.run(ScheduledJobRunner.groo vy:109) [moqui-framework-2.1.0.jar:2.1.0] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [   ?:1.8.0_151] at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_      151] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.    access$301(Unknown Source) [?:1.8.0_151] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.    run(Unknown Source) [?:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:   1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?   :1.8.0_151] at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]     Caused by: java.lang.ClassNotFoundException: bitronix.tm.BitronixTransaction at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa     der.java:1722) ~[?:?] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa     der.java:1573) ~[?:?]  ... 11 more  Exception in thread "elasticsearch[MoquiLocal][management][T#5]" java.lang.NoCla      ssDefFoundError: org/elasticsearch/cluster/InternalClusterInfoService$1 at org.elasticsearch.cluster.InternalClusterInfoService.refresh(Internal   ClusterInfoService.java:292) at org.elasticsearch.cluster.InternalClusterInfoService.maybeRefresh(Int    ernalClusterInfoService.java:277) at org.elasticsearch.cluster.InternalClusterInfoService.access$500(Inter    nalClusterInfoService.java:67)    at org.elasticsearch.cluster.InternalClusterInfoService$SubmitRescheduli    ngClusterInfoUpdatedJob.lambda$run$0(InternalClusterInfoService.java:224) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreserv     ingRunnable.run(ThreadContext.java:569) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)


Add a "Username History" to the profile field

While users may (and do) exercise their right to change their profile display name would it be useful to have a "Username History" or "Formerly known as" section in the profile. This could show the most recent (or two or three) most recent usernames of the user.  I know it's a fairly trivial idea but if a user changes the name and avatar I get confused who some people are - I am not a clever man.