What is the 'Drupal way' to create a menu callback and display a rendered page of JSON?

I have created a new menu item and a callback function.    ...   $items['user/%user/enquiries'] = array(     'title' => t('Enquiries'),     'page callback' => '_client_enquiries',     'access callback' => 'user_access',     'access arguments' => array('view enquiries'),     'type' => MENU_LOCAL_TASK,     'weight' => 1   );  ...  function _client_enquiries() {    return t('Enquiries');  }   I am now going to CURL some json from a published google spreadsheet, and cherrypick, and then print some of it out in a table. My question.. what is the drupal way to do this? I think it would be to create a custom theme function which makes my processed json data available to a template, which I can somehow load onto my menu callback and output. If that is the case, could anyone give me some pointers/examples or a point in the right direction.


Does every utterance we make have to be grammatical?

I know all sentences must have a verb to be grammatical. But where is the verb in:  Best Day Ever!  Best is an adjective. (what kind of day). Day is a noun. Ever is an adverb. (Of all times)  So where is the verb?  I also noticed that:  Hurray!  is only an interjection.  So if we repeatedly keep breaking grammar rules, why use grammar at all? And can't we just change grammar to fit our every needs, making it a lot easier to use?


Hölder's inequality with three functions

Let $p,q,r \in (1,\infty)$ with $1/p+1/q+1/r=1$. Prove that for every functions   $f \in L^p(\mathbb{R})$, $g \in L^q(\mathbb{R})$,and $h \in L^r(\mathbb{R})$    $$\int_{\mathbb{R}} |fgh|\leq \|f\|_p\centerdot \|g\|_q \centerdot\|h\|_r.$$   I was going to use Hölder's inequality by letting  $1/p+1/q= 1/(pq/p+q)$ and WLOG  let $p<q$ so that $L_q(\mathbb{R})\subseteq L_p(\mathbb{R})$, but I cannot use this inclusion because $\mathbb{R}$ does not have finite measure.   Would you please help me if you have any other method to approach this problem?


How can one show mathematically that adding many variables will only increase R-squared?

As stated above, How does one show mathematically that adding many variables in a linear regression will only  increase R-squared ?


How to transfer files between Ubuntu and Windows?

I wanna transfer some files from this PC with Ubuntu to a PC with Windows 7 I don't care how to do it (ftp, samba or whatever) I wanna know the steps, I searched a lot but I can't find anything that works. Thank you.


some pictures are not available on 'what is your best programmer joke'

like this post    I can't edit the answer to show a previous archived version of the site or anything like that. there is no flagging because of the status of the Question(thread)  no way to comment or bring it to anyone's attention other than here.  I saw a couple of others on there  I know that this question is just there for historical purposes but how should we handle these, if at all?


Invalid data source error in QGIS while reading .gdb file

Above is the link to the FTP site provided by SCDNR. It is free data provided by the State of South Carolina. I downloaded the Horrydem and attempted to import it into QGIS but I continue to get the invalid data source error message.  All of the files should be the same. If you're able to import it into QGIS, please let me know how you did it. I've attempted both the vector import command and "drag and drop" as I've seen others mention. None have worked.


How to determine if a user is a moderator or not?

I am just wondering that how do I know if a user is a moderator or not? Is there any flag or mark so, I can determine that is user moderator?


I want to limit the number of rows to delete during a loop.  Below are the tables. Please note this is sample and both tables have 20+ columns and millions of rows  :  Table A1:  ID  Name 1   Tony  2   Andy 3   Nate   A2 ID  Name 1   Tony  2   Andy    I want to delete only 1 row at a time, and will use a loop to re-run the same sql. I tried :  delete from a1 where id  in (select id from a1 inner join a2 on a1.id = a2.id limit 1);    says :      you cannot specify target table 'a1' for update in FROM clause.   Is there a way I can do this in mysql?


What are the pros and cons of doing a PhD in a small research group compared to a large research group?

I have chosen to work under a associate professor as my PhD advisor. He has a small research group -a group of 3 graduate students and some Undergraduates. I see colleagues of my advisor have groups of 10-12 students with 3 postdocs.   Am I missing something- research wise ??


Do muggleborns get their letter on their 11th birthday or the summer before they start Hogwarts?

A lot of the fanfiction seems to like to give Hermione her letter in September to coincide with her birthday. That just doesn't seem very logical for the Statute of Secrecy, as you then have 10 out of every 12 10-year-old wizards and witches knowing about magic while finishing the school year (assuming even distribution of birthdays).   It seems to me that this is just asking at least one of them to brag about knowing magic and spill the secret.   Also this would mean that the poor kid born on 30 of August would only have 2 days to adjust to being magical before being shepherded off to a boarding school in the middle of nowhere.  From another point of view, getting such news on your birthday can screw up a lot of celebration plans.  Also, from rereading the memory from Dumbledore where he introduced magic to Tom, there is no mention of snow or even closeness to his birthday from the caretaker.  I believe this view came from the fact that Harry got his letter on his birthday but that piece of fanon seems to forget that letters were being sent up to at least a week or 2 beforehand (leading to the Dursleys hiding on a rock in the sea in the first place).


Let $X_1, X_2, X_3$ be the numbers that appear when three balanced dice are rolled. Find the expected value of the largest number that you will see. My attempt: $P[X_i=x] = 1/6$ for $i=1,2,3$. $E[X] = \sum{xp(x)} = 1×1/6 + 2×1/6 + 3×1/6 + 4×1/6 + 5×1/6 + 6×1/6$ Is my attempt correct?


Online Upgrade from Ubuntu 16.04 LTS to 18.04 LTS

My question is about upgrading online from Ubuntu 16.04 LTS to 18.04 LTS. One of the responses said that it will NOT upgrade the version, which is exactly what I want to do.  Again, but a it more clearly, will an online upgrade from Ubuntu 16.04 LTS to 18.04 LTS remove my personal info and completely overwrite my HD, or will it leave personal info and other installed application programs intact? I understand the basics to backup, but it's not part of my question.


When is the limit of a sum equal to the sum of limits?

I was trying to solve a problem and got stuck at the following step:  Suppose ${n \to \infty}$ .  $$\lim \limits_{n \to \infty} \frac{n^3}{n^3} = 1$$  Let us rewrite $n^3=n \cdot n^2$ as $n^2 + n^2 + n^2 + n^2 \dots +n^2$,$\space$ n times.  Now we have  $$\lim \limits_{n \to \infty} \frac{n^3}{n^3} = \frac {n^2 + n^2 + n^2 + n^2 + n^2 \dots +n^2}{n^3} $$  As far as I understand, we can always rewrite the limit of a sum as the sum of limits ...  $$\dots = \lim \limits_{n \to \infty} \left(\frac{n^2}{n^3} + \frac{n^2}{n^3} + \dots + \frac{n^2}{n^3}\right)$$  ...but we can only let ${n \to \infty}$ and calculate the limit if all of the individual limits are of defined form (is this correct?). That would be the case here, so we have:  $= \dots \lim \limits_{n \to \infty} \left(\frac{1}{n} + \frac{1}{n} + \dots + \frac{1}{n}\right) =$[ letting ${n \to \infty}]$ $= 0 + 0 + \dots + 0 = 0$  and the results we get are not the same.  Where did I go wrong?


Numbers 1 to 1994 are divided into 6 sets.Show that at least in one  group there will be two numbers whose sum is also in that group ?  We can prove that at least one group will contain more than 332 elements.  A set is called sum free if it DOES NOT  CONTAIN sum of any two of its elements or does not contain twice of an element If a set contains natural numbers from 1 to $2n+1$ its sum free subsequence will contain $n+1 $elements.Or in other word if we take the last half numbers $(\frac{n}{2} $ or $\frac{n+1}{2}$ according to number of elements of the set) it will be free.  But I cannot proceed further because my selection need not be consecutive numbers.   I have to prove that if a set contains more than 332 numbers it cannot be sum free..But How..?


MySQL replicate-rewrite-db ALTER TABLE not rewritten

I have a production database called "master" that I want to replicate on another server under another name (call it "slave").   All worked fine until an ALTER TABLE statement was performed on the master server. Since then, the replication hung up and I get this error in the slave log:  [ERROR] Slave SQL: Error 'Table 'master.students' doesn't exist' on query. Default database: ''. Query: 'ALTER TABLE `master`.`students`   Well of course it does not exists since I told MySQL to rename "master" to "slave"! But it seems like MySQL decided not to rename the database in ALTER TABLE statements.  Here is an excerpt from my slave config.  server-id   = 2 relay-log   = /var/log/mysql/mysql-relay-bin.log log_bin     = /var/log/mysql/mysql-bin.log binlog_do_db   = slave replicate-rewrite-db="master->slave"


Can't modify selection of "use cellular data for" for some apps in iPhone 6 after update to iOS 9

After update to iOS 9, for many of the apps in my iPhone 6, the "cellular data" selection is locked in "Settings/Cellular/Use Cellular Data For" or in the corresponding "Settings/[App Name]" entry. The toggle can be flipped but the new value is not stored when exiting Settings. If the value reverts to off, the app can't access the cellular data network. The apps with the value reverting to on, can. Cellular Data and Data Roaming are on. All apps have the most recent updates.  I've tried toggling "Airplane Mode," "Cellular Data", turning off the iPhone, resetting "All Settings," loading a previous back-up, and restoring the phone. Nothing seems to work.   Please help!


These beakers look fine in wire frame but they show odd shadows in solid view that persist when the scene is rendered. How do I fix this?    .blend file:


Hi guys I have a laptop dual-booted with Ubuntu 16.10 and Windows 7. So I was wondering if I could downgrade back to 16.04 LTS and btw I installed 16.04 then upgraded to 16.10. I really want to go back to 16.04 because a lot of software I want hasn't been released for 16.10 "Yakkety"


Why isn't obj and mtl file loading their images/textures

I'm trying to export an fbx file as an obj, and to test whether it work I had to import it, but when I imported it it failed to load the textures. I have looked at all the other questions related to this but none of them seem to help. Thanks in advance.


What is the difference between classification and regression?

I understand classification....a discrete response or category, like animal is dog or cat.  The author says..."Regression techniques predict continuous changes such as the change in temperature, power demand, or stock market prices."  I can't wrap my head around what he means.  Thanks.


Proof about Holomorphic functions in the unit disc

We want to prove the following:     If $f$ is a holomorphic function on the unit disc $\mathbb{D}$ s.t. $f(z) \neq 0$ for $z \in \mathbb{D}$, then there is a holomorphic function $g$ on $\mathbb{D}$ such that $f(z)=e^{g(z)}$ for all $z \in \mathbb{D}$.   For such a $g$, we have that $\frac{f'(z)}{f(z)}=g'(z)$ on $\mathbb{D}$ since $f$ has non-zero derivative.   Perhaps then we define $g(z)=\int_\gamma \frac{f'(z)}{f(z)}dz$ where $\gamma$ is a path in $\mathbb{D}$ from $0$ to $z$.  Does this work?


Is it better to have gold cfd contract or real bullion gold bars?

Title says it all, I'd like to know the advantages and disadvantages of both.


If you create an alias for example:   alias cls="clear"   It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" alias, one that exists in every terminal session?


Let $f:\mathbb{R}\to \mathbb{R}$ be a function such that $f(x+y)=f(x)+f(y)$ where $x,y\in \mathbb{R}$. If $f(x)$ is differentiable at $x=0$, then  $f(x)$ is differentiable only in a finite interval containing zero   $f’(x)$ is constant for all $x\in \mathbb{R}$   $f(x)$ is constant for all $x\in \mathbb{R}$   $f(x)$ is differentiable except at finitely many points  To pick the right option, the function must be determined first. However, I have not been able to do from the given data, not even a bit. I need a hint to begin the solution process Multiple correct


mytest=[[False]*3]*2  In [46]: mytest Out[46]: [[False, False, False], [False, False, False]]  In [47]: mytest[0][1]=True  In [48]: mytest Out[48]: [[False, True, False], [False, True, False]]  On the other hand   mytest=[ [False]*3 for i in range(2)] In [53]: mytest[0][1]=True  In [54]: mytest Out[54]: [[False, True, False], [False, False, False]]   On the first when in set [0][1], it sets at two places , but in second it sets correctly .. what is wrong with first assignment.


Show that a sequence of functions convergent pointwise to $\chi_{\mathbb Q}$ does not exist

Prove that there isn't a sequence of continuous function on $[0,1]$ that converges pointwise to the function $f$ on $[0,1]$ defined by $f(x)=0$ if $x$ is rational and $f(x)=1$ if $x$ is irrational.  What I've tried:  By contradiction: Suppose that indeed exists one(say $f_n$) and let's take $a$ in $[0,1]\cap \mathbb{Q}$, then $f_n(a)$ approaches to $0$ when $n$ is sufficiently large, say $n\ge N$. Let's take in particular $n=N$. Since $f_N$ is continuous, there exists a neighborhood of $a$, $(a-d,a+d)$, in which $f_N(x)$ is near $f_N(a)$, and thus is near to $0$. Let's take now $b$ irrational in that neighborhood. Then, for $n$ sufficiently large,say $n\ge K$, $f_n(b)$ is near $1$. This should be the contradiction, since $b$ would be at the same time near $0$ and $1$ (suppose I've chosen the right epsilons). The problem is that the $K$ may be larger than the $N$, and so there is no contradiction. If I then try to make the $N$ larger, then I modify the $d$, which modifies the $b$, and therefore there's no sense in taking that particular $b$. I've also tried to apply continuity to $f_k(x)$, but the neighborhood in which $f_k(x)$ is near $f_k(b)$ (which is near $1$) may not have anything in common with the previous neighborhood...  I wish you could help me.  Thanks in advance.


Unable to do group video call and group screen share using Skype 4.3

For those who duplicated my previous question - ; am NOT asking how to install Skype for God's sake!!   The question was rather - I already have Skype installed, the thing is there is no possible option for me to do group video call or group screen share. The interface itself resembles the times when Skype was newly born. While on Windows, Skype's latest version is around 6.(something), here it's only 4.3. In Windows group video call is now free on Skype, here I can't even do video call! I think this is a major drawback for an otherwise so good OS! Is there anything that can be done about it?  Thanks for any help!  For those who don't have an answer for me, I still thank you for at least understanding my question!!  Have a good day!


Show that $\mathfrak{so}(4)\cong \mathfrak{so}(3)\oplus \mathfrak{so}(3)$

I want to show that $\mathfrak{so}(4)\cong \mathfrak{so}(3)\oplus \mathfrak{so}(3)$. I know that as lie groups $SO(4)\cong (SU(2)\times SU(2))/\mathbb{Z}_2$ and that as $SU(2)/\mathbb{Z}_2 \cong SO(3)$.   My idea to do this was to show that $SO(4)\cong SU(2)\mathbb{Z}_2\times SU(2)/\mathbb{Z}_2$ and then the result should follow. But the map from $(SU(2)\times SU(2))/\mathbb{Z}_2$ to $SU(2)\mathbb{Z}_2\times SU(2)/\mathbb{Z}_2$ is only surjective not injective. Hence the map from $SO(4)$ to $SU(2)\mathbb{Z}_2\times SU(2)/\mathbb{Z}_2$ is not an isomorphism.  Is this the wrong approach or have I just made a mistake?


What are the possible eigenvalues of a linear transformation $T$ satifying $T = T^2$

Let $T$ be a linear transformation $T$ such that $T\colon V \to V$. Also, let $T = T^2$. What are the possible eigenvalues of $T$?  I am not sure if the answer is only $1$, or $0$ and $1$.  It holds that $T = T^2$, thus $T(T(x)) = T(x)$. Let's call $T(x) = v$, so $T(v) = v$. which means that $\lambda=1$. But I am not sure about this, while I have seen a solution that says that $0$ is possible as well.  Thanks in advance !


How can I install the latest build of a package?  I am referring to the version of the package, because I see that other linux distros have more recent build of packages.  For example, ubuntu offers vlc 2.0.8  meanwhile arch offers vlc 2.2.1  (a more recent package).


Difference between signed / unsigned char

So I know that the difference between a signed int and unsigned int is that a bit is used to signify if the number if positive or negative, but how does this apply to a char? How can a character be positive or negative?


I'm trying to figure out how to calculate the current year minus the birth year to calculate age  namespace howOldAreYou {     class Program     {         public static void Main(string[] args)         {             //variables              int birthYear;             string name;             System.DateTime moment = new System.DateTime();             int year = moment.Year;             //int month = moment.Month;             //int day = moment.Day;             //int minute = moment.Minute;             //int second = moment.Second;             //int millisecond = moment.Millisecond;              //Find out person's name             Console.WriteLine("What is your name?");             name = Console.ReadLine();              //Find what year person was born             Console.WriteLine("What year were you born, " + name + "?" );             if (int.TryParse(Console.ReadLine(), out birthYear))             {                 Console.WriteLine(birthYear + "! Well you must be " + (year - birthYear));             }             else             {                 Console.WriteLine("Sorry that's an invalid year");             }          }     } }


A graph (G) is only connected as a topological if G is connected as a graph.

So in our textbook it's stated that "A Graph G is connected as a topological space if and only if G is connected as a graph" without a proof and my lecturer did not prove it during the lecture, so I am wondering how that proof would go.   Thank you for your time!


What happens when Mark enters the airlock

One time when Mark Watney entered the airlock      the plastic-like wall broke. It looked like air started coming in even though the pressure outside should never be higher than the one inside. At the end the whole airlock exploded.   I'm having hard time imagining why this happened. How is this explained scientifically?


How does drowning work when you're already at 0 hp and fall into water?

I had a player fighting against sahuagin by the shore the other day and he was dropped to 0 and dying. Because of his location, though, he landed in shallow water (2-3' deep) which I ruled was enough to drown in.  The rules for suffocation (PHB pg. 183) are specific to state:     A creature can hold its breath for a number of minutes equal to 1 + its Constitution modifier (minimum of 30 seconds). When a creature runs out of breath, it can survive for a number of rounds equal to its Constitution modifier (minimum 1 round). At the start of its next turn, it drops   to 0 hit points and is dying.   I was having difficulty adjudicating this because the character was already at 0 and now was just inhaling water.  In this scenario, does the character just make death saves as normal, or would they automatically fail them?  FYI, I ruled that he would auto-fail the saves since he's just inhaling salt water now and takes a level of exhaustion, but if the rules have something specific for this, it'd be helpful to know.


I see hats in the main message window and near the input text field.    But no hats in the user list (right top corner) in the :


I've updated and searched for libzeroc-ice3.7, but it isn't found. I'm not sure why. Looking on  it seems it should be listed for my server.


Macro to generate ordinal words from numbers?

Is there a macro available that will turn "1" into "first", "2" into "second", etc.  Let's call this macro "wordth".  Then, for example, if item number 2 in an enumerate environment is labeled by \label{item:blah}, I could write something like  The \wordth{\ref{item:blah}} item is problematic.   which would be formatted as "The second item is problematic."  (Bonus points for other languages, but I only need it for English.)   points to the  package for turning "1" into "1st", etc.  The  package also does this.  Neither appears to provide fully spelled out English ordinals.  In many situations only full words for ordinals, not their abbreviations, are appropriate.  This is probably a FAQ, but it's one of those things that's difficult to search.  Feel free to point to a dupe question and close.


OS X - Is there a way to switch keyboard input languages using keyboard shortcut?

Rather self explanatory, but I was hoping to be able to quickly change input languages, without going up to the top and switching manually, rather with a keyboard input? Maybe I'm just too lazy, but I was wondering if this was possible?


Winter Bash 2019 bugs with the "glasses with a number on top" hat and the "Philanthropist" hat

it appears you all forgot to change the year on those two hats.


Generalized linear model - confused by definition

I'm beginning with the regression analysis and I'm quite confused with the generalized linear regression.  I understand, that the ordinary linear models can be described with a formula  $$ y_i = \beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_n x_n + \epsilon_i $$  and when using generalized linear regression I'd expect it to be something like this  $$ g\left(y_i\right) = \beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_n x_n + \epsilon_i, $$ $g$  being the link function.  But, instead I came across this formula  $$ g\left(E[\mathbf{y}]\right) = \mathbf{x'}\mathbf{\beta} $$  and I don't get, what's the expected value in the left doing there.  Could you, please, explain it a little?


I need a list with all models (class_names) which have the pattern "Cube" at the end.  example:   all my models: ModelFoo, ModelBar, ModelBarCube, Mode2BarCube  what I need:  ['ModelBarCube', 'Mode2BarCube']


HashMap doesn't work with user defined key class

I am using Processing language (derived from Java PApplet) version 3.01  Here is my code...    Pig a = new Pig(1);   Pig b = new Pig(1);   HashMap<Pig, String> m = new HashMap<Pig, String>();   m.put(a,"foo");   String c = m.get(b);   println(c);    class Pig {   int a;   Pig(int x) { a=x;}   boolean equals(Pig b) { return b.a==a;}   int hashCode() { return a;} }   As you can see I am using Pig for key, I defined the equals and hashCode. I expect output "foo", however, I get output null.  Any idea what is going on here?  Why doesn't this work?


Could anyone help me to show that $\sum {\sin(nz)\over n}$ diverges if  $Im(z)\ne 0$?  Thank you


Filtered Index is not selected once an identical, non-filtered, index is made

I have a lot of historical data, but 98% of the time, my data entry team only looks up data from the last 5 days.  So I added a filtered index to help those lookups be faster.  My test query looks similar to this:  SELECT CustomerId, OrderId, Col2, Col3, Col4 -- about 30 columns FROM   CustomerOrder WHERE  CustomerId = 22000000 OPTION (RECOMPILE)   And I have this filtered index:  CREATE nonclustered index FIX_CustomerOrder_CustomerId ON     CustomerOrder (CustomerId) INCLUDE (OrderId, Col2, Col3, Col4) -- about 30 columns WHERE  CustomerId > 21000000 -- This equates to the last 5 days worth of data   When I run that query, the filtered index is chosen and used.  However, if I then add this index (for intended for the few older rows that will get looked up):  CREATE nonclustered index IX_CustomerOrder_CustomerId ON     CustomerOrder (CustomerId) INCLUDE (OrderId, Col2, Col3, Col4) -- about 30 columns   It gets picked instead of the filtered index. (NOTE: Both indexes are exactly the same except that the second is not a filtered index.)  So I am confused.  The Filtered Index removes 21 million rows from the equation.  Why would the optimizer not use it?  Additional Info: If I add the option with (Index (FIX_Customer_OrderId)) then the index is used, and the performance is still good (about the same).  But I thought filtering out all those rows would be much faster...  More Additional Info: If I extend the size of the filtered index to cover more days it eventually gets selected.    The sweet spot seems to be 7 days.  6 uses the normal index, 7 uses the filtered index.  Weird!  (NOTE: I have double checked to make sure that my row I am selected is in the original  filtered index.  The key I am searching on is 21317761.  My 5 day filtered index value (that does not get used) is Id > 21289782.  My 7 day filtered index value (that does get used) is Id > 21232773.)


Proof that $\frac {(2n)!}{n! 2^n}$ is integer

I need to prove in a Combinatoric way that: $$\frac {(2n)!}{n! 2^n}$$ is an integer for all natural $n$. Actually I have no idea where to start from. Thank all.


Going between Canada and America with the visa waiver program

We are on our Honeymoon for 6 months.  We spent two months in South America and then came to the states.  Our 90 days is nearly up and after it is;  we are planning on spending the last three weeks of our honeymoon in Vancouver Canada.  The problem is that our flights home go back through America.  So we have spent 90 days in the states under the Visa Waiver Program. Then three weeks in Canada; and we will have to come back through America to get home. Our problem is that America seems to count going to Canada as part of the 90 days:  From the CBP website:  When traveling to the U.S. with the approved ESTA, you may only stay for up to 90 days at a time - and there should be a reasonable amount of time between visits so that the CBP Officer does not think you are trying to live here. There is no set requirement for how long you must wait between visits.  We only want to come back to the States for 1 day in transit to get our flight home but are worried that the border patrol won't let us back in because we have only been to Canada and not back to our country of residence.   Do you think this is a possibility?  Will they let us back in if it is just to fly home?  We have tried to change our flights to avoid coming back through the States but have been unable to do so.


Question about multiplying damage with decisive strike

So, reading another question about Decisive Strike, the answer was that it works the same as a critical, by multiplying its damage and therefore utilising multiple rolls and adding the totals, however, it's still not fully clear to me.  Let's say that in this instance a Monk 4/Swordsage 2 with Assassin's Stance, Fiery Fist and Shadow Blade (let's say the DEX bonus is +4) makes a decisive strike sneak attack unarmed on a monster.  Normal damage would be 1d8 via unarmed damage + 1d6 fire damage via Fiery Fist + 2d6 per sneak attack + 4 via DEX bonus  I know the example is convoluted but i helps me know which sources multiply and which don't. As I understand, with decisive strike it would be the following:  2d8 via unarmed damage + 2d6 fire damage via Fiery Fist + 4d6 via sneak attack + 4 DEX bonus  Is this correct? Is the fixed bonus also multiplied (in this case the +4 damage for DEX)?  And also, one little question on decisive strike; it says that every other attack before the start of my next turn is also doubled, yet the penalty only applies to the first roll. Does this mean that any other attack I get to make this round (by, let's say, Fire Riposte, or an AoO), also gets double damage without penalty?  Sorry for the convoluted question, but when I start reading supplementary manuals, even if they are the PHB2, things get more and more confusing. Thanks in advance!


Following the question in   Basically, i want to have vector lenght like this    \documentclass{article} \usepackage{amsmath} \usepackage{amssymb}  \begin{document}  $\| \tilde{x} \|  $     \end{document}   The output is:    But how to have another tilde at the bottom of X?


How to get hard disk information from /proc and/or /sys

How can I get hard disk capacity, usage, etc. using the /proc or /sys filesystems?  If it is possible, please tell me which file(s) I need to process to get that information.


Take a coin and stick a little bit of chewing gum on it. Then give the coin some spin with your fingers. Why is the chewing gum moving to the top of the coin while it rotates? You could do also different setups (drilling hole for example) but always the heavier side moves up to the top.


If I remove GarageBand and iMovie from my MacBook Air, can I restore them later?

I have just bought a new MacBook Air 13" (2013).  It comes pre-installed with GarageBand and iMovie. I don't really need these applications and I want to save my disk space, so I was thinking about removing them.  However, if I do remove them, is it possible to restore them if I want them later?


I can't detect any bluetooth devices from my laptop when I try to set up a new device. I've tried some approaches from other threads, but the problem remains as is. Any help on how to fix / what to inspect would be appreciated.  Output of lspci -knn | grep Net -A3; lsusb  06:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]     Kernel driver in use: wl     Kernel modules: bcma, wl Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 004: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0 Bus 001 Device 003: ID 0bda:5756 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 8087:8001 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I always thought that child processes were always executed after the parent process was completed but after running the following program i get results like sometimes only printing parent or child or alternate at first i thought it was the scheduler that was changing the processes but in the task manager even if both are on S state they are still printing so when child processes are executed and when the parent  Thank you!  #include <stdio.h> #include <sys/types.h> #include <unistd.h> int main (){     int pid=fork();     while (1){         if(pid==0){             puts("child");         }else{             puts("parent");         }     } }


How to write a Cover Letter for applying to a PhD programme

I am applying for a PhD programme in Europe. For that I need to write a cover letter. It will be more like a SOP (technical but shorter version, as it's one page) or it can be more general stuff, as in why I want to do a PhD, what I like about this particular field, what background I have. Any suggestions welcome.


How did this question get a 'linked' question that isn't mentioned in comments or answers?

Looking at  which has been closed as a duplicate (quite right), we see three 'linked' questions in the sidebar; however, only two of those questions are given as duplicate-close-targets.  which to my mind is the actual 'exact duplicate', isn't mentioned anywhere else except in the 'linked questions' sidebar itself! The  says:  The Linked sidebar... gathers up any links to this question provided by the community via comments, answers, or questions  So how did  get into the linked questions sidebar of ? (There's no explicit link in the other direction, in case you were wondering.)


Is it just a coincidence that 10! = 3! · 5! · 7! and 6! = 3! · 5! or are factorials somehow related to primes in terms of prime factorial factors?


Which one is bigger? $e^{\pi} $ or $\pi^e$

$e^{\pi}$ or  $\pi^e$, Can we find which one is bigger by using calculus?  Thanks.


Rendering extra 100px outside specified resolution and cropping down for final output?

With Screenspace reflections on I want to keep my edge fading at 0.075, but prevent it from fading the edges of the screen when zoomed in on a reflective surface.  So currently I get this really nasty effect on my window material (top left) when it's not fully in frame:    Is there a way to render the borders just outside the camera's vision, and then crop that to my actual desired output resolution to get around this? Is this possible with render borders?  So although I want a 1920x1080 image, I want to render, say, 2120x1280 (an extra 100px around the borders) and then have blender crop it back to what it should be and save this as the render output.  Edit: This is not a duplicate of the referred to question. The problem has nothing to do with faces not facing the camera and not being reflected. There's almost no reflection in the glass but this is intentional. I just wanted to show the black edge effect in a previously rendered frame.


Show that two groups that are isomorphic to a third group are isomorphic to each other

Prove that if G is isomorphic to K and H is isomorphic to K then G and H are isomorphic to each other. My strategy thus far has been to show that we can use composition of the respective isomorphisms to map from G to K then K to H. Would it be conclusive to show that this process can be inverted thus proving G and H are isomorphic?


BGA seems to be somewhat of a showstopper for the diy community, especially with the newer more powerful parts being almost exclusively bga.  I know it can be done with the skillet/toaster oven method, but it seems like there is no way of inspecting for defects without an x-ray machine except   for maybe this method .  So is reflowing using these methods relatively high yielding or is this just not worth doing at home?


Using a barrel jack with higher than rated current but lower voltage?

I have a 5V/10A power supply (with a 2.1mm DC plug) and want to use it to power four or five 5V/2A devices. But I see that no barrel jacks are rated for 10A (they're all around 5A max - see this ). Is this really an issue? I would have thought parts likes jacks, that are basically little more than a metal conductor, would be rated for e.g. a max wattage. But I see on places like Digikey that instead they're rated for a max voltage and a max current (12V and 5A seem typical values). It seems odd to have a power supply with a 2.1mm DC plug if you can't actually get a jack that can handle the supply's current. So is it OK to use a 12V/5A rated jack with a 10A power supply as long as the voltage is half the max rated? If it's not OK then what are my options and if it is OK is there anything else I need to watch out for? I was planning to just twist the wires of my various power cables together and screw them down in a 2.1mm jack-to-screw terminal block. Or solder down a barrel jack on a proto board and then solder each power cable on separately to the same board. These kinds of setups have always worked out for toying around with typical 5V/2A setups but will there be issues once I start dealing with higher currents? Parts I'm using:      (source: )


Getting null pointer exception while calling method from another class - Selenium RestAssured

I am writing test scripts with Rest-Assured java. I have two classes ApiMethods and AppMethods belonging to one package and another test package called apiTests using the methods created in the ApiMethods and AppMethods classes. I am getting a null pointer exception while running the test class file. AppMethods class looks like this: package com.sape.utilMethods;  import com.sape.base.Base;  public class AppMethods extends Base{          private String MethodA(String abc) {       //Some code       //return statement       } }  ApiMethods class looks like this: package com.sape.utilMethods;  import com.sape.base.Base;  public class ApiMethods extends Base{          public AppMethods appObj;      public ApiMethods(AppMethods appObj) {         this.appObj = appObj;     }      public String MethodB() {        appObj.MethodA();     } }  The test case class under apiTests package looks like this: package apiTests;  import com.sape.base.Base; import com.sape.utilMethods.ApiMethods; import com.sape.utilMethods.AppMethods;  import io.restassured.RestAssured; import static io.restassured.RestAssured.given; import io.restassured.response.Response;  public class TestCase extends Base {              AppMethods appObj;          @Test     public void caseApi() {                  ApiMethods apiMethods = new ApiMethods(appObj);         apiMethods.MethodB();                  }     }  It seems I am doing something incorrectly in the caseApi method, while creating ApiMethods object. Can someone help me in passing the data correctly? I am bit new to java so sorry if this question is something very basic.


Clarification on the rules for pronouncing R in British English

Some rules have been given , but I am seeking for a particular clarification.  According to the cited answer, R wouldn't be pronounced in WHERE and ARE (because the final E is unvoiced, so the words are as if ending with R)  But what about the sentence WHERE ARE YOU GOING ? The first R(E) is followed by the vowel A, and the second R(E) is followed by the vowel sound U.  My precise question is: which of the two R's, if any, would be pronounced ?


How to print a number with commas as thousands separators in JavaScript

I am trying to print an integer in  with commas as thousands separators. For example, I want to show the number 1234567 as "1,234,567". How would I go about doing this?   Here is how I am doing it:  function numberWithCommas(x) {     x = x.toString();     var pattern = /(-?\d+)(\d{3})/;     while (pattern.test(x))         x = x.replace(pattern, "$1,$2");     return x; }   Is there a simpler or more elegant way to do it? It would be nice if it works with floats also, but that is not necessary. It does not need to be locale-specific to decide between periods and commas.


Does the cosmological constant represent anti-gravity?

Does the cosmological constant represent ?  According to the current Lambda-CDM cosmological model, there must be a fair amount of the dark energy in the universe responsible for the acceleration of the expansion and other things. This idea is represented by the cosmological constant, introduced by Einstein.  If the cosmological constant (dark energy) is responsible for repulsion, can it be considered a gravitational repulsion? And consequently, can gravity be considered both attractive and repulsive? I feel the answer is no, but why specifically is this a wrong way of thinking?


kali linux Package 'synaptic' has no installation candidate

im trying to install software center in kali linux but every time it was giving me error Package  has no installation candidate


Do you need to completely reinstall Ubuntu non-LTS every update?

I was wondering if you need to reinstall Ubuntu everytime there is a new non LTS version or can you update it onto your installed version? I am new to Linux and I want something in between the LTS versions and the bleeding edge distros, so does the normal non-LTS version update automatically and you have to install it once like manjaro and every couple of months it updates to the new version or not?


How come my enqueued class is still getting executed in my unit test when I never call start/stopTest methods?

Per salesforce docs ():     All asynchronous calls made after the startTest method are collected   by the system. When stopTest is executed, all asynchronous processes   are run synchronously.   I thought NOT calling start/stop would mean the async stuff wasn't collected and didn't run.  In fact, I'm pretty sure I witnessed that being the case in the past.  But now I've got a unit test that never calls Test.startTest()/Test.stopTest(), but it invokes code that enqueues a job and the job is still running.  I'm trying to write a unit test that just tests the code that enqueues the job, and I don't want to deal with setting everything up so that the enqueued job actually succeeds.  I'll test the job itself in a different unit test.  Simple way to reproduce the issue:  @IsTest public class EnqueueUnitTestIssue {     private class FailEnqueued implements Queueable {         public void execute(QueueableContext context) {             System.assert(false);         }      }     @IsTest     static void testEnqueuedStillExecuted() {         System.enqueueJob(new FailEnqueued());     } }   This unit test will fail at the "System.assert(false);" line.  Has it always been this way?  Could have sworn things didn't work this way in the past.


Why isn't the 'Nearby Pokemon' menu showing any distance footsteps?

I've logged in and out, restarted my phone, updated, but the Pokemon footsteps indicating whats nearby wont show up.   The Pokemon still appear in the menu, but I cannot click to select them, nor does it show their distance from me with the footsteps.   What is going on?


Checking to see if a user has a licence for a managed package

So I'm aware that there is a method on UserInfo called isCurrentUserLicensed which lets you check if the user running the code has a licence for a namespace that you specify, i.e. for a particular managed package.  What I want to know is whether there is a way I can test to see if some other user (assume I have their ID) has a licence for a particular package. Has anybody found a way to do this?


"I couldn't but laugh" - correct or not?

Is the usage of  "I couldn't but laugh" in place of "I couldn't not laugh" correct English? Or should it always be "I couldn't help but laugh"?


Do people that are called through FaceTime show up on my carrier's bill?

I was just wondering if FaceTime calls show up on my carrier's (Sprint) bill as a regular call, like the number that was FaceTimed and when and the length of the conversation.


How do I get my question on a less-used site answered?

Note: This is not a duplicate of  question. My question has no attention, votes, or answers whatsoever. I have a question on a less-used Stack Exchange site, but no one has answered, and I need an answer. I don't have enough reputation for a bounty, and the chat rooms are dead, so how do I get my question noticed and answered?


When it is necessary to use an oscilloscope with isolated grounds? For nearly 5 years now, I have been using oscilloscopes with a common ground. But I have no experience in using one with isolated ground.  The question popped when I was going through a spec-sheet for a DSO that the sales person had shared.


Cut Point of connected space and it'sseparation

This is question numebr 13 exercise 3.1 wayne patty topology.  Let $p$ a cut point of a connected space $(X, \mathcal{T})$ and suppose $A$ and $B$ form a separation  of $X-\{p\}$. Prove that $A \cup \{p\}$ is conected.  Attempt: I proved A and B are connected using contradiction. Now , For A$\bigcup ${p} to be connected I need to  only prove that  $Closure (A) \bigcup ${p} $\neq \phi$.  I assumed let p doesnot belongs to closure of A and trying to get some contradiction but I am unable to do so. Please help!


Is this limit correct: $\lim_{x \to+\infty} \frac{\log_{2}(x-1)}{x} = 0$?

Find $\space\ \begin{align*} \lim_ {x \to+\infty} \left [ \frac{\log_{2}(x-1)}{x}\right]   \end{align*}$.   After some minutes around this limit I did it this way:  $\log_{2}(x-1)=y \Leftrightarrow 2^y=x-1$  So,$\space x=2^y+1$.  When $x \to +\infty$,$\space y \to +\infty$ also. By substitution:  $\begin{align*} \lim_ {y \to+\infty} \left [ \frac{\log_{2}(2^y+1-1)}{2^y+1}\right]=\lim_ {y \to+\infty} \left [ \frac{\log_{2}(2^y)}{2^y+1}\right]=\end{align*}$  $\begin{align*}\lim_ {y \to+\infty} \left [ \frac{y}{2^y+1}\right]=\lim_ {y \to+\infty} \left [ \frac{1}{\frac{2^y+1}{y}}  \right]=\lim_ {y \to+\infty} \left [ \frac{1}{\frac{2^y}{y}+\frac{1}{y}}\right]= \frac{1}{+\infty+0}=0  \end{align*}$  Is this correct?Are there any other easy way to find this limit?Thanks


I am using the llncs document class. And my figures are being numbered in a manner I do not understand. I define and place the figure like this: \begin{figure}[h]     \includegraphics[scale=0.5]{myBirds.png}     \label{fig:thebirds}     \caption{The birds} \end{figure}  The captions count as I expect it:  --Image-- Fig. 1. The birds --Image-- Fig. 2. The Ants  So Latex has an idea of the correct number of figures. But when I look at the references in the text, numbers are not correct. They just show the section number. e.g. in section 7, all figures will be referred to as Figure 7. Note: I do NOT have something like \numberwithin{figure}{section}


I am working on a project where the requirement is to have a date calculated as being the last Friday of a given month.  I think I have a solution that only uses standard Java, but I was wondering if anyone knew of anything more concise or efficient. Below is what I tested with for this year:      for (int month = 0; month < 13; month++) {         GregorianCalendar d = new GregorianCalendar();         d.set(d.MONTH, month);         System.out.println("Last Week of Month in " + d.getDisplayName(d.MONTH, Calendar.LONG, Locale.ENGLISH) + ": " + d.getLeastMaximum(d.WEEK_OF_MONTH));         d.set(d.DAY_OF_WEEK, d.FRIDAY);         d.set(d.WEEK_OF_MONTH, d.getActualMaximum(d.WEEK_OF_MONTH));         while (d.get(d.MONTH) > month || d.get(d.MONTH) < month) {             d.add(d.WEEK_OF_MONTH, -1);         }         Date dt = d.getTime();         System.out.println("Last Friday of Last Week in  " + d.getDisplayName(d.MONTH, Calendar.LONG, Locale.ENGLISH) + ": " + dt.toString());     }


I met someone and we have been chatting via phone for awhile. He asked me to access his bank account and transfer money to someone else because he is in Thailand on business and he can't access his account.  His bank is the ISBank and is not available in Thailand. He didn't transfer money to me and hasn't asked me for money. Is this a scam?


Why can't I drop trading cards while playing TF2?

On a friend's Steam account, while he didn't drop a single TF2 trading card so far, the badge page says "No card drops remaining" for Team Fortress 2.  And indeed, we've been playing a few hours this week and he didn't get a single one.  He can't remember if he bought the game or if he's just playing the free to play version.  I suppose that's what makes the difference, but not sure.  Also, I don't know where I can find this information, nor how to resolve this "issue".


Sum of an irreducible character over all $G$

Let $\phi: G\to GL_n(\mathbb C)$ be an irreducible representation of a finite group $G$. Let $\chi: G\to \mathbb C$ be the character of $G$. Prove that:  $$\displaystyle \sum_{g\in G}{\chi(g)}=0 $$  I know that if $e$ is the identity then $\chi(e)=n$, if $g\in G$ then $\chi(g^{-1})=\overline{\chi(g)}$. Thus if $g=g^{-1}$ then $\chi(g)=\chi(g^{-1})=\overline{\chi(g)}$ then $\chi(g)\in \mathbb R$. If $g \ne g^{-1}$ then $\chi(g)+\chi(g^{-1})=2Re(\chi(g))$. Thus we can conclude at least that the sum: $$\displaystyle \sum_{g\in G}{\chi(g)}=n+\sum_{g\ne g^{-1}}{\chi(g)}+\sum_{g=g^{-1}}{\chi(g)} \in \mathbb R  $$  But I don't know how to prove that it's in fact $0$.  Thanks!


Prove the existence of the square root of $2$.

I am trying to prove the existence of the square root of $2$.  I have some steps with a very vague explanation and I would like to clarify.  The proof: Let  $$S=\{x\in\mathbb R\mid x\geqslant 0 \text{ and } x^2<2\}.$$  I understand the proof of LUB, ∝   and so I am at the step where $\alpha^2=2$.  I know that we are to prove by contradiction so we state let $\alpha^2 <2$ and $\alpha^2 >2$.  Now my instructor wants us to use the Archimedean Axiom $1/n = \varepsilon$.    $(\alpha^2 + 1/n)^2$  then what.....


Often I'll see a website, especially when registering or filling out a form that says something like "Please only use letters and numbers in this field" or "Please try again."  Please is a pleasantry and I suppose it could make wording sound more "natural" but in this context I don't find it helpful at all. In fact often when I see "please" in a validation message it's not an optional requirement. In that case even in spoken English the "please" is misleading and incorrect as it indicates that you should do something, while omitting the please turns the same phrase ("Use only letters and numbers in this field") turns it into a command, which is correct.  Is there a reason to use statements like these? Are some situations more appropriate than others? It seems fairly prevalent but strikes me as inappropriate interaction.


How does Natural Selection shape Genetic Variation?

Background  Importance of the additive genetic variance  As stated , the fundamental theorem of Natural Selection (NS) by Fisher says:     The rate of increase in the mean fitness of any organism at any time ascribable to NS acting through changes in gene frequencies is exactly equal to its genetic variance in fitness at that time.   NS reduces the additive genetic variance  On the other hand, NS reduces additive genetic variance (discussion about the origin of this knowledge can be found ). The genetic variance of a population for multiple traits is best described by the G-matrix ( is a post on the subject).  What is a G-matrix  A G-matrix is a matrix where additive genetic variance of trait $i$ can be found at position $m_{ii}$. In other words, the diagonal contains the additive genetic variance for all traits. The other positions $m_{ij}$, where $i≠j$ contains the additive genetic covariance between the traits $i$ and $j$.  Question  How can one model how the G-matrix changes over time because of selection (assuming no mutation)?


PHP to MySQL database and back - Strange characters when storing UTF8 characters

I am trying to store my cities streets in a database. The names contain characters like ăîâșț(romanian characters) and öüóőúűéáí (hungarian characters). For example "Agrișelor" is stored as "AgriÃˆÂ™elor".  My code is a mess so I am not posting it, basically I am trying to encode end decode using the built in functions of PHP ('utf8_encode', 'utf8_decode').  I would like to get a function type solution for data input and output.  Edit: I forgot, the webpage displays the names recalled from the database correctly, I am getting this problem only in the stored data.


Please help me this hard circle geometry question

Let $T_1$ be a circle with centre at the point $O$ and radius $R$. Two other circles $T_2$ and $T_3$ with centres at $O_2$ and $O_3$ respectively are tangent internally to $T_1$ and meet each other ($T_2$ and $T_3$) at the points $A$ and $B$. Find the sum of the radii of $T_2$ and $T_3$. $R_2$ + $R_3$, if $\angle OAB = \pi/2$.  [OP's thoughts, added by Brian Tung] I got $O_2AO_3B$ is a Kite. Also if extend $OA$ and intersects $T_3$ to point $W$ in $T_2$ for example, and extend $AO$ to $T_2$ then intersect $T_2$ to $V$, can get $O_2O_3$ equal to half of $WV$.  If I can approve $WV$ is paralleling to $O_2O_3$ or $OO_3$ is paralleling to $WB$, may get the result of $R_2 + R_3 = R$. Not sure if this is the right direction?


Reading from a text file and storing in a String

How can we read data from a text file and store in a String variable?  is it possible to pass the filename in a method and it would return the String  which is the text from the file.  What kind of utilities do I have to import? A list of statements will be great.


This came up as a discussion.  With recent incidents in the news, it's often argued by some members of the public in the US that guns are a requirement for safety, and that everyone should have the right to own a gun.  Obviously, they're talking about citizens.  However, if a tourist visits, surely they should have the same concerns (arguably more, since you don't know as much as locals).  Anyway, the question that is being asked here (and I'm trying to avoid politics as best as possible) - can a non-resident tourist buy a gun for their travels around the United States?


How does Windows process operands given to a program in C?

I wonder if there is an equivalent for getopt() in POSIX systems.


How can I blockquote a numbered list without resetting the number to 1?

Let's say I want to put "50. Quoting point number 50." in a blockquote. By default it will reset the number to 1:        Quoting point number 50.      How can I preserve the initial number 50?


Is there a word that means simple but not easy?

Often I find myself or others describing a concept that is simple to explain, but difficult to execute. I end up saying "it's really simple, just not easy" way too often for my tastes. Is there a word that expresses this idea well?


In my English homework, a student gets asked if she would put "Any news your end" in a formal or informal letter. My class should translate it, but in my native language it means something like "Some news you want to tell before/while dying?" and thats makes no sense to me.


link file1.txt file2.txt   file1.txt contains ham and file2.txt contains cheese.   I added 123 in file1.txt. Now file1.txt has ham123. If my understanding is correct, any changes made in either file would affect the other, but file2.txt is not changed. Why not?  Here's my edition with complete and exact output of my commands:  $ ls -li total 16 1363827 -rw-r--r--@ 1 kim  staff  13 Jan 20 20:09 file1.txt 1363844 -rw-r--r--@ 1 kim  staff  22 Jan 20 20:09 file2.txt $ cat file1.txt one two $ cat file2.txt one1 two2 $ link file1.txt file2.txt link: file2.txt: File exists $ ls -li total 16 1363827 -rw-r--r--@ 1 kim  staff  13 Jan 20 20:09 file1.txt 1363860 -rw-r--r--@ 1 kim  staff  10 Jan 20 20:11 file2.txt $ cat file1.txt $ cat file2.txt one1 two2   As you can see, I deleted everything inside file1.txt. However, file2.txt hasn't been modified. Both files are in the same directory. I used my text editor to create them.


Best way to install packages for TeXLive in Ubuntu?

I want to install a package (specifically xlop). I'm using TeXLive on Ubuntu, and I don't really know my way around LaTeX.  Can apt-get install or something similar be used?


How do I identify the manufacturing year of a Surly frame?

I am looking at purchasing a used Surly Pacer. However, the owner is unsure of the year (he also bought it used). Are there any visual cues that I can use to identify the year of the frame?


Why are there $3$ solutions to $x^a = a^x$?

Consider the equation, $x^a = a^x$.  If a is of the form $1.6 + 0.4k$, where $k$ is a natural number, then the equation has $3$ solutions. I checked them until $k = 1000$, but was unable to find a reason for this. Is there any plausible explanation for this? If yes, what is it? if not, why?  The possible duplicate question doesn't explain why there are 3 solutions for this particular form!  Thanks, John.


Skewness transformation for one but not the other variable?

I have two dependent variables, one is positively skewed (significantly), the other is negatively skewed (not significant). I can apply a log10 transformation to improve the skewness on the first one.   Questions:   Can I then statistically compare the two variables in a mixed ANOVA test (the two variables are steps of a factor "emotion" and I compare between factor "group"), given that one is transformed and the other isn't?  If not, what options do I have?


Can Ubuntu repair windows 7 that won't boot?

So my old computers motherboard died and right in the middle of a windows boot. As you imagine, after buying a new and suitable rig windows 7 will not boot. windows gets to the "windows starting up" animation and restarts. When the computer restarts it goes to the startup repair which says it cannot be repaired. However, with ubuntu installed, all HDD files are accounted for and all components work well. Is there a way for ubuntu to repair the booting process without compromising any files on the HDD? Thanks!


Why is my \matrix path failing when put inside another macro?

I've have the following two pieces of code.  The first one compiles; the second one doesn't.  I don't understand why the second one fails.  Could someone explain?  Example 1:  \documentclass{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}     \matrix [column sep=0pt,every node/.style={draw,minimum size=2em}]    {      \node(m0) {a}; & \node(m1) {b}; & \node(m2) {c}; \\    };  \end{tikzpicture}  \end{document}   Example 2:  \documentclass{article} \usepackage{tikz}  \begin{document}  \def\usemygrid{%%    \matrix [column sep=0pt,every node/.style={draw,minimum size=2em}]    {      \node(m0) {a}; & \node(m1) {b}; & \node(m2) {c}; \\    }; }  \begin{tikzpicture}    \usemygrid   \end{tikzpicture}  \end{document}   This second example results in the following error:  ! Undefined control sequence. <argument> \pgf@matrix@last@nextcell@options   l.15       \usemygrid


pow() implementation in cmath and efficient replacement

I've read that cmath calculates pow(a,b) by performing exp(b*log(a)). This should not be used when b is an integer, since it slows down calculations a lot. What alternatives are there when   calculating a lot of successive pow()s with the same constant a it is known beforehand that b will definitely be an integer?   I am looking for fast alternatives which are efficient in these particular scenarios.


After Installing Win XP, could not able to load Ubuntu 14.04

My System was having Windows XP in C: drive, then I installed Ubuntu in F: Drive. Everything was going fine.   But I re-installed Windows XP due to some reasons and I did take care of F: Drive where Ubuntu 14.04 is already installed. After Successfully installation of Windows XP SP3, I am not getting any GRUB window. It is directly booting to Xp.   I think GRUB of Ubuntu might have gone. HOw can I fix it?? Can I do repair or something using installation disk??


Disable Drag-&-Drop in Windows Explorer (left column only)

I'd like to disable drag-and-drop in Windows Explorer but only on when the source is the left column (directory tree), however.  Better still, I'd like to enable drag-&-drop ONLY when I'm dragging from left-to-right (never left-to-left, right-to-right, or right-to-left, except across multiple instances of Windows Explorer).  OS:  Windows 7


How include a Feynman diagram in a beamer presentation?

I have a bunch of Feynman diagrams constructed with "feynmp" that I would like to include in a beamer (presentation mode). I know Tikz works but then I have to redraw each and every diagram from scratch...no time for that.   Thanks for any help.


Minimum value of $\,\left(a^3 + b^3 + c^3 -3abc\right)$

If $ a, b , c $ are distinct positive integers satisfying the inequality $ ab + bc + ca \ge 107$. Then what would be the least value of $\left(a^3 + b^3 + c^3 -3abc\right)$ So I basically tried doing two things, first one being applying AM > GM, but I could not because some terms would be negative. The second try was that I simplified $a^3 + b^3 + c^3 -3abc $ into $ \left(a+b+c\right) \left(a^2 + b^2 + c^2 -ab- bc- ca\right)$  but was stuck in finding the minimum  values of $ (a+b+c )$. Is there any specific way to solve this problem?


This question is in regards to the EL817 Opto-coupler().  I'm trying to choose a suitable resistor to lower the current/resistor of the Opto's LED. With a source of 3.3v, an LED forward voltage of 1.2v at 20ma, I've calculated the resistor value to be 105ohms. Is this correct?


Can't install nvidia driver 430 on Ubuntu 18.04 (Dell Inspiron 15 5000 Gaming)

I can't find a solution to my problem. I can't install the latest nvidia driver on my laptop (Dell Inspiron 15 Gaming) with Ubuntu 18.04. I always have that error message :     The following packages have unmet dependencies.      E: Unable to correct problems, you have held broken packages.


How can we find the quotient and remainder when:  $$f(x)= x^5-x^4-4x^3+2x+3$$  is divided by $$g(x)=x-2?$$  Could someone please show how to step-by-step using synthetic division?


Which one is bigger, $e ^ {3 \pi}$ or $ \space 3 ^ {e \pi}$?

I have this equation, and I've tried checking which is bigger,  $ e ^ {3 \pi} \space ? \space 3 ^ {e \pi}$  What I've tried:  $ e ^ {3 \pi} \space ? \space 3 ^ {\pi e} / \sqrt[\pi]{} $  $ e ^ {3} \space ? \space 3 ^ {e}$  $ (e ^ {1\over e}) ^ {3e}  \space ? \space (3 ^ {1\over 3}) ^{3e}  / \sqrt[3e]{}$  $ e ^ {1\over e} \space ? \space 3 ^ {1\over 3} / \ln()$  $ {1\over e} \space ? \space {1\over 3} \ln(3) $  and now because ln(3) > 1, I assumed the right side was bigger, apparentaly it wasn't.  For future references. How do I go about checking which one is bigger?


Use a specific forwarded key from SSH-agent?

Let's say I have a key for Github, along with other keys. I've added lots of keys to my ssh agent (ssh-add -L returns lots of lines) at my home computer A. In my .ssh/config I have set up which key to use with which host, so e.g.  ssh -T -vvv git@github.com 2>&1 | grep Offering   gives  debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.github   Only one key is offered, as expected. But then ssh-ing to some host B with ForwardAgent yes and repeating the same command, I get  debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.linode2 debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.helium debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.github   meaning it tries all my keys. This is problematic since only a limited number of keys can be tried before servers return Too many authentication failures. So I tried editing .ssh/config on host B to include  Host github.com   IdentityFile /Users/doxna/.ssh/id_rsa.github   IdentitiesOnly yes   but then I get no key offerings, but rather  debug2: key: /Users/doxna/.ssh/id_rsa.github ((nil))   which I guess means that the key was not found(?) And after all, the key is located at my home computer A, not host B, so the question is how to refer to it at host B? Hope I managed to explain the question.


We are going to China, and we choose Turkish Airlines. We are Pakistan nationals (2 guys) and will be on our business trip to Beijing. We have around 19 hours in Istanbul while going to Beijing, China. Please guide us if it is possible to view Istanbul while staying on-time (15 hours). During our transit period in Istanbul, can we visit Istanbul? Do we have to pay any transit visa fee at the airport?


Asking my supervisor a potentially dumb question

So I recently did my PhD project approval which is the process where I agree my objectives with my supervisor and present a short overview to a review panel. All that went well and my project has been approved and I can finally make a start on the work I need to do. I'm feeling a bit swamped and unsure about how to proceed tackling the objectives we need to achieve and this has left me feeling quite overwhelmed and overworked. My supervisor sent me a one line email last week basically saying "do objective 1 now" but I wanted to spend some time with them discussing the theory and devising a suitable way to do this objective. I know it's all about independent work but I feel I could benefit from a short meeting just to straighten up my work plan and ensure we're both on the same page. To clarify, the problem isn't that I don't understand the theory- I just need to clarify what my workplan should look like. Would I be dumb if I asked for a sit down to talk through the objectives and clarify what I should be working on? I feel very out of my depth


Page layout assignments with XML metadata API

How do I define page layout assignments for different record types via metadata XML files?


What does asymptotic significance value less than 0.95 tells when results are already significant with 0.05 value?

I am relatively new in statistics and it is also not my major. I am just using it due to the need. I have used the SPSS tool to establish the statistical significance of two or more scales between three groups using Kruskal Wallis H Statistics. It generates the output as follow:  However, despite a lot of Googling, I am still unclear why SPSS says retain the hypothesis with 0.05 confidence while asymptotic significance is not more than 0.95? Please pardon me if my understanding is totally wrong here but I am totally lost at this stage especially on how to interpret that output.


Do electrostatic fields really obey "action at a distance"?

In an electromagnetic theory class, my professor introduced the concept of "action at a distance in physics". He said that:     If two charges are at some very large distance, and if any one of the charge moves, then the force associated with the charges changes instantaneously.   But according to Einstein, no information can travel faster than the speed of light.   So photons (the information carriers in electromagnetic force) cannot instantaneously deliver information.   So that we associate a field with the two charges and if any charge moves, there is a deformation in that field and this deformation travels with the speed of light and conveys the information.   If the field deformation information cannot travel more than the speed of light, how does the force instantaneously change at very large distances?


nullpointer exception while using jfile chooser

I am getting nullpointer exception by clicking on btn obt which is nullpointerexception thrown by jfilechooser. Don't know what to do for this problem "re=jf.showOpenDialog(null);"  Can anyone please salve this error?  public void actionPerformed(ActionEvent e) {     if (e.getSource()==obt)      {           try         {         int re = jf.showOpenDialog(null);                if(re==JFileChooser.APPROVE_OPTION)             {                 File f=jf.getSelectedFile();                 t1.append("Opening:"+f.getName()+ ".");             }             else             {                 t1.append("Open command cancelled by user." );             }              t1.setCaretPosition(t1.getDocument().getLength());         }         catch(Exception ee)         {             System.out.println(ee);         }     }     else if(e.getSource()==ebt)     {         try         {             int re=jf2.showSaveDialog(null);             if(re==JFileChooser.APPROVE_OPTION)             {                 File f=jf2.getSelectedFile();                 t1.append("Extracting:");//+f.getName()+ ".");             }             else             {                 t1.append("Extract command cancelled by user.");             }              t1.setCaretPosition(t1.getDocument().getLength());             }         catch(Exception ee)         {             System.out.println(ee);         }     } }


Destructive Interference of two wave pulses

Suppose two identical  transverse wave pulses are travelling towards each other on a string where one is inverted with respect to the other. When they meet, destructive interference will occur and the string will be straight for a certain instant of time. Hence, for that instant, it will appear to have no energy. What then happens to the energy carried by the two pulses?


What are the proposed realizations in the New SI for the kilogram, ampere, kelvin and mole?

The metrology world is currently in the middle of overhauling the definitions of the SI units to reflect the recent technological advances that enable us to get much more precise values for the fundamental constants of nature than were possible when the SI was drawn up. This has already happened to the second and the meter, which are defined in terms of a caesium transition and the speed of light, and it is being extended to the other units. Thus, in the new system, known as the ,     four of the SI base units, namely the kilogram, the ampere, the kelvin and the mole, will be redefined in terms of invariants of nature; the new definitions will be based on fixed numerical values of the Planck constant ($h$), the elementary charge ($e$), the Boltzmann constant ($k$), and the Avogadro constant ($N_A$), respectively.   The  gives more details, but it stops short of describing the recommended mises en pratique. For example, for the kilogram, the definition goes     The SI unit of mass, the kilogram         The kilogram, symbol kg, is the SI unit of mass; its magnitude is set by fixing the numerical value of the Planck constant to be exactly 6.626 069 57 10−34 when it is expressed in the SI unit for action J s = kg m2 s-1.         Thus we have the exact relation h = 6.626 069 57 10−34 kg m2 s-1 = 6.626 069 57 10−34 J s. Inverting this equation gives an exact expression for the kilogram in terms of the three defining constants $h$, $\Delta \nu$(133Cs)hfs and $c$:   $$ \mathrm{kg} =\left(\frac{h}{6.626 069 57\times10^{−34}}\right)\mathrm{m}^{2}\:\mathrm s^{-1} =1.475521\ldots\times 10^{40}\frac{h \Delta \nu\left(^{133}\mathrm{Cs}\right)_\mathrm{hfs}}{c^2} $$   The Planck constant is a constant of nature, whose value may be expressed as    the product of a number and the unit joule second, where J s = kg m2 s-1. The effect of this definition is to define the unit kg m2 s-1 (the unit of both the physical quantities action and angular momentum), and thus together with the definitions of the second and the metre this leads to a definition of the unit of mass expressed in terms of the value of the Planck constant $h$.      Note that macroscopic masses can be measured in terms of $h$, using the    Josephson and quantum-Hall effects together with the watt balance apparatus,    or in terms of the mass of a silicon atom, which is accurately known in terms    of $h$ using the x-ray crystal density approach.   However, the brochure is pretty scant as to what the specific realizations through watt balances actually imply in terms of a route from measured physical quantities to values of fundamental constants or to inferred masses. For the specific case of the watt balance, for example, the physical constants at play are much more naturally the  and  constants, $K_J=2e/h$ and $R_K=h/e^2$, if I understand correctly, so there is some re-shuffling of experimental results to be done.  The SI brochure is similarly vague for the other three base unit / fundamental constant pairs.  This brings me, then, to my specific questions. For each of these four base unit / fundamental constant pairs,   what are the proposed experimental realizations, what are the basics of their operation, and what physical effects do they rely on? what other fundamental constants are used to go from experimentally measured values to inferred parameters? (i.e. the meter depends on the second. Does the kilogram depend on the value of the electric charge?) what specific natural constants are measured by the experiment, and how are they reshuffled to obtain final results?   Additionally, what is the dependency tree between the different definitions of the base units? What units depend on what others, either directly or indirectly?


I'm wondering when the viewed counter increases.  I already spotted that it doesn't increase if you visit your own question, but does it get increased when anonymous users visit it?


I want it to have color. Like a diamond here. I really don't know what to do. Like do I use tellraw like "color":"red" or what? Do I use &a stuff? I haven't ever used a command with a name/lore.  I am trying to make deathrun but one thing is the reward I need which is the Diamond with name that they can change into items like shopkeepers plugin, yes it's mine, but right now I am just using command blocks and I have this 4 second before re-fill issue and deathrun  is quite hard to make. I just need how to get color into that name all I need.  NOTE: Its a Minehut server, there are certain plugins I can have and not have.


Will "regular" Ubuntu run well on a Dell Inspiron 15r?

I am going to be installing Linux, Ubuntu on a laptop this evening with the following basic specs:  Core i3 Processor 4GB RAM 500gb HDD Intel HD 3000 Graphics  would the basic, normal, most recent and up-to-date Ubuntu version run well on this setup?  I'm going to be replacing Windows 8 with Ubuntu, from a USB Drive, and I wish to do this with a minimal amount of headache.  Also, any tips/tricks to make this go more smoothly?


Are there any free online GIS courses based around using QGIS?

Does anyone know of any MOOCs for learning GIS which use QGIS for any practical exercises?  I've been finding QGIS a fantastic tool for work, but would like to understand it and GIS principles on a deeper level.   However, many of the online courses or MOOCs I've found when looking for something like this are based around ArcGIS.


What does this symbol in notification bar mean?

What does the circled symbol below mean?


Extreme points of the unit ball of the space $c_0 = \{ \{x_n\}_{n=1}^\infty \in \ell^\infty : \lim_{n\to\infty} x_n = 0\}$

I want to prove that all "closed unit ball" of $$ c_0 = \{ \{x_n\}_{n=1}^\infty \in \ell^\infty : \lim_{n\to\infty} x_n = 0\} $$ do not have any extreme point. Would you please help me?  (Extreme Point) Let $X$ be a vector space and $A \subset X$ be convex. We say $x\in A$ is an  if for $x = (1-t)y + tz,\; y,z,\in A, \;t\in(0,1)$ then $y = z = x$.  What I tried is as follows:  Let $B$ be a closed unit ball of $c_0$, that is, $$B = \{\{x_n\}_{n=1}^\infty \in \ell^\infty : \lim_{n\to \infty} x_n = 0 \text{ and } \|x\|_{\ell^\infty}\le 1\}.$$ If there is a extreme point $b = \{b_n\}_{n=1}^\infty\in B$, then we have for $$ b = (1-t)y + tz, \quad y,z\in B,\quad t\in (0,1) $$ implies $$ y = z = b. $$ But I cannot do anymore here. Would you please help me?


SQL Server x64 DBCC Shrinkfile Dies not release Unused space (never ends No errors)

I have a 1.8TB Production database in my test environment on a 2TB drive. Currently there is only 1 .MDF and 1 .LDF (on a separate drive).  The Database has had some major cleanup of unused indexes, Archived tables, and de-fragmented.  The actual data size being used is now only 300GB (after an SP_Spaceused) of the 1.8TB container.    I have tried multiple DBCC Shrinkfiles (larger and smaller Target sizes varying from 100MB to 2GB) without success.  The job never fails, but after 22 hours of running (at multiple attempts of sizes) I stopped the job.  No errors, Database is in simple recovery mode, drives are not full, nothing in windows or SQL error logs.  I've also tried the Truncate option that finishes successfully, but no space is released.  Why do I want to shrink you might ask?  I want to migrate from 1.mdf to (1.mdf + 3.ndf) data files for improved performance (on a RAID 10 set of Drives).  I don't have enough disk space on my 2TB drive now to do it all on the same RAID Set.    My thoughts were, shrinkfile (truncate) or Shrinkfile Target in smaller increments.  The truncate completes successfully and SQL thought the minimum size would be around 300GB.  Unfortunately, the DB only shrunk to 1.2TB initially and I believe there is more unused space that could be freed.  Its like there is some kind of Ghost record or row that cannot be moved in order to reclaim that unused space.  I did run Integrity Checks with physical, indexes and data purity which reported no errors.  I can shrink other databases on the same server without any troubles...just this one that is giving me trouble.  Has anyone Run into this?


Combinatorial proof of $\sum_{j=0}^{k} \binom{n}{j} = \sum_{j=0}^k \binom{n-1-j}{k-j}2^j$

Give a combinatorial proof for this identity for non-negative integer $k$ and $n$ such that $0 \leq k < n$   $$\sum_{j=0}^{k} \binom{n}{j} = \sum_{j=0}^k \binom{n-1-j}{k-j}2^j$$   My attempt: I tried to reduce this identity. Since $k,n$ are nonnegative integer and $k<n$ then I can change the upper limit into  $$\sum_{j=0}^{n-1} \binom{n}{j} =2^n-1 \quad \text{and} \quad \sum_{j=0}^{n-1} \binom{n-1-j}{n-1-j}2^j = \sum_{j=0}^{n-1} 2^j ~.$$  So, I just need to show $$\sum_{j=0}^{n-1} 2^j =2^n-1 $$ using combinatorial proof. Am I right? I really need helps


If $a$ and $b$ are relatively prime, are $a^n$ and $b^n$ too?

The question in the title. If so, how do I prove it?


What do you have to name an Eevee for it to evolve into a Umbreon?

What do I name an Eevee to make it evolve into a Umbreon?


Why nodejs can make hardlink with dircortory?

os version:  ➜  showlink sw_vers ProductName:    Mac OS X ProductVersion: 10.13.1 BuildVersion:   17B35a   before exec the script:   ➜ showlink tree --inodes . . └── [9628588]  test     ├── [9628740]  link.js     └── [9628707]  src  2 directories, 1 file   nodejs script :  const fs = require('fs') const path = require('path') const src = path.resolve(__dirname, './src') //i try to the dist at the same dir with src, but failed  const dist = path.join(__dirname, '../dist') fs.link(src, dist, (err) => console.log(err))   after:  ➜  showlink tree --inodes  . . ├── [9628707]  dist └── [9628588]  test     ├── [9628740]  link.js     └── [9628707]  src  3 directories, 1 file   add some file  ➜  showlink touch test/src/demo{1..3}   now:  ➜  showlink tree --inodes  . . ├── [9628707]  dist │   ├── [9629200]  demo1 │   ├── [9629201]  demo2 │   └── [9629202]  demo3 └── [9628588]  test     ├── [9628740]  link.js     └── [9628707]  src         ├── [9629200]  demo1         ├── [9629201]  demo2         └── [9629202]  demo3  3 directories, 7 files   when i search google 'hard-link' ,all answer show me that: the dir can't make a hard link . but ... node.js create the dir's hard-link (the number in Brackets is i-node number). what happened? Thanks


What are the differences between \def, \edef, \gdef and \xdef?

I am a LaTeX guy, slowly working into the miracles of TeX.  Can anybody tell me the differences between \def, \edef, \gdef and \xdef?  Where shall I use which, what are the pros and cons?  Or is it suspected to be unclean code, if I mix TeX commands in LaTeX?  Please give a short example, of how to use the command.


Powershell script to install an application from Microsoft Store

I'm relatively new in Powershell. Is there a way to create a script to download an application from Microsoft Store?


Getting User - List View mapping using apex

Is there any table or any other way(metadata/rest api) we can query the list views of a particular object that a user/group  has access.  Example:  SELECT Name FROM table_x WHERE UserOrGroupId = '1234..' AND  SobjectType = 'Account'   I can see an object named UserListView in workbench, but query on that returns no data. Is it deprecated?


How do you restart unity? I have no menu bars

Yesterday after running my ubuntu HDD in VMware on win7 I found that I had somehow lost unity. Even after actually booting into Ubuntu, unity was GONE. Every answer on the web couldn't bring it back. Finally, I reformatted and reinstalled ubuntu.  Now, while trying to figure out how in god's name to run a .run file, I ended up punching in a command that somehow disabled unity. I cannot get it back. "unity --reset" doesn't work. (ERROR: the reset option is now deprecated)  I can log out and log in as a guest, and bam, unity is there. But if I log into my account it is just a desktop wallpaper and nothing more.  I'm about to give up on converting to linux, and I'm a computer savvy person. I thought I could handle this, but this is just ridiculous. I've spent HOURS researching ways to restart unity. I can't just reformat every time Unity doesn't restart.  In summation: I cannot restart Unity. Someone...please...I'm begging you help me. I don't want to go back to windows.


I got a multiple-entry, short-stay, category “C” Schengen States “D” visa valid for 1 year with a duration of 90 days.  a) Does the 90-day thing in a one-year period mean that I can freely spread out my travel dates throughout that one year? For example, visit Germany in January for 21 days, come back again in April for another 21 days then in August for 21 days and finally in October for the last remainder of the 90 days?  b) Or does it mean that once I enter the Schengen area, my 90 days start counting down? For example, if I enter Germany on the 1st of January then my visa expires after 90 days (in March) regardless of whether I stayed in Germany throughout those days or not?


What is "leave" in the sentence "We saw Fred leave"?

Words "leave" and "arrive" belong to which part of speech (noun or bare infinitive) in the following sentences:     We saw Fred leave.      Did you hear them arrive?


$ cat /etc/os-release  NAME="Ubuntu" VERSION="20.10 (Groovy Gorilla)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.10" VERSION_ID="20.10" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy  $ cat /etc/update-manager/release-upgrades # Default behavior for the release upgrader.  [DEFAULT] # Default prompting and upgrade behavior, valid options: # #  never  - Never check for, or allow upgrading to, a new release. #  normal - Check to see if a new release is available.  If more than one new #           release is found, the release upgrader will attempt to upgrade to #           the supported release that immediately succeeds the #           currently-running release. #  lts    - Check to see if a new LTS release is available.  The upgrader #           will attempt to upgrade to the first LTS release available after #           the currently-running one.  Note that if this option is used and #           the currently-running release is not itself an LTS release the #           upgrader will assume prompt was meant to be normal. Prompt=normal  $ sudo do-release-upgrade -m DESKTOP Checking for a new Ubuntu release No new release found.  Am I missing something? I thought it would become available @ 22.04.2021, but apparently not for everyone?


I have Dell Studio 1555.  I want to install Ubuntu. I have downloaded Ubuntu latest version(Ubuntu 14.04.1 LTS) with 32 bit. there was an option with 64 bit (recommended).  First question, Which version should I use?  second question, from where I can get the drivers for the same?  Please help me out,  Thanks, Jay


What version on Ubuntu must I download to run on an Intel d865gbf motherboard

Firstly I am very new to Linux i.e. never used it before (have used plenty of other OS) I have an old desktop computer -motherboard in an intel d865gbf and I would like to run Ubuntu linux on it. What version must I download and where do I get it? Thanks in advance for your help


Conservation of momentum: Acrobat and monkey

A circus acrobat of mass M leaps straight up with initial velocity $v_0$ from a trampoline. As he rises up, he takes a trained monkey of mass m off a perch at a height h above the trampoline. What is the maximum height attained by the pair?  The only thing I don't understand is why the vertical momentum is conserved when the acrobat catches the monkey despite the presence of gravitational force?   That's the only part in the solution where the conservation of momentum will be used to find the final velocity of acrobat and monkey.  I guessed that it must be because of normal force balancing the gravitational force out but am not sure of it.


Given the pdf $f(y\mid\theta) = \theta y^{\theta - 1}1_{0<y<1}$, show $E\left(\frac{1}{2\theta\sum_{i = 1}^n W_i}\right) = \frac{1}{2(n-1)}$

Let $Y_1, \ldots, Y_n$ be a random sample from the pdf $$f(y\mid\theta) = \theta y^{\theta - 1}, 0 < y < 1, \theta > 0 .$$ show that $$E\left(\frac{1}{2\theta\sum_{i = 1}^n W_i}\right) = \frac{1}{2(n-1)}$$  I have showed that $\sum_{i = 1}^n -\ln(Y_i)$ is sufficient for $\theta$, and if $W_i = -\ln(Y_i)$, I have showed that $W_i$ has an exponential distribution with mean $1/\theta$. I have also showed that $2\theta \sum_{i=1}^n W_i $ has a $\chi^2$ distribution with $2n$ degrees of freedom.  I am wondering how to show it?


How do bats survive their own coronaviruses?

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


accessing JSON format in Java using GSON

I've seen alot of GSON examples but still can't fit it for my current structure. I cant seem to make it work. it keeps giving me null pointer exception errors. Thanks in advance~  inventory.txt  {    "inventory":     {         "id": 0,         "name": "nameName",         "image": "imageName",         "color": "colorName",         "subChain1": {             "location": ["country1", "country2", "country3", "country4"],             "role": ["role1", "role2"]         },         "subChain2": {             "location": ["country1", "country2", "country3", "country4", "country5", "country6", "country7"],             "role": ["role1", "role2", "role3", "role4", "role5"]         },         "subChain3": {             "chain": ["chain1", "chain2", "chain3", "chain4", "chain5"],             "location": ["country1", "country2", "country3", "country4", "country5", "country6", "country7"],             "role": ["role1", "role2", "role3", "role4", "role5"]         }     } }   below is what I've tried:  mainClass.java  BufferedReader inventoryItems = new BufferedReader(new FileReader("./src/inventory.txt")); Response response = gson.fromJson(moduleReader, Response.class);  String[] role_in_subChain1 = response.getInventory().getSubChain1().get("subChain1").getRole();  String[] role_in_subChain2 = response.getInventory().getSubChain2().get("subChain2").getRole();  List<String> chain_in_subChain3 = response.getInventory().getSubChain3().get("subChain3").getChain();  String name = response.getInventory().getName();   response.java  class Response { Module inventory; //getters and setters }  class Module{ String id; String name; String image; String color; Map<String, chain1and2> subChain1; Map<String, chain1and2> subChain2; Map<String, speciality> subChain3; //getters and setters }  class chain1and2{ String[] role; List<String> location; //getters and setters }  class speciality{ List<String> chain; List<String> role; List<String> location; //getters and setters }


Delete all occurrences of a char from linked list

I am trying to delete the char from the linked list, but I am getting a null pointer error when I return the object. Can someone please tell me what I am doing wrong?  Here is the code:  public class Answer implements QuestionInterface { @Override public SchNode func(SchNode head, char ch){     SchNode temp=head,temp1;      while(temp!=null){         if(temp.ch==ch){                 head=head.nextNode;         }         else if(temp.nextNode.ch==ch){             temp1=temp.nextNode;             while(temp1.ch==ch){                 temp1=temp1.nextNode;             }             temp.nextNode=temp1.nextNode;          }         temp=temp.nextNode;      }     return head;      } }


Getting errors while trying to install packages through pip

I am getting errors below while trying to install packages through pip. Could you please help me getting rid of them?


How can I run some script and have print result in console window? Now I have these results only in System Console Window.


How to write test class for Schedulable class

global class ScheduleBatch implements Schedulable {      global void execute(SchedulableContext sc) {       BatchArticleUpdateCase batch = new BatchArticleUpdateCase();        database.executebatch(batch);     }     Public static void SchedulerMethod(){      } }


How to get input volume level value in mac?

As the title says, is there a way to get the input level in mac?    I want to get the value indicating in the input level bar(System Preferences -> Sound -> Input) in the pic.  Is it possible?  There are solutions on how to set the input and output volume but I can't find any solution to get the input level value.


Question is to prove that :     $Q_8$ is isomorphic to a subgroup of $S_8$, but not isomorphic to a subgroup of $S_n$ for $n\leq 7$.   I see that $Q_8$ is isomorphic to subgroup of $S_8$ by left multiplication action.  Hint given was to prove that stabilizer of any point contains $\{\pm 1\}$.  To prove Cayley's theorem, stating any group is isomorphic to a subgroup of $S_n$ we take action of given group on a set $A$ having same cardinality.  with that motivation I want to check if there is a Isomorphism then there is a map from $G\times A \rightarrow A$. i.e., $G$ gives a permutation group $S_A$.  I tried in same manner. Suppose $Q_8$ is isomorphic to subgroup of $S_n$ with $n\leq 7$  then it should come from a group action of $Q_8$ on a set of cardinality atmost 7.   Suppose $Q_8$ acts on a set $A$ with possible cardinality at most 7.  $stab(a)=\{g\in Q_8 : g.a=g \forall a\in A \}$  $cl(a)=\{g.a : g\in Q_8\}$  I know number of elements in class of $a$ equals to index of stabilizer.  As $cl(a)=\{g.a : g\in Q_8\}\in A$ i.e., $cl(a)\subseteq A$ and as $|A|\leq 7$ i see that $|cl(a)|\leq 7$.  But, $|cl(a)|=|Q_8:stab(a)|$ for any element $a\in A$.  So, $|Q_8:stab(a)|=|cl(a)|\leq 7$ for all $a\in A$.   So, $stab(a)$ should be non trivial subgroup of $Q_8$ if not then $|Q_8:stab(a)|=8$  non trivial subgroup (proper) of $Q_8$ contains $\{\pm1\}$.  So, In the worst case, $\{\pm 1\}\subseteq stab(a)$ for all $a\in A$.  As $Ker(\eta)=\cap_{a\in A}stab(a)$ (where $\eta$ is the action of $Q_8$ on $A$)   we see that $\{\pm 1\}\subseteq Ket(\eta)$ which means that $Ker(\eta)$ is non trivial.  thus there is no isomorphism (coming from $\eta$) between $Q_8$ and any subgroup of $S_7$.  I would be thankful if someone can check whether my approach is correct or if there is any other simple possible way.  P.S : Usually what i do to see whether two groups are isomorphic or not is to check for cardinality, abelian property, no of elements with same order and so on. But I was having no idea when i fail in all these ways. With this Group actions i could see possibility for getting a precise conclusion on Isomorphisms.I would like to Thank Mr. Jyrki Lahtonen (a user of Math.SE) who made me to get used to Group actions.  P.S $2$: If any thing is wrong in my idea, it is entirely my fault, and if anything is correct in this whole credit should go to Mr. Jyrki Lahtonen


Anachronistic equivalent for regional disparity

Is there an equivalent term to anachronistic when referring to regional disparities between concepts rather than chronological ones?


How to prove this conclusion of a uniform distribution

$X_1,X_2,$.....are i.i.d standard uniform U(0,1),let $$N:=\min\{n \ge2 | X_n>X_{n-1}\}$$ $$T=\min\{n \ge 1 | X_1+...+X_n>1\}$$  We have conclusions that:   $\mathbb{E}[N]=e$ $\mathbb{E}[T]=e$   Conclusion 1 is easy to prove, but how about 2?


Proof that ideals in $C[0,1]$ are of the form $M_c$ that should not involve Zorn's Lemma

I am learning abstract algebra by myself using Dummit & Foote, and sometimes by working very hard I find very complicated non-proofs of things and I have no idea if they are the best or the worst ideas for those kind of things out there (obviously if they're not working they're probably wrong, but maybe not!). So I feel like talking about it and see what the audience thinks about it. Hence I am asking for a full solution only if you don't feel like giving a hint. If a hint has been given please don't try to come up with the answer and wait for me to accept.  So here's the exercise (page 259, Dummit & Foote's Abstract Algebra) :  Let $R = C[0,1]$ with addition and multiplication as the ring operations. For each $c \in [0,1]$ define $M_c = \{ f \in R \, | \, f(c) = 0 \}$.   It can be easily seen that $M_c$ is a maximal ideal of $R$ because $f(x) = (x-c) \in M_c$ and if $g \notin M_c$ then $g(c) \neq 0$, thus $f^2 > 0$ everywhere except at $c$ and $g^2(c)> 0$, hence $f^2 + g^2$ is a strictly positive continuous function, and since any ideal $I$ such that $M_c \subsetneq I \triangleleft R$ is such that $(M_c,g) \subseteq I$, $f^2 + g^2 \in (M_c,g)$, thus $f^2 + g^2$ is a unit in $(M_c,g)$ and that means that for every $g \notin M_c$, $R = (M_c, g) = I$.   Using this trick with $f^2 + g^2$ I wanted to show the following :  Prove that if $M$ is any maximal ideal of $R$ then there is a real number $c \in [0,1]$ such that $M = M_c$.  I tried considering $K(g) = \{ c \in [0,1] \, | \, g(c) = 0 \}$ and then defining decreasing sequences $K(g) \supsetneq K(g_1) \supsetneq K(g_2) \supseteq \dots$ (using the $f^2 + g^2$ trick) and then looking at the intersection of all those $K$'s but that got me to the weird need of using Zorn's Lemma and got me depressed after multiple tries. Also tried to use the fact that $R/M_c$ is a field but even if I had shown that it was isomorphic to $\mathbb R$ it wasn't clear what I could do in that direction so I gave up pretty fast on that one.   Any hints are welcome!


If a black hole bends light what does to a beam that arrives at a zero degree angle directly towards the singularity?

We can only speculate what is going on but does the black hole singularity make the light arrive faster than it would in space not affected by gravity?


I have been running into a problem where some of my doubles have been assigned the value -1.#IND, and I have absolutely no idea what it means or how exactly to catch it.  Any help on the issue would be much appreciated.  Kind Regards, Alex


What is the principle circulating sugar in the blood and is the major energy source of the body?


Showing $f: S^1 \rightarrow S^1$ has certainly $k-2$ other fixed points, besides $x_0$

I have a similar question to what was asked already   But I do not really understand the answer there.  The problem is: Let $x_0 \in S^1$ and let $f: S^1 \rightarrow S^1$ be a continuous map with $f(x_0) = x_0$. Suppose moreover that the induced map $f_{*} : \pi_1 (S^1, x_0) \rightarrow \pi_1 (S^1, x_0): [g] \mapsto  k [g]$ for some $k > 2$.   (i) Show that there are certainly $k-2$ other fixed points for $f$ besides $x_0$. (hint: consider $f$ as being a map $f^{'}: I \rightarrow S^1$ with $f^{'} (0) = f^{'} (1) = x_0$ and study the lifts of $f^{'}$ to the universal covering space $\mathbb{R}$.)  (ii) Give an example of such an $f$ with precisely $k-1$ fixed points (of which $x_0$ is one).   I do not understand the hint really. How can we consider $f$ as the map $f^{'}$? And why would we do this?   I know that the fundamental group of the circle is $\mathbb{Z}$, and that every covering of $S^1$ is regular. If $p: \mathbb{R} \rightarrow S^1$ is the standard covering map, then the covering transformations are the homeomorphisms $\mathbb{R} \rightarrow \mathbb{R}: x \mapsto x + n$, for $n$ an integer. But I'm not sure how this will help me.   An elaborate answer is appreciated.


On the new user profiles, there is a link for helpful flags. When you click on it, it takes you to your flagging summary.  If you have zero helpful flags, either because you've never flagged anything or because your flags are either pending or were not deemed helpful, it's not a link!  This should be a link regardless of whether you have any helpful flags or not. If you haven't flagged, it should just go to a blank page that says "This user has never flagged anything".


(How) Can I define font size in math environment universally to effect equation, align or displaymath(\[...\]) etc, but not the inline math? Current, I am doing as:  \documentclass{beamer} \begin{document} Normal text \begin{align} F&=ma\\ E&=mc^2 \end{align}\scriptsize Script text \begin{align} F&=ma\\ E&=mc^2 \end{align} \normalsize \end{document}   to put the equations in scriptsize, which is working.  But, can I (I have my custom theme file) add this in theme file so that the change in fontsize is inbuilt?


How to recover data from Intel SSD 320 Series

I have an Intel SSD 320 Series 600GB. A few days ago, my system froze because of some irrelevant failure and I had to force the computer to turn off. When I attempted to reboot the computer, my SSD no longer had any data on it. On further analysis, it was actually reporting itself as a 8 MB unit with no data or partitions.  I started doing some research and I found out that the 320 Series SSDs from Intel have a firmware bug that can render them bricked to an 8MB unit when some circumstances occur, like an unexpected power failure. The only solution I could find to ONLY recover the unit, was to erase the unit following the .  As for the data, no one seems to know of a way to recover it. Intel recommends a few companies that charge between $1,000 to $10,000 but offers no solution at all for their bug's consequences. I'm not saying my data is not worth that, but I simply don't have that kind of money right now. I have backups from about 1 month ago, but this month I had a lot of work I really want to recover.  I have tried with several programs (GetDataBack, RTT Studio, tools provided by other data recovery companies, etc.) but none of them can find a single file or folder after a 2 hours scan.  Can you think of a way to recover my data? I really hope you do. :-(  Thanks in advance for any suggestions.


What are the disadvantages of non-standard analysis?

Most students are first taught standard analysis, and the might learn about NSA later on. However, what has kept NSA from becoming the standard? At least from what I've been told, it is much more intuitive than the standard. So why has it not been adopted as the mainstream analysis, especially for lower-level students?


Subcaption: Vertical alignment of two images of different vertical size

I want to place two images of different size next to each other. Both shall have individual subcaptions. Everything works fine. My only question is: how can I center the smaller image vertically with respect to the higher image?  \documentclass[a4paper,10pt]{scrreprt} \usepackage[T1]{fontenc} % \usepackage[utf8]{inputenc} \usepackage[latin1]{inputenc} \usepackage{geometry} \geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm} \usepackage{subcaption} \usepackage{tikz}  \begin{document}  \begin{figure}[htbp] \centering \hfill \begin{subfigure}[b]{0.48\textwidth} \centering \includegraphics[height=.22\textheight]{example-image-a} \caption{Subcaption left} \end{subfigure} \hfill \begin{subfigure}[b]{0.48\textwidth} \centering \includegraphics[height=.18\textheight]{example-image-b} \caption{Subcaption right} \end{subfigure} \hfill \caption{Caption} \end{figure}  \end{document}