Deleted downvotes should appear in Achievements dialog

"Good morning.  Here is something awesome that you got last night!", said the Top Bar:    "21?  That must be two answer upvotes and, um, an answer that I downvoted that was deleted?", I thought.  Ok, let's look at the details and find out:    The +20 on my egrep answer is new and I've seen the other Achievements on the list, so where did the extra +1 come from?  In order to avoid confusion, the recent reputation changes in the dropdown should add up to the number in the notification.      I suspect this particular case is a bug.  Assuming the +1 is a downvote reversed by an answer deletion, I could see the argument for excluding it from the Achievements dropdown.  After all, it's not exactly something you accomplished.  Except it kinda is.  Part of the reason for downvoting is to  low-quality content.  The ultimate sign that such content was deemed beneath community standards is when it gets deleted.  I'm not sure that we should , but putting a note in your achievements in such cases seems like it would reinforce positive (albeit negative) behaviour.  This question is a feature request that rep gains from deleted downvotes be listed in the Achievements dialog, without getting into broader issues of displaying other activity on deleted posts such as those discussed in .  Thus, this is not intended to completely address the issue of the Achievements sum not adding up, but is intended to help encourage good community moderation by appropriate downvoting of low-quality content.


Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down:  A stop job is running for Session 1 of user xy   It waits for 1:30min and then continues with the shutdown. I'm using Debian stretch with Gnome 3. This message does not appear in the syslog.  Any ideas?


What is the viewing order of Fate-related works?

I've watched just the 2006 Fate/Stay Night anime series. I know there are other series in the franchise (Fate/Zero, Fate/kaleid Liner Prisma Ilya), as well as the Unlimited Blade Works movie, and the manga. I don't intend to read the visual novel since it's hundreds of dollars to import it, plus it's insanely long. What order should I take these works in, and are there any I can skip without losing out?


Explicitly disadvise multiple questions per question in help/dont-ask

The help centre’s  is linked in many prominent places guiding users on how to ask questions. However, with respect to too broad question  contains only the following line:     Your questions should be reasonably scoped. If you can imagine an entire book that answers your question, you’re asking too much.   This fails to capture the case that a question asks multiple questions (that are sufficiently independent to be asked separately) — which is also bad and  but does not necessarily mean that an entire book is needed to answer the questions.  As this is a common problem, I propose that a respective sentence is added to address this issue, e.g., something along the lines of:     Also do not ask multiple questions at once unless you expect their answers to overlap considerably.


I have this if in a bash script:  if [ $ACTION = deploy ]; then     ${JAVA_HOME}/bin/java ${JVM_ARGS} weblogic.WLST << EOJ     connect('XXX','XXX','t3://XXX:8001')     jndi();     ls();     disconnect();     exit ();     EOJ else     echo "XXX" fi   I think the error is in the EOJ.


Why are we using anything like wp_enqueue_script at all? or register, etc.  Why are we sending Javascript through the PHP subsystem?  There are all kinds of incompatibilities and inconsistencies across front-end systems, and these are hard enough to troubleshoot without WP getting in the way.  So why are we mixing the controller with the view?  What's the model, here?


Let $E$ be a subset of $\mathbb{R}^k$. Show that $E$ is compact if and only if every sequence in $E$ has a converging subsequence to a point in $E$.

Pretty much just what the title says.   So if a set is compact, then it is closed and bounded, correct? Since the set E is bounded, the sequence $\{x_n\}$ is also bounded. Meaning that it has a limit point (I can not remember the theorem stating that). I think that is how I should begin?  But I am not sure how to proceed.  I know there was a previous post on this, but there was no complete answer. It was essentially just saying what you need to do to prove an if and only if.


How to find SSH server's public key (not key fingerprint)

I am looking for the server's RSA public key string. I do not have permission to go to /etc/ssh and further so I can't read the actual public key.  I do not have access to any packet sniffing tools like WireShark.   Having these limitations, is it possible somehow to get the server's public key string?


Is it safe to delete the recovery partition?

I am trying to grow my C: drive to use the unallocated space on Disk 0. Is it safe to throw away the Recovery Partition (i.e. make it unallocated)? And if so, is GParted an ok tool to do that with? And after I delete it, if I leave enough unallocated space after joining pertitions, is there a way to have it build a new recovery partition?


What if the duplicate is better than the original?

got closed as duplicate of .  The later question is both better worded (also has more votes) and better answers (more votes, and a workaround that's not in the original.)  Shouldn't there be an option to close an older question as an inferior duplicate of a newer question?  Or does the long-tail answer always have to be the older inferior question?


Can I go through a flight from Delhi to Berlin via Helsinki if I have mentioned Germany as the "member state of first entry"?

In my Schengen VISA application, I have mentioned Germany as "member state of first entry" and provided the itinerary of a Lufthansa flight which goes from Delhi to Berlin via Frankfurt, but due to the cost factor, I want to book Finnair now which transits through Helsinki. My understanding is that since I am entering the Schengen area in Helsinki I will have to go through immigration there.   Will it create a problem because I have mentioned Germany as "member state of first entry" or will it be fine?  Can the immigration officer look at my VISA application?


intutive difference between linear map/transformation vs linear function

my linear algebr textbook defines a linear transformation/map as one that satisfies:     i.  T(u+v)=T(u) +T(v).    ii. T(cu) = cT(u)   However, what is traditionally called a linear function, in non-abstract algebra (or highschool algebra, or whatever it is formally called), namely: f(x) = a + bx is not a linear mapping according to the linear algebra definition, unless a = 0.  Is there an intuitive reason why the first definition is called a linear map, and why you would not call y=1+x a linear map, despite the fact that it defines a straight line on a plane? I could simply take the definitions as given, but it always helps me to have an intuitive understanding of such terminology.


What's the difference between mechanical and electromagnetic waves?

I have a life science degree and even worked in research for a few years. So I feel I should be able to answer this question for myself, but yesterday my daughter blindsided me by asking why, if sound and light are both waves, light can travel through the vacuum of space but sounds can't?  So, I told her that one was a mechanical wave and other was an electromagnetic wave and ... then realised that was the extent of my knowledge. I was parroting stuff I'd learn years ago without any real understanding.  Can someone explain to me, ideally with science but without maths:   what the difference is? why one requires a medium for propagation and the other doesn't? how come electromagnetic waves can still propagate via a medium (i.e. heat waves still carry heat energy through air, or the body)? whether all electromagnetic waves are quantized (i.e. light waves are made of photons but ... heat waves are too, right?) whether it's possible for a wave of each type to exist at the same wavelength?   EDIT: stepping back, it appears I have caused confusion born of ignorance. Essentially, while I can understand the properties of a mechanical wave simply by observing it, I am struggling to understand how intangible things like heat and light can have the same properties.


I’ve noticed that recently view counters no longer show the exact amount of views over 1.000, like they used to.  Is that to save space or what?


Weird error appearing randomly in terminal

I installed a few hours ago Ubuntu 14.04 and since I started using it I'm seeing a weird error always appearing in terminal :  [ 3099.912152] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires Package (20140424/nsarguments-95) [ 3099.912316] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM [ 3099.912343] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)   This error appears randomly when I'm writing in the terminal (not when I confirm a command, only when I'm looking at a terminal and not necessarily logged). Note that it occurred one time in the graphic terminal but never occurred again. Since that time it always happened in the Ctrl +Alt+Fx terminal.


Why is this limit $\lim_{n \to \infty}(1 + \frac{1}{n})^n$ equal to $e$?

I dont get it, if I look at $$\lim \limits_{n \to \infty}\left(1 + \frac{1}{n}\right)^n = e$$    It seems like it should be $1$ because $1 \over n$ is almost zero and $1^\infty$ is still $1$


UK Travel visa denied due to bank statement (frivolous reasons cited)

I applied for a UK visa (visitor) from India to attend an academic competition in London. The organizer provided the participants with an invitation letter. For my visa application, I used my father's bank statement.  My first visa application was denied due to inconsistent bank history, the reason why it was inconsistent wasn't explained. On my second try, I attached airlines tickets (both ways), accommodation details (it had been present in the first attempt, but was conveniently ignored) and two other bank statements from my father's different accounts along with the account that was used previously. Like in the first application, I attached copies of his Income Tax details (current).  However, even after making these changes my application was again denied. On further frivolous grounds:   That my studies would be ongoing when my visa expires - while accepting that my university has confirmed that I am a bona fide student they felt my studies would not extend to 6 months, which was the duration of the visa. That the new accounts presented showed deposits entering my parents' accounts that had not appeared on the Income Tax ledger. It is important to note that the said Tax details were for 2014-15, 2015-16, 2016-17, the most current tax details going back three years had been provided. The transaction so pointed out was for December 2017, the assessment year for which would be 2017-18, which has not yet come to pass. Furthermore, the amount mentioned was for arrears, which is very common for government employees, who receive lump-sum payments.   Both my attempts have not only affected me financially (the cost of the application was around INR 8,000 and INR 9,000 approximately), it has also affected me mentally as my participation in the International Rounds was crucial for my team (who have interestingly all received a positive response, even when I had cited their application as well). I wanted to know steps if any that can be taken to:   Ensure that this matter be rectified, without incurring any financial cost. Make changes for my future application. Ask for a financial statement of my dad that has not been delivered to me, which has been kept back without any statement as to the reason.   I have attached my rejection letters along with my question.


How to escape "->" (ASCII hyphen and greater than sign) in Latex

I have been trying to find a way to escape the "-" and ">" characters. I have looked at the \verbatim{} but this creates a new paragraph. As I have seen in other posts, my greater than sign shows up as an inverted question mark.  Thank You Tom


I was reading  and it it's always refered as female. Is it unique to ships?  I've learn in school that words in english does not have a sex, you can call a cats and dogs as "it".


Could a biological process organically build solid metal "organs"?

Human ingenuity has made great use of metal tools. But are there any known, or potential, biological processes that might produce sizable solid metal objects like how for example skeletons and shells are being grown? Does solid metal manufacturing require melting point temperatures beyond what biological processes can survive, or could it be grown by proteins more or less atom by atom?


Prove that $\gcd(M, N)\times \mbox{lcm}(M, N) = M \times N$.

I'm not sure how to go about this proof. I just need help getting started. Is there a way to prove it algebraically?


QUESTION  For how many integers $n$ is $n^6+n^4+1$ a perfect square?  I am completely blank on how to start. Could anyone please provide tricks on how to get a start on such questions?  Thanks for any answers!


For this sentence should I use "reflect" or "reflects"

Should I use "reflect" or "reflects" for the following sentence?     The theme of [Book 1] and [Book 2] ultimately reflects/reflect how family units are fluid.


How to set background wallpaper change time Windows 10

I searched a lot over internet but there isn't any question like this. How would I set Background Wallpaper change every 15 minutes or so. So, the next wallpaper in series show up once the allotted time passes.


How to Import 3ds max file into Blender?

I received the scene from a friend but cant seem to make it work properly in 3ds max and when exporting as fbx into Blender it seems to lose all its materials and lights?


Prove that $e^x|\int_x^{x+1}\sin(e^t)dt|\le 2$.  Use mean value theorem $$\int_x^{x+1}\sin(e^t)dt=\sin(e^\xi)$$  And we have  $$|\sin(e^\xi)|\le\frac{2}{e^x}$$  where $\xi\in(x,x+1)$  I stuck here. Both new methods and help me to continue are welcome.


Using "now" when talking about past events

The whole story is given in the past. Is the sentence in the middle of the story "But why did she wish to do it now?" grammmatically correct? Is it correct to use the Past Simple tense with the adverb "now" talking about past events?


customize appearance of cross-references to 'subfigure' objects

In regard to these questions        and      I would like to know, how I can customize the pasting of additional brackets.  Example: Instead of showing , Latex should display  when I use \autoref.  Minimal coding example:  \documentclass[journal,comsoc]{IEEEtran} \usepackage[T1]{fontenc}% optional T1 font encoding \usepackage{graphicx} \usepackage{amsmath} \usepackage{url} \usepackage{enumitem} \usepackage{setspace} \usepackage{color,soul} \usepackage{siunitx} \usepackage{float} \usepackage{subcaption} \usepackage{cleveref} \usepackage{hyperref} \interdisplaylinepenalty=2500  \usepackage[cmintegrals]{newtxmath}  \begin{document}  \begin{figure}[htbp!]      \centering      \begin{subfigure}{0.2\textwidth}         \includegraphics[width=\textwidth]{Pictures1}         \caption{Nice image1}         \label{fig:NiceImage1}     \end{subfigure}     \hfill     \begin{subfigure}{0.2\textwidth}         \includegraphics[width=\textwidth]{Pictures2}         \caption{Nice image 2}         \label{fig:NiceImage2}     \end{subfigure}      \caption{Two images}      \label{fig:NiceImage}  \end{figure}   \autoref{fig:NiceImage1} % Latex should display and reference to Figure 1(a)   \end{document}   I am sorry, if this is a duplicate of an already answered question!


Running a specific Windows application on a Mac

I am interested in running a single Windows program on my Macbook. I have looked at various options, including bootcamp, however since it is only a single program, I was looking for a way to minimize the amount of storage used. I also had the same problem while looking at virtual machines. The program is a tutor.com classroom that is an online tutoring application. It is an .msi file. I have tried seeing if this program is compatible with Wine, but it is not. I am not too familiar with any of these methods. Any help would be appreciated.


If $f$ is continuous, then there exists $x+\frac{1}{n}\in[0,1]$ and $f\left(x+\frac{1}{n}\right)=f(x)$

Let $f:[0,1]\to \mathbb{R}$ is continuous, such that $f(0)=f(1)$. For each $n\in\mathbb{N}$, prove that $\exists x\in [0,1]$ such that $x+\dfrac{1}{n}\in[0,1]$ and $f\left(x+\dfrac{1}{n}\right)=f(x)$.   My approach: The interval $[0,1]$ is connected, then if $f$ is continuous, we have $f([0,1])\subset\mathbb{R}$ is a interval. And I suppose that, I can define a closed path such that $f(0)=f(1)$. Any hint pls,


why are my elements not responding to click event?

I am trying to make a trivia game using an api, and my elements are not clickable.  After I make the api call, I am looping through my responses and using jQuery I am making each response into an html p tag element.  My next step is to determine which response is the correct one, but first I want to test each element with a click listener.  This is where I am currently stuck.  There is no response when I click any p tag.  There should be a message logged into the console.  Any idea's to help me out?  $(document).ready(onReady);  function onReady() {   console.log("jQuery in tha house!");   $("#btn").on("click", askQuestions);   $("#answer").on("click", determineCorrect); } let axiosbtn = document.querySelector("#axios"); let url = "https://opentdb.com/api.php?amount=1";  function shuffle(array) {   let currentIndex = array.length,     temporaryValue,     randomIndex;    while (0 !== currentIndex) {     randomIndex = Math.floor(Math.random() * currentIndex);     currentIndex -= 1;      temporaryValue = array[currentIndex];     array[currentIndex] = array[randomIndex];     array[randomIndex] = temporaryValue;   }    return array; }  let askQuestions = () => {   axios     .get(url)     .then(res => {       $("#question").html(res.data.results[0].question);        rightAnswer = res.data.results[0].correct_answer;       let answers = [rightAnswer];       let wrongAnswers = res.data.results[0].incorrect_answers;       wrongAnswers.forEach(wrong => {         answers.push(wrong);       });       let newAnswers = [];       $.each(answers, (i, answer) => {         newAnswers.push("
" + answer + " " + "
");       });       shuffle(newAnswers);       $("#answers").html(newAnswers.join(""));       console.log(shuffle(newAnswers));       console.log(rightAnswer);     })     .catch(err => {       console.log("Error", err);     }); };  let determineCorrect = () => {   console.log("Determine Correct"); };
Random Trivia

         <button id="btn">Get Random Trivia Question</button>


Roles and capabilities is easily the most confusing part of WordPress. Just when I think I have it sorted, I realise ...NO! I created a plugin and gave all the plugin admin pages in Dashboard: publish_pages capability. (Because I think this will allow editors to view and manage) I then created a new role based on Editor: add_role("mbbp_booking_user_key", "Booking Manager", get_role( 'editor' )->capabilities);  Why? Because I just want people with Editor role to be able to manage the plugin settings and bookings. (i.e. I dont want to overload the interface with options like Appearance, Menus, Widgets, Plugins, Settings, Tools, etc..) This appeared to work, I was able to create a new user with role: Booking Manager and access the booking pages and add, edit and save records into the custom tables I created for the project. BUT ... I created an settings page which uses get_option('mbbp_bookings_settings'); and to save the options, I created a form on the settings page:

<?php _e('Settings', 'mbbp_domain'); ?>
      <form method="post" action="options.php" novalidate="novalidate">         <?php settings_fields('mbbp_settings_group'); ?>

<?php _e('Booking Settings', 'mbbp_domain'); ?>

                 <?php _e('Booking Fee', 'mbbp_domain'); ?>	                  <input name="mbbp_bookings_settings[booking_fee]" type="number" id="mbbp_bookings_settings[booking_fee]" value="<?php echo isset($mbbp_bookings_settings['booking_fee'])?$mbbp_bookings_settings['booking_fee']:''; ?>" class="small-text">

<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes', 'mbbp_domain'); ?>">
     </form>
  I didn't test thoroughly though... Because User Role: Booking Manager can access the page BUT when trying to save, he gets the error:  "You need a higher level of permission"  Now, this is obviously because only Administrator can update settings page and I have now realised that an Editor can't save options... So how can I make this work so that the Editor can save my plugin settings but not access all the Dashboard admin pages?


A problem with deriving posterior of particle filter

At the normal particle filter, there is an equation to deriving posterior $p(x_{0:k}|z_{1:k})$. In the  ,equation 45 , it says that:  $p(x_{0:k}|z_{1:k})=\frac{p(z_k|x_k)p(x_k|x_{k-1})}{p(z_k|z_{1:k-1})}p(x_{0:k-1}|z_{1:k-1})$  and in equation 46, it says this equation is proportional to  ${p(z_k|x_k)p(x_k|x_{k-1})}p(x_{0:k-1}|z_{1:k-1})$  therefore, the denominator $p(z_k|z_{1:k-1})$ is constant, why?


Notation of the second derivative - Where does the d go?

In school I was taught that we use $\frac{du}{dx}$ as a notation for the first derivative of a function $u(x)$. I was also told that we could use the $d$ just like any variable. After some time we were given the notation for the second derivative and it was explained as follows: $$ \frac{d(\frac{du}{dx})}{dx} = \frac{d^2 u}{dx^2} $$ What I do not get here is, if we can use the $d$ as any variable, I would get the following result: $$ \frac{d(\frac{du}{dx})}{dx} =\frac{ddu}{dx\,dx} = \frac{d^2 u}{d^2 x^2} $$ Apparently it is not the same as the notation we were given. A $d$ is missing. I have done some research on this and found some vague comments about "There are reasons for that, but you do not need to know..." or "That is mainly a  notation issue, but you do not need to know further." So what I am asking for is: Is this really just a notation thing? If so, does this mean we can actually NOT use d like a variable? If not, where does the $d$ go? I found  related question, but it does not really answer my specific question. So I would not see it as a duplicate, but correct me if my search has not been sufficient and there indeed is a similar question out there already.


apply_filters, EMBEDS and AJAX not a friends?

I encountered a problem...  There is content that contains a YouTube link     Lorem ipsum bla bla bla    My plugin display this content with that code in the view:  <?php echo apply_filters( 'the_content', $data['meta']->start_page_content ); ?>   The problem is that if you open a page with usual GET method via the browser - the link becomes a YouTube player, but when i loaded the same template via AJAX - it seems that apply_filters does not work - at the output I get just a link, not a YouTube player code.  How can i fix it?


Using two statements in a google apps script and when both conditions are met, then send the email. One is a text term, the other a date

I have the task of trying to automate a email where if two conditions are met, then send the email. I am mostly there. Code is as follows: function dateSender() {   var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("emails");     var Lastrow =sheet.getLastRow();   for (var i = 2;i<=Lastrow;i++){       var person = sheet.getRange(i,8).getValue();   var Emails = sheet.getRange(i,2).getValue();   var body = sheet.getRange(i,9).getValue();   var currentValue = sheet.getRange(i,3).getValue();     var Date = sheet.getRange(i,5).getValue();   if (currentValue == ("'Open'") && Date == today){      MailApp.sendEmail(Emails,person,body)   } } }  it works as far as the if cell is open then sends, but when I ad the date portion things don't send. I want it to be if the cell value is open, and the date is equal to today, then send the email. Thanks in advance.


How to predict the movement of the body when a force is applied on it like in the   I have attached screen shot as reference.


code explaination. method within method and some other syntax

second day in android self teachin and saw this code bleow.  from what I understood, it seems to me that the code is getting the button value   final Button GetServerData = (Button) findViewById(R.id.GetServerData);   and then I am not sure what happened. Being from php background this syntax looks very unfamiliar that a method is being called as a methods parameter in here  GetServerData.setOnClickListener(new OnClickListener() {              @Override             public void onClick(View arg0) {                  // WebServer Request URL                 String serverURL = "http://androidexample.com/media/webservice/JsonReturn.php";                  // Use AsyncTask execute Method To Prevent ANR Problem                 new LongOperation().execute(serverURL);             }         });       I also am not sure what View arg0 is.       public void onCreate(Bundle savedInstanceState) {      super.onCreate(savedInstanceState);     setContentView(R.layout.rest_ful_webservice);        final Button GetServerData = (Button) findViewById(R.id.GetServerData);      GetServerData.setOnClickListener(new OnClickListener() {          @Override         public void onClick(View arg0) {              // WebServer Request URL             String serverURL = "http://androidexample.com/media/webservice/JsonReturn.php";              // Use AsyncTask execute Method To Prevent ANR Problem             new LongOperation().execute(serverURL);         }     });      }


Show that the standard integral: $\int_{0}^{\infty} x^4\mathrm{e}^{-\alpha x^2}\mathrm dx =\frac{3}{8}{\left(\frac{\pi}{\alpha^5}\right)}^\frac{1}{2}$

In my physics course this standard formula is used a lot without proof so it would be interesting to see a neat proof for it. From  I know the proof for   $\int x\mathrm{e}^{-\alpha x^2}\mathrm dx =\dfrac{-1}{2\alpha} \mathrm e^{-\alpha x^2}$ + Constant   which was kindly shown to me by a community member by means of the substitution $-\alpha x^2=u \Rightarrow -2\alpha x \mathrm dx=\mathrm du$, then $x\mathrm dx=\frac {-1}{2\alpha}\mathrm du$ such that  $\displaystyle\int xe^{-\alpha x^2}\,dx=\frac {-1}{2\alpha}\displaystyle\int e^u \mathrm du= \frac {-1}{2\alpha}\displaystyle e^{-\alpha x^2}+$C. Where C , $\alpha$$=$constants   The previous thread was simply a paradigm to set the scene for this question. I tried a similar approach to prove the formula in question by letting $u=-\alpha x^2$, but this does not get me anywhere, I have also tried doing it by parts but still without success.  Is there a simple way to prove $\int_{0}^{\infty} x^4\mathrm{e}^{-\alpha x^2}\mathrm dx =\dfrac{3}{8}{\left(\dfrac{\pi}{\alpha^5}\right)}^\frac{1}{2}$?  Note: This question is not strictly a duplicate of the thread asking to prove that $\int_{-\infty}^{\infty} x^4\mathrm{e}^{-\alpha x^2}\mathrm dx =\dfrac{3}{4}{\left(\dfrac{\pi}{\alpha^5}\right)}^\frac{1}{2}$ as the limits are different in that post. But I acknowledge that it is almost the same thing.  Any proof will do.  Thank you.  Kindest Regards,  Blaze.


I found some sentences that in which  by is not used. Such as:        I did it myself .   I will kill you myself .   he cooks food himself.          Why by isn't used with these sentences like: by myself, by himself?


Understandably, there is a clear-cut difference between liquids and gasses. Gasses being more compressible, liquids less so. If you bring a volume of air sealed in a container from sea level to 10k feet (3048m), when you open the container, the relative volume around the container has decreased considerably and upon opening the container, it lets out a discernible sound. Clearly, there is a volume difference as less pressure allows the air/gasses to expand. What if you were to bring up, say, 100ml of water from a depth of 11,000m, would it be the same volume if you brought that same sealed sample to sea level and opened the seal? Knowing that you can't pressurize liquids as you can gasses, I'm simply curious: how much would a liquid expand if brought up from the deepest part of the ocean?


I'm fairly new to smart pointer usage, and want to make sure I'm not introducing bad habits. I have an object A that is being created from a factory, and added to a queue. This queue is then read from another thread, and at this point I think it's perfectly valid to use a unique_ptr.   struct IInterface {  }  class A : public IInterface {  }  std::queue<std::unique_ptr<A>> queue;   However, while constructing A I realize I need a Class C. C takes a List of B's that it owns.  class A : public IInterface {     C c; }  class B { }  class C {     List<unqiue_ptr<B>> b; }   To me this still looks okay because we have ownership defined. However, I'm unsure of what pointer needs to be used when Class B now needs a pointer to IInterface, which A happens to implement. Do I make it a shared_ptr?  struct IInterface {  }  class A : public IInterface {     C c; }  std::queue<std::shared_ptr<A>> queue;    class B {     shared_ptr<IInterface> a; }  class C {     List<unique_ptr<B>> b; }   Did I choose the correct smart pointer, and did I analyze this correctly? I know this is super simple for you guys, but figured I would ask before I start doing things incorrectly.


How can I access a shadowed global variable in C? In C++ I can use :: for the global namespace.


Detect if environment contains a page break

Is it possible to detect if a custom environment goes over a page break, i.e. get a warning/something I can use for further processing (and preferably also tells me where the page break occurs)?  \newenvironment{Test}{\CheckIfPageBreak\PrintPageBreak}{}   In document:  \begin{Test} A A A A \end{Test}   results in   False A A A A   while  \begin{Test} A A /--page break due to long text--/ A A \end{Test}   results in   True A A /--page break--/ A A


What tools do I need to use to report a bug in a developers PPA?

When you want to report an error the best way to report a package in Ubuntu is                                   sudo ubuntu-bug package.    But what if the package is in a developers PPA and I want to report an error with enough information, what tools can I use to generate that necessary information?


The chances of you getting a good job are greater than (my chances) of graduating high school. -- grammaticality

The chances of you getting a good job are greater than me graduating high school.     The chances of you getting a good job are greater than my chances of graduating high school.    Are both the sentences grammatically correct?  And if one used, "The chances of your getting a good job are greater than my graduating high school." would that be incorrect? And is the "greater than my chances of graduating high school" part necessary, or could i just leave that part out like i did in the first sentence?


I want be sure before install ubuntu desktop on laptop

Ok,this my question.If my laptop can run window vista,can i run ubuntu desktop 14.04 as well.Just want be sure.


Can you cast a bonus-action-spell as a bonus action AFTER casting a action-spell/cantrip as an action?

From the Player's Handbook (p. 202) under Casting Time > Bonus Action,      A spell cast with a bonus action is especially swift. You must use a bonus action on your turn, provided that you haven't already taken a bonus action this turn. You can't cast another spell during the same turn, except for a cantrip with a casting time of one action.   meaning that once a bonus-action-spell is cast, following that one cannot cannot cast another non-cantrip spell as an action. However, the wording above does not seem to preclude the use of a non-cantrip spell as an action BEFORE using your bonus action to cast a bonus-action spell.   Is there anywhere else in the PHB where it is clarified whether the order matters or not? In the absence of further ruling, should we accept the literal meaning above which says "cannot cast a non-cantrip spell AFTER a bonus-action spell"?


What can I do when I accidentally gave out an overpowered item?

In our last game, the players worked their way through a series of fiendish traps into a high security vault, where they recovered a . After the game I looked at the stats, and realized that (oops!) the staff is massively overpowered for a party of level 2 players.   I don't want to just retcon akin to "You thought it was a Staff of the Magi, but it's actually X", because that seems really mean. I've already told them what it is and I don't want to just take it away by GM fiat.   So now I'm trying to think up a good in-game way to part them from the staff, which won't feel like I'm taking away their new toy. Therefore my question is:   If I have accidentally given a massively overpowered item to a party, how can I get it away from them without making them feel cheated?


I am looking to get some help from you all. I recently (today) encountered an issue where the material preview in viewport does not seem to work. All the materials come out gray. I am not sure what is happening and any help would be greatly appreciated. I attached an image for the issue I have. Thanks!


Taking lens off without turning camera off

I panicked when changing a lens and forgot to turn the camera off, I realised before fitting the other lens, I worried I’ve done damage as it states in the manual no turn it off first although everything seems fine. I am a worrier though but what are the chances I’ve done damage? I have a brand new D7200 so you can see why I’m concerned.


Why is my breath hot when i open my mouth all the way, but cold if I blow like a whistle?

I observed this as when I want to cool my soup I blow like a whistle and when I want to warm my hands I open my mouth more as my breath is warmer now.


Show that $\mathfrak{so}(4) \simeq \mathfrak{su}(2) \oplus \mathfrak{su}(2)$. How do I proceed to show that it is true? I know that the basis of $\mathfrak{su}(2)$ is the Pauli-matrices multiplied by i. I really don't know what to do next.


Multivariate Time Series with Long Horizon Prediction

There must be a model for what I would like to do, because I have been spending far too long with this project for an answer not to exist.  For reference, I am using R.    I have a time series object, $X$, with $n$ observations and $p$ columns (indicator variables).  I also have a separate time series object $y$ which I would like to predict future values of, which has $n$ observations and $1$ column.    I would like to feed this data into a black box, and I would like the black box to spit out $h$ predicted future values of object $y$ using learned patterns from my independent time series object X.  Of course one could find a simple linear solution using regression, but this does not account for obvious autocorrelation.  It also requires me to forecast dummy observations for $X$, which is undesirable.  I would only like to forecast one series, not all of them.  I could also use an ARIMA model, which takes care of autocorrelation but has very poor predictive ability.  I looked into using bsts-type models, but these also require additional newdata when the object has a regression component.  I have been looking into keras-based models as well, but thus far have not found a solid tutorial to teach me what I am looking to learn.    To reiterate:    Time series $X_{n \times p}$ Time series $y_{n \times 1}$ Insert $X$ and $y$ into black box Supply value $h$, the desired time steps in the future I would like to predict See $h$ predicted values of $y$ based on features the machine learned during processing.      Tutorials and/or walkthrough links would be greatly appreciated, especially if they are coded in R!    This question was tagged as a duplicate of , which I had seen earlier.  However, the answer was not satisfying to me.  I feel this question is better worded, more nuanced, and asks specifically for some type of starter-code or tutorial, or information on how to begin implementation.  , but in some regards it falls short (it does not explain how to accomplish far-in-the-future prediction).  The theory of machine learning is interesting for all of us, but as noted in ,     Considering the complexity of financial time series, combining deep learning with financial market prediction is regarded as one of the most charming topics. However, this field still remains relatively unexplored.   In posing this question, I am hoping to assist other beginners with the same problem they face when attempting to incorporate time series forecasting with deep learning.


Reflection of a modified list outside the function

I was currently doing the introductory course of python provided by mit on edx. And, the professor is currently teaching the use of functions as objects. I am having confusion in one of the codes where he is defining a function and taking two arguments- one is a list and other is some other function.  def applyToEach(l,f):     for i in range(len(l)):         l[i]=f(l[i])  l=[1,-2,3.4]  applyToEach(l,abs) print(l)   My question is: the changes/modifications in the list is taking place inside the function. So, how they are getting reflected outside the function? According to me, there should not be any changes in the list when I print it because I made all the changes inside the function. I mean that different environments are created for different functions and it worked this way only in the previous exercises and therefore changes are not reflected in our main environment. Correct me wherever I am wrong, because when I am running this code, the modified list is getting printed. So, where I am wrong in the given logic?


How to show the canonical embedding $c_0\rightarrow c_0^{**}$ is not surjective?

I want to show $c_0$ is not reflexive by showing the canonical embedding $T:c_0\rightarrow c_0^{**}$ is not surjective.   And I know $c_0$ is a closed subspace of $\ell_\infty$ and $\ell_\infty$ is isometrically isomorphic to $c_0^{**}$. But I couldn't find $x^{**}\in c_0^{**}$ such that $T(x)\neq x^{**}$ ($x\in c_0$). Can anyone help me to show the canonical embedding $T:c_0\rightarrow c_0^{**}$ is not surjective?  Thank you!


Why Limit of $0/x$ is $0$, if $x$ approaches $0$?

It might be a silly question, but to me it is not obvious why the following expression holds:  $$ \lim\limits_{x\rightarrow 0}\frac{0}{x}=0 ? $$


What are the benefits of using a dedicated macro lens over a zoom with macro abilities

I'm interested to know what benefits there are from using a dedicated macro lens as opposed to a zoom lens with macro ability.   Will a zoom lens be capable of close focus when zoomed in fully? Will a zoom lens be capable of similar magnification ratios? Will a zoom lens be as sharp?   As background information, I am interested in 1:1 magnification ratio and above as I want to be able to capture close-ups of insects etc using a DSLR with a APS-C sensor.


In beamer equations don't look like in article

I am writing a thesis and I began write as a article. I thought it is easy convert to beamer. Now I have some problems. In equnarray and $, parenthesis, bracket and \bigoplus don't seem.  \documentclass[12pt]{beamer} \usefonttheme{professionalfonts} \usepackage{siunitx} \usepackage{newtxtext,newtxmath} \usepackage{bm} \mode<presentation>{\usefonttheme{professionalfonts}} \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} \usepackage{tikz} \usepackage[loadonly]{enumitem} \usepackage[shortlabels]{enumerate} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{         \node[shape=circle,draw,inner sep=2pt] (char) {#1};}} \usepackage{mathptmx} \begin{document}     \begin{eqnarray*}         x\bigoplus y=max\left\{x,y\right\}\\         x\bigotimes y=x+y     \end{eqnarray*} \end{document}   In article:  In beamer:


Hey guys i am new to SEO , i have done SEO for a couple of sites and basically here is my understanding of the to-do's i have to do :  On page SEO :    XML sitemap robots.txt custom 404 page. htaccess that redirects to http or www check page speed .  6   Site structure -- One H1 tag -- Minimum One or Two H2 tag missing -- images alt tag -- Navigation link and  tag link tittle missing. Google map address was not there, but it’s been created now. Meta tag analysis -- Title should be 10-50 characters, -- Description should be less than 150 characters. -- Keywords should be below 20 words,   Off page  SEO :    citations  backlinks.   Is this all i need to do ? i know the off page SEO takes time and tricks and good marketing skills and is not just all about submiting your URL to backlink farms .   Am i missing anything important here ?   Thank you.   Alex-Y.


Is there any significance to the patterns of Bifrost Landing sites?

When Thor arrives on Earth via the Bifrost, a pattern is left (burned?) onto the ground.   The pattern is fairly intricate, and does not appear to be random. However, the pattern seems to change from site to site, or possibly use to use.  Is there any significance to the designs, or logic to them?  A landing site from the first movie:    A landing site from the second movie:    Another Landing site:


Sill Plate not Lining up with Foundation Wall

I am in the process of building a one level home in PA. After the formed concrete walls were poured and the framing began, I noticed that on one side of the house that the sill plate was flush with the edge of the foundation wall in the rear, but, by the time the sill plate got to the front it was 2 1/2" away from the edge of the foundation wall. In summary, the sill plate walks from flush with the foundation wall at the rear to 2 1/2" at the front. This happens over about a 50' run.  Any thoughts or concerns would be appreciated. Any recommendations on what sorts of questions to ask when I meet the site supervisor on Monday?


how do we know the BBP formula for $\pi$ is valid?

I recently read about the Bailey–Borwein–Plouffe formula for calculating the $n^{\rm th}$ digit of $\pi$. I'm curious to how can we be sure that the formula is always accurate or correct?! Even if we can verify for every $\pi$ digit discovered till now with a "standard formula", how do we know that the formula is correct after those digits?  Also, what's the implication of these kind of BBP formulas for other "divine"/fundamental constants? can we learn anything else about the value of such constants and our universe through these? Any insight into the "supreme fascist" mind?


I have a filename in a format like:     system-source-yyyymmdd.dat   I'd like to be able to parse out the different bits of the filename using the "-" as a delimiter.


Can Iranian-Canadians enter on arrival to the US?

I am an Iranian-Canadian dual citizen studying in the US with an F1 visa. My parents are both dual citizens as well. I understand that Canadians are not affected by the recent bill placing restrictions on the Visa Waiver Program for people who are dual citizens of, or have recently visited Iran and several other countries. I have heard, however, that a separate bill which does concern the visa provisions of NAFTA is in the works.   My parents often drive me over after my breaks, so I was wondering: will they be able to cross the border on arrival without having obtained visas beforehand?


What is the best known gap between ZPP and Deterministic communication complexity?

I know that $N(f) \times coN(f) \geq D(f)$. This means that $ZPP(f) \geq \sqrt{D(f)}$. Is this separation tight?


I am writing an article in BE and I try to remain formal. I have a difficulty with that and which: (meaningless sentences)     We move from our old car to the truck that is his new means of transportation   or     We move from our old car to the truck which is his new means of transportation   Also,     This being said, we remark that the datum that is θ evidently corresponds to the complement   or      This being said, we remark that the datum which is θ evidently corresponds to the `complement   I think which must be used because it is for a subject like truck and datum here.


Can you access private data fields without setter methods in Java?

In the top stackoverflow answer to this question (), someone said if you have the following class with a private string,  class Address {   private String phone;  }   then you can't modify the private string using the following code, but I tried it and it works.  // main method Address a = new Address(); a.phone="001-555-12345";   He said you had to use a setter method, but I did it without using one.  I think I misinterpreted his answer, but I'm not sure how. I would appreciate any insight, thanks.


Add “Are you sure you want to navigate away from this page?” when writing a comment

When I'm writing a comment on skeptics.se, it takes a lot of time to create it and fix it and I use all the characters allowed that it looks like a small paragraph.  Usually you have to link studies, and academic articles, etc...  Many times, my browser went back automatically when pressing backspace (to delete something), and (on my macbook if you slide two fingers on the left of the pad, it will go back), it is really annoying and it happened with me many times.  The comment will be ereased and I would have to re-write it again.  Please add:     You haven't posted your comment yet, are you sure you want to navigate away from this page?   when trying to navigate away from a page with an unposted comment.


I downloaded a version of Python because I would like to program in the language, but I have no idea how to actually download it. There are many files in the download folder, but I have no idea what to do with them. Can someone walk me through a step-by-step process?  Apologies, I'm very new to Ubuntu and Linux in general.


The code in the following snippet just compares string references.  String str1 = "mystring9"; String str2 = "mystring"+String.valueOf(9);  System.out.println(str1==str2);   In this case, str1==str2 returns false.    The following segment of code also returns false.  String str1 = "mystring9"; String str2="mystring"+str1.length();  System.out.println(str1==str2);     The following code however, returns true.  String str1 = "mystring9"; String str2 = "mystring"+9;  System.out.println(str1==str2);   I think, the expression "mystring"+9 in this code should internally be evaluated to String.valueOf(9) though why do the first two examples return different output than the preceding example?


Always wondered this, but never fully investigated - is there any way to get named parameters in bash?  For example, I have this:  function ql_maybe_fail {   if [[ "$1" == "true" ]]; then       echo "quicklock: exiting with 1 since fail flag was set for your 'ql_release_lock' command. "       exit 1;   fi }   is it somehow possible to convert it to something like this:  function ql_maybe_fail (isFail) {   if [[ "$isFail" == "true" ]]; then       echo "quicklock: exiting with 1 since fail flag was set for your 'ql_release_lock' command. "       exit 1;   fi }


Correlation between GRE Scores and Profile

I have recently taken GRE general and GRE subject tests and going to apply to US universities for Ph. D. in mathematics. My GRE general score is bad (verbal 138 + quant 163). My GRE subject mathematics score is 810 with 79 percentile.   My question is how do these scores affect my profile for getting admission? Is there any hope of getting a good university at all? Thanks to everyone.


Python list of list value updation not working

I have a nested list x. The inner list have dictionaries as the element.  y = [{'hello1': 1, 'hello2': 2, 'hello3': 3}, {'hello1': 1, 'hello2': 2, 'hello3': 3}]   x = [] for i in range(0,3):     x.append(y)  counter = 5 for i in x:     for j in i :         j['hello2'] = counter     counter = counter + 1  print(x)   The output that i got  [   [     {       'hello1': 1,       'hello2': 7,       'hello3': 3     },     {       'hello1': 1,       'hello2': 7,       'hello3': 3     }   ],   [     {       'hello1': 1,       'hello2': 7,       'hello3': 3     },     {       'hello1': 1,       'hello2': 7,       'hello3': 3     }   ],   [     {       'hello1': 1,       'hello2': 7,       'hello3': 3     },     {       'hello1': 1,       'hello2': 7,       'hello3': 3     }   ] ]   The output that I am looking for  [   [     {       'hello1': 1,       'hello2': 5,       'hello3': 3     },     {       'hello1': 1,       'hello2': 5,       'hello3': 3     }   ],   [     {       'hello1': 1,       'hello2': 6,       'hello3': 3     },     {       'hello1': 1,       'hello2': 6,       'hello3': 3     }   ],   [     {       'hello1': 1,       'hello2': 7,       'hello3': 3     },     {       'hello1': 1,       'hello2': 7,       'hello3': 3     }   ] ]   I wanted the first list to have hello2 value as 5, the second list's hello2 value as 6 and the third list's hello2 value as 7. Please provide me with valid inputs on what modifications are required. Thank You


I already saw lots of answers here on askubuntu. But nothing seems to be working. All the answers seem confusing a lot.   I need clear cut idea if it is possible now to increase the partition size I gave while installation. If yes then how?     As per image, total capacity of that ubuntu partition is only 22.7 GB, but I will need more than that for my applications/softwares.  Any help is highly appreciated.  Edit 1: Anwar, none of the answers helped like >>  Edit 2: Added gparted image.


Does non-EU citizen with UK residence permit need health insurance

Does a non-EU citizen living in UK as spouse of UK national with permanent residence permit need health insurance for a short stay Schengen visa?


Is it appropriate to refer to a person of unknown sex by "it"?

I would like to treat a user as a non-gender noun and refer to it with the gender-neutral pronoun, it. E.g.,     The user defines two variables, x and y. It then multiplies each variable by a prime number.    However, on  I found this:      The word "it", however, has an extremely impersonal connotation, even offensive, in common usage and is rarely used in English to refer to an unspecified human being or person of unknown gender. This is because the word "it" connotes that the person being specified is inferior to a person or is an object.   Is to appropriate to refer to a person of unknown sex as it?  Should I rephrase my sentence as follows:     The user defines two variables, x and y. The user then multiplies each variable by a prime number.


Let $a$ and $x_{0}$ be positive numbers, and define the sequence $\{x_{n}\}$ recursively $$x_{n}=\frac{1}{2}(x_{n-1}+\frac{a}{x_{n-1}}).$$  How to prove that the sequence converges and how to find its limit ? Actually i am thinking to prove that the sequence is monotone and bounded then limit can be find by solving the equation $x^{2}-x-a=0.$ But monotone part is dependent on the real number $a.$ Please give me simplest way to handle the problem. Thanks a lot.


I do need to refresh a specicif div content, i've tried with .load       $("#myDiv").load(location.href + " #myDiv");  And it works, but after that seems that I cannot manipulate the returned loaded 'div'. I checked and seems that the .load does not allow you to manipulate the returned code. Is there any other way to refresh a div content without the .load? Thanks a lot!


Why doesn't a moving object spontaneously slow down and heat up?

This may seem like a silly question.  Imagine an object moving at uniform velocity in isolation. Since this is an isolated system, the total energy (kinetic + internal) will remain constant, according to the first law of thermodynamics. However, according to the second law of thermodynamics, entropy in an isolated system will spontaneously evolve towards the maximum. This means the objects kinetic energy should be transferred as heat to thermal energy, as that will maximize entropy.   Obviously, this doesn't happen. In fact, it would violate Newton's first law if it did. But is there an intuitive explanation for why this doesn't violate the second law of thermo, and why Newton's first law "wins out" in the end?


"Data tag parsing failed" when trying to setblock a command block with a command in it

I'm trying to fix this but it doesn't work. Inside the command block. I typed in   /setblock 125 64 617 minecraft:command_block 0 replace {Command:"testfor @a {Inventory:[{id:"minecraft:bedrock"}]}"}   and it said:     [09:58:00] Data tag parsing failed: Unexpected token 'm' at: minecraft:bedrock"}]}"


Problem with Viewport shading not displaying my models

Today Ive gotten a problem with my viewport shading. If I work in "Display in solid mode" the models are showing corectlly.  But if I change to "Material preview mode" or " Rendered" my models go "grey as the background" invisible. No textures and no colors showing.(attached photos).     I had used Blender a lot on my system previously and never had this problem, also when I copy the same files to a different computer the viewport shading is showing the models correctly. I had searched litteraly all day if anybody had a similiar problem with no luck. Also I had reinstall my drivers, tried different versions of Blender, tried different project files, tried Blender demo files, also I have tried to reset Blender config to default and to install blender to another disk. Nothing worked. It is also the same if I use eevee or cyclees. (Only difference is that it somehow renders in Cycles normally). Am I missing something obvious? I really cant get viewport to be showing my models normal again. I appreciate all the help. FIXED: It was a Radeon graphic card driver problem. I downgraded to 20.9.2 and it works now like a charm.


Financial proof short term student UK visa

I'm doing a gap year to learn english in London. I'm accepted in an accredited school (for 8 month) and i have sufficient funds to go (my parents will pay for me) My Father has a new bank account ( 1 month old ) with more than 50 000 pounds. Is it a good enought proof of financial stability ?  I also have a bank account where i receive approximatively 2000 pounds every month from my family but sometimes i go over and use 100 pounds more (so i go under 0)  Any advice on how to go from there to have a good chance to get my short term STUDENT visa ?  Thank you


Shortcut for right click on underlined misspelled words

As many I tend to misspell some words when I type. OS X is being nice and underlines them letting me know that something was not right, if use a mouse and right click on the underlined word a menu pops up and offers the correct spelling of this word.  Is there a way to trigger this menu from the keyboard?


Why are the endpoint lines of intervals (`|-|`) not shown completely?

I use \draw[|-|] () to (); to draw a few intervals.  I expect that each interval is rendered like |----| (see the 2nd and the 3rd intervals in the figure below).  However, the top and the bottom intervals below show only a half of their endpoint lines (i.e., |).  Why are these endpoint lines (|) not shown completely? How to show them?        \documentclass{standalone} \usepackage{tikz}  \begin{document} \begin{tikzpicture}   \draw[|-|, red] (0,0) to (1,0);   \draw[|-|, red, dashed] (0,1) to (1,1);   \draw[|-|, blue, dashed] (0,2) to (1,2);   \draw[|-|, blue] (0,3) to (1,3); \end{tikzpicture} \end{document}


If both N and G/N are cyclic, then G is cyclic.

Prove or disprove that if both N and G/N are cyclic, then G is cyclic.  N is a normal subgroup of a group G.  I think it is false but I can't find a counter example.


Question only has 3 close votes in review queue

As most of us know, there has been a change to the close vote review queue. In that it is only showing the questions with 4 close votes now. However, this question only has 3. .          To answer the comment stating that there is 1 close vote for "off topic" as well as the 3 "too broad" close votes. It only shows 3 here too.           I just voted to close, and refreshed that question page and now it shows 4 close votes. So it only did have 3 close votes.        Any explanation for why this is?


guys i try to download image from parse server and set it into navigation drawer Image View but when it try to find file in background  file.getDataInBackground i got this error i should do public void queryForUserPic() {         try{             ParseQuery<ParseObject> query = ParseQuery.getQuery ("Images");             query.whereEqualTo("userId",ParseUser.getCurrentUser().getObjectId());             query.findInBackground(new FindCallback<ParseObject>() {                 @Override                 public void done(List<ParseObject> objects, ParseException e) {                    if(e==null &&objects.size()>0){                        for (ParseObject object : objects) {                            ParseFile file = (ParseFile) object.get("Image");                            Log.i("test",object.get("userId").toString());                            file.getDataInBackground(new GetDataCallback() {                                @Override                                public void done(byte[] data, ParseException e) {                                     if(e==null& data != null){                                         Bitmap bitmap =BitmapFactory.decodeByteArray(data,0,data.length);                                         profile_image.setImageBitmap(bitmap);                                     }                                }                            });                        }                    }                 }             });          }catch (Exception e){             e.printStackTrace();         }      }  this is the error    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.parse.ParseFile.getDataInBackground(com.parse.GetDataCallback)' on a null object reference


$S^2 \times S^2$ diffeomorphic to oriented $2$ dimensional vector subspaces of $\mathbb{R}^2$?

As the question title says, is the product of spheres $S^2 \times S^2$ diffeomorphic to the set of oriented $2$ dimensional vector subspaces of $\mathbb{R}^2$?


Why would you ever implement finalize()?

I've been reading through a lot of the rookie Java questions on finalize() and find it kind of bewildering that no one has really made it plain that finalize() is an unreliable way to clean up resources.  I saw someone comment that they use it to clean up Connections, which is really scary since the only way to come as close to a guarantee that a Connection is closed is to implement try (catch) finally.    I was not schooled in CS, but I have been programming in Java professionally for close to a decade now and I have never seen anyone implement finalize() in a production system ever.  This still doesn't mean that it doesn't have its uses, or that people I've worked with have been doing it right.  So my question is, what use cases are there for implementing finalize() that cannot be handled more reliably via another process or syntax within the language?    Please provide specific scenarios or your experience, simply repeating a Java text book, or finalize's intended use is not enough, as is not the intent of this question.


A reference in the chapter title that doesn't show up in the table of contents

I have been searching for a while, but I didn't find what I was looking for. If this question has been answered before please add a link to the answer. I am writing a report, where every chapter is a published article that I discuss. I want to cite each article in the title of its corresponding chapter, but I don't want the reference number to be shown in the table of contents. I tried \chapter{Paths \cite{...}} The chapter title looks fine with the citation number beside it for example, Paths [1] but it also shows like this in the table of contents, and that is what I don't want. I want to show up in the table of contents only as Paths Is this possible? Or there another better way to do it? Maybe put a header just for the citation number?


Does anybody encounter this bug ? formula should return 0 but return 5,6843418860808E-14

I got thjis ultra simple formula in cell F2 = F1-E2+D2. it is simply to calculate balance of an account from debit and credit amounts : old new balance = old balance - debit + credit  But, if F1 = n,  E2 = n and D2 = 0, formula should return 0 but it returns 5,6843418860808E-14 instead.... Excel is able to correctly tell me that F1 = E2 is true...  I probably can do a workaround using round or other trunc fucntions but...   IT IS CLEARLY A BUG... and inmpossible to tell MS as I do not have any support plan.. :( that sucks


Python regex not finding match in first line of file

I'm using Python to process a text file, line by line, using RegEx. The first line includes the pattern to be matched, but for some reason Python isn't matching it. If I add a blank line—and make no other changes—it matches that line.  Any thoughts on why this might be happening?  Here's the relevant code:  infile = open(filename, 'r') fulltext = infile.readlines()  pattern = r'{LO[^{]*}(.)\s(.*)' regex = re.compile(pattern)  for line in fulltext:   match = re.match(regex,line)   Here's that first line. Again, it matches when it's not the first line, so I don't see what the issue is.  {LO 1.1a}m Plain text here.


System Access Denied Unable to Delete Folder

I am trying to delete a folder on my D:\ drive. I tried tried everything up till loading myself as the system account in a CMD see below.  D:\>takeown /F torrent ERROR: Access is denied. D:\>whoami nt authority\system D:\>   Unedited from my CMD Window.


The bootstrap is a resampling method to estimate the sampling distribution of a statistic.  This is what the tag description says on this website. I am a layman, can someone please help me understand what is bootstrapping with an example?


I really appreciate your quick response on this and to have full review on my refusal decision.. like u said there must be some para missing i checked the letter again, my question too the letter is all the same just i missed the point he noted ""furthermore there are large transfer and cash deposits which are 6 times your claimed salary (amount) on the 23/02/2015 and on the 15/05/2015 a cash deposit for (1,006)pounds" so the small amount of deposit were the available cash we just deposit this to our saving account as we have two accounts how to verify this? what reason should be mentioned to them that we did'not present the supported documents to declare it.  As per your review we have all of the evidences ( Death Certificate, the Cheque receipt Voucher, Copy ob Bank Cheque from the Company, Power of Attorney to my husband by his legal guardian as a trustee of what his father left, and transfer permission from the ministry that he can hold his mother and sister sponsorship as they are currently living with us in KSA) are with us in Arabic form and we translated in English with the stamp of certified translator.. do we need at attest this from chamber of commerce?  "But it would be advisable to request a different ECO for your next application. They will do this without prejudice if you ask them to; plus an ECM will review the decision if it is adverse to you." how to claim for this in our future application if u can it would b very helpful for us.  the booking we submitted was ticket bookings it was mention in the guidance of required documents. for future application all of the personal circumstances are the same except the amount for the cost of trip we mentioned earlier my husband by mistakenly mentioned the whole family trip cost including (Plane ticket, living expenses and the money) he have for this trip instead of his personally. can we change it in each application the cost belongs to personally, It may make a wild change as compare to previous application. does it going to effect on the decision for the future application. We already submitted Invitation letter (original) from the family members in UK. Do we submit this time the copy of invitation letter because they already have the original one.


Getting point as 5 instead of 10 for each upvote in my answer - Why?

Recently I have  of one .  I found some strange points for each upvotes. I am getting 5 instead of 10 for each vote. Why so?


CORS Issue on Personalization Builder output

Our current implementation method uses SFMC's client-side code snippet that returns and places it's HTML in our module and outputs the following on the page:  <script src="https://[MID].recs.igodigital.com/a/v2/[MID]/category/recommend.js?category=Living%20and%20Wellness&amp;item=182520" async=""></script>   We'd like to get the JSON object directly from our client-side script but the request is blocked by the following CORS (cross-origin resource policy) error:  Access to XMLHttpRequest at 'https://[MID].recs.igodigital.com/a/v2/[MID]/category/recommend.json?category=Living%20and%20Wellness&item=182520' from origin [Site URL] has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.   Has anyone else ever seen this? Any suggestions for addressing?


How to display size "human-readable" in lsof | grep /var*

I am currently trying to see , all the files which are using /var mount.  With lsof | grep /var* when Its displaying size in bytes. How can I display file size in MB.  Thank you.


It's my understanding that a z-score can only be calculated and accurately used for data sets that are normally distributed.  Since "perfect" normal distribution almost never occurs in real-world data (where "perfect" normal distribution is defined as 1. The mean, median, and mode all equal the same number, 2. the distribution is perfectly symmetrical between all standard deviations on both sides of the mean, and 3. the distribution is asymptotic), how "close" can the distribution be to perfectly normal for the z-score to still be a valid statistical measure?  If the answer is it has to be a perfectly normal distribution, then my question is why is the z-score so important since it would seldom be a valid measure on real-world data?


Getting "Not found" message when running a 32-bit binary on a 64-bit system

I have currently a strange problem on debian (wheezy/amd64).  I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/. To make things easy, I have initialized this chroot with a debootstrap (also wheezy/amd64).  All seemed to work well inside the chroot but when I started the installer script of my server I got : zsh: Not found /some_path/perl (the installer includes a perl binary for some reasons)  Naturally, I checked the /some_path/ location and I found the "perl" binary. file in chroot environment returns :  /some_path/perl ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped   The file exists, seems ok, has correct rights. I can use file, ls, vim on it but as soon as I try to execute it - ./perl for example - I get : zsh: Not found ./perl.  This situation is quite understandable for me. Moreover :   I can execute other basic binaries (/bin/ls,...) in the chroot without getting errors I have the same problems for other binaries that came with the project When I try to execute the binary from the main root (/chr_path/some_path/perl), it works. I have tried to put one of the binaries with a copy of my ls. I checked that the access rights were the same but this didn't change anything (one was working, and the other wasn't)


how much size required for booting ubuntu in usb?

I am new to install ubuntu. I want to install it using boot able usb. My question is how much size usb drive required for making bootable ubuntu operating operating system?


What are some examples of valid and satisfiable sentences?

A formula is valid if it is true for all values of its terms. Satisfiability refers to the existence of a combination of values to make the expression true. So in short, a proposition is satisfiable if there is at least one true result in its truth table, valid if all values it returns in the truth table are true.      Even given these definitions it is still not clear to me what sentences are valid or not.    What are some examples of sentences that are valid or (un)satisfiable?


Converting ArcGIS (*.mxd) file to QGIS (*.qgs) file?

I recently tried to use QGIS and I wondered if you can convert a draft ArcGIS map (*.mxd file) into a QGIS project (*.qgs file).   This would avoid thematize the entire project.


Here's the command:  /tellraw @p ["",{"text":"[HINT]","color":"dark_green","bold":true,"clickEvent":{"action":"run_command","value":"/tellraw @p {\"text\":\"This pickaxe cannot break lit glowstone lamps.\",\"color\":\"light_purple\"]"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click For Hint"}]}}}]   That brings up [HINT], which is bold and dark green, and when you hover over it, it says "Click For Hint". The problem is that when you click it, it should activate a tellraw command, however when I click it, I get:  Invalid json: Unterminated object at line 1 column 81   This JSON is flawless (or so I thought). What is wrong?


USB bench marking shows faster write speeds after fragmentation? How?

I am currently benchmarking my 3.0 USB Flash drive both fragmented and defragmented.  My initial setup consisted of Crystal Disk Mark and a flash drive with no files on it.  I recorded the output several times and took an average.  Then, I fragmented the drive using PassMark Fragger and checked the defragmentation level with Defraggler.  For a test with around 80% fragmentation, the write speeds actually got FASTER  how could this be?


Adding events to dynamically created objects

I've created a function where all drop downs on the page with the class ".dropdown" do something when changed. However adding subsequent dropdowns dynamically do not trigger the event. How can I make the dynamic dropdowns trigger the change event?  $(".dropdown").change(function () {     //Do Something });


How do I use ubuntu-device-flash with the BQ Aquaris E4.5 and Aquaris E5

The tool 'ubuntu-device-flash' can be used to update the software on an ubuntu phone manually. It can be used to change the device to a different 'channel' of updates and also perform a reset of the storage.  However, when I tried it with either the BQ Aquaris E4.5 Ubuntu Edition or Aquaris E5 Ubuntu Edition, it didn't seem to work, for example:  ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap   Would be expected to wipe the device to factory state. However, it does not seem to succeed:  2015/03/27 13:58:35 Expecting the device to be in the bootloader... waiting 2015/03/27 13:58:50 Device is |krillin| 2015/03/27 13:58:50 Flashing version 20 from ubuntu-touch/stable/bq-aquaris.en channel and server https://system-image.ubuntu.com to device krillin Failed to enter Recovery


The following questions are of pure theoretical nature. I don't have an application in mind.   Is there a key that makes AES the identity function? Is there a key that makes AES the identity function for certain inputs? Is it known whether such keys might exist? Are such keys known for other ciphers?   For example, I want to encrypt "Hello StackExchg" with AES with said key and the ciphertext should be again "Hello StackExchg".  When I encrypt "Hello StackExchg" with the perfect cipher one-time-pad, there is a possibility that the resulting ciphertext is again "Hello StackExchg". This possibility must exist (though it is unrealistically small), otherwise, the ciphertext would not be perfectly random but depending on the plaintext. The corresponding key for one-time-pad would be all zeros.


Condition not working inside jquery required validator

I have multiple dynamic dropdown i am validating it through jquery required validator. But issue is the dropdown is starting from 0 index so validation not working when Select is selected. I'm using the following code.  jQuery('form#add_form :input').each(function(){     jQuery(this).rules('add', {         required: function(element) {              if(element.type=='select')  {                 if(jQuery(this).children('option:selected').val() == '0')                 {                     return false;                 }                 else                  {                     return true;                 }             } else              {                 return true;             }         } });  });   Form tag :  {{Form::open(array('','method' => 'post','class'=>'add-form','id'=>'add_form')) }}   @foreach($parent_attrs as $pattr)                                               <div class="col-md-6">                                                 <label>                   {!! Form::select('product'.$pattr->id, $products, $pattr, ['class' => 'form-control']) !!}                                                </div>                                               @endforeach


I was wondering if it is possible to create a chalkboard background in LaTeX, like in this picture (minus Bart of course). Then write in the chalkboard using white fill (chalk)?   Is it possible to do this in a non beamer type document class, i.e. not as frames?


My bicycle tire specification is 40-622 (700x38C-28x1 5/8 x 1 1/2), would you please tell me the right size of the proper inner tube?


How does this circuit, from an LED night light, work?

I broke open a dead LED night light before discarding it, and found this circuit:         – Schematic created using   I'm wondering how it works.  The diode bridge (actually in one package) and the low pass filters for the DC power supply seem fairly clear, but I'm puzzling over the arrangement of the initial capacitor and resistor.  My guess is that the capacitor and the rest of the circuit (bridge and right of it) forms some sort of voltage divider, sized to give the right voltage to the LED; I could imagine the need for a bleeder resistor, but I don't see how R1 does that, quite.  Any insights?  Certainly a minimal AC-DC power supply!


How to pass in a generic type using a variable working it out at runtime?

I wish to make a generic extension method :  public static IList<ValidationResult> ValidateMany<T>(this IValidator validator, IList objectsToValidate) {     var results = new List<ValidationResult>();     foreach (var obj in objectsToValidate)     {         var validationResult = validator.Validate((T) obj);         results.Add(validationResult);     }     return results; }   I would like T to be passed in. That may seem easy by adding a template param, but then from the calling code I would like to do :  // calling code var typeOfT = WorkOutTypeFromObjects(objectsToValidate); var objectsToValidate = RowsToObjectsFactory.Create(typeName, tableRows); var results = validator.ValidateMany<typeOfT>(objectsToValidate);   the top line there is the critical part that is hard to get, I need some dynamic way of working out the type and passing it in the T param. Or is there a good alternative?


Should I delete an upvoted answer that another, better answer has shown to be quite incorrect?

I have a +7/-0 answer, written based on a reasonably careful reading of a particular authoritative text (not the question itself, which was straightforward). Unfortunately, I wasn't careful enough, and another answer on that question, by looking more completely, has the right of it. (The result is that mine is not merely incomplete, but actually wrong; fortunately, the second answer is currently at +9/-0.)  Should I delete my answer? Edit to say "no, go check the other one"? Leave it for votes to handle? Comment on it? Or what?  There's a lot of questions on metas about deleting downvoted or otherwise community-recognized wrong answers, as well as those that misread the question, but this seems to be a little different, as neither is the case.


Why does this datasheet specify 12 100nF capacitors?

I am learning to make my first PCB with an MCU and looking at the Power Scheme, it asks for 12 x 100nF capacitors. My question is why have 12 of them rather than 1 x 1uF, and 2 x 100nF (I see that there is limited value selection, but these are popular values too)? This would save space, and manufacturing costs. I also assume these are in parallel to add up the capacitance, is this a wrong assumption? Thank you for your help. EDIT:Thank you for all the good advice, due to request, here is the datasheet:


How did Harry, Ron and Hermione buy presents for each other?

I have been re-reading the Harry Potter books again and I noticed that Harry, Ron and Hermione have been giving each other Christmas presents each year at Hogwarts. How have they been able to buy each other presents if they are not allowed to go out of Hogwarts?   From their third year on they could visit the village and buy presents there, but what about the first two years? Did they give their personal belongings? Or did they just happen to have boxes of chocolates or books to give each other?


I am making an animation where a person sits down on sofa. I need to make it such that when the person sits on the sofa or presses it with his hand, it deforms. However in my case, when he presses on the sofa, his hands goes trough the sofa. How can I fix this problem?


My eyes blinked in unbelief as they beheld the domineering statue, the inscription "Power has no limits" on its face and "I came, saw, and conquered" on its feet.   Should there be a comma after face, or not?


How to place a footnote inside a float environment

How can one declare a footnote within a float environment, such that it appears on the same page with the float (regularly on the page, not inside the float)? Is there any trick or additional package apart from the widely used workaround  % Let 'floatenv' be any float environment such as figure or table \begin{floatenv}     [...] \footnotemark [...] \end{floatenv}  \footnotetext{<text>}   which already fails if the float is put on a dedicated float-page ({floatenv}[p])?


Calculating required force for pushing a body to a desired position at once in Unity

In a 3D world I simulate that a coin is being pushed over a plane (applying a force in his rigidbody where y-axis = 0) using a top-down view.  Some time ago but using Box2D, I was able to calculate the amount of force required to stop the coin in a desired position with just one push.  Box2d-js  var fps=60; var groundFriction = 0.01; var force= new Box2D.Common.Math.b2Vec2(distance.x * coin.box2dBody.GetMass() * fps * (groundFriction * fps),       distance.y * coin.box2dBody.GetMass()* fps *(groundFriction * fps)); coin.box2dBody.ApplyForce( force, coin.box2dBody.GetWorldCenter(), true );   In order to simulate the friction, during the update, I substracted the groundFriction(0.01) to the linearvelocity of the objects in movement in every frame.  Now using Unity with a more complex physics engine I cant replicate the same.  Unity3d  Vector3 posFinal = transform.position + direction * distFinal; Vector3 distanceVecFinal = posFinal - transform.position; float fps= 1/Time.fixedDeltaTime //50 fps Vector3 force = new Vector3(distanceVecFinal.x  * myBody.mass * fps, 0,      distanceVecFinal.z  *    myBody.mass * fps); myBody.AddForce(force);   I think that in the final formula I should add the friction of the objects, but I am not sure how to do it. Maybe this is not the only thing that I should change.  I need help pls!  tl&dr Calculate the required force for making move an object to a desired position in a plane with just one push.


Transparent path/stroke fill in Illustrator

This is an odd request and something I've never had to worry about in Illustrator until now. I'm building out a logo that will be printed on a shirt. Instead of having a solid black border around the vector hand, the client wants the black border to be "transparent" so when it is placed on top of a pattern, you see the pattern background. I have an example below of what I'm trying to accomplish.      The second photo I mocked up in Photoshop to show what I'm trying to do. It's very easy to select the border path in Photoshop and simply wipe it out. Does Illustrator have a "transparent" fill option in the Path area? Selecting a color and dropping the transparent percentage didn't do the trick.


Should the names of seasons be capitalized?

When you are writing about the seasons, should you capitalize their names?  For example, would you say:     I love the colors of the leaves in Autumn.   Or should you say:     I love the colors of the leaves in autumn.


Ryanair luggage policy has recently changed. Before I could take two bags, so if I bought something at the airport I would just put it in my luggage. Since I am now only carrying a small backpack I would like to know if they allow stuff bought at the airport as a second bag.  I've seen it before (some time ago) stated in some shops that this would be allowed. I am not sure if that applies to all airports/shops though and if the recent policy change didn't change that aspect as well.  Does ryanair allow an extra bag if bought at the airport shops?  Note: By extra bag I don't mean travel luggage/trolley bought at the airport but just a plastic bag with bottles, tshirst, etc or something equivalent. Not necessarily bought at the duty free.


Scanner.nextLine() sending data but won't compare it inside of a function

Trying to take data from scanner and pass it to a function that compares that data to an array, but when I send the data that the scanner receives it won't compare. Scan class Key.use(scan.nextLine().toString(), retrievedkey);  Key function that iterates through the array to compare the first parameter to the arraylist public static void use(String door, String[][] key){         var arraylength = key[1].length;         for (int i = 0; i<=arraylength;){             i++;             if (door == key[1][i]) {                 canOpen = true;                 System.out.println(canOpen);             }             else {                 canOpen = false;                  System.out.println(canOpen + " " + door + " " + Arrays.toString(key[1]));             }             return;         }              }      }  When sending data separately from the scan function the key function works. Ex: Key.use("Front door", retrievedkey)  But the scanner prints the input as "door" yet isn't read by the function. Any help? Thanks.


Suppose that $H$ and $K$ are two subgroups of a group $G$.Assume that $[G:H]=2$ and $K$ is not a subgroup of $H$.Show that $HK=G$. Since Index of $H$ in $G$ is $2$ , $H$ is a normal subgroup of $G$ and $K$ is a subgroup of $G$ hence $HK=KH$ is a subgroup of $G$.Now, how to prove  $HK=G$?


Search for authors on Google Scholar by their field of study and country

On Google Scholar, you can do an author search based on keywords. For example, if I find an author who has "Robotics" as a keyword, and I click on that keyword, it lists all the authors with that keyword, in order of the number of citations.  What I would like to do, is see that same list, but:  1) Only for authors in my country  And:  2) By combining it with another keyword, e.g. all the authors who have "Robotics" and "Machine Learning".  Is this kind of advanced author search possible?


Last Logon Time of All Users - RDP server not on a domain

I am attempting to get a list of "last logon time" of "all users" on Windows Server 2012, but currently only know of how to list a single user login, which is:  net user username | findstr /B /C:"Last logon"  Any ideas?  *P.S. This servers only purpose is to host the RDP connections; not tied to a domain/AD.


I get a "NullPointerException" when I'm trying to implement ListView Volley

I've tried to do everything as in  tutorial:  but I don't know what is the problem there.        Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' on a null object reference             at info.androidhive.customlistviewvolley.MainActivity.onCreate(MainActivity.java:55)             at android.app.Activity.performCreate(Activity.java:6185)


Differentiable at $x=a$ implies continuous at $x=a$

Consider the function $$f(x)=\left\{\begin{array}{cc} x^2-4 & \text{ if }x\leq 2\\4x+3&\text{ if } x\gt 2\end{array}\right.$$ This function is differentiable at $x=2$ since $\lim_{h\to 0^{\pm}}\frac{f(2+h)-f(2)}{h}=4$ (EDIT: this actually isn't true but it is true that $\lim_{x\to 2^-}f^\prime (x)=4=\lim_{x\to 2^+}f^\prime(x)$); however, it's not continuous at $x=2$. How is that possible, doesn't differentiability at $x=a$ imply continuity at $x=a$? This question came up when I tried to answer the question of finding $a$ and $b$ such that the function $$f(x)=\left\{\begin{array}{cc} ax^2-b & \text{ if }x\leq 2\\bx+3&\text{ if } x\gt 2\end{array}\right.$$ The solution is achieved by finding conditions on $a$ and $b$ such that it's continuous, and also such that the left/right derivates exist. The left/right derivative question gives $4a=b$. With the condition of continuity you get the additional condition that $4a-b=2b+3$, giving a unique solution. But doesn't differentiability imply continuity? What's wrong with just solving $4a=b$ like in the first example above?


Let $a$ and $b$ be integers such that $a|b$ and $b|a$. Show that $a ∈ \{b,−b\}$. My attempt Since  $a\mid b$ and $b\mid a$, we have that $a\neq 0$ and $b\neq 0.$ I think I can use this result that appears in the book I am studying... If  $a\mid b$ and $b\neq 0$, then $a\leq |b|$.  Thus, in this case $a\leq |b|$ and $b\leq|a|$. The problem is that I don't see how to relate these two inequalities to get what I want.


Do I have to pay duty when carrying 15 iPhones domestically in India? (From Chennai to Delhi.)

I have purchased 15 iPhones in Chennai and I want to bring them to Delhi. Will I have to pay duty for that in Chennai? I have the receipt proving I bought them in Chennai.


I found a phrase in the Oxford dictionary: “my birthday seems to come round quicker each year”. Why is the word quicker used instead of more quickly?

I think adverb is needed here to quality “come round”. So why here we use “quicker”?  Thanks for your reply.


Task: Draw an AND circuit with 8 inputs, a circuit which implements the expression a∧b∧c∧d∧e∧f∧g∧h.  Condition: Use only NOR-Gates with two inputs to solve this task.  Could anyone give me a hint, what is false here? ( I would like to solve it by my own.)  My suggestion:      Edit:  My idea was at first to think how  can I depict an AND gate with NOR Gates.  Equation: A*B   = (A'+B')'   =>  nevertheless A'+B' is A'*B' (using here the Morgans Law) and then adding the inverter to it, it would be (A'B')'. Here the inverters are complements and would cancel each other out, so A * B would be just there  And with this equation I could work with to implement an AND gate, right?         – Schematic created using


prove that $\lim_{n\to\infty}\int_{-\infty}^\infty \frac n {\sqrt {\pi}}e^{-(nx)^2} f(x) dx = f(0)$

prove that for any integrable function $f$ defined on $(-\infty,\infty)$ (or maybe square integrable function.. my professor didn't gave exact imformation about $f$.) $$\lim_{n\to\infty}\int_{-\infty}^\infty \frac n {\sqrt {\pi}}e^{-(nx)^2} f(x) dx = f(0)$$  I think I have to get some $\delta>0$ and divide integral into three terms.    $$\int_{-\infty}^{-\delta} f*g_n +\int_{-\delta}^{\delta}f*g_n + \int_\delta ^\infty f*g_n$$ ($g_n(x)=\frac n {\sqrt {\pi}}e^{-(nx)^2}$)  since $f*g_n$ converges uniformly to $0$ if $x\neq0$, first and third term vanish. so what I have to do is to take $N$ and $\delta$ (from the given value $\epsilon>0$) so that if $n>N$  $$\left|\int_{-\delta}^{\delta}\frac n {\sqrt {\pi}}e^{-(nx)^2} f(x)dx - f(0) \right|<\epsilon$$  I can't go any further.


I have long been interested in something. I know a lot of things about the history of Ubuntu, but I do not know about the name.   So, why is Ubuntu named "Ubuntu"?


{      Profession:1,      Offers:{          Recipes:[                   {                    buy:{id:emeralds,Count:30},                    sell:{id:enchanted_book,tag:{                          StoredEnchantments:[{id:70,Count:1}]                                                 }                         }                   ]             } }   so i have this villager i want to spawn and i have unbalanced square brackets [] but there's four brackets and I've used json editors and formats and all this. Where is the unbalance brackets?!? I'm going crazy


Are Goodberries affected by the Life domain class features?

How are Goodberries affected by the cleric class features from the Life domain, if at all? I read somewhere that the Life domain's healing bonuses apply to each berry created by the spell — do they? Are there any official answers to this question?


How can I backup the realm after expiry date?

As the title says, I was playing with friends a realm that I created, and now, we want to move the world to a friend's realm.    I want to copy it, so my friend can download it and we can play it in his realm.  How do I backup the realm or, it is saved in my computer?


Modular Arithmetic: Computing last digit of $206746^{20}$

I have been given the number: ${206746}^{20 }$and the problem wants me to compute the last digit using modular arithmetic. How would I go about this?  I know that since the ones digit is 6, no matter how big the exponential is the last digit is 6, but I do not know how to prove it.


Still receiving online messages/notifications after disabling cellular data

When disabling 3G/network usage (go to Settings->Cellular->Use cellular data for:) for a specific application (eg. Facebook, Hangouts, Messenger, ...) I can still receive messages and/or notifications on my iPhone.  Is this some kind of bug in iOS [version: 7.1(11D167) - modemfirmware: 2.18.02]?


How can I increase the size of my /var und shrink it from /home or other patition?

first of all I'm a newbie with ubunutu servers or generell with linux. So I'll be glad if someone can explain it very simple. ^^'  My Server is a Ubuntu 16.04 LTS Server 64bit + Plesk Onyx from Strato (German Hoster).   I've the problem that my FTP webspace is on my /var directory and I've just 70GB on this /var of 2*240GB SSD.  Unfortunately the server was preset with the webinterface installation (however I've a dedicated server).  My /home on the one hard disk of 240GB has 118GB and I'm still using 500MB ... Can I shrink this /home for example to 25GB and give the 'free space' my /var? (If it's possible without shutting down the server?)  Hopefully I've explained my problem well enough. I hope anyone can give me accurate instructions to do this task. :|


I am trying to make it so that there are "beams" coming out of the top of an object. Here is a crappying drawing:  I have made this so far:


How does one prove that the unit circle is a 1-dimensional manifold?

If given the unit circle, $x^{2}+y^{2}=1$, how does one go about showing it's a one-dimensional differentiable manifold?


How can I find what toolkits/frame works a specific web app uses?

is it possible and how, to find out, which frameworks a specific web application uses? I'm not interested in reverse engineering or 'copying' an application, in case you are wondering. What I am after is that when trying to figure out which framework to use I think it would be useful to find a web app that has the similar kind of nature as what you are developing and then look at what tools they are using. This information is not often disclosed for many app AFAIK. So are there any tell tale signs in the page source as reveal  by browser 'Show Page Source' or JavaScript debugger.


Command-line (cmd) command to lock a windows machine

Is there a way to lock a Windows XP machine via the command line?  The shutdown command doesn't have an option for it.


How to solve for the parameters in a logistic function?

I want to find the parameters of a logistic function. I read the guide . It has a very clear explanation, but it did not have the final solution that I need.   Now, we will consider a basis logistic function:  $$h_\theta(x^{i})=\frac{1}{1+e^{-\theta_0-\theta_1x}}$$ We want to find $\theta_0$ and $\theta_1$ subject to minimum cost function: $$J(\theta)=-\frac{1}{m}\sum_{i=1}^{m}y^{i}\log(h_\theta(x^{i}))+(1-y^{i})\log(1-h_\theta(x^{i}))$$  We use the notation:  $$\theta x^i:=\theta_0+\theta_1 x^i_1 $$  Then  $$\log h_\theta(x^i)=\log\frac{1}{1+e^{-\theta x^i} }=-\log ( 1+e^{-\theta x^i} ),$$ $$\log(1- h_\theta(x^i))=\log(1-\frac{1}{1+e^{-\theta x^i} })=\log (e^{-\theta x^i} )-\log ( 1+e^{-\theta x^i} )=-\theta x^i-\log ( 1+e^{-\theta x^i} ),$$  and  $$J(\theta)=-\frac{1}{m}\sum_{i=1}^m \left[y_i\theta x^i-\theta x^i-\log(1+e^{-\theta x^i})\right]=-\frac{1}{m}\sum_{i=1}^m \left[y_i\theta x^i-\log(1+e^{\theta x^i})\right],~~(*)$$  where the second equality follows from:  $$-\theta x^i-\log(1+e^{-\theta x^i})= -\left[ \log e^{\theta x^i}+ \log(1+e^{-\theta x^i} ) \right]=-\log(1+e^{\theta x^i}). $$  All I need now is to compute the partial derivatives of $(*)$ w.r.t. $\theta_j$.  As  $$\frac{\partial}{\partial \theta_J}y_i\theta x^i=y_ix^i_j$$ $$\frac{\partial}{\partial \theta_j}\log(1+e^{\theta x^i})=\frac{x^i_je^{\theta x^i}}{1+e^{\theta x^i}}=x^i_jh_\theta(x^i), $$  The above steps are correct, but it did not have the solution for $\theta_0$ and $\theta_1$. We can take the derivative and put it equal $0$. Namely,  $$\frac{\partial J(\theta)}{\partial \theta_0}=y-\frac{e^{\theta_0+\theta_1 x}}{1+e^{\theta_0+\theta_1 x}}=0~~(*)$$  $$\frac{\partial J(\theta)}{\partial \theta_1}=yx-\frac{xe^{\theta_0+\theta_1 x}}{1+e^{\theta_0+\theta_1 x}}=0 ~~(**) $$     Are $(*)$ and $(**)$ correct?   Assume that $y$ and $x$ are known. How do you represent $\theta_0$ and $\theta_1$ by $y$ and $x$?


Is the total energy of the universe zero?

In popular science books and articles, I keep running into the claim that the total energy of the Universe is zero, "because the positive energy of matter is cancelled out by the negative energy of the gravitational field".  But I can't find anything concrete to substantiate this claim. As a first check, I did a calculation to compute the gravitational potential energy of a sphere of uniform density of radius $R$ using Newton's Laws and threw in $E=mc^2$ for energy of the sphere, and it was by no means obvious that the answer is zero!  So, my questions:   What is the basis for the claim – does one require General Relativity, or can one get it from Newtonian gravity? What conditions do you require in the model, in order for this to work? Could someone please refer me to a good paper about this?


For prime $p$ do we have $p^3+p^2+p+1=n^2$ infinitely often?

This is a question to ponder about the occurrence of prime $p$ giving  $p^3 + p^2 + p +1=n^2$ as is true with $7$ giving $400=20^2$.  Do you think this will ever happen again?


is there any extra latency using an amp sim on wine?

I want to use AmpliTube amp sim on ubuntu studio but there isn't a linux version for it, can I just use wine and will it have any extra latency? if so how much latency?


In Mail on macOS Big Sur, I went to Preferences > Viewing > to show message-IDs in the header. The message-ID is a unique identifier for each email and looks something like this: <4E21D492-X12X-1234-93E5-271B1C901234@googlemail.com>  How can I get message-IDs to show in Mail on iOS?


linker error for no obvious reason: undefined reference

I try to write a simple function my_to_string() in C++ that takes two iterators, first and last. I want the function to have a typical behavior: It shall iterate over [first,last) and do something with the objects' data with only read access to them. I have the declaration for this function in one file stringformat.h, its definition in the stringformat.cpp, and I try to call it from another .cpp file.  All files compile fine.  I use Eclipse CDT to build my project.  Now my problem is that I get the following linker error (straight copy-paste from Eclipse console, only home dir renamed for privacy reasons):  Invoking: Cross G++ Linker g++  -o "agos2"  ./agos/pairingfunctions/CantorPairingFunction.o ./agos/pairingfunctions/CantorTupleIncrementer.o ./agos/pairingfunctions/PairingFunction.o  ./agos/machine/Instruction.o ./agos/machine/Machine.o ./agos/machine/MachineFactory.o ./agos/machine/Operation.o ./agos/machine/Program.o  ./agos/goedelnumbering/multiplier/InstructionGoedel.o ./agos/goedelnumbering/multiplier/InstructionIncrementer.o ./agos/goedelnumbering/multiplier/MachineIncrementer.o ./agos/goedelnumbering/multiplier/OperationIncrementer.o ./agos/goedelnumbering/multiplier/ProgramIncrementer.o  ./agos/BigIntegerLibrary/BigInteger.o ./agos/BigIntegerLibrary/BigIntegerAlgorithms.o ./agos/BigIntegerLibrary/BigIntegerUtils.o ./agos/BigIntegerLibrary/BigUnsigned.o ./agos/BigIntegerLibrary/BigUnsignedInABase.o  ./agos/Agos.o ./agos/Int64ToInt64Function.o ./agos/stringformat.o  ./agos.o    ./agos/machine/Machine.o: In function `agos::Machine::toStringWithState() const': /home/username/workspace-cpp/agos2/Debug/../agos/machine/Machine.cpp:280: undefined reference to `std::string agos::my_to_string<__gnu_cxx::__normal_iterator<long const*, std::vector<long, std::allocator<long> > > >(__gnu_cxx::__normal_iterator<long const*, std::vector<long, std::allocator<long> > >, __gnu_cxx::__normal_iterator<long const*, std::vector<long, std::allocator<long> > >)' collect2: error: ld returned 1 exit status make: *** [agos2] Error 1   Code here:  stringformat.h  //... template<class InputIterator> std::string my_to_string(InputIterator first, InputIterator last); //...   stringformat.cpp  //... template<class InputIterator> string my_to_string(InputIterator first, InputIterator last) {     ostringstream oss;      if (last - first > 0) {         for (; first + 1 != last; ++first) {             oss << *first << ' ';         }          oss << *first;     }      return oss.str(); } //...   code using the function:  #include "../stringformat.h" //...  void my_use_case() {     vector<int64_t> const& v = ...;     string s;     s = my_to_string(v.begin(), v.end()); // Linker complains here; this is line 280     //... }   In the linker command, the stringformat.o is included, so I think the function should get found. I've also positively checked that a stringformat.o file exists in my project folder.  I've also tried copy-pasting the function definition right before my_use_case(). Then it compiles fine. No errors whatsoever. But this is not a nice solution.


What is the difference between "around" and "round"?

When I am writing I often come across the words "around" and "round." I was wondering what is different between them, and how they would be used in different contexts.