I am trying to implement cascading so I have loaded two files.  <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.01/jquery.SPServices.min.js"></script>   But I am getting the error as     Uncaught TypeError: Cannot read property 'SPCascadeDropdowns' of   undefined   in below code  $(document).ready(function() {   $().SPServices.SPCascadeDropdowns({     relationshipList: "Teams%20List",     relationshipListParentColumn: "Team_x0020_Name",     relationshipListChildColumn: "Team_x0020_Member_x0020_Name",      parentColumn: "Team",     childColumn: "Subsystem_x0020_Owner",     debug: true   });   });


Could new users see a notification in the space where the add comment button would be, like "you need a minimum of X reputation to comment"?

I just went to comment on , saying something like "hey thanks that solution worked for me; You know anything about extending it to ?"  I was confused why I couldn't find any sort of "add comment* button, and it took me an annoying bit of searching just to find out why. :/  So could us new users see a notification like:     you need a minimum of X reputation to comment on questions that are not your own, and on answers that are not to your own questions   in the space where the add comment button would be?


I am interested in outputting  this graph in  latex using tikz:    So far I got this:    and my tikz code is   \begin{tikzpicture}     \node[shape=circle,draw=black] (A) at (0,0) {A};     \node[shape=circle,draw=black] (B) at (0,3) {B};     \node[shape=circle,draw=black] (C) at (2.5,4) {C};     \node[shape=circle,draw=black] (D) at (2.5,1) {D};     \node[shape=circle,draw=black] (E) at (2.5,-3) {E};     \node[shape=circle,draw=black] (F) at (5,3) {F} ;      \path [->] (A) edge node[left] {$5$} (B);     \path [->](B) edge node[left] {$3$} (C);     \path [->](A) edge node[left] {$4$} (D);     \path [->](D) edge node[left] {$3$} (C);     \path [->](A) edge node[right] {$3$} (E);     \path [->](D) edge node[left] {$3$} (E);     \path [->](D) edge node[top] {$3$} (F);     \path [->](C) edge node[top] {$5$} (F);     \path [->](E) edge node[right] {$8$} (F);    \end{tikzpicture}   I want to know how to draw the arc between nodes B and E and also thicker  arcs with their lengths in center. Any help is appreciated


What is the best way to handle payment exceptions in Java (Spring, Hibernate)?

My project is a web project based on Java, Spring Boot, Hibernate, SQL and I want to know if I have payments in it, what is the best way to handle them. For example, I have: Controller A:   pay():     serviceA.pay();  Service A: @Transactional   pay():     serviceB.doesSomePaymentStuffDoesNotTrowException() @Transactional;     serviceC.payThrowsPaymentException() @Transactional;  What is the better exception type for a payment exception, checked or unchecked? How do you define and handle payment exceptions? Also, I would be grateful if you give me some material that I can read to enrich my knowledge on this subject. I know that the checked exceptions do not cause rollback on @Transactional methods, but the checked ones do.


Is it possible for a human and another ape species to reproduce?

Is it possible for a human and another species to reproduce?


I have large image with emoji and use it like this:  Css:  .emoticon {   width: 26px;   height: 26px;   display: inline-block;   vertical-align: top;   background-image: url(path/to/image.png);   background-repeat: no-repeat;   background-size: auto;  }  emoticon.emoticon_1 { background-position: 0 -869px }   Html:

   Problem is that original size of emoticons is 26x26 px, it is too lage. Are there some ways to transform it in 16x16 px image via css?


How to turn-off WiFi when there's no Internet available on the connection?

I have a wifi hotspot that is always on but sometimes internet isn't available within the connection; in such a situations, the phone is connected as expected to the wifi hotspot but because there's no internet, apps can't check for updates(messages) so I wont be notified of incoming messages from IM apps unless I manually turn off wifi and use mobile data for internet connectivity(2g or 3g for example)  Is there any way to automatically check for internet availability (by pinging a website maybe) and if there's no internet available within the connected wifi network, turn the wifi off? (so that the phone can use mobile data for internet connectivity)


I want to buy a new notebook in the near future to play games on it. I'm looking forward for the new Steam for Linux client. My question is that where does the Steam install the games, on the home partition, or in the usr folder, or somewhere else? I do not use pre-release (i.e. beta) versions of either Steam or Ubuntu.


Updating a Field in the Current Selection

I have some address points selected for which that I want to update the address field based upon the row in the selection. How do I figure out the name of the selection taable to pass to arcpy.UpdateCursor()?


When I do apt-get update I get the following error:  E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)  E: Unable to lock directory /var/lib/apt/lists/  W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)  W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)   I'm brand new to linux so I'm not so sure about the safety of adding sudo to the front of that command... Any suggestions?


GRUB2: black screen when booting Windows

I know this might be a duplicate, but I've read a lot of threads about this and none pointed me to the solution.  When loading GRUB2 I have a black screen (with static white cursor on the upper left) which goes away as soon as the Ubuntu login page comes up, but stays there forever if I boot Windows (even though I can hear the 'login sounds').  I have a dual boot system with Ubuntu 14.04 and Windows 7 (both 64-bit) and I have a NVIDIA VGA. The Windows installation used to work just fine, with the VGA doing its job. My monitor was plugged on the motherboard when I fresh installed 'trusty tahr' (I have a integrated intel graphics CPU) and after that I immediately installed the video card drivers from the official repo (nvidia-331 I believe). Their installation was successful (at least from what I see from the 'Nvidia X serve settings' tool). After that, if I plug the monitor on the video card, grub goes on the black screen, but I can anyway boot Ubuntu and when the login page comes up the video output is normal. The same cannot be told when Windows boot.  I tried many suggested fixes: nouveau.modeset=0, nvidia.modeset=0, nomodeset options in the /etc/default/grub file and I also tried blacklisting the corresponding kernel modules adding a .conf file in /etc/modprobe.d. None of that solved my problem.  I insist that this must be a grub video problem, since if I plug my monitor on the mother board I can boot successfully both Ubuntu and Windows and also the boot-repair tool for Ubuntu doesn't find anything significant (see ).  I'm currently out of ideas, has anyone any suggestion? It would be much appreciated!  Lorenzo


Let $f:[a,b]\mapsto[a,b]$ be continous, suppose $f(a)=f(b)$. Show that there exist $c \in [a,\frac{b+a}{2}]$ with $f(c)=f(c+\frac{b-a}{2})$

I tried with defining another function   $h(x):= f(x)-y$ where $ f(\frac{a+b}{2})<y<f(a)=f(b)$  So that $h(\frac{a+b}{2})\cdot h(a)<0$ and $h(\frac{a+b}{2})\cdot h(b)<0$ and  therfore I have two points $x_{1}\in[a,\frac{a+b}{2}] , x_{2}\in [\frac{a+b}{2},b]$ with $h(x_{1})=0=h(x_{2})$.  But I can't tell anything about how much they are apart.


Is it proper to capitalize "its" in a title?

For instance, say a book is titled "Genesis and Its Interpretations". Is it correct to capitalize "its" in the title?


How to insert logo in exam document class?

I would like to insert a logo for the exam questionnaire on the upper right where the title is placed but i dont know how.. i would like to appear it this way.


So, there was a deal the other day to buy a 1.2 35mm lens or something like that, however the manufacturer of the lens was Pentax. Now they use a K mount and my nikon d3300 uses a F mount.   Does buying an adapter/mount affect the DoF? I have heard that when zoomed to infinity everything becomes blurred and at the lowest too. Meaning you have to play within a short range.


Not able to install Android studio IDE in Ubuntu 18.04.1 from ubuntu app store. After installation it take some time then aborted.


I'm trying to use robo3t on Ubuntu WSL but I'm getting this error while running robo3t command, and find nothing about it  QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display.


Windows 7 search doesn’t find text strings

Updated: 2014-10-05  I stopped using Windows 7 indexed search since I've discovered Archivarius 3000. If you want truly accurate indexed content search, I suggest you to try Archivarius 3000. Archivarius 3000 is awesome for indexed content search in text files, such as pdf, .epub, .mobi, .chm, doc, docx., txt etc.  Give Archivarius 3000 a try!  Original question:  I’m not able to find any text strings starting not from the beginning of word in filename or in file content using Windows 7 search.  My Windows 7 search configuration:        Let’s say I’m searching for a documents containing word “content”.  I’m able to find those documents when searching for “content”, “conte”, “con” (as long as the string includes the beginning of the word).  "content"    "con"    But if I search for “ontent”, “tent” or any other combination that doesn’t include the beginning of the word, Windows search won't find it.    I've tried other indexing/searching software such as Copernic Desktop search, Google desktop search. Those programs also weren’t able to find part of the word starting from the middle of the word. For instance, it finds “conte”, but doesn’t find “onte”.  Finds “conte”    Doesn’t find “onte”    I got the same problem using Copernic desktop search.  On the other hand, when I use non-indexing content search software such as Agent Ransack or FileSeek, I get the same results when searching for “conte” or “onte”:  “conte”    “onte”    Why do all pre-indexing content search applications (Windows search, Google desktop, Copernic desktop search) fail to search for a string inside the words?  Why do non-indexing applications find text strings wherever they are:  in the beginning, middle or end of the word?  I’ve tried wildcards and other constructions with no luck.  *onte  onte  “onte”  content:onte  content:onte  content:~onte  All these searched doesn’t find the word “content”.  How can I make Windows search find strings from any part of words?  Could you try these searches and see if they work for you? Or is this normal behavior?  Thank you.  Update:  Using wildcards before or after "onte" doesn't find any results.  content:~=onte doesn't find any results.


How does the time-turning event work in "Harry Potter and the Prisoner of Azkaban"?

I know in Harry Potter and the Prisoner of Azkaban Harry and Hermione go back in time, save Buckbeak and free Sirius Black. However, in the actual movie before this event, Harry sees - according to what's figured out later - himself casting the Patronus.  (Harry sees his future self casting the Patronus.)  But in the actual timeline, Harry, Hermione and Ron see Buckbeak getting executed. Why didn't they see the events from the time-turning event at that point, but later when Sirius and Harry are being attacked by the dementors, see his future self casting the Patronus?  Also, how can Harry see his future self casting the Patronus before the time-turning event happened?


I am new to LaTeX. I am using TexShop 4.27. I am writing a book using article class scrbook. I am having problems with compiling the bibliography. I have searched this forum for possible answers, but was unsuccessful. Any suggestions are welcome. Here is the preamble:  \documentclass[11pt,english]{scrbook}  \renewcommand*{\chaptermarkformat}{}  \setkomafont{subsection}{\Large\bfseries} \setkomafont{subsubsection}{\large\bfseries}  \addtokomafont{disposition}{\rmfamily}  \usepackage{fontspec} \usepackage[paperwidth=16cm,paperheight=24cm]{geometry} \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2cm,rmargin=2cm} \usepackage{array} \usepackage{verbatim} \usepackage{longtable} \usepackage{enumitem}  \usepackage{xunicode} \usepackage{xltxtra} \usepackage{polyglossia} \setdefaultlanguage{english} \setmainfont{Gentium Plus}   \usepackage[ backend=biber, style=authoryear, sorting=nyt, bibstyle=philosophy-modern, publocformat=loccolonpub, inbeforejournal=true]{biblatex}  \addbibresource{mybiblio.bib}


Sum the values in a column except the header

I have a file as given below  -------------------------------------------------------------- Name_Customer   Item_Purchased  Item_Amount Credit -------------------------------------------------------------- Tom              H1_P            7657        N/A     Pras             Track_1         23          N/A Cha              Brace           9           N/A Moh              kite37          269         N/A Prab             Bols            87699       N/A   I need to add the values under the column Item_Amount by ignoring the header in the file and print the sum as  Total Amount collected = 95657


I need to compare two files with same tags, but they have some different values and I need to print three lists:  Set<Costo> list1 = read.getCostos("path1");         Set<Costo> list2 = read.getCostos("path2");          Set<Costo> list3 = ListaCostoUtil.listaConjunta(list1, list2);         Set<Costo> plus = ListaCostoUtil.listaComplementoMenos(list3, list2);         Set<Costo> minus = ListaCostoUtil.listaComplementoMas(list3, list2);   where list1 is my first XML file and list2 is the other, I need to print a list3 where is a complete list of all the elements from list1 and list2.  With list plus I just need to compare my list3 with list2 and throw all the elements that are not on list2 with a "+" and it's the same with minus but just adding a "-", how could I start doing it? thanks


Is there an elementary proof for the monotonicity of $\sqrt x$?

I am about teaching a course on inequalities to secondary school children and I find we'll have to use at some point that if $$0<a<b,$$ then $$\sqrt a<\sqrt b.$$  Therefore, I've been thinking of how one would go about explaining why this is true to these children, and the only way I know uses real analysis -- and they've definitely taken no calculus yet.  Hence, do you know of a way to prove this result using elementary means?  Thank you.


How to write a seasonal SRIMA model (0,1,1)*(1,1,1) [12] mathematically?

I find SRIMA model (0,1,1)*(1,1,1)[12] to fit my time series model but i don't know how to write the model with mathematical way. I need help.


Retrieving the number of items in the previous list

I am trying to retrieve the number of items in a list and use it as the starting number in the next list.   I used the following code.  \documentclass{article} \usepackage{enumitem}  \begin{document} This is the first list. \begin{enumerate}[label=M\arabic*.]     \item item number one.     \item item number two.     \item item number three. \end{enumerate}  This is the second list.  \begin{enumerate}[label=M\arabic*., start=4]     \item item number four.     \item item number five.     \item item number six. \end{enumerate}  \end{document}   How can I replace start=4 with a code such that it automatically finds the number of items in the previous list, add one to it, and finally use it as the argument of start?


Travel to Ireland and the UK 3 weeks before passport expiration

My USA passport expires two weeks after my planned return from a one week trip. The trip starts in Chicago and lands in Dublin, Ireland we stay for three days and take a domestic flight to the UK. Will I have a problem at immigration?


I used the method of contradiction by assuming that $\sqrt 2$ is a rational number. Then, by the definition of rational number, there exist two integers $p$ and $q$ whose ratio equals $\sqrt 2$. Thus, $$\frac pq = \sqrt2\tag{x}$$  Squaring both sides, $$p^2/q^2 = 2\tag{a}$$  or $$p^2 = 2q^2\tag{b}$$ This means that $p^2$ is an even number, implying that $p$ is even.  Now, any even integer can be written as $2^kf$ where $f$ is any odd integer and $k$ is some positive integer (the minimum value of $k$ and $f$ is $1$ since even numbers start from $2 = 2^1\cdot1$). For odd numbers, $k=0$.  For example, $8 = 2^3 \cdot 1$, $4= 2^2 \cdot 1$, $18= 2^1 \cdot 9$, $24 = 2^3 \cdot 3$, $-12= 2^2 \cdot(-3)$, etc.  Now, from $(b)$, $q^2$ can be even or odd.  Case 1: $q^2$ is even (thus meaning $q$ is even). Then $p= 2^{k_1} \cdot f_1$ (say) and $q = 2^{k_2} * f_2$ (say). Note here in this case, both conditions $k_1=k_2$ and $f_1=f_2$ can't hold simultaneously since that would mean $p/q =1$ and here $p/q =\sqrt2$ (from $(x)$)). Let's consider the condition when $k_1=k_2=k$ but $f_1\ne f_2$. Then $$\frac{p^2}{q^2}=\frac{(2^kf_1)^2}{(2^kf_2)^2} = \frac{f_1^2}{f_2^2} =2$$ (from $(a)$), i.e.: odd/odd ($f_1$ and $f_2$ are odd) can never equal $2$.  Now lets consider $f_1=f_2=f$ but $k_1\ne k_2$, thus $(2^{k_1}f)^2/(2^{k_2}f)^2= 2^{2(k_1-k_2)}= 2$ meaning $k_1 - k_2 = 0.5$ but $k_1,k_2$ are integers, so their difference can't be $0.5$. (Also here, $k_1-k_2$ must be greater or equal to $1$ since $2^{k_1-k_2}=\sqrt 2$, $k_1-k_2$ can't be negative since $\sqrt 2>1$, but $k_1-k_2\ge1$ can't satisfy $(a)$ since the minimum value of $p/q$ in this case will be $2$ which is surely greater than $\sqrt2$.)  Now lets consider $f_1\ne f_2$ and $k_1\ne k_2$, thus $\frac{(2^{k_1} f_1)^2}{(2^{k_2} f_2)^2}= 2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$ can never equal $2$ since $\frac{f_1^2}{f_2^2}$ is either odd or "odd/odd" ie: it doesn't contain 2 as a factor and $2^{2(k_1-k_2)}$ is a power of $2$. So in $2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$, there's no chance of cancellation of the odd factor $\frac{f_1^2}{f_2^2}$.  Case 2: $q^2$ is odd (thus meaning $q$ is odd). $q=f'$ (say, here $k=0$ for $q$ but not for $p$), thus from $(a)$ $2^{2k}\frac{f^2}{f'^2} = 2$ but this isn't possible since a power of $2$ multiplied with odd factor can't equal $2$.  Thus, both case 1 and 2 suggest that for any possible combination of $k_1,k_2,f_1$ and $f_2$, $p/q\ne\sqrt2$, i.e.: for no value of integers $p$ and $q$, $p/q = \sqrt2$. Thus, this contradicts our assumption that $\sqrt2$ is rational. Therefore it must be irrational.  PLS NOTE that i would like to clarify that $f_1^2$/$f_2^2$ is either an odd integer or a fraction of odd/odd or 1/odd form, thus not containing  2 as a factor,for any $2^n$, if it has to be reduced to 2 , must be multiplied with $1/ 2^(n-1)$ but $f_1^2$/$f_2^2$ can't be of $1/2^[n-1]$ form since for odd nos, in $2^k$*f notation, k is 0 , so 2 vanishes as $2^k$ becomes 1 in this case thus f1/f2 can't be represented as  1/ $2^(n-1)$ in which n has to be existent.  therefore $2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$ can never equal 2 as to further explain the 3rd condition of case 1  Difficulty: is my approach correct? This proof which I thought is different from proofs found on the internet or books since I have used $p$ and $q$ as any integers, which may have a common factor. So I am not sure if I am on right track. Will someone please check this out and make kind comments?


Regular expression search all substrings between two keywords with linebreaks

Lets say I have a python string '\\[this\\] is \\[some\n text\\].' s = "\\[this\\] is \\[some\n text\\]."  I would like a regular expression that would return me substrings "this" and "some\n text". I've tried re.search(r'\\[(.*)\\]',s)  but it does not work (return None)


How is frictional force dependent on normal reaction?

It is a general concept that horizontal forces can only influence physical quantities along horizontal direction; similarly vertical force can produce acceleration etc. only along vertical direction. This is the same concept that helps us study projectile motion as a combination of two independent motions. If this relation is universally true, how come, then friction depend on a force which normal to it?


How to fix my root filesystem being full?

I've recently just installed Ubuntu 16 as a dualboot with Windows 10. I gave the partion around 20Gb when asked during the  install process. I haven't really used it all that much yet now I can't download or even do some basic commands as there is no space available.   Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.5M  1.6G   1% /run /dev/sda6       5.8G  5.8G     0 100% / tmpfs           7.8G   21M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/sda8       9.8G  1.1G  8.3G  11% /home /dev/sda1       256M   51M  206M  20% /boot/efi tmpfs           1.6G   64K  1.6G   1% /run/user/1000 /dev/sda3       209G  113G   97G  54% /media/myfullname/TIH0435382   I see that my "/" directory is full but I'm just wondering why it is so small relative to the amount assigned and how that works given my "/home" is relatively empty in comparison. Can I change it to use my /home directory for downloads?   If anyone could help me fix this it  would be much appreciated.


I tried to install Ubuntu 19.10 desktop edition on my pc using USB but it said Error 15:() file not found. Can anyone help me fix this problem?


Sum involving binomial coefficients - generalisation of hockey stick identity?

I am trying to evaluate a sum involving binomial coefficients, and by some manipulations, I have reduced it to $$\sum_{i=0}^{n} \binom{n+i}{i} 2^{n-i}$$ where $n$ is a constant ($n=1009$ in my particular case). (This looks like the LHS of the Hockey Stick Identity, except for the presence of the $2^{n-i}$ term. I would also be interested in further generalisation, replacing the $2$ by an arbitrary constant).  To evaluate this, I attempted writing $$2^{n-i} = \sum_{k=0}^{n-i} \binom{n-i}{k}$$ which gave a more symmetric expression, but otherwise didn't seem to help much.  So, given that the answer (according to Mathematica) is $4^n$, how can this be proved?


Merge multiple video with ffmpeg single command line in specific time without cut it one by one and merge it

I have 15 video files which I want to merge with ffmpeg. I want to save time by merge all of the video files in a single command line, not cut it one by one and merge it. Thanks.


Is there a fast way to get to the bottom of the Death Star?

In Tiny Death Star, you can get to the top of your tower by tapping on the top of the screen while avoiding the "Add Level" button. However, the only way I can find to go to the bottom of the tower is to wait for someone to want an elevator ride, and tap on the button to give them that ride. Is there any other hot-spot for getting to the bottom of your Death Star?


Im trying to play a game called Conquer Online. WHen I go to load the game i get an error that reads "Conquer online cannot be started. The problem could be from your version of Direct3D. It is suggested you re install your graphics driver". So how do I install my graphics driver again?


Let $M$ be a manifold , and $\pi_1(M)=\mathbb{Z}$. then can we say, the double covering of $M$ exists and is unique?


I want to build custom Ubuntu image(.iso) file with JRE and my application. I've already built my application on ubuntu. This ubuntu image i'm going to build should only run my application.I want a system, that is only capable to run my application. The application should start while the system is starting. Where should i look for resources to implement this?? Thank you.


What are the requirements to receive a reward from a gym?

I understand that in order to receive a reward from a gym, I have to leave a Pokemon there. However, the exact requirements to collect a reward are elusive to me.  I left a Pokemon at a gym earlier after defeating the current team, but it was removed shortly afterwards and I have not received any rewards.  Does the Pokemon have to fend off a certain amount of challengers, or be there for a certain amount of time?  I live in a very populated area and the gyms have a turnover time of minutes, sometimes hours. Nobody holds a gym for very long as far as I can tell.


Is it possible triggering a script with a change of amount of files in a directory?

Is it possible to create some kind of directory watcher and trigger a script when the folder is not empty?  I have a CentOS machine with jenkins CI on it. i would like to create a job that will move all build artifacts to my web server folder each successful build. is it possible?   I want to avoid timed triggered cronjob.


Is "I will do X and respond" preferable to "I will do X and revert"

In the emails I keep seeing someone responding with "I will do X and revert" asked them what do they mean by that, they said it means respond back. It doesn't seem right to me, I have been looking for usages of revert, all I see that makes sense is to return to previous state ( which doesn't mean anything to me ). Is it preferable to use "I will do X and respond (back)" to "I will do X and revert"?


Remove selected character delimited paragraphs using an inverted negative lookahead across multiple lines

I have this input string:  string = '''p1 = { s, },  p2 = { {s, },  p3 = { s, },  p2 = { }s, },'''   I am trying to replace all paragraphs starting with p2 = { and ending with }, and end up with this new expected output string:  p1 = { s, },  p3 = { s, },   I can achieve this without using a regex by just looping over the lines. But how would I do it with a regex?  This method using  does not make any replacement and I don't understand why not:  import re repl = '' pattern = r'p2 = {.*?},' new_string, number_of_subs_made = re.subn(pattern, repl, string,  re.MULTILINE|re.DOTALL)   This method using  seems to be able to find all matches:  import re pattern = r'.*?(p2 = {.*?},).*?' m = re.findall(pattern, string, re.MULTILINE|re.DOTALL) print('\n'.join(m))   It prints this output:  p2 = { {s, }, p2 = { }s, },   There is a question on how to emulate grep -v and exclude lines with pattern matches, and the answer suggests using a negative lookahead:   And there is a question on how to use negative lookahead across multiple lines here:   Would it perhaps be possible to somehow invert that negative lookahead and print the lines that do not match?


jQuery: .click doesn't work on appended div

please help me out with this issue: both .click and .on are not working when i am clicking on appended   $(document).ready(function() {     $( ".cooldiv" ).click(function() {       alert(1);     });      $(".cooldiv").on('click',  function(){       alert(1);     });      $("#fields_count").change(function() {                 var $newDiv = $('
i am cooldiv
');                 //$($newDiv).addClass('cooldiv');                 $("#testdivs").append($newDiv);     }); });   html is:

qwdqwdwef

 <input type="text" size="3" id="fields_count" name="fields_count" value="3">   when i am clicking on a div containing 'qwdqwdwef', alert comes, but it does not when clicking on appended div's of the same class. Any ideas?


Often I read questions asking how to remove the gap between two \hlines in a table, but I like the gap and want to create it in the \hline as well, to have an equal effect for the column and row titles.  The code below makes a standard table  \documentclass{article} \begin{document} \begin{center} \begin{tabular}{|c||c|c|c|}\hline & A & B & C\\\hline\hline A & 1 & 2 & 3\\\hline B & 4 & 5 & 6\\\hline C & 7 & 8 & 9\\\hline \end{tabular} \end{center} \end{document}   The image shows what I am trying to accomplish.     Does a simple way to create this table exsist?


Yes, I have read many, many documentations but I can't get it to work. I have a simple single php file which I want to run once or twice in a minute. My php file is called: cronjob_refresh.php and I'm using Ubuntu 12. After typing  crontab -e  I'm getting in terminal:  root@cron:~# crontab -e no crontab for root - using an empty one 888  I don't know what '888' is meaning... And I'm writing (after 888) my cronjob string  */1 * * * * php /var/www/cronjob/cronjob_refresh.php  After hitting enter I'm getting '?' symbol after the cronjob string entered.  root@cron:~# crontab -e no crontab for root - using an empty one 888 */1 * * * * php /var/www/cronjob/cronjob_refresh.php ?  Then I hit CTRL + Z to exit. After all this I'm executing  crontab -l  to check if the cronjob is added to my cronjob list but it's saying that the list is empty. I don't know what I'm doing wrong. Also I wan't to execute twice in a minute, 30 - 30 sec. How to set the cronjob? I want to log everything in a file named logs.log in the same directory, is this is possible?


Show that for any strictly increasing function $f:[0,1]\to[0,1]$ there is a fixed point such that $f(x)=x$. ( The function isn't necessarily continuous) .  Any ideas ?


How to change "Show Apps" icon on Ubuntu 17.10

As the title says, I want to change the "Show Applications" Icon in Ubuntu dock (on Ubuntu 17.10) with Ubuntu icon like in Unity 10.04.     I have found a similar question but the answer has no result.


I was looking for a simple way to find the number of samples $n$ needed to get a decent approximation to the covariance matrix $\boldsymbol{\Sigma}$. Given a random sample $\{ \mathbf{X}_1,\mathbf{X}_2, \dots ,\mathbf{X}_n\}$, the sample covariance matrix is   $$ \boldsymbol{\Sigma}_{n} = \frac{1}{n-1} \sum^{n}_{k=1}  \left( \boldsymbol{\mathbf{X}}_k -  \overline{\boldsymbol{\mathbf{X}}}  \right)\left(\boldsymbol{\mathbf{X}}_k -  \overline{\boldsymbol{\mathbf{X}}} \right)^T  $$  I want to plot the number of samples $n$ (on the x-axis) vs some scalar value computed from the estimate $\boldsymbol{\Sigma}_{n}$ (on the y-axis). What quantity can I compute in a simple way to plot such a convergence graph?. What about the matrix norm $\left \| \cdot \right \|_2$, i.e. the maximum singular value of $\boldsymbol{\Sigma}_{n}$?.


I'm trying to write a simple bit of code to get a input via BufferedReader and then execute some code within another method.  import java.io.*;   public class main {     public main() {      }     public static String input() {         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));         String out;         try {             out = br.readLine();             return out;         } catch (IOException e) {                    e.printStackTrace();             return null;         }     }     public static void someCode() {         //some code     }     public static void main (String[] args) {         input();         if(input() == "Input") {             someCode();         }     } }   Thanks :)


Let $R$ be a ring and $I$ and $J$ be ideals in $R$ such that $I + J = R$. Show that there exists a ring isomorphism $R/(I\cap J) \cong R/I \times R/J$. I've already proved that $IJ= I\cap J$. Feels like I am pretty closed to the answer, but trapped. Thanks!


Can I bring a motorcycle helmet as hand luggage when flying with Ryanair?

I've read about different experiences: someone's being blocked at the security check because "you can hit someone with that", and some others at the boarding because the helmet just doesn't fit with the "small bag" 35cm × 20cm × 20cm allowed dimensions.  Others were able to travel with a cabin bag AND their helmet (they had to put it under the seat in front of them).  Anyone here have an idea of what I should expect?


Please provide the ability to cross post questions to multiple Stack Exchange communities

I think that now that we have multiple communities, there are questions that will be of interest to multiple communities.    For example consider the question  asked on  .  I think that this question would be better answered on the   (that is where the experts are).  But since questions is of interest to both communities I think that it is useful to cross post it, where answers are also shared between the different sites.  I think that the best way to handle cases like this is by allowing cross posting.  I think users with 500+ reputation should be allowed to cross post questions.  This would allow users from both sites to answer them.  I think that this could also be a good way of marketing different sites to different users.    Similar questions have been asked about the SO, SU and SF triad but I think that this has become a larger issue (and will become a bigger issue as more area51 sites evolve).


Find with multiple extension does not work with -exec

I am using a find command this way:  find ./my_path -name "*.ext1" -exec echo {} \;   And it would work.  Now with multiple extensions, the following command would display several files :  find ./my_path -name "*.ext1" -o -name "*.ext2"    But when using -exec:  find ./my_path -name "*.ext1" -o -name "*.ext2" -exec echo {} \;   No files are displayed. What am I doing wrong, shouldn't it display just the same files as my second example?


Need small distro without a desktop or windows manager, just to run a single graphical app

I need a small distro, that is stable. I don't need a full X server or window manager, I only need it to run one single application with a basic UI that consists of a viewport.  I would like for the distro to be as small as possible. 700 mb or less would be ideal.   Is their a base distro of ubuntu or similar that I can add whatever I need to it from the command line. Which basically is the kernel and some way of graphical output. I was thinking of putting Direct FB on it to render the application. Even a live distro would work.


Does the UA Sea Sorcerer's Curse of the Sea feature work with the Eldritch Blast cantrip using the warlock's Repelling Blast invocation?

I am trying to understand whether the Curse of the Sea feature of the Sea Sorcerer subclass (from ) works with the warlock's Repelling Blast .  The Curse of the Sea feature states, among other things:     Once per turn when you cast a spell, you can trigger the curse if that spell deals cold or lightning damage to the cursed target or forces it to move.   The Repelling Blast invocation states:     When you hit a creature with eldritch blast, you can push the creature up to 10 feet away from you in a straight line.   If I'm going to be multiclassed in Warlock and Sea Sorcerer, can I trigger the curse off of eldritch blast with Repelling Blast, or not?  It sounds to me like Repelling Blast is a power your character has, not an add-on to the spell, so I tend towards "no," but it kind of feels like they should work together.


Expected value of the following expression

I need to find the expected value of $\frac{\sum x_i}{n-\sum x_i},\ i=1, 2, \ldots, n$, where the $x_i$'s are negative binomial $NB(1, \theta)$.   Edit: More context about the problem:  I looked for the MLE for $\theta$ using $x_i$'s, iid negative binomial variables to estimate $\theta$ which gave me $\frac{\sum x_i}{n}$. I then needed to find the MLE for $\frac{\theta}{1-\theta}$. Using the invariance property of MLEs, I got  $\frac{\sum x_i}{n-\sum x_i}$.  Now I need to show if this estimator is unbiased for $\frac{\theta}{1-\theta}$. Is there a better way than taking the expectation?


How to get initial reputation on Stack Overflow with the new-user restrictions in place?

I understand that reputation can be gained by answering questions. However, it seems that more often than not the questions do not contain all the required information to give an answer. Since new users can not comment questions and ask for more details, this creates a sort of catch-22.  Any good advice on how to get initial reputation, given the new user restrictions?


Dipole moment in the Optical Interaction Hamiltonian

I've got a simple and fundamental question regarding the atom-light interaction Hamiltonian: How do we handle the dipole moment term in this expression? The atom-light interaction Hamiltonian, $H_{AL}$, takes the following form: \begin{align}     \hat{H}_{AL} &= -\hat{d} \cdot \hat{E}&&\\  %&=d \cdot E\left(\sigma_{-} + \sigma_{+}\right)  \end{align} where $\hat{E}$ is the electric field and $\hat{d}$ is the dipole moment operator. The latter is the operator I'm interested in. We can evaluate the matrix elements of this operator as $\hat{d}=q\hat{r}$, where q is charge and $\hat{r}$ is the position operator. Let's take the case of a two-level system with ground and excited states $|0\rangle$ and $|1 \rangle$ respectively, if we move from position to the energy basis: \begin{equation} \hat{d} = |0\rangle d_{01} \langle 1| + |1 \rangle d_{10} \langle 0| \end{equation} where $d_{01} = \langle 0| \hat{d}|1 \rangle$. Thus, if $d_{01} = d_{10} = d$ then: \begin{equation} \hat{d} = d \sigma_{x}. \end{equation} Returning to the atom-light interaction Hamiltonian, now lets say that we have $N$ two-level systems, each treated as a dipole, coupled to a single cavity. If the electric field is treated as a quantum harmonic oscillator we find the following expression: \begin{equation} \hat{H}_{AL}= \sum^{N}_{i=1} d_{i} \sigma_{x} \otimes \sum_{k} g_{k} (\hat{a}_{k} + \hat{a}^{+}_{k}). \end{equation} Where $g$ is the coupling strength and $a_k$ are the ladder operators. Now consider if I were to physically calculate this interaction, here's my problem: In terms of the position basis I understand the dipole moment as a vector, relating to the dipoles position and charge. But it is also, as shown above, a quantum operator whose elements correspond to the coupling between two states. Say, for example, I was given a list of dipole moment vectors and wished to construct the atom-light Hamiltonian interaction Hamiltonian for that system, how would I convert those dipole moment vectors into $d_{i}$ coefficients? If $d_{i}$ were just a number then I'd understand the maths but not the physics and if $d_{i}$ were a vector then I understand the physics but not the maths.


How to install GCC without internet connection and what do I have to keep in mind when installing GCC?

I have 2 operating systems on my pc: windows 8.1 and Ubuntu. Windows 8.1 has internet connection, but Ubuntu does not. Is there a way I can download GCC for Ubuntu on my drive and then transfer and install it from there? what do I have to keep in mind when installing?  Note: I have never installoed a program on Ubuntu before!!  Specs: ubuntu 13.10 32bit windows 8.1 64bit   After trying the awnser I got this error:


$\delta Q = dU + \delta W$. Why is it $dU$ while others are partial differentials?

It is the first law of thermodynamics for a very small change in the state of the system.    It is in Heat thermodynamics and statistical physics by Brij Lal, Dr. N. Subrahmanyam, and P.S. Hemne.


Prove that for every integer $ n \geq 1$, we have  $\displaystyle \sum_{j=1}^n j^3 = \left(\dfrac{n(n+1)}{2}\right)^2$  I know how to prove an induction proof, but I just can't get the algebra down on this problem. Can anyone help?


I am Nigerian and I need to travel from India to US

I am Nigerian and my home is in Nigeria. I am living in India on a working Visa, which is about to expire.   My question is can I get a visa to visit the United States from India or do I need to go back to Nigeria and obtain a visa to the US from there?


What does this statement mean:  B b = new C();   Does it mean that b is object of class B and C at the same time? Can anyone clarify this in detail.  I know  B b = new B();   when I create object from class B, but I don't know what this statement mean  B b = new C();


Cosine of the sum of two solutions of trigonometric equation $a\cos \theta + b\sin \theta = c$

Question: If $\alpha$ and $\beta$ are the solutions of $a\cos \theta + b\sin \theta = c$, then show that: $$\cos (\alpha + \beta) = \frac{a^2 - b^2}{a^2 + b^2}$$  No idea how to even approach the problem. I tried taking two equations, by substituting $\alpha$ and $\beta$ in place of $\theta$ in the equation and manipulating them, but that didn't get me anywhere. Please help!


Does brain size matters for the intelligence of an organism?

It was shown in a local TV show that larger the brain, larger the intelligence of that organism.   Does that mean if more number of neurons present in the brain canit helps in improving the intelligence of that organism?


First request after a while always slow - ASP.NET MVC / IIS 8.5 / Windows Server 2012 R2 VPS

I'm hosting a low-traffic ASP.NET MVC 5 application on a VPS with Windows Server 2012 R2 / IIS 8.5, with 1 GB of RAM.  My problem is that the first request after some time without any requests always gets a slow response - around 1.5 seconds according to Chrome Dev Tools. Subsequent refresh requests/responses only take about 45 ms.  I already did set Start Mode to AlwaysRunning on the application pool, and Preload Enabled to True on the website level, but it had absolutely no effect. Even if there are no changes/uploads whatsoever, after some time passes, with the next request it takes 1.5 s to get a response.


Wireframe and Solid viewports are not showing anything correctly

So I have an issue where when I change the viewport to Solid or Wireframe, nothing shows up apart from one small segment of my object as if its being cast towards by the camera. Below is a screenshot of my model in the workbench renderer where it is all rendering correctly, but when I switch it to solid view the second image is what I see.   To me it looks like the camera is projecting some kind of small ray that is only rendering the part of the model that is in that area but I have no idea how to fix it. Wireframe view has the same issue as you can see on the image below.


I am looking for a word or phrase that means the characteristic of being generous with one's thoughts.  For instance, a mentor would have this characteristic--that would be a person who had agreed to provide a leg-up for a junior person in their profession by sharing information and feedback. I am looking for a positive word because, of course, someone who is "generous with their thoughts" might be a busybody. The particular context is that I am trying to describe a new working group that will need to come up with innovative ways to solve problems and one of the rules of the group will be that everyone be equally generous with their thoughts, as opposed to being entirely dead wood or, even worse, only speaking up to shoot down other people's ideas.  So I want to convey that offering your ideas is a gift and that those who do not want to offer ideas do not have this admirable characteristic (and should not volunteer for the group). Actually, the folks who participate here could be said to have this characteristic!


Do the moderators tend to take some extra time when handling edge-case other flags?

I could not help but notice that at times, a few of the other flags which I'd raised used to take a touch more time than the others to be processed. The latest one of them being a flag on . I'd raised an other flag on this answer stating a reason that it wasn't an answer, but a comment as it did not really answer the question(after going through ).  That flag was raised on Nov 23 at 7:24 and its still in active state. So my question is whether the moderators consciously take that little bit extra time to handle a few edge-case flags? I know that the size of the other flags queue is, most of the times, a bit on the larger side and the mods are trying their best to handle them ASAP. But I would just like to confirm whether it is just the size of that queue which causes the delay in the handling of other flags or do the moderators(at-least a few) really take some time to analyze the flag in depth before acting upon them?


I have Problems with my Lenovo notebook, and I want to reinstall windows 7 64 bit Pro. I downloaded the Iso but was not able to activate via the OEM key under my battery.  since digitalriver is down, where do I get the Windows OEM versions?


I need to multiply each of two nodes and find total sum, like quantity * perUnit and find total of all Products. How could it be done?    <Products>     <Product>       <name>TestProduct</name>       <quantity>3</quantity>       <perUnit>14.88</perUnit>     </Product>     <Product>       <name>Another Product</name>       <quantity>1</quantity>       <perUnit>2.45</perUnit>     </Product>     <Product>       <name>One more product</name>       <quantity>2</quantity>       <perUnit>4.71</perUnit>     </Product>   </Products>   I tried to do it like this:  <xsl:variable name="TotalPrice">     <xsl:for-each select="./Products/Product">         <xsl:value-of select="quantity * perUnit"/>     </xsl:for-each> </xsl:variable>   And then  <xsl:value-of select="sum($TotalPrice)"/>   Also tried this:  <xsl:value-of select="sum(//quantity * //perUnit)"/>   But got an error:   Can not convert #NUMBER to a NodeList!


Can there be any issues in using Lumix G 25mm f/1.7 ASPH with Oly OMD10 mark 2?

I plan to get Lumix G 25mm f/1.7 ASPH for Olympus OMD10 mark 2.  Should I expect any reduction in performance since I am not using Lumix lens on Lumix camera? I googled but did not find any concrete answer regarding this pair. Some people say stabilization might not work well, but this lens is not stabilized. Some others say about possible purple flare, but only few resources mention this and others say it is not an issue. So I understand it is a very lens dependent question. So I am interested about this pairing specifically! Thanks.


Override iTunes "media" keys (play, pause, etc) for Spotify?

Is it possible to set Spotify as the default program when the "media" keys (play, pause, previous, next, etc) are pressed on the Mac keyboard?   For the most part when Spotify is open, the "media" keys work fine. But every once and a while iTunes will pop up when you hit them. It'd be a lot nicer if you could just specify that Spotify is the default program when these keys are triggered, as oppose to iTunes.  If it matters, I'm using Mountain Lion.


What do wizard children do before attending Hogwarts?

Most of the wand-carriers that come from a non-Muggle family seem fairly uneducated when it comes to interacting with Muggles.  This implies that they don't go to any type of Muggle school before entering into their education at Hogwarts (or whichever Wizarding school they go to), or else they would at least understand some Muggle culture.  What do children from magical families do before going to Hogwarts if they don't go to a traditional school?  Is there any evidence that they're homeschooled?


windows hibernate and problems with copying

I hibernate windows 7 and open ubuntu.  Afterthat, I mount my remaining drives(excluding C which I obviously can't) and use ubuntu .. but if I want to copy some file into other drives  I can do it but when I restart ubuntu and resume windows I can't see them. To see those files in windows I have to restart windows. Is there a way in which I can do this thing without actually restarting windows 7 'cause restarting windows takes hell lot of time  Thanks


Does Googlebot (and/or search engines) index a forwarded page?

Let's say I have example.com domain, and I force the user to use the HTTPS over HTTP.  The question is as browsers just accept and load the forwarded/new page (when the request for http://example.com -> https://example.com), does the Googlebot (or other search engines) accept the forwarded page and index the new page and just ignore the old page?  In other word, does search engines accept HTTPS beside the HTTP?


Two of the races you're allowed to use in D&D are half-elf and half-orc. My first character was a half-elf. Usually the other half is human but is it possible to have a character who is half-elf and half-orc?  Are any of the other main races compatible? I heard someone saying the dwarves were half-human and half-gnome but I don't think that's correct.


i am trying to sed and change something from a json file and i am getting this error.  prajwal  sed -i 's/{"telephone_numbers":\["1-/{"telephone_numbers":["+1-/g' output.json sed: regex input buffer length larger than INT_MAX


I use QGIS 2.18.5 and I get in stuck with two polygons I cannot solve.  I want to make a new polygon from these two which looks like this:  I made thew new one: Cut 1 polygon and paste to other layer. Used polygon to lines toolbox then explode lines, then deleted the lines which do not needed then used the add feature to connect lines. Last I dissolve new lines then convert lines to polygons. The new polygon looks like that I wanted to get in QGIS but when I use wayline converter which convert polygons to my tractor GPS it is only shows one polygon:  What could be the problem?  Look I deleted the line I do not need.  When I select Vertex Tool it appears the line I deleted earlier.  I think this is the main problem but I do not know how to remote it well..   I found it but is is not the result I wanted to get. :D Look I want to this from 2 Polygons: I want that new polygons that is circled with red:  After used the Minimum Bounding as Minimum Oriented Rectangle I got this:


What reason(s) exist to suppose that all degeneracy pressures can be overcome in Black-Hole formation?

In models of  to a black hole, it is a given that density increases without bound towards a singularity. Electron degeneracy I get. Neutron degeneracy I get. I assume there's some (theoretical) support that quark degeneracy can be ultimately overcome through some process Wikipedia doesn't describe - what is it?


What software is focused on reviewing and organizing images?

If I wanted to just view, sort, and organize (via tags or folders or both), what programs are geared toward doing this quickly?  I know I could do this in most any photo editor, but it's not ideal for reviewing hundreds of images. I've also seen people use the image previewers built into their computer's OS, but that can't be the best option either.  What program would you suggest instead?  Extra info on the program is appreciated, i.e. OS requirements and cost.


typedef int* intptr OR typedef int *intptr;

Instinctively I found where to put spaces in pointer declarations:  int system(const char *command);   // <-- right int* foo() { return 0; }           // <-- wrong int *X = 123;                      // <-- right int* Y = 321;                      // <-- wrong int *Z = (int*) X += (int*)Y       // <-- right #define pchar char*                // <-- right   but this still puzzles me:  typedef int* intptr;   OR  typedef int *intptr;   Where the star belongs, left or right?


100% disk usage, 100% of the time on Windows 8 with an SSD

I have a should-be decent spec Laptop (Pentium Dual Core (one of the more recent ones), 8GB DDR3 Ram, SSD, Windows 8) but it is running horribly and the disk IO is always at either 99% or 100%, not  but always.    I installed the OS myself, and afterwards downloaded and installed all of the recommended drivers from the manufacturers website.  Is there anything obvious that would cause this?


I need to read a single row from SQL Server with a stored procedure as a standalone call. Let's say there is a BL.GetRecord(int id) for it. I need to call this method from inside another method. Do I need a transaction scope for reading it? Here are possible GetRecord(int id) bodies: using(var ts = new TransactionScope()) {     return prov.GetRecord(id); }  or using(var ts = new TransactionScope()) {     var record = prov.GetRecord(id);     ts.Complete();     return record; }  OR just return prov.GetRecord(id);  Method for 2. will have its own TransactionScope with Complete(). The purpose is to read 'clean' records. Do I need to Complete() (is it = COMMIT?) on reading as we aren't saving anything? All these operate on a single table. I need something like, 1 user updates a record (which also does a reading first). I think it's better if second user should read updated value by waiting rather than reading whatever is currently if the first is going to update it in few milliseconds anyway.


My Android phone is completely reset, whats the best way to recover the deleted data?

A person at a phone store reset all the contents of my Motorola Moto G Android phone, and I did not give them permission to do so. I had many important pictures and videos, but the even more important thing were the audio recordings I had created.  Is there ANY WAY to recover this data? I know it was reset, but I'm very stressed and would appreciate a pointer of a way to effectively recover some or all of the data without comprising it in the process. I am not using the phone, and had shut it off entirely. I'm aware that the more you use it, the more it overwrites the data. I NEVER had a backup, dumb, I know.  Thank you folks!  **Edit: I recovered most of my photos and videos just now through Google+, most of it was synced! But how can I recover my voice recordings ? That's what's most important to me. I used this app.   Unfortunately, my phone model never supported SD cards, so there's nothing there.


I am having trouble implementing a "while" loop in Java

This is my code. import java.util.Scanner; public class passwordProgram {     public static void main(String[] args) {     Scanner scan = new Scanner(System.in);          String correctPassword = "WooHoo";     int tries = 0;     boolean keepGoing = true;          while(keepGoing = true) {                           tries = tries + 1;         System.out.println("try #" + tries);                  String password;                  System.out.println("Please enter the password: ");                  password = scan.next();                  if(password == correctPassword) {             System.out.println("This is the correct result:" + password);             keepGoing = false;                          if(tries >= 3) {                 System.out.println("Too many wrong tries. Exiting program");                 keepGoing = false;                 break;             }                 }      } } }  The while loop doesn't end when the right password is entered, and it keeps repeating after the allowed number of attempts has been reached and I want to know why. Is it because of the condition statement in the while loop or is there something else wrong with the code?


What determines which frames are inertial frames?

I understand that you can (in principle) measure whether "free particles" (no forces) experience accelerations in order to tell whether a frame is inertial. But fundamentally, what determines which frames are inertial (i.e. what principle selects in which frames free particles will not appear to accelerate)? I've been told that the cosmic microwaves determine the ultimate rest frame of the universe, but that doesn't make sense to me, since one can still ask why that frame is an inertial frame.  Also, I understand that there are no real inertial frames in general relativity, but it seems like there certainly exists approximate inertial frames and we can ask why those frames are approximately inertial and not others. For example, in the frame of a person riding a merry go round, free particles appear to greatly accelerate; while in the frame of someone standing next to the merry go round there are no such great accelerations. Why does the guy (or gal) on the merry go round see free particles accelerating while the other guy doesn't.   And if you're gonna tell me that it's "the rest of the stuff in the universe" that determines whether the person on the merry go round sees free particles accelerate, I'll ask how you know that all that stuff is not spinning.  I hope this question sort of makes sense, it's been bothering me for a while and my study of relativity (most of special relativity and just the outline of general relativity) hasn't really clarified it for me much.


I have $\displaystyle\sum_{n=1}^{\infty}{\frac{(2n)!}{(4^n)(n!)^2(n^2)}}$ and need to show whether it diverges or converges.   I attempted to use the ratio test, but derived that the limit of $\dfrac{a_{n+1}}{a_n}=1$ and hence the test is inconclusive.   So I now must attempt to use the comparison test, but I am struggling to find bounds to compare it to to show either divergence or convergence.


How to display partial TOC (only one section at a time)?

I already know how to print an Outline with only the current section. What I'd like to do is to have an Outline slide with some extra info (for instance, a publication) below each section of TOC. I already tried doing it "by hand", but can't get the same formatting/style/bullets as in TOC.  Example:  Section 1   extra info for section 1 not related to TOC   Section 2   extra info for section 2 not related to TOC   A minimum working example follows:  \documentclass{beamer}  \mode<presentation>{   \usetheme{Warsaw} }  \AtBeginSection[] {   \begin{frame}<beamer>{Outline}     \tableofcontents[currentsection,hideothersubsections]   \end{frame} }  \begin{document}  \begin{frame}     I'd Like something like this (but with the same formating as the next frame):     \begin{enumerate}         \item Section A         \only<1>{             \begin{itemize}                 \item some additional info about A             \end{itemize}         }         \pause         \item Section B         \only<2>{             \begin{itemize}                 \item some additional info about B             \end{itemize}         }         \pause         \item Section C         \only<3>{             \begin{itemize}                 \item some additional info about C             \end{itemize}         }         \pause         \item Section D         \only<4>{             \begin{itemize}                 \item some additional info about D             \end{itemize}         }     \end{enumerate} \end{frame}  \begin{frame}     \tableofcontents[pausesections,hideothersubsections] \end{frame}  \section{Section A}  \subsection{Subsection A.1}  \begin{frame}     Test A.1 \end{frame}  \subsection{Subsection A.2}  \begin{frame}     Test A.2 \end{frame}   \section{Section B}  \subsection{Subsection B.1}  \begin{frame}     Test B.1 \end{frame}  \subsection{Subsection B.2}  \begin{frame}     Test B.2 \end{frame}   \section{Section C}  \subsection{Subsection C.1}  \begin{frame}     Test C.1 \end{frame}  \subsection{Subsection C.2}  \begin{frame}     Test C.2 \end{frame}   \section{Section D}  \subsection{Subsection D.1}  \begin{frame}     Test D.1 \end{frame}  \subsection{Subsection D.2}  \begin{frame}     Test D.2 \end{frame}   \end{document}


I am running ubuntu 14.04 LTS on my HP laptop. I've been trying to get Tor browser but have had some complications. I've downloaded the file and saved it to my desktop   I've tried several commands trying to get into the created directory and install the browser:  cd tor-browser-linux64-4.5.3_en-US   I've used variations of this file name to include the .tar, to include .desktop at the end and various other things.  I've also tried to the command  tar -xvf <TAR_FILE_NAME>   and all return with the message of "No such file or directory". What's the deal??  I'm running a 64-bit OS and downloaded the 64-bit version. I can open the folder and view the various files. I'm not skilled in Ubuntu syntax whatsoever.


Discuss convergence of the series $\sum \frac{(1+n)^n}{n!}x^n$.

Let    $$a_n = \dfrac{(1+n)^n}{n!}$$   Discuss convergence of the series $\displaystyle \sum a_nx^n$.   I've shown that the series converges absolutely when |x| < 1/e and diverged when |x| > 1/e. I can't seem to determine what happens at |x| = 1/e


Can you help me solve the paradox that has confused me about the glViewport and glOrtho functions?

suppose that I have an image that I want to apply as a texture on a geometry (at time we don't consider texture mapping but this image has a certain width and height here it is a 512x512 image) I want the image be drawn at the center of the window so I have set the window coordinates as follows:    glOrtho(-oglWindowWidth/2, oglWindowWidth/2, oglWindowHeight/2,-oglWindowHeight/2, -1, 1);     and then drew the geometry:    float x0 = -ImageWidth/2; // top left corner of image float y0 = -ImageHeight/2; float x1 = x0 + ImageWidth; // bottom right corner of image float y1 = y0 + ImageHeight;  glBegin(GL_TRIANGLE_STRIP); {     glVertex2f(x0, y1);     glVertex2f(x0, y0);     glVertex2f(x1, y1);     glVertex2f(x1, y0); } glEnd();     It's true and what I reach as the result is:     Meaning that the coordinates of the center of both the image and window is (0,0) and the image will be drawn at the center of the window But since I need the viewport, I used this code after drawing the geometry:    GLint iViewport[4]; glGetIntegerv(GL_VIEWPORT, iViewport);     and reached the result: (0,0,573,543) now I think that the line of code: glOrtho(-oglWindowWidth/2, oglWindowWidth/2, oglWindowHeight/2,-oglWindowHeight/2, -1, 1); says that: left of window : -573/2 = -286.5 right of window : 286.5 top of window : -543/2 = -271.5 bottom of window : 271.5 But the Viewport tells: left of window : 0 right of window : 573 bottom of window : 0 top of window : 543 Note that if I set the Viewport by something like the following code:    glViewport(-oglWindowWidth/2, oglWindowHeight/2, oglWindowWidth, oglWindowHeight);     I won't get the true result. I mean the geometry will not be drawn at the center of window as shown in the photo? How can I solve the paradox having two different coordinate values for the bottom left of the image by two different codes?


How to clean Linux and get it back to its original state?

Ok, first of all, the question above might be worded wrong so please forgive me if this is the case. So for clarification let me explain;  In the process of troubleshooting something, one tries multiple solutions until they find the right one. What can I do to prevent a failed solution hampering the next correct solution?  For example; Today I'm trying to get my iPhone 5 working in Kubuntu 16.10 (I need to download photos from it). I do my research and find multiple ways of solving the problem. So I randomly pick a solution that says install so and so package. So I go and do sudo apt install so and so package. CLI says, you need to install 1000!?!? dependencies to make so and so package work. I'm like OK cool, that's a lot of packages, but I think I can handle it. So I go and install them. But then bam, solution 1 crashed and burned. And I'm all like, it ain't no biggie. I can just delete all of those dependencies. So then I do sudo apt purge <1000 dependencies>, but then out of nowhere the CLI says I'm only deleting 500 dependencies.  And then I'm all like, wait, what if those 500 dependencies get all huffy and jealous cause in my next attempt at solution 2, CLI says, you need to install 2000 dependencies for so and so version 2 package to work? You know how it is with unmet dependencies, they are never resolved.  Anyways, the whole point of this obnoxious long diatribe is this; how do do I get back to a clean operating system without having to do a complete reinstall?  Today in the process of fixing this iPhone drama, I accidentally deleted Xserver. It's OK, because I got my lovely GUI back, but I really don't want to have to go through another heart attack just to try multiple solutions. So if anyone could enlighten me it would be great.


Interpreting categorical x categorical interaction in a poisson regression

I have run a poisson regression with two categorical predictors (treatment and disease severity) and their interaction, controlling for a number of relevant covariates.  Treatment has two levels (control = 0, intervention = 1) and disease severity has three levels (none = 0, mild = 1, moderate = 2).   My output shows a significant interaction between treatment and moderate disease severity in predicting my outcome (exp(-0.63) = IRR 0.53.  My question is: Can I interpret the 0.53 directly?  Is this meaningful?  In other words, is it the case that those with moderate disease severity who received the intervention had 0.53 the incident rate of those with moderate disease severity in the control group?  Or do I need to look at the difference between the IRR of the main effect of disease severity and the interaction term in order to draw this conclusion?


prove that for a sequence $a_n$ from $n=1$ to $\infty$ that if the sum is less than infinity then $a_n$ tends to 0

Prove that for a sequence $\displaystyle\sum\limits_{n=0}^\infty a_n$ that if $\displaystyle\sum\limits_{n=0}^\infty a_n < \infty$ then $a_n \rightarrow 0$.


Need a shell script which should send a mail to me once every 20 days

Can some one tell me the logic or the entire script to create a shell script to send a mail to me once every 20 days


Grub seems to don't load its config from grub.cfg

I have a computer with 3 OS installed on it :   Blinux Blinux exam Windows 7   (Blinux is a custom version of OpenSuse that we use in my school).  I have recently restored my computer with the image file provided by my school, and updated to the last version of Blinux.  Before the update, the grub looked like this :   Blinux 2.0 STD Advanced options for Blinux 2.0 STD Blinux 2.0 EXAM STD Advanced options for Blinux 2.0 STD Windows Boot Manager   And after the update, it changed to :   Blinux 3.0 STD Advanced options for Blinux 3.0 STD Blinux 3.0 STD Advanced options for Blinux 3.0 STD Windows Boot Manager   So according to grub, the exam partition is gone. Actually it's still here but it is now the first option in grub, the normal Blinux is now the third.  However, the OS names in /boot/grub2/grub.cfg are the correct ones and, in any case, trying to run grub-install /dev/sda to update the configuration file results in:     WARNING! You are trying to invoke the unsupported grub-install script   with a parameter. To really do this, call grub-install.unsupported.   You should rather call "yast2 bootloader" or create configuration   files appropriate for the intended target.   If I run grub-install without /dev/sda as parameter it opens YaST2 so I tried to reinstall grub from it but it didn't change anything.  If I run grub2-install or grub2-install /dev/sdathe installation finishes without problem but it still doesn't change anything.  I think that grub is loading its configuration from another file but I can't manage to find it.  Any guesses?


$(\mathbb{Z}\times\mathbb{Z} \times\mathbb{Z} )/ \langle(3,3,3)\rangle$ is isomorphic to what?

The solution told me it is isomorphic to $\mathbb{Z}_3\times \mathbb{Z} \times \mathbb{Z}$, but why couldn't we argue that $(1,0,0), (0,1,0)$ and $(0,0,1)$ all generates infinite groups, so it is isomorphic to $\mathbb{Z}\times\mathbb{Z} \times\mathbb{Z}$?


How do you send command line apps directly to the background?

I already know that pressing ctrl+z stops the app, then I can send the app to background with the bg command, but that means there is a brief preiod of time that the app is stopped.  How do I send the app directly to the background without stopping it?


Getting dwa 123 Dlink wireless usb adapter working

I compiled the source code and inserted the USB device, according to this blogs instruction:    When I do a lsmod:  lsmod | grep rt rt5370sta              726167  0    However iwconfig gives:  lo        no wireless extensions. eth0      no wireless extensions.   Could someone please tell me what to do so that I can get the USB adapter running fine.


I get the following error:     Strict warning: Only variables should be passed by reference in include() (line 18 of /home/sites/dev/theparce/sites/all/themes/parce/block--block--3.tpl.php).   This is the block code which is causing that error.  if ($user_gallery) {   print render(node_show($user_gallery));  // Line 18   print drupal_render ($user_gallery_edit);  } else {   print drupal_render($user_gallery_new); }   Why do I get that error, even if I get all printed as expected?


No settings appearing in the Properties Editor

I have the object selected in Object Mode but the Properties Editor is not showing me any settings/options in order to allow me to add textures, modifiers, materials, etc. It's as if nothing is selected yet the object is selected. Switching back and forth between Object and Edit mode makes no difference. Cycles Render is selected. I'm running version 2.79b. I'm thinking its got to be something simple that I'm just overlooking but for the life of me I can't figure out what the problem is.


How to uncover a table column wise in Latex beamer

I have a table with 7 columns and want to show the first 5 at once, and then  the 6th and 7th on consecutive slides.  This is the code I have for now:  \begin{frame}{Наслов}     \begin{itemize}         \item Ставка.     \end{itemize}         \begin{tabular}{ccccc<{\onslide<2->}c<{\onslide}c}             $p_1$ & $p_2$ & $\ldots$ & $p_{9}$ & $p_{10}$ & $W$  & $D$\\             $1$   & $1$   & $\ldots$ & $1$      & $1$     & $w_1$& $d_1$\\             $1$   & $1$   & $\ldots$ & $1$      & $0$     & $w_2$& $d_2$\\             $1$   & $1$   & $\ldots$ & $0$      & $1$     & $w_3$& $d_3$\\             $1$   & $1$   & $\ldots$ & $0$      & $0$     & $w_4$& $d_4$\\             $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$\\             $0$   & $0$   & $\ldots$ & $0$      & $1$     & $w_{1023}$& $d_{1023}$\\             $1$   & $1$   & $\ldots$ & $0$      & $0$     & $w_{1024}$& $d_{1024}$         \end{tabular} \end{frame}   This produces 2 slides: the first one with p1, p2, ..., p9, p10 and D columns, and the second with W added, while I want them to appear in the following order:   1st slide: p1, p2, ..., p9, p10  2nd slide: p1, p2, ..., p9, p10, W 3rd slide: p1, p2, ..., p9, p10, W, D   I looked in the manual and found this example:  \begin{frame}     \begin{tabular}{l!{\vrule}c<{\onslide<2->}c<{\onslide<3->}c<{\onslide<4->}c<{\onslide}c}     Class & A & B & C & D \\     217     X & 1 & 2 & 3 & 4 \\     Y & 3 & 4 & 5 & 6 \\     Z & 5 & 6 & 7 & 8     \end{tabular} \end{frame}   which does what is supposed to. However, I don't seem to be able to apply its logic to my problem. :( Is anyone willing to help?   P.S. What are the meanings of < and ! in columns specification?


Definition of Polynomial with infinitely many variables

I've read  and curious about polynomial with infinitely many variables. Where I can find the definition of polynomial with infinitely many variables? I have to write this definition in my final assignment, thanks for your help.


How to find this integral from Gaussian integral?

How to find $$\int_0^\infty e^{-ax^2-\frac{b}{x^2}}dx$$ using gaussian integral?  I tried complete the square: $$-ax^2-\frac{b}{x^2}=-\left(\sqrt{a}x+\frac{\sqrt{b}}{x}\right)^2+2\sqrt{ab}$$, but what next?  I tried integration by parts $u=e^{-ax^2-\frac{b}{x^2}}, dv=dx$, but what next?


Is it possible to let Search engines like Google to ignore some particular content on one single page?

I have a HTML like this:
This is something I want Google to crawl.

However, I don't want Google to crawl this
  Is it possible to do it on one page?


HTML code to stop pages from opening in new tab

I have the following code in an HTML file along with the jquery file. When I run this HTML file and then test it to see if every clickable link is forced to be opened in the same tab, it doesn't make any difference and continues to open links in new tabs. I'm not especially opening anything in a new tab by holding down Ctrl.   I'm trying it on links by default and a simply mouse click still opens it in a new tab.    <html>     <head>         <style type="text/css">         body {width:780; height:580;}         </style>     <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js">     </script>     <script>     $(document).ready(function(){     $('a[target="_blank"]').removeAttr('target');         });     </script>     </head>      <body>         <iframe src= "https://www.bing.com/" width="100%" height="100%" frameborder="0" id="MyFrame">         </iframe>     </body>     </html>


I am trying to convince my friend that the integral of $0$ is $C$, where $C$ is an arbitrary constant. He can't seem to grasp this concept. Can you guys help me out here? He keeps saying it is $0$.


A quick way to find $n$ such that $(n \times p) \mod q = 0$

There are integers $p$ and $q$ s.t. $0 \leq q \leq p$ and $p >1$. I want to a quick way to find the smallest positive $n$ s.t. $(n \times p) \mod q = 0 $, and in addition to that, I need to find the next smallest n, and so on, indefinitely. Is there a quick way to do this without checking $n = 1,2,3,\ldots$ sequentially?


Does my ESTA show on their system when going through border control?

I'm planning to go from the UK to the States. I was wondering how the ESTA works. Is it all online, meaning when arriving in New York, will they see that I have been approved on the system when they scan my passport? Thus letting me in.


Login screen is reappearing, what to do?

I am using Dell inspiron 3558, after opening the laptop, when I put password in the login screen the same screen appears after two or three seconds. Please tell me what should I do.


Wine: How can I make Wine applications look like Windows 8?

I just installed Wine and I realized the applications look terrible. I wanted the look and feel of Windows 8 on my Wine applications, how can I go about doing this? Thanks!


Using the Residue Theorem to Prove that $\int^{2\pi}_{0} \frac{1}{(a+\cos\theta)^{2}} d \theta=\frac{2\pi a}{(a^{2}-1)^{3/{2}}}.$

How do you evaluate the following integral? Here we take $a>1$.  $$\int^{2\pi}_{0} \frac{1}{(a+\cos\theta)^{2}} d \theta=\frac{2\pi a}{(a^{2}-1)^{\frac{3}{2}}}.$$  I know I have to use the Residue Theorem, however, I am stuck on which contour to use, and also how to find the pole of the function. Any hints are greatly appreciated.


I have an EBS volume that is 800GB and I am using only 5GB of this. I want to shrink it but AWS doesn't support this, after a bit of a research, I have found that I can mount both volumes and rsync the content of the bigger one to the new one. This should work considering I have a data volume. While in my case, this is a root volume (mounted at "/"). So rsync didn't work.   I have tried to mount both volumes to a different EC2 instance (so I can avoid having the big volume mounted "/") but I couldn't mount it.   root@****:~# lsblk NAME    MAJ:MIN RM    SIZE RO TYPE MOUNTPOINT xvda    202:0    0      8G  0 disk ├─xvda1 202:1    0 1007.5K  0 part └─xvda2 202:2    0      8G  0 part / xvdf    202:80   0     10G  0 disk xvdg    202:96   0    800G  0 disk ├─xvdg1 202:97   0 1007.5K  0 part └─xvdg2 202:98   0    200G  0 part root@****:~# sudo file -s /dev/xvdf /dev/xvdf: Linux rev 1.0 ext4 filesystem data, UUID=ad182c34-1f1f-440b-af0b-3aa94ae57f71 (extents) (large files) (huge files) root@****:~# sudo file -s /dev/xvdg /dev/xvdg: DOS/MBR boot sector, extended partition table (last) root@****:~# mkdir new old root@****:~# mount /dev/xvdf new root@****:~# mount /dev/xvdg old mount: wrong fs type, bad option, bad superblock on /dev/xvdg,        missing codepage or helper program, or other error         In some cases useful info is found in syslog - try        dmesg | tail or so.   Is there a way I can mirror everything in the big partition to the small one including file system and DOS/MBR boot sector?


My Vista 64 installation has drive C, a 150 GB hard drive.  I also has a 1.5 TB drive D.  My C drive has 12.3 GB free.  I don't know what's using up all the space.  There's almost 83 GB unaccounted for!!!  As per  question and  question, I downloaded  and .  WinDirStat, once I found the right options, tells me there's 82.9 GB of .  SpaceMonger, which has a particularly nice display of the data, tells me there's 82.3 GB "Unscanned", with 2 unscannable folders.  Where do I turn now?  Both tools roughly agree there's a large amount of data on my drive, but neither seem to be able to tell me what.  I've tried the standard approach; disk cleanup, remove hibernation file, set the virtual memory to the D drive instead of the C drive.


Sorcerer/Wizard multiclass learned spells

My friend is playing a wizard/sorcerer (in a campaign I'm not in) and he's claiming this (irect quote from discord):  you can learn any spell by either finding a scroll or copying it from another wizard you can be a level 2 wiz, 8 sorc and learn level 5 wizards spells  However, from what I'm reading...  You determine what spells you know and can prepare for each class individually, as if you were a single classed member of that class. (PHB 164)  and then also,  When you find a wizard spell of 1st level or higher, you can add it to your spellbook if it is of a level for which you have spell slots... (PHB 114)  It doesn't mention how the spellbook works with multiclassing specifically, but based on these rules wouldn't a 2 wiz / 8 sorc only be able to copy level one spells into their spellbook?


pop up Processing algorithm window from python console

Is there a method for just opening a processing algorithm without running it?  I mean, with:  import processing processing.runalg("qgis:countpointsinpolygon")   I have to add all the parameters required for the algorithm, and it throws an error.  What if I just want to open the dialog window of that algorithm?


If I have an x64 capable CPU, but install a x86 Ubuntu distribution, can I still run 64bit executables?

Also, would it be possible to install a x64 kernel, to transform it to a full 64bit installation?


Automatically verify passwords for classroom exercise?

I'm trying to write a bash script which, among several other things, will "log in" as a user (preferably with su if possible) without needing to interact with the password prompt, i.e., will automatically input the password.  I only need it to perform one command and then the session can end.  This is for an "automatic checker" for an introductory Linux class I'm teaching.  The students have an exercise where they create usernames with specific passwords on their Raspberry Pis (running Raspbian), and I want this script to automatically verify the passwords are correct.  The students run the "automatic checker" on their Pis and I verify the output, so they have a chance to fix any errors before turning in.  Since this is for a classroom exercise with dummy passwords, the security of these passwords is completely irrelevant.  I know there are already a few questions about automatic logins, but none of them work for me.  The closest I've come to a solution is getting the su command to say a terminal is required.  Using "expect" will not work because it will require installing packages on the students' Pis.  If there are other ways to verify the passwords are correct then I'm open to those.  I don't think I can do a hashed password comparison due to the salt.


Looking for organisations promoting standard notation in mathematics

Sometimes, I would like—in order to be as coherent and comprehensible as possible in the notation I use—to follow recommendations from some international working group, committee,  or organisation devoted to develop and promote standard mathematical language, similar to  IUPAC for chemistry or  IUPAP for physics.  Do you know if such thing exists for mathematics?


Hard SciFi book in which worm robots do maintenance and self assemble

In this book there is a female engineer who uses 3 types of robots to do a lot of the maintenance. The type that interests me is "worm". These robots could join together into a longer links for cooperation for a specific task.


Dual boot ubuntu win7 install error hibernation

I am attempting to install ubuntu on my ssd which currently holds my Win7 OS partition. I shrunk the Win7 partition and made a new 25GB partition for Ubuntu. I burned an .iso image of Ubuntu onto a freshly formatted usb drive and booted from this drive. When I launch a live session of ubuntu or attempt to install I get the typical purple loading screen. When I press esc at this screen I can read the following error messages:  Windows is hibernated, refused to mount. Failed to mount '/dev/sdb3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount operation. mount: mounting /dev/sdb23 on /cdrom failed: No such device [ ] Buffer I/O error on dev sdd, logical block ######  This is repeated a bunch of times for different serial ports until it ends and I have to restart the machine. One thing I notice now after writing this up is that it seems to be attempting to mount to /cdrom which doesn't seem right. Maybe this is part of the problem? I cannot find any options for fast boot in BIOS or in Windows power settings. I am running all this on an MSI motherboard if that makes any difference Anyone more experienced think they can provide help? Edit - one thing I am noticing on each reboot is that the Windows boot manager is prompting me if I want to load win7 or a diagnostic tool before I even get my bios option. I have to cancel out of the Windows boot manager to be prompted for bios. Is there a way to disable this somehow? Edit2 - So just to follow up. I have since tried all of the solutions in the linked thread by karel (though that seems to be for mounting a windows system in Ubuntu rather than launching live or installing from bios) which included  powercfg.exe /h off   and shutdown /s /t 0.   I am still facing the same error problems. I am considering switching the usb drive I am using though I have a feeling that won't do much good. One thing I am beginning to suspect is that I have additional drives in my system which had previously hosted Windows operating systems in old setups I owned which I now use as separate data drives. I never went through a process of wiping these drives so I'm thinking maybe they have their own hiberfil.sys files which are obstructing the ubuntu image. I will begin investigating how to address these drives. I'm hoping I don't have to wipe them all because they are storing important files. Should I pose this question to Ask Ubuntu through a new thread and close this one out?


Proving that $f(x) = g(x)$ for some $x \in [a,b]$ if $f,g$ continuous, $f(a)  g(b)$

Suppose $f$ and $g$ are continuous on $[a,b]$ and that $f(a) < g(a)$ but $f(b) > g(b)$.   Prove that $f(x) = g(x)$ for some $x \in [a,b]$.     I did try and actually did get as far as coming up with $f-g$. Would I set $h(x)= f(x)- g(x)$ and say $h(a) <x< h(b)$?


How to select an element whose id is dynamic and keeps changing

There is a type and search drodown which will appear after user type in the value. I need to click on the dropdown which contains the name of the drop down field.   The problem here is that there is no unique attribute present (No unique class, no unique name) & the id keeps on changing after every login so cannot take id also.


This prompt makes terminals wrap mid screen why?

I've the following PS1 prompt:  export PS1="\e[1m\e[38;5;198m\u\e[0m @ \e[1m\e[38;5;208m\h\e[0m : \e[1m\w\e[0m\e[38;5;226m\$(parse_git_branch)\e[0m \e[1m>>>\e[0m "   what happens is that when typing and it reaches halfway through the terminal, it will send the cursor at the beginning of the line and overwrite itself like:  rossid @ HOST : /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents >>>  oussid @ HOST : /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents >>>  this is just a test to show what happens nothing seri    (the rest of the string serious replaces the beginning)  Any idea why? (I'm using osx standard terminal and IntelliJ terminal... all do the same)


Using the * variable in a shell script to to refer to all files in a folder

I was just writing a bash script to execute and I tried to cp some files from within the script; eg  cp "myfolder/*.*" "otherfolder"  and it complained that "myfolder/." could not be found. Then I tried this to be more specific  cp "myfolder/*.ini" "otherfolder"  still complaining.  then I tried   cp "myfolder/${*}.ini" "otherfolder"  still complaining; all this did was put the command line arguments in this place with .ini suffix.  cp "myfolder/{*}.ini" "otherfolder"  Still no success. So just ended putting in the full file names for each file and it worked. But is there a way to use the asterisk in a bash file to refer to all files in the directory?  Or can anybody see what I'm doing wrong?  Thanks.


How to stop update for Mencoder & mplayer in my system (14.04)?

I have 14.04 installed but I have problem with mencoder & mplayer which always want to update to version from 2012 But I compiled mencoder & mplayer from sources so I get newest version.  How exclude mencoder & mplayer from updating ??


How to create an embossed/low relief texture?

I would like to create realistic skin/organs by applying slight low-relief or embossed effect to a mesh surface as in this example, maybe from a grayscale image as reference (Note: the surface has a 3d texture and not just a standard flat image mapped over it.) Thanks for any Inputs!


Can two-hand weapons be dual-wielded by something with four arms?

I was considering playing a Summoner in my next Pathfinder campaign, and I decided that I wanted my Eidolon to be a a four-armed giant (the character being a Gnome with a height complex).  Well, I thought to myself: If it has four arms, then shouldn't it be able to wield two two-handed weapons?  As far as I can tell, it should work. That said, how would that work, exactly? I would assume that it would work like usual two-weapon wielding as far as feats and the like, and it would gain all the bonuses from two-weapon wielding as well. However, as this isn't exactly something that happens often, and thus there are no rules for it (that I can find) I can't be sure of any of this. Does anyone know of anything that could help me with this?


force:inputfield does not render in lightning component

I am facing an issue in lightning where force:inputfield is not rendering at all.  Here is the code:      <aura:component implements="force:appHostable,force:lightningQuickActionWithoutHeader,force:hasRecordId" >         <aura:attribute name="newBPTask" type="Cost_Authorization__c"              default="{ 'sobjectType': 'Cost_Authorization__c',                              'Name': '',                              'Pending_Approval_Amount__c' : 0                              }"/>       <!-- Input Form using components -->       <div class="container">         <form>                 <force:outputField value="{!v.newBPTask.Pending_Approval_Amount__c}"/>                 <force:inputField aura:id="RequestBudget"  value="{!v.newBPTask.Pending_Approval_Amount__c}" required="true"/>         </form>       </div><!-- ./container-->     </aura:component>   I am sure I am doing a silly mistake but could not find. Could anyone look into this and suggest?


Wildcards for filepaths aren't working in grep

I need to grep words like these:  ABC-DEF AB2-DEF AB3-DEF AB-DEF   So I was trying:  grep AB*-DEF grep -w -AB*-DEF grep -w AB*DEF   But neither of them are working.


How can I create a Chatter File via Apex?

From the Chatter tab I can go to 'Files' and then upload a file without attaching it to anything.   I am wanting to know if there is a way to achieve the exact same thing via Apex?


Alt-Tab shows two application switchers on Unity

I started to have problems with my Ubuntu application switcher (Alt +  Tab) this morning. When I press Alt +  Tab, not only one, but two application switchers show up. Last night I customized some stuff using the Unity Tweak Tool. I thought I didn't touch the application switcher. So now it looks like this:


I am trying to build a 18w amplifier based on  however my  doesn't have a center tap on the secondary winding  Is it possible to use this power transformer for this project?  I also tried it using a solid state rectifier (the one with 4 pins: - AC AC +) connecting the ac to the transformer the (-) to ground and the (+) to the standby switch (please see the schema), although I could measure the correct voltage on the (+), there was no current going on the grids of the tubes, not even on the filtering capacitors.  or maybe the problem is somewhere else in the circuit? appreciate your help


How to convert xml data of xml element to csv using xslt?

I have XML which contains other XML as data in one of element. I need to convert XML element data to CSV using XSLT.  This is my XML:  <?xml version="1.0" encoding="ISO-8859-1"?>  <products>    <details>       <?xml version="1.0" encoding="ISO-8859-1"?>        <catalog>         <cd>         <title>Empire Burlesque</title>         <artist>Bob Dylan</artist>         <country>USA</country>         <company>Columbia</company>         <price>10.90</price>         <year>1985</year>        </cd>         <cd>         <title>Hide your heart</title>         <artist>Bonnie Tyler</artist>         <country>UK</country>         <company>CBS Records</company>         <price>9.90</price>         <year>1988</year>       </cd>       <cd>         <title>Greatest Hits</title>         <artist>Dolly Parton</artist>         <country>USA</country>         <company>RCA</company>         <price>9.90</price>         <year>1982</year>         </cd>     </catalog>     </details> </products>   In this I need to convert data of <details> to CSV.


I have a situation like this:     What I need to do is to connect each point to every line that is at most, let's say 200 m, away from the point. In other words, I need to draw a perpendicular line from each point to every line that is in the buffer.  Is there a way to do this in PyQGIS?


Where is the Layers panel in Blender 2.8?

I am starting working on Blender 2.8, but I can't find the layer panel. Where is it?


Are repository lists secure? Is there an HTTPS version?

Are repository updates secure?  As a bear of little brain from the developer side, I cannot understand why the repository list is http://security.ubuntu.com and the other http(unsecured) sites listed in /etc/apt/sources.list.  Without a certificate chain match this appears as "ask any responder for a list of packages to update" instead of "ask the ubuntu.com site..."  Can any network choose to spoof the update sites, and is this a common practice to provide a locally cached and vetted copy?


I have a directory :  ../Music with a lot of music files in a lot of subdirectories.  How would i move all the files in the subdirectories to another directory ? Thus, i only want to move the files, i don't want to keep the subdirectory structure.


Cannot boot from Ubuntu Live CD on preinstalled Windows 8 laptop

I bought a Sony Vaio with Windows 8 yesterday.   I want to install Ubuntu, (latest version), alongside Windows. There is an assist button on the laptop to enter the boot option menu, (otherwise, Windows 8 is booted by default.   Whenever I choose the, 'boot from CD' option, it says 'No operating system found'. CD is valid since I tried it on another computer and it worked fine. I have tried both versions, 12.04 and 12.10.  What is the problem, or how should I install Ubuntu on my laptop?


One of my database server running mysql/debian is out of memory. I added a swap file but as far as I know it's not used by the system.  I can confirm that the swap is enabled when I execute the free -h command:               total       used       free     shared    buffers     cached Mem:          497M       489M       7.5M         0B       432K       285M -/+ buffers/cache:       203M       293M Swap:         1.5G       2.7M       1.5G   When I look at the memory usage I can see that my system is out of ram but the swap is untouched.  MemTotal:         508944 kB MemFree:            6300 kB Cached:           292064 kB SwapCached:           32 kB SwapTotal:       1535996 kB SwapFree:        1533240 kB   I tried to increase the swappiness from 60 to 100 but it didn't change anything.  I'm out of ideas, am I missing something?


Scan multiple pages using WIA automation

I'm playing around with WIA Automation and I`m struggling to scan more than page at a time. Can anyone give me some hints on how to achieve this? Below is a sample of code I use to scan a document/image:  public static byte[] ScanImage(int colourType, string formatId, int dpi)     {       _dialog = new CommonDialogClass();       _scanner = _dialog.ShowSelectDevice(WIA.WiaDeviceType.ScannerDeviceType, false, false);         foreach (Property item in _scanner.Items[1].Properties)   {     switch (item.PropertyID)     {       case 6146: //4 is Black-white,gray is 2, colour 1            SetProperty(item, colourType);         break;       case 6147: //dots per inch/horizontal             SetProperty(item, dpi);         break;       case 6148: //dots per inch/vertical                   SetProperty(item, dpi);         break;       case 6149: //x point where to start scan            SetProperty(item, 0);         break;       case 6150: //y-point where to start scan           SetProperty(item, 0);         break;       case 6151: //horizontal extent                 SetProperty(item, (int)(8.5 * 100));         break;       case 6152: //vertical extent                      SetProperty(item, 11 * 100);         break;     }   }    try   {     TempPath = System.IO.Path.GetTempPath() + "temp" + DateTime.Now.Ticks;      ScannedImage = (ImageFile)_scanner.Items[1].Transfer(formatId);     //System.IO.File.Delete(TempPath);     ScannedImage.SaveFile(TempPath);      //Convert image to binary     Vector vector = ScannedImage.FileData;     byte[] imgBin = (byte[])vector.get_BinaryData();     ScannedImageBinary = (byte[])vector.get_BinaryData();      //ImageFromFile = Image.FromFile(TempPath);   }   catch (Exception ex)   { }    return ScannedImageBinary; }


How to prepare a 2x2 Confusion matrix for binary classifier

Problem statement: Evaluate a binary classifier. There are 50 positive outcomes in the test data, and 100 observations. Using a 50% threshold, the classifier predicts 40 positive outcomes, of which 10 are incorrect. Calculate classifier’s Precision and Recall on the test sample? My tried solution: I have calculated Precision as : P = TP / TP + FP => P = 40 / 40 + 10 => P = 0.8 And, same Recall. But, I am not sure its correct as F1 score options are not matching with mine. So, I need to build a correct 2x2 Confusion matrix.


$\DeclareMathOperator{\tr}{trace}$ I am reading the  on the trace operator. The section titled Coordinate-Free Definition defines the trace as follows.  Let $V$ be a finite dimensional vector space over a field $F$ and define a bilinear map $f:V\times V^*\to F$ as $f(v, \omega)=\omega(v)$ for all $(v, \omega)\in V\times V^*$. This maps induces a unique linear map $\tr:V\otimes V^*\to F$. Since $\text{End}(V)$ has a canonical isomorphism with $V\otimes V^*$, we have now a notion of trace of a linear operator on $V$.  The Question: The second paragraph of the section in the article says that  This also clarifies why $\tr(AB)=\tr(BA)$.  I can't see how $\tr(AB)=\tr(BA)$ follows from this definition at all. Can somebody give me a hint?


I've probably read it somewhere in Sakurai but I cannot recall it at the moment. So how does one really measure the proton's spin? I mean the proton's spin and not its constituents.   Do you measure it using a Stern-Gerlach type of setup?  How about atoms and other stuff, how is their spin measured?


hyperoperation sequence with non-integer values of n

This probably has a very simple answer of some sort, but I'm not a mathematician. For the hyperoperation sequence: $$G(n,a,b)$$ ...there are obvious defined values for positive integer values of $n$ $$G(1,a,b)=a+b$$ $$G(2,a,b)=a \cdot b$$ $$G(3,a,b)=a^b$$  My question is, how to account for non-integer values of $n$, such as: $$G(2.5,a,b)=???$$


What is $\int_{c}^{\infty}\Phi(a+bx) \phi( x ) dx$ for $c\in\mathbb{R}$

It is straightforward to show $$\int_{-\infty}^{\infty}\Phi(a+bx) \phi( x ) dx = \Phi\left(\frac{a}{\sqrt{1+b^2}}\right)$$ but what value does $$\int_{c}^{\infty}\Phi(a+bx) \phi( x ) dx$$ have for $c<\infty$, e.g., for $c=0$? Even a good approximation would really help me!


What should I do if I lost money in a scam?

I live in New Jersey and my son wanted to order some toys from this guy who said he makes them in his house and he could give him the best deal, but before he could send these toys he needed my 16 year old son to put $200 into his bank account. The guy then gave my son his wells Fargo bank account info and told him as soon he deposits the money he will ship his toys. Well, that never happened.  My son called the guy up and he told my son, “I’m only the middle guy, and my boss is in Nigeria and you need to put another $200 in my account because now I have to ship the toys from elsewhere.” So my son deposited another 200 dollars into this guys bank account.  My son has sent these jerks a total of $650. Is there anything I can do to these individuals? At this point even if I don’t get the money back it’s okay but I don’t want this happening to other kids and I want to teach these guys a lesson that you’re not above the law. The guy is still calling my son up saying that he is pissed off that he didn’t get more money.  What can I do now?


The PDG  lists the  as an observable particle (measurements).  Is this an accepted fact? All other information says it is just hypothetical i.e. Wiki etc.  see


When you click the add a comment button when you don't have enough rep, you get a pop-up saying that you need more rep in able to comment. Except, it is too far away and users might be confused for a while before realizing the pop-up is on the other side of the page:     Clearly, that is very inconvenient for a lot of people, like me. Can we move the pop-up to be right next to the add a comment button?


I face the following     Here all  are appears below one by one. Actually I want, the last five are appears in the RHS of the first five. That is , how to align equally in the middle for a good look?  For this, I typed    \begin{enumerate}   \item $f:\Bbb R \to \Bbb R, x \mapsto \ln x$    \item $f:\Bbb R \to \Bbb R, x \mapsto [x]$   \item $f:\Bbb R \to \Bbb R, x \mapsto \frac{1}{x}$   \item $f:\Bbb R \to \Bbb R, x \mapsto \tan x$    \item $f:\Bbb R \to \Bbb R, x \mapsto \sqrt{x}$   \item $f:\Bbb N \to \Bbb Z, x \mapsto 5$   \item $f:\Bbb R \to \Bbb R, x \mapsto e^x$   \item $f:\Bbb N \to \Bbb N, x \mapsto 2^x$   \item $f:\Bbb R \to \Bbb R, x \mapsto \sin x$   \item $f:\Bbb R \to \Bbb R, x \mapsto x^2$   \end{enumerate}   Any help?