Premise  I saw an interesting example of a machine learning logistic classifier for modeling/predicting sentiment for customer reviews. One of the first things in the example was a note on probabilities. Namely, how many reviews were thought to be positive (user liked the product). It was denoted as the following math notation, which is followed by a quote:  $P(y=1)=.7$     Degrees of belief: "I expect 70% of rows to have y=1 (exact number   will vary for each specific dataset, as each dataset would be a   different subset of the underlying population)   When I think about that, it seems to makes sense at surface level, the math concerning probabilities/conditional probabilities aren't too overbearing, but my intuition hasn't been able to reconcile exactly why this information is important. Assuming two outcomes: y=0 and y=1, P(y=1)=.7 would mean 70% of reviews are positive and 30% are negative. If we have a large enough sample size, we could expect the population values to be in the neighborhood of this. Maybe it's .7 or .5; I don't see how it changes how we estimate our coefficients for the model. To me, it just seems like a fun-fact, like I said, I don't see how I'm supposed to use this information during implementation.  The only thing I could think of is that if P(y=1)=.0001 or some really small number, that would mean we have a noticeable case of class imbalance and that could affect classification accuracy (some models are more robust to class imbalance than others). While this is an important consideration, and would probably merit finding P(y=1), I still can't help but wonder is there anything else...  Question  How can we best utilize the knowledge of P(y=1) in classification?  Further Clarification:  Answers may expand on P(y=1) as it relates to any of the following:   heuristic for model accuracy weights for model model selection


Is there a $t$-channel process for $q\bar{q} \rightarrow gg$?

Let's consider the process $q\bar{q}\rightarrow gg$. Is the following Feynman diagram allowed:  I ask because of the following reason: At the upper vertex, the $q$ emits a gluon $g$ and the propagator would then be a $q$, I guess, but at the lower vertex, the propagator would then emit a gluon $g$ and turn into a $\bar{q}$. Would this not be a violation of electric charge at the lower vertex, because the gluon $g$ does not have any charge?


How should I resolve the ranger's companion being sent off on a solo mission?

In our last session Diana, the party's ranger ordered her cougar companion to perform a task on its own (completely related to the companion's trainings).   The first one was completely safe in terms of direct danger (scouting) , but the failure could bring costs later on. (Detecting a presence of a nondirect threat in the area). After short discussion it made sense to us, fiction-wise that the ranger would have to analyze the cat's findings so she would be an essential part of examining the terrain , which triggered the discern realities move. In the meantime the party was in the middle of splitting loot and discussing the battle they took part in recently.  The second situation was much more direct - Diana wanted her companion to attack a person stealthily. The trouble lay with the person being very far away. I couldn't really consider the ranger as part of the process. I was puzzled with what to do - I considered a completely fiction-based resolution which seemed arbitrary - I for one wasn't satisfied with the idea of just telling her that the pet failed or succeeded. We ended with a defy danger trigger for the ranger which left a bit of a sour aftertaste in all our mouths. In the meantime the party moved into the opposite direction, walking towards a location they wanted to visit.  I wonder if there is a better, more Dungeon World way of resolving these situations.


Strings concatenation and one character size

Short prestory. Typical problem: you have a lot of small string and you want to concatenate them all in one big string. The code like for(Integer i = 0; i < smallStringsSize; i++){     bigString += smallStrings[i]; }  will solve this problem, but it has to produce a lot of unnecessary string objects that consume your heap. That is why Java has classes like StringBuilder and StringBuffer that allow you to solve this problem wihtout consuming too many memory. Thus, I decided to try to do my own StringBuilder in apex. String class has two methods that looked suitable for it:   and  . Here is the code that i used to test these methods against "+=" concatenantion (ready to execute in anonymous): List<String> chars = new List<String>(); List<Integer> charsCode = new List<Integer>(); Integer size = 10000; String chartToAdd = 'Ω'; for(Integer i = 0; i < size; i++){     chars.add(chartToAdd);     charsCode.add(String.valueOf(chartToAdd).charAt(0)); } String joinS = '', forS = '', fromS = ''; Integer initialHeapSize = Limits.getHeapSize(); Integer initialCPUtime = Limits.getCpuTime(); System.debug('initialHeapSize ' + initialHeapSize); System.debug('initialCPUtime ' + initialCPUtime); joinS = String.join(chars, ''); Integer joinHeapSize = Limits.getHeapSize() - initialHeapSize; Integer joinCPUtime = Limits.getCpuTime() - initialCPUtime; System.debug('-------- String.join ---------'); System.debug('joinHeapSize ' + joinHeapSize); System.debug('joinCPUtime ' + joinCPUtime); for(Integer i = 0; i < size; i++){     forS += chars[i]; } Integer forHeapSize = Limits.getHeapSize() - joinHeapSize - initialHeapSize; Integer forCPUtime = Limits.getCpuTime() - joinCPUtime - initialCPUtime; System.debug('-------- for each += ---------'); System.debug('forHeapSize ' + forHeapSize); System.debug('forCPUtime ' + forCPUtime); fromS = String.fromCharArray(charsCode); Integer fromHeapSize = Limits.getHeapSize() - forHeapSize - joinHeapSize - initialHeapSize; Integer fromCPUtime = Limits.getCpuTime() - forCPUtime - joinCPUtime - initialCPUtime; System.debug('-------- String.fromCharArray ---------'); System.debug('fromHeapSize ' + fromHeapSize); System.debug('fromCPUtime ' + fromCPUtime); System.debug(''); System.debug('-------- strings ----------'); System.debug('joins ' + joins); System.debug('fors ' + fors); System.debug('fromS ' + fromS);  The result of this code execution:  initialHeapSize 161166 initialCPUtime 242 -------- String.join --------- joinHeapSize 10016 joinCPUtime 17 -------- for each += --------- forHeapSize 10024 forCPUtime 48 -------- String.fromCharArray --------- fromHeapSize 10016 fromCPUtime 5  As you can see, the heap size for each approach is so close to 10 kilobytes, what is a size of the string of 10 000 characters (size) if each character takes only one byte. In case of creating 10 000 additional string objects, the heap size would be a bit more than 50 megabytes (10 000 * (1 + 10 000)/2). Taking into consideration the above,  Does not the '+=' concatenation create any additional string objects that devour your heap? Did not I miss anything? I am so amazed.  As you see, I use Omega 'Ω' as a chartToAdd. It has  the high-surrogate code point equals to 937, that needs at least 2 bytes to be encoded. How can 10 000 Omegas consume only 10 000 bytes of the heap size?  What weightful reasons Salesforce has that they do not to add the character data type? Any ideas?


Does Hilbert space has orthogonal/orthonormal basis?

Let $H$ a Hilbert space.   Q1) Does $H$ has an orthogonal/orthonormal basis ? I know that it's true if $H$ has finite dimension, but what happens in infinite dimension ? Because Gramm-Schmidt is not applicable anymore...   Q2) If the answer to my previous question is yes, does it still hold if we suppose $H$ being only an inner space (with infinite dimension) ?


I wrote three report_time to cron jobs   ## Report time */1 6-23 * * * /home/me/Music/src/report_time.py &> /dev/null   ## Report time 2 */1 6-23 * * *  cvlc /home/me/Music/audio/bell.wav &> /dev/null  ## report time */1 6-23 * * *  vlc /home/me/Music/audio/bell.wav &> /dev/null   However, non of them works as expected, they are all of mute and silence.  What' s the problem?


Why do downvotes detract reputation from poster on meta?

I read somewhere that downvotes on meta simply means that someone doesn't agree with you. But on Stack Overflow, downvotes typically mean the question is low quality or off topic. I completely understand why downvotes detract reputation from the poster (whose post is being downvoted) on Stack Overflow, but I don't understand it here.  I understand that all voting is subjective, but I feel that on meta, voting is purposefully subjective - Hence the  tag.   Could somebody explain the philosophy behind detracting reputation from users whose meta posts are downvoted?


how to sizeof a parameter of a function in C?

I have the following code in c:  void getNumber(int numberArray[]) {     printf("The size of the array is %u", sizeof(numberArray)); }  void main() {     int array[6] = {1,2,3,4,5,6};     getNumber(array); }   but why the The size of the array is 4? And how to get the size of whole array?


How to control object's path follow speed based on its position

I am trying to animate a rollercoaster. For now I have a cube following the Bezier path of the track. I need the cube to change its follow speed based on its height. (the higher it is, the slower it is).  How do I control follow speed based on the height of the object? Keyframing is not an option as the relationship is too complex.  I tried this with animation nodes, however height is affected by position on curve, which is affected by speed. Trying to control speed by height creates a paradoxical loop. Is there a way (in animation nodes or otherwise) to use the cube's current height, to determine its rate of change of position on the curve in the following frame?  Sidenote: I have an expression for speed (from physics energy formulas): speed = (200 - (2 x height))^0.5


Through the photoelectric effect among many others we learn that light is actually comprised of discreet quanta of energy. That's because of the energy of the emitted electrons as well as the minimum frequency of incident light that is able to start the process. A photon of frequency (energy) less than the threshold frequency is not able to free the electron from the surface. However if the required energy to free the electron was greater than this frequency by an integral value why couldn't the electron simply absorb two photons or three photons (or any required number of photons) so as to be released? In this case even with frequencies lesser than the threshold frequency there would be photoelectric effect.


$\max \ (x^TAx+y^TAy)$ such that $x^Tx = y^Ty = 1$ and $x^Ty = 0$

For a symmetric positive semi-definite matrix $A = Q\Lambda Q^T \in \mathbb{R}^{n\times n}$ and $\lambda_1 \geq \lambda_2 ....\geq \lambda_n$ find $$ \max \ (x^TAx+y^TAy) \ \ \text{s.t} \ x^Tx = y^Ty = 1, x^Ty = 0 $$ and corresponding $x, y$.  My approach was to define $a = Q^Tx$ and $ b=Q^Ty$. $$ \max \ (x^TAx+y^TAy) =\max \ (a^T\Lambda a+b^T\Lambda b)\\ =\max (\sum_{i=1}^{n}\lambda_ia_i^2+\sum_{i=1}^{n}\lambda_ib_i^2) $$ Clearly, $\sum_{i=1}^{n}\lambda_ia_i^2$ is maximized when $a=e_1$. Since $a^Tb=x^Ty=0$ the same maximization $b=e_1$ is impossible as  $b^Ta=b^Te_1 = e_1^Te_1\neq 0$. The next possible maximum for $\sum_{i=1}^{n}\lambda_ib_i^2$ is $b=e_2$.   Therefore, $$ x = Qe_1 = q_1 \\ y = Qe_2 = q_2 \\ \max \ (x^TAx+y^TAy) = \lambda_1+\lambda_2 $$  This is my intuition for what should be the solution, but I can't think of a way to definitely show that $x=q_1$, $y=q_2$ maximizes $x^TAx+y^TAy$. How can I show that $x=q_1$, $y=q_2$ is the optimal solution?


Does FaceTime work if I purchase my iPhone in Saudi Arabia then move countries?

I purchased an iPhone 6 with FaceTime from Saudi Arabia. Can I use FaceTime while I am India because someone told me that if you purchase an iPhone in Saudi Arabia the FaceTime does not work anywhere.


How can I evaluate L.C.M for the $3$ numbers $2,2.5,3$

How can I evaluate L.C.M for the three numbers $\;\;2,\;2.5,\;3\;\;?$   EDIT: this is Ti89 calculator;   and the answer is $15$  , why could that be possible?


How many Eulerian circuits from the node 0 are there in this graph?

I am new to this field, and I face with a question that asks me to count how many Eulerian circuits start from node 0 in this graph. The answer from the book is 264 but I feel that the answer is wrong. I have tried the Fleury's algorithm to count but after several steps, I started being confused.


How do I get email notifications of new questions?

I would like to get email notifications when someone submits a new questions to a specific community. I have not found a setting for this in my group profile page.  Is this possible?


The following limit appeared in a qualification exam: Find the limit of $$\lim_{x \to 0} \left( \frac{\tan (\sin (x))-\sin (\tan (x))}{x^7} \right).$$ I ended up doing it in Mathematica, is there any other way?  Thanks in advance!


Is there a phrase like "preaching to the choir" but with the opposite meaning?

"Preaching to the choir" means you're making a point to a group of people who all already agree with you.  Is there a similar phrase, meaning you're making a point/argument to a group of people who would never listen to you?  For example, heading to a vegan convention to tell everyone about how great it is to eat meat.


"This will help us ensure" or "This will help us TO ensure": use of TO with infinitival clauses

Could you please tell me which sentence correctly uses "to"? I am always a little confused when using "to" in a sentence.   Here, if it is a verb then "to" is required.     This will help us to ensure that   or      This will help us ensure that


I want to convert this url  http://ts.thebenamorgroup.com/g2g/category.php?cate=mens   to:  http://ts.thebenamorgroup.com/g2g/category/cate/mens/      I have this rule but it doesnt work:  Options +FollowSymLinks RewriteEngine on RewriteRule category/cate/(.*)/ category.php?cate=$1 RewriteRule category/cate/(.*) category.php?cate=$1


Why did the Separatists try to take Jango's DNA?

In the episode of The Clone Wars titled "ARC Troopers," the Separatists attack the Kamino cloning facilities in hopes of destroying them and having Ventress steal the host DNA for the clone troopers.  I understand the need to destroy the cloning facilities, but why would they need to take Jango Fett's DNA?  Couldn't the Kaminoans just use DNA from one of the existing clones?


How can place an element at the bottom of another element using CSS?

Look at this:

  #d1 {     height: 3000px;     background-color: red; }  #d2 {     background-color: green;     height: 40px;     width: 40px;     position: absolute;     bottom: 0px; }   I want to make div d2 appear at the bottom of d1, not the bottom of the screen.   Why position: absolute doesn't work here?


Find Kernel of map $f:K[X,Y] \rightarrow K[T]$ defined by $f(X) = T^2, f(Y) = T^3$

I know that $\ker f = (X^3-Y^2)$, but I don't know the reasons. I would like to see the steps to get solution.  Thanks in advance  Emanuele


How was the first log table put together?

Henry Briggs compiled the first table of base-$10$ logarithms in 1617, with the help of John Napier.  My question is: how did he calculate these logarithms? How were logarithms calculated back then?  I've found   to be fairly useful, but they don't seem to say much in the way of what I'm looking for. Any answers or useful references would be appreciated.


Functions $f:\mathbb R \to \mathbb R$ which satisfy $f(x^2+f(y))=y+(f(x))^2$

Find all the functions $f:\mathbb R \to \mathbb R$ which satisfy    $$f(x^2+f(y))=y+(f(x))^2$$    for all $x, y$ in $\mathbb R$.   I have the following proof from my math book and want to see if I can get another one.   Proof: Let $x=0$. Then we have  $$f(f(y))=y + f^2(0),$$  so $f$ is bijective. Let's suppose $f(x)$ is not equal to $x$. If $f(x)>x$ then we have $y\in \mathbb R$ that $f(x)= x+ (f(y))^2$. From our condition we can say that $f(x)=f(y^2 + f(x))$ and because the function is bijcetive we have $x=y^2 + f(x)$ so $x>f(x)$, which is impossible. Hence $f(x)=x$.


Does anyone know of an Easy solution to dual boot Window and Ubuntu with UEFI after you have already installed Ubuntu or for that matter from the get-go? I have tried enabling CSM in my BIOS and using it for Windows but Windows runs really slow cause I guess it requires UEFI for 64 bit applications. All the posts and tutorials on this are real confusing so if you can't make this for a laymen to understand, I guess Windows has just won this battle.


How good is the Google Scholar search Engine?

I've been using Google Scholar search engine for a while in order to find scientific articles for my master thesis, but I've come to notice that the search algorithm is not as good as the real google search engine.   I feel that Scholar requires quite specific search terms in order to find the right articles. Does anybody share my experience and is it true that the Google Scholar search engine is worse at searching than the main Google Engine?


how to install Ubuntu 14.03.4 LTS into laptop with windows xp

i am using windows XP in my laptop. i want to install Ubuntu 14.03.4 LTS in my laptop and use it in addition to my windows XP. after downloading Ubuntu 14.03.4 LTS onto my laptop, i can't install it because "this file does not have a program associated with it for performing this action, create an association in the folder options control panel". what this means and how to go about it?


I am new to linux in general and have figured out the different programs belong to different groups. I can easily solve my own problem by typing sudo all the time. But I'd rather understand the why of the problem and fix it permanently.   I've installed php as part of the lamp-stack. Everything work fines. However when I open a file with PHPStorm or Sublime Text I have problems working with files. I can get around this already by typing.. sudo chown -R myusername /path/to/file  I've read that I can use umask to explore this further. But that's as far as I can figure out so far.  How can I permamently set permissions in the programs (phpstorm, sublime text) so that they can work with the files in /var/www/html so that they can be worked with without using sudo to open them, or keep having to change ownership of them all the time?


What is ArcGIS 10 definition query to select max value from table?

I want to select max date from may layer by below query in my Web GIS but I cannot.  (SELECT MAX( GregorianDate ) FROM DrillingProgress WHERE Crew = 'c-Chabock')


Is it possible to have all footnotes placed at one specific place in my document instead of bottom of each page? I have multiple footnotes scattered in the article and it would be clearer if all of them are at the very end of the article  Edit (moved from an ``answer'')  is it possible in endnotes to have links in each number where I placed footnote to the actual footnote at the end?


How to decide what type of paper to use for a flyer to hand out at a tradeshow?

I'm printing a tradeshow flyer and was wondering what type of paper I should print it on. I don't want anything glossy so I'm trying to decide on the following:   100# text weight matte 80# cover 80# matte   What is the difference between the types above? And how can I make a decision?


Calculate the hash (MD5 or otherwise) of a string

I'm trying to cache the results of a macro, similar to , but the argument of the macro can contain arbitrary characters and it's not suitable to be inside \csname ... \endcsname.  So, I'm wondering: surely some of the TeX core or packages contain functionality to calculate a hash, MD5 or otherwise (I don't really care which). But… I can't find it. The only result I've got from grep'ing my TeXlive tree is pdfmdfivesum, but it only works on files, not strings.  So: are there ready-made hash calculation macros/packages available somewhere?


What is the official position of JKR franchise on "canonicity" of facts in Harry Potter universe?

We know that there are multiplicity of different works/sources in Harry Potter Universe:   HP books 1-7 Associated JKR books (Beedle the Bard, QTTA, HP Prequel story, Magical Beasts) HP Movies 1-7 JKR interviews jkrowling.com information Pottermore Harry Potter amusement parks Possibly, other non-JKR franchise works, though to the best of my knowledge none exist as of now and none are planned. assorted fan fiction :)   Given that the universe is pretty big/complex, with many sources, it's not surprising that there already are discrepancies between different sources (the obvious ones between books and movies; ones ; and ).  To manage such discrepancies, other universes frequently employ official or unofficial canon rules (as an example, Star Wars , whereas Dr Who ).  Is there an official position of JKR/Harry Potter franchise on HP Universe canon structure?  NOTE: "No canon" and "No current official position" are two different answers.


I would like to turn off mouse acceleration to begin training my hand for better accuracy and precision in my mouse movements. How can I do this in Ubuntu 10.10?


If earth generates magnetic field does it attract metal?

If earth generates magnetic field does it attract metal objects at the surface of the planet and make them heavier?


So assume $(X,d)$ is a metric space with $A \subseteq X$ as a subspace. Show that the function $f: X \rightarrow \mathbb{R}$ defined by $f(x)=\inf\{d(x,a)|a\in A\}$is continuous.  My instinct is to use the definition of continuity for metric spaces. Namesly, given any $\epsilon >0$, there is a $\delta$, such that:  $d(x,y) < \delta \implies d(f(x),f(y))< \epsilon$, can I therefore assume that $\mathbb{R}$ has the usual topology or does that change the nature of what's being asked? Thanks


If two subsets $S,T\subseteq G$ have sum of cardinalities greater than $|G|$, then $S+T=G$

Let $S$ and $T$ are two subset of a finite group $(G,+)$ so that  $|S|+|T|>|G|$, then      Prove that $S+T=G$, where $S+T=\{s+t:s\in S ,t\in T\}$   My effort: It is clear that $S+T\subseteq G$ as elements of $S$ and $T$ are elements of $G$ also and $G$ is closed under addition.Also $|S+T|<|S||T|$. Then how to show elements of $G$ also in $S+T$? Does the condition $|S|+|T|>|G|$ say it? I don't understand?


I am running on Python 3.7.1 and I've been trying to find a way to clear a screen of any previously printed messages. The problem is that os.system("cls") does nothing, it only makes a small window pop up for a fraction of a second, then it closes. I've tried to add a \n at the end and multiplying it by how many letters there are, still not working.


What is the experimental value of the ratio between the proton and the electron charge? Or more generally, is there a table that lists the ratio of the different nuclei charges to that of the electron?


What, precisely, were Dr. Jones' degrees?

Clearly it would seem that he has a doctorate in ARCHAEOLOGY - but what else? Not Theology, clearly, but Anthropology? History? Surely there's a novel or television episode or simple screen-cap that can shed some light on this.


Is there a way of measuring components in circuit?

I have some old circuit boards full of SMD components that I would like to reuse in my projects. Before going through the trouble of removing any from their old circuits, I would like to know if they are of any value to me by measuring their resistances and capacitances for example. But simply using a multimeter and probing the terminals of one component like a resistor would give the parallel resistance between all paths from one terminal of the resistor to another, not just the resistance of the one component across which I have connected my multimeter.  Is there any way to measure single components without removing them from their circuit boards?


What did Feynman mean by "gravity itself is a pseudo force"?

Feynman writes:     One very important feature of pseudo forces is that they are always proportional to the masses; the same is true of gravity. The possibility exists, therefore that gravity itself is a pseudo force. ... It might seem all right to consider gravity to be a pseudo force, to say that we are all held down because we are accelerating upward... Einstein found that gravity could be considered a pseudo force only at one point at a time...   Now, how can gravity be a pseudo force? What did Feynman meant by saying this statement? Is gravity really a pseudo force? If so, why?


I am depressed, after trying to install HieroTeX with MikTex 2.9 and TeXnicenter for four weeks without succeeding. I installed hieroglf, it works perfectly, but has only 60 signs. I followed the main advices, so I created a folder texmf-Local , throwed in  the content of HieroTex3.5 and Hiero-Type1.3.1.4 , put the axmf , mf and sty files where I think they belong, put that directory  texmf- local in the path searched by Miktex, updated map and file databases fo Miktex. Still the files can be compiled but Hiero fonts are not found.  Te main errors I can detect from log are the following:   " No file egypto.sty.tex found" and  "  "miktex-makepk - PK font HieroB could not be created." and similar for other fonts Thanks


How to set Ubuntu to synchronize my clock with a time server?

I would like Ubuntu to automatically synchronize my system clock with a timeserver at startup.  However, my PC isn't connected to the Internet until after I've logged in (plus 5 - 10 seconds for good measure).  How can I set it to do this?


A line is drawn through the point $A(1,2)$ to cut the line $2y=3x-5$ in $P$ and the line $x+y=12$ in $Q$. If $AQ=2AP$, find $P$ and $Q$.

A line is drawn through the point $A(1,2)$ to cut the line $2y=3x-5$ in $P$ and the line $x+y=12$ in $Q$. If $AQ=2AP$, find the coordinates of $P$ and $Q$.  I found the lengths of the lines $AQ$ and $AP$ in terms of $x$ and $y$ and used $AQ=2AP$ to get this equation $11x^2-40x-16=0$  Working: $AP=\sqrt{(x-1)^2+(\frac{3}{2}x-\frac{9}{2})^2}=\sqrt{\frac{1}{4}(13x^2-62x+85)}$  $AQ=\sqrt{(x-1)^2+(-x+10)^2}=\sqrt{2x^2-22x+101}$  $AQ=2AP\Rightarrow \sqrt{2x^2-22x+101}=2\sqrt{\frac{1}{4}(13x^2-62x+85)}$  $\Rightarrow 2x^2-22x+101=13x^2-62x+85\Rightarrow 11x^2-40x-16=0$  Using the quadratic formula I found $x=4,x=-\frac{4}{11}$  I then substituted these values into the two equations in the question to get the coordinates $(4,\frac{7}{2}),(-\frac{4}{11},-\frac{15}{11})$ or $(4,8),(-\frac{4}{11},\frac{136}{11})$  But the answers in the book are $(4,\frac{7}{2}),(7,5)$ or $(\frac{2}{5},-\frac{19}{10}),(\frac{11}{5},\frac{49}{5})$  I don't know where I went wrong in my method.  Edit: Found some errors in my method and calculation.  Using $x=4$ in $2y=3x-5$ gives $P(4,\frac{7}{2})$  Line with points $AP$ has equation $y-2=\frac{\frac{7}{2}-2}{3}(x-1)\Rightarrow y=\frac{1}{2}x+\frac{3}{2}$  $Q$ lies on the same line. Therefore, the intersection between $y=\frac{1}{2}x+\frac{3}{2}$ and $y+x=12$ is the point $Q$. Working: $\frac{1}{2}x+\frac{3}{2}=-x+12\Rightarrow x=7$ Therefore, $y=-7+12=5$. Point Q has coordinates $(7,5)$.  But $x=-\frac{4}{11}$ is not the other $x$ coordinate of $P$ according to the answers in the book. I have no idea where I went wrong at this point.


Solid viewport shading in edit mode is transparent in places?

Limit selection to visible is on! This is driving me bonkers. I hit a button somewhere and now my mesh is like this in edit mode:    Note: it's fine in object mode.  Please help! :-(  edit: i meant limit selection to visible IS on lol


How do I cross-reference a figure between two tex documents?

My Professor is requiring me to write a script for my final presentation. I'm using LaTeX (because I can), and I'd like to reference my a slide from my beamer presentation within my script.  Right now I have two files, presentation.tex and script.tex.   presentation.tex:   \documentclass{beamer}  \title{My Presentation} \author{John Smith}  \graphicspath{{src/}}  \begin{document} \maketitle  \begin{frame}     \begin{figure}[p]         \centering         \includegraphics[width=\textwidth,keepaspectratio]{myimage.png}         \caption{This caption is important (Williams).\label{fig-1-williams}}     \end{figure} \end{frame}  \end{document}   script.tex  \documentclass{article}  \title{My Script} \author{John Smith}  \begin{document} \maketitle  \input{presentation}  \end{document}   I've encountered , which seemed similar to my question, however their question appeared to include the entire document, which is not my goal. I'd like to be able to reference a label of a figure in presentation.tex. Something such as the following:  As you can see by Figure~\ref{fig-1-williams}, dogs are better than cats.   How does one go about citing an out of document image like this? I believe the two documents should remain paired in some way, but I'm not sure how.


I have a ubuntu server machine where I want to change the username I tired: sudo usermod -l francesco ubuntu  But it tells me that I can't because there are open processes: usermod: user ubuntu is currently used by process 2119  But when I do: pkill -9 -u ubuntu  It logs me off and I have to insert the username and password again. I tied:  reboot pkill -9 -u ubuntu && sudo usermod -l francesco ubuntu running these command with sudo su


So i'm trying to display a TextView whenever a user clicks an item on a ListView. However, when i click a list item, i get this error... java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference. What causes this to occur in regards to "TextViews" specifically and are there any possible solutions to solving it? Thanks. Update Here's how i set the TextViews.. Activity @Override public void onTextFooterListener(String String1, String String2) {      tab1.setLabels(String1, String2);  }  Tab1Fragment public void setLabels(String mString1, String mString2) {      title1 = mString1;     title2= mString2;      title1Footer.setText(title1);     title2Footer.setText(title2);     updateTimerLabel(); }  TextViews title1Footer= (TextView) rootView.findViewById(R.id.title1_footer); title2Footer= (TextView) rootView.findViewById(R.id.title2_footer);  tab1 is declared as public Tab1Fragment tab1 = new Tab1Fragment(); If i comment out the onTextFooterListener, the code seems to work just fine...


Why maximum likelihood estimation is same with minimizing cross-entropy?

Lots of articles say that MLE is as same as minimizing cross-entropy.  I tried to prove this but failed.    This article has the same problem, but I could not understand it.  $\,$  For example, I have several data points $X_i\,(i=1,..., N)$  These points are distributed as $X \sim P_{data}(X)$  Let, I want to approximate $P_{data}(X)$ with some parameters.  Let this approximated model is $P_{model}(X;\theta)$.  $\,$  First, I tried MLE.  $\theta^*=argmax\,\,\prod_{i=1}^{N}P_{model}(X_i;\theta)$  $\,\,\,\,\,\,\,=argmax\,\,\log (\prod_{i=1}^{N}P_{model}(X_i;\theta))$  $\,\,\,\,\,\,\,=argmax\,\, \sum_{i=1}^{N}\log (P_{model}(X_i;\theta))$  $\,$  Second, I tried minimizing cross-entropy.  $\theta^*=argmin\,H(P_{data}(X),P_{model}(X_i;\theta))$  $\,\,\,\,\,\,\,=argmin\,\, E_{X\sim P_{data}(X)} [-log(P_{model}(X_i;\theta))]$  $\,\,\,\,\,\,\,=argmax\,\, E_{X\sim P_{data}(X)} [log(P_{model}(X_i;\theta))]$  $\,\,\,\,\,\,\,=argmax\,\, \sum_{i=1}^{N} P_{data}(X_i)\log (P_{model}(X_i;\theta))$  $\,$  OK. Here I have the different result.  In cross-entropy, $P_{data}(X_i)$ is multiplied.  Why does this happen?  And also, how can be cross-entropy calculated?  Because we do not know $P_{data}(X_i)$ in general case.  I'm really curious about this. Kind explanation will be greatly appreciated.


Windows xp does't let me chose ubuntu using an USB

I have downloaded Ubuntu 13.04 in a pen-drive, but when I restart the computer, it doesn't let mi choose.


why we override finalize() method in java?

Where we need to override finalize() method in java when we don't have idea when finalize() method for any given object might be run?What type of resources we can close in finalize()?What is the best chances when GC will called finalize() method?


Is there a page that explains how inline code spans should and should not be used?

I have done some reviews of new user's questions recently,  and I noticed that most of these posts do not use inline code spans (e.g., "the main() method", "the HelloWorld class") - the things formatted with backticks (`).  Does SO have a page/question where you can redirect someone to explain what the inline code spans are, and how they should be used (preferably with examples)?  I found this question:  There is a good answer there which says that  inline code spans should be used for "code and code-like artifacts". However, that question is about a different thing, and many people may still wonder what a code-like artifact is. For instance, file names or fragments of a log file are often formatted as inline code spans, but they, probably, cannot be called "code-like artifacts". There are other examples that may look confusing.  In other words, many programming books have a typographical conventions section which explains how the book uses special text styles. Does SO have something similar which explains the use of the inline code spans?


Asus ROG Zephyrus Keyboard Backlight not working

I'm having quite the time getting my keyboard backlights to work on my ROG Zephyrus laptop. Some of the F# keys do not respond their dedicated function when holding the Fn key. Specifically the key combinations for adjusting keyboard backlight for my model FN+F3 to dim and FN+F4 to brighten.  Specifically, I have followed the many suggestions that were recommended from this  with no luck. I have edited the grub file as below and after updating grub I've done a reboot.  sudo vim /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=" sudo update-grub reboot   I've also tried:  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi= acpi_backlight=intel sudo update-grub reboot   I've also defined several different options all at once. I've tried a few different combinations as well.  I'm not for sure which one of these it was but caused my computer to lock up on a reboot with two lines indicating a namespace error.  Another setting basically removed all functionality from the keyboard and I had to re image in order to retain basic keyboard functionality back.Some of these additional options that I'm referring to are in the link above but I'm including them below for completeness.  GRUB_CMDLINE_LINUX="acpi_osi=Linux" GRUB_CMDLINE_LINUX="acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi=linux acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi_Linux"   I've installed this "brightness-controller" that was suggested on another site but that doesn't resolve anything.   I'm running the 375.82 Nvidia graphics drivers without any issues.  The person in the link above that was asking the question listed some specs from their system using a certain command lshw -C display.  So I'm going to do the same if it will provide any useful information. For specs related to my computer you can refer to this     *-display                   description: VGA compatible controller    product: NVIDIA Corporation    vendor: NVIDIA Corporation    physical id: 0    bus info: pci@0000:01:00.0    version: a1    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress vga_controller bus_master cap_list rom    configuration: driver=nouveau latency=0    resources: irq:127 memory:db000000-dbffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000(size=128) memory:c0000-dffff   Quick update 08/16/17  I emailed the driver support team from Asus and they informed me that they are using the Atk drivers to control the keyboard brightness.  So I did some searching around and came across an article  that mentions to run the following command.  echo 3 > /sys/class/leds/asus\:\:kbd_backlight/brightness;exit   However, when I run the command I'm denied permission. So I added sudo like so and it still failed...   So my first question is why I can't execute this command and if I'm doing something wrong what the correct command would be.  From here I looked at what the contents of that location were:    I then tried a few different commands hoping for a different outcome but the command I tried still failed even with sudo:    What am I doing wrong here? Can someone give me some commands to try out on this directory to see if I can change the brightness.


I have a list containing six lists  lst = [     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All'],     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App'],     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.NETCore.App'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.NETCore.App'] ]   and I am trying to convert this into  {     "2.2.5": ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',               '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',               '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5'],     "2.2.6": ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',               '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',               '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6'] }   So far this is what I did:  to_dict = {key[0]: [value[1] + '/' + value[0] for value in lst] for key in lst}   This returns   {'2.2.5': ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6'],  '2.2.6': ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6']}   The inner loop adds everything from the index 1 from lst. How should I add values appropriate to its key?


TexLive 2015 - error when using "french" options with TexStudio

I am new in the LaTex world. I just installed yesterday Texlive 2015 et texstudio (last version) on my windows 10 computer. Everything seems to be working properly except for the template "Article{french}" which refuses to compile any minimal working example. The problem may come from the french option or Texstudio parameters. The "collection lang-french" and "babel-french" are installed. I checked in the TexLive manager. From that point I read all I can to find a solution without any success.  Here is what I wrote:      \documentclass[french]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}     \usepackage[a4paper]{geometry}     \usepackage{babel}     \begin{document}      test     \end{document}   Here is the log file:   % les options suivantes (conseillées) par défaut : \abbreviations \disallowuchyph \overfullhboxmark \tthyphenation \tabbingaccents \automaticlettrine % désactivez les options de frenchle pour '«' et '»' ! % test eFrench = {\befr} \newcommand{\fbefr}{{\footnotesize E}F{\footnotesize RENCH}} \DeclareRobustCommand{\befr}{\fbefr}   I cannot understand what all this means as I have no knowledge on computer or software at all.  Would someone understand or had any solution to make my texlive usable in french?  Thank you very much !    The posted file ran without error until the recent update replacing frenchle by e-french in texlive. The file now generates  (/usr/local/texlive/2015/texmf-dist/tex/generic/e-french/french.cfg ! Undefined control sequence. l.2 \abbreviations   I'm using PdfLatex


Solving of a seperable differential equation

How do you solve this equation:  $$\frac{\mathrm dy}{\mathrm dx} + \frac{1}{xy} = y^3$$  I've tried to multiply everything by $y$ but I can not get all $x$'s ($\mathrm dx$) on one side and $y$'s ($\mathrm dy$) on the other.


Intuitive explanation of Residue theorem in Complex Analysis

The residue theorem that states that if   a) $U$ is a simply connected and  open subset of the complex plane,   b) $a_1,\dots,a_n$ are finitely many points of $U$,  c) and $f$ is a function which is defined and holomorphic on $U\backslash \{a_1,\dots,a_n \}$,  d) $\gamma$ is a rectifiable and positively oriented curve in $U$ which does not meet any of the $a_k$, and whose start point equals its end point,  then $$ \oint_\gamma f(z)\, dz = 2\pi i \sum_{k=1}^n   \operatorname{Res}( f, a_k ). $$ Question: What is the intuitive explanation of this theorem ?   I appreciate a explanation like geometry ( whit Java Applet ? ). But algebric explanation are welcome. I know the proof of this theorem, I'm just trying to understand the intuition ( if exists ) this theorem.  I'm motivated to get an intuition of this theorem because he gave a wonderful explanation of the intuitive of an part of fundamental theorem of calculus using the properties of the  telescopic sums, mean value theorem and Riemann sum whit partition $\{a=x_0<x_1<\dots<x_n=b \}$ of interval: \begin{align} F(b)-F(a)= & \sum_{k=1}^{n}[F(x_k)-F(x_{k-1})] & \mbox{ telescopic sum } \\ = & \sum_{k=1}^{n}F^\prime(x_k^*)[x_k-x_{k-1}] & \mbox{Mean Value Theorem} \\ = & \sum_{k=1}^{n}F^\prime(x_k^*)\Delta x_k & \mbox{Riemann sum} \\ \approx & \int_{a}^{b}F^\prime(x)\, dx & \end{align}  It makes me think that there may be an explanation as elegant as this (but not necessarily following the same reasoning) in understanding the theorem of residues.


I am using bootstrap datepicker inline, when i click on a year, it is fine as i see ciao in console, however, when I click on prev or next, and then I click on a year, console is not showing ciao. I have tried a lot of different things, one of which is the following and goDateClick() is firing but not the click event within it    goDateClick();    $("#sandbox-container .prev").on("click", function(e) {     goDateClick();   });    $("#sandbox-container .next").on("click", function(e) {     goDateClick();   });    function goDateClick() {     $("#sandbox-container span").on("click", function(e) {        console.log("ciao");     });   };   Try it, click a year and it's fine, click next or prev and the year won't show up    I have tried the suggested answer as per "duplicated" and it doesn't work check


Most accurate GPS hardware for less than 1 mile radius

I apologize if this is a duplicate but I can't find a good answer or area to know where to find the correct answer.  I am looking for the technology or hardware around wearables or similar technology that can detect movement or at least log location within about a 2 foot area.  I have looked around at it looks like the most common devices use triangulation but aren't more accurate than around 400 feet.  Is there any tech that is more specific than a two foot radius?  I am not trying to waste anyone's time but I can't find a better place to get an answer....


how do I connect an android phone to a Linux wifi?

I am using my Debian Linux computer (called 'theresia') as a wifi access point.  I can use the network from iOS, Meego and Maemo, and from my other Debian machine obviously, but none of my Android devices even sees the signal.  from Debian, the icon for the signal is different than the access point produced by an Android phone (here, the nozhatu signal):    any clue?


Collection of sets with a given cardinality $\kappa$ is not set

Show that collection of all sets with cardinality $\kappa\neq0$, is not set.   I'll state my approach and I need to see whether this idea is precise/precisable or not :  First let $K$ be the set with $card(K)=\kappa.$  Then let $C$ be the collection of all sets with cardinality $\kappa$. By contrary, suppose it's a set.  Now it can be shown that there's a bijection $\varphi:C\rightarrow F$, which $F$ is the collection of all one-to-one function like $f$, with $dom(f)=K$.  I don't know whether $F$ is now a set or not !  But if $F$ is a set, then I think $\displaystyle\bigcup ran(f)$ would be a good set to be considered and to construct set of all sets.  Every guidance (even a completely new approach) or correction to my idea is very appreciated.


Creating a folder named "CON" in Windows

Possible Duplicate:          I tried crating a folder with the name CON in Windows, but I couldn't crate it in any of the hard drives.   What could be the reason? Is it possible to create such a folder?


I am trying to use the same type of formatting for all enumerated lists, so I thought it would had been easier to write a macro with the formatting, and then to just write in the macro every time I had to use a list, so to avoid repeating myself and messing up the formatting, here's the code. \documentclass[11pt, a4paper]{article} \usepackage{enumitem}  \setlist[itemize]{noitemsep, topsep=0pt}  \newcommand{\enumFormatting}{topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex}  \begin{document} \begin{enumerate}[\enumFormatting] \item first item \item second item \item third item \item fourth item      \end{enumerate}   \end{document}  Unluckly this didn't work out since an error is returned when I use \enumFormatting as an argument, I must be getting something wrong. Hopefully you can help me fix this, thanks.


Sql Server String column concat and use of group by clause

I have a table like this:  Name          Address                             Matches Tim Jones     1 London Road, London, W10EU        Peter Jones Tim Jones     1 London Road, London, W10EU        Smith Jones Tim Jones     1 London Road, London, W10EU        Tim Jones Tim Jones     1 London Road, London, W10EU        S Singh Jack Sons     10 West Street, London, W900U       John Graham Jack Sons     10 West Street, London, W900U       Jack Sons   I want the result like this:  Name          Address                          Matches Tim Jones     1 London Road, London, W10EU     Peter Jones,Smith johns,Tim Johns, S Singh Jack Sons     10 West Street, London, W900U    John Graham, Jack Sons   It should concatenate all 'Matches' column and group by name, address. SQLServer08


My MacBook Air 2017 13" has run out of memory. I restarted my computer, opened ONE safari page(stackexchange.com) and got these results. (macOS Catalina version 10.15.2) Any recommendations? Thanks!


Strange "Undefined reference" error on C++ Netbeans project

The solution to the duplicate question did not work I have the following files: ListaEnc.hpp #include "Elemento.hpp"  template<typename T> class ListaEnc {  public:     ListaEnc();     ~ListaEnc(); //  inicio     void adicionaNoInicio(const T& dado);     T retiraDoInicio();     void eliminaDoInicio();         T pegarHead(); //  posicao     void adicionaNaPosicao(const T& dado, int pos);     int posicao(const T& dado) const;     T* posicaoMem(const T& dado) const;     bool contem(const T& dado);     T retiraDaPosicao(int pos); //  fim     void adiciona(const T& dado);     T retira(); //  especifico     T retiraEspecifico(const T& dado);     void adicionaEmOrdem(const T& data); //  outras     bool listaVazia() const;     bool igual(T dado1, T dado2);     bool maior(T dado1, T dado2);     bool menor(T dado1, T dado2);     void destroiLista();         int pegarTamanhoLista();  private: //trocar pra private     Elemento<T>* head;     int size; };  ListaEnc.cpp #include "ListaEnc.hpp" #include <cstdlib> #include <iostream>  template<typename T> ListaEnc<T>::ListaEnc() {      ... }  main.cpp #include "ListaEnc.hpp" using namespace std; int main(int argc, char** argv) {     double x1, y1;          x1 = 2; y1 = 4.2;      ListaEnc<int>* teste = new ListaEnc<int>();          return 0; }  This should compile just fine, but I get an undefined reference error to ListaEnc on main.cpp. I have more files in which the reference to ListaEnc is also undefined, but I tried isolating it and still can't get it to work. Does anyone understand why this is happening? edit: More specifically, there is an undefined error to the constructor and destructor of ListaEnc


Maximum filename length in NTFS (Windows XP and Windows Vista)?

I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?


The two sets are the following: $(0,1) $ and $ [0,1]$  I know that (the cardinality of) $|(0,1)|=| \mathbb R|$ so it has to be true, that $[0,1]=| \mathbb R |$  Can I maybe use Hilbert's paradox of the Grand Hotel, or should I found a function, which Domain is $(0,1)$?


Convex functions in probability: $h(\alpha x_1 + (1 - \alpha)x_2) \le \alpha h(x_1) + (1 - \alpha)h(x_2)$

I was studying probability and came across this statement:  If $h(x)$ is a convex function, that is, for $0 \le \alpha \le 1$ $$h(\alpha x_1 + (1 - \alpha)x_2) \le \alpha h(x_1) + (1 - \alpha)h(x_2)$$ for example $h(x) = x^2$ or $h(x) = e^x$, then for any $x_0$ there always exists a $b$ such that the line $h(x_0) + b(x - x_0)$ lies below $h(x)$, that is $$h(x) \ge h(x_0) + b(x - x_0)$$ for any $x$. In particular, $h(X) \ge h(EX) + b(X - EX)$ for some $b$.  This entire thing looks like nonsense to me. The claims that it makes do not follow (are not implied by) the previous statements. For instance, it says that $h(\alpha x_1 + (1 - \alpha)x_2) \le \alpha h(x_1) + (1 - \alpha)h(x_2)$, but then it says that this implies that $h(x) \ge h(x_0) + b(x - x_0)$, which is at least unclear. Could someone please clear this up, so that I can understand what point it's trying to make? Thank you.


$y$ be the solution of $y'+y=|x|,x\in \mathbb{R}$, find $y(1)$

Let $y$  be the solution of $$y'+y=|x|,x\in \mathbb{R}$$ $$y(-1)=0$$  Then what is the value of $y(1)$:  Efforts:   I know how to solve the linear equations of general form $$y'+Py=Q$$ where $P$ and $Q$ are continuous function of $x$.   In my case $P=1$ and $Q=|x|$ and both are continuous.   Now  if I apply the formula I get   $$ye^x=\int e^x |x|dx+C$$  Now if I put the initial value I get $$0=\int e^{-1}dx+C$$  Now what should I do? I mean what should be the range of integration and how I proceed from here.  Thanks.


Noetherian ring and the same prime divisors

Let $A$ be a Noetherian ring and let $x \in A$ be an element which is neither a unit nor a zerodivisor. Why the ideals $xA$ and $x^{n}A$ (where $n \in \mathbb{N}$) have the same prime divisors? i.e. $$\operatorname{Ass}(A/xA) = \operatorname{Ass}(A/x^{n}A).$$  (Matsumura, Commutative Ring Theory, Exercise 6.3)


The tag search in iOS app could be improved

Please change the tag search to be case insensitive. Also, optionally set that text entry field to be lower case since tags are predominantly lower case.   The screen shot show what happens if you start typing i, o, s...


After reading of:  I wonder if the  also applies to flagging of old questions.  I have the subjective feeling the longer the time between the question and the flagging is, the longer it takes to become reviewed.   Is flagging of old posts a waste of moderator time? Should I avoid that?


What shades of blue go well together (website design)

I've got a fixed layout page and the client has asked for it to have "shades of blue". What colour would you recommend for the background, page wrapper background, text, dropdown menu and the buttons on the side?


Find all Facebook comments on external websites

Is there any way to find all comments on external websites connected with a Facebook account? Let's say I want to find all my Facebook activity on external pages based on profile URL; is there any way to do this?


I'm wondering if there's a TeX package where I could find a proper command to type curl and divergence in equations. Any help? Cheers, Riccardo


I have two questions concerning pgfplotstable and number formatting with pgf. Consider the following piece of code:  \documentclass{article} \usepackage{pgfplotstable} \usepackage{amsmath}  \begin{document} \pgfplotstableread{ A     B        C 1.1   12       1300000 21.1  200000   214300000 }\mytable \pgfplotstabletypeset[columns={A, B, C},   columns/A/.style={postproc cell content/.append style={     /pgfplots/table/@cell content/.add={}{ s}}, fixed zerofill, precision=1   },   columns/C/.style={postproc cell content/.append style={     /pgfplots/table/@cell content/.add={}{ s${}^{-1}$}}, fixed zerofill, precision=1   }  ]\mytable  \end{document}   I would like to:   align the content of the column A at the decimal separator (obviously I've tried dec sep align but the it messes up with the postproc cell content (it adds the " s" before the dec sep "." - e.g. : 21 s.1 s), other than that it aligns fine, print the number using engineering notation (the powers of ten must be multiples of three) for the column B - e.g. : $200\:\cdot\:10^{3}$ instead of $2\:\cdot\:10^{5}$) do all these for the column C: append content, print using engineering notation, align on the \cdot of the engineering notation (like sci sep align)   Do you know some way(s) to achieve any of those goals ?  EDIT Thanks to Jake's answer, I've got almost what I want, however I have one last problem with siunitx. The following piece of code compiles (note the alias to make it compile, otherwise siunitx fails..)  \documentclass{article} \usepackage{pgfplotstable} \usepackage{siunitx} \usepackage{booktabs}  \begin{document} \pgfplotstableset{   alias/as/.initial=d, } \pgfplotstableread{ d 7000000 }\loadedtable \pgfplotstabletypeset[columns={as},   columns/as/.style={     column name={$2 \times 3d$},   } ]\loadedtable \end{document}   This next piece doesn't:  \documentclass{article} \usepackage{pgfplotstable} \usepackage{siunitx} \usepackage{booktabs}  \begin{document} \pgfplotstableset{   alias/as/.initial=d, } \pgfplotstableread{ d 7000000 }\loadedtable \pgfplotstabletypeset[columns={as},   columns/as/.style={     column name={$2 \times 3d$},     column type={S[round-mode=places, round-precision=1, scientific-notation=engineering, table-format=5.1e1, exponent-product = \cdot]},     string type   } ]\loadedtable \end{document}   How to avoid siunitx parse the headers ? (that would also, I guess, make it possible to use column identifiers with the letters 'e' and 'd')


First line in beamer block ignores abovedisplayskip?

If I use an an align environment within the a beamer block, the \abovedisplayskip is ignored. How can I force that setting?   My MWE is   \documentclass[t]{beamer} \usecolortheme{rose} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt \begin{frame} \begin{block}{Some Block} \begin{align} %does not have 0pt abovedisplayskip     e^x &= \sum_{k=1}^\infty \frac{x^k}{k!} \end{align} \end{block} \begin{block}{Some other Block} text \begin{align} %abovedisplayskip works after text line     e &= \lim_{n\to\infty} \left(1+\frac1n\right)^n \end{align} \end{block} \end{frame} \end{document}


I want to find all integer solutions for $1+2^{a}+2^{2a+1}=b^2$. How could I do this?


How would I solve the following question involving elementary matrices?

$$A = \begin{pmatrix}0&5\\ 7&4\end{pmatrix}$$  (i) Write $A$ as a product of 4 elementary matrices.  (ii) Write $A^{-1}$ as a product of 4 elementary matrices.  I have managed to solve for $A^{-1}$, which is: $$\begin{pmatrix}-\frac{4}{35}&\frac{1}{7}\\ \frac{1}{5}&0\end{pmatrix}$$  But I am struggling to figure out how I would split each of these into 4 elementary matrices.  I know that if I can solve the 4 elementary matrices of one of them, I just need to invert them to get the elementary matrices of the other.  Any help?


Scenario: I 'look good' and I 'feel well,' how do I compare the two as being equal?  consider the following two sentences:  "I look as good as I feel" -and- "I look as well as I feel"  I would choose the former, even though I don't 'feel good,' it just sounds right. However, consider these two sentences:  "I feel as good as I look" -and- "I feel as well as I look"  I would still choose the first one!  Is that right? to always use 'as good' in comparisons?


What's the difference between pdfTeX and pdfLaTeX?

I've been working on a project and compiled it using pdfLaTeX, then tried to compile using pdftex and got a whole lot of errors. I'd like to know why that would happen since it's a very plain file and I did not put a pdflatex option in documentclass or anything like that, and what's the real difference between them.


Fonts not looking right on brand new laptop in . Help please

I just got a new HP Probook 450 G2. One of the tasks I got it for, was to use Google Docs and google scripts. I've noticed when using Google script editor, on Chrome and Firefox,  My fonts are not looking right. The tops of the letters are funny. The equals sign is darker at the top than the bottom. I've had a play with font and cleartype settings and can't fix it.  Sorry am running windows 8.1 64bit  Any suggestions?  Firefox screen shot    Chromes screenshot


Can I use any install media for Windows 2012 r2 Standard for licensed VMs?

I have Windows 2012 r2 Standard.  I get two Windows virtual machines for "free."  Is that correct?  If I do get those, can I use any media?  Do I need another license to activate it?  I do not have Datacenter on the physical host.


How does Newton's 2-prism experiment help to explain why light does not get dispersed into 7-colors in a parallel glass slab?

In a real parallel glass slide(with two prisms imagined to be touching each other to form a parallel glass slide), The ray of light should pass through the Z in between without any dispersion or change in direction because the density in both of the prisms is the same(and they are touching each other). So Newton's experiment won't help in explaining this because in it, there is a vaccum(or air) in between and hence the change in direction of light. I hope that you are getting me, if not I'm ready to elaborate more.  [In case anyone is wondering that I did post a Q about dispersion earlier too, then that is true - but I did not get the answer of the question that I really meant to ask and hence this, I hope that you guys will help me better understand this.]


I am not convinced with this sentence somehow. " My Dad focused on my and my brother's education" It doesn't sound right to me. How can I write it in a better way?


does using copy content harmful for my website's seo?

I am using copy contents from another similar websites but I always change the title a bit.But I want to know is this way good for my website that get result by google or not?! Do I get visitors from google search or not?!


How can I prove that if a domain $R$ is an injective module, then $R$ is a field?

What are the similarities between a field and a projective module that can support my question?


Assuming intelligence is defined by the speed a person can process/calculate information and combined with the fact that the Flash has to think really fast if he wants to control his speed, we can deduce that he has the ability to process the information coming in fast enough to control it. That being said, if this ability to think quickly exists even when he is not running (which there is no reason for it not to), he should be super smart based on the fact that he also has a quicker overall processing rate?


Can you manually convert between std::string and std::wstring

I'm using the new C++ <filesystem> library, and all the strings representing file and folder names are returned as const wchar_t* pointers. In my program, I use chars and std::string, which is fine as far as I know because all file paths can be written with ASCII characters (only one byte). There is a way to convert from std::wstring to std::string, but the <codecvt> header that's used for this is deprecated after C++17.  I was wondering, what would be the harm in simply just reading the value of each 2-byte wchar_t into a single-byte char? Whenever you have to convert from std::wstring (I'm assuming UTF-16) to single-byte std::string, any characters greater than 127 or 255 in the std::wstring can't be contained in the char, so they can't be converted in any way, right?


Add a second 'share' button to posts with comment-ready links

I'm very often in the situation of having to link to another post (mostly questions) from comments. As moderator of , I often link to related or duplicate questions. I can't use the "close as duplicate" feature to add such links automatically because of my moderator status, as long as I don't want to close the question immediately.  Now, I find it good style to have the link in the form of [post title](http://posturl), not just http://posturl. A comment like "Related question: Foo baz bar" is simply more readable and informative than "Related question: http://xyz.stackexchange.com/q/1235/6789". Unfortunately, pasting the URL into the comment doesn't convert it to this format automatically, as is done for questions and answers.  has already been declined.  At the moment, I manually mark and copy the question title to the URL bar of my browser and add the required [ ] and ( ) (and with the new Firefox version also the http:// :-( ) and then copy the whole thing to the other question.  I'd like to suggest the following feature: In addition to the existing 'share' button below every post, there could be another one which instead provides the required format [post title](http://posturl). This way a question can be linked to quickly from a comment or as part of a chat message. Answer posts can have the same button which could either still use the question title (but answer URL) or add a "Answer to " or similar in front of the title.   This feature should be easy to implement (maybe as a greasemonkey script) while avoiding the drawbacks of an automated conversion mentioned in the accepted answer of the above linked feature-request.


I have Active Directory 2012 running (just got it running like today) and I chose the domain "markonsolutions.com"   I now noticed that when i try to visit www.markonsolutions.com that dns doesn't know what to do with it.   my questions  1) is this a bad practice to name our internal domain the same as our internet domain (my intention was to simplfy my users lives by giveing them the same log on as there email addresses)  2) If its not a big deal to have them both under the same name How can I add www or any of my other sub domains to go out to the internet dns?  Thanks


How to make a bash script run all the time

Just curious how I can make a bash script run not only when I call it but all the time in the background.  I have a bash script that is supposed to look for files and place them in the right folders, and I just want it so i don't have to keep running that script manually. I just want it running in the background and continually will place the files into the right folders as more files are added.


How to gitignore all directories and then exclude some of them?

This is my root folders structure: uploads    images       img1.jpg       img2.jpg    user1    user2    other_folder  I want to ignore every folder inside uploads besides images AND ignore everything inside images. This is what I do: /uploads/* !/uploads/images /uploads/images/*  I also removed cache of uploads folder before commiting but this doesn't work properly, my images folder is not being pushed. What am I doing wrong?


A matrix commuting with all matrices from $\mathfrak{sl}(n,\mathbb{R})$ is the zero matrix

Let $\mathfrak{sl}(n,\mathbb{R})=\{X\in\mathfrak{gl}(n,\mathbb{R}): \mathrm{tr}(X)=0\}$ the Lie algebra of $\mathrm{SL}(n,\mathbb{R})$, i want show that, if $X\in\mathfrak{sl}(n,\mathbb{R})$ is such that: $[X,Y]=0$, for all $Y\in\mathfrak{sl}(n,\mathbb{R})$, then: $X=0$. Where, for all $A,B\in\mathfrak{sl}(n,\mathbb{R})$: $$[A,B]=AB-BA.$$ I have no idea how to proceed. Any help would be appreciated!


Getting incorrect results applying Ampere's law

Let’s say we have a current wire with a current $I$ flowing. We know there is a field of $B=\frac{\mu_0I}{2\pi r}$ by using , and a simple integration path which goes circularly around the wire. Now if we take the path of integration as so the surface spans doesn’t intercept the wire we trivially get a $B=0$ which is obviously incorrect.  I see that I have essentially treated it as if there is no current even present. But a similar argument is used in other situations without fault.  Take for example a conducting cylinder with a hollow, cylindrical shaped space inside. By the same argument there is no field inside.  To further illustrate my point, the derivation of the B field inside of a solenoid requires you to intercept the currents. You can’t simply do the loop inside of the air gap.  This, at least to me, seems like the same thing, and I can’t justify why one is incorrect and the other is incorrect. Please point out why I am stupid.


how to compare strings read from a .properties

This code reads from a .properties file   protected String cfgReader(String arg1)         throws IOException          {     String readVal = null;     FileInputStream in = new FileInputStream("CFG.properties");     Properties props = new Properties();     props.load(in);     readVal = props.getProperty(arg1);      in.close();      FileOutputStream out = new FileOutputStream("CFG.properties");     props.store(out, null);     out.close();         return readVal;  }   but if I try to do something like:  if(cfgReader("var1") == "n/a"){...}   it doesn't work even if the .properties contains  var1=n/a


Why in World Trigger do the characters have times when their faces get blank during dialog?

Why is it that the characters' faces do this at various points in the dialog and what is it meant to convey? I wonder if perhaps this is a Japanese culture or anime culture expression that I have not seen before?


How I find the BA-equivalent booking reference for an American Airlines-managed reservation?

Note: I do this regularly, so I am looking for a faster option than calling the airline on the phone - I'd like something I can do online.  I have booked a reservation with American Airlines on . It is ticketed and paid for, and contains an American Airlines flight and a  flight. I am American Airlines Platinum (Sapphire) and the number is against the reservation. I would like to view the reservation on the BA website to change the seating, which I can't do on .  I know from past experience that such reservations tend to have two reservation codes, one for the AA portion (Sabre?) and one for the BA portion (Amadeus?). But I don't know how to find the BA code, or to display the reservation on the BA website. Entering the AA code simply gives an error that the reservation cannot be found.  How can I find the BA reservation code for this reservation, or change the seat?


Show current progress in Help Center > Badges

It would be very nice if users could see their current progress related to particular badges. For example:  Deputy - Raised 80 helpful flags   would be rendered in the following way:  Deputy - Raised 80 helpful flags (23/80)


Does Action in Classical Mechanics have a Interpretation?

Possible Duplicate:          The Lagrangian formulation of Classical Mechanics seem to suggest strongly that "action" is more than a mathematical trick. I suspect strongly that it is closely related to some kind of "laziness principle" in nature - Fermat's principle of "least time", for example, seems a dangerously close concept - but I cannot figure out these two principles are just analogous, or if there's something deeper going on. Am I missing something obvious? Why is action  $$A = \int (T-V) \, dt$$  and what interpretation does the $T-V$ term in it have?


Mathematical Induction: Sum of first n even perfect squares

So the series is $$P_k: 2^2 + 4^2 + 6^2 + ... + (2k)^2 = \frac{2k(k+1)(2k+1)}3$$  and i have to replace $P_k$ with $P_{k+1}$ to prove the series.  I have to show that $$\frac{2k(k+1)(2k+1)}3 + [2(k+1)]^2 = \frac{2(k+1)(k+2)(2k+3)}3$$ but I don't know how.


Showing that $\left\langle a,b \mid abab^{-1}\right\rangle \cong \pi_1(K) \cong \left\langle c,d \mid c^2 d^2 \right\rangle$

Hypothesis: Let $G$ and $H$ be defined in terms of the following presentations:  $$ G \cong \left\langle a,b \mid abab^{-1}\right\rangle $$  $$ H \cong \left\langle c,d \mid c^2 d^2 \right\rangle $$  Goal: Show that $G \cong H$.  Hint: Show that $G \cong \pi_1(K) \cong H$ where $\pi_1(K)$ denotes the fundamental group of the Klein Bottle.  Attempt:  (1) First I tried ignoring the hint and directly showing that $abab^{-1} = e$ if and only if $c^2d^2 = e$.  Here all I could obtain is that $abab^{-1} = e \implies ba^{-1} b^{-1}a^{-1} = e$ as well as that $dc^{-1}d^{-1}cd^2 = e$  (2) Using the hint, all I know at this point in my studies is that the Klein bottle $K$ is formally defined as the quotient space of $[0,1] \times [0,1]$ arising from the equivalence relations  $$ (s,0) \equiv (s,1) $$  and  $$ (0,t) \equiv (1,1-t) $$  From here I'm not sure how to proceed.


How are the blocking diodes set up with the electrolytic capacitor in this decoupling circuit?

In a customer review of  there seems to be a large electrolytic capacitor connected to its power supply (images below) for decoupling purposes. It is visible from the first image that the cap is accompanied by blocking diodes.  It would make no sense for them to be part of a rectifier as the amp operates with AC voltage. So my question is how are they set up with the capacitor so both decoupling and AC voltage to the amp can be accomplished.


Lamp Posts: correctly oriented instances on a 3D curve

I'm trying to create a row of street lights, both the lamp pole and a spot light. Since i can't simply join these two and use an array + curve modifier to set this up (using an array modifier + a curve modifier always deforms the mesh) so i came to the conclusion that working with collections and instances would be my best bet.   To get to my current result i parented the spot to the lamp mesh. Then i parented those two objects to a plane. after that i parented the plane (and so also the lamp mesh and the spot) to a curve that i converted to a mesh. I then activated Instancing for the curve with verts which resulted in something like this:     As you can see the lamps all face the same direction, while i want them to be rotated inwards. There's an option for 'aligning the objects to vertex normal'     but enabling this exposes a multitude of problems:   Problem 1: it turns out there's two instances of every object. (i have no idea why) Problem 2: the street light meshes get deformed.      Problem 3: the actual lights all face toward the same place     (I drew over the lamp directions with blue arrows for visibility)  If anyone knows how i can get this to work i'd really appreciate it, but other techniques are welcome too.


Why does LaTeX insert space before formulas?

What is the typographic reasoning here? Does it make the text look less crowded?


Do "in future" and "in the future" imply different meanings?

Do in future and in the future imply different meanings? If so, using which one is grammatically correct?


How to do western analysis to lung tissue?

I am working with lungs from mice, and I want to do a western blot analysis to my samples. I am having trouble with this because my images turn out very "messy", with a high background. Perhaps I should filter my samples following their homogenization?  Has anyone had this problem and knows how to avoid it?  What is the best method to homogenize the samples?


Want \section* to change the page header

In a book, I have several numbered sections followed by an unnumbered section. I have placed an \addcontentsline following the \section* that introduces the unnumbered section, so that it will appear (unnumbered) in the ToC; that works fine. However, the page headers for the unnumbered section are continued from the last numbered section.  I am using fancyhdr with the following setup:  \pagestyle{fancy} \fancyheadoffset{0in} \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}  \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[C]{\bfseries \draftinfo} \fancyhead[LO]{\sf\rightmark} \fancyhead[RE]{\sf\leftmark} \fancyfoot[C]{\bfseries \draftinfo} \fancypagestyle{plain}{%   \fancyhead{} % get rid of headers   \renewcommand{\headrulewidth}{0pt} % and the line }


Using exec and tee to redirect logs to stdout and a log file in the same time

In a bash script, how can I redirect all standard outputs to a log file and tee the output on the screen using exec ?  log_file="$HOME/logs/install.txt-`date +'%Y-%m-%d_%H-%M-%S'`" [ -f "$log_file" ] || touch "$log_file" exec 1>> $log_file 2>&1   This code redirect all the log to the log file but not to the screen .


You may be familiar with ryhtm games as , , or even . They have something in common : every single action in the game is synchronized with the music. My purpose is to make a game like Geometry Dash where the player has to do some actions in rythm while the character scrolls automatically in the level. I have a few questions about this type of game :   Do I have to keep my FPS constant as it has to be always synchronized with the music ?  How can I build my levels with a music in mind to make sure that it will be synchronized ?   I am working on Unity using C#.


How can I do research mathematics without enrolling at a university?

My goal is to find the general form for the asymptotic cardinality of a compound arithmetic progression.  I'm not affiliated with a university and I certainly don't have any obligation to continue my research.  However, it is very fulfilling to me.  I spend my time in the library; I study through the books on the shelves and I don't really have anyone to tell me that my efforts are not good enough.  The problem comes in when I realized that if I was stronger in Analytic Number Theory, then I could start to look for the general estimate for the asymptotic cardinality of any compound arithmetic progression, and I'm terribly curious about how it works out.  I am jealous of professional students with academic affiliations, access to reviewers, and journals; terribly.  I admit that and it's a big obstacle.  And I'm envious that they had the opportunity to enjoy more prestigious settings.  I wish I could get a foot hold like that too.  But at the same time I just don't think it's going to be possible for me to be published or be respected on the same level, no matter what I do.    Is it healthy for me to behave like this?  Or am I being too optimistic in thinking that I have something to contribute that could blossom into graduate level, age appropriate research and/or a funded project?  The point is that I've given up looking for a degree or trying to participate in the research projects of others; it places the burden on them to find a place for me in their work and I'd rather be sharpening my own offering instead of going on a wild goose chase.  Math doesn't require the same kind of budgetary overhead, or anywhere near the same level of oversight as the life sciences.  I don't need a lab.  I don't need dangerous chemicals or expensive equipment, and I don't need a workshop, either.  The other question (of which this was marked as a duplicate) was asked by a much more established individual that already finished a Master's degree and wanted to collaborate on somebody else's research; putting together a CV to apply for a research spot is much easier when there's something to anchor it.


Can I travel to Canada with an expired passport?

Can I enter Canada by car (my own vehicle) with a 2-month expired passport? Also, am I able to re-enter the US with the same expired passport. I am a US citizen.


My final goal is to create a groupplot with 10*10 figures. I here have reduced the problem so that it will be easier to explain. First, I have created some dummy data which I store in test.txt and it looks like this:  a         b     c         d 1     0.5837    0.8208    0.7949 2     0.1267    0.8644    0.3532 3     0.2717    0.0858    0.0287 4     0.7836    0.7564    0.3105 5     0.2431    0.3875    0.5209 6     0.2896    0.4468    0.9460 7     0.8155    0.7873    0.5724 8     0.8039    0.2818    0.3114 9     0.6091    0.4700    0.3280 10    0.1231    0.1983    0.6527   What I want to do now is to create a row of three figures, plotting columns 2-4 against column 1. Since my final figure will be quite large, I want to do this using the \foreach command. Just to see what I want to do, the following code creates what I want (usingthe test.txt file):  \documentclass[12pt,a4paper,notitlepage]{article}  \usepackage{graphicx} \usepackage{pgfplots} \usepackage{tikz} \usepgfplotslibrary{groupplots}   \begin{document}  \begin{figure} \centering \begin{tikzpicture} \begin{groupplot}[ group style={group size=3 by 1}, height=5cm,width=5cm] \pgfplotstableread{test.txt} \mydata;     \nextgroupplot     \addplot [thick]  table [x index = 0, y index = 1]   {\mydata};     \nextgroupplot     \addplot [thick]  table [x index = 0, y index = 2]   {\mydata};     \nextgroupplot     \addplot [thick]  table [x index = 0, y index = 3]   {\mydata}; \end{groupplot} \end{tikzpicture} \end{figure}  \end{document}   The problem occurs when I try to write the groupplot section of the code with the aid of \foreach, i.e. replacing \begin{groupplot} ... \end{groupplot} by  \begin{groupplot}[     group style={group size=3 by 1}, height=5cm,width=5cm]     \pgfplotstableread{test.txt}\mydata;     \foreach \yindex in {1,2,3}          \nextgroupplot          \addplot [thick]  table [x index = 0, y index = \yindex]   {\mydata}; \end{groupplot}   First question: It looks like it should work (and it did ), but it doesn't. What am I doing wrong?  Second question: How can I access the headers in the loop? That is, if I want to let the titles for each plot be b, c and d, respectively, can I do this using the loop variable? In this case, doing everything manually is feasible, but with 100 figures, it's not.  Third question: In generalizing this to my 10*10 final figure, I ran into some issues. In each groupplot, I actually want to plot three lines (the main line plus error bands). My initial idea was to have three text files with data and then use three \pgfplotstableread{}. But that seems to not work, as it appears to only being able to handle one at a time. I could create one big data file, with columns being in blocks of three. So in groupplot 1, I would like to plot column 1 (lower bound), column 2 (median), column 3 (upper bound). That means I would have to work a little with the looping variable and do some multiplications and additions with it. How do I do this? For example, the lower bounds would have column indexes given by something like y index = (#1-1)*3+1, but that multiplication and addition does not seem to work like I want it to. With the looping variable \yindex I guess it could work, but that I couldn't get up and running (see the comments). This is now resolved using the answer .


How vacuum could have electromagnetism Permeability when there is no molecule in it.  (Permeability  of other medium get describe with effect of their polar or magnetic molecule)


problem with rendereing tableselect through ajax callback function

Have a simple form including few of the input elements that should show up the data (based on the input) on tableselect (part of the same form) through the ajax callback functionality.  //submit button     $form['action'] = [     '#type' => 'button',     '#value' => $this->t('Submit'),     '#ajax' => [     'callback' => '::setMessage',     'prevent' => 'click',     'wrapper' => 'scrollable',     'method' => 'replace',     'effect' => 'fade',      ],     '#suffix' => '

',     ];   and within my ajax callback function:  public function setMessage(array $form, FormStateInterface $form_state) {      $options = array();       $header = [        'subject_id' => t('Subject ID'),        'ct_availability' => t('CT Availability'),        'sex' => t('Sex'),        'race' => t('Race'),        'cardiovascular_disease' => t('Cardiovascular Disease'),        'registration_age' => t('Registration_Age'),         ];      $options = $this->getOptions(); //getting the associative array          dpm($options);  //printing to make sure that the array is filled  //assigning to the table     $form['table']['#header'] = $header;     $form['table']['#options'] = $options;     return $form['table']; }   The header gets assigned fine and the table is displayed only with it. The data doesn't get filled and it seems the #options does not get assigned to the tableselect thus showing no data.    There are no ajax errors from the console  Wondering if it has something to do with 'processTableselect' function or rebuilding the form before returning the table element?  Or if it is a wrong approach to assign form element attributes within the callback function?


Just starting WoW.. is it the same as when it started?

I'm just starting WoW for the first time...  My question:  Is the storyline and quests that I'm doing the same as what players did when the game started (in 2002 or whatever)?  Or have events happened in the game that have progressed the entire timeline/story of the game for new players?


Is there a way to remote connect (via windows remote desktop) to my Ubuntu server which has the Lubuntu Desktop, just like is possible with Unity?


Is it possible to change the width of edges in edit mode?

I'm a math teacher.  I like to use Blender to demonstrate some ideas when we talk about geometry in 3 dimensions, so I display it on our projector and the class will work together to edit some basic shapes.  I've changed the size of vertices so they are bigger and easier to see, but I haven't found a way to increase the size of edges.  Is there an option to do this?


How to install a current version of TikZ?

TikZ is undergoing lots of development with new features being added, but the versions distributed with standard TeX releases are often a little old. How do I get the latest version? If I want to be sure that I get the latest stable version, how do I do that?    Note: I'm not asking this question for myself, but because a question like this seems to be useful for pointing to it when a new feature of TikZ is mentioned in an answer to some other question. Feel free to post answers for any operating system/TeX distribution combination.


I have a directory which contains many symlinks which point to other directories.  Now I would like to rename a common ancestral directory of the linked directories by the symlinks, and also have symlinks pointing to the same directories except with renamed pathnames. For example, the symlinks point to /home/Tim/dir1, /home/Tim/dir2, ..., and now I would like the symlinks point to /data/Tim/dir1, /data/Tim/dir2, ....  I would like to automate the process of update the symlinks. But there are several questions:   I heard that symlinks can't be edited. So do I have to create new symlinks and then overwrite the existing ones? how can I get the pathname of the directory pointed to by a symlink, and then use some text processing programs to replace the old name of the ancestral directory  in the pathnames with its new name, and create a symlink pointing to the directory with a new pathname? Thanks.


We can tell that $$0.11111111... \cdot 9 = 0.999999999...$$ And that $$\frac19 = 0.11111111111...$$  Therefore $$\frac19\cdot9 = 0.999999999...$$  However, we know that $$\frac19\cdot9 = \frac99 = 1$$  Note: I'm taking in account that ... are the other rational digits left.  What am I making wrong? What is misunderstood?  Thanks for the help in clearing this problem.


Use Rao-Blackwell Theorem to find the UMVUE

Suppose that $X_1,X_2,...,X_n$ is a random sample from a normal distribution, $X_i\sim N(\mu,9)$.  Find the UMVUE (uniformly minimum variance unbiased estimator) of $P(X\le c)$ where $c$ is a known constant.  Do this by finding the conditional distribution of $X_1$ given $\bar{X}={\bar{x}}$ and apply the Rao-Blackwell theorem with $T=u(X_1)$, where $u(x_1)=1$ if $x\le c$ and zero otherwise.  So clearly the parameter that we're trying to estimate given the problem description can be written as $\Phi\left( \frac{c-\mu}{3} \right)$ where $\Phi$ represents the CDF of the standard normal distribution.  However, I get stuck when I need to try and find the conditional distribution.  Without knowing the joint distribution or the other conditional distribution, how can I possibly find the conditional distribution of $X_1$ given $\bar{X}={\bar{x}}$?


Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


Problems with installing Ubuntu 18.04 LTS (grub)

When installing Ubuntu 18.04 LTS when the installation comes to the installation of "grub 2", it terminates and gives an error:  could not install the grub bootloader into target.   But the version of Ubuntu 16.04 LTS and other distributions are installed without such problems. Please tell me what to do?


How do the likely/unlikely macros in the Linux kernel work and what is their benefit?

I've been digging through some parts of the Linux kernel, and found calls like this:  if (unlikely(fd < 0)) {     /* Do something */ }   or  if (likely(!err)) {     /* Do something */ }   I've found the definition of them:  #define likely(x)       __builtin_expect((x),1) #define unlikely(x)     __builtin_expect((x),0)   I know that they are for optimization, but how do they work? And how much performance/size decrease can be expected from using them? And is it worth the hassle (and losing the portability probably) at least in bottleneck code (in userspace, of course).


I am doing a PhD and I have submitted an article to be peer-reviewed 9 months ago to a certain journal. I haven't got any response yet from the journal, their server indicates the "Under review" status.  The problem is, I cannot wait more longer since the acceptance of the article is a requirement to validate my PhD.  Do you think I can stop the reviewing process and send it to another journal? What if I sent it to another journal at the same time? Or, would the reviewing process speeds up if, e.g. I pay for the open access?  EDIT:  I forgot to mention that the status cited above stipulates that:     At least one Reviewer has accepted to review the submisѕion, however the required number of reviews for the submisѕion have not yet been received.   I have provided 5 names for the peer-reviewing process of my article, and mentioned that 1 potential reviewer from another university should not review it (because of competitive reasons).


As opposed to LaTeX, which is addressed in another question.  Most of the references I've seen get too complex too quickly. I'm looking for something that gives me a top-down view of the language - what the parts of a document are and how (and when) each is processed before proceeding to infinite detail like character classes (e.g.). Something heavily example-based, with real-world examples, would be helpful as well. I just find the language incredibly obscure and difficult to grok.


Story identification - huge abandoned spaceship

Trying to remember title (and even most content!) of following story:  Something along the lines of a gigantic abandoned spaceship drifting through the galaxy for over a galactic turn, humans had colonised it and run it, and trade passage on the spaceship with other races in return for technology/goods. Think the main plot was over an attempted take over of the ship by another race.  Apologies for vagueness.


In LWC am trying to iterate over a list and show the details from the list, this is working correctly , but as a header want to show the record number in a displayed order, below is desired outcome and simplified sample code.  Desired OutCome:   Employee Record 1: A  Employee Record 2: B  Employee Record 3: C   JavaScript:  Var empNames = ["A" , "B" , "C"];   HTML:  <template for:each={empNames} for:item="employee" for:index="index"> Employee Record{index} {employee} </template>    Actual outcome  Employee Record 0: A  Employee Record 1: B  Employee Record 2: C   I understand as i am using {index} which indicated the position of element in an array which starts from 0 my actual outcome also starts like Employee Record 0 instead of Employee Record 1, but is there a simple way without writing much logic on JS to handle this in html and to make my headers starts from 1 instead of 0?


GeoServer: Best way to publish 2500 TIFF or 71 ECW files?

I have ortophotos of an area that I need to serve as a background map for my vectors. I got it as 2500 files (71,5MB each) in raw TIFF format with corresponding TFW word file - 180GB of data. Coordinate system is local and it matches with my vectors (there is no EPSG code for it but I named it as “32805” and put a proper definition).  For desktop use in MapInfo I converted them to ECW (with some tool that comes with MapInfo) and retile as much bigger to have only 71 file because opening 2500 tiff files is overkill. I just merged 49 TIFF’s (7x7) into one ECW - 35000x35000pixels – largest is around 200MB) It works great and its really fast in MapInfo.  Now I am quite confused - HOW to serve them in GeoServer ?  I have publish one TIFF and one ECW for comparison. ECW is much faster in browser preview (I am aware of ECW server licensing issue but that shouldn’t be a problem). I have found a presentation “GeoServer on steroids” and read about ImageMosaic, ImagePyramid, retiling, adding overview etc it was quite informative but still don’t know what to do.   My question is : how should I do it ? Mosaic or Pyramid, and if is one of the answers positive, I need your advice or some hints. I would really like to be ECW because of disk space so there will be no need to keep 180GB of tiff’s on a server.   Data will be served through LAN with maximum 20 users connected at peak hour.SQL server have not so huge amount of data. Sorry if I miss some other info, but I will send it if needed.       Geoserver 2.1.4,  Windows 7 32bit,  2GB System Memory,  (1.7.0_09   (Java HotSpot(TM) Server VM), Native JAI+Native JAI ImageIO = true     Original TIFF gdalinfo D:\75720-47970.tif Driver: GTiff/GeoTIFF Files: D:\75720-47970.tif        D:\75720-47970.tfw Size is 5000, 5000 Coordinate System is `' Origin = (7572000.000000000000000,4797500.000000000000000) Pixel Size = (0.100000000000000,-0.100000000000000) Metadata:   TIFFTAG_SOFTWARE=Adobe Photoshop 7.0   TIFFTAG_DATETIME=2006:10:09 13:02:57   TIFFTAG_XRESOLUTION=72   TIFFTAG_YRESOLUTION=72   TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata:   INTERLEAVE=PIXEL Corner Coordinates: Upper Left  ( 7572000.000, 4797500.000) Lower Left  ( 7572000.000, 4797000.000) Upper Right ( 7572500.000, 4797500.000) Lower Right ( 7572500.000, 4797000.000) Center      ( 7572250.000, 4797250.000) Band 1 Block=5000x1 Type=Byte, ColorInterp=Red Band 2 Block=5000x1 Type=Byte, ColorInterp=Green Band 3 Block=5000x1 Type=Byte, ColorInterp=Blue -------------  ECW file which is retiled from 7x7  original tiffs  gdalinfo D:\OF-45.ecw Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x) Files: D:\OF-45.ecw Size is 35000, 35000 Coordinate System is: LOCAL_CS["LOCAL - (unsupported)",     UNIT["Meter",1]] Origin = (7571500.000000000000000,4798500.000000000000000) Pixel Size = (0.100000000000000,-0.100000000000000) Corner Coordinates: Upper Left  ( 7571500.000, 4798500.000) Lower Left  ( 7571500.000, 4795000.000) Upper Right ( 7575000.000, 4798500.000) Lower Right ( 7575000.000, 4795000.000) Center      ( 7573250.000, 4796750.000) Band 1 Block=35000x1 Type=Byte, ColorInterp=Red    Overviews: 17500x17500, 8750x8750, 4375x4375, 2187x2187, 1093x1093, 546x546, 273x273, 136x136 Band 2 Block=35000x1 Type=Byte, ColorInterp=Green   Overviews: 17500x17500, 8750x8750, 4375x4375, 2187x2187, 1093x1093, 546x546, 273x273, 136x136 Band 3 Block=35000x1 Type=Byte, ColorInterp=Blue   Overviews: 17500x17500, 8750x8750, 4375x4375, 2187x2187, 1093x1093, 546x546, 273x273, 136x136


C++ - Error 'undefined reference' while using templates with function

I have a function transpose declared in a header file global.h as shown below:  template <size_t M, size_t N> extern void transpose(array <array <float, N>, M>&, array <array <float, M>, N>&);   The function is defined in another file global.cpp as shown below:  template <size_t M, size_t N> void transpose(array <array <float, N>, M>& a, array <array <float, M>, N>& b) {     // This can be made faster     for (size_t i = 0; i < M; i++)     {         for (size_t j = 0; j < N; j++)         {             b[j][i] = a[i][j];         }     } }   However, the following function call:  transpose<dim, dim>(jacobian, jacobian_transposed);   throws the error:  undefined reference to `void transpose<23u, 23u>(std::array<std::array<float, 23u>, 23u>&, std::array<std::array<float, 23u>, 23u>&)'   The variable dim is defined in the global.h as shown below:  static constexpr const int marker_num = 10; static constexpr const int dim = (2 * marker_num) + 3;   I found . Are there any ways to keep the function definition in the global.cpp?  Edit: I read the  of which this question was marked as duplicate. That along with the answer from @Xirema helped me realize that I have three options: 1) Implement function in the header.  2) Implement function in a file with '.ipp' extension and include it inside the header.  3) Third option is explicit instantiations like:  template <size_t M, size_t N> void transpose(array <array <float, N>, M>& a, array <array <float, M>, N>& b) {     // This can be made faster     for (size_t i = 0; i < M; i++)     {         for (size_t j = 0; j < N; j++)         {             b[j][i] = a[i][j];         }     } } template void transpose(array <array <float, dim>, dim>& a, array <array <float, dim>, dim>& b); template void transpose(array <array <float, dim>, 2>& a, array <array <float, 2>, dim>& b);   Which of the above is the best method (I am trying to follow the best coding practice)?


Installed ubuntu 18.04 along side with windows 10. Ubuntu 18.04 grub menu does not appear, and always boots to windows 10.  How can cause the grub menu to appear to select my OS of choice?


Why can a free particle not exists in a stationary state?

In normalising the complete wavefunction of a free partcile; $V(x)=0$  we arrive at  $\int_{-\infty}^{\infty}\Psi_{k} ^\dagger\Psi_{k}dx=|A|^{2}\int_{-\infty}^{\infty}dx=|A|^{2}\left(\infty\right)$  Which implies that this wave function is not normalisable.   Mathematically, it is not normalisable but that's as far as my understanding goes. I would like to see a further and more related explanation for which a non-normalisable wave function implies that a free particle cannot exists in a stationary state and also that such a free particle does not have a definite energy.


Ubuntu will not open my SD card from the built in reader. It was working in Windows.


No right-click behavior under 12.04 for rabbitvcs

I've followed all the instructions for installing rabbitvcs and am running nautilus3 but do not get right-click svn options (I believe it worked under 10.10).  I should add that I'm running 12.04 under VMware Fusion. Any suggestions (I've searched the web but no luck).


cron job runs in cron.daily, but not crontab file. Tried debug methods suggested already.

I apologize already for asking another cron question. I read dozens of help articles online with still no solution. So for my curiosity, I need to find a solution.     I simply want to run a command every day at 4am. This is what I have done so far:     # crontab -e. Add this line: 00 04 * * * root ruby /home/script.rb list >> /tmp/output.log. (script.rb just contains "puts 'hello'") script.rb is owned by root and permissions are set to execute on all users.  I ran rvm cron setup to install some environment variables to the crontab file for the cron job to find my ruby executable files.  Added more environment variables to crontab file such as my PATH, SHELL=/bin/bash and BASH_ENV=/root/.bashrc.    After 4am, I check the cron logs and indeed, the script was executed.  Dec 14 4:00:01 admin CRON[25374]: (root) CMD (root ruby /home/script.rb list >> /tmp/output.log) but when I check /tmp, no output.log file exists. When I run the command by itself, /tmp/output.log shows up and contains hello so the command works.    So I go back to my crontab file and change ruby to /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby (output of which ruby) to make everything absolute paths. It runs, but still no /tmp/output.log. I replace the line in crontab to: 00 04 * * * root /home/run_script instead where run_script contains: #!/bin/bash  /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby /home/script.rb list >> /tmp/output.log  to simply try using a script file instead of one line command in crontab. It runs, but still no /tmp/output.log.  I go into run_script file and get rid of all the ruby stuff and go the simple route: #!/bin/bash echo "hello" >> /tmp/output.log  It runs, but still no /tmp/output.log.   I should also note, I set MAILTO=root in my crontab file, but no mail delivered to root.    Now I did another experiment, when I take run_script and put it into /etc/cron.daily, it runs great. No problems.    Other notes: Cron is running: ps -ef | grep cron | grep -v grep outputs cron is running. There is a blank line after my command in the crontab file.   cron seems pretty tough to debug. The sys log just tells me that the cron job ran but tells nothing else. I am not getting any mail delivered so that cannot help me. Luckily /etc/cron.daily works for now, but I want to know why crontab is not working.   Any suggestions, ideas, hints at debugging?


LHS of always block in verilog need to be reg, but index of array in LHS of always block cannot be a reg, is it true?

I am trying to synthesize a verilog file with some part of code like this(obviously i hadn't declared module and other input and output variables)  input [15:0] me;  reg [15:0] p_array [7:0]; reg abc_pqr [2:0];  abc_pqr[0] <= me[0]; abc_pqr[1] <= me[1]; abc_pqr[2] <= me[1]; p_array[abc_pqr[0]] <= me[0]; p_array[abc_pqr[1]] <= me[1]; p_array[abc_pqr[2]] <= me[2];   where i had used reg as index of array element, so is it not valid, though this module inside my verilog file didn't synthesized as it contain a memory element but just want to confirm that is it valid to use reg as array index? I dint find anything on net in this regards,but taking reg as index will make array act as buffer and i think it must be a valid code.