If planet orbits are in the shape of an ellipse and the sun is at one focus, what is at the other focus?

I've studied ellipses. I've studied physics. But when it comes down to the elliptical orbits of the planets is where I get confused. Ellipses contain two foci — and in the orbits of our solar system the sun is consistently stated as one of them. Okay. What about the second focus point? Why is it never brought up? And if there is no second focus — then how do we even move in an elliptical orbit?


Frame disappears while packing label in it in Tkinter

In my simple GUI whenever I press the button the text is supposed to be packed inside the frame, but upon pressing the frame disappears. Here is the code: import tkinter as tk  window=tk.Tk() window.geometry('600x600') window.resizable(False,False)  f1=tk.Frame(window,height=200,width=200,bg='yellow') f1.place(x=400,y=400)  some=tk.StringVar() def press():     msg=some.get()     l1=tk.Label(f1,text=str(msg))     l1.pack()  e1=tk.Entry(window,textvariable=some) e1.pack() b1=tk.Button(window,text='press',command=press) b1.pack()  window.mainloop()  The text is packed but the frame disappeared.


How to print an array of ArrayList in Java?

I have created a array of ArrayList but now I want to access its elements and sort them and print them, please help me to find out a way     ArrayList<Integer>[] lists = (ArrayList<Integer>[])new ArrayList[20] ;   for(int i=0;i<20;i++){     lists[i]=new ArrayList<Integer>();     lists[i].add(i+i*2);     lists[i].add(i+i*3);     lists[i].add(i+i*4);     lists[i].add(i+i*5);   }      System.out.println(lists);   output:-   [Ljava.util.ArrayList;@15db9742


Let $T$ be the set of all positive integer divisors of $2004^{100}$. Size of largest subset $S$ of $T$ such that no element in $S$ divides another?

I am getting an answer slightly over $100^2$. Is this right (working below), or is there a better way of selecting elements of S?  The following question appeared on the 2004 Canada National Olympiad:     Let $T$ be the set of all positive integer divisors of $2004^{100}$. What is the largest possible number of elements of a subset $S$ of $T$ such that no element in $S$ divides any other element in $S$?     Factorising, $2004 = 2^2\cdot3\cdot167$. So any element of $T$ is of the form   $2^p 3^q 167^r\text{ with }0\le{p}\le200,0\le{q}\le100,0\le{r}\le100 \tag{1}$  We start by excluding from $S$ the element mapping to $p=q=r=0$ because $1$ divides any natural number.      $\text{The key to the method is to choose elements so that the sum }p+q+r\text{ is always the same. Then distinct elements cannot be multiples.}\\$  $\text{For }p=0:\text{ choose all }q,r\text{ s.t. }q+r=200:2^{0}3^{100}167^{100}$  $\text{For }p=1:\text{ choose all }q,r\text{ s.t. }q+r=199:2^{1}3^{100}167^{99},2^{1}3^{99}167^{100}\\{\cdots}$  $\text{For }p=100:\text{ choose all }q,r\text{ s.t. }q+r=100:2^{100}3^{100}167^{0},\dots,2^{100}3^{0}167^{100}$   $\text{For }p=101:\text{ choose all }q,r\text{ s.t. }q+r=99:2^{101}3^{99}167^{0},\dots,2^{101}3^{0}167^{99}\\{\cdots}$  $\text{For }p=200:\text{ choose all }q,r\text{ s.t. }q+r=0:2^{200}3^{0}167^{0}\\\text{So }\\ \max|S| = \sum\limits_{k=1}^{101}{k}+\sum\limits_{k=1}^{100}{k}=\frac{1}{2}101\cdot102+\frac{1}{2}100\cdot101=101^2=10201\\$


File Not Found When Using Includegraphics

I am writing a mathematical paper, and in it I need to include certain images relevant to the topic. However, when I try to do so, I receive an error code, and nothing I have found on the subject is giving me any insight on how to relieve this error. I have the following;  \usepackage{graphicx} \graphicspath{ {C:/Texpics} }   \begin{document} \includegraphics{img.png}   And I receive;  ! LaTeX Error: File `img.png' not found.   Any advice would be appreciated. Working in both TeXworks and Texmaker gives the same result.


Can someone show me why my variables work outside of a functions and not inside a function

Im studying JavaScript,   I can make variables, and they work. However when I place them in side a function they dont work..? why? I recieve the answer ( 10 0 undefined)    var totalPeople = 3; var totalApples = 30;  function tree(totalApples, totalPeople) {   const shareApples = totalApples / totalPeople;   const moduloApples = totalApples % totalPeople;    const output = shareApples;    console.log(output + " " + moduloApples); }  console.log(tree(totalApples, totalPeople));


Is UnityAnswers using the Stack Overflow engine, hosted privately?

I was just looking at  and they seem to be using the Stack Overflow engine or Stack Exchange.  But it seems to be hosted on their servers. How is that possible?


Is my intuition for ${\vdash}$ and ${\models}$ correct?

I just want to check my idea for what exactly is meant by ${\vdash}$ and ${\vDash}$ is correct (I am a noob to logic). ${S\vdash t}$ means "$t$ is provably true using finitely many elements of $S$ within that system", whereas ${S\vDash t}$ means "$t$ is true given $S$", but doesn't make any statements about whether we could prove it within that system $S$. Is this essentially correct? Thank you.


Replication broke table compression and partition though I can still see the ndf files having data sql server

I recently did a backup of a table,compressed it and partition it.Then I did replication to it using the filter option to get latest data.Now I can only see the latest records and not the old records but the ndf files are there. Is there a way to recover these records?I mean tie back the partition to this table so that I can see the data?


When referencing a table with \autoref{}, instead of the table's correct reference I always get Table 1.2. This is quite strange, because clicking in the reference sends me to the correct table on the pdf.  Here's a sample table:  \begin{table}[ht] \centering     \begin{tabular}{c c c c c c}     \hline     Region & Facebook & Twitter & Google+ & Instagram & Pintrest \\     \hline     North America         & 55\% & 24\% & 17\% & 12\% & 16\% \\     Middle East \& Africa & 52\% & 28\% & 31\% & 10\% & 8\% \\     South America         & 51\% & 25\% & 24\% & 11\% & 6\% \\     Asia-Pacific (APAC)   & 48\% & 27\% & 26\% & 8\% & 5\% \\     Europe                & 43\% & 18\% & 16\% & 6\% & 3\% \\     \hline      \end{tabular} \label{table:social-share-by-region} \caption{Social network share by region, excluding China\cite{InstagramIsTheFastestGrowingSocialSiteGlobally}} \end{table}   I reference it as usually:  \autoref{table:social-share-by-region}   What could be wrong?  Edit: forgot to mention; this sample table is Table 1.6, the reference (as indicated) shows Table 1.2  Edit: just tried it; \ref{table:social-share-by-region} is still 1.2...


I have inherited a web api that has lots of enums defined in code, I want to convert them to a view-model class called EnumView so they can be serialized as below...     {Id: value, Name: enumName}   public class EnumView {     public int Id { get; set; }     public string Name { get; set; } }   Upon restricting the Generic class to the enum type, I get the warning      Constraint cannot be special class 'System.Enum'   This is the generic converter that I was going to use...  public class EnumViewConverter<T> where T : Enum {     public static List<EnumView> ConvertToView()     {         List<EnumView> enumViews = new List<EnumView>();          T[] enumValues = (T[])Enum.GetValues(typeof(T));          foreach (var enumValue in enumValues)         {             var enumView = new EnumView             {                 Id = (int)enumValue,                 Name = Enum.GetName(typeof(T), enumValue)             };              enumViews.Add(enumView);         }         return enumViews;     } }   Without T being constrained to an enum, the following conversion doesn't compile...     Id = (int)enumValue,   Due to the issue around a lack of generic enum constraints, what's the best way to go about this?


How do you post images on the i.stack.imgur page?

When looking through some of the riddles on the puzzler SE, I noticed that quite a few of them used images that they posted on the i.stack.imgur page. When I went on that page, all I got was this:  Is there something that I need to do to post images on this page, or is the website down?


Can you craft badges or use card boosters for games you don't own?

While you have to own a game to get card drops, drops are not the only ways to get cards from a game. You can trade them, you can buy them from the market or you can use a booster.  Do boosters work for games you don't own? Can you craft badges for games that you don't own?


How to add a value to an array in a specific location with JS

I have an array of objects:  const array = [   { id: 1 },   { id: 2 },   { id: 3 },   { id: 4 } ];   and I need to add another entry to it, but it needs to be placeable within any location in the array. So for example:  array.push({ id: 5, after_id: 2 }); and this should place the new entry between ids 2 and 3. Is there some standard way of doing this?


Why brief as a verb means to give information thoroughly and even as a noun it means a legal document, given to a barrister, containing all the information about a case but as an adjective it means containing few words?  There's a document called brief, given to a barrister, which is not at all brief. It's concise and detailed. Then why do they call it a brief?  Even as a verb it means to give an information thoroughly, then how brief as an adjective means short?  If I'm asked in exam to answer a question in brief. Which perspective am I going to use? Brief as an answer solely or brief according to that particular topic which is asked? Now the size of a brief answer can be subjective. To me, a brief answer can be a paragraph. To the other person, it could be one or two more paragraphs but with accordance to the topic, it will always be objective (depend on individual topic).


Solvable equivalent to nilpotency of first derived Lie algebra?

The Wikipedia  page lists the following property as a notion equivalent to solvability: $\mathfrak{g}$ is solvable iff the first derived algebra $[\mathfrak{g},\,\mathfrak{g}]$ is nilpotent.  I can't see this at all and it does sound dodgy: solvability and nilpotency different by "only one rung" in the derived series. Is this correct (I suspect I'm missing something trivial- I can't seem to find anything relevant in Knapp "Lie Groups: Beyond an Introduction" (mine is reprint of the first edition))? If not universally correct, is it correct with further assumptions about the field which $\mathfrak{g}$ is a vector space over? (For example, a field of characteristic nought, algebraically closed, ...). Can someone either give a proof, a counterexample or a reference to one?   I'd also like to put a reference on the Wikipedia page quotation, or clearly have it stricken from the page if incorrect.


I'd like to use the \hl command from the soul package in a French text. However, it does not work whenever the part to highlight contains French accents (e.g.: \hl{é}).   I could use \'e instead of é (\hl{\'e}) but it would be quite long to substitute all the accents just in case I will have to highlight them later (and there are several accents in French : é, è, ù, à, ...).  Do you know whether it's possible to make \hl works with accents without substituing all the accents?  Here is an example file:   \documentclass[15pt , a4paper]{article}  \usepackage[french]{babel} \usepackage[utf8] {inputenc} \usepackage{soul} \usepackage{color}  \definecolor{y}{RGB}{245, 255, 189} \sethlcolor{y}  \begin{document}   \hl{\'e} % works   %\hl{é} % doesn't work \end{document}


So when a capacitor is being charged, it is connected to a voltage source and a current flows through it (for a time).  Now, high-school physics says that when a capacitor made of 2 large parallel plates charges, one plate collects an excess of electrons, which makes it more negative. But... the electrons (in this model) are also circulating in the circuit, so they also "pass" through the capacitor, until "something happens" and they cannot pass anymore (i.e. a charged capacitor blocks DC). What is this thing which happens?  As far as I understand it, the high-school model is actually too simplistic, but where does it break down? I have a vague idea that the electrons are too slow to carry current (especially if it changes with high frequency such as in RF circuits) and electrical current is actually an EM field which is propagating, similar to how light (and the entirety of the RF spectrum) behaves, only localised to the wire (a conductor, like glass is for light). So, how does that model explain capacitors?  Can anyone point to a good explanation of the physics involved here?


Covariance Between $\hat{\beta_0}$ and $\hat{\beta_1}$

Our model is $Y=\beta_0+\beta_1X+U$.  We know that $$\hat{\beta_0} = \beta_0 + \sum\limits_{n=1}^N c_nu_n \quad \text{ and }\quad \hat{\beta_1} = \beta_1 + \sum\limits_{n=1}^N k_nu_n \,,$$ where $$k_n = \frac{(x_n-\bar{X})}{D}\,, \quad D = \sum_{n=1}^N (x_n-\bar{X})^2\,,\quad\text{ and }\quad c_n = \Big[\frac{1}{N}-\bar{X}k_n\Big].$$  We are trying to use the assumptions of autocorrelation and homoskedasticity to derive the covariance between the OLS slope and intercept estimators, $\mathrm{Cov}[\hat{\beta_0},\hat{\beta_1}]$.   I'm not sure how to go about this, or how to use these assumptions?   I know how to begin using the definition of covariance, and then substituting to remove the coefficients, but where do I go from there? I'm not sure how to continue.


I really have nothing here. Looked through all sorts of questions relating to C# and JSON. I have tried meddling, I can only either A: Get all the JSON output, or nothing, I can't seem to figure out how to get what I want.  So I am pulling JSON from here:  I have only limited it to 1 for the sake of being easy on the eyes here, you can increase it to see if the code can scale or not.   Now, what I am trying to do is, key the Key/Value pair from URL and the Value of that key.


Accepted way to reactive (bump?) a question

I found a question on stackoverflow which is exactly the question I would like to post. There is one answer, not up-voted, not marked as correct (and not what I would accept). The answer is six month old, so I think there is a good chance that if I would re-post the question, I would get additional answers.  But since the question exists already, I don't want to re-post the same. Rather I would like to re-activate the question such that it looks very similar to a new questions.  What is the accepted way to do this?


How do I get MySQL query to allow the php $_POST?

$myResult = mysqli_query($con, "SELECT * FROM users WHERE Password=$_POST=['password']");   It won't let me put my $_POST. I need to have it adaptable so it won't be set to just one password.   Here's the rest of my code, this is a localhost learning thing, so I'm not giving anything away  <?php $con=mysqli_connect('localhost','root','Llamabash','whales'); if (mysqli_connect_errno()) {     echo'Database connection error: ' . mysqli_connect_error();     echo'
'; } else {     echo'Connected to database';     echo'
'; } //works fine up till here $myResult = mysqli_query($con, "SELECT * FROM users WHERE Password"); $checkUsername = $_POST['username']; $checkPassword = $_POST['password']; while($check = mysqli_fetch_array($myResult,MYSQLI_ASSOC)) {     //echo $check;     //echo '
';     if($checkUsername == $check['Username'] && $checkPassword == $check['Password']) {         echo'
Logged in.
';         echo'
Hello ' . $check['Username'] . '!
';     } elseif ($checkUsername == NULL) {         echo'
Please Enter Username.
';     } elseif ($checkPassword == NULL) {         echo'
Please Enter Password.
';     } elseif ($checkPassword != $check['Password'] or $checkUsername != $check['Username']) {         echo'
The Username or Password is incorrect.
';     } else {         echo 'something weird is happening';           echo '
';     } }  mysqli_close($con); echo'Exited database.'; ?>


Allowed memory size exhausted, tried to allocate xx bytes

In an error log file on my server are some errors of this kind :   PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 86 bytes) in ....(a php file, on line..)  PHP Fatal    error:  Allowed memory size of 268435456 bytes exhausted (tried to    allocate 2 bytes) in ....(a php file, on line..)   For every error the recommended allocate bytes amount is lower than 100 bytes.  Does it mean that an increase of memory of only 100 bytes would solve every problem ?  How could I know what script is responsible for so much memory usage ?  My shop is built with Prestashop 1.5.6.2.  The full error message that I get is the following :  Allowed memory size of 268435456 bytes exhausted (tried to allocate 92 bytes) in ../classes/db/DbPDO.php on line 101   The line 101 is as follows :  return $result->fetch(PDO::FETCH_ASSOC);   This line is part of the following code :      public function nextRow($result = false) {     if (!$result)         $result = $this->result;     return $result->fetch(PDO::FETCH_ASSOC); }   I am not a developer and I thank you in advance for any help in this matter.  Patrick  I thank you in advance for any reply.  Patrick


Why Dumbledore kept mum until the very end of the "Deathly Hallows"?

Dumbledore always let Harry try his strengths. But in desperate times as in Deathly Hallows, is it right for him to have kept mum?  During their exile, Harry asks Phineas Nigellus if he could bring him Dumbledore.  But surely Dumbledore, though dead by then, but being an extremely powerful wizard, could have devised numerous ways to communicate with Harry!  At the very end of Deathly Hallows, after Voldemort is dead, we see that Harry is able to communicate to Dumbledore via his portrait regarding the resurrection stone. If he was able to do it at that time, why not much much earlier, when he was treading his path with skepticism, in thirst for the numerous truths like the Sword of Gryffindor, Dumbledore's extraordinary life, the Deathly Hallows, etc.? Wouldn't it have made everything simpler and perhaps could have brought about the death of Lord Voldemort way earlier?


How to accumulate values of each two rows across a line in linux?


Where to put my code: plugin or functions.php?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php?  There    and many  about that topic, mostly because there are some misconceptions about the inner workings of WordPress. I am asking for an answer based on facts, not on opinions.  It should explain how to handle these points (and probably more):   custom post types and taxonomies contact forms shortcodes custom widgets  SEO functions like custom meta elements theme switch   There are often pros and cons for both sides. Our most popular question  got a lot of code snippets as answers that are at least debatable. We need criteria a beginner can understand, maybe a check list – with reasons.  See also the related question by Chip Bennett on our meta site:   Related:


Can Loop Quantum Gravity connect in any way with string theory?

The one difficulty I see with LQG is that it requires an enormous number of degrees of freedom, e.g. these spin variables in the net.  This is in contrast to stringy holographic theory where the fields in a space are equivalent to fields on a boundary or a horizon of one dimension lower.  In this setting entropy of a black hole is the entanglement entropy of states interior and exterior to the black hole.  This reduces the amount of data, and thus entropy, required.  Are there suggestions, conjectures or maybe serious theory which attempts to describe the spin variables of LQG according to such entanglements in string-brane theory?


I'm currently trying to install Apache on Centos 7 using the following tutorial .  When i type in the following command systemctl start httpd.service to start up Apache, I get the following error: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.  can anyone help me understand what is going wrong here? also bare in mind that I'm a complete noob when it comes to servers and linux, as i have never used them before.  Also i entered the following command systemctl status httpd.service and got the following back:   httpd.service - The Apache HTTP Server    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2016-08-04 10:39:59 IST; 3min 20s ago      Docs: man:httpd(8)            man:apachectl(8)   Process: 6515 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)   Process: 6513 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)  Main PID: 6513 (code=exited, status=1/FAILURE)  Aug 04 10:39:59 localhost.localdomain httpd[6513]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Aug 04 10:39:59 localhost.localdomain httpd[6513]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 Aug 04 10:39:59 localhost.localdomain httpd[6513]: no listening sockets available, shutting down Aug 04 10:39:59 localhost.localdomain httpd[6513]: AH00015: Unable to open logs Aug 04 10:39:59 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Aug 04 10:39:59 localhost.localdomain kill[6515]: kill: cannot find process "" Aug 04 10:39:59 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1 Aug 04 10:39:59 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server. Aug 04 10:39:59 localhost.localdomain systemd[1]: Unit httpd.service entered failed state. Aug 04 10:39:59 localhost.localdomain systemd[1]: httpd.service failed.   if any of that helps.


How are large amounts of money expected to be made during the early parts of the Waterdeep: Dragon Heist adventure?

I'm currently running the Waterdeep: Dragon Heist adventure, and want to stay in the book's materials.  There's an opportunity for      the party to renovate Trollskull Manor as an inn, for the cost of 1250gp   How can the party fund this relatively enormous expense, as a party of freshly minted level 2 adventurers? Can they get a loan from a bank? A patron? Ask a faction? Get a (gasp) job?  Are they expected to get this money before continuing in the adventure, or is this something that is expected to be an ongoing project for the rest of the adventure?


I have a 1TB HDD and 240GB SSD and both have 2 equal partitions. I've installed Windows 10 on one of my SSD drives and want to install Linux on the other. Once the installation completed and I restarted computer. I expected Grub to appear at first and let me choose what OS to boot but it didnt, it instantly boots on Windows 10. I don't know about UEFI but I know it's relevant to this issue, would you explain to me how to solve it?


Should href be set with prop() or attr()?

If I want to change the href of a link dynamically, should I do so using prop() or attr()?


didn't render correctly. I ran into the problem several times when trying to write the post, where SE would only display {{content.field.caption}} instead of the whole code block. Also, the incomplete output is formatted text when this bug occurs rather than fixed-width code style.  It's reproducible in this post, just delete the blank line after "The whole code block is:"  The whole code block is:

{{ content.field_caption }}


Can't implement DAO design pattern in Java application

I'm a newbie in Java and I'm trying to design an application that has methods to fetch data from a database getCountries(), a method that finds countries in the table by searching for an input ID value findCountryByCode(int codeID) and finally, a method that saves new countries to the table called saveCountry(Country countries). I am asked to use all the good practices of OOP and design patterns in this exercise.  I have several classes managing the data encapsulation but I got stuck trying to debug some output errors. The class that connects to the database MySqlCountryDAO establishes a connection but not only doesn't return any table values on the terminal, instead, I'm prompted with a "java.lang.NullPointerException". I did my research but could not find out why this error appears there. Would anyone be able to have a look at this class and give me a light, please? Here is the code for the class that connects to the DataSource class [i.e. the database connector].  public class MySqlCountryDAO implements CountryDAO {  DataSource db = SingletonInstance.getInstance();  /**  * Returns an ArrayList of all the Countries in the database  * @returns arrayList of country Objects  */ @Override public ArrayList<Country> getCountries() {      ArrayList<Country> countries = new ArrayList<Country>();     String query = "SELECT * FROM country"; // MySQL query     ResultSet rs = db.select(query); // catch the ResultSet and place the result of the query in the result set      int code = 0;     String name = "";     Continent continent = null;     long surfaceArea = 0;     String headOfState = "";     Country c = null;      // loop over the resultSet to fill ArrayList w results     try {         while (rs.next()) {             code = rs.getInt(1); // don't quite get it why starts at 1             name = rs.getString(2);             continent = Continent.valueOf(rs.getString(3));             surfaceArea = rs.getLong(4);             headOfState = rs.getString(5);              //builder pattern to be implemented here             c = new Country(code, name, continent, surfaceArea, headOfState); //new instance of Country class             countries.add(c);         }     } catch (SQLException e) {         e.printStackTrace();     }     return countries; }  }}   And the main class:  public class Main{  public static void main (String[] args){     /**      * instance of the client connecting to the DataSource class      */     MySqlCountryDAO dao = new MySqlCountryDAO(); //instance of dao      ArrayList<Country> countries = dao.getCountries();     for (Country c : countries){         System.out.println(c);     } } }   Below, the output returned when I run the code.     SQL Exception:     java.lang.NullPointerException     Exception in thread "main" java.lang.NullPointerException         at MySqlCountryDAO.getCountries(MySqlCountryDAO.java:28)         at Main.main(Main.java:11)  I don't know what is causing it nor how to debug it. And there are a lot of other features I want to implement on it but I can't test them until the main app runs. Would really appreciate inputs to fix the problem and welcome suggestions to improve the program's structure as well.  Link for GitHub with the complete project is .  Thanks a million!


I was wondering what the output of capturing flop looks like, if there is a hold time violation from capture flop. Can anyone explain with a timing diagram?


find: What does it mean for "-a" to have higher precedence than "-o"?

The man page for gnu find states:     Please note that -a when specified implicitly (for example by two tests   appearing without an explicit operator between them) or explicitly  has   higher precedence than -o.  This means that   find . -name afile -o -name bfile -print   will never print afile.   I'm guessing the above expression equates to:   find . -name afile -o -name bfile -a -print   My question is, how does this expression work? and why will afile never be printed?


Why exactly is the observed Fisher information used?

In the standard maximum likelihood setting (iid sample $Y_{1}, \ldots, Y_{n}$ from some distribution with density $f_{y}(y|\theta_{0}$)) and in case of a correctly specified model the Fisher information is given by  $$I(\theta) = -\mathbb{E}_{\theta_{0}}\left[\frac{\partial^{2}}{\theta^{2}}\ln f_{y}(\theta) \right]$$  where the expectation is taken with respect to the true density that generated the data. I have read that the observed Fisher information   $$\hat{J}(\theta) = -\frac{\partial^{2}}{\theta^{2}}\ln f_{y}(\theta)$$  is used primary because the integral involved in calculating the (expected) Fisher Information might not be feasible in some cases. What confuses me is that even if the integral is doable, expectation has to be taken with respect to the true model, that is involving the unknown parameter value $\theta_{0}$. If that is the case it appears that without knowing $\theta_{0}$ it is impossible to compute $I$. Is this true?


Word or phrase meaning 'Misinterpretation of tone due to language or cultural barrier'

I am looking for a word or phrase to describe a misinterpretation of tone due to language or cultural differences. For example, this is an answer from , the gaming StackExchange site  Sir it would appear that you have encountered something called a "bug",which is no wonder since DayZ is early access game. This one is known bug and it is even reported on the DayZ feedback site so it will be fixed sooner or later...It doesn't seem to have a high priority for now however. For now reconnecting should fix this problem,sadly it isn't viable long term solution. Here is the link to the ticket if you want to track the progress.  The answer is perfect, explaining not only what is happening, but why it is happening, how to fix it and links to further reading. However explaining  what a 'bug' is in a game seems condescending in any type of gaming community. After further research the poster is from a Middle Eastern country and it seems that he was trying to be verbose in his answer (which should be encouraged) instead of condescending.


Geometric intuition behind gradient, divergence and curl

I learned vector analysis and multivariate calculus about two years ago and right now I need to brush it up once again. So while trying to wrap my head around different terms and concepts in vector analysis, I came to the concepts of vector differentiation, gradient, divergence, curl, Laplacian etc.   The reference that I'm using is very inadequate to give any geometric/physical interpretetions of these (almost) new concepts. I don't have much problem with their formulae and working rules, but I want to look at them in a little more geometric way. For example, the geometric significance of gradient that I got out of my book is the following: if $f:\mathbb{R}^3\to \mathbb{R}$ be a differentiable function then $\nabla f (x,y,z)$ is the vector perpendicular to the level surface $f(x,y,z)=c$ ($c$ constant) at the point $(x,y,z)$.  I would really appreciate if anyone can explain how, in this way, can divergence, curl and Laplacian be interpreted geometrically. (e.g. For a given vector field $\textbf{F}: \mathbb{R}^3\to \mathbb{R}^3$, the relation between $\nabla\times\textbf{F}$ and $F$ and questions like that.) I looked around Google a bit, but couldn't find what I was looking for.  Thanks in advance.


$form_state->setRedirect not working after a $form_state->setResponse

In the submitForm of a custom form, I have this:    $sFileName = 'sites/default/files/_private/bulletins/' . $form_state->getValue('adherent')[1] . ".pdf"; $response = new BinaryFileResponse($sFileName); $response->setContentDisposition(   ResponseHeaderBag::DISPOSITION_ATTACHMENT,   'bulletin.pdf' ); $form_state->setResponse($response);     This triggers the download of a pdf document and it works. Then, I try to execute:    $form_state->setRedirect('<front>');   and that is not working! In FormState::setResponse documentation, I read « If a response is set, it will be used during processing and returned directly. The form will not be rebuilt or redirected ». I guess it is why my redirection to  doesn't work...    How can I do it anyway?


How do I check if Ubuntu is using my NVIDIA graphics card?

The reason I'm asking is that none of the games I've installed through software center that require 3D accelartion like TORCS for instance will run. When I try to run then, nothing happens. I have a Dell Inspiron N5110 with a nVidia GeForce GT 525M.  I tried the following which I were some suggestions for people with similar problems:  lspci -v   Which gave me:  01:00.0 VGA compatible controller: nVidia Corporation Device 0df5 (rev a1) (prog-if 00 [VGA controller])     Subsystem: Dell Device 04ca     Flags: bus master, fast devsel, latency 0, IRQ 16     Memory at f5000000 (32-bit, non-prefetchable) [size=16M]     Memory at e0000000 (64-bit, prefetchable) [size=256M]     Memory at f0000000 (64-bit, prefetchable) [size=32M]     I/O ports at e000 [size=128]     Expansion ROM at f6000000 [disabled] [size=512K]     Capabilities: <access denied>     Kernel driver in use: nvidia     Kernel modules: nvidia_current, nvidia_current_updates, nvidia, nouveau, nvidiafb   I also tried:  egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log   Which gave me:  [    20.873] (II) intel(0): Output LVDS1 connected   And:  nvidia-smi -a   Which gave:  NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory). Nvidia-smi has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.   I don't really understand what all this means.


In the .bashrc file, one can add an alias for a command, say  alias geditm = 'gedit --display=D1'   Now I can run geditm in a terminal and have gedit open in display D1.  I am curious if there is a way to define an alias for running commands from the Alt-F2 menu, so that I could Alt+F2, type geditm and have the same result.   I am interested in doing this generally, not just for gedit.


Photoelectric experiment explaining particle property of light

How does photoelectric experiment prove the particle aspect of light in opposed to be solely wave-like?


Python SQLite Database query: Why does it always print "u" before any value?

I am trying to create a database and whenever I try to select + print the data it prints an "u" before any value and I have no idea why it does that?!   import sqlite3  conn = sqlite3.connect('learner.db')  c = conn.cursor()  # c.execute("""CREATE TABLE learners ( #           ID varchar, #           name text,  #           age integer, #           email varchar, #           goal varchar, #           reason varchar, #           budget integer, #           keyword1 varchar, #           keyword2 varchar, #           keyword3 varchar, #           keyword4 varchar #           )""")  c.execute("INSERT INTO learners VALUES ('L01','Leon','23','hi@max.com','I want to loose some weight','marriage is not far away','30','weightloss','fitness','health','nutrition')")   c.execute("SELECT * FROM learners WHERE name='Leon'") print(c.fetchone())   conn.commit()  conn.close()    And this is what I get:   (u'L01', u'Leon', 23, u'hi@max.com', u'I want to loose some weight', u'marriage is not far away', 30, u'weightloss', u'fitness', u'health', u'nutrition')    Why is there an "u" in front of the values?!   Thank you so much for your help!


Dell PowerEdge T610, came with 4x 2GB UDIMMs. I replaced those with 2x 8GB RDIMMs. Filled the empty slots with blanks. I just want to make sure that I'm not hurting performance by replacing all 4. I do realize 4x 8GB RDIMMs would be better than 2.


Hammer will fall faster than the feather on the moon. 10 second thought experiment!

Please explain where my logic is wrong.  a) Ignoring air, the same bowling ball will fall faster on Earth than on the Moon.  b) Now, for the feather and hammer on the Moon, reverse your point of view and consider the Moon to be a big ball, and the hammer and feather to each be planets.  c) The Moon ball will fall faster on Planet Hammer than it will on Planet Feather.  d) Ergo, returning to our familiar point of view, the hammer will fall faster than the feather on the Moon.  Of course, the difference may be beyond our current technological capabilities to measure, but that's a different issue.  We can get more complicated and say that the hammer and Moon are both falling towards their common center of gravity (as are the feather and Moon) and that this congruence towards the center of gravity will happen faster for the hammer/Moon combo than for the feather/Moon combo because there is more mass (=> gravity) involved in the former case.  The same logic can be conceptualized through GR because the hammer will bend its space-time just a tad more than the feather will, so the Moon will reach rendezvous point with a smaller transition on the time axis.


How to set-up my laptop to use wired connection when WiFi is avalable as well

I would like to set-up my laptop's networking to use exclusively LAN (Ethernet) connection when both LAN andWiFi are available? (In my case wired and wireless connections come from the same router.)  I do not want to simply disable WiFi (though it's just a button push) but to have wired connection set as a preference.  Is there an easy way to do so?


Find the value of $\left(\cos 52^{\circ}+\cos 68^{\circ}+\cos 172^{\circ}\right)$

Find $\left(\cos 52^{\circ}+\cos 68^{\circ}+\cos 172^{\circ}\right)$      $\color{green}{a.)\ 0 }\\ b.)\ 1 \\ c.)\ 2 \\ d.)\ \text{none of these} $   In exam I often fail to remember the formula's of   $\sin(A)\pm \sin(B) \\ \cos(A)\pm \cos(B) \\ \sin(A)\pm \cos(B) \\ $  so I wonder if there is any other general method to tackle this problem.  I look for a short and simple way.  I have studied maths up to $12$th grade.  Note: I can't use calculator.


equation of a circle that has a radius of $\sqrt{10}$

I am supposed to find the equation of a circle that has a center $(\sqrt{5},2\sqrt{2})$ and a radius $\sqrt{10}$.   I have no idea of solving an equation which the given center ($\sqrt{5},2\sqrt{2})$.  I know the distance formula but I don't know how to answer for the given center.


Highlight my favorite tags questions in newest order. (app)

Right now I can't differentiate my tags questions in Android app  So if it can be highlighted would be nice and readability will be improved.


We all know that if we Highest Common Factor (or Greatest Common Divisor {As you  prefer}) and the Least Common Multiple two numbers , then ALL WE KNOW is ->   H.C.F $/cdot$ L.C.M $=$ Product of 2 numbers {Well,as pef my knowledge , this is only applicable for 2 numbers}  Is there any kind of proof of this famous relation ??


Two blue arrows [compression?] on literally nearly everything

I went to sleep, and now it seems that everything, from program folders to images, have blue arrows on the top right of their thumbnails. Naturally this has spooked me a little. Is there a way to mass reverse this, and are the integrity / quality of my files or images at risk?


What is thermal radiation? How does it move through space?

Assume that by some mysterious(at the lack of a better word) way I was able to make a bonfire on the moon and was able to sit next to it without a space suit.  I will not be able to feel the heat form the fire as a result of convection as there is no atmosphere   Now my question is will I be able to feel the heat from the fire as a result of radiation? As far as I know a wood fire does not produce electromagnetic waves or does it?  In short what is thermal radiation?


How to have equations with captions, while they are not listed as figures, but as equations?

Actually, I want to have the same functionality for equations as for figures: captions, text floating around equations (wrapfigure), List of equations in toc.  How to do? The usual way is to press equations into the figure environment, like here:    Is there a better way?


Can “it is” always be shortened to “it’s”?

For example, can we change  The car is blue, but the truck next to it is red.  into  The car is blue, but the truck next to it’s red.


"The mass of the proton is $1.672\,621\,637(83) \times 10^{-27}\:\mathrm{kg}$" - please, how does the error work for this?

Sorry if this is a basic question, but I just want to be sure about this because I am doing some research. I have never been sure what the number in brackets means in scientific values like this.  $$1.672\,621\,637(83) \times 10^{-27}\:\mathrm{kg}$$  In this example, would this mean that the maximum is $1.672\,621\,720 \times 10^{-27}\:\mathrm{kg}$ and the minimum is $1.672\,621\,554 \times 10^{-27}\:\mathrm{kg}$ ?  Could this also be written $1.672\,621\,637\times 10^{-27} \pm 0.000\,000\,083 \times 10^{-27}\:\mathrm{kg}$?


I'm trying to solve the functional equation $f(x+f(y)) = f(x)-y$ where $f : \mathbb{Z} \to \mathbb{Z}$. What I got so far is: $f$ is injective and $f(0) = 0$. Thanks in advance for your time.


How do I find cheap flights when I don't care about the date?

I more often than not don't really care about travel times, I would happily seek out the cheapest time within a 2-3 month period.  All the online sites I come across give you the option to select a date with a variation of -7/+7 days.  I would like to know if there is a site that will just find me the cheapest prices but that is more relaxed on the date.  I am from the UK, any specific sites are preferred.


Radius of a circle touching a rectangle both of which are inside a square

Given this configuration :  We're given that the rectangle is of the dimensions 20 cm by 10 cm, and we have to find the radius of the circle. If we somehow know the distance between the circle and the corner of the square then we can easily find the radius. (It's equal to $ \sqrt{2}\times R-R$) I really can't understand how to solve it. Any help appreciated.


I lost my phone please help to locate it

I have lost my phone and I used the Samsung account to locate it, but it didn't work.  Also, I told the police using the IMEI number of the phone.  In the same day I looked into Android Device Manager, but it showed nothing. Even it being stolen on 4/5 and the phone turned on on 8/5 because my friend saw my Viber account once. Can I at least locate the last time my phone was turned on to find my phone?


Just for clarity, Tables over Divs...Which is better?

Why is DIV better than TABLE?  I am very old and have used tables for yonks, but was told off recently. Just wondering the reason why.


How to write and read specific bit of a 32 bit register

I'm new to bit operations and trying to experiment little bit.   let's say I have a 32 bit register which is constructed as follows:  Bit 31:12 RESERVED Bit 11    CONFIG1 Bit 10    CONFIG2 Bit 9:0   DATA   There exists already a Function to write data into the register:   #define WR_REG_32(address, value)    (*((volatile u32 *)(address)) = (value))   I would like to write the value 0x0 at Bit 10 (CONFIG2). The value should be in the format like for example:  0x00005000    So, how to know what hex value to use in order to write to Bit 10 the value 0x0 without touching the other bits?  Also, what is the easiest way to read from the 32 bit register only the values from bit 0 - 9 ?


How to check if dynamically created div's exist using jquery

I am creating these div's dynamically when user adds products to compare.  //code in jquery var innerdiv='
'+value.name+'
'; $('#compare-pane').append(innerdiv);   How do I check dynamically if the compare pane is empty or it has inner divs?  I have to hide a button if compare-pane is empty.  The inner div id is dynamically generated  (e.g innerdiv166104).  How do I check if any inner div exists? I cannot use empty check as there are another elements inside compare-pane too which are required.  I cannot fetch the inner div id's as they will be coming dynamically as per users selection.


How to run .exe file with wine in a specific drive_c directory

I am playing around with Steam's new SteamPlay/Proton feature. I have installed the game, and now I want to install a third-party localization package, which comes in a form of self unpacking .exe file. The problem is that if I try to run this file, it starts to execute in context of ~/.wine, and I need it to execute in context of ~/.steam/steam/steamapps/compatdata/<gameid>/pfx, which steam has created to run my game. How do I specify where I want this file to run?  Sorry if my question is poorly formulated, I haven't really come to familiarity with wine, so I may confuse terms.


Are elements in $A_n$ the squares of elements in $S_n$?

Tt is true that elements in $A_4$ are squares of elements in $S_4$. Is it true for $A_n$?


Plural or singular noun when it refers to two things in a list

I wonder which of the two is correct:        I have a red and a blue car.   I have a red and a blue cars.      or        Everyone has a left and a right arms.   Everyone has a left and a right arm.      My (non-native) inclination would be for option 1, as it sounds better.  On the other hand, in the following examples, the plural sounds better to me.    Everyone has left and right arms. I have old and new cars. (when I only have only one old car and one new car) The left and the right arms are...   But are they correct?


PROBLEM Let $A$ be a dense subset of $X$ and suppose $A$ is connected in the induced subspace topology, then $X$ is also connected  ATTEMPT Suppose $X = U \cup V $ for open, nonempty, disjoint $U,V$. By Denseness of $A$, $Cl(A) = U \cup V $. We know that $A \subseteq Cl(A)$. Hence $A \subseteq U \cup V $. Well, here it is pretty obvious that $A $ must be $U \cup V$ and hence having a contradiction. But I think probably I need to prove this obvious thing. Can someone help me? Is this approach correct? Thanks,


Tier 4 visa start date or UK Immigration law?

I'm a US citizen and I've already gotten my Tier 4 visa to study in the UK in my passport, however, it looks like the start date on the visa and the letter to present to the Immigration Officer has allowed me entry an extra week on top of the usual month. My school starts on September 24th, but my visa states permission to enter on August 17th. I've read that you are only allowed a month before the beginning of school, but my visa is saying differently!  Should I assume its wrong and enter on the 24th or is it okay for me to enter on the 17th?   Thanks.


So I was surprised I didn't find anything regarding this.  I have a python script which is testing a C++ program. It needs to format a float in the same way std::setprecision does. That is a float like 1.265 should be rounded UP to 1.27 (2 dp).  Now I have the following code: "{:.2f}".format(myFloat)  The issue is that numbers like 1.265 are rounded to 1.26 and my tests fail. setprecision rounds 1.265 to 1.27. What is the best way to fix this issue?


Kernel and span equivalence: What if V is infinite-dimensional?

Let $V$ be an infinite-dimensional $K$-Vector Space and $f_1, f_2, \dots, f_n, g \in V^*:=\operatorname{Hom}_K(V, K)$. Proof the following statement: (i) $g\in L(f_1, f_2, \dots, f_n) \Leftrightarrow \bigcap _{i=1}^{n}\ker(f_i) \subseteq \ker(g)$. The proof for a finite $V$ already exists. Now what if $dim(V)=∞$?


Cardinal arithmetic- Problem 5.18 Jech's book

I am solving problems of the Jech's book (set theory). I need help to solve problem 5.18: $ℵ_ω^{ℵ_1} = ℵ_ω^{ℵ_0} · 2^{ℵ_1}$. I have some computation in the following way, but I think my path is not correct. Obviously, $\aleph_{\omega}^{{\aleph_{1}}}$ is at least $\aleph_{\omega}^{{\aleph_{0}}}2^{{\aleph_{1}}}$. Let’s prove the equality. By theorem 5.20, it is either ${\aleph_{n}}^{{\aleph_{0}}}$ for some $n<\omega$ or (since $\operatorname{cf}(\aleph_{\omega})=\aleph_{0}\leq\aleph_{1})$ it is $\aleph_{\omega}^{{\aleph_{0}}}$. In the latter case, using Hausdorff formula we get ${\aleph_{n}}^{{\aleph_{0}}}=\aleph_{1}^{{\aleph_{1}}}{\aleph_{2}...\aleph_{n}}\leq 2^{{\aleph_{1}}}\aleph_{\omega}^{{\aleph_{0}}}$. Do you have a solution for this problem?


Brilliant.org Random Variables & Distributions Quizz 2

There are $12$ blue marbles and $4$ red marbles in a bag. You reach   into the bag and pull $5$ marbles out at random. What is the expected   value of the number of blue marbles drawn?   I found the solution to this problem with a much simpler solution than the one that was offered.  The way I solved it: We have 5 marbles, and the probability of getting a blue marble is $12/16 = 3/4$.  Therefore the Expected Value is $5\cdot 3/4 = 15/4$.  I got the answer right but I'm not sure if I got it by fluke.  The way they solved it was by solving $P(X=1), P(X=2), ..., P(X=5)$ individually using combinations and summing these probabilities.  Seems a bit complicated to me if I can get the same answer the way I did it, unless my reasoning isn't sound.  Any thoughts?


Get NID of newly created node from entity_metadata_wrapper

I need to pull the nid immediately after it is created using entity_metadata_wrapper as a creation method.  Here is a brief example:  $values = array(   'type' => 'content_type',   'uid' => $user->uid,   'status' => 1,   'comment' => 1,   'promote' => 0, );  $entity = entity_create('node', $values); $wrapper = entity_metadata_wrapper('node', $entity); $wrapper->title->set('title'); $wrapper->save(true); entity_save('node', $entity);   // From this, where can I get a NID value for the node that was just created?


Is there a standard name for the "standard" computer screw?

I have the unfortunate task of writing a technical document, and I know the government is a stickler for unnecessary detail. Is there standard name for the standard computer screw? Also, what is the name of the standard disk drive screw?


I attempted to solve this problem by taking the two out of the integral. Then, I changed $\sec^3(x)$ to $\frac{1}{\cos^2(x)\cos(x)}$ and attempted to replace $\cos^2(x)$ with $1 - \sin^2(x)$.   However, I do not know where to go from here. Any insight, hints, tips, or answers would be fantastic.   Thank you for your time.


Configuring date and time in Ubuntu 17.10

I like to have the date and time in ISO format (2017-10-30 19:57) on the top right of the screen. I also like to be able to configure things from the command line (an issue not addressed in the suggested "duplicate"), so that when I reinstall the OS I can just run a script and get my preferred configuration back.  After some painful digging around (and, I'm sure, some helpful askubuntu posts) way back then, I managed to get what I wanted. The following worked for several releases, up to and including 16.04 LTS:  gsettings set com.canonical.indicator.datetime time-format "'custom'" gsettings set com.canonical.indicator.datetime custom-time-format "'%a %F %R'"   But it no longer works in Ubuntu 17.10 (I haven't tried Ubuntu 17.04). Can anyone figure out the equivalent settings for Ubuntu 17.10?  I launched dconf-editor and a search for "time-format" did not yield any results.  Here on askubuntu there seem to be several posts on changing date/time format but I could not find one relevant to Ubuntu 17.10.


Linking static lib with other static libs

I'm writing a static lib that needs to handle XML. I want it to include everything that is necessary out of the box but I don't know how to make other static libs link to it, namely libxml2.  I pass the -c flag to gcc to generate .o that ar then uses to create the lib. What magic flag combination must I pass to have my static lib swallow libxml2?


How to automatically save each layer as its own png/jpeg while keeping one main layer above

We offer vinyl decals for many devices. To show what a design looks like on a device, we have to create a main layer of the device, having the place of where the skin would fit cut out for our background layer images to slide behind.   We have 2,000+ designs to offer for each device, so this takes time. After we line up all the backgrounds as individual layers behind the main device window, we then have to save out each layer as its own png. This is a very time consuming process. Here's a test example of a few designs.   Each background layer is titled corresponding to what the design is called. For example: The top layer here is called "Blue Vector Fish and Boat Pattern". How we do this now is we double click the layer title, so it allows us to "copy" the title (instead of typing it in).   then we bring up a "save as" window and you will see our PSD file is currently save as "The (layer name) Skin for the Beats by Dre Solo 2 Headphones",   so we will then need to put our layer title into the spot that currently says "(layer name):  Then change the save type to PNG or JPEG.  We then save out that design, delete the layer we just saved and duplicate our actions for the next layer in this case would be "Seamless Vector Gold Fish".   Is there a way to create a custom script to automatically perform these repetitive actions? I am obviously doing the same thing over and over again. I would appreciate any help! We usually set up batches of 500 and save them out manually and it is brutal. Please contact me if you have any suggestions. Thanks!


Im having a brain fart at the moment, most likely due to being late at night. Any who, I have content that is prepended to the document after an ajax call. I am trying to assign a click event to these elements that are being prepended but it is not firing. Recreating the elements in static html fine.  Jquery  $('.row').click(function() {     $(this).children('.slide2').stop().slideToggle(200); })   $('

'                          + data.some + '

'                           + data.some + '

'                           + data.some + '

'                          + data.some + '

'                          + data.some + '

'                          + data.some + '

Info: '                          + data.some + 'Info: '                          + data.some + 'Info: '                          + data.some + '

').prependTo('#results').hide().slideDown(500);


Recently I've found an article about the Feynman's integration technique. A technique for solving hard integral, that the usual methods do not aply, or the usual methods would take realy long to solve, but the article, despite beeing very concise about the technique itself, jumps on a few steps that are told to be elementary, such as the partial fraction decomposition of a intemediate integral.  Well, I've tried to do the partial fraction but every try I do, I get something worse than presented, I dont know if I'm doing something wrong, but, if possible, I would like a detailed resolution of the integral down below. To help I'm leting the site link   The integral mentioned above is: $$I(x) = \int_0^1{\frac{ln(x+1)}{x^2+1} dx}$$ The problem treats it as a function of $\alpha$: $$f(\alpha) = \int_0^1{\frac{ln(\alpha x+1)}{x^2+1} dx}$$ and states that $f(1) = I(x)$, and, $f(0) = 0$  As suggested my problem is in this steps. $$1^{st}: \frac{\partial f(\alpha)}{\partial \alpha} = \frac{1}{{\alpha}^2+1}\int_0^1{\left(\frac{\alpha + x}{x^2+1} + \frac{\alpha}{\alpha x+1} \right)d\alpha}$$ And the $2^{nd}$ is when it calls: $$I(1) = \int_0^1{\frac{ln(\alpha+1)}{{\alpha}^2+1}d\alpha}$$  Thakfully, liuzp


What do you call someone who is not materialistic?

By not materialistic I mean someone who just doesn't have interest in material things for the sake of the value it would give them from their possession, but rather acquires them for their functionality or simply because they like it for them. An example of getting something for for the type of materialistic reasons I'm talking about would be... A Fancy car not solely for the purpose as means to get from point A to B, or comfort or practicality, but rather to show off). Similar to getting a nice house or a phone or watch or anything material. It's not "spiritual" because such person can NOT be spiritual. Nor is it "ascetic" because it's effortless and comes naturally. No desire of things beyond their practical usage. There is no "discipline" involved. No if you let yourself go, and became lax, you'd fall back to materialism. The word I'm looking for would describe a person to be not materialistic by nature. Whether they let themselves go or not, it would be unnatural for them to be materialistic. No disciple required. Just no desire to attain material things as a tool to increase their self worth by way of using those goods to gain recognition. As an anology, if they were offered a Rolls Royce or a 1989 Chevy Caprice (but they can't sell the car they choose or give it away), they'd choose the Chevy Caprice simply because they like it more.


Why only 2 tangents can be drawn to a hyperbola?

Today we were introduced to what's an hyperbola its properties and hence equation of tangents, normal, pole, polar.   I was stunned when my professor said that we can draw only two tangents to a hyperbola (whether same branch or different). So my confusion begins here.   Now equation of tangent in parametric form is $\frac{x\sec(\theta)}{a}-\frac{y\tan(\theta)}{b}=1$ . Reducing it with double angle formulae, I got quadratic in $\tan(\theta/2)$  which means two tangents can be drawn. But if you just see a hyperbola without much details, a beginner like me would glance and say $4$ tangents can be drawn (with common logic).      What condition is it that justifies that, at maximum, only two tangents can be drawn except the way on which we proved in class. I am probably looking for a geometric clarification.    Thanks


Using bash wildcards with filenames that have single-quotes

I used wget within bash to download a bunch of files from a parameterized URL.  My URL file looked something like this: http://www.example.com/Home/Sales?lrsn=48726 http://www.example.com/Home/Sales?lrsn=48727 http://www.example.com/Home/Sales?lrsn=48728 ...and so on  I ran this wget command to fetch all the files into my directory: wget -i urlfile.txt  The resulting set of files-- when I do an ls in my directory-- has names like this: 'Sales?lrsn=48726' 'Sales?lrsn=48727' 'Sales?lrsn=48728'  My problem is that I cannot figure out how to use wildcards with those files.  E.g., if I type ls 'Sales*8', I would expect it to list 'Sales?lrsn=48728' (and any other matches).  Instead, I get "No such file or directory". Questions:  What do I need to do to use wildcards with the files that my wget operation created? Simple example would be how to match using ls. How would one even create such files to reproduce this.  I.e., I tried touch 'text.txt' and touch "'test.txt'" and other variations, but I can't seem to make a file that lists as 'test.txt' (starting and ending single-quotes). Is there a simple way to provide a naming convention for downloads using the wget -i input mode? (I'm pretty sure the answer to this is "No," but... figured I'd ask.)


I have method:  static T RandomObject<T> (...) { var tmp = Activator.CreateInstance<T>(); ...    foreach (PropertyInfo info in tmp.GetType().GetProperties()){    ...    } }   And if class T have object properties I want to generate them random too, so what I do is:  var t = info.PropertyType; obj = RandomObject<t>(...);   And then I get:     The type or namespace name t could not be found (are you missing a using directive or an assembly reference?)   Any idea to solve this problem?


count array length in c by pointer, the answer is wrong

#include <stdio.h> int a[3] = {1,2,3};  void cal(int* item){     printf("Length(inside) is %lu\n", sizeof(item)/sizeof(item[0])); }  int main(){     printf("Length(outside) is %lu\n", sizeof(a)/sizeof(int));     cal(a); }   The code above comes out with the result that   Length(outside) is 3 Length(inside) is 2   However, it is wrong, because both of them should be 3, what's wrong with my code?


Separate Biblatex bibliographies with newest entry and highest reference number at the top

I would like to have a similar biblatex behaviour as described , i.e. separate bibliographies for different publication types, each bibliography should 1) be prefixed with a corresponding label (C for conference publications, J for journals etc), 2) sorted so that the newest entry is at the top (defined by the publication year) and 3) with reference numbers sorted in descending order per bibliography, i.e. the newest entry should have the highest number.  Journal articles ---------------- [J3]    reference from 2017 [J2]    reference from 2016 [J1]    reference from 2015  Conference publications ----------------------- [C4]    reference from 2017 [C3]    reference from 2017 [C2]    reference from 2016 [C1]    reference from 2015   I currently have the following:  \usepackage[backend=biber,         isbn=true,         giveninits=true,         style=numeric,         maxnames=99,         sorting=ydnt,         defernumbers=true,         autocite=superscript]{biblatex}  \subsection*{Journal articles} \begin{refcontext}[labelprefix=J] \printbibliography[type=article] \end{refcontext}  \subsection*{Conference publications} \begin{refcontext}[labelprefix=C] \printbibliography[type=inproceedings]   Separate bibliographies works fine, labelprefix also works as desired, sorting by year in descending order as well. However, if I try the solution mentioned in the above question I get very high reference numbers (in the 500s).  Is the above behaviour possible at all and, if yes, what is the most elegant solution using current biblatex etc.?  Thanks a lot in advance!


If energy is neither created nor destroyed, where is the extra space coming from?

I've been learning about many aspects of science all of my life, and have come to understand the following:   Energy is neither created, nor destroyed. (Classical Physics) Space is expanding. (Cosmology) In a vacuum, there are virtual particles being created and destroyed, where a pair of virtual particles have an average lifespan of $n$ seconds. (Quantum Mechanics) The average energy in a volume of vacuum is 0 over a duration of $m$ seconds. (Quantum Mechanics)   My question is, since the volume is increasing resulting in a larger instantaneous vacuum energy, even though the vacuum energy is 0 on average, does this mean that there is new energy being created in the universe ?


Why does Haskell convert 0.3/3 to 0.099999

I was wondering about the following: When I wanted to know whether 0.3/3 == 0.1 in Haskell, the answer was false. Then I checked what 0.3/3 actually is in Haskell and as I found out it was 0.099999. I have absolutely no idea why this is the case. Could anybody help me with that?


How and where can I organize a North Korea DMZ tour if I'm staying in Seoul?

My friends and I are interested in the DMZ, and we are looking to spend a day trip there. I understand that there are Saturday tours, but there aren't a lot of details around regarding that.  How can we take a day tour to the North Korea DMZ?


Let $f : \mathbb{R}\to \mathbb{R}$ be a monotone function and consider the set $S$ of all points $a\in \mathbb{R}$ such that   $$\lim_{x\to a^-}f(x)\neq \lim_{x\to a^+}f(x).$$  I want to show that this set is countable, but I'm not finding any way to do it. I thought one way would be to show that this set is discrete, so that it is countable. For that to happen, I would need to show that there is no convergent sequence $(x_n)$ of points of $S$ all different than $a$ whose limit is $a$.  My idea then is to suppose there is such a sequence $(x_n)$. Then $x_n\in S$ and $\lim x_n = a$ with $x_n\neq a$. In that case we have $\lim_{x\to x_n^-}f(x)\neq \lim_{x\to x_n^+}f(x)$.  Intuition says this should contradict $f$ being monotone, but I'm not finding a way to prove it.  So how can I finish this proof? Is my strategy correct? If so how do I finish it? If not, how should I prove this result?


Blender 2.82a bug? Some faces always shading flat even though all faces were set to shade smooth?

This started happening randomly. I was in edit mode tinkering with the mesh and merging a few vertices. When I came out of edit mode I noticed the shading was messed up. No matter what I do, I can't seem to get the faces to shade smooth again.  Has anyone run into this problem? Here is the file:


How to use speakers as sound input device?

I'd like to use my speakers as the input device, so e.g I could call someone, and they would hear the sound being played on the speaker. Or, to record a video in which the audio is whatever is being played on the speaker. Is that possible on Ubuntu?  Currently, in sound settings, the only input device I see is the internal microphone. I'd like to be able to select the speakers as the input device.  Edit: The linked question doesn't answer my issue - running pactl load-module module-loopback just caused a very large amount of beeping to come from my speakers. I also installed Pulseaudio volume control but I still don''t see the option to use speakers as the input device in the input tab.


I am new to QGIS, and I am from Esri ArcGIS background I would like to know how to create a server on my machine that I can use to publish map services for online use. I just downloaded QGIS 2.8 from this link and installed it on my machine, I created a project that contains a Shapefile layer, and saved it as .qgs file. I don’t know how to publish this file as map service that can be accessed by URL. Does anyone know how can I install the QGIS publishing engine (QGIS Server) on my machine and configure it to share map services?


Uniqueness of a linear map on a basis of a vector space

From Linear Algebra Done Right, 3rd edition, by Sheldon Axler:     Suppose $v_1, \ldots, v_n$ is a basis of $V$, and $w_1, \ldots, w_n \in W$. Then there exists a unique linear map $T: V \to W$ such that      $$Tv_j = w_j$$      for each $j = 1, \ldots, n.$   The theorem states two results:   There exists a linear map that maps a given basis $v_1, \ldots, v_n$ of $V$ to arbitrary vectors $w_1, \ldots, w_n \in W$, and; Such a linear map is unique.   To prove uniqueness, suppose that $T \in \cal{L}$ $(V,W)$, where $\cal{L}$ $(V,W)$ is the set of all linear transformation from $V$ to $W$, and that $Tv_j = w_j$ for $j = 1, \ldots, n$. Using the homogeneity and additivity of $T$, we get:  $$T(c_1 v_1 + \ldots + c_n v_n) = c_1 T(v_1) + \ldots + c_n T(v_n) = c_1 w_1 + \ldots + c_n w_n \tag{1}$$   Thus $T$ is uniquely determined on $span(v_1, \ldots, v_n)$. Furthermore, since $v_1, \ldots, v_n$ is a basis of $V$, $T$ is uniquely determined on V.  Now to my question: I have spent quite some time attempting to internalise how $T$'s uniqueness follows from equation $(1)$. The only reasoning I could fathom, is that for any other linear map $F$ such that  $v_1, \ldots, v_n \mapsto w_1, \ldots, w_n$, we have that $T(v) = F(v), \forall v \in V$, which implies the uniqueness of $T$? Does the uniqueness of a linear map simply mean that two linear maps which map a basis to the same arbitrary set of vectors must map every element of the vector space $V$ to the same element of the vector space $W$, and are therefore essentially the same linear map?  P.S. I am quite aware that there are several questios on the same topic, yet, I have found none of the answers provided to be quite sufficient in addressing my issue.


Let T1 and T2 are DataTables with following fields  T1(CustID, ColX, ColY)  T2(CustID, ColZ)   I need the joint table  TJ (CustID, ColX, ColY, ColZ)   How this can be done in C# code in a simple way? Thanks.


I installed GIMP to make a Christmas card and now everytime I try to open LibreOffice, GIMP opens instead. I can right clip on the file and use the "choose program" to select LibreOffice, but this is a major nuisance. I just want LO to open my document files and spreadsheets, not GIMP.  I don't need GIMP anymore, and so want to unistall it. I have googled for guidance, but it keeps referring to the Software Center, which I cannot find in my Ubunutu 18.04, so  Where is the Software Center?, and   How do I best remove GIMP? (with or without the Software Center)  Please be aware that I am a beginner at Ubuntu (converted from Windows)  Thanks  Edit: Apology. I have Ubuntu-Mate 18.04. Does that explain why I cannot find the Software Center?


How to Add an Object Literal to Another Object Literal in JavaScript

I have an object literal, a:  a = {foo: 'foo'};   And I want to get b, the combination of a and {bar: 'bar'}:  b = {foo: 'foo', bar: 'bar'};   How can I do with without writing out all of the properties of a? i.e:  b = a + {bar: 'bar'};   And no, I do not want to have a be a property itself of b, as shown here:  b = {a: a, bar: 'bar'};


I'm working in closed network at the moment. To obtain access to some work related sites I should ask administrator to add some records in firewall. f.e. I need an access to *microsoft.com/* via http && https. Is it enough to open *stackoverflow.com/* via http && https to access SO? Or I should include some other urls into request?


Salesforce defines  as a predefined-set of test classes that you can execute at once.   Can I use a single @testSetup method to set up the test data for all test methods in one Test Suite? Can someone explain this new feature with a use case and the advantage that we have now have over previously existing test executions?


calculating total area of multiple polygons in qgis

I wish to know the total area of all polygons within a shapefile layer. So far I have added a new column to the attribute table that shows me the individual area of the polygons.I tried to copy the column out of attribute table to do it in calc, but that did not work. How can i calculate the total area of all polygons ?


Is there a rule of thumb for removing spiciness from a dish, caused by things like jalepenos, cayenne pepper, black pepper, red pepper, szechuan peppercorn, etc?   I have read that honey and sugar may combat the spiciness in asian sauces, but have not heard of other ways to remove the kick found in many other dishes.


I am stuck on the following problem:       Let $q$ be a real polynomial of real variable $x$ of the form $q(x)=x^n+a_{n-1}x^{n-1}+....+a_1x-1 .\,\,$ Suppose $q$ has no roots in the open unit disc and $q(-1)=0.$   Then which of the following options are correct?            $\lim_{x \to \infty}q(x)=\infty$       $q(3)=0$      $q(2) >0$     $q(1)=0.$        I have also found the following result interesting but I am not sure it has anything to do with the current problem.        I need some detailed clarification to get the desired result.


Why would a single celled organism evolve to be multi-celled?

I read a story this week on Richard Lenski who has been 'evolving' E. coli for more than 50,000 generations now.  One comment I read was from someone who doesn't accept Evolution who pointed out that we haven't seen a single celled organism 'evolve' into a multi-celled organism.  Another person responded and said that a bacteria is not going to evolve into something that isn't a bacteria.  So, if Evolution created single celled organisms and then multi-celled organisms how might that change have happened?  And is it possible to recreate that set of driving forces to make a bacteria something other than a bacteria?  To that end, what advantage does being multi-cellular have over being unicellular (if that's even a word)?


Best way to get precise measure max memory usage and cpu time

I need to test huge amount of applications that will run mostly about 100ms to 1s(pretty fast). I need to measure max memory usage and cpu time on each of them. because they fast I can't just check every second so I need something better.  Still this answer dont suits me, because they use interval method. I found very inefficient one, bin-search max memory limit until program crash. this Method might take up to 30 seconds to test one program.


Does a Pensieve store more than memories?

In Harry Potter and the Order of the Phoenix, Harry looks into Snape's memories. He follows his father and the Marauders.  Harry stopped in front of the desk and gazed down at his fifteen-year-old father.  He follows them on the grounds, and they sit by a tree having a conversation, far away from Snape.  Harry looked over his shoulder yet again and saw, to his delight, that Snape had settled himself on the grass in the dense shadow of a clump of bushes. He was as deeply immersed in the OWL paper as ever, which left Harry free to sit down on the grass between the beech and the bushes and watch the foursome under the tree.  It's Snape's memories, and in this point Snape is focused on his OWL paper and I highly doubt he heard the Marauder's conversation. So why can Harry hear them? It's not part of the memory.  "You mean...that stuff's your thoughts?" Harry said, staring at the swirling white substance in the basin. "Certainly," said Dumbledore.  So does the Pensieve have the ability to store a whole scene, even if it's not in the memory? If so, shouldn't it be used more frequently? For example:  In Harry Potter and the Order of the Phoenix, Fudge could've checked his memory to see how Dumbledore escaped. In Harry Potter and the Goblet of Fire, Dumbledore could've checked Viktor Krum's memory, to see who snuck behind him and killed Barty Crouch. Snape could've checked his memory when he heard the prophecy. He got kicked out in the middle, but Trelawney was still saying it, so Snape can just check the Pensieve through his memory, even though he didn't actually here the whole thing.  So why does the Pensieve store additional memories? And why isn't it used more?


Proving that without the axiom of choice there is a set with an accumulation point that isn'tthe limit of a convergeant sequence

I've been reading the simple parts of Thomas Jech's book on the Axiom of Choice and came across the following proof on page 141. The proof assumes a mathematical model without the axiom of choice.     Lemma. $X$ is D-finite if and only if $X$ does not have a countable subset.       Theorem. There is a set $S$ of real numbers and a real number $a \not \in S$ such that a is in the closure of $S$ but there is no sequence $(x_n)^{\infty}_{n=0} \subset S$ such that $(x_n)^{\infty}_{n=0} \longrightarrow a$.       Proof. Let $D$ be a D-finite infinite set of reals. We claim that the set $D$ must have an accumulation point. To prove this claim suppose that all $d \in D$ are not accumulation points, then let $\{I_n:n=0,1,...\}$ be a fixed enumeration of open intervals with rational endpoints. Assign the least $n$ such that $I_n \cap D={d}$ to each $d \in D$. This makes $D$ countable and by the above lemma gives us our contradiction. So $D$ has an accumulation point $a$. Let $S=D \setminus\{a\}$ and since $S$ is D-finite, every convergent sequence in $S$ is eventually constant.   Could somebody explain this proof? Why is the last sentence true/ Why does this mean every convergent sequence is eventually constant?  I think the following theorem is important     Theorem. There is a model of ZF which has an infinite set of real numbers without a countable subset


Indian passport holder with valid US F1 visa traveling to Canada by road with a pet dog

I want to travel to Toronto, Canada from Boston, USA by road with my 2 and half year old Siberian Husky. I wanted to understand what documents do I need for myself as a F1 visa holder and my dog to cross the border.


Using "the" without referring to something before

I was surfing the Internet when I saw this sentence:  From there, you can see the beautiful scene where the sunset's reflecting over the ocean.  As far as I've known, "the" is used when you already have something written above, and you're referring it; or when you want to describe "only" things (e.g. the Moon, the Sun). Is it correct to write the sentence like so? If not, will replacing the "the" in "the beautiful scene" with "a" fix the sentence? Thanks for your answers!


Symmetric energy-momentum tensor using derivative wrt. metric

I can find the Noether current for space time translation symmetry by demanding that the first order correction to the Lagrangian vanishes upon infinitesimal translations of coordinates. But in cases like Maxwell Lagrangian I get a non symmetric energy momentum tensor when I do this. I have seen places that mention that a symmetric energy-momentum tensor can be obtained if one takes the derivative wrt the metric. But if I am given a Lagrangian without the metric explicitly written in, how do I rewrite the Lagrangian with the correct metric dependence?  For example say I am thinking of the the Free boson Lagrangian or the Maxwell Lagrangian? Is there a unique way to write the Lagrangian with the space time metric? I presume there has to be metric written in such a way that the action is an integral of a d+1 form. Is that correct?


Mobile optimized version of Stack Overflow

I found this one on UserVoice, and I thought it was fitting to bring it up here for further discussion.  "Stack Overflow already works with Mobile Safari, but the experience is far from optimum. I believe an iPhone-optimized version (or maybe even a native client) would be perfect. I can help with either."  I personally think a some kind of mobile version of Stack Overflow would be great for using as a reference, but using it to ask questions would probably get cumbersome if you had to type up a long question with full description. However, using it to look up an answer when you're away from your desk would be awesome.  But, why not just use the regular Stack Overflow? Well, we all know that the small, touch screens get cumbersome to use when navigating websites built for desktops.


Regex to match URL end-of-line or "/" character

I have a , and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end or continue with a "/" and more URL text. I'd like to match URLs like this:        But not match something like this:      So, I thought my best bet was something like this:    /(.+)/(\d{4}-\d{2}-\d{2})-(\d+)[/$]   where the character class at the end contained either the "/" or the end-of-line. The character class doesn't seem to be happy with the "$" in there though. How can I best discriminate between these URLs while still pulling back the correct groups?


Can a known recipient of sending via sending stones conceal their identity?

A character has discovered one of a pair of sending stones in a D&D 5e game. They can use the stone to cast sending, with the target being the holder of the other stone. The person holding the other stone, who we'll call the "recipient", is in fact someone that the character knows, but they are unaware that it is the recipient who holds the other stone, and the recipient does not want them to know. Can the recipient reply to the sending while concealing their identity from the character? The question of the caster of sending concealing their identity has already been addressed in , and the caster cannot conceal their identity because sending says:  You send a short message of twenty-five words or less to a creature with which you are familiar. The creature hears the message in its mind, recognizes you as the sender if it knows you, and can answer in a like manner immediately.  This does not address whether the recipient can conceal their identity, but this is because the caster of sending must be familiar with the recipient in order to cast the spell. It's therefore reasonable to assume that the recipient's "reply", which is sent "in a like manner", will mean that the caster will recognise the identity of the recipient, because the caster knows the recipient, and because the caster knows who they targeted with the spell. However, sending stones bypass this familiarity requirement:  While you touch one stone, you can use an action to cast the sending spell from it. The target is the bearer of the other stone.  There is no indication here that the user of a sending stone must be familiar with the recipient, who holds the matching stone. (And such a requirement would make sending stones considerably less useful! So I think it's reasonable to assume that the user of a stone is not required to know the holder of the other stone.) However, in the situation I'm describing, the "caster" is familiar with the recipient, but the recipient does not want them to know who the recipient is. Obviously, the recipient can refuse to respond. However, it's a lot more fun if the recipient can respond, while concealing their identity. This leads us to the question: Is there a way for a known recipient of sending cast via sending stones to conceal their identity? Use of additional magical items or spells by the recipient (such as the ring of mind shielding suggested in an answer to the linked question) is acceptable in an answer.


Is Logistic Regression more robust than Random Forest for data across time?

I've done many models on customer data across time, with many different types of datasets, and it puzzles me that Logistic Regression consistently has small deviations across months, including train and test periods. Random Forests on the other hand, tend to have a vast performance difference between months used for training and months used for testing. The test performance is similar between approaches. The training periods are extremely correlated, having the same customer each month, but why such a sharp drop when going to test set and only on RF? I'm hesitant to think about overfit since the same thing happens no matter how much I fiddle with the parameters in varying degrees, and test performance is anyway similar to the Logistic. Is there any theoretical reason for this?


I was able to review audits even though I was suspended from doing so

I got review banned for 7 days on March 3rd, 2014. I have the habit to click on Review whenever I am on Stack Overflow's page. Yesterday it was showing me the following regular message     You have failed too many recent review audits – looks like you might need a break. Come back in 4 days to continue reviewing.   So there were 4 days left of my review ban. But this morning when I click on the Review link, it allowed me to perform a review. You can see my          I double checked all the reviews, there isn't any failure in today's reviews.   Now again when I click on review again it shows me same message as before, but with a 3 day warning      You have failed too many recent review audits – looks like you might need a break. Come back in 3 days to continue reviewing.   First I thought that it was because of some of my helpful flags that my review ban is lifted automatically by the system. But now I think that this is a bug in the system. It shouldn't allow me to review  for the next 3 days.   Update This issue is re-produced with me just before few minutes. I have notice one thing that this happens only one time, meaning after ban this happens one time only and once it happens it doesnt happens again till the ban period is over.


Which one is correct - " There is only us here" or "There are only us here"

Temporary reopen note: The linked-to question is about the verb agreeing with the grammatical number of the first item in a list in a there is/are sentence. However there is no list in this question here. Even if there were, us would seem to be plural here, so there is no good explanation of why is may be preferable to are. You can see the linked-to question here:    The Original Question I am dubious between these two ways of referring to two people in a place or in an area. Example:  John: Ok folks, I am going to let you here waiting for the manager to come. It is going to take some minutes until he makes it here. Josh: Ok, thank you. Mathew: Alright. Josh: Hum... Now, there is/are only us here.  Is there any reason why is or are is preferable here?


Electron falling into an extreme black hole and Cosmic Censorship Hypothesis

It is argued that a black hole with Q>M cannot be formed as the formation of such a black hole leaves a naked singularity which is against the Cosmic Censorship Hypothesis.   But, consider an extreme black hole (Q=M) and consider a particle falling into the black hole. If the particle has Q>M (like an electron) then the black hole at the end becomes one with Q>M. Does this lead to a contradiction with Cosmic Censorship Hypothesis?  A particle like an electron could cause concerns about the quantum effects that we are ignoring in this problem. So rather consider a really heavy particle but again with a charge greater than its mass.   The formula for the temperature of a charged black hole has in it the expression (for the Reissner-Nordstrom black hole) $$\sqrt{M^2-Q^2}$$ Hence, if Q>M we get complex valued temperature which doesn't make sense. How do we make sense of all these together?


16.04 won't connect to wifi on Acer Aspire with BCM43227

Decided to put an SSD in my old Acer Aspire laptop which was running Ubuntu 16.04 with no problems. Did a new install, couldn't see wifi networks and eventually went through System settings>Software & updates>Additional drivers and downloaded the Broadcom 802.11 linux driver. Now I can see wifi networks but can't connect to my network.  $ rfkill list details  0: phy0: Wireless LAN     Soft blocked: no      Hard blocked: no  1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no  2: acer-wireless: Wireless LAN     Soft blocked: no     Hard blocked: no      $ lspci  -knn | grep Net -A2 details  02:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)     Subsystem: Acer Incorporated [ALI] NetLink BCM57785 Gigabit Ethernet PCIe [1025:0504]     Kernel driver in use: tg3     Kernel modules: tg3  -- 03:00.0 Network controller [0280]: Broadcom Corporation BCM43227 802.11b/g/n [14e4:4358]     Subsystem: Foxconn International, Inc. BCM43227 802.11b/g/n [105b:e040]     Kernel driver in use: wl   Hope someone can help me get connected before I have to put my old HDD back....


How to achieve function overloading in C?

Is there any way to achieve function overloading in C? I am looking at simple functions to be overloaded like    foo (int a)   foo (char b)   foo (float c , int d)   I think there is no straight forward way; I'm looking for workarounds if any exist.


Why is the multiplicative group of a finite field cyclic?

Why is the multiplicative group $(K\smallsetminus\{0\},\cdot)$ of a finite field $(K,+,\cdot)$ always cyclic?


Is checking a cardboard box with an airline still accepted? Trans Atlantic?

I am overweight, and need to pack a cardboard box to check in as luggage for a trans-Atlantic flight.  For several years I had no problem - is it still permitted?


Name on ticket P&O ferry Hull to Rotterdam

My friend just booked some tickets for a mini cruise from Hull, UK to Rotterdam, Netherlands. He used the short version of my name on the booking 'Sam' instead of my real name 'Samuel' which is on my passport. Will the booking need to be amended to match my passport? Had a quick look on their website and can't find anything.   Seen as though I can't answer my own question as it's marked as duplicate(wrongly)  This was marked as a duplicate, but the answer in the question it was similar to was about flying and stated you needed the correct name. P&O didn't care in the end, they didn't even question it. Not sure if that was their mistake or its procedure to shortened names.  If the name is completely wrong its a £15 fee to change at check in.


I don't know if I'm the only person to find this out or not. But anyways I like the way wubi works so I was kind of mad that 13.04 didn't have it. But I was playing around, and I downloaded the Ubuntu 13.04 iso file and I extracted it to a folder, and surely enough after I extracted it, I went to that folder and in that folder I found awubi.exe so I double clicked it and it worked! Now I'm running Ubuntu 13.04 off of a wubi install and it works perfectly fine for me. This shocked me because I thought they had gotten rid of wubi installs after 12.04 but I guess it's still possible. I thought I would just share this with everybody.


Code 400 Bad Request on Android Stack Exchange Google Login

When I try to login to the Android Stack Exchange app with my Google account I get . I tried it on multiple networks and on cellular but it gives me the same error consistently.  I also tried multiple phones running Oreo and Pie, tried reinstalling a few times on each and it always gives me the same error. I don't have a rooted device and no ad-blocker is running. When I try to log in with Chrome on the same phone it works normally and no error occurs.  How can I log into my account on Android?


Whenever I boot up my laptop, the following window opens:  This is a recent thing - it never used to happen.  Why is it happening and how do I fix it?


Can you display upvote count near the comments posted under Profile section?

I want to track how close I am to getting the  badge but I just don't seem to find a way.     Leave 10 comments with score of 5 or more.    While I am able to see all the comments posted under my  (all actions -> comments), I am unable to see the upvotes (if any) received for my comments.  Was this feature skipped due to any reasons? Will you please consider showing the comment upvotes next to the comments (in the area marked shoddily with a Snipping Tool in the below screen shot)? If possible, an option to sort by comment upvotes too, please!    Note: Please do not redirect me to an SEDE script.   The duplicate question is 5 years old! And no indication if the request was even considered. Any useful updates @Shadow Wizard?


Dynamically Created Element Doesn't Respond on Click - jQuery

I have normal elements where my jQuery code is working as expected.

   jQuery:  $(document).ready(function() {     $('.entry').click(function () {           console.log("A");     }); });   A gets logged in the console as expected. Then I dynamically create span elements with jQuery and append.      But dynamically created spans don't log anything.


how to recover deleted files that are deleted using rm?

I have deleted text file using rm. Now I have to recover it.  How to recover it?


What happens when you pull in on a rotating object?

I was wondering how rotating objects would behave if we pulled them inwards DURING rotation? For example- If I was initially spinning a rock attached to a string in a uniform circular motion and then (at $t=0$) the string starts decreasing length at a net inward velocity of '$v$' then what would be equation and time period of the movement till the string length becomes 0? The diagram at $t=0$ would look something like this:  I tried coming up with an equation myself, taking center as (0,0): $$x=vt\cos\left(\frac{2 \pi t}{T} \right)$$ $$y=vt\sin\left(\frac{2 \pi t}{T} \right)$$ but since the time period ($T$) is variable (due to decreasing radius) I don't think it's correct as far as my intuition goes there would be a certain spiral inwards path followed but I can not understand how to find the time period? do I even have the right approach? Note: Please don't mark this as a h.w. question I'm just trying to understand it intuitively and if the question seems unclear just let me know I'll edit it instead of closing it, I'm losing sleep over this query


How to log an exception and rethrow as the actual type

I have a query handler decorator which logs any exceptions:  public class QueryHandlerLogDecorator<TQuery, TResult> : IQueryHandler<TQuery, TResult>     where TQuery : IQuery<TResult> {     private readonly IQueryHandler<TQuery, TResult> _handler;     private readonly ILog _log;      public QueryHandlerLogDecorator(IQueryHandler<TQuery, TResult> handler)     {        _handler = handler;        _log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);     }      public TResult Handle(TQuery query)     {         try         {              var result = _handler.Handle(query);              _log.Info("Ok");              return result;         }         catch (Exception ex)         {             _log.Error(ex.Message, ex);                              throw new Exception(ex.Message);         }     } }   Whilst the exception handling isn't the worst thing in the world, what it means is that I lose the type of the exception being thrown.  For example, if I throw ApplicationException lower down in the application, this is caught and rethrown as Exception.  How can I rethrow the exception being caught as the original type?


I'm a past-graduate in mathematics and familiar with the basics of ordinals and cardinals. My question is: how many infinities are there? There are obviously infinitely many, but since we already know that there are different kinds of infinity, the question remains for me: how many infinitely many? Is this a sensible question at all?


This issue starts to annoy me too much, time is passing, I have been changing laptops and the problem persists (didn't have this issue with the old keyboards), therefore wondering if there are any accessories, covers that could help alleviate this problem.  For now, I am using a small piece of cloth but sometimes the lid doesn't close properly, it may not be the best solution but is by far less annoying to see keyboard marks in the display.  I am not an expert on fabrics but would like to know the names or properties to search for something thin and absorbent that could help also eventually to clean the display.  Any ideas, products, etc.?


New top bar missing privileges, also chat/log out placement is illogical

The new top bar looks like a good improvement, but I think that at least the log out button and also the chat could return to a more prevalent place. Another thing that bothers me is that the quick link to privileges seems to have been removed. I kind of liked clicking on myself in the bar to see my recent reputation and such, although the new reputation looks cool. It does however get confusing with other sites being mixed in.  I'm sure we will all adapt to it pretty quickly, but please consider changing the position of some links, like moving chat, blog, and log out back to the bar itself. Thanks!


don't know why but background color doesn't work. It disappeared after i added float:right. Hope you can help me. Thank you!   body {   margin: 0; }  #wrapper {   margin: auto;   width: 920px; }  #wrapper #menu {   background-color: #B8B8B8; }  #wrapper #menu ul {   margin: 0;   padding: 0; }  #wrapper #menu ul li {   display: inline; }  #wrapper #menu ul li a {   text-decoration: none;   float: right;   padding: 10px; }


Throwing null pointer exception on driver.get(URL)

I am facing null pointer exception on driver.get(URL) while running the code.I am using Selenium 3 with TestNG.Here, I am trying to verify URL using Assert.Please help with some solutions.  import org.testng.Assert; import org.testng.annotations.Test; import org.testng.annotations.BeforeClass; import static org.testng.Assert.assertEquals; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test;  public class WithTestNG  { WebDriver driver;  @BeforeClass public void StartBrowser() { System.setProperty("webdriver.chrome.driver","C:\\Users\\Test\\Downloads\\ch romedriver_win32\\chromedriver.exe" ); driver.manage().window().maximize(); }  @Test public void OpenStore() { String URL = "https://www.facebook.com"; driver.get(URL);  String Actual_URL = driver.getCurrentUrl(); String Expected_URL = "https://www.facebook.com/"; Assert.assertEquals(Actual_URL, Expected_URL, "URL doesn't match"); System.out.println("URL verified");  }


What do you call someone who acts and thinks it is helpful, even though they do not know the context of what is going on?

What is a name for a person who assumes they are doing something helpful, even though they are ignorant to the situation? Someone who reacts without bothering to understand what’s going on, and feels as though they are doing good? Is there such a word?   For instance, someone who pulls another out of the pool, and pats them self on the back for saving them from drowning...without ever asking if the person was drowning or merely swimming.


Sort files and folders in the same way in Windows Explorer - sorted by names

I just want to see files and folders (sorted/grouped by their name) in a list that does NOT separate files and folders.  I also don't want to order by date modified like .  I already tried several solutions. But unfortunaletly non worked. And I don't want to use grouped by that splits it up into A-G... and so on.  Antelope[dir] Antelope.txt Badger[dir] Badger.txt .... Zebra[dir] Zebra.doc   Questions that also didn't help me out:


Towards the end of the movie , after Balin surrenders control of Jerusalem to Saladin, he asks the question, "What is Jerusalem worth?" Is there any deeper meaning to the reply? :  Balian of Ibelin: What is Jerusalem worth? Saladin: Nothing. [walks away] Saladin: Everything!


How can I ignore spaces after todo items?

Consider the following (xpatch-fu from )  \documentclass{article}  \usepackage[marginpar]{todo} \usepackage{xpatch} \makeatletter \xpretocmd{\todo}{\@bsphack}{}{} \xapptocmd{\todo}{\@esphack}{}{} \makeatother  \begin{document} Some text % \todo{this text shouldn't be displayed} more text \end{document}   gives (without my attempt to fix)    As you can see, the interword spacing between text and more is doubled. Looking at the use of the macro, this makes perfect sense as to why,   but this is certainly undesirable behavior (at least for the marginpar option).  My fix is entirely ineffective and actually inserts everything after \todo into the input stream. :(  How can I get the behavior I need?    with above xpatch-fu


I Have Sony Vaio Ultrabook model SVP132A1CM and it freezes when I try to boot from USB:     How can I fix this issue?


Why have both .bash_profile and .bashrc?

What is the point of having both .bash_profile and .bashrc, with the former typically sourcing the latter, which in turn sources /etc/bashrc upon login? What would be the downside of putting all that is in .bashrc in .bash_profile (or vice versa) and source only that one login script?


Can't play any music off-line from iPhone

After a recent update to iTunes and iOS I can only play the music in my phone when I'm connected to the internet. When I choose the option for show offline music it only shows 4 songs that I have added recently after the update. How do I get all my music library to play offline again?  P.S this happened after the Apple Music update.


Is it a GPG key or a PGP key? Or do you just use gpg to produce the pgp key?  I see them used together, and its just a tad bit confusing. What do they stand for?


Lets say my website looks like this:  News -Hello world -Foo -Bar  So the parent page will list the last 3 news messages. For each news message there is a sub-page. For the parent page I was thinking of setting the page title to: News - Hello world, Foo, Bar.  Now if somebody adds a new message the title tag will also change. I googled this and read a few blog posts where people said that changing the title actually hurts the ranking of that page.  So is this true? Should I just set a static title tag for all my pages?


Search text of webpages using browser history in chrome?

I've seen this question already:   I remember that Chrome used to do this if you go to the History view and enter a query in the search box there.  However, it's not working for me anymore. I can't find anything now!  Did Chrome stopped doing this? Am I missing something? Do I have to enable/disable something?