I'm getting an error   Attempt to invoke virtual method on a null object reference 'int com.android.server.job.controllers.JobStatus.getUid()'   there is a similar question   but I don't know what to do.  this is not simple nullpointerexception,see this：   my question is how to provent this.  this is my error log.  #1 main java.lang.NullPointerException Attempt to invoke virtual method 'int    com.android.server.job.controllers.JobStatus.getUid()' on a null object reference 1 android.os.Parcel.readException(Parcel.java:1580) 2 android.os.Parcel.readException(Parcel.java:1527) 3 android.app.job.IJobCallback$Stub$Proxy.jobFinished(IJobCallback.java:167) 4 android.app.job.JobService$JobHandler.handleMessage(JobService.java:147) 5 android.os.Handler.dispatchMessage(Handler.java:102) 6 android.os.Looper.loop(Looper.java:135) 7 android.app.ActivityThread.main(ActivityThread.java:5413) 8 java.lang.reflect.Method.invoke(Native Method) 9 java.lang.reflect.Method.invoke(Method.java:372) 10 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1037) 11 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)


how can I remove shortcuts from my task bar if the link is dead?

I tried the Chrome development version for a few days, didn't like it because my tabs became broken and wouldn't load properly. I changed back to the live version, but I forgot to uninstall the development version, which gave me 2 chrome icons on my task bar, but they would both load a broken version of Chrome. I then uninstalled Chrome through the control panel and reinstalled the live version, but I now have one of those broken links on my task bar (a blank page with a folded corner) that points to a version of Chrome that's no longer there. Is there a way to remove this icon?


I have a textbox with both letters and numbers in and other symbols in which you can find on your keyboard. I have this code which works fine when I manually put the data in and it only lets me put numbers in and deletes letters. Everything what I want, apart from none of it works if the data is copied and pasted in. Below is my code.  private void textBox7_TextChanged(object sender, EventArgs e) {     Exception X = new Exception();      TextBox T = (TextBox)sender;      T.Text = T.Text.Trim();     try     {         if (T.Text != "-")         {             int x = int.Parse(T.Text);         }     }     catch (Exception)     {         try         {             int CursorIndex = T.SelectionStart - 1;             T.Text = T.Text.Remove(CursorIndex, 1);              //Align Cursor to same index             T.SelectionStart = CursorIndex;             T.SelectionLength = 0;         }         catch (Exception) { }      } }


I have following code :  #include <iostream> using namespace std; class A {     int a;     char* b; };  class B {     int a; };  class C {     char *b; };  int main() {     // your code goes here     cout << "size of A:" << sizeof(A) << endl;     cout << "size of B:" << sizeof(B) << endl;     cout << "size of C:" << sizeof(C) << endl;     return 0; }   link to ideone :   Size of A is 16  Size of B is 4  Size of C is 8  Why size of A is 16 not 12?


I was trying to create this symbolic link:  sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin   but I accidentally typed:  sudo ln -s /usr/share/php,yad,in /var/www/phpmyadmin   So now I want to correct it but it says symbolic link already exist.


Am I really forced to ask a question before gaining reputation to vote up answers that I find helpful?  I've used StackOverflow for years in my JavaScript development, and I see myself as a pro. But I always find my questions already been asked and answered, therefore never had the need to ask any questions, but I still want to vote up stuff that I find helpful. But I have not enough reputation to do so.


Comments on bounty once it has been started

It would be useful to be able to have comments on a bounty once it has started so that:   The bounty poster can add updates if they want to clarify what they are looking for. (This would be less needed if it was possible to ) People can ask the bounty poster to clarify what they are looking for.   I've just posted a bounty and I'd like to add something to the message. The only option at the moment is to add comments to the question which I'm reluctant to do as the will not be relevant to the question once the bounty has been awarded.


17.10 comes with Firefox. How to install Chromium browser and sync bookmarks & extensions

Ubuntu 17.10 comes with Firefox as the default browser.    Attempting to  sudo apt-get install chromium   informs that it is not found in the repository.  Question:  How do I install Chromium (so I can use my Google login to synchronize bookmarks and extensions)?


I have a castle in the sky. It is made completely out of stone bricks and walls. I have met ALL the requirements necessary and am still told it is not valid. I have 6 rooms in the upper part of my castle, 3 on the left-which are completely symmetrical to the 3 on the right. The rooms in the top corners are (from the inside of the walls) 7x4. The roomes in the middle are ("  ") 8x4. And the rooms on the bottom are ("  ") 10x4.  The top rooms are high enough that it just barely starts to turn into space and while that could be the problem, Steve the Guide used to live in the upper left corner. I left that world and when I came back, Steve was in a different room and his old one said it was invalid. The one right below it is also having problems even though I have Durim the demolitionist in the room on the opposite side.   Like I previously mentioned, I made the rooms on the right completely identical to the ones on the left. Complete with stone brick, stone walls (of which I went over again), 1 torch, 1 chair, 1 table/workbench and plenty of floor space. I don't have any platforms  in the rooms and yes I have a door leading to each one. Thanks in advance for your help! :)


Isn't one-hot encoding a waste of information?

I was just playing around with one-hot representations of features and thought of the following:  Say that we're having 4 categories for a given feature (e.g. fruit) {Apple, Orange, Pear, Melon}. In this case the one-hot encoding would yield:  Apple:  [1 0 0 0] Orange: [0 1 0 0] Pear:   [0 0 1 0] Melon:  [0 0 0 1]   The above means that we quadruple the feature space as we go from having one feature to having four.  This looks like it's wasting a few bits, as we can represent 4 values with $\log_{2}4=2$ bits/features:  Apple:  [0 0] Orange: [0 1] Pear:   [1 0] Melon:  [1 1]   Would there be a problem with this representation in any of the most common machine learning models?


How to make GRASS 7 addon available in QGIS 2.12?

I stumbled across the GRASS-Tool  but could not find it in my QGIS processing toolbox. I found out that it is an addon for  GRASS 7 that I already installed in GRASS 7 standalone. How can I import Grass 7 into QGIS?  I installed the latest QGIS Version with the OSGeo4W installer and enabled Grass for installation. The thing is, that the OSGeo4W installation installed Grass 6.4.3 and not Grass 7.  I do know how to  (I have already done this for Grass 6.4.3 and for OTB). I am wondering how it is possible to make GRASS 7 (tools and addons) available within the processing toolbox?   I updated Windows 7 to Windows 10.


I am planning to fly from Delhi to Dublin-Ireland, transit will be at Istanbul for about 4 hrs.   Do I need transit visa for Istanbul?


I want to enable GPU rendering, but there is no option in User Preferences > System:    Why is this? How can I get cycles to render using my GPU?


How you can read a file (text or binary) from a batch file? There is a way to read it in a binary mode or text mode?


The British discontinued the usage of "gotten"  while the Americans retained its use. "Have gotten" in AmE is therefore preferably to "have got". What is then the difference between have gotten/have got and have got?      In American English, the past participle of “get” in its literal sense   of “receive” or “become” is usually “gotten”. In the sense of “must”   or “have”, the past participle is always “got”.         But I don't understand the distinction between gotten / got (especially since  Americans use have gotten for how the British say "have got"--where in British English the past participle of "get" is only "got".)  Take these for example:        I have never gotten a gift. (= I have never received a gift.)   I’ve gotten interested in chess. (= I’ve become interested in chess.)              She’s got five children. (= She has five children)    I’ve got to go now. (= I must go now.)        If we take the definition of "got" as in to mean "must" or "have", then I would disagree with number 3 as surely you can have five children as you would in number 1? As in to possess or not to possess "a gift". Although, I admit it would be weird to say that you own a child "I have gotten 5 children" (as in to be in possession or ownership of them), but would surely be accepted, although controversial, if the person had just "adopted" five children? There is no distinction in BrE as there would be in AmE, take these for example:        I have got five children   I have got five presents      Would British people consider number 6's use of "got" in the sense of to have or possess as colloquial or incorrect, as would Americans?    My question is not the difference between the usage in American English but highlights that there is no difference in British English. I'm looking for guidance particularly which version would be "correct"--the American or British version, namely example 6) I have got five presents or I have gotten five presents. And again, would British people consider example 6, colloquial or incorrect?     In UK English, "have got" is the only grammatical possibility. In US   English, there is no situation where you could grammatically   substitute one for the other without changing the meaning. So there is   a difference, although it blurs when you combine US and UK English.       – Peter Shor       Oct 28 '11 at 13:31      @  (SE)


Volume size larger using fdisk, but not df

I'm trying to increase disk space available on /dev/mapper/centos-root, however, I'm not sure why df -h is not reporting increased size.  $ sudo fdisk -l  Disk /dev/sda: 68.7 GB, 68719476736 bytes, 134217728 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000a12e4     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048     1026047      512000   83  Linux /dev/sda2         1026048   132120575    65547264   8e  Linux LVM  Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/mapper/centos-root: 64.6 GB, 64634224640 bytes, 126238720 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   versus:   $ df -h Filesystem               Size  Used Avail Use% Mounted on /dev/mapper/centos-root   18G   13G  4.8G  73% / devtmpfs                 906M     0  906M   0% /dev tmpfs                    914M     0  914M   0% /dev/shm tmpfs                    914M  8.6M  906M   1% /run tmpfs                    914M     0  914M   0% /sys/fs/cgroup /dev/sda1                497M  140M  357M  29% /boot .host:/                  465G  432G   34G  93% /mnt/hgfs .host:/-vagrant          465G  432G   34G  93% /vagrant .host:/-etc-bolt         465G  432G   34G  93% /etc/bolt   In the fdisk command there is: Disk /dev/mapper/centos-root: 64.6 GB, 64634224640 bytes, 126238720 sectors  In the df -h command there is: /dev/mapper/centos-root   18G   13G  4.8G  73% /


Is there an intuitive definition of exponentiation?  In elementary school, we learned that  $$ a^b = a \cdot a \cdot a \cdot a \cdots (b\ \textrm{ times}) $$ where $b$ is an integer.  Then later on this was expanded to include rational exponents, so that  $$ a^{\frac{b}{c}} = \sqrt[c]{a^b} $$  From there we could evaluate decimal exponents like $4^{3.24}$ by first converting to a fraction.  However, even after learning Euler's Identity, I feel as though there is no discussion on what exponentiation really means. The definitions I found are either overly simplistic or unhelpfully complex. Once we stray from the land of rational powers into real powers in general, is there an intuitive definition or explanation of exponentiation?  I am thinking along the lines of, for example, $2^\pi$ or $3^{\sqrt2}$ (or any other irrational power, really). What does this mean? Or, is there no real-world relationship?  To draw a parallel to multiplication:  If we consider the expression $e\cdot \sqrt5$, I could tell you that this represents the area of a rectangle with side lengths $e$ cm and $\sqrt5$ cm. Or maybe $e \cdot \pi$ is the cost of $\pi$ kg of material that costs $e$ dollars per kg. Of course these quantities would not be exact, but the underlying intuition does not break down. The idea of repeated addition still holds, just that fractional parts of terms, rather than the entire number, are being added.  So does such an intuition for exponentiation exist? Or is this one of the many things we must accept with proof but not understanding?  This question stems from trying to understand complex exponents including Euler's identity and $2^i$, but I realized that we must first understand reals before moving on the complex numbers.


Only ideals of $M_n(\mathbb{F})$ are $M_n(\mathbb{F})$ and $\{0\}$

I was thinking about the matrix ring $M_n(\mathbb{F})$ (set of all $n\times n$ matrices over the field $\mathbb{F}$) and I determined the fact that every matrix in this ring is either a unit or a zero divisor. However, I think in general this would not imply that the only ideals of $M_n(\mathbb{F})$ are $M_n(\mathbb{F})$  and $\{0\}$. Does knowing that the fact that I proved help determine what the ideals of $M_n(\mathbb{F})$ are?  I of course know other facts which are that the only ideals of the field $\mathbb{F}$ are $0$ and $\mathbb{F}$ and that if $I$ is an ideal in $\mathbb{F}$ then $M_n(I)$ is an ideal of $M_n(\mathbb{F})$.  Any help is appreciated, thank you.


For example, such a test:  [Test] public void Test_With_Many_Random_Words() {   var randomWords = new string[100];   for (var i = 0; i < 100; ++i)     randomWords[i] = GenerateRandomWord();    var trie = new PrefixTrie();   for (var i = 0; i < 100; ++i)     trie.AddWord(randomWords[i]);    Assert.AreEqual(100, trie.CountOfWords);   foreach (var word in randomWords)     Assert.IsTrue(trie.ContainsWord(word)); }  private string GenerateRandomWord() {   var random = new Random();   var builder = new StringBuilder();    var length = 1 + (random.Next()%100);   for (var i = 0; i < length; ++i)   {     var charCode = random.Next()%26;     builder.Append((char) ('a' + charCode));   }   return builder.ToString(); }   Or it will be better to create tests with few known words like "testword1", "alsotestword2", "notword3" and check code for correctness with them?


Query is slow in application but fast in SSMS

stored procedure is running slow in application but fast in SSMS... i have enabled SET ARITHABORT ON in stored procedure and it ran very fast from application in QA but still slowness in production ...we are running the stored proc from application in Read only database ( always on AG group )...  Things we have done so far:   Generated the both plans from plan cache (plan from SSMS and Application) Cleared the plan for application procedure Ran the procedure from application again but still it is slow and generating the plan with ARITHABORT as False. Cleared both plans ( SSMS and Application ) and ran the procedure from application, still slow. Altered the procedure , recompiled and created/dropped the procedure. Stats were up to date.   Can anyone please help me on this ?


Save a table in ascending order in order to avoid overlapping proportional circles (QGIS)

Is there a quick way to sort an attribute table in QGIS in ascending order permanently and save it? When you make a map with proportional circles in QGIS the circles overlaps between each other according to their sorting order. I want the smaller circle above the bigger which is why I think sorting can solve this issue.  Note: If I click on the header, the table will be sorted in ascending order using the clicked column. However, if I save it that way and I open it again nothing has changed about row order.


how do I prove that $1 > 0$ in an ordered field?

I've started studying calculus.  As part of studies I've encountered a question. How does one prove that $1 > 0$?  I tried proving it by contradiction by saying that $1 < 0$, but I can't seem to contradict this hypothesis.  Any help will be welcomed.


I'm learning Java, and from what I learned, is that you need to specify the value that a function return.. If it doesn't return a value than it is void.. However in the below program, I'm able to change the values of an array from a void function. Can anybody explain this to me please?   public class ArraysInMethods {     public static void main(String args[]){         int rd[] = {2,3,4,5,6};         change(rd);          for(int y: rd){             System.out.println(y);         }      }      public static void change(int x[]){         for(int counter = 0; counter<x.length;counter++){             x[counter]+=5;         }     }  }


how to modify an in includegraphic image in latex

I include a PNG picture using the \includegraphics command and it looks like this:    Would it be possible to modify it in LaTeX by including a legend and tick markers on the axis as well? Or a text box say next to a given plot?


Change Down Voting to Require Comment for Why & Change Flag to Report

I personally think down voting is not very useful, and should be replaced with a report abuse option.    (Please see update at bottom for change to feature request based on feedback.  Leaving details in tack for historical purposes.)  Reasoning (Deprecated)   In real life voting you cannot down vote a proposition or politician no matter how much  you would like too. It is to easy for people with a high reputation to abuse by down voting people who are just trying to help instead of only down voting the true individuals who are just initially be lame or idiotic.  I feel that if someone is trying to help but there answer or question is not well formed or right or inline with the site we should comment and let them know and and help them if possible. They can then update the answer or question or just delete it. Stats provided to me by Robert Cartaino (shown below) I feel show that down voting is hardly even used and while not being abused on any wide scale it does get seriously abused by a small few.  I feel that if it isn't really getting used much then it should go as it it tends to get miss-used more than properly used.   I think the down vote should be replaced with a Report Abuse system.    How Report Abuse Would Work  This would provide a "Report Abuse" link on all questions, answers and comments. A single report would could be queue as low priority for the moderators to review.  However as it gets more and more reports by other individuals its priority for review goes up.  It could even have a threshold that would automatically deactivate or remove the report item if gets a specific (large) number of reports.  The number of abuse reports can be shown as a counter on the item if it gets more than 1 report.  The report must provide an shoot intelligent reason why it is an abuse.  Help Others With Conversation Not Negative Reputation  I am for people be made aware of being incorrect and being helped to be better in the future or correct there post.  I am not for maligning another persons reputation with negative values who is just trying to be helpful or earnestly looking for help, even if they where not perfect in the question or answer.  Provided Stats     Down-voting is statistically very   rare. The account for only 0.8% of all   the votes cast on the system. And   we're not seeing any large patterns of   abuse. Of the 7.5 million users who   come to Stack Overflow every month,   only 18(!) users have cast more   down-votes than up-votes (with > 100   down-votes)... ever! - Robert Cartaino (via email)   While I am quoting stats provided by Robert, I am not implying that he is in favor of this feature. In fact my impression is he is not sold on the idea so he suggested putting it to the community as a feature request.     EDIT - UPDATE 7-9-2010  Since there is already an abuse system it is just called "Flag" which is not a good user experience as it is not obvious what that is for.  I would suggestion Flag be called "Report" to clarity.  Also if we keep the down voting why not then make minor changes to it which would be Down Votes require a comment explaining why or you can't do it.  This makes it not anonymous, which will make people think before doing it and reduce the abuse even more if they have to explain why it is not a good answer or question.  Doing this would make it easier to understand why you got a down vote, because getting one or more with out a reason is confusing.


Is this a characterization of well-orders?

While grading some papers and thinking about a question related to well-orders (in particular, pointing a mistake in a solution), I came to think of a reasonable characterization for well-orders. I can immediately see it's true for countable orders, but not for uncountable orders.  Definition. Let $\cal L$ be a first-order language, and $\cal M$ an $\cal L$-structure. We say that $\cal M$ is rigid if $\text{Aut}(\cal M)=\{\rm id\}$.     Conjecture. Let $\cal L=\{<\}$. Then $\mathcal M=\langle M,<\rangle$ is rigid if and only if it is a well-order or its reverse order is a well-order.   One direction is trivial. Well-orders are rigid (and therefore their reversed orders are rigid as well). In the other direction, if $\cal M$ is countable, then it is easy. Suppose it's not a well-order.   If $\cal M$ contains a convex copy of $\Bbb Z$ then fix everything else and shift that copy by $1$. Otherwise $\cal M$ contains a convex copy of $\Bbb Q$ and then we can shift that copy by $1$ (or multiply it by $\frac12$, whatever floats your boat).   The problem is that for uncountable order types the plot thickens and they might be $\kappa$-dense, so neither of the arguments would work (and there is no additive structure - that I know of - that we can exploit like in the countable case).     Question: Does the conjecture hold, or is there some intricate counterexample?


What's the deal with the "." and ".." in the directories?

When I use nautilus to browse a directory (the specific example in this one is the /media folder) I see nothing, but when I type ls -a in the terminal it shows:  .  ..    in blue. I'm aware that blue highlights are directories and the . and .. can symbolize parent and working directories, but why are they in the /media folder?


Averaging the column F3:F breaks as script adds new rows above row 3

I have Google Sheet connected via Zapier to automatically add a new row to my spreadsheet everyone time someone fills out a satisfaction survey on my website. I have =AVERAGE(F3:F) as the top row to show running averages of numerical values.   Problem is, when Zapier adds a new row, it seems to use the "Insert 1 Above" on Row 3, thus the formula changes automatically to =AVERAGE(F4:F) and the cell outputs #DIV/0! divide by zero error. How to avoid this?


I did something and now my viewport is view is odd

I did something now viewport solid looks like this:  There is a point somewhere out at infinity projected through the shape and the only 2 faces showing are the ones in the projection. Material preview mode looks normal. What did I do?


Does higher value of correlation between two values indicate it is good predictor?

Using Boston dataset in MASS library, I'm trying to find correlation of all columns against the column medv.  For each column, I'm doing similar to below:    cor(Boston$crim, Boston$medv)   The correlation between crim and medv as calculated above is a negative value.  I understand negative values means they are not related closely and therefore the values in crim column is not suitable to use to predict the values in medv column. Which means the Crime Rate (crim) data is not sufficient to predict the Median house pricing (medv).  Did I get that right?  Also, do I have to check each column against medv for correlation? Is there a way to check all columns against medv at once?  Is it ok to say that the highest correlation value would mean that the column is best predictor for medv?


"Closed subsets of compact space are compact" with an alternative definition of covering.

NOTE: I am reposting this question as this was , claimed being a duplicate. However, please note that this is not, as the question doesn't at all talk of how the statement holds if we assume the alternative definition below, which is entirely what I ask. Before closing this again, please look carefully.  I am studying Abraham and Marsden's Foundations of Mechanics. They define a covering $\{U_\alpha\}$ of a set $S$ to satisfy $S = \bigcup_\alpha U_\alpha$, and NOT $S\subseteq\bigcup_\alpha U_\alpha$. Their definitions of compactness of a topological space, and its subsets (involving the relative topology) are the usual ones. Then they casually remark  It follows easily that a closed subset of a compact space is compact.  However, I'm not able to prove this with the given definition of cover. (I can prove it using the latter definition though.) I'm even skeptical if that holds with the given definition.  Got an answer! User Vercassivelaunos's comment below answers the question.


I want to create swap partition in already installed 16.04 LTS

These are my partitions. I have dual boot with windows 10 and Ubuntu 16.04 LTS. I installed Ubuntu without creating a swap partition. I have only root (/) and /home partitions. I want a swap partition for Ubuntu to run smooth. How do I do it?.


Java String.format() leading zeros and 1 decimal place

I need a string like 50 to appear as 050.0. I am using String.format, but I can't figure out how to do leading zeros and a single decimal place at the same time. So far, I have tried String.format("%3.2f", number);, but that isn't working as I still get 50.0 rather than 050.0


How to customize some default PHP error message thrown to user

I encounter the situation as follows: My system sometimes gets default two specific errors and display to user's screen. But now, my users would like to display these kind of error messages in a friendly way, not default ones. The two types of message are:     1. Allowed memory size of...      2. Maximum execution time of...   I've already tried to use set_error_handler("someFunction"), but it doesn't handle these kinds of errors. Please note that they are 'Fatal Error(s)' types.  I'd appreciate it if you help me out.  Thanks a great deal!


<?php         $receiving_email_address = 'info@info.com';       $name = strip_tags(htmlspecialchars($_POST['name']));       $email_address = strip_tags(htmlspecialchars($_POST['email']));        // if( file_exists($php_email_form = '../assets/vendor/php-email-form/php-email-form.php' )) {       //   include( $php_email_form );       // } else {       //   die( 'Unable to load the "PHP Email Form" Library!');       // }        // $contact = new PHP_Email_Form;       // $contact->ajax = true;        // $contact->to = $receiving_email_address;       // $contact->from_name = $_POST['name'];       // $contact->from_email = $_POST['email'];       // $contact->subject = $_POST['subject'];      $to      = $receiving_email_address;     $subject = $_POST['subject'];     $message = $_POST['message'];      //$headers = 'From: {$_POST["name"]}' . "\r\n" .      //   'Reply-To: {$_POST["email"]}' . "\r\n" .        // 'X-Mailer: PHP/' . phpversion();     $headers = "Content-Type: text/plain; charset=utf-8" . "\r\n";     $headers .= "MIME-Version: 1.0" . "\r\n";     $headers .= "Content-Transfer-Encoding: base64" . "\r\n";     $headers .= "Date: ".date("r (T)") . "\r\n";     $headers .= "From: info.com <info@info.com>" . "\r\n";     $headers .= "Reply-To: $name <$email_address>";       $result=mail($to, $subject, $message, $headers);       if($result==1)       echo "OK";       else         echo "Meddelandet har inte skickats.  <br>Kontrollera din internetanslutning och skicka igen.";       // Uncomment below code if you want to use SMTP to send emails. You need to enter your correct SMTP credentials       /*       $contact->smtp = array(         'host' => 'example.com',         'username' => 'example',         'password' => 'pass',         'port' => '587'       );       */        // $contact->add_message( $_POST['name'], 'From');       // $contact->add_message( $_POST['email'], 'Email');       // $contact->add_message( $_POST['message'], 'Message', 10);        // echo $contact->send();     ?>     This is the email I get and it should be formated like:  Name-Subject-email-message  I tried some methods but wasnt successful hopefully we can  fix this soons. Thank you all in advance!  I tried some methods but wasnt successful hopefully we can  fix this soons. Thank you all in advance!  I tried some methods but wasnt successful hopefully we can  fix this soons. Thank you all in advance!


Prove that the zeros of the polynomial $P(z)=z^7+7z^4+4z+1$ lie inside the disk of radius $2$ centered at the origin.  Assuming the contrary that there exists an $|z|\geqslant2$ such that $P(z)=0$ I have that $$z^7+7z^4+4z+1 = 0 \implies 1+\frac{7}{z^3}+\frac{4}{z^6} +\frac{1}{z^7}=0 \implies 1+\frac{7}{8}+\frac{4}{64}+\frac{1}{128} = \frac{249}{128}\ne0$$ which is a contradiction so the zeros would lie inside the disk of radius $2$?


Prove that $\limsup_{n\to\infty}(a_n)\le \sup(a_n)$

Let $a_n$ be a bounded sequence. Prove that $$\limsup_{n\to\infty}(a_n)\le \sup(a_n)$$   So I think that the best way to prove it is assume that $\limsup_{n\to\infty}(a_n)> \sup(a_n)$ and then find element of sequence > $\sup(a_n)$, that is wrong because it's $\sup(a_n)$.  But I don't really understand how to write it correctly in "math" language with $\epsilon$.


What do we call a matrix whose columns are orthogonal, such as $\begin{bmatrix}3 & 0 & 0 \\ 0 & 0 & 2 \\ 0 & 1 & 0\end{bmatrix}$? Is there a special name for it? I tried searching to no avail.


Disable App Update Notifications on OSX?

When I have apps that need updating in OSX I get a notification on the top-right corner of my screen that does not go away until I click it (which opens the app-store). Is there a way to turn these notifications off?


Installing a 16-bit Windows 95 game on 64-bit Windows 7 Home Premium

I am trying to install the 16-bit game, "NBA Live 98" on my parents' desktop computer, but I got a message that says, word for word:     The version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.   Problem is, this computer game is obviously out of date and no longer supported.  Note: The desktop has Home Premium, so XP Mode and Program Compatibility Mode are out of the question. Also, my parents are not willing to downgrade their computer to XP (they discarded the OS CD years ago), and my backup desktop doesn't have a single administrator (everyone's limited). Finally, my laptop charger is broken, so I can't use my Dell Vista.


How to allow unauthenticated logins over ssh on FreeBSD?

I created an account ckurs on my FreeBSD 10 workstation. This account uses a custom shell-script as a login-shell that attaches the user to a tmux-session in read-only mode. I have sufficiently convinced myself that this is safe.  I would like to give others the ability to login to the user ckurs without providing any form of authentication (no password, no keys, nothing). In the past, I set a simple password for this account but getting users to type that in correctly always caused a little kerfuffle, so I'd like to avoid that.  I started by setting a blank password with pw usermod ckurs -w none. This works for local logins and su but not when I log in via ssh, instead, authentication is refused after prompting for a password three times.  What option do I need to set where in order to allow login without a password? Best would be a configuration that only applied to that one account.  I believe I have not changed any configuration regarding authentication on the system, I believe the system uses PAM to authenticate users by default (I'm not sure though), the PAM configuration hasn't been changed from the defaults delivered by FreeBSD 10.


modular arithmetic questions concerning the sum of reciprocals

I'm trying to prove the sum of reciprocals from 1 to (p-1) is divisible by p^2.  Someone showed me how to prove it. But there's a step which I don't grasp. (Or maybe I misunderstood.)  He changed the form of the sum from 1+1/2+...+1/(p-1) to p{1/(p-1)+1/2(p-2)+...+1/{(p-1)/2×(p+1)/2} and first considering only the sum of 1/(p-k)k where k is from 1 to (p-1)/2.  He said in the numerator of the sum of 1/(p-k)k , will appear every term of (p-k)k from 1 to (p-1)/2.   But I cannot show how to gurantee it.  Could you give me any hints or advice?


AC vs DC & why we ended up using AC for power in our homes, etc

I think that DC is better than AC (and yes I do have a reason, check the comments). Also, if it (DC) is in-fact better than AC why did we use AC then?


Should we allow self-migration of questions?

Should users be able to self-migrate a question if they realize that they've posted it on the wrong site? Should there be a reputation threshold before this is enabled?


Someone stole money from my account, how can I get it back?

Somebody sent in a check that was more than it was supposed to be, I returned the money they asked for back, and a week later they stole $950.00 from my account. is there any way to get my money back?? please


I need to dynamically add and remove values from a custom picklist using APEX code. I want this to be reflected in the picklist meta data e.g. not only appear in record details. How can I do that using my apex logic?


I am reading a book about database systems and in the chapter covering database design using ER, the author aims to explain when to use aggregation versus ternary relationship. In short, each Project entity is sponsored by one or more Department entities and each Department can sponsor zero, one or more Projects. Each Sponsorship relationship has a Monitors relationship, which connects Employees with Sponsorship.  This can be expressed in 2 ER diagrams:     Now, we want to express an additional constraint that each Sponsorship relationship is monitored by at most one Employee.The author states that this cannot be done with ternary relationship. I can't wrap my head around why. To express this in diagrams, I would just point an arrow from Sponsors2 to Emplyees in ternary relation. Does this not satisfy the additional constraint?


I've been looking around the forums for some answers to the question I have. I've found some answer that seem to help but nothing that answers my specific question. That question being how to rotate an object in world space around a non origin point.  I have a grappling hook that I am trying to implement inside of a game I am making for a final college project. This grappling hook collides with another object in world space and I then want the player to rotate around this point as if a rope were present.  I have the point at which the grapple collides the point at which the player is located and the origin. I tried the standard translate to the origin rotate and translate back and that did not work.  This is being done in DirectX 9 and it is a C++ game. Any  help you could offer would be greatly appreciated. If you need anymore info please ask.  Edit: I should also add that we are doing a vector based storage for this setup. So I store the matrices in vectors(i.e Forward,Direction,Right,Position) and build the matrices on the fly  void CSpatialFrame::RotateAbout(D3DXVECTOR3 _Point, float _fDegPitch, float _fDegYaw, float _fDegRoll) {     D3DXMATRIX RotationMatrix;     D3DXMatrixRotationYawPitchRoll(&RotationMatrix, D3DXToRadian( _fDegYaw ), D3DXToRadian( _fDegPitch ), D3DXToRadian( _fDegRoll ));     D3DXVECTOR3 playerPos = m_Position;     m_Position = _Point;      D3DXMATRIX PlayerMatrix;      PlayerMatrix._11 = m_RightVector.x;     PlayerMatrix._21 = m_RightVector.y;     PlayerMatrix._31 = m_RightVector.z;      PlayerMatrix._12 = m_UpVector.x;     PlayerMatrix._22 = m_UpVector.y;     PlayerMatrix._32 = m_UpVector.z;      PlayerMatrix._13 = m_DirectionVector.x;     PlayerMatrix._23 = m_DirectionVector.y;     PlayerMatrix._33 = m_DirectionVector.z;      PlayerMatrix._14 = m_Position.x;     PlayerMatrix._24 = m_Position.y;     PlayerMatrix._34 = m_Position.z;      D3DXMatrixTranslation(&PlayerMatrix, _Point.x, _Point.y, _Point.z);      //D3DXMatrixTranslation(&PlayerMatrix, m_Position.x, m_Position.y, m_Position.z);      D3DXMatrixMultiply(&PlayerMatrix, &RotationMatrix, &PlayerMatrix);      //D3DXMatrixTranslation(&PlayerMatrix, _Point.x, _Point.y, _Point.z);      m_RightVector.x = PlayerMatrix._11;     m_RightVector.y = PlayerMatrix._21;     m_RightVector.z = PlayerMatrix._31;      m_UpVector.x = PlayerMatrix._12;     m_UpVector.y = PlayerMatrix._22;     m_UpVector.z = PlayerMatrix._32;      m_DirectionVector.x = PlayerMatrix._13;     m_DirectionVector.y = PlayerMatrix._23;     m_DirectionVector.z = PlayerMatrix._33;      m_Position.x = PlayerMatrix._14;     m_Position.x = PlayerMatrix._24;     m_Position.x = PlayerMatrix._34; }


Prove $\det(I_m + AB) = \det(I_n + BA)$.

$A$ is an $m\times n$ matrix and $B$ is an $n\times m$ matrix.  $$ \det(I_m + AB) = \det(I_n + BA) $$ Solution: I found this guys: $$ \det\begin{pmatrix}I&-B\\\\A&I\end{pmatrix} \det\begin{pmatrix}I&B\\\\0&I\end{pmatrix} =\det\begin{pmatrix}I&-B\\\\A&I\end{pmatrix}\begin{pmatrix}I&B\\\\0&I\end{pmatrix} =\det\begin{pmatrix}I&0\\\\A&AB+I\end{pmatrix} =\det(I+AB) $$  and  $$ \det\begin{pmatrix}I&B\\\\0&I\end{pmatrix} \det\begin{pmatrix}I&-B\\\\A&I\end{pmatrix} =\det\begin{pmatrix}I&B\\\\0&I\end{pmatrix} \begin{pmatrix}I&-B\\\\A&I\end{pmatrix} =\det\begin{pmatrix}I+BA&0\\\\A&I\end{pmatrix} =\det(I+BA) $$  Source:


How can I list all files which have been installed by an APT package?

I have installed the package geoip-bin using the apt-get command:  sudo apt-get install geoip-bin   and I wanted to know the command line command to use this package. But when I try to list the files that the geoip-bin package installs, to try and find the executable file, it's not listed in the dpkg -S output  % dpkg -S geoip-bin geoip-bin: /usr/share/doc/geoip-bin/changelog.Debian.gz geoip-bin: /usr/share/lintian/overrides/geoip-bin geoip-bin: /usr/share/doc/geoip-bin geoip-bin: /usr/share/doc/geoip-bin/copyright   After some research I learnt that this package installs a command/executable /usr/bin/geoiplookup. So at this point, I now know the command, but for future purposes, I would like to know how to find out what files a package installs.  Doing a "reverse" file lookup with, dpkg -S shows that this file came from the geo-ip bin package.  % dpkg -S /usr/bin/geoiplookup geoip-bin: /usr/bin/geoiplookup   I wondered if dpkg -S is not showing the file in the output because /usr/bin/geoiplookup is provided by one of the dependencies of geoip-bin.  After querying the dependencies with e.g. apt-cache show geoip-bin and then recursively querying the files and sub-dependencies, I still was not able to list the files provided by the package geoip-bin. How can I generate a full listing of the files installed by a package?


This question isn't a duplicate of . The question is exactly the same because the error is the same but it has a different solution.    Never had problems installing Ubuntu. I already installed Ubuntu on this machine before but on a hard disk. However, this is the first time trying to install it on an SSD. The first thing that seems wrong is that the installer doesn't recognize current OS. So I shrank my windows 10 partition using windows and then tried to install Ubuntu on the free space created. Almost at the end of the process, it gives me the error:     The 'grub-efi-amd64-signed' package failed to install into / target/. Without the GRUB boot loader, the installed system will not boot.   The bootable USB with Ubuntu Live boots only with CSM disabled.  If you need other information to figure out what's happening, ask in the comment section and I'll edit the post to provide it. Keep in mind that I cannot use Windows anymore now.    I followed some of the suggestion in the post linked in the comment but boot-repair doesn't work. This is the  (sorry for the external link but it-s too long to post here).    As said in the comments, Windows is in BIOS boot mode. I created the bootable USB with  with the MBR (in theory should work with both BIOS and UEFI). However the bootable USB boot only with CSM disabled. With CSM enabled the error is:  Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found Failed to start MokManager: Not Found     I found no way to use the bootable usb with CSM enabled so I decided to change the way Windows boots from MBR to GPT with mbr2gpt. It seems that all went well. However, now I'm not able to boot with the bootable USB neither with CSM enabled nor disabled.


Where can you download 32 bit edition of Google Chrome for Ubuntu OS?


Python: refer to different functions using a variable

I am making a program in Python 3.5 which will run different functions when you enter different inputs:  commandList = ["test1", "test2", "test3"] def test1():     print("TEST 1 FUNCTION") def test2():     print("TEST 2 FUNCTION") def test3():     print("TEST 3 FUNCTION") while True:     userRaw = input(">:")     user = userRaw.lower()     for x in range(len(commandList)):         if user == commandList[x]:             # Needs to run function which has the same name as the string 'user'             # E.g. if user = 'test1' then function test1() is run.   What would I need to enter after the if statement (where the comments are)?  I have tried doing something like this, but it has not worked:  commandList = ["test1", "test2", "test3"] def function(test1):     print("TEST 1 FUNCTION") def function(test2):     print("TEST 2 FUNCTION") def function(test3):     print("TEST 3 FUNCTION") while True:     userRaw = input(">:")     user = userRaw.lower()     for x in range(len(commandList)):         if user == commandList[x]:             function(user)   I am trying to avoid a lots of if statements as I aim to make my code easily scalable (quickly add new functions).


simple (hopefully) question; I have a Dell XPS 13 with a Skylake processor, running Ubuntu 16.04. Some webpages cause flickering (namely Twitch); I have Googled solutions and came across hardware acceleration as an option to fix it, which worked but caused a lot of screen tearing and increased page load times. Any other suggestions on a solution?


How can I limit the login times in linux for certain users? For example I have to a user that only needs to be enabled from 8am till 5pm? Is there a way of automating this. My environment is a Centos server administered via webmin.


If I'm floating in space and I turn on a flashlight, will I accelerate?

Photons have no mass but they can push things, as evidenced by .   Can photons push the source which is emitting them? If yes, will a more intense flashlight accelerate me more? Does the wavelength of the light matter? Is this practical for space propulsion? Doesn't it defy the law of momentum conservation?  Note: As John Rennie mentioned, all in all the wavelength doesn't matter, but for a more accurate answer regarding that, see the comments in  .  Related Wikipedia articles: ,


I’m having a problem approaching the question. The fact that it’s a limit of a sum is confusing to me.   $$\lim _{n\to \infty }\left(\frac{1}{n^2+1}+\frac{1}{n^2+2}+...+\frac{1}{n^2+n}\right)$$


how to change my domain to point Amazon AWS EC2

I have a domain in 1and1.com , I have been using it with hostgator hosting. Now I want it to point to my amazon aws ec2 instance. Here are the steps i have followed.    I logged into AWS and chose Rout 53 The I have created a Hosted Zone and gave my domain name. "example.com" Then there were 4 Name servers.  I took them and logged into 1and1 control panel , And change my Name servers to this values.   ns-16.awsdns-02.com ns-1329.awsdns-38.org ns-675.awsdns-20.net ns-2018.awsdns-60.co.uk   Now it is giving me a proxy error. :(   Can anyone please explain me, where it went wrong?? ( My instance works fine, and Ihave associated an Elastic IPfor that too.. )


How to list all the packages which are installed from PPAs?

I installed many packages from many PPAs on my system. I want to list all the installed packages which are installed from launchpad PPAs, not repositories.  Is this possible through command-line?


Need to draw a flowchart as in the image below with some arrows

I have problem with the feed back from bottom block to on top of top block. Can anyone help?


Previously - posts that were a mix of closed, deleted or locked use to show at least two of those banners - however, now it only seems to show one.  If a post is closed and deleted (doing a search for closed:1 deleted:1) it only seems to be that the deletion banner is shown while it use to show the close banner and the deletion banner. They're definitely closed according to the timeline and the "reopen" option being available - there's just not the closure reason.  Posts that meet closed:1 deleted:1 locked:1 don't seem to show the lock or close banner... On here for instance the results from closed:1 locked:1 don't look right. Again, according to the timeline, they're definitely closed and locked - just no reason as to why is shown.  It looks to be a network wide thing and not just an SO one.


How do I remove a bone constraint in the middle of an animation meanwhile keeping location

Im trying to do a first person animation of unsheathing a sword, i have child of constraint on the sheath with the actual sword as the target, and the actual sword has a child of constraint and target set to the hand bone so that it all moves together. The start is fine but as soon as i try to unsheathe the sword in the animation, after i move the timeline, it clips back. Is it possible for me to remove the child of constraint in the middle of the animation meanwhile keeping its position and rotation ( i tried deleting the constraint after doing the beginning animation but it just reset's its position elsewhere) I can provide any other asked information if needed. Thanks!


Will there be D&D Insider content & features for D&D 5e?

I know that Dungeon and Dragon magazines will be publishing with the same regularity they were for 4e and feature much of the same types of content, but has there been any statements from Mike Mearls or from WOTC regarding what types of digital tools there will be to support D&D 5e?   I know a lot of players from 4e appreciated and loved the online tools and the support they gave.


Behavior of a gravitation field of an object falling into a black hole

A thought experiment:   Take an object that is massive enough so we can detect it's position in space by measuring its gravitation field (for example, by sending almost tangential laser beams and measure how they deviate in the object's gravitation field).  Take a simple (non-rotating, non-charged) black hole. Send this object to the black hole. While the object falls into the black hole, measure the object's gravitation field (therefore, the object's position).   I'm wondering what will we see when the object:   Is getting closer to the event horizon. Crossing the event horizon. Fails to the singularity under the event horizon.   My intuition tells me following:   As time around the black hole slows down for an external observer, we may see that the object (i.e. its gravitation field) is always in the place it touched the black hole. (EDIT: According to "", this will not happen.) If my previous assumption is wrong, we may see how the object falls down to the singularity behind the event horizon. Also, the shape of the event horizon will deviate from an ideal sphere and by measuring these deviations we will see a position of the object under the horizon, which seems to contradict to the definition of the event horizon.   My questions are:   In any generally recognized theory that describes this situation? What will happen to the object and its gravitation field according to this theory (theories)? How confident we can be in the description given by this theory?


Why some objects are not rendered in the final rendering?

So this is how it looks when I get a preview rendering in the 3D viewport:     This is how it looks when I press render for a final result:     I have no idea what's happening. Can someone help me figure the problem out?


Is every mathematical object representable by sets?

I know that most mathematical objects can be represented by a complex structure of sets. For example one can use  for representing natural numbers:  $$\begin{align} 0 & = \{\} \\ 1 & = \{0\} = \{\{\}\} \\ 2 & = \{0,1\} = \{\{\},\{\{\}\}\} \\ & \vdots \end{align}$$  For ordered pairs there is  $(a,b) = \{\{a\},\{a,b\}\}$, for real numbers  can be used and so on...  My Question: Is there any mathematical object which cannot be represented by a (complex) structure of sets?  I know that there are objects such as  for which no construction is known yet (the only introduction of hyperreals I know of uses the axiom of choice). But I guess, that one can show with ZFC that there must exist a complex structure of sets isomorph to the hyperreals.  More precise question: Is there a mathematical object for which one cannot prove with ZFC that there must exist a complex set structure which represents this object?


What should be used 'related to' or 'related with' [cell programming]?

Full text:  Furthermore, genes related with cell reprogramming are activated and play an important role during the regeneration process after damage.  My issue: I consulted my urologist friend, he told me that in their medical books, "genes related with cell reprogramming" is mentioned. I think that the preposition "to" could be placed before cell reprogramming, but reading the sentence with "to" gives a mismatched sound and vibe to the sentence. Please help.


Are the following sentences are correct?  Tim is a manufacturer and he is not able to fix the car.  Tim is a manufacturer, and he is not able to fix the car.   I think the first sentence is wrong because it doesn't have the comma before AND, since they both can be independent sentences. Am I correct? I have taken the first sentence from an App (BBC English Learning - Playstore)


Why is the probability of getting at least one six when rolling two 6-sided dice NOT 33%

The question was: "If rolling two 6-sided dice what is the probability of getting at least one six? One third? Why or why not?"  In order to answer that I wrote a simulation in Python and the results are a pretty convincing NO.   The results:  Ser. 0 D1=6 16671 ; D2=6 16622 ; D1 AND D2 = 6 2721 ; D1 OR D2 = 6  30572 / 100000 Ser. 1 D1=6 16629 ; D2=6 16782 ; D1 AND D2 = 6 2739 ; D1 OR D2 = 6  30672 / 100000 Ser. 2 D1=6 16618 ; D2=6 16651 ; D1 AND D2 = 6 2754 ; D1 OR D2 = 6  30515 / 100000 Ser. 3 D1=6 16596 ; D2=6 16957 ; D1 AND D2 = 6 2792 ; D1 OR D2 = 6  30761 / 100000 Ser. 4 D1=6 16575 ; D2=6 16665 ; D1 AND D2 = 6 2822 ; D1 OR D2 = 6  30418 / 100000 Ser. 5 D1=6 16630 ; D2=6 16634 ; D1 AND D2 = 6 2759 ; D1 OR D2 = 6  30505 / 100000 Ser. 6 D1=6 16585 ; D2=6 16706 ; D1 AND D2 = 6 2809 ; D1 OR D2 = 6  30482 / 100000 Ser. 7 D1=6 16707 ; D2=6 16762 ; D1 AND D2 = 6 2811 ; D1 OR D2 = 6  30658 / 100000 Ser. 8 D1=6 16568 ; D2=6 16618 ; D1 AND D2 = 6 2694 ; D1 OR D2 = 6  30492 / 100000 Ser. 9 D1=6 16705 ; D2=6 16695 ; D1 AND D2 = 6 2826 ; D1 OR D2 = 6  30574 / 100000   So every result is I expected: 16% for either die to be six 2.7% for both dice to be six  except for at least one being six.  What bothers me is WHY? And how would I derive the result from formal probability without doing the simulation?


Unwanted space after \NewDocumentCommand vs. \newcommand

I am trying to markup certain words in my text and automatically commit them to the index, with the option to modify the index entry. The \newcommand approach was not satisfying, as I did not manage to set the default value of the first argument to be the second. With \NewDocumentCommand I managed to set the options properly, but it introduced an unwanted space when followed by punctuation. Can anyone explain, why this occurs and how to fix it? Here is a minimal working example: \documentclass{article} \usepackage{xparse}     \newcommand{\neuold}[2][]{{\sffamily\textbf{ #2}}\index{#1 #2}}  \NewDocumentCommand{\neu}{m O{#1}} { \IfNoValueTF{#2} {{\sffamily\textbf{#1}}} {\sffamily\textbf{ #1}\index{ #2}} }  \begin{document} blabla  \neu{test}, blabla \neuold{test}, blabla \end{document}


Automatic bus route map without overlaps

I'm working with drawing maps of all bus routes in a defined area (municipality) in QGIS. I have a problem about showing two routes with the geometry (the same road) parallel. I know it's possible to do it manually (line offset). Is it possible to do automatically?


I have somehow completed my PhD without having the required theoretical understanding of my field. Can I have an academic career?

I have an undergrad in mechanical engineering. My Masters, PhD was in Mechanical too. However, I have never been academically strong (grades were majorly C and B+). I had to retake advanced mathematics, continuum mechanics and Finite element analysis course during my undergrad as I had flunked the courses.  However, I always enjoyed the field of computational mechanics, how materials behave is something I enjoy thinking about. I pursued the field in my Masters and PhD, inspite of not taking any grad level course during the programmes. My committee never instructed me to take the courses, I thought self study would suffice.  I have a PhD in application of computational mechanics, I have 3 first authored papers in materials science journals, not mathematics intensive journals. I am worried about my future in the field. I am continuing with a postdoc under my PhD advisor for a year and am searching for other positions.  I shouldn't have pursued higher studies, atleast not in a field I have theoretical deficiency. I still love my field, but I am still afraid of the theoretical papers in my field. My work (application focused) is not mathematically intensive and is pretty straightforward. I can argue that given a direction, one doesn't need a masters or PhD to do what I do.  I know, there won't be anyone who had experiences similar to mine. It is always expected that people go for highers studies in subjects they are good in. I did the other way round. What should be my course of action now to have a potential academic career? I think I am up for a dissappointing career outcome, but still I want to give it a try.


Hide Plank on KDE startup, but keep on Gnome?

I'm trying out new desktop environments, and just downloaded KDE. I like having Plank on Gnome, but would like to disable it on startup for KDE. How do you start Plank on one desktop environment, but disable startup of Plank on another?


Hide layer name in map legend using python in QGIS 2.16

I am trying to render the layer in QGIS as a map using python console.  I am using QgsComposerLegend() for drawing the legend in the map.  Is it possible to make the layer name hidden in the map legend using python console?


Error when creating VIEW of a table made of subqueries?

I'm trying to create a view of a table that I made of subqueries. I have no problems creating views with other tables but it looks like when I try the CREATE VIEW command below, I get an error. I think its something to do MySQL's capabilities creating views that have nested subqueries in them? Does anyone know how to resolve this issue? Or perhaps optimize my method so I don't have to write subqueries?  I know it is not a privilege/permission issue since I have granted all access to my user and I can create other tables and views just fine.   SELECT YEAR(order_date) AS 'year', MONTH(order_date) AS 'month', SUM(ctc_reported) AS 'ctc_reported', SUM(ctc_detected) AS 'ctc_detected',     SUM(ctc_detected)/SUM(ctc_reported) AS 'detection_percent',     SUM(ck_pos_detected) AS 'ck_pos_detected',     SUM(ck_pos_detected)/SUM(ctc_detected) AS 'ck_pos_percent',     SUM(ck_neg_detected) AS 'ck_neg_detected',     SUM(ck_neg_detected)/SUM(ctc_detected) AS 'ck_neg_percent',     SUM(ck_both_detected) AS 'ck_both_detected',     SUM(ck_both_detected)/SUM(ctc_detected) AS 'ck_both_percent'  FROM (SELECT result_management_report_id,     accession_id,     order_date,     IF(ctc_enumeration_result IN ('DETECTED','NOT DETECTED'), 1, 0) AS 'ctc_reported',     IF(ctc_enumeration_result = 'DETECTED', 1, 0) AS 'ctc_detected',     IF(ck_pos > 0 AND ck_neg IS NULL, 1, 0) AS 'ck_pos_detected',     IF(ck_neg > 0 AND ck_pos IS NULL, 1, 0) AS 'ck_neg_detected',     IF(ck_pos > 0 AND ck_neg > 0, 1, 0) AS 'ck_both_detected'   FROM Biocept_DB.result_management_report WHERE final_reported_date IS NOT NULL ) AS subquery GROUP BY YEAR(order_date), MONTH(order_date) );   Error Code: 1142. ANY command denied to user 'BioceptAnalyst'@'%' for table ''  This is what the table looks like:


I was wondering if there is a collection of algebraic geometry exercises out there, solutions would be great too. More specifically pre-Schemes. I tackled most of the exercises inside Hartshrone but would like some further training.


How to prove $F_{n+1}^2 - F_{n-1}^2 = F_{2n} $ by combinatorial-proofs?

I'm working on a problem that asks us to prove for any n $\geq$ 1, $F_n$ the Fibonacci number satisfy $F_{n+1}^2 - F_{n-1}^2 = F_{2n}$. I learned Fibonacci identity $F_{2n} = F_{1}+F_{3}+F_{5}+...+F_{2n-1}$ by combinatorial-proofs but I don't know how to deal with the LHS. Any help would be appreciated.


Difference in output between SAS's proc genmod and R's glm


How to make sure that a machine learning algorithm's implementation is correct?

Say there is a machine learning algorithm (e.g. classification) that is well known and implemented by the original creators of the algorithm. Yet all you have is the ability to use the algorithm but not see the source code.  Now you want to implement this algorithm and then check if your implementation is correct or not. Since you can't use the same initialization values to the parameters (because you don't have access to the source code of the original implementation) then you can't expect to get exactly the same results. Say that the algorithm gives as outputs probabilities, then your method could give a slightly different result from the original method.  It's true that your implementation could give the correct classification results as with the original implementation but the probabilities could be different.   Given such a scenario, how would you judge that your implementation is correct?  This exact situation happened with a friend whose implementation gave the correct classification results but after all he found a serious bug in his code!  So is there a way to test and validate the implementation of a machine learning algorithm in general? Regardless of type of the algorithm (classification, regression ... etc).  The only problem I can see is not being able to use the same initial values for the parameters. Then maybe there is some kind of a statistical test that can test the results with respect to the initial values of the parameters somehow.


cardinality of Galois group in $\mathbb{Q}$($\zeta_n$)

Let $\mathbb{Q}$($\zeta_n$) be some cyclotomic field, where $\zeta_n$ is a n-th root of unity.  I already managed to show that $\mathbb{Q}$($\zeta_n$) is an Galois extension, but now i struggle to show that  $[\mathbb{Q}(\zeta_n) : \mathbb{Q}] = \varphi(n)$, where $\varphi(n)$ is Euler's totient function.


On Google+ page for "Stack Exchange Android App Alpha Testing" and elsewhere  we're directed right here for Bug Reporting.  What should happen next? How do we even know that our report was noticed by the dev team?  For example, there is a bug (or bugs) that prevent Android users to see bodies of certain questions and/ or answers.  It has been reported multiple times (including once by yours truly).  While some of the posts were marked as duplicates, none of them got any replies.  So what is the procedure? Is it reasonable to expect our bug reports acknowledged?  How can we learn whether they are being worked on and when the fix can be expected?


I can disable a device like this:  xinput set-prop 13 "Device Enabled" 0   But I want to actually set a custom shortcut that toggles this between 0\1. My bash skills are kinda rusty, so how can I do this? There's no get-prop command, I got this far:  xinput list-props 13 | grep "Device Enabled"   Which correctly prints out  Device Enabled (135):   1   But I don't know what to do next. Help?


I wonder if it would be possible to extend the current notification system.   Namely, if I downvote a question and that thing had an edit, I'd be happy to see that in my inbox. As possibly the cause for downvote was cleaned up and it should be undone.


Why doesn't my "Nikkor AF" lens autofocus on my Nikon D3300?

I recently got a new lens for my Nikon D3300. I now have 3 lenses; the other two that I have came with the camera and work great but when I put my new lens on, it will only manually focus. If I go to the menu to change the focus mode, it won't even let me change it to auto focus. The lens is a "" lens - as it says "AF" on the lens I believe it should auto focus. What could be the cause of the problem here?


Why do votes represent agree/disagreement?

I've been pondering where voting behavior on Meta came from in the sense that it's not the same as ordinary sites. In the meta FAQ it says something along the lines of people voting based on how much they like or agree with a question or answer.  In response to some negative feedback, I am not against the notion. In fact, I would like to know what drives it and what makes it so useful.       , most of them admittedly negative in opinion, I have found a number of troubling points that I now find myself considering:   If the current voting behavior was community-adopted as one post suggested, especially as a result of site-specific metas where reputation isn't tied to privileges, then it may not be as appropriate on MSE as on other meta sites. Since voting is , downvoting freely can discourage new questions and thoughts. It may punish individuality by scaring users into not asking questions, for fear of reputation loss. This might cause questions to lean towards topics known to be popular with the populace. There are a few cases of uncertainty regarding when or how to vote because a question on meta is researched and useful (or otherwise).   I know that it is ludicrous to ask the developers to change the tie to privileges and I respect their choices. I will not ask that. It just seems that voting might not be working out on MSE in the same way as it does on other meta sites as a result of this.  My question is on how the voting culture of MSE came about. I hope to understand why it is more effective, thanks.


Error: MIXED_DML_OPERATION on setup and non-setup objects

In my test class i have the creation of a dummy custom setting and a dummy lead:  Group g1 = new Group(Name='group name', type='Queue');              insert g1;             QueuesObject q1 = new QueueSObject(QueueID = g1.id, SobjectType = 'Lead');              insert q1;       SetOwner__c mycs = SetOwner__c.getValues('standardset');               if(mycs == null) {                               mycs = new SetOwner__c(Name= 'CustomValues');                  mycs.OwnerId__c ='00520000000z3PrAAI';                  mycs.RecordtypeID__c='012L00000004QsrIAE';                  insert mycs;      Lead lead = createNewLead(u2.id);                           insert lead;   ERROR:  MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): SetOwner__c, original object: QueueSobject: []   I get this error because i am trying to perform DML on setup and non-setup objects in the same transaction.  Any solution for this problem?


parity of the number of non-isomorphic graphs with $v$ vertices

I'm reading Richard J. Trudeau's book "", in page 54 it listed out the number of non-isomorphic graphs, given vertices $v$:  V: number of graphs 1: 1 2: 2 3: 4 4: 11 5: 34 6: 156 7: 1,044 8: 12,346 9: 308, 708  Then in exercise 27 it asks:  In the table on page 54, the numbers in the second column are mostly even. If we ignore the first row on the ground that v = 1 is such a trivial situation that its uniqueness is unremarkable, that leaves v = 4 as the only number of vertices listed for which there are an odd number of graphs. Do you think this is due to chance, or can you think of some reason why v = 4 should be unique? If the table were continued, do you think more odd numbers would turn up in the second column?  I'm a bit lost here. There number of $v$ vertices graphs (in the sense of non-isomorphic) is quite huge and I don't see a way to determine if it's even or odd. The key, i guess, is the self-complementary graphs. However, given vertices number $v$, there might be multiple self-complementary graphs, e.g. $v=5$ has 2. Pls enlighten me.


Why does Odinson not attempt to regain Mjolnir?

It was revealed in Original Sin #7 that after Nick Fury whispers something in Thor's ear, he loses the ability to wield Mjolnir. After this, some stuff happens and girl Thor enters the scene and boy Thor dons the name Odinson and picks up Jarnbjorn.  There has been lots of speculation on  and as far as I know, we still don't have an explanation. So my question is this:  Is there any in-universe or out-of-universe as to why Odinson does not attempt to become worthy of Mjolnir's might again? (other than Marvel wanted to attract female readers with a female Thor)  *Note: I did not include spoiler tags for this question because it has been around for over a year now. If the community, thinks it need some, feel free to add them when applicable.


r, How to create two correlated variables that are distributed jointly normal (mean 0, var 1)

I want to create two random variables $X \sim N(0,1)$ and $Y \sim N(0,1)$ that satisfy $E(X,Y)=0.5 $  That is I want to create $Z=(X,Y)^\top $ with a joint bivariate normal distribution  $ Z \sim N\left( \left(\begin{array}{c} 0\\ 0 \end{array}\right) , \left(\begin{array}{cc} 1 & 0.5\\ 0.5 & 1 \end{array}\right) \right) $.  How do I code this in R?   Thanks.


What is a phrase like "Do I Gift a Present or Present a Gift ?" called?

I recently came across a sentence of the form - "Do I Gift a Present or Present a Gift ?" and am wondering whether sentences of this type (where words can be interchanged and still make valid, meaningful sentences) are called something ? And whether there are anymore examples ?  I tried googling with the above line but it yields nothing.


Should a Java singleton use static variables?

Should a singleton in Java use static variables or member variables? Are there any advantages to either?


Using ogr2ogr to convert GML to shapefile in Python?

I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script.   I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand any details on the syntax for using ogr2ogr in python.   After importing ogr, all I have found is ogr2ogr -f "ESRI Shapefile" output.shp input.gml  How do I use this in python? Is it as simple as assigning the input and output files?  Everything I try I just get syntax errors. Any pointers in the right direction to get me started would be great.


I created a custom property for my armature and I want to add it to my custom panel. If I want to add an object property to a panel I'll do it like this layout.prop(object, "property"). However this doesn't work for custom properties that I created. What am I doing wrong?  I'm using Blender version 2.79.  Here is the panel code:  class MyPanel(bpy.types.Panel):     bl_space_type = "VIEW_3D"     bl_region_type = "TOOLS"     bl_label = "MyPanel"     bl_category = "MyPanel"      def draw(self, context):        layout = self.layout        object = context.object         layout.prop(object, "prop") #Custom property is called "prop"


Showing that minimal polynomial has the same irreducible factors as characteristic polynomial

I'm trying to show that the minimal polynomial of a linear transformation $T:V \to V$ over some field $k$ has the same irreducible factors as the characteristic polynomial of $T$. So if $m = {f_1}^{m_1} ... {f_n}^{m_n}$ then $\chi = {f_1}^{d_1} ... {f_n}^{d_n}$ with $f_i$ irreducible and $m_i \le d_i$.  Now I've managed to prove this using the primary decomposition theorem and then restricting $T$ to $ker({f_i}^{m_i})$ and then using the fact that the minimal polynomial must divide the characteristic polynomial (Cayley-Hamilton) and then the irreducibility of $f_i$ gives us the result.  However I would like to be able to prove this directly using facts about polynomials/fields without relying on the primary decomposition theorem for vector spaces. Is this fact about polynomials true in general?  We know that $m$ divides $\chi$  and so certainly $\chi = {f_1}^{m_1} ... {f_n}^{m_n} \times g$ but then how do we show that $g$ must have only $f_i$ as it's factors? I'm guessing I need to use the fact that they share the same roots. And I'm also guessing that it depends on $k$, i.e. if $k$ is algebraically closed then it is easy because the polynomials split completely into linear factors.  Help is much appreciated, Thanks


How to get a perfect local copy of a web page?

No matter what browser I've tried (even Chrome), when saving a web page as local files, it's never quite exact. Lots of JavaScript & such seems to trip it up. I'm looking for some way to get a 100% perfect local copy of a web page. In other words, all CSS/images/JavaScripts should pull down as well AND the HTML references to said content should be changed to point to a local folder. Is there a way to do this? I'm primarily on a Mac but I have access to Linux.


I wanted to know if I could delete my own user in my mac, I have administrator permissions. Can I only delete other users or can I delete my own account too? (EDIT : i don't use the Mac anymore so I want to delete my own account, there is an other admin account (the Mac owner). It would save a lot of place in my Mac)


Is there a way to make pretty, colorful blockquotes in LateX     like this?   This might be a duplicate of , but I don't like the ugly gray blockquote which that produces.  I know that answer lets you choose different colors other than gray, but is there a way to add fancy borders     like this   or like on the other StackExchange websites (Math comes to mind for me).


Custom Post Type Pagination for Bones Theme

I am trying to implement pagination to my custom post type and I am using the bones theme framework as well as their function they provide for pagination.  Here is my code  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array(     'post_type' => 'custom_type',     'posts_per_page' => '5',     'paged' => $paged ); $wp_query = new WP_Query( $args ); if ( $wp_query->have_posts() ) :     while ( $wp_query->have_posts() ) :         $wp_query->the_post();?>          //DO STUFF HERE      endwhile;     if ( function_exists( 'bones_page_navi' ) ) {         bones_page_navi();      } else {          next_posts_link( __( '&laquo; Older Entries', 'bonestheme' ));         previous_posts_link( __( 'Newer Entries &raquo;', 'bonestheme' ));     } endif;


Do cell carries have access to FaceTime information?

On the newest iPhone, do cell phone carriers have access to FaceTime call data (such as which caller initiated and ended a FaceTime call)?


I have not been able to watch CBS all access for some time now. Error 2004. I have not found another browser for ubuntu that will play all access either. However firefox for windows plays it fine? Is there a fix in the works for ubuntu firefox?


I have a file with ANSI colors.  test.txt: \e[0;31mExample\e[0m  I would like to display the content of this file in a terminal, like cat does, but I would like to display the colors as well.


Find the sum of the power series $\sum_{n=1}^\infty n*(n+1)*x^n$

$\sum_{n=1}^\infty n*(n+1)*x^n$  Hello everyone,  I need help in solving the question above.  I started with $\frac{1}{1-x} = \sum_{n=0}^\infty x^n$, if differentiated it once so it became $\frac{1}{(1-x)^2} =\sum_{n=1}^\infty nx^{n-1} $ but from here I don't know how to continue. Thanks.


SQL add 2 hour to a column with type "date"

I had a column with dates, in an Select statement, and i want to add 2 h to each row in this Select.  Any advice?


package my.examples.javaexam;  import accessTest.*;  public class DiffPackageSubClass extends Test {     public static void main(String[] args) {         Test t1 = new Test();         System.out.println(t1.a);         t1.display();      } }  package accessTest;  public class Test {     public int a = 10;     protected int b = 120;     protected void display(){         System.out.println("Hello");     }     int c = 130;     private int d = 999; }   Hello.  I am trying to figure how Access modifier 'Protected' works.  I've created two packages 'my.examples.javaexam' and 'accessTest'  As far as I know, you can use protected variables or methods if the class is in different package but is a sub class.  So I made DiffPackageSubClass class in different package but made it inherit Test Class in accessTest package.  However, when I try to execute the code it gives me an error saying that the t1.display(); can not be excuted as 'display()' has protected access in 'accessTest.Test'  I am unsure where did I go wrong with the code :(  I've been staring at the code for a while but still couldn't figure out why it gives me an error.  please help me to understand this


How to Command-X files on OS X El Capitan?

I noticed that Command-X (cut and paste) is greyed out on finder in El Capitan. Is there any way to get it back?  EDIT: WITHOUT Command-Option-V. If possible, way to map command-option-v to command-x would be great....


How to explain these inconsistencies in the R+L=J theory?

I read  recently, and the third theory for Jon's parents suggest that he's the son of Rhaegar Targarean and Lyanna Stark. It has more credence than the other two theories and I am also partial. Assuming it is true, how to explain these two facts?   Jon Snow's hand is badly burned when he fights the wight to save commander Mormont. Dany is near invincible to fire. And she says of Viserys "He was no dragon" when he dies of the burning golden crown. Assuming that fire immunity passes from parents, how to explain the fact that Jon gets burned? (Come to think of it, The burned hand is reminded persistently after that) Jon Snow is a warg. It is never mentioned that Ned Stark is a warg. But seems like all his (real?) children are. Is it a coincidence that Jon is a warg? Can this ability pass from mother's side to a child?


How to pin Eclipse to the Unity launcher?

How can I pin eclipse indigo 3.7 I have 'installed' at /opt/ to the taskbar?  I have tried launching eclipse and right-clicking to choose the 'keep in launcher' option. But when I click that icon, after closing eclipse, it doesn't start eclipse.  I have already looked at  but no answer worked for me. (Mod note: The answers from this thread are now merged into this one)


Which of these Banach spaces are Hilbert spaces?

Let $X$ a set, $M$ a $\sigma$–algebra and $\mu$ a measure. We have known that $L^p(X,M,\mu)$ is a Banach space if $p\geq 1$. In particular when $p=2$, $L^p(X,M,\mu)$ is a Hilbert space,(which are classical theorems.)  My question is, if $L^p(X,M,\mu)$ is a Hilbert space can we conclude that $p=2$?  Or maybe we will add some conditions on $X$ or $(X,M)$ or $(X,M,μ)$?  Help me, please. This question has bothered me for a long time.


Leave US to Schengen on day 180th without any trouble?

The 180th day is September 25 in US after staying 90 days in the Schengen Zone. Could I leave US by plane on 25th (180th day) to arrive Schengen next day, 26th, without any trouble?  (Just need to know if it is okay to get on the plane on 25th (180th day) leaving U.S. for Schengen Area next day, 26th that becomes new 90 days. OK TO LEAVE U.S. on 180th day?)


Could the LHC be used for fusion experiments?

Just looking at the beam energy and peak power for the , 360 MJ and petawatts, respectively, dumped in about 100 µs, would this be sufficient to do useful fusion experiments?


Find the limit of $ a_n =\left(1+\frac{1^2}{n^2}\right)^1\left(1+\frac{2^2}{n^2}\right)^2\cdots \left(1+\frac{n^2}{n^2}\right)^n$

$$ a_n =\left(1+\frac{1^2}{n^2}\right)^1\left(1+\frac{2^2}{n^2}\right)^2\cdots \left( 1 + \frac{n^2}{n^2} \right)^n$$  $$\lim_{n\to\infty} a_n^{-1/n^2}$$  So I tried solving it by taking the logarithm.   Let the limit be $L$.   Hence,   $$\lim_{n\to\infty}\log(L) = \lim_{n\to\infty} \left(-\frac{1}{n^2}\log\left(1+\frac{1}{n^2}\right)-\frac{2}{n^2}\log\left(1+\frac{2^2}{n^2}\right)-\cdots - \frac{n}{n^2}\log\left(1+\frac{n^2}{n^2}\right)\right).$$  This looks like it should be tractable using the definition of   $$\int^1_0 f(x)\,dx =\lim_{n \to \infty} \frac{1}{n}\sum^n_{r=0}f\left(\frac{r}{n}\right)$$  with taking $f(x) = \log(1+x^2)$ but I am not being able to simplify it to the requisite form. I took this approach mainly because we were recently taught this in school, and it seems to work quite well. I would be interested in alternative solutions too of course. Thanks in advance.


Say a company (or a team of contributors to a FOSS project, or whatever other group of people) wants to show off its expertise in some area. Would it be ok for it to create a profile on SO and let the people in the group use the account to answer questions?


Method to derive Matrix description of a circuit

This question is about finding a matrix description of a specific circuit. I am learning quantum computing through edX's Quantum Information Science lecture series. The question below is the one I am stuck on  Could someone please explain a systematic way to go about finding the matrix representation of a 2-qubit circuit (so that I can apply it to this)


What, exactly, is the point of beginning a sentence with "Well..."?

Sample conversation:     Person 1:  What did you think of the movie?   Person 2:  Well, the acting was great, but the plot was terrible.   What does "well" actually add to the body of the sentence?  I have never heard any sentence spoken or written whose meaning was absolutely dependent on beginning with "well".  It seems akin to an "um" or "uh", serving as a vocal void filler while the speaker collects their thoughts and puts their words together before actually speaking them.  If that's the case, why do people actually type it?  People clearly have time to think about what they're going to say before posting a comment on a blog or replying to an email.  Has it become a sort of accepted language anomaly much in the same way Midwesterners like to say things like "Where did you put it at?"


CSS not loading on Stack Overflow (or, Eeeek! Why is StackOverflow naked??)

Stack Overflow seems to be having some CSS issues right now. At first, it presented as CSS disappearing when refreshing in Firefox (though hitting Enter from the address bar seemed to restore it - I'm thinking that's a cache issue though). I loaded my blank Firefox profile and discovered CSS wasn't rendering on Stack Overflow at all (Meta seems fine; haven't checked other SE sites).  I've since checked the site in Chrome and Opera, and can repro in both.


The screen brightness of my laptop is always full when I log in Ubuntu. When I set it low and restarts its again on its maximum. I want it to remember my last choice. How to do this?


I read out a data-attibute, then I want to convert the string "true" into a boolean. At the moment I have to do a comparison in the javascript, is there a better way to do it? I don't know how to use this   HTML  <div data-nav='{ "nav": "true"}'>   JS      var data = JSON.parse($nav.attr('data-nav').toString());     data.nav = (data.nav === "true") ? true : false;


Why does my final render image have white particles all over the lighting area?

How can I get rid of those little white dots? I am using Blender 2.70a.


Suppose I have 8 teams $A_1,\ldots, A_8$, competing in different 8 games $X_1,\ldots, X_8$. For example $X_1 = soccer, X_2 = basket ball, \ldots,$ . In the morning there are 4 games $X_1,X_2,X_3,X_4$ take place, with 16 matches. In the afternoon there are another 4 games $X_5,X_6,X_7,X_8$ take place with 16 matches again. Can I schedule (I can freely choose any game) such that:  a) Every team participate in 4 different games in the morning and 4 different games in the afternoon.  b) Every team has a change to meet with another 7 teams?  c) Each games need two teams to play in one match?


OnClick Event Triggered on button click and Division, that button is inside that DIV

I am new to Javascript event handling, today I have encountered an issue for click event,
        some more stufff    <button onclick='remove(1,1);'>remove</button>
   Now, When I click on the button, the remove functions called then the editField function too. I know why it called...  I want to prevent the editField function when the button gets clicked.  Thanks in advance!


Words ending in -ht, words ending in -th

Look at the endings of the following words:  blight, bought, breadth, brought, caught, delight, depth, fifth, fought, fourth, fright, freight, height, light, plight, taught, thought, width, ...   As you may have already noticed, some of the words in that list end in ht, whereas the rest of them end in th. I have some questions regarding those endings:  I. Do all words of the English language that end with ht end, actually, with ght?  II. Is there any rule of thumb out there that helps one to recall (or determine) when the ending of a given word is th and not ht (or the other way around)?  Thanks in advance for your insightful replies!


I am reviewing the Close votes. I came across a question, so I thought it should be closed. I was checking the existing close vote, the number in indicator is shown with Off Topic radio but when clicked on radio button, it is not reflected which option from Close vote is selected. I am using Chrome 33 on Windows 7, if it matters.  See below attached images:


Legality in Standard of Standard-legal cards from previous printings

Say I have a copy of Llanowar Elves from the 2017 Core Set. Can I put it in a current Standard deck, or do I need to have a version from currently Standard-legal set?


Using the Magus' Spellstrike with Held Charge

When holding a charge, whether because the initial touch attack missed or was not used, does Spellstrike allow for the use of the Magus' weapon for subsequent attempts? For instance,   Casts Shocking Grasp Uses Spellstrike to deliver spell through sword Misses with attack roll   Would the Magus then be forced to deliver the spell via a standard touch attack?


Apparent energy loss due to acceleration

Imagine two objects of mass $m$ each (both of them in outer space), with initial velocities $v_0$ and $0$. Now I apply a constant force $F$ on both of them for time $t$. Now the change in energies of the masses are $$\Delta E_1=m v_0\Delta v + \frac{1}{2}m\Delta v^2$$ $$\Delta E_2=\frac{1}{2}m\Delta v^2$$ What these equations are saying is that I lose more energy when I try to accelerate an already moving object (same amount of momentum transfer doesn't mean same amount of energy transfer). This doesn't make sense. If I look at it mathematically, i.e $dW = \vec{F} \cdot \vec{ds}$, I completely understand why I'll have to spend more energy on the moving object. But for some reason my intuition says if I apply same force on objects moving at different velocity for the same amount of time, I'll lose the same amount of calories. Where is my intuition wrong?


Hie. My operating system won't play any other audio format except .flac so whenever i try playing playing an mp3 or wma file etc it says could not find required plugin. In need of a solution.  Thanks


Can I use Ubuntu on my Dell Venue 8 pro?

I am using a Dell Venue 8 pro. I think Windows 8.1 is not a good OS for tablet devices. I believe that Ubuntu is working well on tablets, but I've read that people are having issues with touch input and internet access when running Ubuntu on this device.  Is it possible to use Ubuntu on Dell Venue 8 pro?   If it is possible, how can I boot it?


Why Curve25519 for encryption but Ed25519 for signatures?

NaCl and libsodium libraries use Curve25519 for authenticated encryption (actually for sharing a key which is used for encryption) and Ed25519 for signatures. What is the purpose of using different primitives for these operations? Why just not to use the same primitive for both key-sharing and signatures?  Are there some security or performance considerations? But both key-sharing  and signing rely on multiplication of curve point by scalar so I guess you can't gain anything here by using different curves. If one of the curves is faster it should be faster in both cases.


Return Muitiple Int Values From Method java

I want to return tow values from fallow method public  Double MyCalc(double a, double n)     {          a=a/2;         double d;         double m;         double l;         double q=0;         double af=0;      if (n <= 100000000)     {         d = n * 0.5 / 100;         af = (d * a / 100);         q = d;        // x1 = af;         return q;     }   I want return q and x1


Does the boundary of an open set have measure zero (in $\mathbb{R}^n$)?

When studying weak border conditions (in Sobolev Spaces), the usual motivation for the weak meaning of inequalities is that the boundary of most open sets in $\mathbb{R}^n$ has zero Lebesgue measure. But is there any open set $U\subseteq\mathbb{R}^n$ such that it's boundary has positive Lebesgue measure? I really can't think of anything like that.


Does flagging a question as duplicate require that the original must have an answer?

Today was my first attempt at flagging a question as a duplicate. When I stepped through the flagging wizard, I noticed the comment below the "duplicate" choice that says "This question has been asked before and already has an answer."  Does flagging a question as a duplicate really require that the original must have an answer?   says that it is not so, and that only the content of the questions is relevant. But then, why does the flagging wizard contain the comment quoted above? Am I too strict and should just accept the comment as a guideline instead of as a hard rule?  If it is of any interest, the questions I am talking about can be found ,  and . At the time of writing, none of the questions has an accepted answer, or an answer that seems to solve the problem.


Creating custom CRS for India toposheets using QGIS?

Indian toposheets (pre-2000 series) of 1:50k scale are in Polyconic projection, with Everest 1956 spheroid and India-nepal datum. How do I create a custom CRS in QGIS to represent this, so that I can then reproject the topo corners (tic points) to UTM-WGS 84 and then geo-reference the toposheet.


Technically proficient with Microsoft Office Suite? Or Technically proficient in Microsoft Office Suite?  Please help me to understand if the sentence is correct?  Thank You!


Prove: Any prime of the form $3n+1$ is also in the form $6m+1$

Prove that any prime of the form $3n+1$ is also in the form $6m+1$.   So first I found an example... $3(2)+1=7$ and $6(1)+1=7 $. How do I go about a formal proof though?


my HTML is as below:
          perm_identity

one1

two1

three

       Select Service

   I changed the syntax to have the div id "dropdown" inside div id "background_div" (child/parent) because I thought it may help me centre using some sort relative CSS function. I originally had the two divs as siblings... Basically, all i'm trying to achieve is getting the dropdown div smack bang in the middle of the background_div . Be nice to do it in a responsive way too.  Can anyone please provide some CSS script to help me achieve?  Thank you!


Show if an integral domain D satisfies DCC (descending chain condition), it must satisfy ACC (ascending chain condition).

I am trying to prove that Artinian integral domains are also Noetherian, but I don't even know how to start the proof. Any help would be appreciated!


Markov chain: join states in Transition Matrix

I need to merge two states in the Transition Matrix:  For example: I have the matrix below        A       B       C      D      E      F    A  0.5     0.4      0      0      0.1    0    B  0.5     0.1      0.2    0.1    0.1    0    C  0       0.1      0.9    0      0      0    D  0       0        0      0.7    0.3    0    E  0       0.2      0      0.7    0      0.1    F  0       0        0      0.5    0      0.5   And I want to join the states D and E:            A      B        C    (D+E)    F        A  0.5     0.4      0      ?      0        B  0.5     0.1      0.2    ?      0        C  0       0.1      0.9    ?      0     D+E   ?       ?        ?      ?      ?        F  0       0        0      ?      0.5   What are the formulas to obtain the row and column (D+E)?  Using the constraint: "the sum over column must be equal to 1" is simple to calculate the elements:  (A,(D+E))=0.2  (B,(D+E))=0.2  (C,(D+E))=0.1  (F,(D+E))=0.5  How can I calculate the elements of row ((D+E),i)?


Why cannot I change my profile picture on Area 51 like on Stack Overflow?

Why is isn't there any option on Area 51 (like there is on Stack Overflow) to change my profile picture? I tried many ways to change the picture, but I am not able to change the picture.  Note: Kindly check my question. I am not asking about ways to change the profile picture;  I am wishing the profile picture change is like on Stack Overflow. That would be nice!


How to find distance from a point to a set of points whose value is smallest?

I have a point say (1, 4) and a set of points, say, (4, 4), (2, 0) (8, 1). I want to find distance from (1, 4) to the other three that has the smallest value.  Brute force method is to calculate the euclidean distance from (1, 4) to each point and select the minimum.  All the points are not on a line.  I want to do it efficiently.


Why should an action in SR be a lorentz scalar?

I have taken it granted that an action in the special relativity must be a lorentz scalar. However is there a fundamental reason for this requirement? I cannot think of a plausible reason for this question.


How to see featured questions in the Stack Overflow app

How can you see featured questions, i.e., questions with bounties, in the Stack Overflow Android app?


Is there a way to view a comment's source?

Sometimes (old) comments break the parser, so it would be nice to view their code to check what was (actually) supposed to be there. Is there any way to view a comment's source just like the source link in a post's revision?  edit Another application for this would be the ability to better quote comments in an answer without having to re-markdown them.


If $X$ is locally compact and $f : X \rightarrow Y$ is continuous closed and surjective, must $Y$ be locally compact? This seems like it should be relatively simply to answer, but I am unable to find either a proof or a counterexample. Any ideas?


If $$f(x)=\frac{4^x}{4^x+2}$$      Calculate,      $$f\bigg(\frac{1}{1997}\bigg)+f\bigg(\frac{2}{1997}\bigg)+f\bigg(\frac{3}{1997}\bigg)\ldots  f\bigg(\frac{1996}{1997}\bigg)$$   My Attempt:  I was not able to generalise the expression or get a solid pattern, so I started with smaller numbers and calculated,  $$f\bigg(\frac{1}{2}\bigg)=\frac{1}{2}$$  $$f\bigg(\frac{1}{3}\bigg)+f\bigg(\frac{2}{3}\bigg)=1$$  $$f\bigg(\frac{1}{4}\bigg)+f\bigg(\frac{2}{4}\bigg)+f\bigg(\frac{3}{4}\bigg)=\frac{3}{2}$$  I could see that,  $$f\bigg(\frac{1}{n}\bigg)+f\bigg(\frac{2}{n}\bigg)+f\bigg(\frac{3}{n}\bigg)\ldots  f\bigg(\frac{n-1}{n}\bigg)=\frac{n-1}{2}$$  So,  $$f\bigg(\frac{1}{1997}\bigg)+f\bigg(\frac{2}{1997}\bigg)+f\bigg(\frac{3}{1997}\bigg)\ldots  f\bigg(\frac{1996}{1997}\bigg)=998$$  which is indeed the right answer. But I am not satisfied with my method. How else can I solve it?


I submitted a research paper to a journal on 30th July 2015 and its status went 'under review' on 19th August 2015. I did not receive any communication from the journal, so I sent a gentle reminder on 11th Dec. 2015. Unfortunately I did not receive any response again. I then waited until 29th Jan 2016 and sent a reminder email again. Fortunately, the editor replied with "Your paper has been partially reviewed and we are waiting for remaining reviewers' response." The editor assured me that they will encourage the reviewer to submit the response.  Now, the status of the paper has changed from "Under review, date 19th Aug. 2015" to "Under review, date 2nd Feb. 2016".  I do not know what should I comprehend from this change in date?


How to auto accept new ssh fingerprints but decline changed?

I have a script that deals with some servers in an environment where new hosts are added once in a while. I'd like to avoid being asked whether new fingerprint should be accepted but be warned if any previously known fingerprint have been changed. Turning off StrictHostKeyChecking is not an option because it will leave me vulnerable to MITM attacks. What would be the most elegant way to silently accept new servers' fingerprints in this case?


Auto incrementing field that begins with text in ArcGIS Desktop?

I am searching for a way to auto increment an ArcGIS field which begins with text and followed by numbers. Ex. SWCL0000. I have tried the auto increment code in the field calculator but once I added text and a starting number, I kept on getting errors.


Different solutions to $\int^\pi_{-\pi} \cos^3(x) \cos(ax)~dx$

Linked to my previous question, when solving the following integral ($a$ is an integer) I get:  $$\int^\pi_{-\pi} \cos^3(x) \cos(ax)~dx = \frac{2a(a^2-7)\sin(\pi a)}{a^4 - 10a^2 + 9}$$  However, trivially, $\sin(\pi a) = 0$ for all integer values of $a$. Therefore the integral is always equal to $0$. Wolfram Alpha agrees with this solution.  However, let us substitute $a=1$ and $a=3$ into the integral and then solve:  $$\int^\pi_{-\pi} \cos^3(x) \cos(x)~dx = \frac{3\pi}{4}$$ and $$\int^\pi_{-\pi} \cos^3(x) \cos(3x)~dx = \frac{\pi}{4}$$  Why do these answers disagree?


Word that describes a word which isn't normally used in an everyday conversation

I remember there was a word which describes a word which isn't normally used in an everyday conversation. Ironically, that word isn't normally used in an everyday conversation.  It's an adjective. In a sentence:     That word is ??????, you don't see it often.   I can distinctly remember that it is used to specifically describe words (and not general events, knowledge etc). A word which is rare/exquisite and isn't seen very often.  What is a word that describes that? I remember it was quite the highbrow word.


How do I share samba via Open VPN? Is that possible?

I have configured open VPN in my home so that it can be accessible from my office easily.  Now I want to share samba via my open VPN. How can I share samba over open VPN between Ubuntu and Windows?  Home public IP: HHH.OOO.MMM.EEE Home desktop IP: 192.168.10.10 Office public IP: OOO:FFF:III:CCC Office Windows desktop IP: 192.168.1.10


I want to save a video file and come back to add more to it later, but every time I try saving it it saves as .blend even though I have it as .mp4. So I'd end up with a file named .mp4.blend. In the output settings I set FFmpeg and h264 in mp4, but it still doesnt save. Help.  Edit: I don't want to render the video yet. Everything I read about of saving a video is by rendering it. I just want to save the file and pick up editing where I left off.


No release file for opensuse website when I run "sudo apt update"

Here's what I get when I run sudo apt update:  $ sudo apt update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease                                                                                Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                                                                Hit:5 https://repo.skype.com/deb stable InRelease                                                                                Hit:6 http://dl.google.com/linux/chrome/deb stable Release                                                                                Hit:7 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial InRelease                                        Get:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                              Hit:9 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial InRelease                            Ign:10 http://download.opensuse.org/repositories/home:/netvirt/xUbuntu_14.10 ./ InRelease Hit:11 http://ppa.launchpad.net/webupd8team/haguichi/ubuntu xenial InRelease Err:12 http://download.opensuse.org/repositories/home:/netvirt/xUbuntu_14.10 ./ Release   404  Not Found [IP: 2001:67c:2178:8::13 80] Hit:14 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease  Reading package lists... Done                       E: The repository 'http://download.opensuse.org/repositories/home:/netvirt/xUbuntu_14.10 ./ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   How do I either fix or remove this repository?