Slow boot issue due to plymouth-quit-wait.service + ubuntu 18.04

This is freshly installed machine running as dual boot over Win 10.  For every reboot machine hangs for 15 secs as the plymouth service unable to start, due to some reasons.    ENv:-      Manufacturer: Dell Inc.     Product Name: Precision 5820 Tower     Ubuntu 18.04      4.15.0-29-generic      vendor   : NVIDIA Corporation     model    : GP104GL [Quadro P4000]   Below is the systemd-analyse output snippet  sudo systemd-analyze blame      14.405s plymouth-quit-wait.service       8.843s dev-sdb4.device       8.049s NetworkManager-wait-online.service       5.305s bolt.service       4.889s snapd.service       4.243s udisks2.service       4.092s grub-common.service       3.806s networking.service       3.780s ModemManager.service       3.325s dev-loop10.device       3.295s apparmor.service       3.190s dev-loop13.device       3.162s accounts-daemon.service   Here is the few snippet of boot logs   Feb 18 11:37:42  polkitd[876]: started daemon version 0.105 using  authority implementation `local' version `0.105' Feb 18 11:37:42  dbus-daemon[820]: [system] Successfully activated service 'org.freedesktop.PolicyKit1' Feb 18 11:37:42 systemd[1]: Started Authorization Manager. Feb 18 11:37:42  accounts-daemon[801]: started daemon version 0.6.45 Feb 18 11:37:42  systemd[1]: Started Accounts Service. Feb 18 11:37:42  systemd[1]: Received SIGRTMIN+20 from PID 394 (plymouthd).   Here is the delay   Feb 18 11:37:57  nvidia-persistenced: The daemon no longer has   permission to remove its runtime data directory /var/run/nvidia-   persistenced  Feb 18 11:37:57  nvidia-persistenced: Shutdown (1206)  Feb 18 11:37:57  systemd[1]: Stopped NVIDIA Persistence Daemon.  Feb 18 11:37:58  gdm3: Child process -1088 was already dead.  Feb 18 11:37:58  systemd[1]: Stopping User Manager for UID 121...  Feb 18 11:37:58 systemd[1]: Received SIGRTMIN+21 from PID 394 (plymouthd)  sudo systemctl status plymouth-quit-wait.service ● plymouth-quit-wait.service - Hold until boot process finishes up  Loaded: loaded (/lib/systemd/system/plymouth-quit-wait.service; static; vendor preset: enabled)  Active: inactive (dead) since Mon 2019-02-18 11:37:58 +04; 7min ago Main PID: 943 (code=exited, status=0/SUCCESS)  Feb 18 11:37:43  systemd[1]: Starting Hold until boot  process finishes up... Feb 18 11:37:58  systemd[1]: Started Hold until boot  process finishes up.   Graphics driver installed latest version - 415 from ppa repository  ii  nvidia-compute-utils-415                   415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA compute utilities ii  nvidia-dkms-415                            415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA DKMS package ii  nvidia-driver-415                          415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA driver metapackage ii  nvidia-kernel-common-415                   415.27-0ubuntu0~gpu18.04.2          amd64        Shared files used with the kernel module ii  nvidia-kernel-source-415                   415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA kernel source package ii  nvidia-prime                               0.8.8.2                             all          Tools to enable NVIDIA's Prime ii  nvidia-settings                            415.27-0ubuntu0~gpu18.04.1          amd64        Tool for configuring the NVIDIA graphics driver ii  nvidia-utils-415                           415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA driver support binaries ii  xserver-xorg-video-nvidia-415              415.27-0ubuntu0~gpu18.04.2          amd64        NVIDIA binary Xorg driver   Can you let me know why there is a delay happening due to plymount-quit service? Please let me know is there any other info you would require for troubleshoot?  Is it related to hardware / software /grahics driver issue?   Thanks


The following is a question I've made myself, but I need help in solving it:  Suppose there are 100 balls in a box. 20 balls are blue, 30 balls are green and 50 balls are yellow. Now we randomly pick out 10 balls out of the box (one ball after the other) and we don't put the balls back in the box.  What's the probability of the 10th ball being picked having color blue?  I tried thinking of all the possibilities of the the 10th ball being blue, divided by all of the possible combinations. I tried for several hours and couldn't figure out neither of them. Help is appreciated!


Calulated column displays html markup sharepoint 2013

I am experiencing an issue with a calculated column that presently returns html markup for the purpose of KPI in sharepoint 2013. It was working well, all of a sudden it started displaying the raw html tags. I dont know what to do. Is there a setting that had to be adjusted from site settings or what?  See my calculated markup on column Name: KPI, Datatype: Calculated, Datatype return for calculated field: Number  Code:  =IF(C_RemedialStatus=1,"
•
",IF(C_RemedialStatus=0,"
•
"))   I need someones help at this time.


I tried to solve this problem but I could not continue  Let $f: [a, b]\to \mathbb{R}$ be a continuous function.  Prove that if $x_1, x_2,\ldots,x_n  \in (a,b)$, then exists $x_0 \in (a, b)$ such that $$f (x_0) =\frac{f (x_1) + f (x_2) +\cdots + f (x_n)}{n}$$  the function is continuous, so $\forall\ x_1, x_2,\ldots,x_n  \in(a, b)$ $$\begin{align*} \lim_{x \to \ x_1}f(x)&=f (x_1)=L_1\\ \lim_{x \to \ x_2}f(x)&=f (x_2)=L_2\\ \lim_{x \to \ x_3}f(x)&=f (x_3)=L_3\\ &\vdots\\ \lim_{x \to \ x_n}f(x)&=f (x_n)=L_n\\ \end{align*}$$  We have that:  $$\lim_{x \to \ x_0}f(x)=f (x_0)=\frac{f (x_1) + f (x_2) +\cdots + f (x_n)}{n}= \frac{1}{n}\sum_{j=1}^n f(x_j)$$ Now $$\min\left \{ L_1,L_2,L_3,\cdots,L_n \right \}\le\frac{1}{n}\sum_{j=1}^n f(x_j)\le\max\left \{ L_1,L_2,L_3,\cdots,L_n \right \}$$  and at this point I'm lost ...


Can a dichotomous variable (yes/no) be merged with a Likert measure (1,2,3,4) using z scores?

I would like to create a composite scale using items that measure parent communication extracted from a UK panel survey (n=941). However although all 6 variables in question measure similar constructs - 2 of the items are dichotomous (yes/no) the other 4 are likert (1,2,3,4). My intention is to transform the 6 variables to z scores and then sum them to form the composite score which will be used in a path analysis.  I need to know if it is correct to do this, i.e., merge dichotomous variable (yes/No) and Likert scale (1,2,3,4) after they have been standardized to z scores.    Pending this being ok, would it be necessary to do an exploratory factor analysis to ensure the the composite scale measures one underlying construct or it is enough to do a reliability analysis?  This analysis is forming part of my PhD so I need to defend what I am doing and I would appreciate any guidance anyone can give me.


Can a developer make an app that can be controlled with Siri?

Example: A commute planer app could take a start and destination from you, through Siri, and plan your trip. Would be very useful, especially when you're in a hurry.


Is there an analytic function (on the open unit disk) satisfying $\forall k \in \mathbb{Z}^+\left[f(\frac1{2k})=f(\frac1{2k+1})=\frac1{2k}\right]$?

Although I could be wrong, I suspect the question in my title will be answered in the negative.  Let $f:D \to \mathbb{C}$, where $D$ is the open unit disk. Assume that $\forall k \in \mathbb{Z}^+\left[f(\frac1{2k})=f(\frac1{2k+1})=\frac1{2k}\right].$ Assume further that $f$ is analytic on $D$. I will try to derive a contradiction.  By continuity of $f$, I see that $f(0)=\lim\limits_{k \to \infty}f(1/2k)=\lim\limits_{k \to \infty}(1/2k)=0.$  I also see that $f'(0)=\lim\limits_{h \to 0} \frac {f(h)} h=\lim\limits_{k \to \infty} \frac {f(1/2k)} {1/2k}=1$.  Since the zeroes of a non-identically-zero function are isolated, $\exists r>0[0<|z|<r \to f(z)\neq 0] $  Is there a way to derive a contradiction from the above statements?


Do scientists generally use their name in their discoveries themselves or does someone else do them the honors?

For example, was the term Newtonian physics coined by Newton himself or by someone else? What about Hamiltonian or Langrangian physics?


Did Thanos pick them on purpose or was it random?

At the end of ,     Thanos' plan comes to fruition as people begin disintegrating, including Bucky Barnes, Drax, Groot, Mantis, Maximoff, Parker, Quill, Strange, T'Challa, and Wilson.    Could this be caused by Thanos' direct manipulation or does it happen without Thanos' interaction but as some random event?     The heroes getting disintegrated, was it because it was Thanos's choice to complicate the possible regrouping of the Avengers/Heroes or was it just random?


How Triangle Law and Parallelogram law of addition of Vectors are different?Ain't they.  Please don't tell me the things written in book......give me the appropriate reason.And how do i distinguish between the two while adding vectors,what am i trying to say is i get really confused where to use parallelogram law and where triangle law  P.s:my basics are really weak though!May be the question might not be right


Limitations on the Conjurer's Minor Conjuration ability

There are some clearly defined limitations already on the Wizard School of Conjuration's Minor Conjuration feature, however...  Does normal "wear and tear" count as damage?  (e.g. I'm in a fight without a weapon, and create, say, a dagger or club.  Will it hold up through the fight?).  How about a bottle of ink?  Does dipping my pen into it and writing a quick note "damage" the ink?  Is it one piece?  ( e.g., can I use it to make a temporary replacement for a set of Thieves' Tools (which is 'an item' on the equipment list) or is it limited to one contiguous item, such as a skillet, or a coil of rope?)


Here, we suppose that $x,y\in\mathbb{R}$ and that $x^n=y^n$, where $n$ is odd. I want to prove that $x=y$.  Maybe we can use that $x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+...+xy^{n-2}+y^{n-1})$  So, it suffices to show that if $x^n=y^n$ then $x^{n-1}+x^{n-2}y+...+xy^{n-2}+y^{n-1}\neq 0$  Any hint?


Well-behaved \qedsymbol like for example environment

I would like to have a symbol like \blacksquare at the end of the environment \newtheorem{example}{Example}. However, this symbol should be well-behaved in presence of formulae (i.e. no white space between the formula, and the symbol).  For example, the following line of code does not behave correctly, as can be easily checked.  \documentclass[11pt]{article}  \usepackage{mathtools}  \newcommand\xqed[1]{%   \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill   \quad\hbox{#1}} \newcommand\demo{\xqed{$\diamond$}}  \newtheorem{example}{Example}  \begin{document}  \begin{example}  \begin{align*} f(x) &= \bigg( g(x) \bigg) \\ h(x) &= \bigg(r(x) \bigg). \end{align*}  \demo \end{example}  \end{document}      How can I achieve what I am looking for?   Any feedback is greatly appreciated. Thank you for your time.


I have a problem with disk space on my dedicated server. I have no disk space available on partition /  root@server1:/# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/root        96G   96G     0 100% / devtmpfs         63G     0   63G   0% /dev tmpfs            13G  504K   13G   1% /run tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs            37G     0   37G   0% /dev/shm /dev/md2        301G   65G  221G  23% /srv   When I mount /dev/root to /srv/checkmount and check size this partition   root@server1:/srv# du -h /srv/checkmount/   Then command returns:  11G     /srv/checkmount/   Can anyone help me with this problem?


Homotopically equivalence of two simple connected covering spaces

Good afternoon, Please, I would like you to help me with a solution to this problem, if you want: Let $ \widetilde{X} $ and $ \widetilde{Y} $ be two simply connected covering spaces for linearly connected and locally connected spaces $X$ and $Y$, respectively. Show that if $ X\simeq Y $ (homotopically equivalent), then $ \widetilde{X}\simeq\widetilde{Y}$. I tried to start from the definition of the concept of covered space and from the definition of the homotopically equivalence between two spaces. Along with these, I read the definition of the concept of lift maps, with the results of existence and uniqueness, but, unfortunately, I fail to build the connection between all of  these.


how many element of order 2 and 5 are there

$G=Z_{10}\times Z_{15}$ Then $G$ contains exactly    one element of order $2$ five element of order $3$ 24 elements of order $5$ 24 elements of order $10$   what I think is 1 is correct, not able to guess others.


How to calculate $\lim_{x\to \infty} \Big[\sin(\sqrt{x+1}) - \sin(\sqrt{x}) \Big]= \,?$

Can you help me to calculate this limit?  $$\lim_{x\to \infty}\Big[\sin(\sqrt{x+1}) - \sin(\sqrt{x}) \Big]= \:?$$  I don't have idea how to calculate it.


I'm on Kubuntu 11.04, and deleting in Krusader I get "Thrash has reached maximum size" even when I have 10M in ~/.local/share/Trash/files. So my question is why is that? How do I set the allowed size of the trash bin?


Why does changing "class" to "struct" for a hasher work for `unordered_map, int, pair_hasher>`?

class pair_hasher {      template <class T1, class T2>      size_t operator()(const std::pair<T1, T2>& p) const     {          auto hash1 = hash<T1>{}(p.first);          auto hash2 = hash<T2>{}(p.second);          return hash1 ^ hash2;      }  };  int main()  {      std::unordered_map<std::pair<int,int>, int, pair_hasher> ht;     return 0;  }   When I compile the above I get In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:384: /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:868:5: error: static_assert failed due to requirement       '__check_hash_requirements<pair<int, int>, pair_hasher>::value'       "the specified hash does not meet the Hash requirements"     static_assert(__check_hash_requirements<_Key, _Hash>::value,     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__hash_table:883:1: note: in instantiation of template class       'std::__1::__enforce_unordered_container_requirements<std::__1::pair<int, int>, pair_hasher,       std::__1::equal_to<std::__1::pair<int, int> > >' requested here typename __enforce_unordered_container_requirements<_Key, _Hash, _Equal>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:828:26: note: while substituting explicitly-specified       template arguments into function template '__diagnose_unordered_container_requirements'     static_assert(sizeof(__diagnose_unordered_container_requirements<_Key, _Hash, _Pred>(0)), "");                          ^ test.cpp:241:52: note: in instantiation of template class 'std::__1::unordered_map<std::__1::pair<int, int>, int,       pair_hasher, std::__1::equal_to<std::__1::pair<int, int> >, std::__1::allocator<std::__1::pair<const       std::__1::pair<int, int>, int> > >' requested here     unordered_map<pair<int,int>, int, pair_hasher> ht;                                                    ^ 1 error generated.  If I change the type of pair_hasher from class to struct, it compiles. Why does class not work here? The compiler error indicates it does not meet the requirements of a hashing function for unordered_map, but it's not clear to me why this is the case.


The name of the logic fallacy of "We don't know the answer, therefore x is the answer"

I can not remember the name of this logical fallacy. The fallacy suggests that when there is a lack of knowledge on a subject it is because, either: a rational answer does not exist, or a answer without any need for proof exists.  Example:   "We can't explain why the lamp just moved, therefore it must be supernatural." In the History Chanel TV programme "Ancient Aliens", the logic "no one can explain it, therefore it must be aliens"   Examples 1 and 2 have subtle differences and might have different names.


In TeX Live there are TEXMFLOCAL for admin and TEXMFHOME for user pre-defined, but in MiKTeX there’s by default no local texmf tree installed, though it is useful, cf. . Therefore my question:  How do I create a local texmf tree in MiKTeX?


An "Updated on" field that records the last time that a particular column changed

Is it possible to create a "last updated" field under Google Sheets?  I have a status column, where the status progresses something like:      New -> Pending -> Started -> Done   I would like to add a "status last changed on XXX" column, where XXX would be a timestamp for when the status was changed, so that then I can filter for example anything that hasn't changed status in over a week (or color-code it/etc.)   I know I can in theory look this up under the revision history, but that is quite a tedious work-around  I am looking for a way that if a single cell is modified, then another specific cell will be updated with the current timestamp


My Launcher and Panel are gone in Ubuntu 14.04. I have already tried:    Update my software Reinstall nvidia drivers Play with confizconfig Reset Unity   None of those worked, similar to other threads, the Guest account looks alright while mine does not.


I just bought my new MSI laptop and shortly after i instaled windows 7 ultimate i found out that my keyboard is crazy. All buttons are mixed but in a very unique fashion that i cant relate to anything.  If i push all the buttons from 1 to backspace like 1234567890-= i will get 976P4 and button 7 is a scroll lock button and button 6 i guess is tab cause its highliting "file" in the notepad. Spacebar acts like a backspace and backspace acts like a 3 on a numberic keypad. How do i know that? it normally types 3 but if i press numlock on "screen on keyboard" it starts to act like PgDn.  The whole thing was also present in BIOS and in windows instalation but i ignored it thinking that it would go away after instaling windows. Now i cant even boot my laptop from a disc as if laptop didnt respond to me pushing f8.


Allow space with alphanumeric rule in jQuery Validator

I'm using jquery validator alpha numeric rule but i want to allow space but right now the issue is when i give space it shows error, my main requirement is i don't want user to enter special characters ore symbols in text fields, my code is like this: <form id="myform">     <input type="text" name="field" />     <br/>     <input type="submit" /> </form>   Script:  $(document).ready(function () {              $('#myform').validate({ // initialize the plugin             rules: {                 field: {                     required: true,                     alphanumeric: true                 }             },             submitHandler: function (form) { // for demo                 alert('valid form submitted'); // for demo                 return false; // for demo             }         });          });


Why does $\lim\limits_{x \to \infty}{\frac{a^x}{x!}}\;,\;a \in \mathbb{R}^+,$ approach $0?$

I'm currently writing a paper about numerical analysis and at one point I needed to calculate  $$\lim\limits_{x \to \infty}{\frac{a^x}{x!}}\quad \text{with} \quad a \in \mathbb{R}^+$$  Based on the fact that $x!$ goes faster to infinity than $a^x,$ I thought that it would approach zero, but this isn't really a proof, only a thought. So I'd appreciate it if you'd be able to help me with proving this.


How to sketch the region on the complex plane?

I am going through a basic course on complex analysis. I have a problem in understanding the following. E $\subset\mathbb{C}$ is defined as $$E := \{z\in\mathbb{C}:\vert z+i \vert = 2\vert z\vert \}$$ I want to know if this set is connected, closed, bounded but I do not know how to sketch this set or visualize it.


I'm trying to clamp a value between a minimum and maximum value.  If this were a formula, I'd expect it's usage to be =CLAMP(value, min, max).  From what I know, there's two approaches, nether of which I like.  1) IF / ELSE  Use =IF(value<min, min, IF(value>max, max, value)). This is my current approach, but it has a huge downfall: the replication of value. In my use case, my value is not a short and sweet cell reference, it is instead a complex formula, which has nested "clamp" like features within it as well.  Because I want a single-cell solution, this requires that my formula be nearly 8,000 characters long. It could be made significantly shorter (about 9 times shorter in my case) without the replication of value.  2) MEDIAN I know of the Median Trick: =MEDIAN(value, min, max). Typically, this is what I use, but it too has a huge downfall: it doesn't play nice with Array Formulas (which I'm using).  All of my data is in a table. As such, everything is packed nicely in a grid. However, if you prompt the Median Function to find the Median of a grid, it will do just that, which isn't what I want.  Let's say that I wanted to add up the medians of three rows of data:  0 1 2 3 4 1 2 3 5 7 1 2 4 9 16   Now, I want the median of each row, individually:  0 1 2 3 4 -> 2 1 2 3 5 7 -> 3 1 2 4 9 16 -> 4   And I want to know their sum:  2 + 3 + 4 = 9  So I'll just use =ARRAYFORMULA(SUM(MEDIAN(A1:C5)), right? Wrong.  Instead, the median function returns 3, because that's the median of all 15 values. So clearly, that's not what I want.  Conclusion  I need an Array Formula-Safe method for clamping a value between a minimum and maximum without repeating the value, minimum, or maximum.  If you have a solution that does repeat, but it is better than the IF / ELSE option, I'm all ears. My minimum and maximum are just direct cell references, so repeating them wouldn't be as bad.  Note: I've tried doing this in Excel too, with no avail.


The sides of a triangle are $a,b,c$, which are integers, and $a\le b\le c$. If $c$ is given, find the number of triangles possible?

The sides of a triangle are $a$, $b$, and $c$ inches, where $a$, $b$, and $c$ are integers and $a\le b\le c$. If $c$ is given, find the number of triangles possible.  I don't know from where to start this question. Please provide the solution.


How to mark an angle using the angles library of pgf 3

I currently adapting tkz-euclide with pgf 3 and I do not see how to mark an angle with tikz without tkz-euclide  with tkz-euclide :  \documentclass[a4paper]{article} \usepackage{tkz-euclide} \usetkzobj{all}  \begin{document}     \begin{tikzpicture}     \tkzInit     \tkzDefPoint(2,1){S}     \tkzDefPoint(7,3){T}    \tkzDefPointBy[rotation=center S angle 60](T)\tkzGetPoint{P}        \tkzLabelPoint[above right](P){$P$}    \tkzLabelPoint[below right](S){$S$}    \tkzLabelPoint[below right](T){$T$}    \tkzDrawPoints(S,T,P)    \tkzDrawLines(T,S S,P)    \tkzMarkAngle[size = 2,mark = ||,arc=l,double,color = blue](T,S,P)%    \tkzLabelAngle[pos = 1.5](T,S,P){$60^{\circ}$}% \end{tikzpicture} \end{document}    with only tikz :      pic["$\alpha$", draw=blue, -,double, angle eccentricity=1.5,      angle radius=2cm] {angle = T--S--P};   but now how to put the mark ? I try with decoratebut without success !


Is there an English sentence 'equation' I can use?

I'm working on a chat-bot, however before I can do so, I need to understand the English language a lot better, in order to make the bot understand. Say I have 'The quick brown fox jumped over the lazy dog,' I have the adjectives quick, brown, and lazy, and two nouns, fox and dog. That makes a complete sentence, however how can I identify a sentence assuming I only know the structure of the English language, and punctuation, but not what the words are (yet)?  Alternatively, I COULD get a dictionary library to find the type of word each word is individually, and format it such as 'The ADJ ADJ NOUN VERB(past) over the ADJ NOUN' and go from there, however then I need to translate 'the' and 'over the' to a readable format.  Is there any type of English 'equation' for formatted sentences which I could use? Potentially in a RegEx expression of sorts?


Will combat damage trigger fight abilities?

I've seen questions about if fighting damage is combat damage, but I don't think this is the same thing. The other questions I saw were asking if fight damage will trigger combat abilities. They say they're separate from each other, and nothing in the official rules say anything about my dilemma.  My question involves a . When it's played, it will fight target creature, like . Because it's fighting, it triggers its second ability to give it two +1/+1 counters at the next end step.  So my question is, will creatures attacking during the combat step trigger the Foe-Razer Regent's second ability? Or will it only be things like Savage Punch, where it says fight.


Turn off text message (SMS) sync to Exchange email account

I recently started using a Samsung Galaxy S4 and one of the features in a synchronization between text messages and email accounts.  When a text message comes in it throws a copy into my Exchange email accounts that are one the phone. I want to turn this feature off but cannot find a setting for it anywhere.  Any ideas?


In Wild Shape for druid5/barbarian1, how does unarmored defense work?

Background: My Hill-dwarf character started out as a barbarian.  When his clan battled the undead hordes, he barely escaped with his life.  He was taken in by a druid, and discovered a higher calling.  Druid society is a contradiction in terms, except its not, because druidcraft and druidic exist.  They aren't normal norms, but they exist.  He grew up to his current level, and was sent "walkabout".  He has strength, but he is also a bit naive.  So he is out adventuring, trying to be meaningful in the world. The problem: I'm trying to figure out what his role in battle is.  Back-line (heals, spells), front-line (tank, ...), or what?  In our game (Storm Kings Thunder?) we are going up against giants.  We took on a pair of fire giants.  We took on a half-dozen hill giants.  Those things lay out damage, and wild-shape doesn't seem up-to-par.  I'm trying hard to not die. The question: Does the barbarian unarmored defense, which is class and not race based, which adds dex bonus and con bonus to race base AC, apply to wild shape? Thoughts: There is an argument to be made that non-hominid forms might have a very different unarmored defense than anthropomorphic forms.  An effective unarmored defense for a dire wold might look very different from, and be non-intuitive to a non-wolf. Possibly related questions:    (The 10 is the base AC for human/dwarf/elf.  A wild-shape creature, such as a wolf, has a higher base AC.  Why would the wild shape bonus for a base human AC apply?  If the wolf has higher dex, for instance, and the character in that form is more capable of exploiting it than a base creature of that form, which is the essence of unarmored defense, then why would the unarmored be based against 10.)  I'm asking for justification, not just "what is the rule", and in that way my question is meaningfully deeper than the other one.   UPDATED QUESTION: The answer is given that you can choose the best between the creatures or 10 + dex + con. Where does the "10" come from, and why is it the correct base? What    is the "physics" that makes the wild-shaped druid retain the 10? One thinks of the "mean" for (barberian) humanoid AC as 10.  If Dex and Con were bad it would be lower.  If they were great it would be higher.  Why would the "mean" for Spider not be 14?  As a race they are fast, but a slow spider might have lower, while a very fast spider might have higher.


Limit of a Sum with Reciprocal Binomial Coefficients

I was trying to evaluate the limit of the sum $$\lim_{n\to\infty} \sum_{i=0}^n \frac{1}{_nC_i}$$ My first idea was, since the number of terms grows but the size of each term shrinks as $n \to \infty$, to turn this into an integral, because an integral is basically the same thing. But I'm not quite sure how to turn this into an integral, and I don't even know if it can be done.  Can it be done this way? If so, can I have a hint as to how?  If not, how could I find this limit? Just by observing its values, it seems to approach $2$, but again, I can't figure out how to show that.


I want to generate random DOB for the given range of year. So I tried the below code  private static String randomDataOfBirth(int yearStart, int yearEnd)     {         GregorianCalendar gc = new GregorianCalendar();         int year = randBetween(yearStart, yearEnd);         gc.set(Calendar.YEAR, year);          int dayOfYear = randBetween(1, gc.getActualMaximum(Calendar.DAY_OF_YEAR));              gc.set(Calendar.DAY_OF_YEAR, dayOfYear);             String date = null;             if(gc.get(Calendar.MONTH) == 0)             {                  date = gc.get(Calendar.YEAR) + "-" + 1 + "-" + gc.get(Calendar.DAY_OF_MONTH);             }else             {                  date = gc.get(Calendar.YEAR) + "-" + gc.get(Calendar.MONTH) + "-" + gc.get(Calendar.DAY_OF_MONTH);             }             return date;         }  private static int randBetween(int start, int end) {         // TODO Auto-generated method stub          return start + (int)Math.round(Math.random() * (end - start));     }   Main:-  public static void main(String[] args) { String dob = randomDataOfBirth(1899, 1937); System.out.println(dob); }   I can be able to generate the random DOB. But only for the Month and Day, I want to add a prefix '0' for the range from 1 to 9   Month - 01, 02, 03 and ... up to 09 Day - 01, 02, 03 and ... up to 09


How do pointer work with functions in C programming?

I have started functions unit in my C programming. I am confused with pointers with functions. I understand the normal functions without any pointers, but I am really confused with pointers functions. Let's say I have the following function:  #include <stdio.h> int functions_1(double num1, double num2);  int main(void) {      double mark1;     double mark2;     double total;      printf("Enter marks for subject one: ");     scanf("%lf", &mark1);      printf("Enter marks for subject two: ");     scanf("%lf", &mark2);      total = functions_1(mark1, mark2);      printf("Your average is: %.2f \n", total);  /*      if (total > 50) {                 printf("You have passed. \n");         }         else {                 printf("You have failed \n");         }*/     return 0; }  int fucntions_1(double num1, double num2) {      double average;     double averageTwo;      average = num1 + num2;     averageTwo = average / 200;      return averageTwo; }   How am I going to do the same thing using pointers in C programming? I am not asking you to do the coding, but I want to understand the concept! Thanks


What are the most important things I need to do to encourage Google Sitelinks?

My website used to have sitelinks and now it doesn't. It's very possible that it's due to changing the website to a sidebar design instead of having an "interstitial" type landing page which limited the number of choices, but I'm not sure.  Here is how sitelinks might look for a site:    What are some things that I can do to improve my chances of getting sitelinks?


Using restroom on airplane while fasten seatbelt light is on?

This question about  over on  made me wonder what a passenger is supposed to do when they urgently have to use the restroom while the fasten seat belt light is on. FAA regulations require passengers to obey the seat-belt sign, even if flight attendants do not.  I saw this happen on a flight where an older gentleman asked the flight attendant if he could use the restroom, and she said "not until the light is off". The flight had been free of turbulence for 15 minutes or so by this time, and the flight attendants were walking freely throughout the cabin, collecting post-meal trash, etc. The gentleman who asked to use the restroom appeared to be in quite some discomfort, and practically ran to the restroom when the light went off 10 minutes later.  So what is a passenger supposed to do when he isn't permitted to use the lavatory, when he has to go and can't wait? Just go in their seat?


Can an observer B move in such a way that his clock will run faster than that of a fixed observer A?

My understanding of Special and General Relativity comes from books which attempt to explain them to non-experts in these fields.   Let A and B be observers, which at some time t(0), are together at some location P fixed to the earth's surface. A and B are provided with "clocks", which at time t(0), are identical lumps of the same radioactive element-that has a very long half-life. A and A's "clock" remain fixed to the earth's surface. B and B's "clock" leave A and stay together, but eventually return to A after some interval of time T (as measured by A's "clock"). If, during this time T, B's velocity relative to A is sufficiently close to the velocity of light or B remains close to a sufficiently massive body, it seems that time can "pass more slowly" for B than for A. So that when B rejoins A, B's "clock" will contain more of the radioactive element than A's "clock"   My question is: Are there any scenarios that B together with B"s "clock" can undergo (during the time T) which will cause time to "pass more quickly" for B than for A? So that when B rejoins A, B's "clock" will contain less of the radioactive element than A's "clock". If there are no such scenarios, is there any fact or law in Relativity theory which rules them out?


How to power Rpi 3, Arduino Uno and IC´s with 5V 2A

I want to power a Rpi, Arduino Uno and some Ic´s and sensors parallel. My problem is how do I split the Amps over all the components that they are not damaged. Because the IC´s e.g. only can handle 50mA and the Pi a lot more.


If a kid has 4 siblings, I could ask him:   Are you the eldest? Are you the youngest? Are you the fourth child?   He could answer No, I'm the third.  I want to ask the question without specifying any number nor using eldest/youngest.  How can I ask that question?


I have an HTC Wildfire (the original, not the S version). It is supposed to have 512MB of memory. When I check my free space in the app manager I noticed I have around 185MB. Why is this?  I am using CyanogenMod which is around 80MB, if this wasn't accounted for there is still a lot of space missing. Why is my phone reporting so little?


I have read the that the group lasso is used for variable selection and sparsity in a group of variables.  I want to know the intuition behind this claim.   Why is group lasso preferred to lasso? Why is the group lasso solution path not piecewise linear?


How to create new json object from exiting one?

I want to create new json object from exiting one, because if I create from   var person1= { First Name: 'John',   Last Name: 'Smith',   age: 54,   dateofbirth: '31-08-68',  } var person2=person1; delete person2.age   This will also delete age from the person1, I don't want to delete age from person1, but person2. Because I need to initialize other person also. So How I create new json object from exiting object .


Why are alpha particles such a prominent form of radiation and not other types of nucleon arrangement?

It is said in many textbooks that alpha decay involves emitting alpha particles, which are very stable. Indeed, the binding energy () is higher than for $Z$-neighboring stable isotopes. But the binding energy is lower than, for example, ${}^9\mathrm{Be}$ (). My question is why aren't other nuclear compounds ejected from heavy nuclei, e.g. ${}^9\mathrm{Be}$?  The   $$e^{-\frac{4\pi}{\hbar}\frac{Ze^2}{4\pi\epsilon_0}\frac{1}{v_\alpha}}$$ decreases exponentially in $Z$, so it explains intuitively why lower-$Z$ particles would tunnel more often. Specifically, it would explain why we would see ${}^9\mathrm{Be}$ emission ${e^{-2}}\simeq 0.14$ times as often compared to ${}^4\mathrm{He}$ emission. Also, the particles need to form in the nucleus prior emissions; but with a similar binding energy per nucleon (~7.08 MeV for ${}^4\mathrm{He}$ vs. 6.47 MeV for ${}^9\mathrm{Be}$) and higher total binding energy for the ${}^9\mathrm{Be}$ nucleus, I would expect that its formation in the same order of prevalence as the alpha particle (according to Ohanian, between 0.1 and 1 alpha particles are in existence at any moment in time).  Can anyone explain this? A reference to an article/textbook would be preferable.  EDIT Same goes for ${}^{16}\mathrm{O}$ which is also a double magic isotope, as 'anna v' pointed out. For it, the Gamow factor is smaller by $e^{-4}\simeq 0.02$, and emission should still be viable.


I want to know how to add code tags in this editor. As an example if I want to post an answer in PHP, as soon as I type "open php" my line disappears. How to post PHP with open and close?


Regression model for proportion or count when counts of outcome and total events are often zero

I need help thinking about and identifying the kind of regression analysis that would be appropriate for this problem. Nothing I've discovered so far seems quite right. Referrals to articles or examples would be helpful. Thank you.  The data look like this:   The data are observational. The sampling unit is a geographic location (EDIT: let's assume units are independent); I'm just trying to understand the basic analytical problem here). At each sampling unit, there are events of two types: the event type of interest (A) and all other types (B). EDIT: In other words, each event is a binary outcome (success, failure). The outcomes are aggregated to the to the location level (Location 1: Success 3, Failure 2. Location 2: Success 0, Failure 1. Location 3: Success 0, Failure 0. Location 4: Success 4, Failure 9 .... etc.  Often, A=0 and, somewhat less often but still frequently, A+B=0.    I am interested in testing a hypothesis about A, somehow controlling for the total count of events (A+B), so either a proportion A/(A+B) or a count model that controls for the total count.  If I understand correctly, if the counts were large, proportions could be calculated for all units, and I could do beta regression. But that definitely can't happen when the total number of events for a unit is zero.  If all I cared about was the count, I could use a ZIP or other count model (and maybe still can). But the research question regards the frequency of A relative to the total number of events.  But how to control for the total number of events? Does it just go in the predictors of a ZIP or similar model? I suspect it's more complicated than that.  It seems obvious to me that the individual events could be modeled directly using multi-level logistic regression (EDIT: or another model for clustered data), but I'm wondering if there is a simpler way to examine what I'm interested in, and I just somehow haven't seen an example of this.


Authentication with admin password problem

I have read quite a few of the answers to password problems but am completely new to Ubuntu and can't figure this out.  I bought my computer (a Dell vostro) a few days ago, and I was trying to install some apps and it asks for an authentication code. I got as far as to check user account (only one, admin) and it doesn't seem to have a password.   I read a thread about setting a password but I don't know what "Windows Key" or "Terminal" are, so could someone please explain this?


Does the series $\sum \sin^{(n)}(1)$ converge, where $\sin^{(n)}$ denotes the $n$-fold composition of $\sin$?

I'm trying to solve the following task     Sequence $\{a_n\}$ is given by the rule: $a_1 = 1,\: a_{n+1} = \sin (a_n)$. Does the series $\sum a_n$ converge?   Can you give me any hints how to solve it, cause i got totally stuck at the very beginning, please?


What can a wizard take instead of a familiar at 1st level?

The familiar is brilliant feature for a wizard, but not for a prestige multiclassing one. Such a wizard stops upgrading his familiar once getting off the main road. So if he still wants to utilize his familiar, he should take the obtain familiar feat, but this would made the basic familiar feature redundant.  So what options can a wizard take instead of gaining a familiar at 1st level?


How to capitalize after a point the first letter of some word in bibtex

I don't know why in my references, in the title, after a point, although I've used capitalized letter, never starts with uppercase. For ex: (look at between "media" and "fractal")  Aguilera, M., Morer, I., Barandiaran, X. E., y Bedia, M. G. (2013). Quantifying political self-organization in social media. fractal patterns in the spanish 15m movement on twitter. En G. N. S. N. P. Lio O. Miglino y M. Pavone (Eds.), Advances in articial life: Ecal 2013 (pp. 395–402).  This is my citation:  @inbook{aguilera2013quantifying,   title={Quantifying Political Self-Organization in Social Media. Fractal patterns in the Spanish 15M movement on Twitter},   author={Aguilera, Miguel and Morer, Ignacio and Barandiaran, Xabier E and Bedia, Manuel González},   editor={P. Lio, O. Miglino, G. Nicosia, S. Nolfi, and M. Pavone},   booktitle={Advances in artificial life: ECAL 2013},   pages={395--402},   year={2013} }   And my document:  \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[natbibapa]{apacite} \setcitestyle{comma} \bibliographystyle{apacite} \renewcommand*{\bibfont}{\raggedright} \begin{document}  The reference \citep{aguilera2013quantifying}  \bibliography{references} \end{document}   Any ideas?


I'm only basing this question on the LotR movies, since I haven't read the books.  Gollum starts following Frodo and Sam, and then one night jumps out and tries to kill them and take the Ring. They subdue him, but only because they expected him and were thus able to defend themselves. From then on he kind of decides to help them get to Mordor to destroy the Ring.  During this period he seems to have split personalities: Gollum vs. Smeagol, with Gollum wanting to kill them and Smeagol seeming to be at least neutral towards them, from the conversations the movie shows between the two.  At some point though, Gollum seems to win over Smeagol and convince him to lure them to Shelob to kill them.  But why didn't he just kill them while they were sleeping? In the movie, he has dozens of opportunities where he could definitely cut one hobbit's throat, bash their head in with a big rock, push them off a ledge, etc.


What will be the dimension of $x$ in $e^x$?

I just want to know if in an exponential function $e^x$, will $x$ always be dimensionless? If so, Why?


I would like to create a table, which look like this:    \documentclass[a4paper,12pt,oneside]{article} \usepackage[english]{babel} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{shapes,arrows,positioning,calc,threeparttable}  \usepackage{tabu} \usepackage{hyperref} \usepackage{longtable} \usepackage{array} \usepackage{multirow,tabularx,booktabs} \begin{document} \begin{tabular}{|c|c|} \hline  \bf{Text A:} & \bf{Text B:} \\  \hline  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat." & "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat." \\  \hline  \end{tabular}  \end{document}   Can someone help me?


Finding the distribution of sum of Lognormal Random Variables

I am trying to find the distribution of sum of 2 lognormal random variables. I referred the literature available on Cross validated, Stack overflow and few papers before posting this.   I used convolution to find the distribution of sum of 2 lognormal rvs. The approximation works for difference. But, not for sum. I am getting a nasty kink at 0 in both CDF and PDF. I could not recognize the reason. With few tweaks, the shape of the distribution comes right. But, I am not sure what I was doing is right.   Can somebody guide me here?


How it is possible rotate a part of 3D tikz picture (like picture) and the bottom area is fix(no rotation)?

I want to rotate picture using 3D tikz like below picture. Is it possible?    \documentclass{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture} \draw[->] (0,0,0)--++(5,0,0) node[right]{$x$}; \draw[->] (0,0,0)--++(0,5,0) node[above]{$y$}; \draw[->] (0,0,0)--++(0,0,10) node[below left]{$z$}; \draw[ultra thick] (4,0,0) arc[start angle=0, end angle=90, radius=4] --      ++(0,0,8.5) arc[start angle=90, end angle=0, radius=4]--cycle; \draw[ultra thick] (0,0,8.5) --++(4,0,0) --cycle; \draw[ultra thick] (0,0,8.5) --++(0,4,0) --cycle; \end{tikzpicture} \end{document}


execution of AfterUpdate caused by: System.DmlException ( maximum trigger depth exceeded )

trigger UpdateContactField on Contact (after update) {     Contact con;     for(Contact c:Trigger.New){         con=new Contact(id=c.id);         con.Current_Company__c=c.Current_Company__c;         con.Previous_Company__c=c.Current_Company__c;         update con;     } }   I am new to Apex. While doing this i am getting following error:     Error:Apex trigger UpdateContactField caused an unexpected exception,   contact your administrator: UpdateContactField: execution of   AfterUpdate caused by: System.DmlException: Update failed. First   exception on row 0 with id 0032800000Lg9fQAAR; first error:   CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, UpdateContactField: maximum   trigger depth exceeded Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ] Contact trigger event AfterUpdate for   [0032800000Lg9fQ]: []: Trigger.UpdateContactField: line 7, column 1   Basically What my requirement is, For the first time when i create a new record in contact, i enter a value for Current_Company__c field. when the second time i want to update the Current_Company__c field to some other value, then the previous value which was present in Current_Company__c should be updated to Previous_Company__c field.  Please help me. Thanks and regards KS Kumar


I have a working jQuery function that creates a div when another div is clicked. When this div is clicked...
List 1
   this div is created using the function below and some php.
List 2
   jQuery  $(function() {    $('.col_1').click(function(){        var parent_id = $(this).data("parent_id");       var child_id = $(this).data("child_id");        $.post("array-2.php",{parent_id: parent_id, child_id: child_id},        function(data){          $('#column_2').empty();         $('#column_2').append(data);       });   }); });  $(function() {    ////  New part:Trys to make the created div functional,         $('.col_2').click(function(){            var parent_id = $(this).data("parent_id");           var child_id = $(this).data("child_id");            $.post("array-2.php",{parent_id: parent_id, child_id: child_id},            function(data){              $('#column_3').empty();             $('#column_3').append(data);           });       });     });   I want the new div to function identically as the first div to make a 3rd div/list as well (and even more created columns of lists). So I added the second half of the jQuery but it doesn't seem to function. Does anyone have any ideas why this won't work, or how I could make it better? Thanks.  You can see basically what I'm trying to do here.


"adb devices" shows device as "unauthorized". How can I fix this?

I just decided to move from Windows to Linux for my Android development, I just finished to setup Android Studio, I was able to import my project into it, but now I want to be able to run my application on my Google Nexus 5.  In my Android Device Monitor, my phone is detected as unauthorized.  I put :  SUBSYSTEM=="usb", ATTR{18d1}=="0bb4", MODE="0666", GROUP="plugdev"   Into :  ~/.android/adb_usb.ini


I was reading about countably infinite sets and the definition goes as, "A set is countably infinite if its elements can be put in one-to-one correspondence with the set of natural numbers"(Source: Google). Well yes, this make sense. As the set $\mathbb{N}$ is countably infinite and set which can it can create a bijection with, would end up having the same number of elements and thus they too would be countably infinite. But this would be true iff $\mathbb{N}$ is countably infinite. How would you prove that? Or is the idea of countably infinite base on some assumption that $\mathbb{N}$ is countably infinite?


What happen when a user with reputation 1 gets a down vote?

Possible Duplicate:          If a user with reputation 1 gets a down vote, his reputation is not lowered. Are the down-votes considered, when the same user gets some up-votes?  Supposing that a user gets 3 down-votes and 3 up-votes for a question he made, will his reputation be 15 or 9?


I have about a thousand files that all look something like this:  20091208170014.nc               20091211150704.nc   20091214131328.nc   20091217111953.nc   20091220092643.nc   20091223073308.nc   20091226053932.nc   20091229034557.nc 20091208171946.nc               20091211152610.nc   The first eight are the date, the last 6 are consecutive numbers, but the difference between those numbers isn't the same between the files. I want the last six numbers to be consecutive and always with the same step. For example:  20091208000001.nc               20091211000002.nc   20091214000003.nc   20091217000004.nc   20091220000005.nc   20091223000006.nc   20091226000007.nc   20091229000008.nc 20091208000009.nc               20091211000010.nc   I checked several questions on this site using mmv and others like  but none of them can explain to me how to have consecutive numbers in my name.  To differentiate this from the question , the sequential ordering must be based on the last six digits, ignoring the embedded date in the first eight characters completely..


Is Hoffman-Kunze a good book to read next?

I'm planning on self-studying linear algebra, and trying to decide on a book.  I'm thinking of using Hoffman and Kunze.   What sort of experience is required to handle Hoffman and Kunze?  So far, I've read most of Axler's Linear Algebra Done Right. (It was for a class in high school, so we just worked through it and got as far as we got.) I feel like I understand it pretty well, and I really liked it, but I've read that it has a rather unusual approach and I would like to try something different.  I've read that Hoffman and Kunze is good, but that it is heavy on the algebra.  I'm not sure how do calibrate that, though.  Does it mean "Don't use it for linear algebra for engineers" or "You should have a year of algebra, but if you have that, it's not a big deal".  (I guess it's somewhere in between.)  I specifically like that it includes a strong emphasis on matrices, which are pointedly ignored in Axler, without devolving into being just a manual for computation.  This is my impression of the book from having read around (mostly here), but if something of it is wrong, please correct me.  I have very little experience to provide comparison and normalize the different recommendations I've read.


"Trainer" is to "trainee" as "mentor" is to what?

What do you call someone who is being mentored? Is it mentoree or mentee? Does the term student or pupil imply a context outside the business environment?


Yesterday someone started downvoting my answers. I ignored the downvotes knowing that the system will reverse them, and the system did reverse some of those downvotes.  Today I flagged one of my answers, chose in need of moderator intervention, and explained my problem. I stated who it was. since I know who it is, then few hours later, the downvotes came again.  What should I do in this case, since this person keeps coming again and again? And from now on, how will I know if the downvote against my answer is a legit downvote not someone just against me?  Downvotes from Yesterday    Downvotes from Today


What is the difference between the words "variables", "constants", "parameters" and "arguments"?

This has been nagging me for a while and then I saw  asking what the difference is between variables and parameters. In the context of mathematics, what is the difference between  variables constants parameters arguments  I get 1. and 2. confused because, for example the general form of the quadratic function is often expressed $f(x)=ax^2+bx+c, a \neq 0$ and $x$ is the variable so what does that make a,b and c? I assume since math is so rigorous with precise definitions, these have one, but it is also a valid answer that as words they do not have a single precise definition.


"He will come back in two hours" vs. "He will come back after two hours"

He will come back in two hours.   vs.     He will come back after two hours.   What's the subtle diff?


I can't download anything and I can't watch videos

Two days ago I tried to download skype and it says an error occurred it says   end of central directory signature not found  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive.  zipinfo:   cannot find zipfile directory in one of /home/maria/Downloads/SkypeSetup-aoc-jd.exe   or  /home/maria/Downloads/SkypeSetup-aoc-jd.exe.zip, and cannot find /home/maria/Downloads/SkypeSetup-aoc-jd.exe.ZIP   pe...  this happens whenever I try to download anything like games and also i can't watch videoss it's looking for plug ins but it doesn't find them i hate this


Running a bash script on double click does not have all environment variables

I am running Debian. I have a jar file that I need to execute. A wrapper bash script does a java -jar MyProg.jar. The jar also calls some C code for which LD_LIBRARY_PATH needs to be set.   I have set LD_LIBRARY_PATH in the current user's (let's say Sriram)'s bashrc like so: export LD_LIBRARY_PATH=myLibLocation.    Everything works as expected when running the above script from the command line. However, when I run the same bash file by double-clicking on it, LD_LIBRARY_PATH is not set. Here is a sample bash script I wrote:  #!/bin/bash echo `whoami`; echo "PATH = ${LD_LIBRARY_PATH}"     It runs as expected from the command line but not when I run it by double-clicking. The output in that case is:    Sriram PATH =       question is exactly the same as this. I have tried to implement all the suggestions there but have not had success.    Update:   What I tried from the answer to the question I linked to: 1. Created a file ~/.xsessionrc. It did not exist on my system. 2. Set LD_LIBRARY_PATH in the above script.    Restarted a new shell. Re-ran the above script. No changes were observed.  Any help is most welcome.


How can I access Windows files from Ubuntu

Is it possible to get the files I had on Windows onto my Ubuntu desktop?  How can I connect to my Windows partition from Ubuntu?


Short title in TOC using custom titletoc/titlesec

I am having trouble with my custom made titletoc/titlesec. I read in the documentation (missed it?), googled and searched this forum but could not find what I needed.  First what I want:  I have a long chapter title and I want a short version of it in the TOC. I found so far to use:  \usepackage[toctitles]{titlesec} \chapter[short for TOC]{long for chapter heading}   As I redefined my own TOC this does not work. I guess I would have to enter this in my redefined TOC, but I don’t know how and where. Here what I did in a minimal example:  \documentclass[12pt,twoside,reqno]{amsbook}   %linksbuendige chapter, section, subsection \usepackage{titlesec} \newcommand*{\justifyheading}{\raggedright} \titleformat{\chapter}[display]   {\normalfont\huge\bfseries\scshape\justifyheading}{\chaptertitlename\ \thechapter}  {14pt}{\Large\scshape} \titleformat{\section}   {\normalfont\large\bfseries\justifyheading}{\thesection}{1em}{} \titleformat{\subsection}   {\normalfont\normalsize\bfseries\justifyheading}{\thesubsection}{1em}{} \titleformat{\subsubsection}   {\normalfont\normalsize\justifyheading}{\thesubsubsection}{1em}{} \titleformat{\paragraph}   {\normalfont\normalsize\itshape\justifyheading}{\theparagraph}{1em}{}   %Inhaltsverzeichnis formatieren \usepackage{titletoc} \newcommand\frontmatterchaptoc{% \titlecontents{chapter}   [1.4em]{\addvspace{3pt}}   {\contentslabel{-0.25em}\hspace{2em}}   {\hspace*{-1.3em}\bfseries}% \MakeUppercase removed   {\titlerule*[0.3pc]{.}\contentspage} }  \titlecontents{section}[3.7em]{}{\contentslabel{2.3em}}{\hspace*{-2.3em}} {\titlerule*[0.3pc]{.}\contentspage} \titlecontents{subsection}[5.9em]{}{\contentslabel{2.3em}}{\hspace*{-2.3em}} {\titlerule*[0.3pc]{.}\contentspage} \titlecontents{subsubsection}[8.9em]{}{\contentslabel{3em}}{\hspace*{-3.3em}} {\titlerule*[0.3pc]{.}\contentspage} \titlecontents{paragraph}[12.6em]{}{\contentslabel{3.7em}}{\hspace*{-3.7em}} {\titlerule*[0.3pc]{.}\contentspage}   \begin{document}   \tableofcontents  \chapter[Title I want to see in TOC - short]{Title I am seeing in TOC - long} This is chapter 1  \end{document}   It does not matter if I enter   \usepackage[toctitles]{titlesec}   or just  \usepackage{titlesec}   I hope someone knows how to integrate this into what I have so far!  Cheers  Summer


i have downloaded yED-3.14.3_64-bit_setup.sh, but i don't know what code to run next

I have downloaded yED-3.14.3_64-bit_setup.sh, but I do not know where to go from here. I am a new Ubuntu user and i need to get some network diagramming software.


Binomial Coefficients Summation $\sum_{k=0}^n a^k \binom{n}{k}^2$

Let $a>0.$ Is there a closed form expression for the following summation: $\sum_{k=0}^n a^k \binom{n}{k}^2$?


Mod-editing another user's post removes the reply arrow from that post

If you edit another user's message in chat, it removes the reply arrow from that message, so you can no longer reply to it (although you can with the drop down from the left side, but who wants to click twice?). If that user then re-edits his message, the reply arrow comes back.  Interestingly, if a mod mod-edits your message, it doesn't add a new reply arrow. So this really only affects mods who edit others' messages.


Why are 32 bit apps loaded on 64 bit OS instead of 64 bit versions

I am trying to figure out why 32 bit apps are being installed on Windows 8 64 bit. On my wife's PC, there are a number of 32 bit versions of popular applications that are installed where I would expect 64 bit versions to be used. How does a download page determine which version of Skype, for example, gets downloaded? Same problem with MS-Office and a few others.


Can I organize my custom module's twig templates into subfolders?

My module now has a lot of TWIG template files in the /custom/MYMODULE/template folder. I tried creating some sub-folders because I thought Drupal 8was supposed to search all sub-folders automatically but I got an error about a missing template file. Should it work?   I've tried setting the subfolder name in '#theme' => 'SUBFOLDER/mytemplate' and I don't get an error, but the block contents are just blank (although the title displays).  I have my template defined in MYMODULE_theme(), but it feels wrong to specify a sub-folder in there.


Reducing complexity of large switch statements

In the codebase I'm currently working on, it's common to have to take a string passed in from further up the chain and use it as a key to find a different String. The current standard idiom is to use switch statements, however for larger switch statements (think ~20-30 cases) sonarqube says it's a code smell and should be reduced for cyclomatic complexity. My current solution is to use a static HashMap, like so  private static final HashMap<String, String> sortMap; static {     sortMap = new HashMap<>();     sortMap.put("foo1", "bar1");     sortMap.put("foo2", "bar2");     sortMap.put("foo3", "bar3");     etc... }  protected String mapSortKey(String key) {      return sortMap.get(key); }   However this doesn't seem to actually be any cleaner, and if anything seems more confusing for maintainers. Is there a better way to solve this? Or should sonarqube be ignored in this situation? I am aware of using polymorphism, i.e. , however that seems like it is overkill for this problem, as the switch statements are being used as makeshift data structures rather than as rudimentary polymorphism. Other similar questions I've found about reducing switch case cyclomatic complexity aren't really applicable in this instance.


Unicode characters suddenly start displaying as boxes in some applications

I noticed that Unicode characters suddenly stopped displaying in some applications, so far Notepad++ and Skype, when they were appearing previously.  Instead they appear as boxes.  They were working before, but I believe that it broke after a restart.  I can even type them into the Skype input window and see them, but then after submitting the message they appear as boxes.  For example: 햇반 and 県 will not show up in either Skype or notepad++, but they do appear just fine in Chrome as I am typing this.  No new software was installed before or after the last restart, the only thing that happened were some Windows updates.  The document in Notepad++ has the encoding set to UTF-8  Windows 7 x64


Are human-like characters shown in star wars humans?

The characters played by humans (eg.  Luke,  leia,  solo etc)  in star wars are Homo sapiens or any other species?  If they are homo sapiens then how could they exist in a galaxy far far away?  Did we reach there?  Or not homo sapiens then which species are they belonging to?


Minimal example:  \documentclass{memoir} \usepackage{tabu} \usepackage{threeparttable} \begin{document}  \begin{table} \begin{threeparttable} \caption{Problematic table} \label{tab:lf_mikrofone} \begin{tabu} {l l}   Heading 1 & Heading 2 \\   \midrule   a\tnote{1} & b\tnote{2} \\   \bottomrule \end{tabu} \begin{tablenotes}   \item [1] qwerty   \item [2] asdf \end{tablenotes} \end{threeparttable} \end{table}  \end{document}   This produces the expected output, but with an error:  Extra }, or forgotten \endgroup. \end{tabu}     If I change \begin{tabu} to \begin{tabular}, it works, but I would prefer tabu.  Exchanging \usepackage{threeparttable} for \usepackage{threeparttablex} makes no difference.  Can threeparttable and tabu be used together without errors?


How to access the Index Of A Generic.List By Reflection?

ok, ive a class and i pass an object as property.  the object that i pass is a List<X>  in my class im trying to access the Object index by reflection BUT I CAN'T!!!   Example:  this class works i just wrote down the part i want to show you and i need help.  class MyClass {     private object _recordSet;     public object RecordSet     {         get { return _recordSet; }         set { _recordSet = value; }     }      public string Draw()     {         system.reflection.Assembly asem = system.reflection.Assembly.getAssembly(_dataSource.GetType());          object instance;          instance = asem.CreateInstance(_dataSource.GetType().UnderlyingSystemType.FullName);          //to access de Count of my List         int recordcount = int.Parse(_dataSource.GetType().GetProperty("Count").GetValue(_dataSource,null));          //i need to do a          for(int cont = 0; cont < recordCount; cont++)         {             _dataSource[cont].Name; // <-- THIS PART IS NOT WORKING!!! because i cant access the Index Directly.... WHAT TO DO!! ???         }     } }


How to zip multiple files into separate archives?

I admit this question was asked here before:  Like  where the person who asked didn't specify the OS he used and received no answers.     I need to separate a huge directory into multiple .zip files that are not interdependent on each other. So, instead of:      file1.zip   file2.z01   file3.z02        I would like the following set of files instead:      file1.zip   file2.zip   file3.zip     Basically this is my question. I'm on OS X so a shell script or AppleScript would be the easiest way to go.  In addition, here is a guy who asked the same thing - only he wanted to create a .tar archive: How to   The answer is correct, but it will result in tar files:    for file in `ls *`; do tar -czvf $file.tar.gz $file ; done     PS: This last part is just for those of you who are fit in Keyboard Maestro:  I also tried to perform this in Keyboard Maestro, I have a "for each" action setup which determines the file paths and then triggers a shell script. The output is correct and the macro works if I paste it in the terminal (e.g. zip  /Users/me/Desktop/test /Users/me/Desktop/test.txt).    However, when I pass the two variables to the shell script in Keyboard Maestro won't work: zip "$KMVAR_zipPath" "$KMVAR_sourcePath"


I am a Swiss citizen. I am planning on going to San Diego from Zurich on November 8-15. Would I be able to do a day-trip to Tijuana and then come back? The trip to Mexico would be by land.  Would I be eligible to re-enter the US?  Thank you!


Abel summability under the hypothesis $a_n \ge 0$

Let $f(x) = \sum a_nx^n$, with $a_n \ge 0$, have radius of convergence $1$.  Show that if $\lim_{x \to 1^-} f(x) = \sigma$, then $\sum a_n$ converges and $\sigma = \sum a_n$.  This is Abel summability with the hypothesis that $a_n \ge 0$.  I'm not sure how to proceed.


Can a second router connect via WAN to another Router and establish a second network?

Setup is:   A main router, then a second router which connects from its WAN port to a LAN port of the main router. This second router's goal is to establish a separated network for guest devices.  I disable the DHCP function of the second router, and set a static IP (which is different than the IP of the main router). For example if the main router is 190.160.0.1, then I would set second router to 190.160.0.20).  If guests connect  to the second router via LAN or WiFI, would the guest's devices be able to "interact" with the devices connected to the WIFI of the main router? Could there be any kind of interaction on Layer 2 or 3?  Is it correct to connect the WAN port of the second router to a LAN of the main router, or should it be  LAN to LAN?  If this setup does not fulfill the "separation" criteria, what changes are needed to achieve separated networks (using a two routers approach - without the need of VLANs)?


Code rendered as text when placed after a list

I have some problems formatting code on so. If i use only 4 spaces in the code snipped in this post: , the code will not be formatted as code.  I think it has some thing to do with the list (1, 2, 3), but i've made break between the code and the list.  Is there i bug right now?


Overnight charges for brokers holding stocks?

I'm trying to learn about stock markets. I eventually want to invest a small amount over a long period. Yet, I notice on a lot of broker sites that they tend to charge an overnight fee for any stocks held over night. I presume this is every night thereafter?  I just wondered because it seems like a wall when you want to let your stock price grow, and an overnight charge eats into this. or, is this only the case for "CFD" stocks? I'm confused.  Any help?  Cheers


What rules govern forced removal from flights (due to overbooking)?

I was recently surprised to see  because his flight was overbooked.  He was reportedly a doctor who needed to see patients the next morning, so he did not really want to get off, justifying the use of force.  I knew that airlines could overbook flights and deny boarding to some passengers, but I thought that kind of boarding denial would happen at the gate and that once folks had been let on, those denied boarding would be those arriving later to the gate.    Why or in what conditions is this kind of forcible removal considered OK?    Clarification following close votes from people who think this question is primarily opinion-based: By "OK" I mean the sense of "legally OK," "officially accepted," "instantiated as policy," "sanctioned by authorities," or "OK according to the regulations and policies and laws and whatever other formal rules govern forced removal from flights due to overbooking." Whether or not you personally consider it socially acceptable does not matter as an answer, unless you have formalized that into a citeable adopted form that governs what happens and want to explain the reasoning behind that rule.


Good night   I want just to get the picture to be displayed on the left side and so My name right next to it and about the personal info is it advisable to make them get aligned and come from the right edge of the paper.  thanks in advance and thanks for your help (I'm a beginner in Latex so please go easy on me ^^)  here is the template link:


Simplified method for symmetric matrices

I am trying to find the determinant of the following  $4\times 4$ symmetric  matrix $A$ given as $$A= \begin{pmatrix} a & b & c & d \\   b & c & d & a \\   c & d & a & b \\   d & a & b & c \end{pmatrix}$$ Any solution and help would be appreciated. Thanks.


Bone Heat Weighting: armature deform with weighting

heres a link https:  I followed this tutorial:  but when I got to set the parent for the rig it wouldn't work. I tried to remove some unnecessary verts but it affects the mesh... what do I do?


How can I set multiple Class fields using one or several Class methods which don't specifically refer to any field?

I want to know how or if I can set multiple Class fields using one or several Class methods which don't specifically refer to any field?. I made the simplest example I could think of.   My apologies if this is a terribly obvious question which has been answered. I found a couple of questions that seemed similar but they involved several classes and were confusing. I think having this question is beneficial and might be easy for someone to answer.  public class MyClass {      private String str = "hello";     private String str2 = "ciao";     private String str3 = "hola";      public void changeSomeString(){         changeString(str);     }      private void changeString(String s){         s = "goodbye";     }      public void changeSpecificString(){         str = "goodbye";     }      public void printString(){         System.out.println(str);     }      public static void main(String args[]) {          MyClass a = new MyClass();         a.printString();         a.changeSomeString();         a.printString();         a.changeSpecificString();         a.printString();      }  }   I can't say I expected, but I wanted  hello goodbye goodbye   and I received   hello hello goodbye


My Question: Let $(\Omega,\mathcal{F},\textbf{P})$ be a probability triple such that $\Omega$ is ${countable}$. Prove that it is impossible for there to exist a sequence $A_1,A_2,\ldots \in \mathcal{F}$ which is ${independent}$ such that $\textbf{P}(A_i)=\frac{1}{2}$ for each $i$. Hint: First prove that for each $\omega\in \Omega$, and for each $n\in \mathbb{N}$ we have $P(\{\omega\})\leq \frac{1}{2^n}$. Then derive a contradiction.   My Work: Let $\omega \in \Omega$ be arbitrary. Then since $\textbf{P}(\Omega)=\textbf{P}(\bigcup \{\omega\})=1$, and $(\Omega,\mathcal{F},\textbf{P})$ is a valid probability triple, then $\textbf{P}$ is countably additive, so that $\textbf{P}(\bigcup \{\omega\})=\sum\limits_{n=1}^\infty \textbf{P}(A_n)$. Here I am not sure where to go.  My problem: I am really not seeing how to go about this problem. Any help is appreciated.


I am following this tutorial:      and in one of the lines there is the function:  (cnts, boundingBoxes) = zip(*sorted(zip(cnts, boundingBoxes),         key=lambda b:b[1][i], reverse=reverse))   I want to know what is the use of the asterisk before the sorted function call.


Particular Solution to Second Order Differential Equation

How would make a "template" to find the $y_p$ of this equation?  $y''+9y = -6\sec 3t$  I'm not that good with trigonometric functions, but I'm pretty sure we have to do something to make it fit the $\,A \sin t + B \cos t\,$ template


Where can I find this bibliography style 2?

Any way someone can find this (article was published in 1986 Journal of Finance) ? Make it ? Or otherwise?


Windows script/application to convert GPX to KML?

seems to have everything I need to draw bicycle routes, but it only exports routes as GPX while the smartphone application I use only supports KML.  Does someone know if there's a Windows script or application that I could use to easily convert GPX to KML?  I know the  site, but I'd like a one-click solution.


I'm asked the following quesiton:       Show that if $n\geq 3$, the complete graph on $n$ vertices $K_n$ contains a Hamiltonian cycle.     This seems obvious since $K_n$ contains a subgraph which is a cycle graph hitting all $n$ vertices. What am I missing here?


Single word that means "tentative theory"?

Can anyone suggest a word that means "tentative theory," or a working draft of a theory that may need revision later?


To find minimum distance between two curves

Let $P(x, y, 1)$ and $Q(x, y, z)$ lie on the curves $$\frac{x^2}{9}+\frac{y^2}{4}=4$$ and $$\frac{x+2}{1}=\frac{y-\sqrt{3}}{\sqrt{3}}=\frac{z-1}{2}$$ respectively. Then find the square of the minimum distance between $P$ and $Q$.  My Attempt is:  I tried to find minimum distance between the points $(-2,\sqrt{3})$ and $(6\cos \theta,4\sin \theta)$.


Why the c++ function can return array’s size correctly?

I was learning c++11 about constexpr. So I went to website and learnt how to code it.  When I was learning how to code it.  I had raised a problem about return array’s size function.  I thought it was functional, but I couldn’t know how write it like this. This is my code:  #include <iostream>  constexpr auto newline = "\n";  template < typename Type , uint32_t SZ> constexpr uint32_t len(const Type (&array)[SZ]) {     return SZ; }  int main() {     int* ptr = new int (9);     int array[] = {1,2,3,4,5,*ptr};     std::cout << len(array) << newline; } /* Output: 6  */   I want to know why len function return array‘s size correctly.


Remove blank attributes from an Object in Javascript

How do I remove all attributes which are undefined or null in a JavaScript object?  (Question is similar to  for Arrays)


Strange error when altering 2 dimensional lists in Python

I've tried to make some code for a game in python 3.6.3 and when I try to change a value in a 2d list/array (in a list inside a list), it changes the values of that index in all the lists. Does anybody know why that's the case?  I've abstracted the problem to the exact part of the code that's going wrong. I've tried using different numbers and formats but the problem remains. Debugging tools don't help either.  #Strange error list_1 = [0,0] list_2 = [list_1, list_1, list_1]  list_2[0][1] = 1 print(list_2)  #Working normally list_3 = [[0,0],[0,0],[0,0]]  list_3[0][1] = 1 print(list_3)   The actual result should be that both lists have the same output of [0, 1],[0, 0], [0, 0]. However the first list returns [0, 1],[0, 1],[0, 1] whereas the second list works normally with [0, 1],[0, 0], [0, 0] returned, even though both lists should return the exact same output.


I'm doing this model where it required me to wrap around and I decided to merge at the end and you can clearly see where it was merged at the bottom left and I'm curious as to how I can fix this so it looks just as smooth as it does going around.  Picture:


Consider $\mathbb{Z}$ as a subgroup of the additive group $\mathbb{Q}$ of rational numbers. >Show that, given an element $\bar{x}\in\mathbb{Q}/\mathbb{Z}$, there is an integer $n \ge 1$ such that $n\bar{x} = 0$.  I know that $\mathbb{Q}/\mathbb{Z} = \left \{  \frac{a}{b} + \mathbb{Z} \mid a,b \in Z, b \neq 0 \right \}$. From that, $ \bar{x} =  \frac{a}{b} + c$ where $a,b, c \in Z$ and $ b \neq 0 $, so $n\left (  \frac{a}{b} + c \right ) = 0$. But when I try to solve $n\left (  \frac{a}{b} + c \right ) = 0$ the result is always $n=0$. Any help in solving this is welcome.


Let $D$ be an integral domain , let $S$ be a multiplicatively closed subset of $D$ not containing zero , then w.l.o.g. by natural embeddings , we can think of $D$ as a subring of $S^{-1} D$ which is further a subring of the fraction field of $D$ . Now if for every $q \in S^{-1} D , \exists $ monic $P_q(X) \in D[X] $ such that $P_q(q)=0$ , then is it true that every element of $S$ is a unit of $D$ ?


public class VendorAdapter extends RecyclerView.Adapter<VendorAdapter.MyViewHolder> {  private List<Vendor> vendorList;   public class MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {     public TextView name, rating, address;     RelativeLayout rl;     Context con;      public MyViewHolder(View view) {         super(view);         name = (TextView) view.findViewById(R.id.tv1);         address = (TextView) view.findViewById(R.id.tv2);         rating = (TextView) view.findViewById(R.id.txtstar);         rl=(RelativeLayout)view.findViewById(R.id.parentLayout);         itemView.setClickable(true);         itemView.setOnClickListener(this);     }      @Override     public void onClick(View v) {         Intent intent = new Intent (v.getContext(), StartActivity.class);          con.startActivity(intent);      } }   public VendorAdapter(List<Vendor> vendorList,Context con) {     this.vendorList = vendorList;  }  @Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {     View itemView = LayoutInflater.from(parent.getContext())             .inflate(R.layout.list_layout, parent, false);      return new MyViewHolder(itemView); }  @Override public void onBindViewHolder(MyViewHolder holder, int position) {     Vendor movie = vendorList.get(position);     /*holder.name.setText(movie.getTitle());     holder.address.setText(movie.getGenre());     holder.rating.setText(movie.getYear());*/ }  @Override public int getItemCount() {     return vendorList.size(); }   }  Unable to startActivity from Recycler View Adapter  I want to open same activity on every item click of recycler view,but the way i am doing it,i am getting NULL POINTER on this line-con.startActivity(intent); Please help me with this. ##


Why does window.onload allow me to use functions when they are used as function expressions?

I understand that function expressions must be expressed at the top if you want to use them vs function declarations which are hoisted to the top.   When I call my constructor from with window.onload, it works. However if I don't have a window.onload, and call my constructor before my function expression, the code breaks.  <script type="text/javascript">          window.onload = function () {             var c = new C();         }  // this works, but if i delete window.onload the code breaks.          var C = function () {             console.log("test");          };   </script>


A while ago, I thought one could use trigonometry. Simply have the actors hold the base of the light saber, and the stick part would be generated by the computer.


30 v. the 30. Which would be more correct?

Would it be proper to say "I take the 30 to work" (meaning the I-30 freeway) rather than saying "I take 30 to work"?


“Cannot believe what he saw” versus “cannot believe what he was seeing”

Which of the following sentences is grammatical:   The boss could not believe what he saw yesterday morning when he entered the office. The boss could not believe what he was seeing yesterday morning when he entered the office.   I know that see is a stative verb, but can’t believe what I’m seeing or something like that is used fairly often too. I hope someone can help me out.


Are there rules for cutting/removing an enemy's bow string during combat?

If a Rogue gets into melee combat with another combatant wielding a bow, what actions are permitted to disable the bow?   Could the Rogue use Sleight of Hand to unhinge the bow string?   Could he make a melee attack to cut the string or destroy the bow or does he have to disarm the opponent and make him drop his weapon before he may destroy it?  I couldn't find any rules on how to handle such a situation as a DM.


What should you do if coauthor refuses to work on paper and refuses to consent to submit it?

My old PhD adviser and I had a falling out. We wrote a paper together, it is done at this point in my eyes. He "disagrees". Near the end of revisions the edits became more and more banal and even flip flopping. "Do it this way, no change it back, no change it back, no change it back etc" endlessly. I have shown the paper to other faculty and they think it looks fine.   We got into an argument about this, the paper has been done for well over a year at this point. I have a new adviser. At this point the old adviser flat out refuses to submit the paper, he refuses to make any edits to the paper, he refuses to even talk to me.   The grad head has been notified, other professors have been notified. My current adviser is really pissed off about the whole situation and is planning on talking to the old one.   Can he just not submit the paper? Do I have any recourse? I wrote the paper, I did the majority of the work (other than his idea etc). Can I just submit it myself? I feel like he would email the journal and complain about it. But I don't see any other choice.


Partial derivatives in Lagrangian formalism

Suppose I have a function $f = xy$. A partial derivative of $f$ with respect to $x$ implies holding $y$ constant:   $$ \frac{\partial f}{\partial x} = y $$  Does this mean that in order to evaluate this derivative, $y$ cannot depend on $x$? For example, if $y = x$ then   $$ \frac{\partial f}{\partial x} = \frac{\partial (x^2)}{\partial x} = 2x $$   Which is inconsistent with the first calculation of $\frac{\partial f}{\partial x}$.  If $y$ indeed cannot depend on $x$, then how does the Lagrangian formalism of classical mechanics make sense? The Lagrangian is a function of $q$ and $\dot{q}$, and when we evaluate $\frac{\partial L}{\partial \dot{q}}$ we 'ignore' all of the $q$ dependence, even though $\dot{q}$ is a function of $q$.


I having a error with my hibernate project. It gives me a NullPointerException when counts the size of my list(null) cause it breaks when doing the Query and doesnt set the 2 parameters that i pass, when i doint just with one parameter works perfectly.  Thanks in advanced! Helppppp meeee! ahah I will show you:  AlertsHelper  public List getAlertsList(int level, String Process)  {     List<Dtalerts> list = null;     try      {             if(!this.session.isOpen()){                 this.iniciarConexion();             }         Query q = session.createQuery("from Dtalerts as dtalerts where  dtalerts.level = :level AND dtalerts.Process = :Process");         //q.setParameter("Fh_alert", Fh_alert);         q.setParameter("level", level);         q.setParameter("Process", Process);         list = (List<Dtalerts>) q.list();     } catch (Exception ex)      {         System.out.println("Excepcion " + ex);         ex.printStackTrace();     }     return list; }   Jsp  <%     if(request.getParameter("level")!=null){     int level = Integer.parseInt(request.getParameter("level"));     String Process = request.getParameter("Process");     AlertsHelper helper = new AlertsHelper();     List alertList = helper.getAlertsList(level, Process);     out.print("
");     out.print("
Level	Process
");     for(int i = 0; i <alertList.size(); i++){     Dtalerts alerts = (Dtalerts) alertList.get(i);     Id = alerts.getId();     level = alerts.getLevel();     Process = alerts.getProcess();     String Description = alerts.getDescription();     out.print("Seleccionar	");     out.print("
");     out.print("" + level + "	");     out.print("" + Process + "	");     out.print("" + Description + "	");     out.print("" + Id + "	");     out.print("
");     }     out.print("
");     }else{     out.print("introduce un id");     }%>     </form>


How do the Weyl spinors differ from dotted and undotted spinors?

As asked in the title, how do the Weyl spinors $(\frac{1}{2},0)$ and $(0,\frac{1}{2})$ differ from dotted and undotted spinors?


I want to iterate through an enum so I can call a method with each value of that enum. How can I do that?  enum Base { ANC, BTC, DGC };  XmlDocument doc;  doc = vircurex.get_lowest_ask(Base.ANC) doc = vircurex.get_lowest_ask(Base.BTC) doc = vircurex.get_lowest_ask(Base.DGC)   I want it instead to be something like  foreach (var val in values)    doc = vircurex.get_lowest_ask(....)   Is there a way to do this?


getting error Can't locate SOAP/Transport/HTTP.pm

getting this error Can't locate SOAP/Transport/HTTP.pm in @INC when running perl script on asterisk 1.4 and centos version 5.10


Posted question shows wrong origination date : yesterday is incorrect

I posted a question  () on Wednesday, 02/17/2015, but it is showing that I asked the question "yesterday". All of the comments I posted on Wednesday also show up as being posted "yesterday".  In my current timezone (EST) it is currently 8:45am Friday 02/19/2015.  This may sound a bit nit-picky that I'm submitting this question but I'm curious about why it is showing up this way.  I understand that "yesterday" could be interpreted loosely.    I went back to the note I posted and I see that floating over the date does show that it was 02/17 when I posted (2 days ago).  This was interesting because it almost had me convinced that I had written this up just yesterday.  The days blur together.  :)


Do you have any tips? Especially for the second part? IS it enough to say since $f(x)$ is continuous at $x=0$ and $f$ is differentiable at $x=0$. Is $f$ continuously differentiable? Here is the question.     Let   $$ f(x)= \begin{cases} x^2\sin\big(\frac{1}{x}\big) & \text{ if }x\neq 0\\ 0 & \text{ if }x= 0 \end{cases} $$   Show that $f$ is differentiable at $x=0$ and compute $f^\prime(0)$. Is $F$ continuously differentiable at $x=0$?   Edit: For the second part, I used the fundamental theorem of calculus part 2. f is continuous and according to that theorem, so F is continuously differentiable.   P.S: I don't think this question is a duplicate of another question. In that question, it is asking for the derivative of f. But, in this question, it is asking for the integral of f as the capital F is a symbol for the integral of f. I don't understand why you keep insisting that this question is a duplicate.


Do I capitalize the c and s in Cognitive science when referring to the career? What about the n in Neuroscience, or Neurobiolgy. And the P in Psychology?


SQL Server select min date from 3 columns

I have a table with several date fields. I need to get a derived field that is the oldest date of 3 particular fields. I have to do this for 4 different date sets.


how to deal with wide range table in latex?

I'm new to Latex, and I'm using an overleaf template called Concordia University Thesis Template to write my thesis. Furthermore, I have a wide table containing a lot of text, and since I'm obligated with specific page margins, I can't change them. the problem that the table is getting out of the page, and I tried to make the text under each other in the same cell but still didn't fix the solution for me, and the table looks like this the code that I used is like this %###################  BEGIN: Environment Setup  #######################  \documentclass[letterpaper,11pt,onecolumn,final]{report}              % define document type \usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry}    % margin settings, required by Concordia University \usepackage{setup/ConcordiaU}                         % page maker definition for Title Page, Signature Page, and styles customized for Concordia University \usepackage{setspace}                             % manually configuration to spacing is needed. \doublespacing                                         % double spaced, required by Concordia University \usepackage[natbibapa]{apacite}                  % citation and bibliography package \usepackage{amsmath}                            % equations/formulas \usepackage[dvips]{graphicx}                    % to include images. For those who use .eps images. The option [dvips] must be there. \graphicspath{{figures/}}                           % all figures are put in the folder named "figures" %\usepackage{subfigure}                            % enable subfigures \usepackage{multirow}                                % multirow in a table cellcc \usepackage{indentfirst}                           % add indent to the first line of each paragraph \usepackage{algorithmicx, algpseudocode}  %  write algorithms in pseudo code in a uniform style \usepackage{algorithm}                             % algorithm and pseudocode environment \usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}    % blue color for all links, urls and citations \usepackage{enumitem} \renewcommand{\labelenumi}{(\arabic{enumi})}        %  "(1)." style for enumerated items \renewcommand{\labelitemii}{$\circ$}      % (o) for the second level bullet items \usepackage[titletoc,title]{appendix}  \ref{table:GIS_API} illustrates all possible API that can be used to extract data from it. \begin{table}[htb] \begin{tabular}{|c|c|c|c|c|c|} \label{table:GIS_API} \hline Application name & Owned by                  & Has an API? & API NAME        & Pricing       & Number of transaction \\ \hline  openstreetmap    & Openstreetmap Orgnization & yes         & Overpass api    & Free                       & Unlimited             \\ \hline     Google Earth engine &       Google inc. &       yes &       Eearth engine api &       \begin{tabular}[c]{@{}c@{}}free for research, \\ education, and\\  nonprofit use.\\  For commercial\\  applications, \\ they offer paid \\ commercial licenses.\end{tabular} &       -- \\ \hline     Tomtom developer & tomtom                    & yes         & Tomtom maps-api & 0.42\$ per 1000 tranaction & Limited by the cost   \\ \hline     HERE developer &       Here &       yes &       Rest api &       Has a free version and paied version & \begin{tabular}[c]{@{}c@{}}The free version has \\ 250K transaction \\ and you can pay for more\end{tabular} \\ \hline \end{tabular} \end{table}  is there a way to make the table aligned within the page borders


Procedural polka dot pattern with cycles

I would like to generate a polka dot pattern using material nodes. In the meantime I found  which seems to achieve exactly what I want.  However, when I create a script node, link to the script internally and pipe the color output to a diffuse shader, my object is rendered black. Has something changed in Blender preventing this to work? Because I get no errors whatsoever.


C# Making a new instance of a class with or without "var"

Lets say I have a class called Person, that Id like to make a new instance of. From my testing, both of theese examples work. var Mike = new Person();  seems to do the same thing as Person Mike = new Person();  My question is, what is the difference, and which one is "generally better".


If I have a sequence $(a_n)_{n=0}^{\infty}$, and I have defined the exact same sequence, just for it to start at $n=1$, which means $(a_n)_{n=1}^{\infty}$, I have found the limit of $(a_n)_{n=1}^{\infty}$. My question: is there a theorem that shows that $\lim_{n \to \infty} (a_n)_{n=0}^{\infty} = \lim_{n \to \infty} (a_n)_{n=1}^{\infty}$? Here are the sequences for reference: $$ (a_n)_{n=0}^{\infty} =\left\{\begin{matrix} a_0=r & \\  a_{n+1}=\cos(a_n) &  \end{matrix}\right.$$ $$ (a_n)_{n=1}^{\infty} =\left\{\begin{matrix} a_1=\cos(r) & \\  a_{n+1}=\cos(a_n) &  \end{matrix}\right.$$ Thanks a lot!


I am looking for opinions of how to handle large binary files on which my source code (web application) is dependent. We are currently discussing several alternatives:   Copy the binary files by hand.   Pro: Not sure. Contra: I am strongly against this, as it increases the likelihood of errors when setting up a new site/migrating the old one. Builds up another hurdle to take.  Manage them all with Git.   Pro: Removes the possibility to 'forget' to copy a important file Contra: Bloats the repository and decreases flexibility to manage the code-base and checkouts, clones, etc. will take quite a while.  Separate repositories.   Pro: Checking out/cloning the source code is fast as ever, and the images are properly archived in their own repository. Contra: Removes the simpleness of having the one and only Git repository on the project. It surely introduces some other things I haven't thought about.    What are your experiences/thoughts regarding this?  Also: Does anybody have experience with multiple Git repositories and managing them in one project?  The files are images for a program which generates PDFs with those files in it. The files will not change very often (as in years), but they are very relevant to a program. The program will not work without the files.


I am trying to follow the MDN article Introduction to Object-Oriented JavaScript.   In there it defines a constructor as:  var Person = function(firstName) {   this.firstName = firstName; }   and  function Student(firstName, subject) {   // Call the parent constructor, making sure (using Function#call)   // that "this" is set correctly during the call   Person.call(this, firstName);    // Initialize our Student-specific properties   this.subject = subject; }   Why is the Student constructor not defined as:  var Student = function(firstName, subject) {   // Call the parent constructor, making sure (using Function#call)   // that "this" is set correctly during the call   Person.call(this, firstName);    // Initialize our Student-specific properties   this.subject = subject; }


What is the best way to store URLs in Database to prevent Injection

A user on my website can submit multiple links under their profile, what is the best way to ensure and protect against any injections. is mysql_escape_string() good enough?


I was curious to figure out what the purpose of using "~" operator in Latex is. I noticed the following piece of code which stated: Figure~\ref{fig:x} However, if you had to, for example, write the following segment: Figure \ref{fig:x} the exact same output is obtained.


Is it possible to disable the "scan and fix" message when inserting an SD Card?

Every time I insert the SD card from my camera into the card reader, I get this dialog:    Of course there is no need to scan it. Is there a way to disable it?


What are the symmetry-in-pair symbols usually appear in Wingdings fonts?

For example, in Wingdings font:   What are the symbols in boxes used for?   I have checked the wiki pages of , ,  and , but I can't find what I want.


I have 3 old 3.5" internal hard drives sitting gathering dust at the moment. 2 are SATA, and one IDE. I want to either start putting them to use, or dispose of them to clear up some space.  What is the best approach towards disposing of the drives in terms of thoroughly cleaning the contents before throwing away or selling? Are there any recommendations for good software to use to do this?   Are there any 100% successful methods which result in having a usable drive at the end?


How to write to ExternalDataUserAuth programatically?

Is it possible to write records to the ExternalDataUserAuth object via Apex code? When I try to write some Apex code to insert records into the ExternalDataUserAuth object I get an 'illegal dml object' message. I know that you can create records manaually using the UI but our solution requires that we create these records automatically via code. Any help appreciated.


I am trying to remove the text between tags and add the tags to a String array.   For example:  < tag1 >< tag2 >remove this< /tag2 >< /tag1 >  I am reading a text document line by line and adding each tag, opening or closing to an array, without the text between but I am having trouble.  I have String[] tags = text.nextLine().split(""); but I am not sure what the regular expression should be to have an array [tag1,tag2,/tag2,/tag1]  Thanks!


I just registered to Area 51 and it sent a confirmation email to my old (already-changed) email address; here is a screenshot to indicate this:    Well,  This problem seems to be related to another strange problem I already reported here in Meta SE:    The following link appears in the screenshot above:     If this email address is incorrect, please update your user profile   But I already did so as described in my question and answer in the above linked session.  Update  I didn't confirm the email in the old email box (which I can still access), instead, I clicked on the linked and surprisingly saw my old email which I was sure that was deleted from all StackExchange systems already; I changed it to my new email already updated in Stackoverflow (and via it, allegedly all over the network) and confirmed my Area51 account from my new email only.  I can only hope, I won't have any problem in the future !