I think I'll be wait by/until thursday before making a decision .  which one and WHY?    "I think I'll wait until Thursday before I make a decision." is correct. Explanation is the same. "I am not going to make the decision sooner than on Thursday." "By" would mean on Thursday or sooner which does not make sense. .....  With regard to the top definitions, If I would make  a decision sooner than thursday or on thursday, must I use the preposition"by" instead of "until"? that is,  I think I'll be wait by thursday before making a decision .

The shops are open only until 5.30. they will be closed by now.   The shops are open only by 5.30. they will be closed by now.  Greetings  Would you kindly tell me the differences that are in the sentences?  I mean the difference between UNTIL 5.30 and by 5.30.  In addition, I wonder the reason why it has been used the tense future, that is  they will be closed by now. !   (I am learning English. would you possibly elaborate your explanations in details readily?)  I think I'll be wait by/until thursday before making a decision.  which one and WHY?    Thank you so much, but my last question:  Are these the acceptable reasons for your previous arguments about that you did not agree with "by 5.30"?, because when we use the following sentence as if the shops are closed twice- for example: once at 3 o'clock and the other one at 7 o'clock or after 5.30  The shops are only open by 5.30. They will be closed by now. ................. As a preposition of time “by” means “on or before”.  She should be here by Sunday.  This means she ought to be here e,g. on Friday or Saturday but definitely not later than Sunday. Use “by” when you refer to a deadline.  “Until” means “up to a particular time but no sooner than that."  The shops are open only until 5.30.  They will not close sooner than 5.30.


I am trying to dynamically add a list item to a list and then remove it by clicking on that item.  The remove event never seems to fire.  However if I use the same code on a static list it works fine.  I've seen similar solutions but they do not work.  See jsFiddle:   <input id="status" type="text" placeholder="Status (tab or enter)">
 Dynamic List:

    $('#status').keydown(function (e) {     if (e.which == 9 || e.which == 13) {         $('#statusList').html($('#statusList').html() + formatNewStatus(this.value));         this.value = "";         this.focus();         e.preventDefault();     } });  $(function () {     $('#statusList li').click(function () {         alert('dynamicList');         $(this).remove();     }) });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have a csv file imported into QGis 1.8 and this layer is receiving real time data.Into this attribute table layer there is a field which values i use to label it but overlapping all values when showing. Is there any way to label only the last record when the attribute table is updating?.

Is there a way in qgis 2.0 to prevent overlapping labels?   I have a layer with a large geographical extent, which means a hell of a lot of labels. Many of them collide and it looks really bad. Is there a way for me to get qgis to automatically place the labels on an alternative 'location'?  I know it is possible in MapInfo but I'd rather use qgis :)


I saw in the YouTube video  that bats carry so many viruses, yet never or almost never get a disease by any of them. I'm looking for an evolutionary reason as well as a reason based on how their bodies work. However, when you're giving the reason based on how the bodies work, I want you to find some clever way to summarize the reason in a way that I can understand because I hardly know anything about biology.  Could the evolutionary reason be something like this? Bats live in large groups all the time and keep switching around their groupings. Viruses that infect bats evolved by natural selection to do everything they can to spread between bats and survive and not have every last bit of it fought off. Bats in turn evolved by natural selection to not let viruses take over their body more than just a tiny bit. So it was to the evolutionary advantage of both bats and viruses that infect them to form a compromise where the virus gets to invade their bodies to a very small extent but not too much.

How do bats survive their own coronaviruses (without showing any symptoms)?  Or, more generically, how can viruses keep reproducing inside healthy carriers without inducing any pathogenic effect?  Are coronaviruses able to replicate themselves without harming bats, or maybe these viruses are just latent like herpesviruses in humans?    Related question:


I have to find the cardinality of the set of the non-continuous functions $f:\mathbb{R}\rightarrow\mathbb{R}$.  I think we should look for function that at least have a point of discontinuity, but i don't have a clue, really. Any hint?

This is a question from the book Introduction to Set Theory (Hrbacek and Jech), chapter 5, question 2.6.     (Show that) The cardinality of the set of all discontinuous functions is $2^{2^{\aleph_0}}$. [Hint: Using exercise 2.5, show that $|\mathbb{R}^\mathbb{R}-C|=2^{2^{\aleph_0}}$ whenever $|C|\leq 2^{\aleph_0}$.]   Exercise 2.5, as referred to in the hint, provides the following result:     For $n>0$, $n \cdot 2^{2^{\aleph_0}} = \aleph_0 \cdot 2^{2^{\aleph_0}} = 2^{\aleph_0} \cdot 2^{2^{\aleph_0}} = 2^{2^{\aleph_0}} \cdot 2^{2^{\aleph_0}} = (2^{2^{\aleph_0}})^n = (2^{2^{\aleph_0}})^{\aleph_0} = (2^{2^{\aleph_0}})^{2^{\aleph_0}}=2^{2^{\aleph_0}}$.   The only way I could answer this question was by making use of two theorems stated later  in the same textbook. First, it is easy to prove that $|\mathbb{R}^\mathbb{R}-C|$ is an infinite set, since if it was finite we would have \begin{equation}2^{2^{\aleph_0}}=|\mathbb{R}^\mathbb{R}|=|\mathbb{R}^\mathbb{R}-C|+|C| \leq n+2^{\aleph_0}=2^{\aleph_0}< 2^{2^{\aleph_0}},\end{equation}which is a contradiction. Now I make use of a theorem requiring the axiom of choice: For every infinite set $S$ there exists a unique aleph $\aleph_\alpha$ such that $|S|=\aleph_\alpha$. So I let $|\mathbb{R}^\mathbb{R}-C|=\aleph_\alpha$ for some ordinal $\alpha$. Now assume $\aleph_\alpha < 2^{2^{\aleph_0}}$. Here I make use of another theorem, which i am not sure I am allowed to do: For every $\alpha$ and $\beta$ such that $\alpha \leq \beta$, we have $\aleph_\alpha+\aleph_\beta=\aleph_\beta$. So I basically then say either $|\mathbb{R}^\mathbb{R}-C|+|C|=\aleph_\alpha$ or $|\mathbb{R}^\mathbb{R}-C|+|C|=2^{\aleph_0}$, depending on whether $\aleph_\alpha \leq 2^{\aleph_0}$ or vice-versa. The assumption I am making is that $2^{\aleph_0}=\aleph_1$, which as I understand it is basically equivalent to the continuum hypothesis, as we are saying that the least uncountable number is $\aleph_1$ (but by the previous theorem requiring the axiom of choice this seems reasonable?). So anyway assuming I can do that, we again have a contradiction since then we are saying $|\mathbb{R}^\mathbb{R}|=2^{\aleph_0}<2^{2^{\aleph_0}}$ or $|\mathbb{R}^\mathbb{R}|=\aleph_\alpha < 2^{2^{\aleph_0}}$.  My main problem with my proof is that I am not making use of the result given in exercise 2.5 as suggested in the hint. Can anyone help with a proof making use of this result (stated in the second block quote above).


I'm having troubles with proving that P(N) is equivalent to R, or with other words, that de cardinality is the same. Can someone help me please? Thank you!

I have learnt that the cardinality of the power set of the natural numbers is equal to the cardinality of the real numbers. What is the function that gives the one-to-one correspondence between these two sets?  I have also learnt that there exists no set whose cardinality is strictly between the natural numbers and the real numbers. Is there a proof of this or at least some intuitiveness behind it?


I have a similar problem to   My problem differs, however, since I have already followed the instructions to set up my MQWest modem for port forwarding. I also do not need Hamachi, since I'm already on the same LAN network as my brother. I've already tried everything suggested, before, but nothing works.   My main question is how do I check if Terraria can access data from the forwarded port, but I also want to know if there is anything else I could try. Any help would be appreciated, thanks!  Random info, in case if any of it can help solve my problem.  Router IP: 192.168.0.1   Port Number: 7777  Modem Brand: MyQwest  Computer: Shuttle desktop, with Windows XP  Btother's Computer: Dell laptop, with Windows 10  We are both using bandwith, connected to the same router.

I am new to Terraria, and I want to play with my friend. But for some reason, it says 'connecting' for a very long time. I have his IP, and his port, but it will not work.


What do you call someone who is constantly negative, cynical about the world around him and can't help but nitpick and find a way to insult everyone around him?

What is the person called who always thinks negative? E.g.        Mr. X always thinks negative.   Mr. X has negative attitude.      What we can use either? Is there any particular word for this?


There has been a lot of discussion on interaction terms on this site but I'm looking at a specific situation:  I have 3 groups and a continuous independent variable X;Group1, Group2 are represented by indicators G1 and G2 and Group 3 is the baseline group. The regression   Y = m + b1X + b2(X*G1) + b3(X*G2)    shows the interaction terms alone to be significant and that the main effect X is not. The trouble is I think that this has something to do with the way the underlying data were grouped into the 3 groups (different customer segments; X can be something like Unemployment rate). While there is strong reason to expect that X influences groups 1 and 2, for business reasons it is not possible to change the way the customer segmentation is done. But it is very important to capture the effect of X on G1 and G2 ( we need the slopes b2 and b3 for further analysis). In this situation, is it okay to drop the main effect X from the model? Edit : according to some of the discussion below,   ...they say it's ok to drop the main effect sometimes...just want to clarify if it's okay in the situation I have described. Thanks for any advice!

Is it ever valid to include a two-way interaction in a model without including the main effects?  What if your hypothesis is only about the interaction, do you still need to include the main effects?


I am dynamically creating an onclick event for html elements that are also created dynamically. I can make the elements just fine, but when I click on a specific one, it always runs the onclick for whatever the last element created was.  var parentNode = document.getElementById('mpacks'); parentNode.innerHTML = ''; for (var i = 0, size = listOfItems.length; i < size; i++){         var listNode = document.createElement('LI');         var tmp = document.createElement('a');         tmp.id = listOfItems[i];         tmp.innerText = listOfItems[i];         listNode.appendChild(tmp);         parentNode.appendChild(listNode);         tmp.onclick = function() {insertParam(listOfItems[i])}; }   For example: If I have the list [link1, link2, link3], I render them fine and they all show up on my page. When I click link 1, I would like that to be passed into the onclick function as shown... insertParam("link1"). Instead, when I click on link1, it passes in insertParam("link3") for some reason.

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


When I catch a higher level Pokemon it normally takes a few poke balls but at least half of the time I get this where it won't catch or escape and it just sits there and load what should I do

Sometimes when attempting to capture a Pokémon, the mon will be wiggling in the ball and the app will disconnect from servers (for mobile connection reasons or whatever), and I'll be left staring at a ball containing Schrodinger's Pokémon. I'll sigh at the loss (or in the case of a 500CP Pinsir, scream in agony), and reload the game.  I thought maybe encounters in general couldn't handle disconnecting well, but sometimes immediately after a Pokémon broke free of a ball, the little icon in the upper left would appear, the game would stall for a bit, but it would recover.   Is there anything I can do to avoid this? Should I be waiting it out, instead of reloading?  (and before anyone says it, yes I have filed a bug report)


I'm pretty good with complex numbers though I can't figure out how to prove the same.   I experimented with the argand plane a bit yet couldn't come to a solution.   Source: Hasse and Harris IBDP: Application and Interpretation HL

If z and w are complex numbers such that $|z+w|$ = $|z-w|$, prove that $\arg(z)-\arg(w)= \pm\pi/2$.   Can this be solved algebraically or would a graphic interpretation be better. Both methods would be grateful.


I would like to know a certain number of episodes before attending each movie. I have seen similar questions, but they do not answer my question.

I know that the Naruto movies are outside the timeline in the sense that they don't affect whatever happens after them. However, they must fall somewhere in the Naruto timeline — based on who are in the movies and how the characters look like, etc. For example, if Sasuke isn't in the movie, it should take place after he left. For each of the movies, approximately what timeframe (between episodes/arcs) are they set?  The movies:   Ninja Clash in the Land of Snow Legend of the Stone of Gelel Guardians of the Crescent Moon Kingdom Naruto Shippuden the Movie Bonds The Will of Fire The Lost Tower Blood Prison Road to Ninja The Last - Naruto the Movie Boruto: Naruto The Movie


Been driving myself and a group of friends absolutely crazy.

Based on , someone posted a link to pic of the larger collage of ships the question was based on.    What is the ID of all these ships? Some are quite easy of course, like the Millennium Falcon, USS Enterprise and the TARDIS. But I'm not sure of all of them.   Can someone put numbers on the ships to make the identification easier?


Please show how to prove that $$\lim_{n\to\infty} n\left(\frac{1}{2}\right)^n = 0$$

In other words, how to prove:  For all real constants $a$ and $b$ such that $a > 1$, $$\lim_{n\to\infty}\frac{n^b}{a^n} = 0$$  I know the definition of limit but I feel that it's not enough to prove this theorem.


Many of them, including me, have similar thoughts about that.   Many Koreans including myself weren't concerned about them at all.      I'm studying English and wondering how different they are. Could you guys let me know?

I'm confused by why people use the following:     It's up to yourself.   Rather than:     It's up to you.   Another example of this would be:     Please feel free to contact ourselves if you have any problems.   Rather than:     Please feel free to contact us if you have any problems.   Are both of these correct?  Is there any reason for using the former?


The answer that sparked the question is  where the answerer provided a completely wrong answer to the question and was consequently heavily downvoted. However, the answer seems to have appealed to the OP's preconceived notions so it was accepted. Of course, the system is designed to allow the asker to choose an answer that was helpful to them; however, it's well accepted that the most important posts are those that are helpful to the far more numerous readers who come across the question from Google or somewhere else rather than the original asker. They should be shown the answer that the community deems best. In this case there's a perfectly good answer with a score of +5. That's what readers should see first. Not the post that the OP decided (against the judgement of everybody else) was best.

Similar to  but narrower, I'm suggesting we make a particular exception for downvoted accepted answers (those with score less than zero, or some other threshold like -3), so that they stay in the normal sort order and don't jump to the top.  The accepted answer  on bh.se is -5 at time of writing, above an answer with +8 (which is quite a good score on our little site!). It also doesn't help things that the accepted answer is about a mile long so it takes a lot of scrolling to get past it:


Windhelm has had more Vampire Attacks than Whiterun which i have been in the most and i thinkl they're messing up the game as when i arrived to do the quest about "The Butcher", after killing the vampires i went to where the dead body was about however only 3 people where there and no guard came running up to me, one of the casualties of the Vampire Attack was a Windhelm Guard.  Given that i am also roleplaying in the game and have joined the Stormcloaks these attacks on Ulfric's City are unforgivable  so i am wondering, if i complete the Dawnguard quest line will these vampire attacks stop?

Do the random vampire attacks end when you finish the main Dawnguard quest on the Vampire Hunters (Dawnguard) side?


How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


Basically what the title says. If $|G|=27$ for example, how would one prove that $N$ is normal in $G$ if $|N|=9$

Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal.


I´m working on thesis aimed at investigating of possible routes and paths between Mayans cities in Guatemala. My thesis should help archaeologist to locate and reveal old paths in jungle and speed up all works in field with some scientific background.  I will use 30m DEM and anisotropic LCP approach with Tobler´s hiking equation. Problem:  I need to create multi criteria cost surface like here:   I don´t know how to create cost raster with correct parameters. I mean I don´t know how to reclassify slope and add costs to it. I tried to use slope   how it was created (just derived from DEM using "Slope" function reclassify slope from 1. and, of course, results are different.   I can´t find correct range for intervals and its costs. I need the same, exact range like 0-5° (cost 1), 5-8° (cost 2),... based on scientific data.  And is this correct way of solving LCP problem?   Should I create multi criteria cost surface and use it as "in_cost_raster" and Tobler equation as vertical factor in Path Distance Tool or use slope (without reclassification) as "in_cost_raster", calculate Path Distance and then add cost of Land use?

I am working on least cost paths for an archaeological project and I am trying to implement Tobler’s hiking function on ArcGIS 10.3.1 for Desktop.  I am using SRTM 1 arc second  global downloaded on earth explorer.   My DEM characteristics are: GRID format, 16 bit signed integer, band 1, WGS 84 UTM zone 37N (Syria and Lebanon). I am working on a large zone, as I am trying to caclculate the least cost past between two cities around 200 km away from each other.     I am using Path Distance. My inputs are: feature source data: shp (point indicating the city); cost surface: slope in percent rise reclassified 8 classes; surface raster: my SRTM DEM. Vertical factors parameters: input vertical raster: my SRTM DEM; vertical factor: Tobler's table (this table ).  The least cost path I obtain using Tobler’s function coincides with the least cost path I obtain just using the slope as cost surface (i.e. slope in percent rise reclassified 8 classes and then I use cost distance and cost path to obtain a least cost path) without implementing Tobler’s function.   I have tried to produce a least cost path following  (i.e. without a cost raster) but I only get fairly evenly spaced lines that look like a spider web. I tried all the solutions I could find in different posts on gistackexchange or geonet (i.e. tried to use “same as display”, or change the DEM to 32 bit floating point, or convert my input point to a raster, or changed the maximum number of unique values to render in ArcMap options) but I invariably gets the spider web if I do not use a cost surface or if I use a cost surface with all values set to 1.    I tried to change the values in the table, just using random values in the negative slope and again I get the same least cost path that I get using only the slope or with the original Tobler's table.  There’s clearly a problem with the table because – as far as I can understand – the PathDistance does not take into account Tobler's table (the vertical factor) at all during the process.   Could it be a problem with the format of the table as described in  (see second answer)?   I do not have ArcGIS Pro so I cannot try to use it.   How can I try to change the table so PathDistance takes it into account?  Or how can I try to implement it using the command line in ArcGIS 10.3.1?   Please note that I am not very familiar with command lines and Python.


Problem_     Find the value of $$\sum_{n=1}^\infty\frac{n^2}{(n+1)(n+2)(n+3)(n+4)}$$   It seems like I have to use the partial sum in order to get the exact value. But making it into the partial fractions was not that easy to me because of the numerator.  I tried to segregate the fraction by putting $A, B, C$ and $D$ as: $$\frac{n^2}{(n+1)(n+2)(n+3)(n+4)}={A\over n+1}+{B\over n+2}+{C\over n+3}+{D\over n+4}$$ By multiplying both hands with $(n+1)(n+2)(n+3)(n+4)$, I could get the values which are $A=1/6, B=-2, C=9/2$ and $D=-8/3$. Unfortunately, there were no significant properties among them.   I've also thought of dividing the numerator into two or more terms such as $$n^2=n(n+1) - n$$ However, this method also did not give me any hint to solve. Are there other ways to evaluate the series looks like that? Thank you for your interest.

$$\sum_{n=1}^{\infty}\frac{n^{2}}{\left(n+1\right)\left(n+2\right)\left(n+3\right)\left(n+4\right)}$$   MY Approach$\sum_{n=1}^{\infty}$$\frac{n^{2}}{\left(n+1\right)\left(n+2\right)\left(n+3\right)\left(n+4\right)}$ = Lim$_{k\rightarrow\infty}$$\sum_{k=1}^{n}\frac{k^{2}}{\left(k+1\right)\left(k+2\right)\left(k+3\right)\left(k+4\right)}$  $\frac{k^{2}}{\left(k+1\right)\left(k+2\right)\left(k+3\right)\left(k+4\right)}$= $\frac{1}{6\left(n+1\right)}$-$\frac{2}{\left(n+2\right)}$+$\frac{9}{\left(n+3\right)2}$-$\frac{8}{\left(n+4\right)3}$  I don't think i can telescope it, And i don't know any other method


Red exclamation point in triangl up there is scareing me when i click on it this shows up:     The update information is outdated.This   may be caused by network problems or by a    repository that is no longer available. Please   update manually by clicking this and   then selecting 'check for updates' and check   if some of the listed repositories fail.   So I do that and once its done checking this comes up:     Failed to download repository information      Check your Internet connection.           W:Failed to fetch htp://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/source/Sources  404  Not Found     , W:Failed to fetch htp://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found     , W:Failed to fetch htp://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found     , E:Some index files failed to download. They have been ignored, or old ones used instead.      I yook out one of the t's in HTTP because the 10rep thing

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


As part of , I posted a stack snippet that uses jQuery and ran into a problem. Take for example the following snippet:  !-- begin snippet: js hide: false -->        $(function() {       alert($('body').length);     });              The initial portion, starting with the first dollar sign and ending with the second dollar sign, seems to have been replaced with a GUID, like this:    I worked around the issue by adding a //$$ line at the beginning of the JavaScript snippet.  Interestingly, the snippet works fine until I save my answer, and I , until I tried indenting the snippet's Markdown code as a code block (to post it here) and got the following even before saving:
7167001d-945a-95b7-7930-180c7f7ee9f5
   And yet after saving, a snippet inside a code block!        $(function() {       alert($('body').length);     });           Why is this happening? It seems like a bug in the parser. Can it be fixed?

So, in one of my recent Code Review questions, I have a function $$ and posting it (even inside the code block) causes the following issue.  So you can see that my code looks like the following:    but then in the post:    All the space between the two dollar dollar blocks is seemingly replaced with a series of numbers, a key perhaps. (I blurred it out, just in case)


Location is India, It has 4-5 lobed leaves with flowers & pointy seed pods.    I am thinking it is Wild raddish.

I found this plant near my South Indian home in , India. Most probably it could be some sort of weed. Anyhoo, is this plant of any medical or commercial value? Is it a remedy for something?   It has a white tap root with little veins off the main root It has a really small yellow flower It's leaves are similar to that of a clover, except for that it has three to five leaves        Merci d'avance!  (P.S. Forgive me if this is some very common plant that I should know about, I'm in 7th grade.)


Show that if $f:\{z : |z| < 1\} \to \mathbb{C}$ is analytic, bounded, and for some $0<a<b<2 \pi$ $$\lim_{r \to 1^-} \sup_{a \leq \theta \leq b} |f(re^{i\theta})| = 0 , $$ then $f=0.$ I tried to use Maximum modulus theorem of Liouville theorem, but we do not know whether $f$ is analytic on unit circle.

Here is the question: Let $f:\mathbb{D}\rightarrow\mathbb{C}$ be an analytic function.  Suppose that there exists $\epsilon>0$ such that for every $\theta$, $|\theta|<\epsilon$, and $\lim_{z\rightarrow e^{i\theta}}f(z)=0$.  Prove that $f$ is identically $0$ on $\mathbb{D}$. My thoughts:  Well, honestly, I am quite stumped here.  I was thinking I could let $f$ be analytic in some other region (can I even do this?), say the lower half plane and suppose $\lim_{z\rightarrow x}f(z)=0$ whenever $-1\leq x\leq1$, by assumption.  Maybe then I could show that $f$ is identically $0$ on the bigger region, and then consider $f$ on the intersection of those two regions, and then ultimately making my way towards using the uniqueness theorem to show what I want... but I am quite stuck on how to do that... any thoughts, suggestions, etc. are greatly appreciated!  Thank you.


How to calculate $\gcd$ of $5^{2^{303} - 1} - 1$ and $5^{2^{309} - 1} - 1$?  I stumbled upon this interesting problem and tried elementary algebraic simplification and manipulation. But found no success.


In my Re-Tail shop, there is a blue alpaca who appears to be Reese's fiance. When I try to wake him up, Reese says that he is tired from working all night on something. How do I wake him up and what is he for?

Reese's boyfriend seems to constantly be asleep. When I try and talk to him, she warns me that he's been hard at work all night, but I can't actually enter the shop at night.   Is there any way to talk to him or any benefit for doing so? I've tried to talk to him daily for a week (thinking it was something akin to talking to Sable) but I've had no luck. Trying to come in after-hours doesn't work.


I'm trying to build functionality in Salesforce to allow a payload POST which would create multiple SObjects and ContentVersions (Images/PDFs mostly).  I've built out a custom endpoint to handle the creation/linking of the SObjects but I realized Apex REST does not support multipart/form-data requests. One option I thought of is to send all SObject info via my custom POST endpoint and create a custom Document record (all Files are linked to a custom Document record that has metadata pertaining to the File itself) that contains an external ID, then send a separate POST to /services/data/v50.0/sobjects/ContentVersion for the actual files and link up the newly created File to the Document using the External IDs.  Does ContentVersion allow custom fields/have a field for External ID? Is there a better/easier way to handle this?

In order to create record in bulk using REST API, we using Composite Tree resource.  I'm trying to upload a bulk of content versions :   {"records" :[  {   "attributes" : {"type" : "ContentVersion", "referenceId" : "ref1"},   "VersionData":"/9j/4AAQSkZJRgABAQEAYABADn/2Q==",   "PathOnClient":"Array1.jpg",   "Description":"Array1"  },   {   "attributes" : {"type" : "ContentVersion", "referenceId" : "ref2"},   "VersionData":"/9j/4AAQSkZJRgh25==",   "PathOnClient":"Array2.jpg",   "Description":"ARRAy2"  } ] }   Using endpoint: .  My questions are:   The Response when everything handled fine is :      {     "hasErrors": false,     "results": [         {             "referenceId": "ref1",             "id": "0680Q0000006OSwQAM"         },         {             "referenceId": "ref2",             "id": "0680Q0000006OSxQAM"         }     ] }    But in Case we have one error on one of the files - I'm getting the next response:  "results": [         {             "referenceId": "ref2",             "errors": [                 {                     "statusCode": "SOME ERROR",                     "message": "SOME ERROR",                     "fields": [                         "SOME FIELD THAT GET THE ERROR"                     ]                 } ]   BUT what happened to the other files that actually succeeded?  If there is one error on one of the files, Does it make it all fail? Even if they were succeeded?  If it does, Is there another method that I can upload a bulk of Content Version using REST API?  2.What about the size limit of Content Version in MB that I can upload with this approach? What is the max size that this API can handle with? I made a test and I succeed to upload files with a sum of 16 MB via this API - But I couldn't create a blob version more than this - It just caused my computer to stop working


This is a modification of a problem in Rudin.  Let $(a_n)$ be a sequence of positive numbers (that is $a_n \geq 0)$. Then $\sum a_n$ converges iff $\sum \frac{a_n}{1+a_n}$ converges.  My attempt:  $\Rightarrow$ $$\frac{a_n}{1+a_n} \leq a_n$$ and this follows from comparison test.  $\Leftarrow$  Since $$a_n = \frac{a_n}{1+a_n} (1+a_n) = \frac{a_n}{1+a_n} + \frac{a_n^2}{1+a_n}$$  it suffices to show that $\sum \frac{a_n^2}{1+a_n}$ converges. For this, it suffices to show that $(a_n)$ is bounded, because then the result follows from the comparison test. Indeed, let $M$ be an upperbound. Then  $$\frac{a_n^2}{1+a_n} \leq \frac{Ma_n}{1+a_n}$$  We will prove that $a_n \to 0$, and this will prove the boundedness.  Let $\epsilon > 0$. Choose $N$ such that $\frac{a_n}{1+a_n} < \frac{\epsilon}{1+ \epsilon}$ for $n \geq N$, which is possible since $\frac{a_n}{1+a_n} \to 0$ since the series converges.  Then, $n \geq N$ implies that $a_n < \epsilon$ and the result follows.  Is this correct? Is there an easier way?

If $a_n \ge 0 $ for all n, prove that $\sum_{n=1}^\infty a_n$ converges if and only if $\sum_{n=1}^\infty {a_n\over 1+a_n}$ converges.   Here is my attempt!  => Suppose that $\epsilon \ge 0$ is given and $a_n$ converges, then  for all $N\le n \le m$$$\sum_{k=n+1}^m a_k \lt \epsilon.$$ let $b_n={a_n\over 1+a_n}$ and Notice that $b_n \lt a_n$ and   Then, applying the comparison test  $$|\sum_{k=n+1}^m b_k| \le \sum_{k=n+1}^m |b_k |\le\sum_{k=n+1}^m a_k\lt\epsilon$$Hence,${a_n\over 1+a_n}$ converges.  let me know if it is worng and I don't know how to start for the other direction. Any help is appreciated!


I'm trying to install "mh" package, using MiKTeX Package Manager, however, it failed, the log says:  Installation directory: C:\LaTeX\MiKTeX package repository: http://download.nus.edu.sg/mirror/CTAN/systems/win32/miktex/tm/packages/ lightweight database digest: 2e1ee451b3ebfd4ef4afc81bbceafc9f going to download 2154149 bytes going to install 20 file(s) (1 package(s)) downloading http://download.nus.edu.sg/mirror/CTAN/systems/win32/miktex/tm/packages/mh.tar.lzma...   Then I check the website  , actually there is no such "mh.tar.lzma" file, instead, there is a "mathtools.tar.lzma", which actually I can download.  What can I do to install the mh package?

I'm trying to compile a document that only works with an up-to-date distribution, so I'd like to know: how do I update my distribution? Please provide screenshots where appropriate.  List of answers           To keep an eye on what’s going on at CTAN you may subscribe to the  or the RSS feed feed://www.mail-archive.com/ctan-ann@dante.de/maillist.xml


I have experienced some problem by using a nested list in Python in the code shown bleow.  Basically, I have a 2D list contains all 0 values, I want to update the list value in a loop.  However, Python does not produce the result I want. Is there something that I misunderstand about range() and Python list indices?  some_list = 4 * [(4 * [0])] for i in range(3):     for j in range(3):         some_list[i+1][j+1] = 1 for i in range(4):     print(some_list[i])   The results I expected are:  [0, 0, 0, 0] [0, 1, 1, 1] [0, 1, 1, 1] [0, 1, 1, 1]   But the actual results from Python are:  [0, 1, 1, 1] [0, 1, 1, 1] [0, 1, 1, 1] [0, 1, 1, 1]   What's going on here?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


In , many users have discussed online and offline learning in machine learning. But, in the context of reinforcement learning, what are exactly online and offline learning?

What is the difference between offline and ?  Is it just a matter of learning over the entire dataset (offline) vs. learning incrementally (one instance at a time)?  What are examples of algorithms used in both?


Can anyone help me understand why is this true?  I took a couple of examples and it somehow sorts out to be true, but I don't know how to somehow prove it and generalize.  any help is appreciated :)

Prove that $Ax=0$ has infinite solutions if and only if $ \text{rank}(A)<n$   Here is one way of my if proof, but I don't know how to proof the other part.  Let $r$ be the rank of $A$. Then $ r\leq  n$. If $ r<n$, then there are $n-r$ linearly independent solutions. Furthermore any linear combination of these solutions will also be a solution of $Ax=0$. Hence, in this case, the equation $Ax=0$ has infinite number of solutions


Theorem 4.43 is Folland's Real Analysis is     Arzelà-Ascoli Theorem I. Let $X$ be a compact Hausdorff space. If $\mathscr{F}$ is an equicontinuous, pointwise bounded subset of   $C(X)$, then $\mathscr{F}$ is totally bounded in the uniform metric,   and the closure of $\mathscr{F}$ in $C(X)$ is compact.   I could not understand where the assumption that $X$ is Hausdorff is used in the proof. Is this assumption necessary?

The more general version of this theorem in Munkres' 'Topology' (p. 290 - 2nd edition) states that   Given a locally compact Hausdorff space $X$ and a metric space $(Y,d)$; a family $\mathcal F$ of continuous functions has compact closure in $\mathcal C (X,Y)$ (topology of compact convergence) if and only if it is equicontinuous under $d$ and the sets  $$ \mathcal F _a = \{f(a) | f \in \mathcal F\} \qquad a \in X$$  have compact closure in $Y$.  Now I do not see why the Hausdorff condition on $X$ should be necessary? Why include it then? Am I maybe even missing something here (and there are counterexamples)?  btw if you are looking up the proof: Hausdorffness is needed for the evaluation map $e: X \times \mathcal C(X,Y) \to Y, \, e(x,f) = f(x)$ to be continuous. But the only thing really used in the proof is the continuity of $e_a: \mathcal C(X,Y) \to Y, \, e_a(f) = f(a)$ for fixed $a \in X$.  Cheers, S.L.


If i swing a rubber ball above my head in a horizontal circle, there will be centripetal motion and force but only in X axis,what keeps the rubber ball from falling since there is only one force acting on the ball in Y axis and that is gravity, why the ball doesn't fall?

You swing a ball on the end of a lightweight string in a horizontal circle at constant speed.  Can the string ever by truly horizontal?  If not, would it slope above the horizontal or below the horizontal?  Why?


My over the range microwave that came with the home I purchased 18 months ago blew up.  I purchased a new one, however, I can not figure out for the life of me how the old one was installed as it isn't bolted to the cupboards above??  I am completely stuck and need to get this old one out so that I can install the new one.  Any suggestions on how I may be able to get the old one out and how it may be installed, if not bolted from above?

I want to uninstall a Hotpoint model RVM1335 over-the-range microwave.  I thought I'd take it easy; so, I purchased installation and cart-away.  When the Home Depot delivered the replacement, they didn't know how to uninstall the old microwave; so now, the new one sits on my living room floor.  I found the installation instructions online for the existing oven. There is a paragraph on uninstalling it; but, they assume that the microwave was attached to both the back wall and the upper cabinet [like most.]  There are no [visible] screws or bolts either to the upper cabinet or to the cabinets on each side; only a hole for the power cord.  I "inherited" this in a home purchase; so, there's no one to ask.   Has anybody seen this before?


Couldn't find an answer for this in the wiki. If the bounty I set to my question expires without any answers/replies, can I set a second bounty?

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


What is this error and how do I fix this? This is driving me nuts.  public static void NSOMUHDialog(final Context context) {   AlertDialog.Builder builder = new AlertDialog.Builder(context);   builder.setTitle("Menu");   builder.setCancelable(true);   builder.setItems(new CharSequence[]{"Announcements", "Rate us", "Get support", "How to use?", "Share download link"},       new DialogInterface.OnClickListener() {             public void onClick(DialogInterface dialog, int which) {               switch (which) {                 case 0:                   if (NSOMUHUpdateChecker.getInstance(context).isOnline()) {                      // internet is available, fetch announcements                      new NSOMUHFetchAnnouncements().execute();                   } else {                      // device is offline                      Toast.makeText(context, "not connected", Toast.LENGTH_LONG).show();                   }                   break;   ERROR:     NSOMUHMenu.this' cannot be referenced from a static context

The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:     You can either make the non static method static or make an instance of that class to use its properties.   Why? I am not asking for solutions. I would be grateful to know what is the reason behind it. The very core reason!  private java.util.List<String> someMethod(){     /* Some Code */     return someList;             }  public static void main(String[] strArgs){                // The following statement causes the error. You know why..     java.util.List<String> someList = someMethod();          }


Just got a new laptop with Windows 7 (via 8 downgrade rights) installed on it.  I reserved a Windows 10 upgrade then installed Windows 10 via the .  So I skipped doing an upgrade to Windows 10 from 7.  Now Windows 10 says it cannot be activated. When I run slmgr.vbs /ato I'm told "The activation server determined the specified product key is blocked."  Is my only recourse to install 7/8 and then upgrade from that?  Seems really convoluted.

With the new Windows 10 coming out soon as a free upgrade, I'd like to know if and how I can install the upgrade on a new HDD. I assume the files needed for Windows 10 are only for upgrading an installed copy of Windows 7 or 8 and not a standalone installer to use on an empty hard drive. Or is this assumption wrong?  I have some issues booting (an older non-working version appears in the list of OS's to choose from) and I'd like to replace my current SSD, which is too small, with a new larger capacity one, while keeping my other drives intact. The old SSD will then be removed.  If more information is needed, please let me know.


If the  is supposed to be the particle responsible for other particles having mass. How can it itself have a mass?  Is it not then a 'who came first, the chicken or the egg' situation?

If the Higgs field gives mass to particles, and the Higgs boson itself has mass, does this mean there is some kind of self-interaction?  Also, does the Higgs Boson have zero rest mass and so move at light-speed?


Please do not down vote this question. It may be stupid, but I wonder. Why is it that we cannot multiply $3.99999\cdots$ by $4$ and write $16,....$?

I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


How to take RAW images in Canon 600D ? What is the use of making RAW than jpg ? Does the quality differs or the we can edit easily ?

From a technical perspective, what exactly is RAW and how does it differ from JPG or bitmap images? I'm not asking about the pros/cons versus another format, but rather what constitutes RAW format, how is the data stored, how does it differ from JPG (other than lack of compression), and how is it different than bitmap?


#!/bin/bash  function abc() # wait for some event to happen, can be terminated by other process {     sleep 3333  }  echo "PID: $$" abc & echo "PID: $$"  I need to retrieve the pid of this function, but the echo prints the same string.  If I'm not going to put abc() out of this script, is it possible to get it's pid and terminate that function?

I want to have a shell script like this:  my-app & echo $my-app-pid   But I do not know how the get the pid of the just executed command.  I know I can just use the jobs -p my-app command to grep the pid. But if I want to execute the shell multiple times, this method will not work. Because the jobspec is ambiguous.


Just curious about this one. Don't really know where to start, any help would be appreciated thanks.

Where $\phi(n)$ is the Euler phi function, how do you find all $n$ such that $\phi(n)|n$?


I have a file like this:  4 88 101  1 22 100  6 41 151  I have 3 arrays and i want to put the first values(4, 1, 6) to my first array, the second values(88, 22, 41) to my second array etc. So how can I split each line by space??  I have already read the file but I cannot fill my arrays with these values.

I'm trying to iterate over the words of a string.  The string can be assumed to be composed of words separated by whitespace.  Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, please give precedence to elegance over efficiency in your answer.  The best solution I have right now is:  #include <iostream> #include <sstream> #include <string>  using namespace std;  int main() {     string s = "Somewhere down the road";     istringstream iss(s);      do     {         string subs;         iss >> subs;         cout << "Substring: " << subs << endl;     } while (iss); }   Is there a more elegant way to do this?


E.g. is it possible to solve the XOR problem without backpropagation. If so, what would a solution look like?

Many neural network books and tutorials spend a lot of time on the backpropagation algorithm, which is essentially a tool to compute the gradient.  Let's assume we are building a model with ~10K parameters / weights. Is it possible to run the optimization using some gradient free optimization algorithms?   I think computing the numerical gradient would be too slow, but how about other methods such as Nelder-Mead, Simulated Annealing or a Genetic Algorithm?  All the algorithms would suffer from local minima, why obsessed with gradient?


I'm running a Windows 2012 IIS 8.5 listening on port 80 to requests coming to domain www.mydomain.com, which I have set in my DNS to the server IP.  Everything works fine outside, but for whatever reason, when I request that domain from a browser inside the server, it does not respond.  I have tried telnet www.mydomain.com 80 from inside the server and it returns Connection Error. If I try telnet localhost 80 it works.  As I said, from outside the server, everything works fine, telnet connects, and the web is served without any problem.  Also, if

This is a  about Hairpin NAT (Loopback NAT).   The generic form of this question is:  We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work.   Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)?   This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.


There are several hosts such as lvh.me, localtest.me, vcap.me those always resolves to 127.0.0.1.  BUT, I used lvh.me to test OAuth2 workflow - I set the callback url on remote server to  and configured local webserver to listen 127.0.0.1:433 (with self-signed certificate) on host lvh.me and proxy the request to my local backend. It worked.  Could someone, please, explai me how does it work and why request from remote server with host name lvh.me resolves to my local machine?

I was  about Server-Side Request Forgery. In that article the attacker found that 127.0.0.1 was open to the internet. The victim then blocked 127.0.0.1, but because many other IPs and apparently also some domains are also resolved to to that, including the mysterious localtest.me, he was able to bypass a weak text-based filter.    What is so special about localtest.me? Are there others? (And how to find them?)     UPDATE   I found:   Apparently someone decided to register that domain in a funny way, for testing purposes:     Here’s how it works. The entire domain name localtest.me—and all   wildcard entries—point to 127.0.0.1. So without any changes to your   host file you can immediate start testing with a local URL.   However, I'm still not sure how you can register an external domain to a local one. This is confusing as a tracert localtest.me never even leaves the machine. How is this handled on the low level?  I then  and elsewhere:   lvh.me  vcap.me fuf.me - IPv4 and IPv6 ulh.us 127-0-0-1.org.uk ratchetlocal.com smackaho.st 42foo.com beweb.com yoogle.com ortkut.com feacebook.com   And in   on Stack Overflow.


My PC got corrupted and is showing the message: "Diagnosing Your PC", "Preparing for Automatic Repair".  I have tried to troubleshoot it by various means but to no avail.  Now I have decided to reinstall windows 10 operating system on my PC.  However, when I am trying to search for the product key of my PC using command prompt typing the command:  wmic path softwarelicensingservice get OA3xOriginalProductKey   The command prompt displays the following message:  ERROR: Description = Not found   How can I get the product key of my PC using command prompt if my PC is corrupted?  Is there any other way by which I can get access to my product key?   P.S: I don't have a Microsoft account.

I recently did a clean install of Windows 10, overwriting Ubuntu. How did Windows find out that I had activated Windows 10 before on my computer? It didn't ask me for a product key, but it is activated.


Could someone please give me a NON MATHEMATICAL (put the answer in words rather than formulas) of what exactly the difference between Big O, Big Omega, and Big Theta are? I have looked at many resources but its still very confusing. I know Big O is the upper bound, Omega is the lower bound, and Theta is within the upper and lower bounds. But what exactly does that mean?

Sometimes I see Θ(n) with the strange Θ symbol with something in the middle of it, and sometimes just O(n). Is it just laziness of typing because nobody knows how to type this symbol, or does it mean something different?


When I import an obj file from Roblox in turns grey and I have no way of changing it back how can I do it? I have tried YouTube and google but nothing comes up I need help! it might be a shortcut or something else I don't know.

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


\begin{eqnarray} \lim_{n\rightarrow +\infty }d(SAx_n,A^{2}x_n) \leq \frac{1}{3}\left[ \lim_{n\rightarrow +\infty }d(SAx_n,St)+\lim_{n\rightarrow +\infty }d(St,S^{2}x_n)  + \lim_{n\rightarrow +\infty }d(St,S^{2}x_n)\right]. \notag \end{eqnarray}

I have an equation long enough to occupy two lines. I want to break it to improve readability. How can I break it?  \begin{equation} F = \{F_{x} \in  F_{c} : (|S| > |C|) \cap  (minPixels  < |S| < maxPixels) \cap  (|S_{connected}| > |S| - \epsilon)   \} \end{equation}   I want to break it in 3 lines after \cap. But \\ or \n didn't work.


I'm the developer for a small online webstore. We've just moved a subsection of products (the bodyboarding products), off surfhq.co.uk on to bodyboardhq.co.uk to sell them there instead.  We didn't want to sell on both stores as search engines don't like duplicate pages - and domain2.co.uk has much better seo for bodyboarding - the site has been run as an active blog for sometime - we've only just added the cart.  My question is, should I be using a 301 redirect on the old product pages (sending users to the new pages on domain2.co.uk), or should I just serve up a 404 not found? Google search currently lists a lot of broken links (I've gone down the 404 route for fear that permanent redirects will result in one of our sites being penalised).  EDIT  My question is not answered  where the 301 is to the home page and the products have been deleted. My products have been moved to another domain (the 301 would be to the product on the new domain). Also I'm concerned with the SEO effect on both domains.

I am trying to figure out best-practise for moving a single page of content from one domain to another in a way that will preserve search engine ranking. I have found plenty of instructions for wholesale domain moves, but this situation is slightly different.   I have a blog, one page of which gets a lot of search traffic for a specific term. I would like to take that one page of content and move it to an entirely new domain, which I will then use to start adding new content to.  My plan so far:   register the new domain remove the single page of content from the old domain put up the single page of content on the new domain set up a 301 redirect for the URL of the page on the old domain, pointing to the new domain    Is this the right way to do it? Is there anything else I need to do in order to keep Google happy?


Why is $\mathbb{Q}$ not a countable intersection of open sets in $\mathbb{R}$?  The hint shown in the book is to recall the Baire Category Theorem: A countable intersection of open dense sets in $\mathbb{R}$ is again dense.

I'm trying to prove that the rationals are not the countable intersection of open sets, but I still can't understand why   $$\bigcap_{n \in \mathbf{N}} \left\{\left(q - \frac 1n, q + \frac 1n\right) : q \in \mathbf{Q}\right\}$$   isn't a counter-example. Any ideas? Thanks!


Let $$T be a non-zero linear functional from a normed linear space $X$ to $K$($\mathbb{R}$ or $\mathbb{C}$). Prove that $T$ maps open sets to open sets. My Attempt: Since $T$ is a non-zero linear functional it is onto. Now if I can prove that there exists a $\delta>0$ s.t. for every $y\in K$ there exists $x\in X$ with $\|x\|<\delta \|y\|$ and $Tx=y$, then we are done. But I am not getting how to do it. Thanks in advance.

In the middle of another proof (Theorem 3.4, p. 60) in his Functional Analysis book, Rudin says that  "every nonconstant linear functional on $X$ (topological vector space) is an open mapping."   Is this obvious? Could someone please show me how the proof goes?


Took a Python class a few months ago so im a little rusty lst= ["A", "B", "C", 2, 9 ]     #  0,   1,   2 , 3, 4  print(lst[0:4]) # ['A', 'B', 'C', 2]  Why does the last 9 not get included in this? Shouldn't the 0:4 index the list from zero to the last digit because the 4 on the bottom which shows the index number represents the 4th character in the list??

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


This is the code I used in Drupal 7.              <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>">                 <img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" />                This is the code I am using for Drupal 8.                        {{ logopath }}                                 If I upload the logo, it doesn't display. What should I do now?

I have a question about getting a path to an image in a Twig template. The image is not assigned to a field or something. Just a static image which is stored in "MYTHEME/image/icon/my-icon.png".  In Drupal 7 I get the path in my node.template with the following code:  <img src="<?php print base_path() . path_to_theme(); ?>/image/icons">/my-icon.png   How does it work with in Drupal 8? I tried to pass a variable in template_preprocess_node().  MYTHEME.theme:  $variables['images_path'] = \Drupal::theme()->getActiveTheme()->getPath() . '/image/';   Twig template:     It doesn't work. There is no PHP error, but the path is wrongly said to be .


I want to show:     In a PID $R$ two elements $a,b\in R$ always have a greatest common divisor. Therefore $\Bbb Z[\sqrt{-5}]$ is not a PID.   For the first part:  $I=\{ax+by:x,y\in R\}$ is an ideal, so since $R$ is a PID we have $I=(g)$ for some $g\in R$. In particular, $a=gr$ and $b=gs$ for some $r,s\in R$, which says that $g$ divides both $a$ and $b$.  If $d\in R$ is any other divisor of both $a$ and $b$, then $d$ divides any linear combination of $a$ and $b$. In particular, since $I=(g)$, $g$ is such a linear combination. This proves $d\mid g$, hence $g$ is a $\gcd$.  For the second part:  I have a hunch that $6$ and $2(1+\sqrt{-5})$ have no $\gcd$ since $6=2\cdot 3=(1+\sqrt{-5})(1-\sqrt{-5})$. How can I finish the argument?

I have to answer this question:  Prove that in the ring $\mathbb Z[\sqrt{-5}]$ there's no gcd to $6$ and $2\cdot (1+\sqrt{-5})$.  I have no clue how to do this but however I've tried to prove that their sum $$6+2\cdot (1+\sqrt{-5}) = 8+2\cdot\sqrt{-5}$$ is not in $\mathbb Z[\sqrt{-5}]$ but I was not able to do this.  How should I proceed?


I am trying to convert the display the content of the list such that only three elements print in each line, and able to write the below code using if/else, which is working as expected.. lst = ["s1","s2","s3","s4","s5","s6","s7","s8"]  cnt=0 var4=""  for i in range(len(lst)):     if (cnt%3) == 0:         var4 = var4 + "\n" + lst[i]     else:         var4 = var4 + ", " + lst[i]     cnt +=1       print(var4)  Output: s1, s2, s3 s4, s5, s6 s7, s8  Trying to find if the same result can be achieved using List Comprehension or some other efficient possible way. thanks..!!

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I know many of you are tired of book recommendation posts and questions. But I am self learning Theoretical Physics, and I am having a hard time choosing a book to learn differential equations (ODEs). I really want a good understanding of differential equations; I have been told that ODEs and PDEs are the language of physics. Anyways, if you could be so kind to give me some good recommendations, I would truly appreciate it. I thank you if you read my question and hope you have a wonderful rest of the day. PD: I new to this site, so this is essentially my first post. I was checking the h bar chatroom. I hope to one day gain the knowledge that you guys have. Truly mesmerizing community. I hope to grow in this environment.

I find differential equations in physics to be quite challenging so I'm looking for a book to help me master them.  I'm familiar with solving ordinary differential equations via seperation of variables but haven't really gone much further than that.  I was thinking about buying this:   However I'm open to recommendations on books that are specifically targeted to physics, or will help me in general to solve any differential equation.


I need to use via my laptop (windows 7 installed on it)  my office pc computer with windows xp on board.   You can say try to use teamvieawer, radmin etc.... But main trouble is that i must to use it so, that user, who works on pc is didn't disturbed by my "manipulations", so i can use same computer with own tasks on it, but user can do him work and i didn't interrupt user work: nobody can see each other actions. But with teamvieawer is so, that user stop work, and i use pc, and user see what i do. But didn't need this. How to do this in mode, in which i didn't interrupt user work? )  Windows remote desktop is good, but there are troubles with logins, and loged in users...  Also this pc is in subnetwork, so my modem-router has static ip, for example ...87 and my pc has ip 192.168.1.2 in this network, but i must connect to him, for example via **..**.87:port  Have you any ideas?

I understand that Windows can allow multiple different user logins to the same machine at the same time, either via remote desktop program such as Citrix or other means.  My question is that, does Windows allows multiple same user login to the same machine at the same time? Let's say, I have an account with the user name John, and this John gives the account name and password to his niece, and now both of them want to log into the Windows machine at the same time and do different things-- via remote login.   Is this scenario possible?


Is there an easy way in geopandas to calcuate polygon areas after an intersection analysis? I am switching from ArcGIS to open source and try to translate my code. In ArcGIS I used:  arcpy.AddGeometryAttributes_management("df1", "AREA", Area_Unit="HECTARES")

Given a GeoPandas's GeoDataFrame containing a series of polygons, I would like to get the area in km sq of each feature in my list. This is a pretty common problem, and the usual suggested solution in the past has been to use shapely and pyproj directly (e.g.  and ). Is there a way to do this in pure GeoPandas?


I'm trying to use authoryear style and remove the parentheses around the year:     Authors...2018. Title...   instead of     Authors...(2018) Title...   in the bibliography. I am, however, not able to get it to work.  e.g.  fails. biblatex-chicago also fails. I found that in newer versions, the macro has to be changed adding a *. My new MWE would be  \documentclass{article} \usepackage[style=authoryear]{biblatex} \usepackage{xpatch} \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @misc{A01,   author = {Author, A.},   year = {2001},   title = {Alpha}, } \end{filecontents}  \addbibresource{\jobname.bib} \nocite{*}  \begin{document} \printbibliography \xpatchbibmacro{date+extrayear}{% \printtext[parens]% }{%   \setunit*{\addperiod\space}%   \printtext% }{}{} \printbibliography \end{document}   which consequently fails too:    I tested pdflatex, lualatex on macOS and Windows. Packages are up to date. Can someone help?

I have a question that has been answered a few times, but does not work for me (and also not for another commenter in a previously asked question).   I want to remove the parenthesis around the yead in the bibliography with biblatex style authoryear, and ideally also add a comma and space before it. I have looked at the following questions:        I use biber 2.10 and TexLive 2017/W32Tex.  This MWE should work according to the question v2 above, but does not work for me, i.e. the output is still Author, Anne (2001a). Alpha. The output I need is Author, Anne, 2001a. Alpha.  \documentclass{article}  \usepackage[style=authoryear,dashed=false]{biblatex} \usepackage{xpatch,filecontents}  \begin{filecontents}{\jobname.bib} @misc{A01,author={Author, Anne},year={2001},title={Alpha}} @misc{A02,author={Author, Anne},year={2001},title={Beta}} \end{filecontents} \addbibresource{\jobname.bib}  \xpatchbibmacro{date+extrayear}{%   \printtext[parens]% }{%   \setunit*{\addperiod\space}%   \printtext% }{}{}   \begin{document} \nocite{*} \printbibliography \end{document}


why meta stackoverflow showing This question body does not meet our quality standards. Please make sure that it completely describes your problem - including what you have already tried - and is written using proper grammar.

While trying to ask a question, I got the error message     This question body does not meet our quality standards. Please make sure that it completely describes your problem - including what you have already tried - and is written using proper grammar.    Why am I getting this message? What can I do to get the system to accept my question? Can you be more specific? What are good resources on how to ask high-quality questions?      For more information, see  in the .


Now it is proven that that medicine is harmful to people.  Now it is proved that that medicine is harmful to people  Here, are proved and proven interchangeable? .

Searching The New York Times, I found 22,100 results for "is it proved" and, therefore, I argue that that phrase is likely correct English.  But on History Stack Exchange a user edited the following sentence, written by me, "Is it proved that the United States didn't have a third atomic bomb to drop over Japan?" transforming it into this other sentence, "Has it been proven that the United States didn't have a third atomic bomb to drop over Japan?"  The user has left this comment "... corrected minor errors with spelling and grammar."  In reference to the context where those sentences had been written, can anybody explain why the sentence I wrote is wrong and, particularly, why the proofread version is correct or more appropriate in comparison with mine?


Is a vial of Poison consumed by the first attack of such a weapon or I get the +1d4 Poison damage for each attack I do in one minute?  Poison, Basic. You can use the poison in this vial to coat one slashing or piercing weapon or up to three pieces of Ammunition. Applying the poison takes an action. A creature hit by the Poisoned weapon or Ammunition must make a DC 10 Constitution saving throw or take 1d4 poison damage. Once applied, the poison retains potency for 1 minute before drying. (PHB, p. 153)  Rule as written I would say it would last for the full minute, unless there is another part i missed where it states otherwise? Similarly, for Injury Poisons (DMG, p. 257), how long does the effect on the weapon last? (For example for Serpent Venom (Injury)).

If a fighter applies a single dose of regular poison to his sword, but he can make two attacks per round, does that mean that he can make twenty attacks (2 attacks × 10 actions/minute) with poison damage before the poison dries? Or does it only mean that he must make his attack within one minute of applying the poison, and after that single attack the poison is lost?


I'm relatively new to coding so I apologize if this question is stupid. Why is the Arraylist numbers getting affected by what is happening within the function changeParam with the parameter of Arraylist for example...  public class Test { static ArrayList<Integer> numbers = new ArrayList<>();  public static void main(String[] args) {      for(int i = 0; i <= 100; i++){          numbers.add(i);         }      changeParam(numbers);      System.out.println(numbers);     }  public static void changeParam(ArrayList<Integer> A){ A.clear(); } }   Why when numbers is printed does it come out empty?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I want to show the following:     Let $ f:[a,b]\to \mathbb{R}$ be an increasing function.If $ x_1,\ldots,x_k\in[a,b]$   are different, show that $$\displaystyle\sum_{i=1}^k o(f,x_i) < f(b) - f(a).$$    My attempt:  Since $f$ is increasing we have that:  $$f(a)<f(x_1)<f(x_2)< \ldots <f(b).$$  Therefore for each $i=1, \ldots, k$ and for all $\delta$,  $$M(f,x_i, \delta)< f(b) \quad \text{and} \quad m(f,x_i, \delta)> f(a)$$  and then in each point:  $$o(f,x_i) < f(b) - f(a).$$  The thing is that I don't know how to proceed with the sum. Can someone help me to complete this proof?

Let $f$ be an increasing function defined on $[a,b]$ and let $x_1 < x_2 < \dotsb < x_n$ be $n$ points in the interior of $[a,b]$. Show that $\sum_{k = 1}^n [f(x_k^+) - f(x_k^-)]\leq f(b^-) - f(a^+)$.   The proof I have is very wordy and sketchy. I know it would be easier if I could find a telescoping sum but I've got a road block in my mind. :/


Is it possible to use \ref for something (table) in chapter kap03 that is included in kap02 in some way? Thank you  I have a file in which are loaded other .tex files.  \include{kap02} \include{kap03} \include{kap04}

Hi I am new to the forum and fairly new to Tex, if I miss anything out please let me know and I will be glad to post it. I am writing up my PhD thesis using Texmaker on a windows system. I have my document organised with a main file and a sub-directory containing chapter 1 to 5. I want to be able to use the labels I created in chapter two for example in the appendix and vice versa. Is there an easy way to do this?   I have tried following the advice of various posts of including the commands \usepackage{xr} and \externaldocument{Chapters/Chapter_2} in the individual chapters but this leads to an error when compiling.   My Preamble is as follows:  \documentclass[12pt,hidelinks,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[greek,spanish,english]{babel} \usepackage{textgreek} \usepackage[version=3]{mhchem} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage{amsmath, amsfonts, pifont, float, color, url} \usepackage[pdftex]{graphicx} \usepackage[style=numeric,backend=biber,sorting=none]{biblatex} \addbibresource{references.bib} \usepackage[pdftex, plainpages=false, pdfpagelabels, bookmarks=true]{hyperref} \usepackage{fancyhdr} \usepackage[center,font={it,small}]{caption}   I then have a section such as this in the main document:  \begin{document} %%... Title page ... \chapter{Theory and Methods} \label{chap:Theory and Methods} \include{Chapters/chapter_2} %%... Other chapters .... \end{document}   In Chapter 2 I have for example a label for a diagram which I may want to reference in other chapters:  \begin{figure}[H] \centering \includegraphics[height=10cm,width=\textwidth]{RF_colour_hi_res.pdf} \caption{Random Forest} \label{fig:2.1 Random Forest} \end{figure}   How can I have this label show up in other chapters after I type \ref ?  Many thanks in advance.  If any other information is required please let me know.   This has been answered in the comments although the references do not appear in the auto complete if they are copied and pasted in they still work.


I am a junior lecturer in first-year maths at a tropical university. At the end of the semester, many students come to my office to ask questions about the subject's materials.  There is one young man in particular who jogs to uni, and arrives at my office shirtless and reeking of sweat. This is somewhat unpleasant for me. I've even taken to leaving a towel over the back of the seat that he uses so that I can replace it after he leaves.   Is there anything I can say to dissuade him from this practice? He appears to be quite oblivious of the discomfort that he causes in others. However, he does not appear to be breaching the .  (for what it's worth, I'm a 28-year-old unmarried female)

[because this is potentially relevant, I'm a 37 y/o male]  Being the end of the semester, I've had a bunch of students come to my office hours to ask questions about things I'm responsible for. Among them, there have been a small number of female undergrads that have shown up wearing the kind of clothing that I think is inappropriate for a meeting with a faculty member. I'm not a prude (I hope), but I feel there is something amiss when a 20 y/o undergrad wants to discuss course validation from a neighboring university and then she goes and sits in front of me wearing booty shorts and a very see-through t-shirt (or a tanktop so skimpy that half her bra shows no matter what, or... take your pick). Before someone says anything to the effect, yes, it's summer, but it is not that warm (we're having a nice 20-25 C average these days).  In short, how can I tell these women, politely, that they should think twice about showing up half naked to meetings with faculty members?  Note that I'm not implying that I'm feeling sexually harassed or anything along those lines. Without getting into details, I'm old enough and happily married enough that I don't find college girls sexually appealing anymore. What I'm looking for is a way of telling them meetings with people higher up in the hierarchy have implicit standards, including some pertinent to what you may and may not wear that doesn't sound like a crude rephrasing of oh please why don't you cover up you filthy [censored].


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

Postgres 10 gains the ability to use  collations rather than depending on host OS implementations. See  by Peter Eisentraut. So how exactly does one specify an ICU collation when creating the database? I did read a tip in the CREATE DATABASE to use template0 rather than template1 if template1 might have been created using encoding and collation other than what you want for your new database. And when using template0, you need to enable data connections to override the default. And I read in Postgres 10 doc page for  that:  und-x-icu (for “undefined”) ICU “root” collation. Use this to get a reasonable language-agnostic sort order.  So it seems und-x-icu might be a good value to use when establishing a new database that will include multi-lingual text. When a certain language is known to focus on a particular language, the SELECT command can specify another collation such as German de-x-icu. Otherwise, fallback to the default of und-x-icu. So I tried the following SQL to create a database in Postgres 10 Beta 2. CREATE DATABASE timepiece_ TEMPLATE 'template0' ALLOW_CONNECTIONS TRUE CONNECTION LIMIT -1 ENCODING 'UTF8' LC_COLLATE 'und-x-icu' LC_CTYPE 'und-x-icu' ;  Fails with an error:  [42809] ERROR: invalid locale name: "und-x-icu"  So I stuck on an appended .utf8 as seen in the doc for the old-fashioned collation syntax. CREATE DATABASE timepiece_ TEMPLATE 'template0' ALLOW_CONNECTIONS TRUE CONNECTION LIMIT -1 ENCODING 'UTF8' LC_COLLATE 'und-x-icu.utf8' LC_CTYPE 'und-x-icu.utf8' ;  Fails just the same:  [42809] ERROR: invalid locale name: "und-x-icu.utf8"  Was my Postgres cluster built with ICU libraries? Here is the result of calling . The last line is 'ICU_LIBS=-L/opt/local/Current/lib -licuuc -licudata -licui18n'. I guess that means my build includes the ICU libraries but I am not sure.  /Library/PostgreSQL/10Beta2/bin/pg_config --configure '--with-icu' '--prefix=/mnt/hgfs/pginstaller.pune/server/staging_cache/osx' '--with-ldap' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--enable-thread-safety' '--with-libxml' '--with-uuid=e2fs' '--with-includes=/opt/local/Current/include/libxml2:/opt/local/Current/include:/opt/local/Current/include/security' '--docdir=/mnt/hgfs/pginstaller.pune/server/staging_cache/osx/doc/postgresql' '--with-libxslt' '--with-libedit-preferred' '--with-gssapi' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -arch i386 -arch x86_64 -O2' 'LDFLAGS=-L/opt/local/Current/lib' 'ICU_CFLAGS=-I/opt/local/Current/include' 'ICU_LIBS=-L/opt/local/Current/lib -licuuc -licudata -licui18n'  ➠ How does one specify the ENCODING, LC_COLLATE, and LC_TYPE to use the new ICU collations? ➠ What ICU collation names you would suggest for English-oriented databases? For Western European multi-lingual databases? ➠ What are the possible ICU collation names?


I would like to number equations (in increasing order using positive integers) so that the number appears in parenthses (n) in the right margin. Currently, my equation numbers appear in the left margin and the number corresponding to the nth equation in section m is (m.n). How can I edit the numbers and the location?   MWE  \documentclass[english]{amsart} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsthm} \usepackage{setspace}  \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section} \numberwithin{figure}{section}  \makeatother  \usepackage{babel} \begin{document}  \section{\textbf{Introduction.}}  \begin{doublespace} \begin{equation} A=B \end{equation} \end{doublespace}  \end{document}

I am new to TeX and am using  to write a maths paper. When I put the followng code, the equation number is automatically displayed on the left, instead of in the right as is usually done. What is the problem and how do I fix it?  \documentclass[12pt,oneside]{amsart} \usepackage{amssymb} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} Let us consider a spherical symmetric metric in curvature coordinates: \begin{equation}  \label{metric} ds^2=-e^\lambda dr^2-r^2(d\theta^2+\sin^2\theta d\phi^2)+e^\nu dt^2 \end{equation} \end{document}   The output I get is


Maybe this is the wrong forum for this question, in which case I apologise, but why isn't Python 3.6 in the official repositories for Ubuntu 16.04 LTS? According to  it seems like Python 3.6 is in the repos for 16.10 and onward, although it's buggy.  Is it because it's buggy and 16.04 is supposed to be stable because it's an LTS? Tutorials online (specifically  for getting started with Python on Heroku) says you need Python 3.6. Will Python 3.6 become available via official repos for 16.04 once bugs are resolved? How does this work? It's been quite a few months since the above question and answer and it's still not available in the official repos. I would think that Python updates would be important enough to get added to the official repos rather quickly?  Edit  After reading the answers to "" most of my questions have been answered but I still don't feel certain regarding:   Will Python 3.6 become available in the official 16.04 LTS repos?   If it will become available once bugs have been worked out, how long can one expect that to take?   According to the referenced question, packages are frozen and only bug fixes and security issues results in updates. Does that mean that Python 3.6 will never become available for Ubuntu 16.04 since it's frozen at 3.5?  This doesn't seem reasonable to me as 16.04 is an LTS. It can't be that users are expected to you use old - 2016 - versions of compilers and interpreters for an LTS, can it?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


I want to run command repeatedly and display their output.  Example:   I want to run ls command repeatedly and display output so-that I can see changes in directory contents.  Also facility to highlight difference in out-put and specify time-interval.  How to do that? suggest command.

How can I repeat a command every interval of time , so that it will allow  me to run commands for checking  or monitoring  directories ?   There is no need for a script, i need just a simple command to be executed in terminal.


I'm new to LaTeX and LyX in general, and my question might be an easy one.  I'm having problems in working with some of the mathematical fonts. The upper-case characters seem to work just fine, but when it comes to lower-case letters and numbers, I get either default-font letters/num1bers or random characters instead of the letters/numbers I try to print. For example:    I'm using the default settings in lyX, and haven't touched anything so far.  Help would be greatly appreciated. Thanks!  EDIT: Compiling the above document yields the following errors:   "Missing character: There is no b in font msbm10!" "Missing character: There is no a in font rsfs10!" Reiteration of the above errors where "b" and "a" are replaced by other characters.

As can be seen in above picture, there are lots of fonts or font styles that can be used in math mode.  What are all the fonts or font styles I can use in math mode, and which packages are required in order to use them?  Let's assume I'm using standard Computer Modern or Latin Modern (lmodern) fonts.  Edit: It'd be great to see examples of what the different styles look like, probably via images.    I'm not interested in a reproduction of the picture, which can be found at ; the picture is for illustration purposes only. Furthermore, this is supposed to become a one-catches-all question for questions like the beforementioned. If I actually were looking for these fonts, I wouldn't just lazily ask here but look e.g. at  , tables 3.14 and 6.4 first.)


How do I download Google Chrome on Ubuntu 17.04?  I hit download on the Google website, and in my files it shows up as a package called google-chrome-stable_current_amd64.deb  When I click on it, it brings up google-chrome-stable from Ubuntu software, and nothing happens when I hit install. (I have tried restarting my computer).  Is there another way to download it?

How do you install Google Chrome on Ubuntu?


I'm not new to photography (I have been doing it for some years) but I have been doing some HDR for the last couple of months.   I have read  and I am asking here because I am not satisfied with what I have read to date.  When I bracket my images, they tend to come out fine but only if there is little movement in the scene. HDR allows you to capture a lot of dynamic range but if certain things move then there are ghosts. I find that deghosting tools can help if only small parts of the image move but if you have a passing car or leaves blowing in the wind the image tends to be pretty ugly.  People have suggested that I use a single RAW image but it simply does not capture enough dynamic range, and I can I capture all the dynamic range in one single exposure then the scene does not contain enough contrast in the first place so HDR is of no use.  Are there better ways to make an HDR image of a scene that includes moving objects?

How do I take great HDR photos of moving objects? By moving objects, I mean cities with cars, ocean with moving water, malls with people moving by.  I tried it on moving people and had noticeable ghosting, using bracketed shots at + and - 2ev.  What's the basic technique on getting sharp looking HDR photos in areas that are moving? I'm assuming it's not bracketed shots but a single shot with exposure editing?


I will be travelling to the USA in a month (by plane) but have found one-way flights are more expensive than return. Is there a good way to deal with this? So I can book the cheapest flight possible, when and where might I look to book?

I am planning a trip to Asia and then back to Rio. The thing is that I am traveling on flexible dates, so I am thinking of buying a one way ticket to Hong Kong, and I was planning to do the same when I want to come back.  But what I noticed is that, for example, a one way ticket from Melbourne to Rio costs no less than $2700 dollars for the month of May.  When I do a search for a round-trip from Melbourne to Rio and back, I can find flights for $2200.  I know I will not be using that return to Melbourne, but I'd still prefer to save those $500.   Can there be any issue with buying a round-trip with a return that I will never use?


Let $Y_1$ and $Y_2$ be independent random variables with   $Y_1\sim N(1,3)$ and $Y_2 \sim N(2,5).$      If $W_1=Y_1+2Y_2$ and $W_2=4Y_1-Y_2$   what is the joint distribution of $W_1$ and $W_2$?   Is my procedure correct?  $E(W_1)=E(Y_1+2Y_2)=E(Y_1)+2E(Y_2)=1+2\cdot2=5$  $Var(W_1)=Var(Y_1+2Y_2)=Var(Y_1)+4 Var(Y_2)=3+4\cdot 5=23$  $f_{W_1}(w_1)=\frac{1}{\sqrt{2\pi}23}\epsilon^{\frac{-1}{2}(\frac{x-5}{23})^2}$  I can't conclude.


I have three CSV files which have the same same row count.  1.csv 1,2,3 4,5,6 7,8,9  2.csv 4 5 6  3.csv 8 9 10   After combining I want the result as   result.csv 1,2,3,4,8 4,5,6,5,9 7,8,9,6,10   So I tried with   paste 1.csv 2.csv | tr "\t" "," > intermediate.csv paste intermediate.csv 3.csv | tr "\t" "," > result.csv   But I got result like    result.csv     1,2,3, 4,8     4,5,6, 5,9     7,8,9, 6,10

Essentially, I have a csv file that contain multiple columns, called cols.csv  1,a,100 2,b,200 3,c,300 4,e,400   and I have a new csv file that has one column, called col.csv  f g h i   I want to copy the items in col.csv and append them to the end of each line in cols.csv so that, cols.csv now contains those  1,a,100,f 2,b,200,g 3,c,300,h 4,e,400,i   is that possible at all? i tried join, paste, nothing worked


I have an external disk sda on the machine and I want to create an LVM physical volume from free space of the sda. Here are the partition sizes:   Name                     Flags                   Part Type             FS Type                            [Label]                       Size (MB)  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                           Pri/Log              Free Space                                                            1.05              *         sda1                     Boot                     Primary              xfs                                                                1073.75              *         sda2                                              Primary              swap                                                               8456.77              *         sda3                                              Primary              xfs                                                              107374.19              *                                                           Pri/Log              Free Space                                                       383202.13              *   Actually, I want to create a sda4 partition as LVM Physical Volume and create the LVM volume group on that. Can someone tell how can I do that?  I should mention that the goal is to set up a Cinder node for the OpenStack. According to the documentation, it should be done using the commands:  pvcreate /dev/sdb vgcreate cinder-volumes /dev/sdb   But there is not a second disk sdb on my machine and I want to know how to do that using just the disk sda.

everyone. I need to create LV for xen guest. There is only one disk of 70G. While installing, I use the default process and not the LVM. Do I need to reinstall Ubuntu to create the LV? Is there some better method? Thanks a lot.  root@vswitch-BlackfordESB2:/home/vswitch# vgdisplay   No volume groups found root@vswitch-BlackfordESB2:/home/vswitch# vgcreate vm /dev/sda1   No physical volume label read from /dev/sda1   Can't open /dev/sda1 exclusively.  Mounted filesystem?   Unable to add physical volume '/dev/sda1' to volume group 'vm'. root@vswitch-BlackfordESB2:/home/vswitch# pvdisplay  root@vswitch-BlackfordESB2:/home/vswitch# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              60G  4.2G   53G   8% / udev                  3.6G  4.0K  3.6G   1% /dev tmpfs                 1.5G  1.1M  1.5G   1% /run none                  5.0M     0  5.0M   0% /run/lock none                  3.6G     0  3.6G   0% /run/shm


I am currently using 17.04 ubuntu now. Update manager is asking me to update to a new 17.10 version of ubuntu. And I really want to update.  My question is on updating will I loose all my softwares in the current version?

I am planning to upgrade Ubuntu 15.10 to 16.04 and I was wondering if it will erase the installed software e.g., openCV, Unity Tweak Tool etc.


I'm trying to copy some certificates onto my server using scp.  $ scp ./cert.* sshuser@192.168.0.42:/tmp/  cert.crt     100% 2386     0.1KB/s   00:18 packet_write_wait: Connection to 192.168.0.42 port 22: Broken pipe lost connection   The first file is written to the server, but not completely as the hashsum does not match with the original file.  This happens every time I try to scp these files (crt, key and p12).  Tested with Ubuntu 16.10 (OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g  1 Mar 2016) and with Windows 10 (WinSCP 5.9.4). Both fail copying the files.  It may be worth mentioning that I'm connected to an OpenVPN server, in order to reach the target server (192.168.0.42) - but that shouldn't be an issue.  Why does the pipe break and how can I successfully scp the files onto the server?  edit: This, as suggested in the comments, most likely has to do with the MTU - however, I'm not quite sure how to fix this issue yet.

I have a large number of identical fanless PCs running debian 6 (ARM). Most of these are connected via comcast and work ok. There are some that are connected to 'WiMax' modems and are having communication issues.  Specifically: if I ssh to one of these and try a command like 'ps -ax' I'll get about 3 lines back and then the session is locked up. If I let it sit, eventually it will close with a 'session closed by peer'.  What I've tried:   ssh -vvv   → no error messages  ssh <user@host> 'command' → this will sometimes return the full output of the command. Sometimes it won't connect at all.   Suggestions on other things to try?  I've found that I can execute some commands successfully: e.g. hitting return a dozen times or more is ok. cd ~ and then lf works as does df -h. I can run df many times successfully but as soon as I try something with more output (e.g. ls /etc) it locks up.  Does it make a difference that I'm trying to communicate between these two hosts using OpenVPN?


I have no idea what to do next.  I can't kill the Wall of Flesh and I have Necro Armor, Fiery Greatsword, Star Cannon, Book of Skulls, Muramusa, Molten Helmet, and Flamearang  What can I do now?

I've been having trouble defeating this monster. Even with lots of buff potions, health potions, high tier armor (Molten), and ranged weapons with plenty of ammo (Minishark), I can't seem to kill this boss.  Worse, when I get it down to about 2000 hp, even if I'm fairly far away, it'll suck me in and continually rise towards the skybox, which doesn't allow me to do anything for some reason.  How do I defeat the Wall of Flesh? What gear should I be using and what kind of potions do I need?


Let $S$ be any set. By $\mathcal{l}^{\infty}(S)$ we denote the space of all bounded functions $S\longrightarrow \mathbb{C}$ endowed with the $\sup$-norm. It can be shown that each normed space $X$ can be isometrically embedded into $\mathcal{l}^{\infty}(S)$ for some $S$. Really, if $X$ is some normed space, consider the set $S$ of all bounded linear functionals $\{T: X\longrightarrow \mathbb{C}: \|T\|=1\}$ whose norm is $1$. Now we build an embedding $F$ as follows:  $F(x): T\mapsto Tx\in \mathbb{C}$. It is easy to see that $F$ is linear, that $T(x)$ is a bounded function $S\longrightarrow\mathbb{C}$, and that $F$ respects the norm (i.e. $\|x\|=\sup\{|Tx|: T\in X^{*}\text{ and }\|T\|=1\}$).  Well, how to prove that each separable space can be isometrically embedded into $\mathcal{l}^\infty =\mathcal{l}^\infty(\mathbb{N})$? We need something the same, really?

The problem is:  Let $X$ be a separable Banach space then there is an isometric embedding from $X$ to $\ell^{\infty}$.  My efforts:  I showed that there is an isometry from $X^*$ (topological dual) to $\ell^\infty$ in the following way:  Let $(e_{i})_{i=1}^{\infty}$ be a dense sequence in $B_{X}$ then define $\Phi:X^*\rightarrow\ell^\infty$ by $\Phi(f)=(f(e_{i}))_{i=1}^\infty$.   It is clear that $\Phi$ is an isometry.  An initial idea and a secondary question  Is there any canonical isometry from $X$ to $X^*$ since $X$ is separable (or not)?


I'm using the package listings to import R scripts from file (as they are quite long and already nicely typeset). I have defined the colors (blue for keywords) and style, and added a few keywords. Issues are (see also the MWE and output):   new keywords that contain a period (e.g. write.xlsx) are not recognized and are half black (also defining them as {write.xlsx} in the preamble doesn't work); Some basic keywords of R are also used as options or arguments, and are (incorrectly) colored blue (e.g. file, append, row.names).   How can I tell listings to format as keywords only those terms that are followed by a (?  Or alternatively is it possible to exclude some basic keywords?  \documentclass{article}  \usepackage{color}                                               \definecolor{codebackgr}{rgb}{0.95,0.95,0.95}     \definecolor{codeblue}{rgb}{0,0,1}     \definecolor{codegreen}{rgb}{0,0.5,0}     \definecolor{codegray}{rgb}{0.5,0.5,0.5}     \definecolor{codered}{rgb}{0.5,0,0} \usepackage{listings}                                            \lstdefinestyle{mystyle}{                                        language=R,         backgroundcolor=\color{codebackgr},         commentstyle=\color{codegreen},             keywordstyle=\color{codeblue},         numberstyle=\tiny\color{codegray},             stringstyle=\color{codered},         basicstyle=\footnotesize,         breakatwhitespace=false,                  breaklines=true,                          captionpos=t,         numberbychapter=false,                              keepspaces=true,                          numbers=left,                             numbersep=5pt,                           showspaces=false,                         showstringspaces=false,         showtabs=false,                           tabsize=2     }     \lstset{style=mystyle}     \lstset{         morekeywords={read.xlsx, write.xlsx}     }   \begin{document} \lstinputlisting[linerange={31-40}, firstnumber=1]{Script.R}  \end{document}     Basically I just want "write.xlsx" in blue and "file", "append" and "row.names" in black.  Thanks a lot!

I would like to force the listings package to be more selective when highlighting keywords. I'm currently including C source files in my document, and while I'm happy that occurrences of the float keyword are properly highlighted, I'd like the following line to appear as  #include <float.h>  instead of the current  #include <float.h>  In a similar spirit, else is fine, but #else should be typeset instead of #else.  I tried solutions like using deletekeywords={float.}, but to no avail (unsurprisingly, according to the documentation: "(...) by default some characters are not allowed inside keywords, for example ‘-’, ‘:’, ‘.’, and so on. (...)"). Playing with deletedirectives led nowhere either.


Is it possible to capture the ion radiation from a nuclear source and make electricity from it? I always thought it was possible, but never looked into it? Is this what a beta voltaic battery does?

I wonder if it is possible to generate electric energy from the radiation of radioactive materials like nuclear waste? If it is then wouldn't that also mean that it could be used as an energy source for a very long time since the radiation takes a long time to decay?


I have a graphical machine of rhel7, when i run who command , one of the outputs in 2nd column is ':0'. What does ':0' mean ?

I have 2 machine setup of rhel7 , one is in terminal mode and the other is in grahical mode , when I run 'who' command on both the machines why do I get 'tty' in 2nd column output for the machine in terminal mode and 'pts' for machine in graphical mode


i am having a problem with trying to access my windows 10 partition from ubuntu, getting the error:   Error mounting /dev/sda4 at /media/jacob/OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda4" "/media/jacob/OS"' exited with non-zero exit status 14:       Windows is hibernated, refused to mount.       Failed to mount '/dev/sda4': Operation not permitted       The NTFS partition is in an unsafe state. Please resume and shutdown       Windows fully (no hibernation or fast restarting), or mount the volume       read-only with the 'ro' mount option.   I have tried doing a "safe" shutdown many times. (shut down from start menu)

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux