How to find a basis for the intersection of two vector spaces in $\mathbb{R}^n$?

What is the general way of finding the basis for intersection of two vector spaces in $\mathbb{R}^n$?  Suppose I'm given the bases of two vector spaces U and W: $$ \mathrm{Base}(U)= \left\{ \left(1,1,0,-1\right), \left(0,1,3,1\right) \right\} $$ $$ \mathrm{Base}(W) =\left\{ \left(0,-1,-2,1\right), \left(1,2,2,-2\right) \right\} $$  I already calculated $U+W$, and the dimension is $3$ meaning the dimension of $ U \cap W $ is $1$.  The answer is supposedly obvious, one vector is the basis of $ U \cap W $ but how do I calculate it?


Setting knots in natural cubic splines in R

I have data with many correlated features, and I want to start by reducing the features with a smooth basis function, before running an LDA. I'm trying to use natural cubic splines in the splines package with the ns function.  How do I go about assigning the knots?  Here's the basic R code:  library(splines) lda.pred <- lda(y ~ ns(x, knots=5))   But I have no idea about how to chose the knots in ns.


Why am I getting NullPointerException for null object array but the object has a default constructor?

I keep getting a NullPointerException for an array of objects I created that hasn't been initialized. But my player class has a default contructor so I assumed it would be fine. Why can't I call an instance method with these objects?  My main code block:  public class Blackjack{   public static void main(String[] args){     Player[] p;     p = new Player[6];   } }   And here is my player constructor:  public class Player {      private int money;     private int bet;     private int handValue;      // Player Constructor     public Player() {         handValue = 0;         money = 100;         this.bet = 0;     } }


Is my used single-entry Schengen visa valid as a supporting document for a Turkish eVisa?

I'm egyptian holder shengen visa single type valid from 13 August till 7th sep  I would like to travel to greece from 13 August to 18 after that wants to apply for turkish e-Visa can I apply and enter Turkey as my shengen is used and single entry but will be valid but someone told me single entry means that once u went out of shengen area means expired even if its valid for one month I need yr help  Please confirm


Here is a scenario that actually happened to me...   I asked a question I got less than helpful answers  I created a bounty With hardly any time left on the bounty, someone posted an answer   Here is the problem: I didn't have time to check the answer to see if it worked before the bounty ran out.  So I propose a '24 hr. bounty extension' button. This gives the person a chance to try answers posted at the last minute.  One more thing I thought of... probably this 'bounty extension' should prevent new answers from being considered - or the process could end up repeating itself.


java.sql.Date is deprecated what should I use?

I am trying to use to insert a date to my sqlite database.  public CardHolder(String firstName, String lastName, String barcodeNb,                          Date dateOfBirth,Date expiryDate)   Where I initiated this instance in the mainActivity    CardHolder person1 =new CardHolder("John","example","123123",new                     java.sql.Date(1993,9,3),new java.sql.Date(1993,9,3));   But it shows that java.sql.Date is deprecated, what should I use instead?


Extract latest entry for each currency type from table


Assumptions needed for multiple linear regression

Are assumptions for multiple linear regression basically the same as simple linear regression? One has to check for linearity for each of the continuous predictors versus the outcome variable? If there are categorical variables, one has to check the linearity between each of the continuous predictors with the outcome variable for all levels of the categorical variables?


Until end of turn effects and Doubling Season

Alright so I'm pretty sure doubling season and like cards don't affect actions related to +X/X until end of turn or -x/X until end of turn because it doesn't physically say counters. My friend on the other thinks the opposite. For instance I have doubling season up, opponent gives me a -1/1 counter it would give my creature -2/2 due to doubling seasons wording, I give the negative counters to Quillspike to get +3/3. Here's where the difference comes in. He believes that for each negative counter given to Quillspike, Quillspike would receive +6/6 until end of turn even though they aren't worded as counters. Is this correct?


Various *sty files missing when using adjustbox

I have installed texlive-latex-extra and texlive-extra-utils packages on my Ubuntu 12.04, but when I try to \usepackage{adjustbox} the compiler asks me about packages such as adjustbox.sty, adjcalc.sty or trimclip.sty. How can I install all of them from the Ubuntu repositories.


Can I use a property defined in a script as an input to a shader network?

I have a script with a property settings group.  It defines a FloatProperty called grid_unit_size.  I'd like this property to be used as the input to a shading network.  Is there a way to do this? import bpy  class DrawShapeSettings(bpy.types.PropertyGroup):     grid_unit_size : bpy.props.FloatProperty(         name="Grid Unit Size", description="Size of a single grid unit", default = .1, min=0, soft_max = 1     )       def register():     bpy.utils.register_class(DrawShapeSettings)     bpy.types.Scene.draw_shape_props = bpy.props.PointerProperty(type=DrawShapeSettings)      def unregister():     bpy.utils.unregister_class(DrawShapeSettings)     del bpy.types.Scene.draw_shape_props


The thirty-five-year-old patient   Is that correct?  Or one of  The thirty five-year old patient    The thirty-five-year old patient    The thirty-five year-old patient    The thirty five year old patient    etc.  What's the correct way to hyphenate phrases like this?


How many 5-card poker hands are there containing at least 3 of the 4 suits? There are 52 cards in a deck and 13 cards of each suit.  Please check over my work and point me in the right direction for the last 2 parts.   The first card can be any suit (out of 4) and any card (out of 13). So 4 × 13. The second card be be any suit (now out of 3) and any card (out of 13). So 3 × 13. The third card be be any suit (now out of 2) and any card (out of 13). So 2 × 13. I don't know how to find the possibilities for the fourth and fifth card.


How can I change the color of glossary links when using glossaries along with hyperref? I just want to change glossary link colors not all links.


Unable to install AMD gpu frivers for my amd radeon r5

i've switched to ubuntu for quite a while now but still cant install amd gpu drivers i have acer laptop with amd gpu when i try to install graphics drivers i get dependencies missing with the deb pkg i try to install(this pkg i got from amd official site product support) idk maybe the drivers are outdated or not supported in the ubuntu 20.04 or something like that this is what's written in graphics tab in setting ==> AMD® Hainan / AMD® Kabini my gpu is AMD radeon R5 M335 anyone help me pls and i'm not an advanced linux user


I apologize if this is a naïve question. I'm a mathematician with, essentially, no upper-level physics knowledge.  From the little I've read, it seems that spacetime is Lorentzian. Unfortunately, the need for a metric that isn't positive-definite escapes my understanding. Could someone explain the reasoning?


How can I make my main user an administrator, just like in Windows XP?

How can I make my main user which I log into, an administrator just like in Windows XP?


Lost reputation points, when user asking the question no longer exists

Possible Duplicate:          There is a weird scenario I came across, I that know if you earn reputation and the user deletes the question the reputation remains.  However on 22nd of June, I answered a question and it was accepted. Today I found out that the question was deleted along with the user (couldn't find the user or any of his questions) and the reputation I earned is also gone.  I know this is not the expected behavior, but can I get the my reputation points back?


Clustering algorithm which is guaranteed to converge to global minimum

Well known k-means algorithm is not guaranteed to converge to global minimum. It only converges to local minimum. So my question is, what are the clustering algorithms that are guaranteed to converge globally? Thanks!


if $\gcd(a,b)=1$  is it true that, $$a^{\phi(b)}+b^{\phi(a)}=1\mod ab$$  I think the answer is yes, but I am not exactly sure about my reasoning  $a^{\phi(b)}=1\mod b$  and $b^{\phi(a)}=1\mod a$  by Euler's theorem.  The question asks if  $$ab| a^{\phi(b)}+b^{\phi(a)}-1$$  So what would a better way of seeing this be?


How to deal a specific amount of damage using commands?

I want to make a datapack where if you touch lime glass, you get damaged 2.5 hearts. I don't want the commands to work for just this specific value. Instead, I want to be able to specify the amount of damage. I can't use the instant damage effect because it's not controllable.


Can z-score transformation ever be undesirable?

I am new to the field and learned about scaling (by z score transformation) of data. While it seems a super useful and universal technique, I have learned that no technique is applicable to each and every problem.  In what cases would scaling do more harm than good?


What immigration and customs checks are performed for passengers leaving the U.S.?

In the other countries I have visited, when I leave the country, I have to go through immigration to formally leave the country. However, every time I've left the U.S., the departing process has been no different from any domestic flight, aside from needing to show my passport to the ticket and/or gate agent (i.e. no customs or immigration lines, etc.)  However, I've heard of others having dealings with ICE (the U.S. Immigrations and Customs Enforcement service) when departing the country. As an example,  on a recent question says in reference to leaving a country with a gold bar:     In the US, you would have to declare it. Last year, I got into a nasty run-in with ICE who were convinced I was exporting currency.   Specifically what I'm wondering is when and where would you make customs declarations when departing the U.S. by a scheduled passenger flight and how would ICE even know you had something declarable with you if you didn't tell them, since there's no customs baggage search or scanning that I'm aware of? Certainly there's no process like the immigration and customs process you go through to enter the country. Do whatever processes do exist differ between citizens and non-citizens?


My hats aren't showing up in chat!      My self-image next to my chatbox has my full regalia, but the gravatar next to my posted messages has a measly two hats!  It's not a cache delay because it already put on my current hat.  It is using an outdated version of my gravatar and adding my current hat to that.  Do I have too much bling for chat?


Did I interpret Wall of Fire ruling correctly?

Wall of Fire description:     You create a wall of fire on a solid surface within range. You can   make the wall up to 60 feet long, 20 feet high, and 1 foot thick, or a   ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick.   The wall is opaque and lasts for the duration. When the wall appears,   each creature within its area must make a Dexterity saving throw. On a   failed save, a creature takes 5d8 fire damage, or half as much damage   on a successful save. One side of the wall, selected by you when you   cast this spell, deals 5d8 fire damage to each creature that ends its   turn within 10 feet of that side or inside the wall. A creature takes   the same damage when it enters the wall for the first time on a turn   or ends its turn there. The other side of the wall deals no damage.   Now consider the following scenario: a wizard casts Wall of Fire against two targets T1 and T2, as the figure below shows. The side of the wall that deals damage is the inner one. Suppose that the initiative order is Wizard->T1->T2. Is the following interpretation correct?  1 - The wizard casts WoF. T1 makes a saving throw and takes damage accordingly.  2 - T1 runs away. No further damage for him.  3a - T2 does not move. At the end of its turn, he takes 5d8 fire damage  3b - T2 crosses the wall and runs away. He takes 5d8 fire damage


How to set the default float position, e.g., set it to be H?

Is there a way to set the default position option for floats?  I want all float to by default to use the option H. Then I only need to set position parameter for those floats that I do not want to use H.


Performance of a Trigger vs Stored Procedure in MySQL

A post here on DBA.StackExchange () has spawned an interesting question (at least, interesting to me) regarding performance in MySQL.  The context is that we want to insert a record in a table for each row that is updated.  Before the row is updated, we want to store off a previous value and then increment one of the columns (a "version" column).  If we do this inside a trigger, it works out nicely.  For MySQL, the triggers are , so it would be an easy solution.  Select the data currently in the table, insert it into the logging table, and the update the "version" column in the new data.  However, it's possible to move this logic to a stored procedure. If you do that, you're performing the insert, then incrementing the "version" column in the table.  The entire thing would be set based.   So, when it comes to performing this insert, would this be more performant to use the set-based stored procedure approach or a trigger based approach?  This question is for MySQL (since it has row-by-row triggers), although it could apply to other row-by-row trigger DBMSs.


Alternative to LibreOffice Base for Ubuntu

Is there a database management software for Ubuntu alternative to LibreOffice Base?  LObase works fine for a while, but occasionally the files I'm working on get corrupted and I lose all my work.


The following code gives an AssertionError in the last line. However both values are printed as 10.0833333333.  p = [0,1,2,3,4,6,2,2,4,1,2,4] cell11 = p[0:3] cell12 = p[3:6] cell21 = p[6:9] cell22 = p[9:12]  x11 = sum(cell11)/float(3) x12 = sum(cell12)/float(3) x21 = sum(cell21)/float(3) x22 = sum(cell22)/float(3) x1dot = (x11+x12)/float(2) x2dot = (x21+x22)/float(2) xdot1 = (x11+x21)/float(2) xdot2 = (x12+x22)/float(2) xdotdot = (x1dot+x2dot)/float(2) assert(xdotdot == (xdot1+xdot2)/float(2)) n=3 x11diff = ((x11-xdotdot) - (x1dot-xdotdot) - (xdot1-xdotdot))**2 x12diff = ((x12-xdotdot) - (x1dot-xdotdot) - (xdot2-xdotdot))**2 x21diff = ((x21-xdotdot) - (x2dot-xdotdot) - (xdot1-xdotdot))**2 x22diff = ((x22-xdotdot) - (x2dot-xdotdot) - (xdot2-xdotdot))**2 ssaxb = n*(x11diff+x12diff+x21diff+x22diff) print str(ssaxb) print str(10+(1/float(12))) assert(ssaxb == 10+(1/float(12)))   Are ssaxb and 10+(1/float(12)) somehow stored as slightly different values?


Is there a class that can generate a random regex string if given the pattern?

I am receiving an input string that is a Regex pattern that I need to randomly generate a string matching that pattern. I did not know if this entailed parsing through the regex string piece by piece and using a random generator for each part, or if there was a class that has this functionality out of the box.  Example:     Input string = "[0-9][A-Z]"      Possible outputs = "1A", "9B", etc..


Short story about spacesuited astronauts hurled into space after ship explodes. May have influenced the film Dark Star

If I had to guess a time frame on the era of this one, I'd guess 50's or maybe 60's. It's definitely an older era story.  The story begins with an explosion aboard a human spaceship. The decompression hurls the surviving crew out into space.  The crewmen are all wearing space suits, but not the propulsion harnesses that would allow them to fly about and perhaps save themselves in the zero-gravity environment.   As such, each man is hurtling into the void without any ability to control where he is headed.  The protagonist, who may or may not have a name in the story, keeps in contact with some of his crew mates with his suit radio for a time.  At one point, one crewman freaks out and begins screaming madly, drowning out all of the other radio traffic.  As it happens, the protagonist comes close enough to the screaming man to grab him and punch in the faceplate on his helmet.  He kills the man so the others can have some comfort in their final minutes or hours.  Near the end of the story, one of the crewmen tells everyone over a fading radio signal that he is being carried away by a meteor swarm.  IIRC, the man is happy that he'll get to die in that way.  The protagonist I believe falls into the gravity well, and then the atmosphere, of a nearby planet. He burns up in the process.     There is a scene in the final moments of the 1974 John Carpenter film Dark Star that is very similar to the story's finale, which suggests it may have been an influence. It's definitely not a printed version of the film itself, however.


Managing UX technical debt in a new application

I am an SQA working on a new Learning Management System, that will launch in the next month. I think the system is very ugly and has bad UX.   We are using JSF and Prime Faces and my team does not have a designer or usability expert. The developer is the one prototyping and developing the screens.  When I suggested modifications to improve the UX, the response was:      First we'll make it work, and we'll make it beautiful later   I think this is very problematic because we'll have other things to worry about in the future. We increase the UX , and that worries me.  My question is: How can we decrease our UX technical debt and make this system better?


“I have studied” vs. “I have been studying”

Do you agree with the explanations to this question and statements?  Judy: How long have you been in Canada? Claude: I have been studying here for more than three years. OR I have studied here for more than three years.   Depending on where the two friends meet in Canada or in another country, the question  can  imply that Claude is or is not  in Canada at the moment.  The first answer implies that Claude is still in Canada or was recently in Canada. (Maybe to suggest that he was in Canada recently it would be better to use ‘there’. I think ‘here’ suggests that the person is still in Canada.)  The second answer implies that the person is not in Canada any more. The action is complete.


Is spin an observable quantity for fundamental particles?

How we know that the spin of fundamental particles? For example spin-0, 1/2, 1,2.. What is the experimental facts about spin?


How can i prove that Q(a,b) is a Galois extension and that its Galois group is of order 6, if a is a root of the cubic that is not 1 and b is the cubic root of 2?  Can you give me a little hint for the proof only that a finite extension (the Galois extension),  i have the rest of the problem.


What will be the size in photoshop of 27x10 feet?

I want to make a banner which is having size od 27*10 so what will be the size in photoshop?


What is the command for writing out the chapter name in the memoir class?

Say I have \chapter{Test Chapter} in my document, and I want to insert the title of the chapter into some code or into the text further down the document, what is the command for inserting the previous chaptertitle? I have tried \thechapter but it only inserts the number of the chapter.  The command \thechapter is also used somewhere in my preamble, so I don't want to redefine that command, lest it'll mess up something else.  As stated, I use the memoir class.


Anyone find out what this is? Looks like A Caterpillar with a home it made from surrounding items, this was found in VA in the moutians on our home.! It went back inside its home after attempting to touch it with my phone. It's the size of an adult female pinky.🤔🤷♀🐛


Garbage Collector Java application does not free memory in POD Kubernetes

I have a problem with the Garbage Collector of my application, I am working in a GCP environment with Kubernetes and BigTable as a data source. Upon receiving loads, the application does not free up memory space and fills up until k8s restarts the POD. I use a profiler to see the behavior of the JVM and this is the result. In the "Old Gen" pool it is seen that the memory is full but it never frees the space and it fills up until restarting and starting again.  In the pool "Eden Space" it is seen that while it is filling, the space is freed and never reaches the limit.  This is the JVM configuration when creating the docker image to deploy it in k8s. java -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseCGroupMemoryLimitForHeap -XX:+AlwaysPreTouch -XX:ParallelGCThreads=5 -XX:GCTimeRatio=4 -XX:MaxGCPauseMillis=100 -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=30 -Xms512m -Xmx4608m  This same configuration is applied in another application that makes REST calls and has never had memory filling problems as in this case. Java version is 1.8 Thankful for your help. Grettings.


What is the English idiom for Russian "режет глаз" which literally translated as "hurts the eye"?

What is the English idiom for Russian "режет глаз" which literally can be translated as "hurts the eye"? In Russian, it is used when there is something, a thing, which does not fit to the whole picture and immediately attracts attention in the negative sense.


I want to know how do graph a vector field and a function in TeXStudio.  So far, I have tried:   \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset{algebraic,plotpoints=300}  \def\a{2} \def\x(#1){\a*cos(#1)^3} \def\y(#1){\a*sin(#1)^3}  \begin{document}     \begin{pspicture}[showgrid=true](-2,-2)(2,2)     \psparametricplot[linecolor=red]{0}{\psPiTwo}{\x(t)|\y(t)}     \end{pspicture} \end{document}   But I got some errors:  Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...egin{pspicture}[showgrid=true](-2,-2)(2,2) Undefined control sequence. ...t[linecolor=red]{0}{\psPiTwo}{\x(t)|\y(t)} Undefined control sequence. ...t[linecolor=red]{0}{\psPiTwo}{\x(t)|\y(t)} Undefined control sequence. ...t[linecolor=red]{0}{\psPiTwo}{\x(t)|\y(t)} Undefined control sequence. ...t[linecolor=red]{0}{\psPiTwo}{\x(t)|\y(t)}   Also, I read this question   and copy each code in a new page. All of them don't work.  Can someone tell me why and how to do in TeXStudio?  Thanks!


Bringing Alcohol back from Germany when under 21

Can my sister under age 21 bring me back alcohol to the United States from Germany when she returns? Would there be any issue? What if I met her at the gate?


Differentiable but not Absolutely continuous

Please give an example (if it exists) for a function which is differentiable everywhere but not absolutely continuous.


Agency recommended that she 'not face' charges?

An excerpt from the sub-headline of a recent article in the WSJ:     FBI Director James Comey on Tuesday explained why his agency   recommended that Hillary Clinton not face criminal charges for her   email arrangement while serving as Secretary of State.   I'm not a native English speaker but "not face" sounds wrong to me.  Why is it "not face charges" instead of "not faces charges" or "not to face charges"?  Update:  I don't consider this question a duplicate of "When should I use the subjunctive mood?". The question here asks to identify the grammatical rule. The other question asks about the usage of the grammatical rule.


How can I get straight lines on a UV map?

How can I set straight several edges in one action?  My current workflow is to select each edge, Shift+X+0, but I'm sure there is a more efficient way to do it, as with the Loop Tools -> Relax button.  I know the UV squares has the feature to grid by shape, but what I need is to get several edges on the same axis straight without affect the angle of the edges on the other axis.  Is that possible? Can you help?


Does Stack Overflow provide a public API to develop its app?

I love Stack Overflow and would like to develop a third-party Android app for it, but does the site allows us to do so and do they provide public APIs, like ?  (I am not sure if Meta Stack Overflow is the right place to ask this and feel free to migrate it.)


Why in java the substring of last index is not equal to ""?

For example   System.out.println("a".substring(1) == "");   will return false.  However, it does return an instance of Stringsuch that println will display nothing. What is it and how to detect it, then?


R-squared for linear mixed effects model

I ran linear mixed effects model in R.  model<-lmer(yld ~ rain + (1+rain|state),data=data,REML=FALSE)   Is there any way I can generate an R-squared for the model. I know we can derive R-squared for a generalised linear mixed effects model  but I am not sure about a linear mixed effect model. Can anyone point me to the right direction/webpages/code?  Thanks a lot  Unfortunately, I cannot answer a question marked as duplicate and as I'm new here I cannot comment on questions due to my low reputation. But I can edit other peoples questions???   You may want to have a look at Nakagawa & Schielzeth (2013) A general and simple method for obtaining R 2 from generalized linear mixed-effects models. Methods in Ecology and Evolution 2013, 4, 133–142. doi: 10.1111/j.2041-210x.2012.00261.x Within the supplementary information of the online article they provide such an example. However, note that I had substitute "mF@X" by "model.matrix(mF)" in order to get the code working.  Best Philipp


How is the size of the particles is determined?

What is the size of atomic and subatomic particles, like proton, neutron, photon etc? Is it defined based on some quantum characterics as de Broglie wavelength or Compton wavelength?


How many bags would need to be bought to have all the red noses?

There are 9 types of Red Noses, for comic relief this year:    Each one is sold in an opaque packet, so it is lucky dip which one you will get.  Assuming there is the same amount of each type (${1\over9}$th). On average, how many bags would need to be bought for someone to get all 9 of them?


Possessive of already possessive proper noun!

I was wondering how to write the possessive form of a proper noun that is already in a possessive form (confusing, I know...) My company's name is Tuc's Contracting. If I were to write the possessive form of that, it would be Tuc's Contracting's. My question is if I were to leave off the "Contracting's" part, how would I write the possessive form of Tuc's (which is a proper noun already in a possessive form...HELP!)  The proper noun is not “Tuc” it is “Tuc’s” so that is where I am confused… Tuc's? Tucs'? Tuc's'? The proper noun is not “Tuc” it is “Tuc’s” so that is where I am confused… None of these seem right to me...And that is why I am seeking your expertise!  Thank you :)


Understanding the Chi-squared test and the Chi-squared distribution

I am trying to understand the logic behind chi-squared test.  The Chi-squared test is $\chi ^2 = \sum \frac{(obs-exp)^2}{exp}$. $\chi ^2$ is then compared to a Chi-squared distribution to find out a p.value in order to reject or not the null hypothesis. $H_0$: the observations come from the distribution we used to created our expected values. For example, we could test if the probability of obtaining head is given by $p$ as we expect. So we flip 100 times and find $n_H$ Heads and $1-n_H$ tails. We want to compare our finding to what is expected ($100 \cdot p$). We could as well use a binomial distribution but it is not the point of the question… The question is:   Can you please explain why, under the null hypothesis, $\sum \frac{(obs-exp)^2}{exp}$ follows a chi-squared distribution?  All I know about the Chi-squared distribution is that the chi-squared distribution of degree $k$ is the sum of $k$ squared standard normal distribution.


Catalina update failled mid-way and is stuck due to lack of available disk space. Booted from network drive and deleted files but this only increases purgeable storage and not free disk space. How to turn this purgeable storage into free storage while booted from network drive.


"Allowed memory size" errors on common tasks

I get this error all the time when I'm doing common admin tasks, such as enabling modules.     PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted   How can I fix this?


Question about the Riemann-Lebesgue Lemma proof

Ok, so one of the formulations of the Riemann-Lebesgue Lemma says: $$ f\in L^1(\mathbb{R}) \implies \hat{f}(\omega)\to 0\;\mbox{ when } \;|\omega|\to\infty.$$  I get all the steps of the proof, except the one which says that if $f$ is an arbitrary integrable function, it may be approximated in the $L^1$ norm by a compactly supported smooth function $g\in L^1$. My question is: Why? How do you know that for all $\epsilon>0$, and for all arbitrary function $f\in L^1$ exists a compactly supported smooth function $g$ so that $||f-g||_{L^1}<\epsilon$? The "proof" can be found in many places, but this step can be found in Wikipedia


Any object can emit and absorb radiation and the power of emission can be represented by the  law:   $$P=A\epsilon\sigma T^4$$  In many texts the net power radiated is the difference between the power emitted and the power absorbed:  $$P_{net}=A\epsilon\sigma (T^4-T_s^4)$$  where $$T_{s}$$ is the temperature of the surroundings.  Why can the surrounding and the object share the same $\epsilon$ ?  If we try to find out the radiation emitted from the surrounding it should be $P_s=A\epsilon_s\sigma T_s^4$, and if $\epsilon_s<\epsilon$, we will get a strange result that energy radiated from the surrounding is less than the radiation absorbed by the body from the surrounding. What am I missing?


Convert the following to Cartesian (rectangular) form and provide a graph.  $$e^{i7\pi /2}$$  The problem comes after a long series of similar problems. However, the noticeable difference with this one is that it is 1.75x the value of $2\pi$. I'm supposed to understand something here, but I'm not sure what.  My guess: I would say that there is something to be learned about how there is a principle range of $theta$ values, $(\pi,\pi]$, but then after that everything is just a $+2\pi$ or $-2\pi$ multiple of the principle angle. Am I on the right track?


Moving in steps or smoothly, changing the default settings

By default when you are grabbing part of a mesh you can move it around smoothly or you can press the Ctrl key to move it in steps.  Somehow I pressed something I wasn't supposed to and now it moves in steps normally and I have to keep Ctrl pressed to move selections around smoothly, how can I return to the default settings?


Show that if $F \subset D \subset E$ then D is a field

Exercise: Let $E$ be a finite extension field of $F$, and $D$ an integral domain such that $F \subset D \subset E$. Show that $D$ is a field.  Attempt: All of the field axioms for D are inherited by the inclusion relationship and ring axioms except for the existence of multiplicative inverse. $\alpha \in D \cap F \implies \alpha^{-1} \in F \implies \alpha^{-1} \in D$, so consider $\beta \in D \backslash F$.  Since $E/F$ is finite it's also algebraic, but then $F[\beta] = F(\beta)$ and so $\beta^{-1} \in F(\beta) \subset D$.  I'm not really sure this proof is correct, but in case it is there are two things that bug me:   If we just ask $D$ to be a ring then from $D \subset E$ follows $D$ is an integral domain. We only used the fact that $E/F$ is an algebraic extension in the proof.   Thanks for your help.


We are Indian citizens who visited Cyprus this year. Entered through Larnaca and left from Ercan. Our passports were duly stamped at both ports. Now I want to apply for a visa at the French embassy. My question is this - will that Ercan stamp create a problem?


Swarmed with comments which should be answers

Whenever I ask a question on StackOverflow the exact same thing happens.  People with the right answers will comment on my question, rather than set it as an answer.  I just can't understand why they don't leave their feedback as answers, is it because there's no down-vote on comments? Or these guys are just answering so many questions so quickly that they don't care about their reputation or don't have the time to fill in a proper answer.  It ruins the format of the site in my opinion as the best answers could be muddled up in with the comments under the question.


How does Quantum Mechanics disprove determinism?

I personally believe in determinism and understand the basics of quantum mechanics, but don't see how any of it disproves that the universe is deterministic. Electrons cannot move change momentum or direction of momentum without an outside force, so its position cannot be changed without an outside force either. And if it does change, this should be predictable by the amount of energy and by the angle of the outside force. I don't think that a probability wave function shows randomness either. There should be reasons that electrons are more likely to exist at certain positions on a wave regardless of randomness.


Don't have the community bump Questions that are marked [Status-Completed] or [Status-By-Design]

There are many times where a feature is requested, or bug reported and then fixed, but no answers are posted to the question.  In this case, the community user will bump this Question even if it is no longer relevant.  See  example.  There is no reason for the community to bump this question, even though it had no answers.


Tolkien: Is there any incidence of a romance between a dwarf and a man/woman?

Following up this question about love between Dwarfes and Elves (), I wondered whether there is any incidence of a romance between a dwarf and a man/woman? The question of possible reproduction is not at the center of my question; it is more about falling in love. My own hypotheses are twofold:   just as for the case Elves/dwarfes: While man was created by Illuvatar, dwarfes were created by Aule. That would speak against them having a romantic relationship. Men and dwarfes are both bound to die eventually, making them different from elves.   Please note that this question is not about whether the relationship should be male man -- female dwarf // male-man -- male dwarf // female human -- male dwarf // female human -- female dwarf. However, if there actually IS any difference between those, I'm glad to hear!


How do I deal with 'sudoers.so must be only be writable by owner'?

Whenever I try to install or remove something using terminal it gives the following error message:  bluebird@bluebird:~$ sudo apt-get update sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins bluebird@bluebird:~$ sudo apt-get remove vlc sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins bluebird@bluebird:~$ sudo apt-get install apt-file sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins


Let $n$ be a positive integer, and let $x \ge -1$. Prove, using induction, that $$(1 + x)^n \ge 1 + nx.$$  I don't know what to do, I can't expand the left side.  I'm not familiar with induction, so can someone please provide an answer?  Thanks!


listings: how to colorize strings between angle brackets

I'd like to colorize the names of header files included in angle brackets (<>) in my C examples formatted by the listings package. In the MWE I'd like <brackets.h> to be orange too like "quotes.h". I don't want to do that manually with escapes in every listing but globally. I have tried various crude things including the use of keywordcommentsemicolon (which did not work at all because it is an undefined key although it is mentioned in the documentation... does it need to be enabled?). The most promising results were achieved by using morecomment=[s]{<}{>}. However, that would colorize everything following a <... which is not that uncommon in C ;) The solution should work independently from the documentclass, especially beamer should work, and preferably work with common listings options (i.e., not change the behavior of other formatting options such as identifierstyle.  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{xcolor} \definecolor{darkorange}{HTML}{C87B0F}  \usepackage{listings} \lstset{language=C,captionpos=b} \lstloadlanguages{C}  \lstset{%     stringstyle=\color{darkorange},     identifierstyle={\color{blue}}. }  \begin{document}  \begin{lstlisting}[gobble=4]     #include <stdlib.h>     #include "quotes.h"      int main(int argc, char **argv) {          if (argc <= 3)             return 0 > **argv;         return EXIT_SUCCESS;     } \end{lstlisting}  \end{document}


Nautlius: add mouse right-click action to compute MD5 sum

Context: 16.04  How does one mouse right-click action to compute the MD5 sum of a file?


I don't have an Ubuntu phone but am considering getting one if I can find suitable apps. Is there a link/website that mirrors the on-device app store?


Suppose $X_1, X_2,$ and $X_3$ are independent and $N(0, 1)$-distributed. Compute the moment generating function of $Y = X_1X_2 + X_1X_3 + X_2X_3$.   I know that any $X_iX_j$ with $i \not =j $ is a joint normal with variables $(x_i,x_j)$ I also know the formula of the moment generating function of a normal distribution.  Furthermore, I know that if $Y_1,…, Y_n$ are independent $N(0,1)$, that is, $Y = (Y_1,…,Y_n )´$ are $N(0,I)$ by definition, the moment generating  function of Y is given by $$e^{\frac{1}{2}\mathbf t' \mathbf t}$$   I thought about using the pdf's and the definition of a moment generating function but it proved to be a really tedious process jacked of multiple integrations.  Does anyone know how to easily solve this problem with some relatively simple lines? (Especially using the multivariate normal properties and matrices)


Do homing pigeons fly straight home or follow certain "highways"?

Homing pigeons (Columba livia) have been prized for their navigational abilities for thousands of years. They’ve served as messengers during war, as a means of long-distance communication, and as prized athletes in international races. ()   Do all homing pigeons just pick a direction, and fly "straight" home, or do they all follow certain "tunnels" or "roads" to get closer to their home area, before heading home? (similar to cars getting on a highway between two regions)  Does any information about that exist? I'd be interested to know if pigeons released in the same area (with different target locations in one common direction) tend to do follow the same paths, or if it's just a chaotic crisscross.


Measurability of a function based on the slices

If $X: \Omega_1 \times \Omega_2 \to \mathbb{R}$ is measurable then each of the slices $X_{\omega_1} : \Omega_2 \to \mathbb{R}$, $X_{\omega_1} : \Omega_2 \to \mathbb{R}$ defined by $X_{\omega_1}(\omega_2) = X(\omega_1,\omega_2)$ etc. are measurable.   I guess that the converse need not be true. Is it true that if $X_{\omega_1}$ is  $\textit{continuous}$ for all $\omega_1$ while $X_{\omega_2}$ is $\textit{measurable}$ for all $\omega_2$ (e.g. for $\Omega_1 = \Omega_2 = \mathbb{R}^d$) then $X$ is measurable?  More generally, if $X : \Omega_1 \times \Omega_2 \cdots \Omega_n \to \mathbb{R}$ and $X_{\omega_1},X_{\omega_2},\cdots,X_{\omega_{n-1}}$ are continuous and $X_{\omega_n}$ is measurable can we say that $X$ is measurable?  Thanks, Phanindra


Populate and submit “content creation” form programmatically?

I have simple database table with two fields "Title" and "URL".  Can we pull the values from database table programmatically and populate the above form with "Title" and "URL" and finally submit (save) it programmatically.


In the isosceles triangle $ABC$, $M$ is the median of $HD$ and $AH$ is perpendicular to $BC$ and $HD$ is perpendicular to $AC$. Prove that $BD$ is perpendicular to $AM$.


Beamer : process only the last slide of a frame

For a complex frame with several slides that order is alraidy correctly set, I'd like to process only last frame to tune placement details and avoid a long processing time.  \documentclass{beamer} \includeonlyframes{current} \begin{document}  \begin{frame}[label=current]  \begin{itemize}[<+->] \item  \item  \item  \item  \end{itemize}  \end{frame} \end{document}


How can you pdfjoin smartly different sized pictures?

I'm running the default pdfjoin and getting results like this:    How can you pdfjoin different sized pictures? My first idea is to add an empty page in front of all things.


Will I be able to reenter the United States from Mexico using CBX if I don't have my passport card, yet? I have dual citizenship and am leaving to Mexico soon. Will I be able to use other documentation ie id card, social, copy of citizenship, passport receipt? Pls help.


Rigorous underpinnings of infinitesimals in physics

Just as background, I should say I am a mathematics grad student who is trying to learn some physics. I've been reading "The Theoretical Minimum" by Susskind and Hrabovsky and on page 134, they introduce  transformations. Here's the first example they use:  Consider a particle moving in the x,y plane under the influence of a potential, $V$, which depends only on the radius, with Lagrangian:   $L=\frac{m}{2}(\dot{x}^2+\dot{y}^2)-V(x^2+y^2)$  This is clearly invariant under rotations:  $x \rightarrow x\cos \theta + y\sin \theta$  $y \rightarrow -x\sin \theta + y\cos \theta$  All well and good. Now they say "consider what happens ... when the angle $\theta$ is replaced by an infinitesimal angle $\delta$." Already I could say "What the heck is $\delta$ really?", but I'm willing to play along with my intuition. Since $\delta$ is infinitesimal, we work to first order and say   $\cos \delta=1$ and $\sin \delta= \delta$.  Plugging this into our rotation formulas above, we obtain:  $x \rightarrow x+y\delta$  $y \rightarrow y-x\delta$  By differentiating, we see that:  $\dot{x} \rightarrow \dot{x}+\dot{y}\delta$  $\dot{y} \rightarrow \dot{y}-\dot{x}\delta$  Plugging these into the Lagrangian and ignoring terms higher than first order, we see that the Lagrangian is invariant under this transformation.  My main problem with all of this is that I don't understand what the physical nature of an infinitesimal transformation actually is. All I got from the above was that if you do this formal calculation by following rules like "only work to first order in $\delta$," then the Lagrangian is invariant. This is in contrast to the case where we have an actual transformation, like a rotation, where there is no question about what is going on physically.  I would also like to know how all of this relates to rigorous mathematics. In mathematics, I can't recall ever using infinitesimals in an argument or calculation, so it would be useful if there was some way of formulating the above in terms of limits/ derivatives/ differential forms (for example). I sense a connection to Lie Algebras, as the infinitesimal version of the rotation is $(I+A)$ where $I$ is the identity matrix and $A$ is an element of the Lie Algebra of $SO(2)$.   Here are some questions whose answers I believe may be useful to me (feel free to answer some or all):  -What is an infinitesimal quantity like $\delta$ to the physicist?   -Why do physicists argue using infinitesimals rather than "standard" calculus?  -What is the physical meaning of infinitesimal transformation? How does it relate to Lie Algebras?   -Is there a rigorous theoretical apparatus for justifying the computations shown above?  -What is meant by the Lagrangian being invariant under infinitesimal transformations?  If any of the questions seem too vague, please say so. Thanks in advance for your insights!


Helium is lighter than air, so it should fly off from Earth. Is it possible that in the future we will run out helium?


Best practices for Feed restructuring in a social app database

I have a social app, where users can post to the school they chose on registration. Each post can have a hashtag and a school (all pointers, (hashtag is optional, school is not)).  Users see posts based on school or hashtag. Now we want to introduce a new feature, Polls. Polls are another type of post... Users will be seeing them in their feed among other posts! Besides other properties, they too have a hashtag and a school.  Right now when a user asks for posts, I'm just making a query to the Post collection, comparing only the school or hashtag field (depending on the screen they're at). So if they're on the Home screen, I'm going to have something like:     find all documents in Post, where school equals <some_value>   And if they are on the Hashtag screen, we have something like:     find all documents in Post, where hashtag equals <some_value>   Since we are going to have the new Poll collection, I'm wondering what implementation would be best... Here's what I have so far:  1st implementation  We keep the posts query as is and we add another one, pretty much the same, for the polls and we combine the results. Have in mind here, that our app fetches data with pagination, so we bring the posts 20-by-20. I'm saying this because in case we have a page and the responses of the 2 queries bring 20 documents each, we'll have to compare dates to know what the response should be... eg 16 posts and 4 polls.  2nd (and last) implementation  We create a new collection, Feed, which would combine both collections and it would look like this:  Feed  post: <Pointer to Post> poll: <Pointer to Poll> creator: <Pointer to User> // we need this for block checking or if you open your profile school: <Pointer to School> hashtag: <Pointer to Hashtag>   Every time a post or poll will be created, their triggers will create a Feed document, with all the necessary values.  I believe the second solution is the best, as it is much cleaner than the first. I also think they're pretty much the same complexity-wise.  Any ideas on which one is better? If you have any other implementation to suggest, please do so!  NOTE: All collections are indexed.


Receiving null pointer exception when Converting Array of Rooms to Array of Strings

I have an Array of Room objects from the Room class that has a toString method. I want to take the Room[] and convert it to String[] using the toString method of each room object in the list. I get a null pointer exception when running. Here a snip of my code (the method eclipse states is throwing the error).  public String[] getDescriptions() {      String[] descriptionList = new String[5];     int boardNumber = 0;     for (Room current : this.board) {         descriptionList[boardNumber] = current.toString();         boardNumber++;     }     return descriptionList; }   Thank you in advance.


How did I accidentally exit edit mode and revert all of my changes?

Twice now I spent a ton of time in edit mode, and upon exiting I noticed it seemed as if my entire scene reverted to my last save. I checked, and there is not a shortcut to "revert" but somehow I am reverting changes when I exit edit mode. Is there some key-combo/shortcut that I must be doing that is causing this? Thanks!


Please could someone help with some physics about resistive forces that would slow a ball down which is rolling across a floor. I have found conflicting bits of information about the effect friction has. If the ball grips the floor am I correct in thinking that there is no kinetic friction since the surfaces do not move relative to each other? There would be static friction of course but in terms of slowing the ball down would there be no frictional loses between the floor and the ball. My reasoning is that work done against the balls motion would be the frictional force multiplied by the distance it acts across but there is no kinetic frictional and static friction cannot do any work by definition as it is static? Is that right? Some bits of information I have found said friction does oppose the motion but I don't see how it can if the ball is not slipping as its rolling?


I'm UV mapping some text  which I did in Illustrator and exported PNG 300 resolution. And I rendered it using cycles and EEVEE. Cycles render gives a more crisp image of the text, while EEVEE seems blurry. I prefer to use EEVEE, becauce my PC is old and takes a while to render. Is there a way my text can look more sharp/crisp usin EEVEE. Thank you.


Dataloader stopped working after installing Ant

I installed Ant and after this, Dataloader stopped working - when I run Dataloader then this window is popping out:  After this, about there is line "The system cannot find the path specified." which is shown by about 0.05 second. What can be the reason of that? Before installing ANT, Dataloader worked perfectly


I just need the formula for the sum of geometric series when each element in the series has the value $1/2^{j+1}$, where $j = 0, 1, 2, \ldots, n$. Please help.  Someone told me it is:  $$S = 2 - \frac{1}{2^n}$$  I am not sure if its right because he has given me no proof and I couldn't prove it when I calculate it manually. Say for example:  $$S = 1/2 + 1/4 + 1/8 = .875$$  But when using the formula given above, with $n=3$ (since there are $3$ elements):  $$S = 2 - 1/8 = 1.875$$  The answers are not the same. Please enlighten me with this issue.


Is it worth setting up a private subnet in Amazon EC2 (VPC)

Amazon details how use a public + private subnet approach in VPC ().  But, bearing in mind that    Instances don't have to have a public IP address You can configure security groups per EC2 instance if you want to   Aren't private subnets redundant?  What I mean is, let's say I create one public subnet. I install my webserves and databases on that subnet.   I then give my webservers external IP addresses (and obviously don't give the DBs EIPs).  Finally, I setup the security group of the databases to only allow incoming connections from the internal subnet, and reject all outgoing traffic.  Isn't this just as good as having the databases in a private subnet?  The whole argument about instances being "private" when they're in a private subnet seems bogus to me. Nothing in VPC subnets are really "on the internet" anyway, due to the virtualised nature of the AWS architecture. It's just whether or not you've configured it so that Amazons public gateways forward packets or not. Right?  I wonder if this is just a psychological thing to give companies a pattern they're familiar with?  Can anyone explain why the private+public model is better?  Thanks!  UPDATE: Yes, I saw the other answer before I posted this. I don't believe the person provided enough information to really get a proper answer. For example, the answers don't explain why this is any better than just using security groups.


How can I distinguish browser close and reload/refresh/f5 though jQuery/JS? I want to update database (via ajax) when close browser/tab and keep all as it is when reload.  What I am doing now is same action running when reload or close. But after reload again run a restore function (via ajax) to set back in previous state.  Tried  not worked. Any Idea? cron job is not real time. I need real time action  Professionals help please how you handle this issue.


I am trying to find the last digit of $8^{5^4}$ (or $8^{(5^4)}$, if you will) using modular exponentiation. What I know is that the value I want is:  $8^{5^4} \mod 10$.  Normally I would find a pattern that $8^{n} \mod 10$ depends upon and use that information to know how to approach the $5^{4}$ term, but $8^{n} \mod 10$ doesn't seem to have a useful pattern.  I know that the answer is $8$ (via WolframAlpha) but I don't know how to connect the dots here. Any help would be appreciated.  Thanks!


I have a webserver that has 8GB of ram and is running a pretty intensive php site (1 site) that does file manipulation, graphing, emailing, forums, you name it.  The environment is far from static which leads me to believe that very little could be gained from caching anything in ram since almost every request to the server creates new or updated pages.  And a lot of caching is done client side so we have a ton of 304 requests when it comes to images, javascript, css.  Additionally I do have language files that are written to flat files on the server where cached ram definitely is good rather than reading from disk.  But there are only a handful of files like this.  In about a two weeks I've gone from having 98% free ram to 4% free ram.  This has occurred during a time in which we also push several large svn updates onto the server.  My question is whether my server will be better tuned if I periodically clear my cache (I'm aware of Linus Torvalds' feeling about cache) using the following command:  sync; echo 3 > /proc/sys/vm/drop_caches   Or would I be better off editing the following file:  /proc/sys/vm/swappiness     If I replace the default value of 60 with 30 I should have much less swapping going on and a lot more reuse of stale cache.  It sure feels good to see all that cache freed up using the first command but I'd be lying to you if I told you this was good for the desktop environment.  But what about a web server like I've described above?  Thoughts?  EDIT: I'm aware that the system will acquire memory as it needs it from the cache memory but thanks for pointing that our for clarity.  Am I imagining things when Apache slows down when most of the server memory is stored in cache?  Is that a different issue altogether?


Walking away from my connecting flight on a domestic [US] return journey. What are the consequences?

Onward trip: PIT -> PHX -> SLC (AA) Return trip: SLC -> JFK/NYC -> PIT. (Delta) Can I just skip my NYC to PIT flight as I plan to be in NYC for the holidays? I don't care about being refunded for that component of the journey. No checked-in luggage.  How would TSA/Airlines react?  Also I am staying in the USA on a student visa (unaware how that impacts this case, but my ID proof for TSA is always my passport).


I'm running Kubuntu 17.10, and I've noticed that there doesn't appear to be any swap space available. This is a system upgrade from 17.04. I'm running an encrypted home folder, but no full disk encryption (I'm pretty sure about the full disk encryption, but I'm not 100% sure, and I'm not sure how to check if I am). How can I restore the swap system? I know that Kubunu 17.* changed how the swap system works, so I don't think previous solutions (Such as ) are applicable.  Note the swap space notification on the lower right   EDIT 0:  Output of cat /etc/fstab  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name     devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda2 during installation     UUID=4498e4cd-fef7-4d1f-843b-60054064dea9 /               ext4            errors=remount-ro 0       1 # /boot/efi was on /dev/sda1 during installation #UUID=C7BD-3586  /boot/efi       vfat    umask=0077      0       1 /swapfile                                 none            swap    sw                  0       0     #/dev/mapper/cryptswap1 none swap sw 0 0 UUID=C7BD-3586  /boot/efi       vfat    defaults        0       1`   EDIT 1: Output of ls -lah /swapfile  -rw------- 1 root root 2.0G Aug 19 15:04 /swapfile  EDIT 2: This question is distinct from () due to the nature of the swap space. On diagnostic tools, there doesn't appear to be any swap space, as seen in the lower right hand corner of the System Monitor picture. The swap space is not reluctant, it simply doesn't exist according to the system diagnostic tools. Additionally, the behavior of the swap space varies as well. The system will never put RAM to the disk, ever. As the system RAM becomes more saturated, system performance degrades, and as it hits the limit, the system seizes, and never returns. This is clearly divergent behavior from


Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference

I am trying to retrieve time of my post from Firebase timestamp to the Feed activity through an Adapter and Viewholder. But, when I launch my app, it crashes. what could be the possible reason for that. Except that everything is working fine, I mean, Image Url and EditText data are retrieving safely. How to retrieve Time and display it in my feed. In the below code, the error is thrown at first line.  long millisecond = feed_list.get(position).getTimestamp().getTime(); String dateString = DateFormat.format("MM/dd/yyyy", new Date(millisecond)).toString();                        holder.setTime(dateString);


Foreigner trading stocks through US brokerage bank

I am a foreigner currently living in the US, and I have a SSN due to my employment here. However, I will be returning to my home country next year. My question is: since I have an SSN, I am able to open a brokerage account at a US brokerage bank; then, if i return to my home country (say, permanently), but trade stocks through my US brokerage account and make a profit, what are my tax responsibilities? To which government do I pay taxes?


Plotting Population Regression Function with pgfplot

I want the make the following population regression function with pgfplot.     My attempted code is  \documentclass[border=5mm]{standalone} \usepackage{pgfplots}   \begin{document}  \begin{tikzpicture}[ % Define Normal Probability Function declare function={             normal(\m,\s)=1/(2*\s*sqrt(pi))*exp(-(x-\m)^2/(2*\s^2));         }        ] \begin{axis}[     no markers   , domain=-3.2:3.2   , samples=100   , ymin=0   , axis lines*=left   , xlabel=     , every axis y label/.style={at=(current axis.above origin),anchor=south}   , every axis x label/.style={at=(current axis.right of origin),anchor=west}   , height=5cm   , width=12cm   , xtick=\empty   , ytick=\empty   , enlargelimits=false   , clip=false   , axis on top   , grid = major   , hide x axis   , hide y axis   ]    \addplot[cyan!50!black, rotate=-45] (x, {normal(0, 1)});  \end{axis}   \end{tikzpicture}  \end{document}     Any help to get this graph will be highly appreciated. Thanks


Can't visit server on some port from other machine in the same intranet

The Service is working on the server. The server starts a service on port 9001. It's working on the localhost. Service can be visited through the browser.    The firewall is disabled.  $sudo iptables -L Chain INPUT (policy ACCEPT) target     prot opt source               destination           Chain FORWARD (policy ACCEPT) target     prot opt source               destination           Chain OUTPUT (policy ACCEPT) target     prot opt source               destination  $ sudo ufw status Status: inactive  $ service iptables status Unit iptables.service could not be found.   The network is working. Other machine can get ping result. But telnet would fail withconnection refused. And other machince also disabled their firewall.  The server it's using unbuntu 18.04 x86_64. What could be done to fix this situation?


Find out which process is responsible for starting the current one

Once upon the time there live two exe files, A and B. They were going along together just fine. B was always responsible for starting and stopping A, so B had some time on his own, but A only knew life together with B. Until one day A asked: A: Hey B, how is it like when you are alone? B: It is nice for a while, I mean, nothing special. And look who's curious today. A: I am thinking about it sometimes, but it is kinda frightening too. How do you know you are not alone in the system when you are the only one awake? B: Hahaha, off course you are not alone. We never are. There are other process in our system. You just never read about them. A: Then it is even more frightening. How do you know what they might do? I feel safe because I know you are the one starting and stopping me. What would happen if I realize that you are not running? Who started me then? B: Don't be silly. Off course it is me. Who else... A: But you can't know that for sure. What if some other process decides to start me while we are both not running. Do you know who started you, right now? B: Uhm... well... I never thought about it. I just thought there is order in the system. I never... A: I just want to feel safe. I need to know how to check if you are not running. What if some other process started me even while you are running? B: What got into you? Why are you... Wait, have you... have you talked with "Creator" again? A: I... I am not sure. Could have been a dream. B: A dream? But how can a process dream if it is not sleeping, but not even running? But A have not replied...  So, as it is obvious from this fairy-tale, question is: does a process knows which process had invoked it? I could pass a parameter when starting the process, make a wrapper to make it look nicer, but was just wondering is there something already built-in.


Code snippets for methods in Visual Studio

In Visual Studio I can type e.g.      for TAB TAB   and a code snippet pops in.   Are there built-in code snippets for private, public, etc. methods as well?


Hi am new to salesforce , how to do code coverage for this class - page reference method is written. below is the code:  public with sharing class AttachmentController {     public Attachment attachObj {get;set;}      public AttachmentController(){         attachObj = new Attachment();     }      public PageReference saveAttachment() {         attachObj.ParentId = 'a0c410000055VT5AAM'; //  parent record id for an Attachment         try {             insert attachObj;         }catch (Exception e) {             ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,e.getMessage()));             return null;         }           ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO,'Attachment uploaded successfully'));         return null;      } }


I have Ubuntu Mate 18.04 on my computer: No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.3 LTS Release:    18.04 Codename:   bionic  When I run in terminal: sudo apt-get update  I get: Ign:1 http://old-releases.ubuntu.com/ubuntu bionic InRelease Ign:2 http://old-releases.ubuntu.com/ubuntu bionic-updates InRelease Ign:3 http://old-releases.ubuntu.com/ubuntu bionic-security InRelease Err:4 http://old-releases.ubuntu.com/ubuntu bionic Release   404  Not Found [IP: 91.189.88.153 80] Err:5 http://old-releases.ubuntu.com/ubuntu bionic-updates Release   404  Not Found [IP: 91.189.88.153 80] Err:6 http://old-releases.ubuntu.com/ubuntu bionic-security Release   404  Not Found [IP: 91.189.88.153 80] Reading package lists... Done E: The repository 'http://old-releases.ubuntu.com/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://old-releases.ubuntu.com/ubuntu bionic-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://old-releases.ubuntu.com/ubuntu bionic-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  This is my sources.list: deb http://old-releases.ubuntu.com/ubuntu/ bionic main restricted deb http://old-releases.ubuntu.com/ubuntu/ bionic-updates main restricted deb http://old-releases.ubuntu.com/ubuntu/ bionic universe deb http://old-releases.ubuntu.com/ubuntu/ bionic-updates universe deb http://old-releases.ubuntu.com/ubuntu/ bionic multiverse deb http://old-releases.ubuntu.com/ubuntu/ bionic-updates multiverse deb http://old-releases.ubuntu.com/ubuntu bionic-security main restricted deb http://old-releases.ubuntu.com/ubuntu bionic-security universe deb http://old-releases.ubuntu.com/ubuntu bionic-security multiverse  How can I fix this? I am not able to install programs from repository, nor to update to a new version of Ubuntu Mate 20.04. Any help is appreciated. Thank you


When and where do you need to use a tripod?

I am looking into use cases where the use of a tripod is very effective or necessary.  Though in theory every possible shot can be taken with the help of tripod, in real life I do not think that is feasible and some tend to use a tripod in some shots and not in others.  So are there any specific cases where use of a tripod is always recommended? I am particularly interested with respect to landscape, macro and portrait photography.


There’s a question about , but the answer does not include LaTeX2e. Searching for “LaTeX2e”, “LaTeX2e lettering” or “LaTeX2e writing” didn’t yield the answer, and neither did trying out the commands \LaTeX2 and \LaTeX2e.  How to set LaTeX2e (and while we’re at it: LaTeX3) in a document?


Have first posts include more than just the first post

So I saw  (which is, to say the least, way off topic).  has 1 reputation with no questions or answers, so I assume one or more of his/her questions has already been deleted. I have checked the First Post review history and that question did not show up there.  Now I'm not sure whether this is a rare occurrence or not (I can't exactly query for deleted posts (or can I?)). If you know this to be a rare occurrence, feel free to point this out.  Probably more importantly, there's of course also the extremely low quality posts we've come to accept as a part of StackOverflow (not something we want, but most of us probably accept that it's not really something we can easily get rid of, without a cost). Whether these are mainly posted by users I am to describe below I'm not really sure of either.  So basically: Is there a problem? (Yes, at least for the latter case) Will the below fix it?  I propose we review what users' posts constitutes a "first post". Possible suggestions:   At least include users that don't have any non-deleted posts Include users that don't have upvoted questions / answers Generalize to all users with less than 10 reputation Include answers / questions of users that have only posted questions / answers Have it be dependent on passing x previous First Post reviews Users get reintegrated into the review system after x or x% of posts flagged (within the last x days?), regardless of reputation Any other suggestions?   The idea with these suggestions, as with first posts, is (I assume) to only have (self-)selected individuals check to see if they are of sufficient quality to reach the public and also to teach the offending users in the process.  We may have to try this out for a while, in case there are way too many of these posts and not enough reviewers.  If the problem is that too many very low quality questions are getting through the First Post review largely unaltered, that's a different problem we need to look at.  PS:  Keep in mind that, even if most of the low quality posts are by users that don't fall into these categories, over time, it could help in the sense that users will go through multiple reviews which will iron out minor problems in their posts, thus they should be decent at posting by the time they are no longer getting reviewed (or banned before then).


Simultaneous collaborative editing of a LaTeX file

Are there any tools for simultaneous collaborative editing of a .tex file?  The practices I know (and practice) in writing scientific papers are:   e-mailing each new version to the collaborators, working in a same Dropbox folder.   However, both are not meant for simultaneous editing, and are somewhat annoying.  EDIT:  A list is also here:


I have a Ibanez SR300 bass and a hard case for it. I will be travelling from Bangalore, India to Washington DC in a couple of months and I am wondering how to take my guitar along. Can I check it in? Would it be safe? Do I have any alternatives?  I will be flying Etihad Airlines from Bangalore -> Abu Dhabi -> Washington DC.


How to upgrade/install newest version of nodejs on Ubuntu 14.04

I have been working an hour for this.  Taken from their official documentation :  curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs   However, its never working for me. I have tried to clear the npm cache, even uninstall it and run both command again. Its still not working. I keep getting version 0.10.25  I run :  grep -h ^deb /etc/apt/sources.list /etc/apt/sources.list.d/*    And this is what i get :  deb http://id.archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://id.archive.ubuntu.com/ubuntu/ trusty main restricted deb http://id.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb-src http://id.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb http://id.archive.ubuntu.com/ubuntu/ trusty universe deb-src http://id.archive.ubuntu.com/ubuntu/ trusty universe deb http://id.archive.ubuntu.com/ubuntu/ trusty-updates universe deb-src http://id.archive.ubuntu.com/ubuntu/ trusty-updates universe deb http://id.archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://id.archive.ubuntu.com/ubuntu/ trusty multiverse deb http://id.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb-src http://id.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb http://id.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://id.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu trusty-security main restricted deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted deb http://security.ubuntu.com/ubuntu trusty-security universe deb-src http://security.ubuntu.com/ubuntu trusty-security universe deb http://security.ubuntu.com/ubuntu trusty-security multiverse deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse deb http://extras.ubuntu.com/ubuntu trusty main deb-src http://extras.ubuntu.com/ubuntu trusty main deb http://ppa.launchpad.net/cpug-devs/ppa/ubuntu saucy main deb http://ppa.launchpad.net/cwchien/gradle/ubuntu saucy main deb http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu trusty main deb http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu trusty main deb http://ppa.launchpad.net/dominik-stadler/subversion-1.8/ubuntu trusty main deb http://linux.dropbox.com/ubuntu saucy main deb http://dl.google.com/linux/chrome/deb/ stable main deb http://dl.google.com/linux/chrome/deb/ stable main deb http://dl.google.com/linux/chrome/deb/ stable main deb http://ppa.launchpad.net/plushuang-tw/uget-stable/ubuntu saucy main deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main   It seems the nodejs is not on the list.  What should i do? Please kindly help me


A physical explanation for negative kelvin temperatures

Just to get the thoughts rolling...  Consider a two state system with discrete energy levels $E_1$ and $E_2$ where $E_2 > E_1$ which contains $N$ particles.  We can easily deduce that the state of maximum entropy is when energy level $E_1$ and $E_2$ each contain $\frac{N}2$ particles.  Based on the (flipped-upside-down) thermodynamic definition of temperature, $$(\frac{\partial E}{\partial S})=T$$ we see that when energy as a function of entropy increases, temperature also increases.  This means, for our two state system, every time a particle populates level $E_2$, there is a corresponding increase in temperature because that population increases entropy.  What about when we go beyond the point of maximum entropy where there are $\frac N2$ particles in $E_1$ and $E_2$?  Well, then we are adding energy to the system, but the entropy is decreasing.  Based on the Boltzmann factor, this can't be possible unless the temperature of the system is negative. That is, $$\frac{P_1}{P_2}=e^{-\frac{(E_1-E_2)}{kT}}$$ which approaches infinity unless one says the system has a negative absolute temperature.  Now we're getting to the point: this increase in energy which is connected to a decrease in entropy is what has been called a . This is most often connected to .  Forgive me for saying things you already know.  All of this raises a lot of questions though, the most striking to me is that there does not seem to me to be a good physical explanation for how this can be possible. For instance, when people say that the negative temperature system is "hotter" I get what that means as far as saying that heat will flow from a negative temp. system to a pos. temp system.  I'm fine with that except that it invokes the idea of a fairly macroscopic quantity--hotness--for a purely quantum phenomenon. So, is there any macroscopic physical meaning to this statement that the negative temperature is "hotter"?  Concerning population inversion in lasers: doesn't this mean that the negative temperature required for that laser to exist ought to be so "hot" no mere mortal can handle such a device.  After all, negative absolute temperatures are often explained as being "hotter than infinite temperature." (I've heard this other places, but also see the neg. temp. Wikipedia article for quote.) I understand that again from a mathematical perspective, but what is the physical connection? A statement like that must surely manifest itself in some way that is noticeable beyond the quantum level.  I guess I really want to understand how it could be this "hotter than infinite temperature" system isn't perceptible in the macroscopic realm? I mean, lasers are cool, but they aren't just melting through everything as if they have infinite temperature.    My bad for the obvious misuse of the word "physical" when I probably meant something more like "macroscopic". I hope the point is clear anyways.  Thoughts?


Manifestly Lorentz invariant nature of the equation $\phi(x)=\int\frac{d^3k}{(2\pi)^3\sqrt{2\omega_k}}(a_k e^{-ikx}+a^{\dagger}_ke^{ikx})$

Quantum field for Klein-Gordon Equation is defined as $$\phi(x)=\int\frac{d^3k}{(2\pi)^3\sqrt{2\omega_k}}(a_k e^{-ikx}+a^{\dagger}_ke^{ikx})$$ Please forgive me for my slopiness here regarding the vector k in creation and annihilation operator. Now my question is I don't see the R.H.S of above equation as manifestly Lorentz invariant as following:   The 4-vector product in exponential is of course manifestly Lorentz invariant. But the issue is this term: $\int\frac{d^3k}{\sqrt{2\omega_k}}$ I know $\int\frac{d^3k}{2\omega_k}$ is manifestly Lorentz invariant because it can be written as $\int d^4k\hspace{3pt}\delta(k^2-m^2)\hspace{3pt}\theta(k^0)$. If I take $\phi(x)|0\rangle$ then it is manifestly Lorentz invariant because in my convention $a_k|0\rangle=\frac{1}{\sqrt{2\omega_k}}|k\rangle$.   So does this mean that $\phi(x)$ doesn't need to be manifestly Lorentz invariant cause if we're doing some observation ultimately we have to operate it on some state and that expression as seen above is manifestly Lorentz invariant.


On A minecraft Server How Can I Make Players Adventure mode in one area and survival in the next

I have an area where players drop down from the lobby in the sky down to the ground on my server but I want the area where they drop down to have a thing set up so they become adventure mode, but when leave that radius go into survival mode, and when go back in the area the become adventure mode again. So like spawn protection but I want to use command blocks. I know how to use them I just need the command for it!


For example,   Link shown as plain text.


I just took windows out of my laptop (Asus Gaming Rog Strix I-7 7th gen, GTX 1050 6GB, 16GB RAM, 1TB HD) and installed Ubuntu from a flash drive, but my Ubuntu is not booting, it stays a long time in the starting screen and then my laptop shuts down. How can I solve this problem?


What do you call a person that won’t act?

What would you call a person that just stands by and won't act? Is kind of acting like a spectator when in reality that person should do something?  I know there is a word for this because I knew what it was a few hours ago but now I can’t remember it.


I needed to find the IP address for the local machine on of the webservices. In C#, I have  ManagementObjectSearcher objC = new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'TRUE'"); ManagementObjectCollection objCollection = objC.Get();   How could I do it in C++ Linux?


Is there a natural number satisfying the given condition?

Is there a positive integer $n$ such that $\sum_{k=0}^{n}\sqrt{n+k}$ is also an integer?


GRUB automatically alternating defaults?

QUESTION: On a Windows/Linux dual-boot system, is there a way to tell grub to automatically alternate between the defaults, like that every other boot go to Windows, and every other boot go to Linux? WHY: I have a dual-boot computer with Windows and Linux (Mint) side by side. By default grub boots to Linux with a 30 second waiting time. I have set up remote control software (earlier TeamViewer, now I am using AnyDesk) on both OSes so that I can control the computer remotely, no matter if it is booted to Windows or Linux. The remote control software becomes active at OS login, so it is possible to boot the machine and log into it remotely. However, naturally I can't see the grub boot menu remotely as the remote control software is not yet active at that point, so basically I cannot remotely decide to boot to the other OS, only to the default one that GRUB offers. EDIT: It occurred to me though that I could partly achieve what I want by making Linux the default grub OS, and if I want to boot to Windows, I change the GRUB default to Windows while in Linux, before booting the machine. However, if the grub change is permanent, then I can't boot back to Linux anymore? Is there a way to make the grub default change only temporary? I would still prefer the "automatically alternating default" as that is less manual work in case I want to switch OS remotely. EDIT: I'll have to test at home whether this is the solution:


I want to get current page URL using javascript ,Any one have suggestions ?    Also i need to get the content from the hashtag For ex: xxxx.com/#21  i need to get that 21 in the javascript


Retrieve Windows 8 Product Key from mainboard

My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and do download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard.  Is there any way to recover the product key from the mainboard using Ubuntu?


cron ignores variables defined in ".bashrc" and ".bash_profile"

I have defined "SHELL" variable in /etc/crontab file:  [martin@martin ~]$ grep SHELL /etc/crontab  SHELL=/usr/local/bin/bash [martin@martin ~]$ file /usr/local/bin/bash /usr/local/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), stripped [martin@martin ~]$    In addition, all my scripts in /etc/crontab file are started under user "martin". However /home/martin/.bash_profile(for login shell) and /home/martin/.bashrc(for non-logging shell) contain some variables which are ignored in case of cron job, but are used in case I log into machine over SSH or open new bash session. Why cron ignores those variables? Isn't cron simply executing "/usr/local/bin/bash my-script.sh" with permissions for user "martin"?


PHP HTTP POST fails when cURL data > 1024

Note: solution at the end  If I attempt to do a HTTP POST of over 1024 characters, it fails. Why? Here is a minimal example:  recipient.php:  <?php if (strlen(file_get_contents('php://input')) > 1000     || strlen($HTTP_RAW_POST_DATA) > 1000) {  echo "This was a triumph."; } ?>   sender.php:  <?php function try_to_post($char_count) {  $url = 'http://gpx3quaa.joyent.us/test/recipient.php';  $post_data = str_repeat('x', $char_count);  $c = curl_init();  curl_setopt_array($c,                     array(  CURLOPT_URL => $url,                             CURLOPT_HEADER => false,                             CURLOPT_CONNECTTIMEOUT => 999,                             CURLOPT_RETURNTRANSFER => true,                             CURLOPT_POST => 1,                             CURLOPT_POSTFIELDS => $post_data                     )  );  $result = curl_exec($c);  echo "{$result}\n";  curl_close($c); }  for ($i=1020;$i<1030;$i++) {  echo "Trying {$i} - ";  try_to_post($i); } ?>   output:  Trying 1020 - This was a triumph. Trying 1021 - This was a triumph. Trying 1022 - This was a triumph. Trying 1023 - This was a triumph. Trying 1024 - This was a triumph. Trying 1025 -  Trying 1026 -  Trying 1027 -  Trying 1028 -  Trying 1029 -    configuration:  PHP Version 5.2.6 libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3 libidn/1.8 lighttpd-1.4.19   Solution  Add the following option for cURL:  curl_setopt($ch,CURLOPT_HTTPHEADER,array("Expect:"));   The reason seems to be that any POST over 1024 character causes the "Expect: 100-continue" HTTP header to be sent, and Lighttpd 1.4.* does not support it. I found a ticket for it:   They say it works in 1.5.


I'm using this code to get standard output from an external program:  >>> from subprocess import * >>> command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  >>> command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  >>> print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  >>> binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python 3.


If we consider a particle such as an electron to have wave-like properties too, what kind of wave it is? What is exactly meant by its wavelength?


using 'th' when writing date in British English

Which format is more correct when writing date in UK? "5 January 2019" or "5th January 2019" and why? Should I use "th" at the end? What is the best way to write it?


fortran90 reading real numbers from file odd results

real*8, dimension (40) :: M(40)  ...      open(unit=99,file="input.inp") do i=1,40     read(99,*) M(i) enddo  write(*,*) M(1) ...   In the file "input.inp", I have float numbers, like:  0.85 0.90 ...   But when I read and write them on terminal, it gives me the first element: 0.849999...  How can I fix it to give me exact 0.85?  Edit: I compile it on gfortran. lol


Familiar form of address for a young, subordinate, woman that connotes respect (Female equivalent to 'Son')

A(n often male) paternal figure could use the term 'son' in a fatherly way without referring to his biological Son.  Imagine a man has been verbally abused by a customer at work. His manger might say to him:     Come here son, I have something to tell you   about rude customers   Emphasis on the word I want gender-swapped  Is there a feminine equivalent for a subordinate that you respect?   From      son  (sŭn)   n.    1. One's male child.    2. A male descendant.    3. A man considered as if in a relationship of child to parent: a son of the soil.    4. One personified or regarded as a male descendant.    5. Used as a familiar form of address for a young man.    6. Son Christianity The second person of the Trinity.     Is there an equivalent for talking to a woman in a fatherly way?  The equivalent for TFD entry for daughter does not qualify it as 'familiar'        (often capital) a form of address for a girl or woman      Further more often such 'father-daughter' language patterns are negative, dismissive and lack respect.


Passing pointer by reference—cannot change value

I've read many topics about passing pointers to a function by reference, but I couldn't really find an answer. The problem is that after I pass the pointer by reference and change its value, after leaving the function, the value of original pointer doesn't change. I am really stuck with it. Please help me! You're my only hope!  Btw. the code i pasted is the same as the code I need to work on, and I cannot really change the calling of the function. Code:  void f(char *p){     char *np = new char(100);     np = "aaaaaaaaaaaaaaaaa";     p = np; }   And calling of this function:  void *ptr; f((char *)&ptr);   I will be very thankful for any help!


Consider the following calculation  3 * 20.9   normally it equals to 62.7. However, when I calculate it in javascript, the output is 62.699999999999996. And what's more I found that 7, 11 will also produce the wrong answer. Why it goes wrong and how to make it right? I think it's about the binary?


How can I keep the place of page numbering in the footer while using `documentclass{book}`?

Here is my document from the beginning: \documentclass{book} \usepackage[utf8]{inputenc}  \usepackage[a4paper, margin=1in]{geometry}  \usepackage{amsmath,amsfonts,amssymb} \usepackage{graphicx} \usepackage{setspace} \usepackage{lipsum} \usepackage{tocloft}  \usepackage{titlesec}  \begin{document}         \newgeometry{top=1.75in,hmargin=1in, bottom=1in}           \pagenumbering{gobble}  And here is the part that when I added to the document the numbering of the pages changed from the footer to the header (left and right alternatively): \titleformat{\chapter}[display]   {\normalfont\LARGE\bfseries}   {\titleline{}\vspace{5pt}\titleline{}\vspace{1pt}%   \MakeUppercase{\chaptertitlename} \thechapter}   {1pc}   {\titleline{}\vspace{0.5pc}}    \chapter{BIOLOGICAL STRUCTURE}  The main results of this chapter is to give  \section{PRELIMINARIES}  I also wanted to say that I used to use documentclass{article} when my numbering was in the footer. Can anyone tell me please what changed the place of the page numbering? and how can I keep the documentclass{book} and keep the page numbers in the footer?


Unable to sign into Messages on Mavericks

I'm unable to log into iMessage on my account in Mavericks.   Here's what Console.log shows:   5/23/14 9:50:15.996 AM identityservicesd[343]: [Warning]  *** Bad Request From Server *** 5/23/14 9:50:16.102 AM identityservicesd[343]: [Warning] Registration failed for Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)]   (Error: 9) 5/23/14 9:50:16.125 AM identityservicesd[343]: [Warning] Registration failed for Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)]   (Error: 9) 5/23/14 9:50:16.125 AM identityservicesd[343]: [Warning] Failed, server error => Disabling service 5/23/14 9:50:16.126 AM identityservicesd[343]: [Warning] Failed, server error => Disabling service 5/23/14 9:50:16.148 AM identityservicesd[343]: [Warning] Needs deletion: NO (Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)]) 5/23/14 9:50:16.171 AM identityservicesd[343]: [Warning] Needs deletion: NO (Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)])   Here is what I've tried:   Repair Permissions & Repair Disk Deleting what appears to be appropriate out of my Keychain (iMessage & iCloud Keys, etc.) Logging into a guest account makes iCloud/Messages work just fine (can send and receive messages). All of my other iCloud services just work fine. iMessages on my phone works fine as well. Run Keychain First Aid. Deleted some files from that pertain to identifyservicesd / soagent  ~/Library/Containers/com.apple.soagent/Data/Library/Preferences/com.apple.messageshelper.AccountInfoController.plist ~/Library/Containers/com.apple.soagent/Data/Library/Preferences/com.apple.soagent.plist  I'm using a MBP 15" Retina (not a mackintosh). Changing Apple ID Password. (on appleid.apple.com)


How best to grow my small amount of money starting at a young age?

As someone close to being an adult and going to college, I have earned a small amount of money ($3000) and am looking to start my lifetime savings and get a head start by investing my money rather that simply holding it in a savings account.  Assuming that I can invest it any way I please, how can I best go about growing my money so I have a sizable amount by the time I graduate from college and need a house or car?  I currently have it invested in sector mutual funds but with the rise and fall of the stock market, is this really the best way to prepare long-term?


sectioning / document hierarchy issue / start new root / move section up one level

Sorry for the bad title, but couldn't come up with something better. I have a problem with the section-hierarchy of my latex document:  This is my document structure:  \begin{document}  [...]  \part{ Conclusion} \chapter{Conclusion and Future Work} \section{Summary} \section{Answers to Research Questions} \section{Future Work} \backmatter \listoffigures  \listoftables \listofalgorithms \addcontentsline{toc}{chapter}{List of Algorithms} \printindex \printglossaries \bibliographystyle{alpha} \bibliography{thesis} \chapter{Curriculum Vitae} \end{document}   The following picture shows the hierarchy, after opening the PDF in adobe acrobat:    As you can see, everything starting from List of Figures is under the Conclusion chapter. However, I would like to have it on the same level as Conclusion.  Interestingly, in the table of contents it is printed as I would like to see it also on the document hierarchy above (EDIT: I think I came to a wrong conclusion here. These sections (i.e., List of Figures, etc.) are not numbered. In fact they still might be sectioned under the Conclusion part):    Your help is highly appreciated.


Getting a better understanding of callback functions in JavaScript

I understand passing in a function to another function as a callback and having it execute, but I'm not understanding the best implementation to do that. I'm looking for a very basic example, like this:  var myCallBackExample = {     myFirstFunction : function( param1, param2, callback ) {         // Do something with param1 and param2.         if ( arguments.length == 3 ) {             // Execute callback function.             // What is the "best" way to do this?         }     },     mySecondFunction : function() {         myFirstFunction( false, true, function() {             // When this anonymous function is called, execute it.         });     } };   In myFirstFunction, if I do return new callback(), then it works and executes the anonymous function, but that doesn't seem like the correct approach to me.


For the same attainable sensitivity, how does DOF depend on sensor size?

It's well known that all other settings being the same, larger sensor translates into a shallower DOF.  However, for the same number of pixels, doubling linear size of the sensor size would quadruple size of the pixels, and therefore increase ISO by 2 stops. This allows reduction of aperture by 2 stops on the larger camera, while maintaining the same ISO.  It's also well known that all other things being equal smaller aperture translates into a deeper DOF.  Thus the question: if you linearly increase sensor size 2x and reduce aperture by 2 stops would you get a deeper DOF (as lower aperture would suggest) or a shallower DOF (as the larger sensor would suggest)?


How to search for questions that have any one of the multiple tags in a list?

I'm trying to find questions that I can answer. So I reviewed advanced search help page, and I found answers:0 which helps me avoid questions that already have answers and locked:false to avoid locked questions.  What I would like to do is limit questions to those that have one of the tags in a list. For example, if I search for [python] [php], then I only get questions that have both tags. How do I get those that have either one?


jquery selector doesn't work with dynamically added row of a table

On change of a dropdown I add dynamically a row to a table.     in the last cell of the row I'm adding I have a button with class".ups".  The problem is that it seems maybe that this dynamically added row is not added to the  DOm and my jquery selector .ups doesn't work    $(document).ready(function () {      $("#drdCriterias").change(function () {           var table = document.getElementById("tableCriterias");             var row = table.insertRow(-1);             var cell1 = row.insertCell(0);             var cell2 = row.insertCell(1);             var cell3 = row.insertCell(2);              cell1.innerHTML = $('#drdCriterias').val();             cell2.innerHTML = $('#drdCriterias :selected').text();             cell3.innerHTML = '<button type="button" class="ups"></button>';      });      $("tr .ups").click(function () {         alert("Hi"); //nothing happens  });


Can we get the the link/url that user has clicked inside Salesforce. And based on the url clicked I need to do some functionality in apex method. Example: - User has selected an app from App Launcher. I should get the url of the selected app.


I've generated an ssh key pair with ssh-keygen. The id_rsa.pub file looks like this:  ssh-rsa someLettersAndNumbersABC123 username@host   The host part is what bothers me. Currently it comes from the router. But I want to use that key no matter where I am, whatever the hostname some router gives me. Is it save to simply remove everything after my username? Would that even work?  Once I disabled plain password authentication I wouldn't be able to add another key (or connect at all), if the key depends on the hostname of the client.


Why won't my dwarfs take the wood to the wood stock pile?

I told my dwarfs to chop down some trees, but after chopping them down they just left the wood there. I made a wood stockpile but for some reason they just won't take the wood to it.


I'm looking for a single word which describes something that is not pleasant but is necessary. Moreover, there are no comparable alternatives for that.   Something like a delightful pain.


I am running Ubuntu 11.04 with gnome 2.3 and I would like my terminal window to be transparent.  The problems is the transparent settings in my terminal just shows the desktop background and not the actual windows that are opened behind the terminal. This works on my laptop where I have Xubuntu 11.10 and I see no reason why it should not work the same here.  This is how it should look:    This is how it looks:


Take $\mathbb{R}$ as a vector space over $\mathbb{Q}$, then a basis for $\mathbb{R}$, then $|B|=2^{\aleph_0}$

I am trying to prove that Given $\mathbb{R}$ as a vector space over $\mathbb{Q}$, and a basis for $\mathbb{R}$, then $|B|=2^{\aleph_0}$.  Proof: Suppse that $|B|<2^{\aleph_0}$, then $\mathbb R = span\{ b_i ; b_i \in B \}$ So $ \mathbb R = \{ \Sigma_{i=1}^{\infty}\alpha_i b_i ; \alpha_i \in \mathbb Q, b_i \in B, i \in \mathbb N \} = \bigcup_{n=1}^{\infty}\{\Sigma_{i=1}^n \alpha_ib_i\}$. Which is a contradiction since a countable union of countable union of countable sets is countable and $\mathbb R$ is not.  What do you think?  Thank you, Shir


How do I view the questions marked as favourite?

I've marked many questions as favourite but I'm unable to find those questions now. Then what's the point of marking them as favourite? I'm not able to find them in my profile as well.


Is it still possible to get @icloud.com email address?

Set up a new iCloud account for someone and I am not seeing the option to set up an @icloud.com address and use the free email service. Does anyone know if this is still possible and how to go about doing this?