Does the Divergence Theorem Work on a Surface?

The divergence theorem in $\mathbb{R}^3$ says that the integral of the divergence of a vector field over a solid $\Omega$ in $\mathbb{R}^3$ equals the flux through the surface of $\Omega$ denoted by $\partial \Omega$.   My question is that can you use the divergence theorem in $\mathbb{R}^3$ where you're integrating the divergence of a vector field over a surface $S$ in $\mathbb{R}^3$ to get the flux through the edges ($\partial S$) of the surface? So if the surface $S$ is closed in $\mathbb{R}^3$ such as a sphere, then clearly $\partial S = 0$ so the integral of the divergence over this particular $S$ is $0$?


Is it possible to start fire using moonlight?

You can start fire by focusing the sunlight using the magnifying glass.   I searched the web whether you can do the same using moonlight. And found  and  - the first two in Google search results.  What I found is the thermodynamics argument: you cannot heat anything to a higher temperature using black body radiation than the black body itself, and Moon isn't hot enough.  It may be true, but my gut feelings protest... The larger your aperture is, the more light you collect, also you have better focus because the airy disk is smaller. So if you have a really huge lens with a really short focus (to keep Moon's picture small), or in the extreme case you build a Dyson-sphere around the Moon (letting a small hole to the let the sunlight enter), and focusing all reflected light into a point it should be more than enough to ingnite a piece of paper isn't it?   I'm confused. So can you start fires using the Moon?


Are cosigner finder websites like hireacosigner.com, cosignerfinder.com etc. legit?

I am a foreigner to USA and would like to pursue masters in CS in USA. But based on the current state of USD, I won't be able to pay the costs of tuition on my own. So, I will be taking a loan from international student loan lenders.  The thing is, they mostly require US citizen or US PR cosigners, which I don't know any. I have found online that there are websites which offer to find a cosigner for people who have bad credit scores or can't find anyone to cosign their agreements.    I am very sceptical about their services, and mostly think that they are scam, but I don't have much choice left to find a cosigner elsewhere. Just wanted to ask, have you ever heard of these services, and do you believe they are real ?  (Sorry if this is out of context, this is my first question here.)


In the television series Supernatural it is said that upon death, demons go back to hell and vampires and other creatures go to purgatory. Where do angels go when they die?


Create veracrypt traveler disk in Ubuntu

According to , it is possible to create a portable "Traveler Disk" in the application:      Tools -> Traveler Disk Setup      You can use this facility to prepare a   special traveler disk and launch VeraCrypt from there. Note that   VeraCrypt ‘traveler disk’ is not a VeraCrypt volume but an unencrypted   volume. A ‘traveler disk’ contains VeraCrypt executable files and   optionally the ‘autorun.inf’ script (see the section AutoRun   Configuration below). After you select Tools -> Traveler Disk Setup,   the Traveler Disk Setup dialog box should appear. Some of the   parameters that can be set within the dialog deserve further   explanation:   My problem is I can't seem to find Tools → Traveler Disk Setup.    Am I missing something? I want to be able to share files on this disk with people running MS Windows.


How to install R on Ubuntu 16.04 Xenial?

Is there a convenient shell script that allows you to install everything at once?


Am I on the right track to proving this statement about composite function?

Let $S = \{1,2,3,4\}$. Let $F$ be the sets of all functions from $S$ to $S$.  Now I think this statement is true:  $\forall f \in F , \exists g\in F$ so that $(g \circ f)(1) =2$  I suppose $f \in F$, and I need to show that $\exists g\in F$ so that $(g \circ f)(1) = 2$  Do I just make an example  of $g$ so that $(g \circ f)(1) = 2$ ?  Like $f(1) = y$  and then  $g (y)=2 ?


What is the accepted stance on using "they" in a singular form?

Is it good English to say "They have just left", when talking about a single person (perhaps someone you don't know the gender of)?  (I am a native English speaker, I'm looking for the view held by lexicographers).


Why don't I see network manager icon on the GNOME top bar?

I just started using Ubuntu GNOME 14.04 LTS. From the 'Help' application I see that there ought to be certain icons if I am using a wired connection on my GNOME top bar as shown below:    But there isn't any! I see only a couple of icons on my top bar as shown below:    So how to get those icons on my top bar? I can't right click on the top bar too! I am not able to know if I am connected to the internet without this. I ought to enter my browser and search for google or something to know if I am connected. So need help here!   PS:- BTW I see that there aren't many icons on my top bar. Is this normal? Am I missing any other default icons? If yes can you tell how to get those? BTW I have libappindicator 1 and libappindicator 3-1 installed. So, that shouldn't be a problem. Also I tried  but it didn't work. Let me also add that I changed to a different icon theme too but that also didn't help(presently using numix-circle theme). The default tweak tool also doesn't seem to have any options to solve this issue of mine.


Prove that if two linear functionals $ p[h] $and  $ g[h] $ defined on the same space vanish on the same set of elements, then $$ p[h] = \lambda g[h] $$, where $ \lambda $ is a constant. I am not sure how to start it...


How to determine the character encoding that a terminal uses in a C/C++ program?

I've noticed that SyncTERM uses a different character encoding than the default MacOS terminal emulator, and they're incompatible with one another.  For example, say you want to print a block character in a format string.  In SyncTERM, which uses the IBM Extended ASCII character encoding, you would use an octal escape sequence like \261.  In Terminal.app (and probably iTerm2 as well), this just prints a question mark.  Since these terminals use UTF-8, you need to use the \uxxxx escape sequence.  So let's say you want to print a certain, not-ASCII, character in a format string, and you want it to work in all terminal emulators, regardless of character set.  I'm guessing you would use an entry in the terminfo database, but I'm not really familiar with terminfo.  I need some pointers here.


"Does god exist?" Is this question correct?

Before going into the topic first let me clarify what I will refer to as "god" in this passage. God, I think should be referred to as something that is analogous to the axioms of a formal system. First of all, we have not been able to define god, and possibly cannot, since we are within the system. Verification of existential claims can be done in two ways. One is the empirical verification. Suppose you are told that a centaur exists. You know all the properties of the creature. In that case you can go in search of the creature yourself. This is empirical verification. The other way is to run an ontological argument using the definition of the object the existential claim of which you have to verify. For example, if you are told that a four-sided pentagon exists, you need not go in search of one, since by definition pentagons are five-sided. In this case you are basically using the definition to arrive at a contradiction. Many philosophers have tried to define god in many ways. In every definition I have seen, there is some inconsistency. My point is that since god (if it exists) is analogous to the axioms of a formal system, how can we define god within our system? And if we can't define god precisely then how can we prove or disprove the existence of god within our system. Doesn't the question of existence of god seem to be logically not sound?


Why does C# XmlDocument.LoadXml(string) fail when an XML header is included?

Does anyone have any idea why the following code sample fails with an XmlException "Data at the root level is invalid. Line 1, position 1."  var body = "<?xml version="1.0" encoding="utf-16"?><Report> ......" XmlDocument bodyDoc = new XmlDocument();             bodyDoc.LoadXml(body);


What determines whether IPv4 address or IPv6 address will be used on sites?

When I access my Facebook, for example, sometimes my current connection is listed using a IPv4 address, and sometimes, a IPv6 address. What is responsible for this choice?


I want to print random numbers from -100 to 100

I want to print 10 random numbers from -100 to 100, but my code below always print negitive number. I did not get any answer for this. How to do this ?  import java.util.Random; public class VectorAndList { public static void main(String arg[]){     Random random = new Random();     int number ;     for(int i=0;i<10;i++)     System.out.println(number = random.nextInt(100)+ (-100)) ; } }


Please I have some couple of 3.6v 3Ah cylindrical li-ion battery, but since I bought them, charging it became a huge problem. I first connected a single one to a 2A infinix phone charger (made in china. According to the ratings, it capable of adjusting output current and voltage to load)thinking that if it's capable of charging a 4Ah infinix phone battery then a 3Ah shouldn't be a problem. Until I connected the battery directly to the charger output, after some time, i measured the output voltage of both the battery and the charger, the battery was not charging and the charger decreased it output voltage from 5v to 2v and was also giving me an unusual jolt in my finger. I concluded that the charger has damage. I tried it again with a similar charger, but this time a TECNO phone charger, but the same result. I then found another SMPS charger 12v, 1.2A. In my desperation, I ignorantly implemented a '7805' regulator ic to drop the voltage to 5v(since using a smps to regulate a smps sounds absurd). When I connected the battery, I measured the charging current, and I was so surpries to see 2A.From a 1.2A(short circuit current) SMPS. So please where did I went wrong and how can I charge my batteries before it damage.


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


Ubuntu 18.04 hangs on booting with message "started user manager for uid 120" on Asus 1015PX

I installed Ubuntu 18.04 amd64 desktop on Asus Eeepc 1015px, but it hangs on booting. The last message is 'Started User Manager for UID 120'.  I managed to boot up in recovery mode and finished the installation with 'sudo apt-get upgrade', but nothing has changed.  Does anybody know how I can tackle it?  Thanks in advance, Newton.


What is the recommended way of creating enum-like behaviour in PHP 7?

Somewhat surprisingly, PHP does not have native support for enumerations. With PHP 5.4, the native extension  could be used to emulate this behavior with SplEnum, but the last update to this extension was in 2012. On PHP 7, attempting to install the extension will throw compilation errors due to changed interfaces.  As such, I wanted to know what the currently recommended way of getting enum-like behavior is. I want to be able to write code at least similar to this:  enum DaysOfTheWeek {     Monday = 1,     Tuesday = 2,     Wednesday = 3,     Thursday = 4,     Friday = 5,     Saturday = 6,     Sunday = 7 }  $day = DaysOfTheWeek::Monday; echo $day; //Prints 1   My current code looks less concise and has lots of (unnecessary) overhead:  class DayOfTheWeek {     private __value;      const Monday = 1;     const Tuesday = 2;     const Wednesday = 3;     const Thursday = 4;     const Friday = 5;     const Saturday = 6;     const Sunday = 7;      public function __construct(int $value)     {         if ($value !== DayOfTheWeek::Monday             && $value !== DayOfTheWeek::Tuesday             && $value !== DayOfTheWeek::Wednesday             && $value !== DayOfTheWeek::Thursday             && $value !== DayOfTheWeek::Friday             && $value !== DayOfTheWeek::Saturday             && $value !== DayOfTheWeek::Sunday         )         {             throw new InvalidArgumentException("Invalid day of the week");         }     }      public function GetValue(): int     {         return $this->__value;     } }     Some clarifications:  Why not use an abstract class with a few constant values?  Because this completely defeats the idea of type hinting in PHP 7. The idea is that I can tell a function to accept an instance of this enumeration and be sure that it's a legitimate value.  Why don't you optimize the days of the week? You could make the check simpler by seeing if it's between 0 and 6.  Because enumerations don't have to be in order, or show any relation to each other. An enumeration could have the values 56, 1999, 120, -12400, 8, -1239 and 44. Code for an enumeration should not depend on the values of the enumeration.


How do I start?  I want to open a DXF or a DWG file and then to export it to a KML file to be used in google earth.  Have no idea how to start doing so.


Is there a way to hide all the origins in the 3D view?

Is there a way to hide the selected object's origin in the 3D view? By default all unselected object's origins do not show, but even after deselecting everything with A A it still shows the active object's origin. I know the Only Render checkbox will hide all the origins, but in this case it hides too much.


I want some proof for the following statement :  $L^1$ and $L^{\infty}$ are not reflexive.  Can anyone help me, please? or reference me?


Does the community user only edit http to https?

I saw some posts that were edited by community yesterday. When I checked the revision history, the edit was edited http to https.  Does the Community User only change links from http to https, or are there other automated tasks created to perform this edit?


Get Whole Number for Power of 100 with PHP ( Question with PHP POW function )

That is my code below to get "100 power of 2 in PHP", echo pow(2,100);   I would get the result as 1.2676506002282E+30, However, I wish to get a whole integer of the result. How should I do it with PHP？


Why do we experience more centripetal force when we make a sharp turn compared to a wide turn?

If $F=m\omega^2r$, why do we experience more force when we decrease the radius of the turn?


Is it possible to have a "coloured" dotted columns separator instead of a regular one, to separate the columns in the multi-column page layout?


Photoshop: How to crop multiple selection and save into separated images

Take a look on this image:  My question is how to crop multiple selections at once into images (each square of comic strip). I want to select each frame of the comic and export them as individual images and do multiple exports at once. Do you have any suggestion how can i do this?Sorry, but i don't have any clue how to do this. Thanks in advance


How to remove screws with stripped heads?

I have wood screws whose heads are stripped from trying to remove them with a drill. The drill (or screwdrivers) can't grip the heads anymore. What can i use to remove these screws easily?


Should I use ANOVA or MANOVA for this repeated measures experiment?

I would like to test for the difference of measures between genders. Repeated measures were carried out. What test would you suggest is best for this and what would be the degrees of freedom considering:      there is no change in conditions uneven group size (females=6 and males=4) missing repeated measures (8 levels) between 3 subjects**     The Data Explained There are 6 females and 4 males = 10 subjects in total 28 Repeated measures (events or levels) per person with no change in condition except time.  28 x 10 subjects = 280 repeated measures (rm)  At each level there should be:   19 ordinal independent variables (IV)   from which  7 continuous dependent variables (DV) are recorded  19 (IV) x 7 (DV) =  133 measures (one level per subject) 133 x 28 rm per subject = 3724 measures (all levels per subject) 3724 x 10 subjects  = 37240 total measures of data   Missing data (from the expected totals as described above)  8 levels of data between 3 subjects are missing:  2 events (rm) missing for 2 males  4 events (rm) missing for 1 female 280 rm - 8 rm  = 272 rm in total 8 missing rm x 133 measures per rm = 1064 total measures missing  37240 - 1064 = 36176 total measures of data


Calculate the Pontragin dual $\text{Hom}_{\mathbb{Z}}(\mathbb{Q}/\mathbb{Z}, \mathbb{Q}/\mathbb{Z})$.

I'm calculating the $\text{Ext}^1_{\mathbb{Z}}(\mathbb{Q}, \mathbb{Z}, \mathbb{Z})$. In particular, $\text{Ext}^1_{\mathbb{Z}}(\mathbb{Q}, \mathbb{Z}, \mathbb{Z}) \cong \text{Hom}_{\mathbb{Z}}(\mathbb{Q}/\mathbb{Z}, \mathbb{Q}/\mathbb{Z})$ the Pontragin dual. However how should I see what this group is? I only know that for finite abelian groups on the first position, this dual is isomorphic to it self. But no idea for infinitely generated groups.


Javascript Order of Operations with Dynamically Created Elements

I am using jquery to pull in JSON and loop through the results to create a collection of items.  Namely, Anchors with a few data attributes.  I then am watching those items so that on click I can pull the relevant data attributes and... do things with that data.  When I hard code in the anchors with the data, everything works great.  When I create them dynamically through the JSON I get nothing, and the page refreshes.  jQuery( document ).ready(function() {      $.getJSON("http://glacier.creativefilterdev.com/wp-json/wp/v2/chocolate?categories=42&per_page=100&order=asc", function(result) {     $.each(result, function(i, item) {          if(item.better_featured_image == null){          } else {             $(".white").append("
" + item.title.rendered + "");         }     });     });      jQuery("a[data-text]").click(function(){         if(howMany < countVar) {             howMany += 1;             var imgurl = jQuery(".single").val();             var structure = jQuery('
-
');             jQuery('.buildbox').append(structure);             jQuery("#alert").css('display', 'none');        } else {              jQuery("#alert").css('display', 'block');        }        return false;     }); });   I apologize as there is code in there that I haven't explained as that is the "stuff" I'm doing with the data from the anchors.


Custom variable in custom block template

I'm trying to create a block that will pass a variable to its template. For now just some text but it will be an array later.  The default block variables such as label are working but I'm unable to get the value to show up in template.  Any ideas ?  FrontAppsBlock.php  namespace Drupal\custom_blocks\Plugin\Block;  use Drupal\Core\Block\BlockBase; use Drupal\Core\Block\BlockPluginInterface; /**  * @Block(  *   id = "front_apps_block",  *   admin_label = @Translation("Front Apps Block"),  * )  */ class FrontAppsBlock extends BlockBase implements BlockPluginInterface {    public function build() {     return array(       '#theme' => 'front_apps_block',       '#app' => 'test value',     );   }  }   custom_blocks.module  function custom_blocks_theme($existing, $type, $theme, $path) {   return [     'front_apps_block' => [       'variables' => [         'app' => null       ]     ]   ]; }   block--front-apps-block.html.twig
test: {{ app }}

label: {{ label }}


Color gradient to show direction in polygons (filling, color ramp, gradients)

My data is 2 point-layers: 1 layer origins and 1 layer destinations. I connected these pairs of origins and destinations: firts with lines. As I know that in qgis, there is still no gradient fill for lines, I did a very small buffer on mi lines. And now, I have polygons, wich represent my flows, and I would like to represent them with a gradient fill wich show the direction of each flow (it means: from the origin point to the destination one). I have an idea but I don't achieve to go further.   Do you know how to use options of the gradients filling?   I have the idea to use the two Reference Points to represent the orientation of the flow (from origin to destination).   I would like to use 4 table: - abscissa of my origin points (as x of reference point 1) - ordinate of my origin points (as y of reference point 1) - abscissa of my destination points (as x of reference point 2) - ordinate of my destination points (as y of reference point 1) But it doesn't work.


Can QGIS preserve layers when exporting to PDF?

In ArcMap, when you export data to PDF it preserves the layering within the PDF so that you can turn on/off individual map layers (within the PDF itself).  When I export from QGIS to PDF, I don't appear to have the option for this.  Does QGIS support preserving layers when exporting to PDF?  Is there a special setting needed to enable this capability?  Or has anyone wrote a plugin for this feature?


Today, I just received an upvote on 9 of my answers at about the same time. I've read a little on here and saw that "serial" upvoting causes you to lose the rep after. My question is, I also got a badge because of this, will I lose the badge as well?   Also, if they upvote 9 of my answers, will the legitimate one that they upvoted first get it's rep removed as well? Or just the other 8?


Is there a REAL performance difference between INT and VARCHAR primary keys?

Is there a measurable performance difference between using INT vs. VARCHAR as a primary key in MySQL? I'd like to use VARCHAR as the primary key for reference lists (think US States, Country Codes) and a coworker won't budge on the INT AUTO_INCREMENT as a primary key for all tables.   My argument, as detailed , is that the performance difference between INT and VARCHAR is negligible, since every INT foreign key reference will require a JOIN to make sense of the reference, a VARCHAR key will directly present the information.  So, does anyone have experience with this particular use-case and the performance concerns associated with it?


Meaning of \d{1-3 }in regular expression

I've been searching for a long time but didn't find an answer for my question, can tell me what the meaning of  (?:[-\w\d{1-3}]+\.)+   and not   (?:[-\w\d{1,3}]+\.)+   I don't understand the {1-3} part and can't find anywhere what it's mean. Thank you


The Pip program is included by default with Python 3.4, and can also be installed on older versions. The aim is to provide a standard method of installing additional Python modules, which are available from the   For example, to add the PyOpenGL module, you can now just do this  pip install pyopengl   And Pip will take care of the rest. I can see that this would be very useful on systems other than Ubuntu-based ones. But I could just as easily do this  sudo apt-get install pyopengl   and the end result is the same.   So my question is, is there any reason to use Pip on Ubuntu at all, can I just stick with using Synaptic, or should I always be using Pip for Python packages (where they're available, not all are), or does it really not matter?


Suppose we have an experiment with two containers, one with ice at 0°C and the other with water also at 0°C (equal masses), and a thermally conductive barrier (also at 0°C) in contact with both the water and the ice, and in between them.  The whole experiment itself is insulated from the environment.  What is the final state of the system?  Does it remain unchanged, because with no temperature difference there is no heat flow?  Or does it random walk itself somehow to a final state with 50/50 water/ice slush on both sides?


Ubuntu 15.10 Startup USB does not contain wubi and cannot boot in Windows

I downloaded Ubuntu 15.10 and created a startup disk with two different programs (xboot and pendrive...) The result in both cases is a startup disk that cannot start up/boot in Windows. And no .exe file also to start it from Windows. Only startup disks with older versions, e.g. 14.10 can be created in a proper way. Why is that?


When a ball rolling without slipping along an inclined plane reaches the bottom, it has a linear velocity $v$ and angular velocity $\omega\ =v/r$ at the bottom. Then it continues its motion on the horizontal floor. At the moment it reaches the bottom, the point of contact of the ball with the floor is at rest, and there is no external force that could cause slipping. We can think that in this case there would not be any friction. But if there is no friction, the ball will continue to move FOREVER, which apparently does not happen. What is the explanation?


Unmet Dependencies while installing R on Ubuntu 16.10

I followed the instructions on this  Ran the following commands sequentially   sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list' gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 gpg -a --export E084DAB9 | sudo apt-key add - sudo apt-get update sudo apt-get -y install r-base   I am getting the following message upon execution of the last command       Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  r-base : Depends: r-base-core (>= 3.3.2-1trusty0) but it is not going to be installed           Depends: r-recommended (= 3.3.2-1trusty0) but it is not going to be installed           Recommends: r-base-html but it is not going to be installed E: Unable to correct problems, you have held broken packages.


As all we know, this command is very danger, i have an idea as following, but i don't know how to accomplish. If you have best solution for it, welcome to write down.  I think we can create a directory to simulate trash, every time we delete something, those files/directories be moved to the trash, and there is a regular script, remind us of emptying trash.


What is the process for reporting or assessing potentially dubious questions?

This is a meta question and personally, I think the answer should be on the footer of EVERY PAGE.  What is the process I ought to follow if I feel a question is of a dubious or unethical nature?  I did a few quick searches and found nothing obvious.  Considering the content of this family of web sites; it might be good to sometimes to nominate questions some vetting and perhaps ask for the use-case or application.  Like what if I asked, "how to programmatically coordinate multiple helicopter drones to converge on the New York Twin Towers in 1998?"    I'd like to imagine that kind of question gets bumped to some kind of "use case review" meta-management role to just ask the errant quester:   "Why did you ask?" or  "What will you use it for?"   I'm naive perhaps, not yet dumb.


Find all real solutions for the system: $ x+y-z=-1$, $x^2-y^2+z^2=1,$ $-x^3+y^3+z^3=-1.$

Find all real solutions for the following system:   $$ \left\{  \begin{array}{l} x+y-z=-1 \\  x^2-y^2+z^2=1\\  -x^3+y^3+z^3=-1 \end{array} \right.  $$   From a math olympiad (IberoAmericana, 1992). This was taken from a book, with no answer provided.  My usual tricks using symmetric polynomials appear not to work here (or I'm don't know how to apply them). A possible solution (by inspection) is $(x,y,z)=(-1,-1,-1)$, but there might be others.   Hints and full answers demonstrating all possible solutions are appreciated.


Proof of inequality $n!\leq(\frac{n+1}{2})^n$

I need to prove the following inequality:   $n!\leq(\frac{n+1}{2})^n$  Thank you very much for your help.


CPU under load despite removing all process affinities

I've installed Process Lasso and in All processes tab, set all affinities to 1-7, meaning that all the processes can be start on all my CPUs except the first one. Yet, there is a huge load on my first CPU.   I personally have no clue what's happening here and really appreciate any help.  My system is:   Intel core i7 - 4720 HQ  2.6 GHz upto 3.6 Windows 10 (64 bit) NVidia GTX 950 M   This screenshot, shows the software's interface. Those 8 green bars on upper right show my CPU usage. Also the column called Rules, indicates the affinities on the processes.       PS: These are screenshots that show the more familiar Task Manager and Resource Monitor. I've sorted all with respect to their CPU usage. Note that the overall CPU usage is just fine (less than 30% most of the time), but in Resource Monitor, same as the Process Lasso, it's obvious that that most of the load is on CPU0 and the others are almost free.  Also I found out that my total CPU usage, is actually more than all my processes altogether! The orange line in Resource Monitor picture, shows the amount of CPU usage of all my processes. (I did the same in safe mode. Orange line, exactly coincides the total usage in safe mode. So I'm suspecting that something is happening in my normal boot.)


C++ Using template with struct in .h file , get unknow error

Tried to make custom ArrayList ,  the first error told me to add Type Tamplate () to  struct ListNode.  But after follow an error instruction , got new error instead.  " Symbols not found for architecture x86_64    #ifndef LINKEDLIST_H  #define LINKEDLIST_H   #include <iostream>  #include <string>   using namespace std;   template<typename T>  struct ListNode<T>{        T value;        ListNode<T>* next;         ListNode(T d,ListNode<T> *n){        value = d;        next = n;      }  };    template<typename T>  class LinkedList  {  public :      LinkedList();      LinkedList(const LinkedList<T>& another);       ~LinkedList();      void copy(const LinkedList<T>& another);      void add(T value);       void remove(int index);       int get(int index) const;       bool isEmpty() const;      int size() const;      string toString() const;      void clear();      LinkedList<T>& operator = (const LinkedList<T>& another);   private :      ListNode<T>* x_front;      int x_size;  };   #endif // LINKEDLIST_H   .CPP   #include "linkedlist.h"  #include "strlib.h"  #include <string>   using namespace std;   template<typename T>  LinkedList<T>::LinkedList(){        x_front = NULL;        x_size =0;  }   template<typename T>  LinkedList<T>::~LinkedList(){      clear();  }   template<typename T>  LinkedList<T>& LinkedList<T>::operator = (const LinkedList<T>& another){      delete x_front;      copy(another);      return *this;  }   template<typename T>  void LinkedList<T>::copy(const LinkedList<T>& another){       ListNode<T>* anotherCurrent = another.x_front;        while(anotherCurrent!=NULL){            this->add(anotherCurrent->value);           anotherCurrent = anotherCurrent->next;        }   }   template<typename T>  void LinkedList<T>::add(T value){      if(x_front == NULL){          x_front = new ListNode<T>(value,NULL);      }      else {          ListNode<T>*current = x_front;          while(current-> next != NULL){              current = current -> next;          }          current->next = new ListNode<T>(value,NULL);      }      x_size++;  }   template<typename T>  void LinkedList<T>::remove(int index){       if(index==0){          x_front = x_front->next;      }    else  {            ListNode<T>* current = x_front;            for(int indexNow = 0 ; indexNow < index -1 ; indexNow++){                                             current = current->next;            }            current -> next = current -> next -> next;     }     x_size--; }   template<typename T> bool LinkedList<T>::isEmpty() const {     if(this->x_size == 0){         return true;     }     else {return false;} }  template<typename T> void LinkedList<T>::clear(){     while(this->isEmpty() ==false){         remove(x_size-1);     } }  template<typename T> string LinkedList<T>::toString() const{     string mystring;     for(ListNode<T>*p = x_front; p!=NULL ;p = p->next){          mystring = mystring + " " + integerToString(p->value);     }     return mystring; }  template<typename T> int LinkedList<T>::size() const{       return (this->x_size); }


Checking for existence of a page by title?

I'm currently working on a plugin, and I essentially want to check if a certain page has been created.  Essentially, I want to do something like this:      if (file_exists($file)) {     $exists = true; } else {     $exists = false; }   But I just want to do it so that it checks, instead, for a post_name value. (If I was further able to ensure that the post was a page and not just a post with that title, that would be great too.)  How do I do this?  I had been getting the script to grab the headers from the url of the post and if it returned a 404, to return $exists = false, but I've pinpointed a memory leak problem with that and I don't think it's very efficient.


Can quantitative model explain away our world?

So, for the sake of argument, let us assume that we have sufficient computational power and brightest scientists. Can we explain/predict every aspect and event of our universe with quantitative model?  Or do you think there are certain aspects within universe such as probabilities and psychology that are naturally beyond quantitative approach?


Gauss's Lemma for polynomials claims that a non-constant polynomial in $\mathbb{Z}[X]$ is irreducible in $\mathbb{Z}[X]$ if and only if it is both irreducible in $\mathbb{Q}[X]$ and primitive in $\mathbb{Z}[X]$.   I wonder if this holds for multivariable case.      Is it true that a non-constant polynomial in $\mathbb{Z}[X_1,\dots,X_n]$ is irreducible in $\mathbb{Z}[X_1,\dots,X_n]$ if and only if it is both irreducible in $\mathbb{Q}[X_1,\dots,X_n]$ and primitive in $\mathbb{Z}[X_1,\dots,X_n]$?    Thank you for your help.


Why are POSIX Find Parameters Different from Other Program styles?

Why is a parameter in the POSIX find command added with a single hyphen for multi-character parameter names, while most other programs use single hyphen to indicate multiple single-character flags, and double-hyphens to indicate single parameter names with multiple characters?  This seems inconsistent, and I'm curious as to  A. why it's really not inconsistent, or  B. the history of that decision.


Brackets around tags disappear from search after captcha

I clicked a tag from a user profile on a site where I don't have an account. The address was:        It then took me to the "nocaptcha" page which I passed (with flying colors) by clicking the magic checkbox. I was then redirected to the search, but with brackets that surrounded the tag removed:        Clearly the brackets should be retained through this captcha detour.


What is the role of the constructor in java

we  know that new Instance()  subclass in java , the first recursive call will be the parent class constructor,If the parent class is an abstract class,will be Calling its constructor? if this true ,Means that the parent class will be instantiated？ But the abstract class can not be instantiated,Who can explain this question. Thank You.


Given entire functions $f$ and $g$ with $|f| \leq |g|$, show $f/g$ is entire

Clearly $f$ has zeroes everywhere $g$ does, and since $|f/g| < 1$ in a deleted neighborhood of each of $g$s zeroes any singularities are at worst removable, but I haven't got a clue where to go from there.


Why is the state of a simple compressible system completely specified by two independent intensive properties?

According to the , the state of a simple compressible system is completely specified by two independent intensive properties. My doubts are...  What is a simple compressible system and how does it differ from other systems? Why cant we use two dependent intensive properties to specify the state? What is the problem if someone uses extensive property like total volume to specify the state of a system?


How does the human ear guess the direction of the source?

Suppose a sound is produced behind you. You can easily tell that the sound came from behind.  Our ear lobes face towards the front and hence traps the sound waves which come from the front. Yet, we can detect   that the sound came from behind.  How does the ear/brain manage to identify the sources of sound accurately?


I've noticed things like this work:  let x = { a: 1 }; function reassignProperty(obj, key, newValue) {   obj[key] = newValue; } reassignProperty(x, "a", "hello"); console.log(x.a); //prints hello   But this doesn't:  function reassignObject(obj) {     obj = { a: "some new value" }; } reassignObject(x); console.log(x.a); //still prints hello   It seems you can reassign properties of an object (pointers within an object), even if the values are reference types themselves. i.e. we could do things like reassignProperty(x, "a", { inner: 55 }), and it will still be the same outside the function scope. But reassigning the reference to the object itself doesn't?  I've seen people argue javascript passes variables into functions by value, but not by reference. Why then does it seem to able to reassign the properties inside the object, and have access to the changes outside the function scope? This doesn't seem to me to be strictly "pass by value"


What is the best way to scan over a list of somethings?

It seems that a common operation needed when defining new commands is to scan over a list of arguments (separated e.g. by a comma, but maybe by something else) and do something with each argument in the list, find the last one, or whatever.  For example to write commands that look like \Command{a,b,c} or \Command{c.d.e} and do something with each a, b, and c. See e.g. questions on  and .  Some solutions have been posted there, but what would be the best idiom to perform such kind of operations? LaTeX's \@for looks very nice, but is it possible to use it to scan anything other than comma-separated lists?


I'm using jquery 1.9.1. i need to catch focusout event when click outside of div. I'm using id for do this. here is my code,  HTML :  <div id="mydiv"> </div>   script:   $('#mydiv').focusout(function (){         $(".num_C").removeClass('change_bg');       });   this focusout not working as i expected. how to catch this event. i need remove .num_C class when click outside of #mydiv. anyone got this. can i give solution for do this ?


Number of sites is different on SE homepage and SE sites

When you scroll over the Stack Exchange symbol in the top left corner of every SE site page, it tells you the total number of sites on the SE network. For some reason this number is 138 on any SE site (or at least the ones I've checked this on), but 140 on the SE homepage (the page with the hot questions). Here it is on the SE homepage:  Here it is on Meta (also on SO, Lifehack, Worldbuilding, and Puzzling, and probably other sites too)  I checked the  on SE and it says 137 sites. Obviously there's some bug here. I haven't counted the sites (too lazy) but I've been told that it is actually 138. I'm not really sure why it's happening, but this may confuse some people.


I'm new to Ubuntu and I was trying to download gazebo 11 and I did but now every time I try to update or install it's keep coming up with this error saying E: Malformed entry 1 in list file /etc/apt/sources.list.d/gazebo-stable.list (Suite) E: The list of sources could not be read. These are the file contents deb  bionic main Can you help me please? Thank you


How to get objects from different files into one file?

When I click open, I get to I wanted to open, but I lose everything else. How can I open two files into one?


How to store large 20 million digit number in php?

I searched and I found that I can use number_format function in php. But it can't even store 1 million digits . I am getting output as inf. Can someone help me please. If it's not possible in php then can it be done in C++ or Java ?  Update: I am using GMP but when I run script browser sent me response as "this site can't be reached, connection was reset". I disabled max execution time but it gives me same error. What should I do? Do I need to do any other changes in configuration?


Does this email mean that I have been granted the visa?

I received the following email this morning. Does it mean that my visa has been granted?  UK Visas & Immigration has now assessed your UK visa application and made a decision. Your documents and the decision will be sent back to either the UK Visa Application Centre where you applied, where we will contact you by email over the next few days to collect them, or if you are using the courier return service, will be sent directly back to the address provided. Please note that TLScontact does not know the outcome of the assessment and has played no role in the decision-making process. Kind regards, TLScontact UK VIsas & Immigration


How do I set the computer to suspend when battery is critically low?

I accidentally clicked on the option "When power is critically low" under System Settings>Power. The original entry was blank, but the only two options after I clicked were Hibernate and Shutdown. I want to set it back to Suspend.


I use a BibTeX style which automatically italicises booktitles (using \emph). I have certain entries which contain italicised words in the title. I would like these to appear non-italicised (in roman) in the final PDF output. Using any of \emph or \textit or \textrm on these items doesn't seem to make any difference -- the whole title still appears in italics.  Minimal .bib entry  @PHDTHESIS{klein1974, author = {Klein, Jared S.}, title = {The Particle \emph{u} in the {R}igveda}, school = {Yale}, year = {1974}, address = {New Haven, CT}, timestamp = {2009.12.04} }   Minimal .bbl entry generated by sp.bst:  \bibitem[{Klein(1974)}]{klein1974} Klein, Jared~S. 1974. \newblock \emph{The particle \emph{u} in the {R}igveda}. \newblock New Haven, CT: Yale dissertation.


I am writing a thesis on "Service oriented architectures in safety-critical systems" and this is right where the problem starts.  I am a bit curious about the use of hyphens in "service oriented" and "safety critical".  So far I have encountered the following versions in literature:  service-oriented, service oriented, as well as safety-critical and safety critical.  Additionally, the sources disagree on the correct abbreviation of "service-oriented architecture". There are the versions SoA, as well as SOA.  Is there a particular way to deal with these terms, or can they be defined arbitrary, as long as they are spelled the same way throughout the document?


Ok I knew nothing about the definition of mass but I do know that mass can be converted into energy and vice versa. And I read that anything that have stress, energy and momentum will bend spacetime,    what about mass, how does it affects the geometry of spacetime?


Adding layers to GeoPackage using PyQGIS

How to add layers (vector or raster to an existing GeoPackage)? While loading an existing layer of a GeoPackage is quite trivial: path = '/home/matteo/geopackage.gpkg|layername={}'.format('admin') iface.addVectorLayer(path, 'admin', 'ogr')  I couldn't find information about adding them via PyQGIS.


Is there a list of new software/site features?  Maybe a chronological list of links.  Or are there too many to list, or don't you care to publish them?  I'm thinking of this for example:   If I didn't just happen to be reading Meta, I wouldn't know that new feature existed -- and would I ever discover it?  Maybe there is a list and I don't know that the list exists, nor where.


Java: how can I write a method that returns a generic value but doesn’t have any input parameter?

I am studying Java generics so I am trying some experiments to test if I am understanding the matter. I got a doubt when I tried to figure out how can work a method that returns a generic value but doesn’t accept any parameter. Even if can sound totally useless, I’m trying to write something like this for better understand generics:  public static <T> T myMethod() {     int tmp;     tmp = (int)(Math.random()*3)+1;     if(tmp==1) {         return new String();     } else if (tmp==2) {         return new Boolean(true);     } else if (tmp==3) {         return new Integer(5);     }     else {         return new Object();     } }   I cannot compile this code because I get incompatible types errors: “String cannot be converted to T”, “Boolean cannot be converter to T” and so on. But if the returned type is a generic type, where is the issue? What is the part I didn’t understand?  Below, two methods: one compiles and the second not. Why, if in both cases compiler cannot know which values the generic parameter can get?  //This compiles public static <U> U test(U u) {    U I = u;    return I; }  // This not compile public static <K> K secondTest() {    K L;    return L; }   P.S.  doesn't reply to my answer because I'm asking for method without input parameter and a generic returned type.


Can I use an external hard drive with an Android phone?

For years I've been downloading things onto my Android then transferring them to SD cards via the usb port connected to a card-reader.   Could I use a basic unpowered external hard drive instead, such as a Sonnics? (Phone is not rooted)


Very often when viewing pictures of the cosmos taken by telescopes, one can observe that larger/brighter stars do not appear precisely as points/circles on the image. Indeed, the brighter the light from star, the more we see this effect of four perpendicular rays "shooting" out from the star.    (Taken from .)   My question is: what are the optics responsible for this effect? I would suppose that both the hazy glow around the stars and the rays shooting outwards are optical effects created by the camera/imaging device, but really can't surmise any more than that. (The fact that the rays are all aligned supports this, for one.) A proper justification, in terms of (geometrical?) optics for both the glow and the rays would be much appreciated.  Here are a few other examples of such images:


why can't this CentOS 7 server see wifi connections?

I recently installed CentOS 7 as the sole OS on an Acer Aspire T.  There is no GUI, as it is a server with a terminal-only interface.    What do I need to do to get CentOS 7 to be able to see and list the available wifi connections?    When I use the Network Manager Command Line Tool nmcli, I get the following, which indicates that nmcli has wifi enabled, but that it cannot see any wifi connections:    [root@localhost ~]# nmcli general status STATE         CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN     disconnected  none          enabled  enabled  enabled  enabled  [root@localhost ~]# nmcli connection show NAME  UUID  TYPE  DEVICE  [root@localhost ~]# nmcli device status DEVICE  TYPE      STATE      CONNECTION  eno1    ethernet  unmanaged  --          lo      loopback  unmanaged  --          wlp3s0  wifi      unmanaged  --    I then checked the firewall config, which shows that ssh is the only open service, as follows:    [root@localhost network-scripts]# firewall-cmd --list-all public (default, active)   interfaces: eno1   sources:    services: dhcpv6-client ssh   ports:    masquerade: no   forward-ports:    icmp-blocks:    rich rules:     What do I need to change in order to get CentOS to be able to see the wifi connections?  There are available connections.  Does the firewall need to change?  Or something else?      EDIT:    I am not able to do the things that @TimS. suggested because the following tools are not pre-installed on the computer, and it is not connected directly to the internet:    [root@localhost ~]# ifconfig -a -bash: ifconfig: command not found [root@localhost ~]# lspci -v -bash: lspci: command not found   [root@localhost ~]# iw dev -bash: iw: command not found [root@localhost ~]# iwconfig -bash: iwconfig: command not found     I am able to open nmtui, but am not sure what parameters to enter to create a new connection.     [root@localhost ~]# iw dev     -bash: iw: command not found     [root@localhost ~]# iwconfig     -bash: iwconfig: command not found


Why is there an 'A' in phrase 'Times are a changing'?

I am not sure if the phrase Times are a changing is used exclusively within or related to  but the A is bugging the hell out of me every time I see it.  Why is there an  in front of an adjective which is not followed by a noun?


Inequality of determinant and product of diagonal elements of a matrix

Let $A$ be a symmetric, positive definite matrix.  Is is true that the det$ A$(which is the product of eigenvalues) is smaller or equal to the product of diagonal elements of $A$ ?  I could not prove it, and not even sure if the inequality above is true.


Don't always have a 'Join this Community' Button

I already have accounts on a bunch of Stack Exchange sites. Mostly when I'm looking at posting on a new SE site, I can see a blue 'Join this Community' button, which gives me a painless "extend my existing account to include this SE" experience.  :+1:  E.g. (stolen from another question):    But on other Stack Exchange sites, I just get regular "Login / SignUp" buttons.  What's the deal here? Is that supposed to happen? Are some SE sites different? If I SignUp with the right credentials, will it all get joined together anyway? What happens if I use some variant of my email-address (e.g. gmail vs googlemail) will I be able to sync the accounts back together after the fact?    For reference, in this particular case it's the Super User SE, but I'm pretty sure I've seen this intermittently elsewhere.


Is $\mathbb{R}/\mathbb{Q}$ an interesting group?

Inspired by the construction of the non-mesurable Vitali set I thought about the group $\mathbb{R}/\mathbb{Q}$ (the additive group of the real numbers modulo the rationals). There must be some literature for this, but I haven't found any and it is hard to google. Does anyone know where to find results about this group?


What did Anna tell Mademoiselle at the end of the Martyrs (2008)?

At the end of  (2008), Mademoiselle (Catherine Bégin) asks torture victim Anna (Morjana Alaoui) whether she has or has not witnessed Otherworld, and the answer is enough to make a 70-something, devoted, calm, focused, cold blood, cruel and emotionless person shoot herself in the head.  Any idea what she said?


Different past tense for various *et words

The past tense of Bet, Let, and Set are Bet, Let, and Set; but the past tense of Jet, Net, Pet, Vet, and Wet are Jetted, Netted, Petted, Vetted, and Wetted.  Is there a reason for this difference?


Intuition of Addition Formula for Sine and Cosine

The proof of two angles for sine function is derived using $$\sin(A+B)=\sin A\cos B+\sin B\cos A$$ and $$\cos(A+B)=\cos A\cos B-\sin A\sin B$$ for cosine function. I know how to derive both of the proofs using acute angles which can be seen here  but pretty sure those who have taken trig know what I'm talking about. So I know how to derive and prove both of the two-angle functions using the acute angles, but what I am completely confused about is where those triangles came from. So for proving the two-angle cosine function, we look at two acute angles, $A$ and $B$, where $A+B<90$ and keep on expanding. So my question is, where did those two triangles come from and what is the intuition behind having two acute triangles on top of each other?


After a while downloading torrents my network card stops working properly

The situation  I download happily torrents with uTorrent for a long time, maybe 12 hours.  Suddenly, I notice my connection stopped working.  When I check uTorrent is still downloading stuff.  When I check other computers in the same network their internet connection works properly.  I can ping other computers in the network, but I cannot ping any remote IP.  What I tried  When I close uTorrent and open it again, it is unable to generate new connections.  Once I disable and enable my network card again connection works again, yay!  Once I open uTorrent again the same problem comes back, buh!  It's only when I restart my computer when the problem is solved and I can happily download torrents again, yay!  I also tried using a cable instead of WiFi, and the problem also happened.  My guess  The problem seems to be generating new connections, since uTorrent keeps downloading once the whole computer cannot use the Internet. And after I restart it, it cannot start downloading anything.   Since it happens with 2 different network cards, the problem doesn't seems to be the network card. Since I restarted uTorrent tons of times, I don't think is that either. So what is between uTorrent and the network cards? Network services, so my guess is that the problem is caused by one of those.   I already restarted my computer this time, but what I'll try next time is to restart all the running network services, and check what happens if I change between LAN/WAN on the fly.  Any help is very welcome ^^


A UK based hosting company that is like HostGator for its web host packages

This question is unique in the sense of its requirements.  I require a web host like Hostgator that offers the same level of features but is based and hosted in the UK.  This is required due to both UK and EU law relating to location of customer data, so I would appreciate unlike the other threads people don't attack suggest HostGator is fine because it is great but the law is the law.


why my templates work if I put all of them in main otherwise not

Just for practice purpose I write a generic template class which do sorts for a given comparison function.  #include <vector> #include <iostream> #include <fstream> #include "Student.h" using namespace std; template <class T, class F> class myVec { public:     myVec(vector<T> a);     void sort();  private:     vector<T> w;     int size; }; template<class T, class F> myVec<T,F>::myVec(vector<T> a){     w = a;     size = a.size(); }   template<class T, class F> void myVec<T,F>::sort(){     for(int i=0; i<size; i++){         for(int j=i+1; j<size; j++){             if(F(w.get(i), w.get(j))>0){                 iter_swap(w.begin()+i-1, w.begin()+j-1);             }         }     } }     int cmpStudent(Student stu1, Student stu2){     int score1 = stu1.getScore();     int score2 = stu2.getScore();     if(score1 == score2) return 0;     if(score1<score2) return -1;     return 1; }  int main(){     typedef int(*fn)(Student, Student);     vector<Student> students;     string fileName = "mydata.data";     ifstream ifs;     ifs.open(fileName.c_str());     string name;     int score;     while(ifs>>name>>score){         Student student(name,score);         students.insert(students.end(), student);     }     myVec<Student, fn> myvec(students);   }   IT works well.  But if I put myVec as a header file and myVec.cpp. include "myVec.h", then the compiler report error on   myVec<Student, fn> myvec(students);   IT bothers me for a long time, why it works when I put all the materials in main


How to prove that $\lim\limits_{\epsilon\rightarrow 0}\int_{-\infty}^{\infty}f_\epsilon(x)g(x)dx=g(0)$ (Dirac delta function))

I'm currently studying the Dirac delta function using a textbook which unfortunately provides only partial solutions to its explanations. Why does $\lim\limits_{\epsilon\rightarrow 0}\int_{-\infty}^{\infty}f_\epsilon(x)g(x)dx=g(0)$ if $ f_\epsilon=\frac{1}{2\epsilon}e^{-\frac{|x|}{\epsilon}}$? Any help is very much appreciated.


Prove the theorem about cardinality of subgroup

$G$ is a group.      If $H, K \le G, |H|, |K| < \infty$, then $$|HK| = \frac{|H||K|}{|H \cap K|}$$   How to prove it?  UPD:  I tried to prove that this function is bijective:    So if i prove it, I can do next thing:    But how to prove it?


Is 32 or 64 bit better for a computer with 2 GB memory?

This is the computer I have currently with  13.10 installed on it, and it works well:   OS version: Microsoft Windows XP Professional, Service Pack 3, 32 bit Processor: Intel(R) Pentium(R) 4 CPU 2.80 GHz, x86 Family 15 Model 4 Stepping 1 Processor count: 1 RAM: 1149 MB Graphics card: Intel(R) 82865G Graphics Controller, 96 MB Hard drives: C: Total - 38091 MB, Free - 17316 MB; Motherboard: Dell Computer Corp., 0U2575 Antivirus: CA Anti-Virus Plus, Updated: No, On-Demand Scanner: Enabled   However, I do a lot of editing of large digital photos, and I'm converting a second computer, with the exact same specifications as this one, to Xubuntu 13.10, AND I'm replacing the 128 MB memory module with a 1 GB module, giving me a total of 2 GB. I have read a lot of posts here that say with 2 GB it is best to go with the 32 bit download of 13.10. But I have also read a lot of posts here that say it's best to go with the 64-bit. That 2 GB is plenty to run 64-bit software, and that 32 bit software is rapidly becoming obsolete.  What is the explanation to clear up the confusion?


Factoring n, where n=pq and p and q are consecutive primes

So in RSA, there is a modulus n which is the product of two primes. My question is regarding when p and q are consecutive primes, what would the time complexity be? So, n=pq and p and q are consecutive primes is the only information to work off of. Also would Fermat's factorization be an efficient way to factor such an n?  edit: I'n not actually trying to factor n or find p and q. I just want to know if Fermat's factorization method would be efficient given this information.


Is there a dollar amount that, when adding Massachusetts Sales Tax, precisely equals $200?

I am confused about calculating Massachusetts Sales Tax (6.25%).  Is there such an amount, that when added to its sales tax, equals $200?  The reason I ask is because my business has been charging $200 for things and we said tax was already included.  How do I reconcile this?


Calculate $\int_0^{2\pi} \frac{1}{2+\sin(x)} \ dx$


Understanding proper classes vs sets: why the set of all cardinal numbers cannot exist?

I'm trying to understand the difference between sets and proper classes. I found this .  I'm having trouble in understand the following at page 115:   It basically says that if a set of all cardinal numbers exist, then it has a cardinal number $k$. Then $k$ must be bigger than all cardinal numbers in the set of which it is the cardinal number, that is, the set of all cardinal numbers.  Why $k$ must be bigger? As I know, cardinal numbers are numbers related to sizes of sets. There's nothing about size in this definition.


Why isn't there a "the" in "I left work", but there is in "I left the office"?

Considering phrases of the form "I left [the] X", what causes some words to need a "the" before them, while it sounds awkward with others?  Needs "the":   I left the office I left the bank I left the house I left the courthouse   Awkward with "the":   I left work I left social media I left New York   Either way works:   I left [the] school I left [the] church


SQL distinct columns with a concat of unique

In SQL Server, I have a simple view called v_master_server_list.  Server entries have multiple group memberships, so the servers will be duplicated in the view for every group membership. I need to return only a single row with the distinct server names and for every group membership, I'd like this concatenated with some kind of delimiter like '|' or ','  I've come up with this (thanks for the link), and I had to scrub out the null entries otherwise the LEN and LEFT functions wouldn't work. Question is, how do I now return all entries (even if nothing is found in 'arms_group')?  select server, LEFT(column_names, LEN(column_names )-1) AS column_names from cmdb.[dbo].v_master_server_list AS extern CROSS APPLY (     select arms_group + ','     FROM cmdb.[dbo].v_master_server_list AS intern     where extern.server = intern.server     FOR XML PATH('') ) pre_trimmed (column_names)  where arms_group is not null GROUP BY server, column_names;


In the black I evaluated the integral and I got 64/3, now I need to evaluate the same integral with $\color{red}{dydx}$ .in the $\color{blue}{\text{blue}}$ color is my attempt, I don't think that my attempt is correct.     Can someone please tell me what is my mistake in my attempt (in the blue color)?    $$\int_{-2}^{2}\int_{y^2-3}^{5-y^2}dxdy=\frac{64}{3}$$  $$\color{blue}{\int_{-3}^{1}\int_{-\sqrt{x-3}}^{\sqrt{x-3}}dydx+\int_{1}^{5}\int_{-\sqrt{x-5}}^{\sqrt{x-5} }dydx}$$


I'm trying to create screen transitions similar to those found in Mega Man or Legend of Zelda (i.e. the active elements of the first screen are stopped as the screen scrolls in the direction of the new screen then the active elements of the new screen become active again).  I'm making this for a 2D browser game written in JavaScript. Right now, I can only make the screen scroll as long as the player remains on the edge of the screen; the player can still move when the transition is taking place, which stops the scrolling midway through transition. Below is the code I'm using to make this happen.  If anyone can help me with this, I would really appreciate it.  //checks if player has touched right side of screen //*used to change screen color if(this.rightX == gameWidth){     screenShift = true;     if(bgDrawX2 > 600){         bgDrawX-=5;         bgDrawX2-=5;         drawBg();     }     screenShift = false; }  if(this.leftX == 0){     screenShift = true;     if(bgDrawX2 < 1200){         bgDrawX+=5;         bgDrawX2+=5;         drawBg();     }     screenShift = false; }


So, I'm considering buying , and I want to know about how much content is in it? Is it a 40 hour game? A shorter 2 hour game? What can I expect?


Book that contains a future human race that abandons Earth to escape aliens?

I remember a friend telling me about this book series a few years ago. I don't know when it was released though.  Things I remember:   Humans left Earth in space ships to escape an alien race that was coming to destroy them because of their technological advances. The humans colonize a new planet and ban technology so the aliens won't come destroy them. There is a robot like thing that eventually becomes "Merlin" in the book series. This was a technology back on the original Earth that people could transfer their consciousness into temporary to go do things like extreme sports and the like.  The word "Storm" maybe in the name? Not sure on this one... Some of the people that originally left Earth became "angels" to the people on the new planet. I think maybe memory erasing may have been a thing here. At one point someone detonates a nuke destroying most of these "angels" and their ships. Pocket nuke? Or a briefcase maybe. There is a church that, in the "modern day" which I think is thousands of years after the fleeing from aliens, hardcore goes against people that are inventing technology. Think Spanish Inquisition.   I haven't actually read the book so I'm not sure if these are correct.


Yesterday I answered a question from a guy who was wondering about his website being displayed incorrectly on different browsers, especially the mobile ones (like Safari on iPhone).  I answered his question with my best intentions and put quite a thought into my reply. Therefore I got already 4 ups/likes (don´t know how to call em) after a short period of time. But when I logged into stackoverflow this morning my at least 40 reputation gained through the answer were gone, as well as the whole question itself, including any notifications in my inbox, comments etc., every track of the question is gone.  My questions now is: What happened? Can a question be removed completely, even undoing the reputation it has delivered to some guy and everything else that has happened because of it? If so, by whom and under what conditions?  I was/am kind of angry, I didn't get any notification about what happened, it's just gone, even the (in my opinion) useful question and answer.  I don´t know if that has happened to anyone else before or was just a bug because of some kind of update in the last hours - maybe this is supposed to be directed to the support, but I feel right to ask/post it this way (if it isn´t, please tell ;) - maybe the fact that I can´t find any suitable tag is an indicator it is the wrong way).


What is the connection between binomial and poisson distribution?

Binomial is counting success in $n$ trails. Poisson is also for counting events happening. What is the connection between them?  I know is that when sample size is large both can be approximated with normal.    But how are they similar or different? I learned in class their PMF are different but not really understand where does such PMF comes from and intuitive way of explaining them.


Achievements drop-down has bleed-through on chat

This is new:    I saw this earlier today in Firefox (current version) on Win 7, and I'm seeing it now in Chrome 61.0.3163.100 on Mac Sierra.  It only happens on chat info pages, not on Q&A sites.  I suspect there's a Z-order problem with those time labels on the chat pages.  The numbers are sticky by position; if I scroll the achievements pane those times overlap whatever is in that place in the pane.


Somone 'has been friends' with someone -what is this structure?

From some Indian Daily -     Sania has been friends with Tia since childhood.   Why plural friends? and why with? We can be friendly with someone, not friend.   Based on that, is this correct?     Jack is friend with me?    Also, plural friends should be this way -     Sania and Tia have been friends since their childhood or   Sania has been a friend of Tia since childhood.


I tried to install mysql on my ubuntu16.04 for a django project. The installation has some problem with some existing files, getting this error:  mysql-server is already the newest version (5.7.19-0ubuntu0.16.04.1). You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)   I tried sudo apt-get -f install which gives this error:  Preparing to unpack .../mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb ... grep: /etc/mysql/: No such file or directory Aborting downgrade from (at least) 10.2 to 5.7. If are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing:  /var/cache/apt/archives/mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   So I tried to uninstall the package and purge and clean but getting the first error, hope somebody can help me.


How to reduce the size of rich text area field in visualforce page?

I am trying to reduce the size of rich text area field in Visualforce page. Here is the code have written-  <apex:column headerValue="Extra Curricular Activities"  >     <apex:inputField value="{!c.Extra_Curricular_Activities__c}" style="width:50px" /> </apex:column>   Where i need to make the changes,can anybody help me with this? Thanks in Advance!!


Why does the temperature of the early Universe decrease as it expands?

According to the Big Bang theory, the universe cooled down as it expanded. I would like to know why does the temperature decrease? And by "why" I mean how. What causes the temperature to decrease, what's is the physical process?  For simplicity, let's consider the early Universe after protons and neutrons formed but before the molecules appeared, so we have something resembling a monatomic gas. Temperature of such gas is defined in terms of the average kinetic energy $\epsilon_{avg}$ of the particles: $$T = \frac{2}{3}\frac{\epsilon_{avg}}{K_{boltzmann}}$$  If the temperature $T$ decreases, then the $\epsilon_{avg}$ must decrease. By what causes $\epsilon_{avg}$ to decrease? A popular explanation for an ideal gas in a cylinder is that the particles do work on the retracting piston and lose energy. But can we apply this explanation to the expanding Universe? I don't think so.  If the particles lose energy, where does this energy go? The particles do not collide with the edge of the universe (the imaginary "piston"), since there is nothing for them to collide with. There is no edge, since the whole space is expanding.


Supremum of $\sqrt{n} -\left\lfloor\sqrt{n}\right\rfloor $

I've got the following question:  $A = \{\sqrt{n} - \left\lfloor\sqrt{n}\right\rfloor : n \in \mathbb{N}\}$  Find inf A, sup A    inf A is no big deal, but I have a hard time proving sup A is 1  I've tried to prove that: $\sqrt{n^2 - 1} -\left\lfloor\sqrt{n^2-1}\right\rfloor > \sqrt{n} -\left\lfloor\sqrt{n}\right\rfloor $  but couldn't find a way to do that


Even though I do a quick edit in camera to remove unwanted shots as I shoot, I still end up with a huge number of shots. I keep and back up in the cloud the ones I am working on for a project and catalog them into projects and locations.   But what about all the rest, do you keep them all and put into a 'random' folder? Get rid?   It frustrates me having a load of photographic clutter just sitting there but MAYBE, I'll use them one day?   What do you do?


Non interactive git clone (ssh fingerprint prompt)

I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint:  The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established. RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40. Are you sure you want to continue connecting (yes/no)? no   How do I force "yes" every time this questions pops up? I tried using yes yes | git clone ..., but it doesn't work.  EDIT: Here's a solution:  (adds entires to known_hosts with ssh-keyscan).


Iterating over every two elements in a list

How do I make a for loop or a list comprehension so that every iteration gives me two elements?  l = [1,2,3,4,5,6]  for i,k in ???:     print str(i), '+', str(k), '=', str(i+k)   Output:  1+2=3 3+4=7 5+6=11


I have a lightning web component that it's data needs to be updated whenever the record is saved.  Is it possible to trigger a function\component refresh when the record is save?


Identify $P(2014)$ if $P(i)=1/i$ for every positive integer $1\le i\le2013$

Suppose $P(x)$ is a polynomial of degree $2012$ and $P(x) = 1/x$ when $x$ takes the integer values $1\cdots2013$ (inclusive). What is the value of $P(2014)$?   I get $1/1007$ but I'm not sure if it's right, and my method is very inelegant.


Let $x = (a, b), y = (c, d) \in \mathbb{Z}^2$. What is the condition on $a, b, c, d$ so that ${x, y}$ is a basis?   My answer: $ad\neq bc$ and $gcd(a, c) = gcd(b, d) = 1$.  The first condition ensures that they aren't the same vector; the second ensures that we can actually "get" all of the integer values/lattice points.  Is this correct?  Thanks.


I'm completely new here, and trying LaTeX to write my PhD dissertation (in the humanities, mind you!). I have to write in several languages, and especially French. It is therefore much easier to type the French characters directly on the keyboard. I have a mac with OS 10.8.5. I used the tip given here on the Tex stack exchange (\usepackage[applemac]{inputenc}) and it worked really fine. But, now it suddenly does not work any more without me touching anything when I run it in PDF. I set the following in my configuration:   \usepackage[applemac]{inputenc}               \usepackage{etoolbox} \usepackage{fontspec}  \usepackage{polyglossia}          \setdefaultlanguage[british,ordinalmonthday=true]{english}  \setotherlanguage[spelling=old,latesthyphen=true,babelshorthands=true]{german}  \setotherlanguage{french}  \setotherlanguage{italian}  \usepackage{xspace}  \usepackage[style=british,autostyle=true,strict=true,english=british,autopunct=true,parthreshold=true,german=guillemets]{csquotes} \setquotestyle{british} \SetBlockThreshold{3}


TeamViewer install borked, can't seem to fix

Xubuntu 18.10  So the other day I went to run TeamViewer and found it was gone. So I tried to re-install it and this happens:  $ sudo apt install teamviewer Reading package lists... Done Building dependency tree       Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  teamviewer : Depends: libqt5qml5 (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: libqt5quick5 (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: libqt5webkit5 (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: qml-module-qtquick2 (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: qml-module-qtquick-controls (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: qml-module-qtquick-dialogs (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: qml-module-qtquick-window2 (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed               Depends: qml-module-qtquick-layouts (>= 5.5) but it is not going to be installed or                        qt56-teamviewer but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I've tried a few things:  $ sudo apt-get install -f Reading package lists... Done Building dependency tree       Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.   I've also tried Synaptic to install qt56-teamviewer, but that fails too and just says it's "broken".  I suspect a non-standard PPA repository, but any useful way to determine which one so I just fix this problem without causing other problems (such as blowing away the entire sources.list and replacing with default)? I noticed a lot of the sources have bionic in them even though I'm on cosmic. Should I change all references to bionic to cosmic instead?  -----------edits below---------      $ apt-cache policy qt56-teamviewer libqt5qml5 teamviewer qt56-teamviewer:   Installed: (none)   Candidate: 5.6.3.0   Version table:      5.6.3.0 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages libqt5qml5:   Installed: (none)   Candidate: 5.9.5-0ubuntu1.1   Version table:      5.9.5-0ubuntu1.1 500         500 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages      5.9.5-0ubuntu1 500         500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages teamviewer:   Installed: (none)   Candidate: 14.2.2558   Version table:      14.2.2558 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages      14.1.18533 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages         100 /var/lib/dpkg/status      14.1.9025 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages      14.1.3399 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages      14.0.14470 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages      13.2.26559 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages      13.2.13582 500         500 http://linux.teamviewer.com/deb stable/main amd64 Packages


When an airplane is traveling, it moves at the same speed as the earth does due to inertia, but since, the plane is not directly touching the globe, how does is the speed of the earth is associated with the plane so that they move at the same speed? (not taking into account some fenomena or the force the motors generate


Viewport render gives the desired result but the actual render shows a black screen

The viewport render is correct but the actual rendered image is a black screen. This happened to me before and i even posted a question regarding that and the problem was a hidden object. But this time I made sure there was no hidden object in my project but it still doesn't work. I tried the to unhide all the objects and nothing came out which could disrupt the camera view. Your help is much appreciated. Thank you


Morocco for an Indian citizen with an EU resident permit

Can I enter in Morocco for tourism for a week with my italian resident permit? Do I need a visa before arrival?


Capitalization of title in scientific paper

I'd like to use the correct capitalization of words in the title of a scientific paper. The part of the title I'm not sure about is the following:     What to do with an Area? ...    As far as I understand capitalization rules, the "What" has to start with an upper case letter because it is the first word. Area is being upper cased because it is a noun. "to", "with", and "an" are not upper cased because they are prepositions or articles.  What about the verb "do"? Should I use the following capitalization instead?     What to Do with an Area? ...    According to  I should capitalize verbs as well. My gut tells me that my second capitalization variant looks weird. Can someone confirm or deny? :)


I'm using Bash on both client and server. When running a command over SSH:   ssh <host> 'declare' gives a list of shell variables. ssh <host> 'mount' gives a list of mountpoints.   However, declare is a Bash builtin, while mount is an external command. How does SSH know which to run if there is a shell builtin and an external command with the same name on the server?


How can i convert a var which contains a searchresult ToLower?

I´ve done a school homework where we need to be able to search in our program (console app).  I´ve created an object (Sodacrate) which contains an array of objects (sodabottles) which have an index length of 24. The sodabottles have name, price and type variables We can not use LISTS for this according to our teacher (probably because he want´s us to find other ways to solve this), that´s the reason for an array containing objects.  When I´m searching I can search for the exact name of the sodabottle, or I can search for the first letter. If I for example have a bottle of Coca Cola (exact spelling) and I´m searching for coca, then I won´t find a match. If I search for c, C or Coca or even Coca Cola I´ll find a match.  How do I make the searchresult convert ToLower? I´ve tried this and also searched the problem, but didn´t find any clear solutions.  It gives me an compiling error  Error   CS0029  Cannot implicitly convert type 'string' to 'System.Collections.Generic.IEnumerable'    thesodacrate    C:\Users\Benny\source\repos\thesodacrate\thesodacrate\Sodacrate.cs  244 Active  I´m sorry if this seems like simple thing, but I´m almost getting bald over this. I also need to say that this is a whole new territory for me, and I´m mostly doing trial and error to figure this out.   I´ve edited the code so it´s up to date how it looks atm. entries = entries on row 7 creates the compiling error.   Console.Write("Type in your search: ");             var keyword = Console.ReadLine();             keyword = keyword.ToLower();             Console.WriteLine(keyword);             var entries = bottles.Where(entry => entry.SodaBottleName !=null && entry.SodaBottleName.Contains(keyword));             entries = entries.ToString().ToLower();              if (entries.Count() == 0)             {                 Console.Write("Didn´t find any match");                 Console.WriteLine("Press enter to return to mainmenu");             }             else             {                  foreach (var entry in entries)                 {                     Console.WriteLine("{0} - {1} $", entry.SodaBottleName, entry.SodaBottlePrice);                 }                 Console.WriteLine("You´ve added {0} bottles that match your search: {1}.", entries.Count(), keyword);                 Console.WriteLine("Press enter to return to mainmenu");             }             Console.ReadLine();


How can I add words to minted for highlighting?

I use minted for syntax highlighting  If I give it this C code  int foo () {    return 123; }  int bar () {     int x = foo ();     ++x; }   it will colour-highlight foo in the first line, but later when foo is called in the body of bar, it will not be coloured.  How can I add foo to minted's dictionary so that it will be highlighted everywhere that it appears? Similarly, how can I add the variable x to the dictionary so that it will be highlighted in the line ++x?  The minimum requirement is that all minted usages (\begin{minted} or \inputminted) will use the same dictionary of function/variable names (per language).  Ideally, code such as \definecfunction{foo} could appear anywhere in the document (repeatedly), and all minted usages everywhere would pick it up (presumably this would be a two-pass process). Non-ideally, a full list of symbols could be provided in advance.  How can I make this happen?


Can I declare a different overlay specification in different beamer modes?

I have a beamer frame with about 150 slides on it.  I want article and handout mode to only show frame 92.    Reading section 8.6.2 of the beamer manual it seems like I should be able to do something like  \begin{frame}<handout:92> ... \end{frame}   but that seems to have no effect--all 150 slides are set in handout mode, overlaying (making the result unreadable).  I have gotten the effect I want by taking all commands within the frame that have an overlay specification and adding "| handout:0" to make them not appear in handout mode.  Annoying, but works.  But for my 150-slide frame the different slides are generated by a PGF \foreach loop so I can't code slide 92 differently from the rest.  But can I do this at the frame's overlay specification?  It seems that the frame's overlay spec really acts differently from other commands.  If I only do  \begin{frame}<92>...\end{frame}   then I get only slide 92 in beamer mode but all slides in article or handout mode.


Cannot access windows partition from ubuntu

Upon clicking the windows partition in nautilus, i get this error thrown at me.  Error mounting /dev/sda4 at /media/zalgo/D8649C54649C36EA: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda4" "/media/zalgo/D8649C54649C36EA"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).Metadata kept in Windows cache, refused to mount.Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I do not have fast boot or hibernation enabled on windows, if there are any commands that i should post the output of to help, please comment that.  This is not a duplicate of , as the solution used there does not work here.


c++ calling superclass constructor with va_arg

I have a base class, which includes a constructor with variable argument list:  class Super { public:     Super(int num, ...); ... }   Now, in my subclass constructor I need to somehow call this superclass constructor, but how do I do it?  The usual thing, naturally, doesn't work:  class Sub { public:     Sub(int num, ...) : Super(???) { ... } ... }   So what do I put into instead of ???  I do have another constructor that accepts a vector, but having one like this is a direct requirement from the client.


How to prove the inequality $\sum_{cyc}\frac{x}{1-x^2}\ge \frac{3\sqrt{3}}{2}$ when $xy+yz+zx=1$?

Prove that $$\sum_{cyc}\frac{x}{1-x^2}\ge \frac{3\sqrt{3}}{2}$$ where $xy+yz+zx=1$ and $0< x,y,z <1$  I have a proof :Let $2A,2B,2C$ be the angles of an acute angled triangle, also let $x=\tan A,y=\tan B,z=\tan C$ easy to check $0< x,y,z <1$. $$\sum_{cyc}\frac{x}{1-x^2}=\frac{1}{2} \left(\sum_{cyc} \tan 2A \right)\ge \frac{3\sqrt{3}}{2}$$ Because in a triangle with angles $2A ,2B,2C$ $$\sum_{cyc} \tan 2A\ge 3\sqrt{3}$$ I am however looking for alternative proofs!


The only reason I still use W indows is to play this game. I tried before and couldnt get it to work on Ubuntu and I wonder if it is possible now.


Regex for parsing directory and filename

I'm trying to write a regex that will parse out the directory and filename of a fully qualified path using matching groups.  so...  /var/log/xyz/10032008.log   would recognize group 1 to be "/var/log/xyz" and group 2 to be "10032008.log"  Seems simple but I can't get the matching groups to work for the life of me.  NOTE:  As pointed out by some of the respondents this is probably not a good use of regular expressions.  Generally I'd prefer to use the file API of the language I was using.  What I'm actually trying to do is a little more complicated than this but would have been much more difficult to explain, so I chose a domain that everyone would be familiar with in order to most succinctly describe the root problem.


I want to use the get_option() function of wordpress in one of my theme's files, which is not related to WP, it is just located in the same directory of the other theme files. I need this file because of some extra IPN paypal related actions, but I need some values from the options table that exists in WP to be called in this page in order for it to work. I know I can't just use get_option() as this file is overlooked by wordpress. Is there any approach by including some parts of wordpress in my theme to make this functionality only work?


Do things on the stack or state-based effects resolve between first strike and normal combat damage?

I have two examples of different scenarios that are confusing to me.  First, if I have a 1/1 creature with first strike and deathtouch, and my opponent blocks it with a 2/2 creature, will my creature die? I can see two alternative ways this could play out and I'm not sure which is correct.   My creature deals his first strike damage, immediately killing the opponent's creature before he is able to deal combat damage as a state-based effect. My creature deals his first strike damage, which would normally be lethal due to deathtouch, but state-based effects are not checked, and thus the opposing creature deals his damage and both die.   I'm almost positive in this case that it's the first option above.  What gets trickier is, for example, if a creature has first strike and a triggered ability "Whenever this creature deals combat damage to a creature, return that creature to its owner's hand."  This is not a state-based effect, but rather uses the stack. Similar to above, there are two possibilities.   My creature deals his first strike damage, and his triggered ability is placed on the stack. The stack waits to resolve until after all combat damage is dealt, so the opposing creature still kills mine. My creature deals his first strike damage, and his triggered ability is placed on the stack. Both players now gain priority between first strike and combat damage (which I don't think normally happens, thus my confusion). The stack finishes resolving, and the opponent's creature doesn't have a chance to deal damage.   Can someone clarify this area of the rules?


Show that if $c_1, c_2, \ldots, c_{\phi(m)}$ is a reduced residue system modulo m, $m \neq 2$ then $c_1 + \cdots+ c_{\phi(m)} \equiv 0 \pmod{m}$

Show that if $c_1, c_2,\ldots, c_{\phi(m)}$ is a reduced residue system modulo $m$, $m \neq 2$, and $m$ is a positive integer, then $c_1 +\cdots+ c_{\phi(m)} \equiv 0 \pmod{m}$   From the problem statement, I only know that $\gcd(c_i, m ) = 1$. Is there any related theorem that I missed?  A hint would be greatly appreciated.  Thanks, Chan


Wine install - Unmet dependencies Ubuntu 20.04 winehq-stable : Depends: wine-stable (= 6.0.0~focal-1)

I have a relatively clean install of Ubuntu 20.04. I have run the lines to include wine focal and i386 + keys etc but I still get unmet dependencies errors. I could uninstall ubuntu again but I've just got all Jack / pulse and alsa playing nice with ubuntu and simply wish to try and run a few of the Winblows VST's namely the Korg M1 so it's a bit of a pain in the *** to start all over but if needs must... any help appreciated. Here's what I have so far. sparky@sparky:~$ sudo apt update Hit:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease Hit:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease             Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease   Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]   Hit:5 http://archive.canonical.com/ubuntu focal InRelease Fetched 109 kB in 1s (126 kB/s)                           Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up-to-date.  sparky@sparky:~$ sudo apt install --install-recommends winehq-stable  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  winehq-stable : Depends: wine-stable (= 6.0.0~focal-1) E: Unable to correct problems, you have held broken packages. sparky@sparky:~$   I have then tried to install wine-stable which sends me on a rabbit hole for even more unmet dependencies.


How to test for a boolean field in a twig template?

field_boolean is a boolean field.  {% if content.field_boolean == true %} or {% if content.field_boolean == 1 %} or {% if content.field_boolean == 'true' %} or {% if content.field_boolean == '1' %} don't work.  How do I test if the checkbox is checked?


What is the English word for husband of the daughter of my brother?

What is the appropriate word for husband of the daughter of my brother?  That is, son-in-law of one's brother.


Let us say that $f$ is a function belonging to $L^p(0,1)$. Then nothing assures us that $f$ belongs to $L^q (0,1)$ for some $q > p$. I was trying to find an "optimal function" for its $L^p$ space, in other words I want to find a function such that $f \in L^p(0,1)$, but $f \notin L^q (0,1)$ for any $q > p$.  My first attempt was to consider the following type of functions: $$ f(x) = \frac{1}{x^\frac{1- \epsilon}{p}} $$  for some small $\epsilon > 0$, anyway such class of function is not optimal in the sense given above; in fact $f \in L^{p + \delta} (0,1)$ for any $\delta > 0$ such that  $$ (p+ \delta) \frac{1- \epsilon}{p} < 1 $$ Such inequality is satisfied for any $\delta < \frac{p}{1-\epsilon} - p$ and the last term is strictly greater than $0$ since $1 - \epsilon < 1$.


Using induction to study the sequence $\sqrt{6} , \sqrt{6 +\sqrt{6}}, \dots$

For the given sequence  $\sqrt{6} , \sqrt{6 +\sqrt{6}},\sqrt{6+\sqrt{6+\sqrt{6}}} $ ...   Use induction to show the sequence is bounded above by 3 Use induction to show $x_n $ is increasing Find the limit of $x_n$     Well I know for a fact I am overthinking the induction steps.   For part two, I know I need to show that $x_{n + 1} \gt x_n$ for all n, correct? Would this be as simple as showing $(x_{n+1}) - (x_n) \gt 0$?


Suppose $f,g,h>0$ for every $x$. How can I show this inequality $$ \frac{|f(x)-g(x)|}{1+|f(x)-g(x)|}\le \frac{|f(x)-h(x)|}{1+|f(x)-h(x)|}+\frac{|h(x)-g(x)|}{1+|h(x)-g(x)|} $$ Adding subtracting $h(x)$ to numerator is the way to go for numerator part but what about denominator?


12" MacBookPro late 2012, OSX 10.9.5  Something is wrong with the Finder. When I try to open a new window one pops up, but the interior is the color of the background, nothing inside, and it reflects the image of anything that is dragged over it:       Those windows start out blue like the background, but are grey here because to take a screenshot I had to drag the grey rectangle over the finder window. They close just fine.  To open any working window I have to open Terminal and type killall Finder, but this solves the problem for a short time. (Sometimes the space of only one window opening.) Also, the desktop does not reflect saved files there until I restart the Finder, and I cannot manipulate anything on the desktop when the Finder has crashed.  A very small amount of water was spilled on it (over the battery and speaker) awhile ago, could that have caused this? What could be wrong? I've seen similar issues posted online involving software installation, but can't link any new installations to the problem. How can I resolve this?


java.lang.NullPointerException, When using Selenium and cucumber for automation testing

The code runs fine but I created a new page object for a new page to test but I am getting this null pointer exception. Here are the two class I believe I am having issues with. public class LoggedInPageSteps {     WebDriver driver;        private Logger logger = Logger.getLogger(HomePage.class);     LoggedInPage loggedInPage;      @Then ("^I check the my account info tag$")     public void verifyLoggedInPage() {         logger.info("Inside loggedinpagesteps verifyloggedin function.");         logger.info(loggedInPage.getAcctInfoTag());         loggedInPage.checkLoggedIn();         //Commons.check(loggedInPage.getAcctInfoTag().equals("My Account Information"), driver,          "Title doesnt match");          }  and public class LoggedInPage {      @FindBy(tagName = "h1")     WebElement acctInfoTag;      WebDriver driver;     //LoggedInPage loggedInPage;      private Logger logger = Logger.getLogger(LoginPage.class);       public LoggedInPage(WebDriver driver) {         this.driver = driver;          PageFactory.initElements(driver, this);     }      public String getAcctInfoTag() {         logger.info("insdie LoggedInPage funcrion getAccountInfoTag().");         return Commons.getElementText(driver, acctInfoTag, 5);     }      public void checkLoggedIn() {         logger.info("Inside LoggedInPage inside function CheckLoggedIn.");         logger.info(Commons.getElementText(driver, acctInfoTag, 5));         Commons.check(Commons.getElementText(driver, acctInfoTag, 5).equals("My Account          Information"), driver, "Not on logged in page.");     }  }  Is it a webdriver issue? I am new to automation testing so forgive  me if it was a simple mistake.


What implementation properties of a hash function prevent safe truncation?

Truncating a hash function's output should, in theory, not increase the likelihood of a collision more than you would expect based on the truncated output size. This makes sense when thinking about the the ideal hash function, a random function.  Since real-world hashes are not random functions, what properties of algorithms like sha2 make us comfortable with truncating, and what (popular) hashes exist out there that are known to have issues?


I've just been the 'victim' of some serial up-voting:    This has pushed me over the rep cap for the day, so any other up-votes I receive today won't 'earn' the rep so-to-speak.  My question is this: What happens when these serial up-votes are inevitably reversed when the midnight script runs? At what point do those votes that previously didn't count towards my reputation get converted into actual reputation points? Is it automatic, or after a reputation re-calc, etc.?  I realise there are plenty of questions about serial up-voting on this site, but after trawling through most (all?) of them I couldn't find one that discussed how the rep cap is affected by the reversal.  I know I could just wait and see what happens but I'm impatient ;)


why does JavaScript mess up 0.1 + 0.2 when C++ doesn't?

I understand that with the IEEE representation (or any binary representation) for double one can't represent 0.1 with a finite amount of bits.  I have two questions with this in mind:   When C++ also uses the same standard for double why doesn't it mess up 0.1 + 0.2 like JavaScript does? Why does JavaScript print console.log(0.1) correctly when it can't accurately hold it in memory?


I seem to have a storage issue on my Google Drive.   The storage used indicated on the home page, visible on the image below, is 5x larger than the storage used on my Home folder calculated with this application: .    I looked for large files through the 'quota' page, accessible with the 'i' button on the image. Some were old files which I thought I deleted, and which I cannot locate on my drive (example on the left in the image below). Their location is not indicated, and there is even an 'add to my drive' option available. But they seem to take up space on my drive nevertheless.    My trash is empty.   How do I locate and clear these files from my drive?


My first application was refused in October 2018 and I have resolved all the reasons as per the refusal letter during the second.   I applied again for a UK visit visa in Feb 2019 with all necessary documents and got the refusal letter as below.   I provided six months worth of bank statements which include two months of salary from my old employer for August'18 and September'18 and four months salary from October'18 to January'19.   Expenses as per the application form is only the living cost per month. I paid for my car 3,100 GBP and 6 months house rent 3,200 GBP in advance resulting in a low opening balance. These payments were not included in the application as one is an asset purchase. Monthly rent is included in expenses.  When do you suggest for me to apply again? What points to improve again on the same?


How to add custom button to new media upload interface

I am developing a plugin and i want to add my own button to the wordpress media upload interface (WP version 3.5). Right next to the standard 'insert into page' button, i want my button to be there, let's call it 'insert special image'.  Can anyone point me in the right direction, where should i look? which WP source files are defining the functionality of this button?  Basically my 'insert special image' button should do pretty much the same thing like the standard 'insert into page' button - take an attachment and insert it into post, only with some added data.