I have configured and built the source code for Ardour 5.4 successfully, and have been able to run it from the terminal after exported LD_LIBRARY_PATH to ~/.bashrc (for me, the path was /usr/local/lib/ardour5, if that helps anybody out there) and adding ARDOUR_DATA_PATH (usr/local/share/ardour5), ARDOUR_CONFIG_PATH (usr/local/etc/ardour5), and ARDOUR_DLL_PATH (usr/local/lib/ardour5) to /etc/environment.  However, I want to be able to run the program from the Ubuntu Dash, and building Ardour did not create a desktop file. I found a file called "ardour.desktop.in" in the gtk2_folder of Ardour's directory tree after building it, and copied and pasted its contents as a new text file called "ardour.desktop" in /usr/share/applications. Here is the contents:  [Desktop Entry] Version=1.0 Name=Ardour Comment=Ardour Digital Audio Workstation Exec=/usr/local/lib/ardour5/ardour-5.4.0 Icon=/var/lib/app-info/icons/ubuntu-yakkety-universe/64x64/ardour_ardour.png Terminal=false MimeType=application/x-ardour; Type=Application Categories=AudioVideo;Audio;AudioEditing;X-Recorders;X-Multitrack;X-Jack;   I then set executable permissions using "chmod 755 ardour.desktop" and tried to run it, but nothing happened. I tried running the desktop file from the terminal and got these results:  ./ardour.desktop: line 1: [Desktop: command not found ./ardour.desktop: line 4: Digital: command not found ./ardour.desktop: line 10: Audio: command not found ./ardour.desktop: line 10: AudioEditing: command not found ./ardour.desktop: line 10: X-Recorders: command not found ./ardour.desktop: line 10: X-Multitrack: command not found ./ardour.desktop: line 10: X-Jack: command not found   I've finally resorted to asking for help here, as I am completely stumped. Any help would be much appreciated. Thank you for reading this.

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.   If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.   If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.  That's my question, how can I run a foo.desktop file from the terminal?


This is from Discrete Mathematics and its Applications    Shouldn't the if in that definition be an if and only if? Say we know that $n^2$ is in O($n^2$). Then from one side of the if and only if, we know that there are constants c and $n_0$, in this case 1 and 0, such that  $n^2$ <= 1* $n^2$  for all n>= 0?  But if we know that there are c and $n_0$, in this case 1 and 0, such that  $n^2$ <= 1* $n^2$  for all n>= 0, can't we say that $n^2$ is in O($n^2$) from the other side of the if and if only if?  The book does use if and only if. Here is an example of it   Would it be more appropriate for the big oh definition to include if and only if as well?

There are some scenarios about which I would like to get some confirmation:   when defining a concept A,      We call A, if ... [definition of   concept A]   Does "if" here mean equivalence instead of just sufficiency? Is it incorrect to replace "if" with "if and only if"?    For precisely what condition is    B satisfied?   Does "precisely" mean asking for necessary and sufficient condition for B? Some other ways to say "if and only if" / "necessary and sufficient"?   Some references that summarize some standard terminologies in Mathematics  such as this one?  Thanks and regards!


I was seeing  by Eddie woo on circular seating's, in it , he discusses the following question:  Find the number of ways to arrange 5 boys and 5 girls in a circular seating  At 0:40, he places the first person and then keeps the rest and hence total ways to do it is $ 1 \cdot 9!$ , however I can't precisely frame why we only have one way to keep the first person. So, I'm looking for the understanding on why he said the first step like this... (he laters say it is related to the fact we can rotate the circle but I didn't get that either)

Well if one looks at the formula of circular permutations $Pc = (n-1)!$  But as we come to that formula, I need a concrete example and an explanation.  Another thing, I have seen that when working with a bracelet, the formula changes. A concrete example please along with an explanation  Finally how the formula is worked when there are repeated elements that are permuted.  Thank you


If there are 2 independent event A and B, we find the probability of their intersection as product of their respective probability. Though I know how it is deduced but I don't seem to find proper intuition behind it. I don't expect any derivation. Kindly someone help.

What is some intuitive insight regarding the conditional probability definition: $P(A\mid B) = \large \frac{P(A \cap B)}{P(B)}$ ? I am looking for an intuitive motivation. My textbook merely gives a definition, but no true development of that definition. Hopefully that's not too much to ask.


is used to calculate phase velocity of light in medium, other than vacuum. Recently I had a  claiming that light is slower due to magnetic field of atoms.  I have carefully read the question and answers about the reasons . I have also been searching the interned on this matter before.  But my question is not why it slows, but why the refraction indexes have the values they have.  If you were unable to perform any measurement, but knew the atom properties (and material density which is apparently relevant), would you be able to calculate that index?

I'm a high school teacher trying to teach my students (15year olds) about refraction. I've seen a lot of good analogies to explain why the light changes direction, like the marching band analogy, that the light "choose" the fastest way etcetc, and for most of my students these are satisfying ways to explain the phenomenon. Some students, however, are able to understand a more precise and physically correct answer, but I can't seem to find a good explanation of why the lightwaves actually changes direction.   So what I'm looking for is an actual explanation, without analogies, of how an increase/decrease in the speed of a lightwave cause it to change direction.   Thanks a lot


Is there a way to put a reminder of the current chapter/section/subsection at the top of each page under the header?  Something like the following:    but less awkward/ugly/distracting.  :)  Ideas  Perhaps this can be done in a "start of new page" hook.  Does such a thing exist?  I tried using the  package as suggested in , but that didn't work (see ).  Motivation  I often find myself lost in long, complicated technical reference documents.  After a period of mind-numbing reading, I have no idea where in the forest I am because all I see are trees.  Printing the current chapter/section/subsection names at the top of each page would help me remember the context.

I wish to put  with hyperlinks into the header of each page. Clicking on each part, chapter, section will take you to the beginning of that part/chapter/section.  I'm already using hyperref to link the ToC.


I am told during the Gaussian Process class that the following notations are equivalent as convention: \begin{align*} \mathbf{y}|\mathbf{f} &\sim \mathcal{N}(\mathbf{f}, {\sigma_n}^2\mathbf{I}) \\  p(\mathbf{y}|\mathbf{f}) &= \mathcal{N}(\mathbf{f}, {\sigma_n}^2\mathbf{I}) \end{align*}  How does it relate to the typical definition of pdf of a Gaussian distribution:     Normal Probability Density Function   $$F(x) = \frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}$$

So I'm reading notes on Gaussian Processses, and came across  syntax $p(\mathbf{y} \mid \text{stuff}) = N(\mathbf{y} \mid \mathbf{0}, \mathbf{K})$ for multivariate normal distribution, and I'm not exactly sure how to decipher it the $\mathbf{y} | $ bit. I suppose it doesn't mean "mean $\mathbf{y}$ is conditional on zero vector", because I don't think that makes sense. Assuming this is standard notation for something and I'm just unfamiliar with it, what it means? E.g. how it differs from $N(\mathbf{0}, \mathbf{K})$?


When installing from the cd it gives the option to try ubuntu or install.  But when I select install the screen goes blank.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


HFS  WWDC 2012 Session 709, ￼What’s New in the File System, presented by Deric Horn included the following observation: .  In the iOS Developer Library,  contains references to HFS.   Do iPhones use HFS Plus?  Journaled or not journaled?  I'd like an authoritative reference. Thanks.     Types of HFS Plus  iOS and iPhone aside for a moment … Apple's  lists four HFS filesystem types for creation purposes:   HFS+ HFS+J (JHFS+) HFSX JHFS+X     Postscript  Beyond  … as Apple sometimes distinguishes between JHFS+X (journaled, case sensitive) and HFSX, so:    extra kudos to anyone who can verify     … I do have fileXray, but I don't foresee myself making an ssh connection to my first generation iPhone ;-)

I can't find this information documented anywhere.  What filesystems do iOS devices use?  Did Apple stick with HFS+?  Is it different between devices and iOS versions?


I'm using Ubuntu Server over SSH, and I see $ instead of the name of the user (let's say test@desktop, for example).  How can I make the terminal display test@desktop instead of $?

After installing docker (I definitely think this is about docker) I got changed cmd-label. For instance, it was like username@root8hgf858$: your_command to [:/home/username] $.   How can I fix it? I've checked current theme in the system settings - it's ok.  screenshot:    [:/home/imran] $ grep PS1 .bashrc /etc/bash.bashrc /etc/skel/.bashrc /etc/bash.bashrc:[ -z "$PS1" ] && return /etc/bash.bashrc:PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' /etc/skel/.bashrc:    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' /etc/skel/.bashrc:    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' /etc/skel/.bashrc:    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"


I'd like to buy a WQHD monitor which would serve as an external monitor for my laptop. I have HP DV6 series laptop:  and i as far i can tell monitor would need to be connected with at least HDMI 1.3 cable to be able to run at 2560x1440 resolution. My only concern is if my laptop supports all versions of HDMI.   Is there any way to check if my laptop can run with external monitor at 2560x1440 without actually buy it first?  Thanks for your help in advance

I am looking for a new laptop, and it will be connected to an external monitor the majority of the time, presumably via HDMI.  The monitor has native 1920x1080 resolution.  I'm not really concerned with the resolution of the screen on the laptop, so I'm mostly looking at machines with lower resolution (typically 1366x768) due to cost.   My old laptop was like this, and it was able to output at 1920x1080 (1080p), but is there a way to know that other machines will as well?  Is this a function of the graphics card or chipset?  My old machine had the normal, low-end onboard "Mobile Intel HD graphics", so does this mean that any machine with that will output at 1080p?


Find the number of functions $f: \{1,2,3,\dots,1999\}\to\{2000,2001,2002,2003\}$ satisfying the condition that $f(1)+f(2)+f(3)+\dots+f(1999)$ is odd.    Upon first thought my try was that for any function $2000p+2001q+2002r+2003s$ is odd where $p, q, r, s$ are natural numbers  which also satisfy $p+q+r+s=1999$ and hence $q, s$ must be odd. Using generating functions I found the answer but then the thought stuck me that I am asked to find the number of functions possible. So I would like to know how would one do such questions using the mapping technique or any other combinatorial method.

Problems:Determine the number of functions $$f: \{1,2,3....,1999\}\to \{2000,2001,2002,2003\}$$ satisfying the condition that $f(1)+f(2)+...f(1999)$ is odd.   My Attempt: Each integer in domain has $4$ choices and therefore the total number of functions is $f$ is $4^{1999}.$ Since there are an equal number of functions that yield odd or even result, we can directly write that the number of functions satisfying the above condition to be $2*4^{1998}.$ I am unsure about this last claim and would like to prove it (if it is true.)Also is the answer to this problem correct?  Edit $1$: I tried to proceed further in the following manner:   For a given mapping $f$ let the number of integers assigned to $2000,2001,2002$ amd $2003$ be $p,q,r$ and $s$ respectively, where $p,q,r,s\in \mathbb{Z}^+$. Therefore the sum in question can be written as $f(1)+f(2)+...+f(1999)=2000p+2001q+2002r+2003s.$ Clearly the sum will be odd iff $q+s$  is odd. Also note that $p+q+r+s=1999\Rightarrow p+r$ is even. On the other hand if we let $q+s$ as even then $p+r$ must be even. Now the number of values of $p,q,r$ and $s$ for which the above two lemmas hold is the same and therefore if we let $f$ to be the function which maps elements form $\{1,2,3,...,1999\}$ to $\{2000,2001,2002,2003\}$ such that $q+s$ is even and $g$ to be the function  hich maps elements form $\{1,2,3,...,1999\}$ to $\{2000,2001,2002,2003\}$ such that $p+q$ is even we will get a bijection.(Maybe!)


I wanted to know what's a .desktop file and how can I generate one in order to have a Wine application displayed on my Launcher bar on the left. Now I have to open the folder where I store the executable and open it with Wine, and that's too slow.  I have done some research and I saw some questions related to this already answered (). They say we can generate it, but I don't understand how  Thank you very much in advance! I am a novice to Linux, and I am using 12.04.

Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs.  For some programs I use, I have to make custom launchers or .desktop files.  For instance, daily blender builds are generally just folders with an executable.  In basic Gnome or KDE, I can make a new menu entry with the menu editing system. Then, I can also add it to Docky either from the menu or by dragging a .desktop file to it. Unity launcher doesn't support drag and drop, so thats not a bug or anything, but when I open a .desktop file, it has unpredictable results. Most time it will not have "keep in launcher". Sometime it will have a pinnable item without the .desktop's icon, and if I pin the item to the launcher, it will not call upon the program again after closing it. I've also gotten it to just work with a .desktop file for celtx.


I have one of those round mechanical knob thermostats (line voltage). I would like to replace it with a wireless thermostat which is controllable from an Android phone. It seems those thermostats are based on 24v voltage.  What are my options to be able to use a wireless thermostat?

I currently have two line voltage ceiling radiant heating systems in my condo each with their own DPST thermostat. I'd like to use low voltage thermostats such as the nest. I found , but it only has 3 wires. Will this work with a system designed to use DPST thermostats? If not, is there something else out there that will allow me to use low voltage thermostats with line voltage heaters?


Searching for a word that matches an existing tag should, I believe, redirect you to the tag page for that tag, instead of a regular search result.  This is happening inconsistently...  For example, a search for the word "search" doesn't redirect to the tag page:              But a search for "support" does redirect to the tag page:              I tested this on a few sites with a number of tags and can reproduce on at least three sites (I couldn't on one). It also seems to be more inconsistent on some sites than others.  Why do only some tags redirect to the tag page?

I searched for "stack overflow" in the search bar, but it doesn't list the results normally. Instead, it redirects me to the tag .  Why is this happening, and how can I search for posts literally containing "stack overflow"?


Using the Texture Coordinate node with From Instancer checked, I can assign particle's color based on the emitter's texture.  NOTE: I am aware of previous questions that address a generally similar issue, such as this , for instance. However, none of the answers in these questions address my problem. They are all related to inheriting color from a texture. I want to inherit the surface color from Blender shaders, when using multiple materials on the emitter.  However, I can't seem to find a way to assign the particle color if I am only using simple shaders with no textures. Let me show you an example of what I am trying to achieve. Let's say I have a plane that looks like this:  This plane uses two simple emission shaders, one for each half.  If I create a hair particle system, this is what I get:  By default, the particle system is using the Path option in the Render panel, and it seems to give me the option to use only one of the available material slots.  What I want to do is to swith the Render As setting to Object and create a material for the particle that inherits the surface color of the face from which the particle was emitted. So, if I have something that looks like:  ...I would like the cones on the red side to be red and the cones on the green side to be green. I can of course achieve this result by creating two different particle systems that use different materials and then control where these particles appear using vertex groups. However, I would like to see if there is a way to achieve what I want using just one particle system and the material assigned to the particle object. Any ideas?

Is it possible to change a particle's color to the color of the face/texture part it comes out of in cycles?  I want it to be the color of the face after shading and all that other stuff


I am reading a textbook on differential forms and there is a question of the form: given a $k$-form, $\omega$, on say $\mathbb{R^3}$, find $\mu$ such that $d\mu=\omega$. For example, if $\omega= (x_{1}^2 +x_{2}^2)dx_1 \wedge dx_2$, what is $\mu$?  I am looking for a systematic method to solve these types of questions.  Thanks

Let $\omega := dx \wedge dy$ denote the standard area form on $\mathbb{R}^2$. As the question title suggests, does there exist a $1$-form $\alpha$ with $d\alpha = \omega$?


I had three Lexar Micron flip-drives and one Cruzer Glide on my desk when I spilled some Coca Cola and about the bottom one-quarter of each flash drive was immersed in the cola. All of the Lexars were folded up and the Cruzer Glide was retracted when this happened. I Immediately removed them from the cola and dried them off on the outside with paper towels. What is the chance that the drives are damaged, and how can I safely test them?  EDIT: I've read other threads about liquid damage to flash drives but this question is about the specific brands and models I have, in case there's something specific about them that makes a difference.

So a few months ago I accidentally spilled a little water on a few of my usb flash drives. I really want to test and see if they work, but before I do, I just want to make sure that there's no risk of damaging my computer. I'm pretty sure it's fine, but I just got a new laptop and would hate to ruin it over something stupid.


I'm having a problem using multiple cellphones as cameras into the app IP Webcam. I use them with the USB Tethering since it has best image and latency quality, so after plugging them into the computer and enabling the USB tethering I need to put the Gateway IP that android creates in the USB tethering and here it starts the problem: Every android when tethering uses the same Gateway IP (192.168.42.129) and there is no way I can change it natively, so when I try to connect any other cellphone it will use the same Gateway IP. What I need to do is find a way to change the IP of one of my cellphones (one is rooted and the other one it's not rooted) so I can use both cellphones as webcams. I've already tried using DroidCamX that can connect without tethering or via LAN yet it's latency and quality is much inferior to the IP Webcam. As well I found  yet I need to be agile to set up the cameras (open Android SDK and do all the right commands) and I can't waste computer processing with the Android SDK running. If you think there is any other solution to my problem let me know. As a disclaimer I want to warn you that I'm pretty new to android coding, I have no idea how to edit android source code and implement it, even wich tools to use. So if you could just point me out any manual or tutorial or even show me how to do it I would love to learn it. Thank you, guys!

IP address is 192.168.43.1 by default and there is no option to change it permanently. Is it possible to change it without root access?  My phone is Huawei Android 5.1.


I'm angry, and I can't properly express myself in English as I would like to defend myself, so this is going to be a short message:  Due to a bad decision of a moderator who suspended my account in superuser and  also I THINK THAT (I'm not sure) he deleted what a friend has published in his account, I have decided to delete all the answers that I've published during my years in StackOverflow, and not only the answers, also the questions, in both StackOverflow and SuperUser, and then delete my account. Yes, like a revenge for the treatment that I've received from stackexchange staff members.  I don't want to still be a part of this site, that's what matters for me.  What I should do to delete all the answers where I helped people? and all the questions that I asked? and then my account?.  I sent a message to the support, waiting for a response.  PS: I'm not going to change my decision, I want to delete my account and everything I've contributed here,  This is an angry decission, but I thought about it and is what I want, everyone has a limit and that moderator reached my limit, all that happened in superuser these days reached my limits of comprehension, starting by the reputation problems caused by the WRONG current privilege design.   A user can't add a comment on the answers that he receives on his OWN BOUNTY, and the same user can't give the bounty reward after his account is suspended (great for that helper user who can't receive my reward... ridiculously), All this is ridiculous and I've tried to explain it in superuser meta, but also I need to fight and be ridiculed by that moderator who suspended my account?, This is the end for my account.

How can I delete my Stack Exchange account(s)? Also,  What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account?   For more information, see "" in the .


I had a theory that casting from long to int with a value greater than int.MaxValue or less than int.MinValue would result in an exception. The issue I had at the time was identifying which type of exception was going to be thrown. I naturally assumed it would be an OverflowException or an InvalidCastException, but imagine my surprise when the following snippet didn't explode at all! int x = 0; long y = int.MaxValue; y += 3;  try {     x = (int)y; } catch (Exception e) {     Console.WriteLine(e.GetType()); }  This instead resulted in a value equal to int.MinValue + 2: x:            -2147483646 int.MinValue: -2147483648  So my curiosity has the best of me at this point, and I've done a fair amount of digging to learn that I can cause an exception to be thrown (thanks to ) by utilizing the checked keyword (emphasis mine):  Overflow checking can be enabled by compiler options, environment configuration, or use of the checked keyword. The following examples ... Both examples raise an overflow exception.  Meaning, if I simply utilize the checked keyword, an OverflowException will be thrown (and it is): try {     x = checked((int)y); } catch (Exception e) {     Console.WriteLine(e.GetType()); }  After reading , I've learned that the default behavior is to allow the overflow to occur:  By default, these non-constant expressions are not checked for overflow at run time either, and they do not raise overflow exceptions. The previous example displays -2,147,483,639 as the sum of two positive integers.   TL/DR: Why is the default behavior in C# to allow overflow to occur? Doesn't this lead to unexpected behaviors? Note: I understand that the bit flips and that's what causes it to go negative; I'm just curious as to why it's allowed to flip instead of throwing an exception by default. In a nutshell, why do we have to explicitly state we want things to explode?

In several modern programming languages (including C++, Java, and C#), the language allows  to occur at runtime without raising any kind of error condition.  For example, consider this (contrived) C# method, which does not account for the possibility of overflow/underflow.  (For brevity, the method also doesn't handle the case where the specified list is a null reference.)    //Returns the sum of the values in the specified list. private static int sumList(List<int> list) {     int sum = 0;     foreach (int listItem in list)     {         sum += listItem;     }     return sum; }   If this method is called as follows:  List<int> list = new List<int>(); list.Add(2000000000); list.Add(2000000000); int sum = sumList(list);   An overflow will occur in the sumList() method (because the int type in C# is a 32-bit signed integer, and the sum of the values in the list exceeds the value of the maximum 32-bit signed integer). The sum variable will have a value of -294967296 (not a value of 4000000000); this most likely is not what the (hypothetical) developer of the sumList method intended.  Obviously, there are various techniques that can be used by developers to avoid the possibility of integer overflow, such as using a type like Java's , or the  keyword and  compiler switch in C#.  However, the question that I'm interested in is why these languages were designed to by default allow integer overflows to happen in the first place, instead of, for example, raising an exception when an operation is performed at runtime that would result in an overflow.  It seems like such behavior would help avoid bugs in cases where a developer neglects to account for the possibility of overflow when writing code that performs an arithmetic operation that could result in overflow.  (These languages could have included something like an "unchecked" keyword that could designate a block where integer overflow is permitted to occur without an exception being raised, in those cases where that behavior is explicitly intended by the developer; C# actually .)  Does the answer simply boil down to performance -- the language designers didn't want their respective languages to default to having "slow" arithmetic integer operations where the runtime would need to do extra work to check whether an overflow occurred, on every applicable arithmetic operation -- and this performance consideration outweighed the value of avoiding "silent" failures in the case that an inadvertent overflow occurs?  Are there other reasons for this language design decision as well, other than performance considerations?


Is a way to quickly set refresh rate instead of right-click on Desktop  Screen Resolution -> Advanced Settings -> Monitor   and in center Monitor Settings screen refresh rate with dropdown  Or just only to show Advanced Settings with Monitor tab  And is it possible to do it in .bat?

I am using Microsoft's Live Mesh program to remotely access a PC running Windows 7, running on 2 screens: one with 1920x1080 and the other 1920x1200 resolution.  I am accessing them via an old laptop with 1024x1078 resolution. The result is such tiny icons/commands that it is difficult to try and change the screen resolution from 2 high-res displays to the single low res display.  It would be great if there was a command line way of doing this. Or perhaps there is way through live mesh to do it. Any ideas?


I want to use chicago manual style, which does not seem to be available for natbib, so I want to use biblatex instead.  Since I have in-text citations, I followed the previous answers and tried this:  \usepackage[natbib=true]{biblatex} \bibliography{dotbibfile}  \printbibliography   But my in-text citations won't show up, they show up as keys, like lupu2017legacy  What should I fix to make in-cite citations show up?

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I am writing a math textbook, and hope to have a separate solutions manual.  I'd like for the manual to be able to refer to problems in the original book so that LaTeX, or I, can catch when the exercise numbers change since I am always revising them.  Also I may wish to skip some in the solutions manual.  It occurs to me that another solution would be to have one big, happy document but "turn off" the table of contents generation after the main text and then restart the page numbering for the manual.  Perhaps someone has a better solution than either of these.  Thanks in advance.

I want to cross-reference between different .tex files, just because I want to put every chapters separately.  Let's say in file chapterI.tex I have \label{a} and I want to access this in file chapterII.tex using something like \ref{a}. How to do this exactly in LaTeX, moreover if LEd have an easy feature to cover this, it will be better (I have put those both files in the same project).  I found another question with similar title, but I just didn't really understand. It's here: .


Just wondering how I can produce a south-east double arrow like this:    Ok great there is a reverse lookup for latex symbols .. my new favourite link. thank you !  but i still think this is a valid question. good way to find the next important link.  also this:

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I purchased a Arteriors' Geoffrey chandelier. Unfortunately, when I got it home I realized that the chain and wire are not long enough to hang from our 14' ceiling.  I called an electrician to install it and he told me I would have to have the fixture's wiring completely replaced before they would install. Is there a reason why I cannot purchase additional wire and chain and extend?  The printing on the wire: (UL) E309953 SPT-2 2x1.31mm (16AWG) 105oC 300V VW-1 FT2 TOONG YEAN HSF  There is also a ground wire separate from this that runs to the fixture.

My ceilings are over 20 feet tall so I want to avoid renting scaffolding to replace the chandelier at the junction box.


What exactly does apt do for us? More specifically what does it mean when someone says it manages package dependencies? Does this mean that if I am installing PackageA but PackageA requires PackageA1,PackageA2,PackageA3, and PackageA4. Then apt will download these for me?   Also does apt look for errors when downloading a package using the checksum??  I fail to see how this is a duplicate, so if someone can explain why that'd be great. The linked 'duplicate question' asks specifically about apt-get update/upgrade however there is far more to apt then just apt-get update such as apt-get install/remove/purge or apt-cache ...

I am wondering what sudo apt-get update does?  What does it update?


I have installed wordpress on LAMP.  As I am new one to Ubuntu. So, I Used this online tutorial    But when I am trying to give ownership of the directory to the apache user it's not working I am giving the following commands   sudo chown admin:www-data /var/www -R  sudo chmod g+w /var/www -R   "admin" is the name which I choose for my wordpress database user. Can anyone please guide me through this?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.


If $p \mid m^p + n^p$, and $p$ is a prime greater than $2$, prove $$p \mid \frac{m^p + n^p}{m+n}.$$  No clue how to start. Clearly $p \mid m + n$, but then what. I feel very less information is given. Yet primes are full of surprises.  Thanks in advance.

Prove that for a prime $p>2$, if $p \mid m^p+n^p$, prove $p^2\mid m^p+n^p$  From Fermats theorem I concluded $p \mid m+n$, so $p^2\mid (m+n)^p$. How do I proceed next? Any hints are welcomed.


I've found it in a book and assume it's got to be correct, but I cannot understand why the Past Perfect of I had been offered. Would was offered not have been clearer?  I explained that when I was in high school I had been offered a job teaching tennis at a local country club because I had been one of the best junior tennis players in the area

I noticed that my American friends tend to use the past perfect form when they use the verb mention in its past form, almost despite of the context of the sentence. I hear them say  "you had mentioned" a lot more often even in situations where the use of simple past would have been perfectly fine. Have you noticed it too and is it one of those unwritten rules, or is there a more formal explanation to it?  It seems like there was more verbs like that, but I am having a hard time remembering it now. If I do, I will edit the post and likely change the title to accommodate other verbs.


My lines are too long. I want to break them. How should I do this? this is how I am doing it now   \tikzset{block/.style={draw,fill=blue!60,minimum width=1.1 em, minimum height= 1em, rounded corners= 4pt}} %\centering \begin{figure}[h] \fcolorbox{blue}{white}{ %\centering \begin{tikzpicture}[remember picture] \draw[help lines](-2,-1)grid(4,2); % shows background  \coordinate  (origin) at (0,0); \coordinate  (text1) at (1,1);  \node at (origin) {*}; \node at (text1) {\mytikzmark{block5}{\textcolor{blue}{function}} \mytikzmark{block6}{[x,y,z]} = \mytikzmark{block7}{\textcolor{red}{funName}}( \mytikzmark{block9}{\textcolor{green}{in1},\textcolor{green}{in2})}};  \node at (-1.5, 0) (block2) {\textcolor{blue}{Must have the reserved word function}}; \draw[blue,->] (block2) -- (block5); \node at (0, -1) (block3) {If more than one output, must be in brackets}; \draw[black,->] (block3) -- (block6);  \node at (3, -0.5) (block4) {\textcolor{red}{Function name should match MATLAB file name}};     \draw[red,->] (block4) -- (block7);  \node at (3.5, 1.5) (block8) {\textcolor{green}{Inputs must be specified}};     \draw[green,->] (block8) -- (block9);     \end{tikzpicture} } \end{figure}   this is what I'm trying to get

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).  Is there a way to make lines break automatically at some specified width?  And can I control the alignment of the text (left, right, centered, justified)?  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document}


A while ago   with . They are indeed exactly the same thing.  However, somebody has also proposed to make  a synonym of :   not only is this proposal disputable: web start is the deployment mechanism whereas jnlp is an xml file that holds the configuration required for the deployment - so even though the 2 concepts are closely related, they can't really be called synonyms but it also prevents anybody to suggest the webstart/java-web-start synonym: "synonym java-web-start already proposed on the tag jnlp"   The situation could go on forever (it has already been a few months). Is there anything that could be done about this?

There are two Java Web Start tags:  : x 239 : x 320   Both tags refer to the same technology  refers to  both wiki point to  all questions tagged with  clearly relate to Java Web Start   I suggest they be merged into  (which appears in the auto-complete list if one types "webstart" in the Tags box when asking a new question).


As an undergraduate student, I worked along with my professor and his PHd student on one of the projects that comes under his thesis. We shared the work equally and now I'm being offered 2nd authorship. Does it add value to my resume or will the evaluvators assume my contributions were less.

I am a post graduate engineering student(Computer Science). I have only one conference (not very good) publication in my name as a first author.  One of my seniors labmate, worked on a very good research project a few months ago and wrote a paper. I have been approached by him to generate a few more results for his paper and proof reading and extending his paper with literature survey and elaborative explaination of results. I have been offered co-authorship(2nd author) for this paper. Now, though I can dedicate some time to do that work, but is accepting 2nd authorship worth.   I would like to ask in general as well, that is it worth to put effort in papers and get 2nd authorship given that the paper is not related to my primary area of research or rather work and dedicate time on one's own research and get papers as a first author ?  Note: I have seen that in academia (where I want to go), usually advertisements call for applications from people having at least X no of papers as first author.


While a window of the File manager is opened, on clicking the files icon, in Unity, should open the minimised screen. But Files application opens another new Window. This is reaally annoying as I end up 2 or 3 Windows while I was trying to open a minimised Window.  I checked Preferences but I got no clue.  I am using Ubuntu 14.04 Files Version : 3.10.1

When I click on "files" in the launcher it opens another window although the normal action is to maximize the window already open. It doesn't always do that. Is it a bug?


I've spent to much time in the DOS world where cd.. (no space) works.  I tried to do the same in ubuntu by defining a bash file in /usr/local /bin called "cl.."  its body is   #!/bin/bash cd ..   I have chmod +x on the file.  It doesn't work, ubuntu doesn't complain about command not found.  what did I do wrong?

I want to executed command from file (which is script) in current shell in terminal.  Example: I have file ch_dir contains following:  #!/bin/bash cd /usr   Now if I execute file usually as following then it executes commands in different shell:  pandya@pandya-desktop:~$ ./ch_dir pandya@pandya-desktop:~$   Here cd /user is executed in different shell.  But I want to execute in Current shell. How do I do that?  Note: Here cd is only used to explain. Question's aim is to execute any command in current shell


As suggested in the title I'm trying to prove $|G|=3$ given that $|\text{Aut}(G)|=2.$  First I thought that: for an automorphism, we have no choice for the identity element because the identity must go to the identity and for the other non-identity elements there are exactly $2$ permutations. So if $|G|=n$ then $(n-1)!=2\implies n=3$.   But I realized that the orders of elements are being preserved by automorphisms.  So any permutation is not allowed for considering the automorphisms.  Please help me to get the idea of the problem. Thank you.

Which groups $G$ have precisely two automorphisms, i.e., precisely one non-trivial automorphism?  Examples: $G= C_3, \mathbf{Z},\ldots$.  I think $G$ has to be abelian. In fact, we have $ \vert G\vert \geq 3$. Therefore, if $G$ is not abelian, we have at least two non-trivial inner automorphisms.  If we can show that $G$ is cyclic the above examples are all of them.


I am having a list box, and its item template is having one check box.  Now, when I click on the check box in the listbox, it sets the checked status of the check box. If I use keyboard "Space" key, I cannot change the checkbox state.   Note: Keyboard is shortcut is working once I set focus to the check box by clicking it.

I have a listbox where the items contain checkboxes:  <ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox">     <ListBox.ItemTemplate>         <DataTemplate>             <CheckBox Click="Checkbox_Click" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" Content="{Binding Path=DisplayText}" />         </DataTemplate>     </ListBox.ItemTemplate> </ListBox>   The problem I'm having is that when I click on the checkbox or its content, the parent ListBoxItem does not get selected.  If I click on the white space next to the checkbox, the ListBoxItem does get selected.  The behavior that I'm trying to get is to be able to select one or many items in the list and use the spacebar to toggle the checkboxes on and off.  Some more info:  private void Checkbox_Click(object sender, RoutedEventArgs e) {     CheckBox chkBox = e.OriginalSource as CheckBox; }   In the code above when I click on a checkbox, e.Handled is false and chkBox.Parent is null.  Kent's answer put me down the right path, here's what I ended up with:  <ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox" PreviewKeyDown="ListBox_PreviewKeyDown">     <ListBox.ItemTemplate>         <DataTemplate>             <StackPanel Orientation="Horizontal">                 <CheckBox IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" />                 <TextBlock Text="{Binding DisplayText}"/>             </StackPanel>         </DataTemplate>     </ListBox.ItemTemplate> </ListBox>   I had to use PreviewKeyDown because by default when you hit the spacebar in a list box, it deselects everything except for the most recently selected item.


Assume I'm logged in with user takpar:  takpar@skyspace:/$   As root, I've added takpar as a member of group webdev using:  # usermod -a -G webdev takpar   But it seems it has not been applied, because for example I can't get into a webdev's directory that has read permission for group:  400169 drwxr-x--- 3 webdev webdev 4.0K 2011-08-15 22:34 public_html  takpar@skyspace:/home/webdev/$ cd public_html/ bash: cd: public_html/: Permission denied   But after a reboot I have access as I expect. As this kind of group changing is in my routine, is there any way to apply changes without needing a reboot?  Answer It seems there is no way to make the current session know the new group, for example the file manager won't work with new changes. But a re-login will do the job. The su command is also appropriate for temp commands in urrent session.

I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives:  -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile   I then added a user to that group ("/etc/group" has user1:x:1000:user2 line), but am failing to edit that file as user2. Why is this so?


I just tried to post a question to Meta and received:     Oops! Your question couldn't be   submitted because:         must include one of these tags -- bug feature-request discussion support      Why are these tags required? What are the proper usages for each one? I wasn't able to find any documentation about these tags? Should this be in ?

Meta Stack Exchange seems to have different rules and user behavior than the "regular" Stack Exchange sites.  How is it different?    Individual questions answered below:                Related


I've read a bunch of different semi-helpful blog posts about cooking and materials in Breath of the Wild, but most of them gloss over the details about what monster parts actually do, and just say to combine "monster parts" with critters.  But I know from some experimentation that monster parts are not created equally. Besides having different rarity and value, some monster parts seemed to make potions fail completely (dubious food), and others seem to do things like increase the value or duration of the potion.  Does anybody have a comprehensive list of the specific effects for monster parts when brewing potions?  It's pretty tedious to test stuff like market value because you have to first brew/cook the thing, then go into the slow merchant UI to see the price. But so far I've learned:   mixing different buffs does not seem possible; get regular or dubious food when attempting this some monster parts and insects don't seem to work in combination using multiple buff ingredients sometimes improves the buff (like medium stealth instead of low stealth), but sometimes has no additional effect at all (even using 4 identical buff ingredients) some combinations result in powerful buffs even if you only have a single buff ingredient. So doubling up ingredients isn't always necessary, sometimes has no effect, but often does improve the quality of the potion. some monster parts in combination seem to increase duration (duplicate parts and mixed parts) some monster parts (lizalfos horn I think) seem to improve value of potion.. meaning if you use same buff ingredient with two different monster parts, you will get same duration and quality, but one will have much higher market value. this may be increased by doubling up monster parts. selling cooked food and potions seems to net much more rupees than selling the raw ingredients - and is a great way to make tons of cash (farm the forest for a while, hunt some stuff, and profit) there may be some element of randomness for the outcome.. sometimes seems like same combination nets more or less hearts, more or less duration, etc., but haven't definitively proven this yet

I know you need to mix critters and monster parts to make elixirs, and that changing the critter changes the elixir. Does it matter which monster part you use, though? Is there any benefit to using more than one per elixir?  I've experimented a bit, and it doesn't seem to matter, but I've only tried the items I have a lot of. There are also no indications in the item descriptions that it makes any difference. I've googled a bit about elixirs, but I haven't found anything that explicitly says one way or the other.


I have a 67GB .csv file (I know... I know...)  I need to remove the 4,125,878th line from the file as it is corrupt.  My CSV parsing tools won't ignore or skip it.  I could use sed to do something like  sed '4125878d' in.csv > out.csv  But that would be an hugely expensive operation in terms of time and disk space.  If I use sed -i '4125878d' in.csv, the operation takes ages.  Is there a way I can quickly remove a line from the middle of a huge file?

A related question is .  I often have to edit a large file by removing a few lines from the middle of it. I know which lines I wish to remove and I typically do the following:  sed "linenum1,linenum2 d" input.txt > input.temp   or in-line by adding the -i option. Since I know the line numbers, is there a command to avoid stream-editing and just remove the particular lines? input.txt can be as large as 50 GB.


Just like the title says, what is the difference between the /bin directory and the /usr/bin and what are they for?

I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin.  What are the differences between these? If I'm writing my own scripts, where should I add them?    Related:


Can somebody help me trought teamviewer? I have ubuntu mate 20.04

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


Sneaky I know - but out of sheer curiosity - can someone leave the US on the passport they entered with their visa-waiver (before 90 days), reapply immediately with their other (esta eligible) country passport, and re-enter with a new 90 days?  Or will everything be linked electronically and you get called out at the border?  Thanks!

I am a British citizen visiting the USA in early August for a two week vacation with friends. After the holiday I'm returning to my home in the UK for three weeks. After that I will return to the USA and will be working for my British employer under the Visa Waiver Program for a period of 80-85 days.  I have read already that there is technically no problems with this under ESTA rules, but should I limit this working period to a shorter time frame (e.g. 70 or so days) so that it does not negatively affect the decision made by the POE officer? Ideally I would love to be over in the states for the near-full 85 day period.  Any advice or previous experiences anyone can offer?  Some clarifications: As confirmed by the immigration attorney, as I am employed by my UK employer, it will be regarded as a business trip, the important part being that I will be working officially as a consultant for my UK employer just overseas for the allotted 85 or so days


I am building a machine learning model for a binary classification task in Python/ Jupyter Notebook. I am currently in the "Exploratory data analysis" phase and try to create multiple plots/ graphs for my data set. My data set consists of 20 columns (19 features and 1 labeled target). Each row in my data set represents a person. There are many categorical/ nominal features in my data set and only few numerical/ continuous ones. Unfortunately I cannot upload the real data set, so I will create a dummy one.     personID age car TARGET_happiness     1 27 ford 0   2 41 tesla 1   3 55 bmw 0   4 34 tesla 1   5 62 ford 1   6 38 ford 1   7 51 bmw 0   8 46 tesla 1   9 72 bmw 0   10 59 tesla 0   11 48 ford 0   12 51 bmw 1     My aim is to create a plot/ graph to visualize the relationship between the binary variable TARGET_happiness (meaning "is the person happy?") and the categorical variable car (meaning "which car does this person own"). The plot I've used for binary TARGET_happiness vs. continuous age is a box plot, see:  This seems fine. Now I also try to use a box plot for binary TARGET_happiness vs. categorical car:  I'm not sure if this plot is useful / appropriate. Sure, you can see that Tesla owners seem to be happier than BMW owners. But the box for Ford owners looks strange. Which type of plot/ graph can I use to better visualize the relationship between binary and categorical data?

What is an appropriate graph to illustrate the relationship between two ordinal variables?  A few options I can think of:   Scatter plot with added random jitter to stop points hiding each other. Apparently a standard graphic - Minitab calls this an "individual values plot". In my opinion it may be misleading as it visually encourages a kind of linear interpolation between ordinal levels, as if the data were from an interval scale. Scatter plot adapted so that size (area) of point represents frequency of that combination of levels, rather than drawing one point for each sampling unit. I have occasionally seen such plots in practice. They can be hard to read, but the points lie on a regularly-spaced lattice which somewhat overcomes the criticism of the jittered scatter plot that it visually "intervalises" the data. Particularly if one of the variables is treated as dependent, a box plot grouped by the levels of the independent variable. Likely to look terrible if the number of levels of the dependent variable is not sufficiently high (very "flat" with missing whiskers or even worse collapsed quartiles which makes visual identification of median impossible), but at least draws attention to median and quartiles which are relevant descriptive statistics for an ordinal variable. Table of values or blank grid of cells with heat map to indicate frequency. Visually different but conceptually similar to the scatter plot with point area showing frequency.   Are there other ideas, or thoughts on which plots are preferable? Are there any fields of research in which certain ordinal-vs-ordinal plots are regarded as standard? (I seem to recall frequency heatmap being widespread in genomics but suspect that is more often for nominal-vs-nominal.) Suggestions for a good standard reference would also be very welcome, I am guessing something from Agresti.  If anyone wants to illustrate with a plot, R code for bogus sample data follows.  "How important is exercise to you?" 1 = not at all important, 2 = somewhat unimportant, 3 = neither important nor unimportant, 4 = somewhat important, 5 = very important.  "How regularly do you take a run of 10 minutes or longer?" 1 = never, 2 = less than once per fortnight, 3 = once every one or two weeks, 4 = two or three times per week, 5 = four or more times per week.  If it  would be natural to treat "often" as a dependent variable and "importance" as an independent variable, if a plot distinguishes between the two.  importance <- rep(1:5, times = c(30, 42, 75, 93, 60)) often <- c(rep(1:5, times = c(15, 07, 04, 03, 01)), #n=30, importance 1            rep(1:5, times = c(10, 14, 12, 03, 03)), #n=42, importance 2            rep(1:5, times = c(12, 23, 20, 13, 07)), #n=75, importance 3            rep(1:5, times = c(16, 14, 20, 30, 13)), #n=93, importance 4            rep(1:5, times = c(12, 06, 11, 17, 14))) #n=60, importance 5 running.df <- data.frame(importance, often) cor.test(often, importance, method = "kendall") #positive concordance plot(running.df) #currently useless   A related question for continuous variables I found helpful, maybe a useful starting point:


I'm trying to add a program path /usr/bin/xscreensaver-demo, to file so my screensaver will start at boot. But I can't save it. I don't have the permission to change it and save it. I have tried this in both Brackets and gedit.  /etc/rc.local:  # By default this script does nothing /usr/bin/xscreensaver-demo exit 0   I thought of using a sudo command in the terminal but I don't know what command to execute to edit that file with superuser privilege and save it.

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor.  I'm pretty sure I'm a root user, but how do I make sure? If I am a root user, how do I fix this?


I am from Pakistan. I am planning to apply for a UK tourist visa with my wife and 6-year-old child. I am a businessman and the main applicant. My wife is a housewife. My visit will be for 15 days in London.  I want to ask for some information. I have GBP 4,000 for this visit. Is this enough for 15 days? How do I distribute it in my three visa forms? How to fill these fields on all three forms?   What is the cost to you personally of your trip in GBP(£)? The total amount of money you have for this trip?   Please help me with this matter.

We are sponsoring a family to visit us in UK as friends from Madagascar for two weeks. They have a 6 year old and a 16 month old.   Do the kids need their own visas, and are they the standard visitor visa or a special child visa?   Also, when I try and apply on the website I can only apply for one person so how do I apply for all the individuals in the family?   I have looked on the Immigration website and can't find the answers I need.


I will be traveling from Sharjah, how much saffron is permissible to carry in the main luggage?

I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer?  What all I can take?   One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport.  Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff?


Let $G, G'$ be graphs.  If $G' \subseteq G$ and $G'$ contains all the edges $xy \in E$ with $x,y \in V'$, then $G'$ is an induced subgraph of $G$. We say that $V'$ induces or spans $G'$ in $G$, and write $G'=:G[V']$. Thus if $U \subseteq V$ is any set of vertices, then $G[U]$ denotes the graph on $U$ whose edges are precisely the edges of $G$ with both ends in $U$.   Can I say that the term "induced" brings some sort of equivalence meaning? So that, if some equivalence holds, I can use smaller structures for my convenience.  In other words, does the graph $G'$ preserve some sort of structure or properties belonging to graph $G$?

I have the following paragraph in my notes:     If $G=(V,E)$ is a general graph . Let $U\subseteq V$ and let $F$ be a subset of $E$ such that the vertices of each edge in $F$ are in $U$ ,   then $H=(U,F)$ is also a general graph and $H$ is a subgraph of $G$ .        If $F$ consists of all edges of $G$ which have endpoints in $U$ ,then $H$ is called induced subgraph of $G$ and is denoted by $G_U. $     From here both the definition of a subgraph and a induced subgraph seem same to me.. I can't understand what is the difference between them... Please help with this..


I am unsure whether the sentence would make grammatical sense as has or have had. Is this sentence fragment considered singular or plural? Is stressing a gerund that makes it singular? Because innovative studies is plural, so I assumed that this sentence was plural and I needed the use of have had.

I'm wondering which of the following is correct:     Guns are an invention that have had an enormous impact on African history.    or     Guns are an invention that has had an enormous impact on African history.   These sentences aren't actually being used in my report, but I decided to create them to save you from the grammatical horror of my actual run-on sentences.  Anyway, I know "have" is used for plural subjects and "has" is used for singular subjects (wrong term, I'm sure), but I'm unsure as to whether the subject is the plural "guns" or the singular "invention." Microsoft Word is suggesting the latter sentence. Is that correct?


I'm getting very poor focus particularly at the long end of an 80-320mm tele lens that I am using with my Pentax K10D. The lens was originally bought for my 35mm Pentax SLR (maybe an MZ5 or something, I don't remember, and it's at teh back of a cupboard these days), and worked very well with the film camera. Theoretically the lens is compatible with the K10D, though obviously the different sensor sizes mean that it's not a direct 80-320mm equivalent. The problem has been present since I first bought the camera about 15(?) years ago, but I encountered it a couple of nights ago again and the frustration led me to post this question in case there is a solution. The photo below shows the issue.  The image was shot at the '320mm' end of the tele lens and the settings are shown below.  The image is absolutely pin sharp in the veiw finder, but as you can see the resulting photo is blurred. Not only that, but the 'in-focus' beep and dot are on when the image appears to be in focus. A while after gettng the camera I swapped the focus plate for a 'Katz Eye Optics' split prism partly to see if this led to any improvement and partly because I always loved this type of focus on my dad's old Pentax film cameras. Sadly it made no difference so it seems that the problem was not that the image was out of focus in the VF. I've read about the AF issues on the K10D, but this is when manually focussing and also when ignoring the 'in-focus' beep (I tried ignoring the beep years ago when I first saw the issue - long before I read about the K10D AF issue). I haven't seen the problem with the 28-80mm lens supplied with the K10D, but I have assumed that that is because it has a max focal length of 80mm and the problem only seems to manifest at the long end of the tele lens. Is this problem likely to be lens incompatability, an issue that is only noticeable when shooting subjects like this at a distance, or something inherantly wrong in the body (like the AF / back focus issue)? Edit: I forgot to mention that I also had a Circular Polarizer fitted for this shot as the moon was very very bright that night, but the same blur occurs without when shooting other subjects.

I took this photo of the blood moon this morning and I am finding many of my photos, especially landscape photos, have a significant lack of clarity. I'm not looking for a photo critique because I know this particular photo is crap. I'm looking to identify my source of failure to nail a significantly clear photo.     Setup  Canon EOS 70D with a 100-300 telephoto lens (I'm sorry I don't know the exact model. It's from Canon but not one of their professional quality lenses.)   Aperture: f/5.6 Shutter: 1 sec. ISO: 1000 Focal Length: 300mm Metering mode: Spot White Balance: I manually set the WB to 5500 kelvin, it looked fine in live view. Focus Mode: Manual Drive: 2 sec timer delay   Mounted on a decently stable tripod  Process  I turn on live view, and square up the target in the display. I then set my focal length, focus in using live view, adjust the focus as sharp as possible and take the pic. I've noticed that in this case, the picture was incredibly grainy, which doesn't translate to the final photo, but wonder if it has anything to do with it.  This particular shoot I found it difficult to balance out the variables with a dark sky and a moving moon that starts blurring after 1-2 seconds of exposure, which is why I had the aperture wide open and the ISO cranked up.  I can't tell where I'm failing:  Equipment:  The 70d takes great photos but the telephoto is not great when it's totally zoomed in. My wallet doesn't hold enough cash for a motorized mount to track objects in the sky.  Circumstance: I've seen great photos of the moon with the use of a camera and a tripod, so I know this is possible. Although, I keep seeing pictures of this big gorgeous moon over the landscape, and when I use my wide-angle, the moon shows up as a dot. What the hell are people doing to get the moon so big?  Beginner skill level: I know this is the biggest culprit, but being the beginner, I'm unable to know where to adjust.


Proof that if $z = 1$, then $|z-w| = |1- \overline{w}z|$, $\forall w \in$ $\mathbb{C}$  My attempt below:  $(z-w)\overline{(z-w)} = |z-w|^2$ $(z-w)\overline{(z-w)} = (z-w)(\overline{z}-\overline{w}) = |z|^2 -z\overline{w} -\overline{z\overline{w}} +|w|^2 = |z|^2 - 2Re(z\overline{w}) + |\overline{w}|^2*1 = 1 - 2Re(z\overline{w}) + |\overline{w}|^2*|z|^2 = 1 - 2Re(z\overline{w}) + |\overline{w}z|^2 = 1 - 2Re(\overline{w}z) + |\overline{w}z|^2$  $|z-w|^2 = 1 - 2Re(\overline{w}z) + |\overline{w}z|^2$  I was trying identfiy a remarkable product, but I didn't have success. Someone can help me with this question?

Let $z, w$ be distinct complex numbers. Show that if $|z| = 1$ or $|w| = 1$, then $$\frac{|z − w|}{|1 − z^*w|} = 1$$ [Hint: Note that $|a|^2 = aa^*$.]  Hey guys, couldn't get my thinking cap on for this question. Any helpful input? Will appreciate it!


I'm working with TeXShop 3.61 and I'm currently switching from natbib to biblatex. Despite having tried for hours and read through all other entries, I still can't make it work.   .tex Document:  \documentclass{article} \usepackage[backend=biber]{biblatex} \bibliography{Ohne-Titel} \begin{document} Test test test \cite{Lee2009a} \printbibliography \end{document}   .aux File:  \relax  \abx@aux@sortscheme{nty} \abx@aux@cite{Lee2009a} \@writefile{toc}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax } \@writefile{lof}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax } \@writefile{lot}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }   .bib Entry:  @article{Lee2009a, author = {Lee, Geun}, file = {:Users/JulianLeitner/Library/Application Support/Mendeley Desktop/Downloaded/Lee - 2009 - A Theory of Soft Power and Korea's Soft Power Strategy.pdf:pdf}, journal = {The Korean Journal of Defense Analysis}, number = {2}, pages = {205--218}, title = {{A Theory of Soft Power and Korea's Soft Power Strategy}}, volume = {21}, year = {2009} }   And here the error message:   LaTeX Warning: Citation 'Lee2009a' on page 1 undefined on input line 5.   LaTeX Warning: Empty bibliography on input line 6.   [1{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]  (./Ohne-Titel.aux)   LaTeX Warning: There were undefined references.   To compile I simply use the Macro --> applescript --> bibliography.   Any help would be highly appreciated!  Julian

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


I have a string of text that has multiple linebreaks. I want to get some of the text inbetween it. How would I do this?  \w+\*\w+\*1000018220\*\n.+\n.+\n\w+\*\w+\*(\d+\.\d+)   I tried this, but this just goes line by line and i'm unsure of how to get between two tags that have linebreaks.  This is how the string looks TEXT*TEXT*1000018220* TEXT*TEXT*TEXT1419* TEXT*TEXT*KH005* QTY*QD*123.45*KH MEA**MU*12345.6*KH***22 TEXT*150****TEXT*201900000000 TEXT*151****TEXT*201900000000 QTY*QD*123.45*KH QTY*QD*123.45*KH QTY*QD*0.00*KH QTY*QD*123.45*KH QTY*QD*0.00*KH TEXT*TEXT*1000018220*   I want to get the values of the lines with the QTYQD###.##KH from between the 1000018220 headers.  The result would return this  123.45 123.45 123.45 0.00 123.45 0.00

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I have shapefiles in that form  RCs4s3s2c10_S2C10 RCs4s3s2c20_S2C20 RCs4s3s2c30_S2C30 RCs4s3s2c40_S2C40 RCs4s3s2c50_S2C50 RCs4s3s2c60_S2C60 RCs4s3s2cb_S2CB RCs4s3s2c10_1_S2C10 RCs4s3s2c20_1_S2C20 RCs4s3s2c30_1_S2C30 RCs4s3s2c40_1_S2C40 RCs4s3s2c50_1_S2C50 RCs4s3s2c60_1_S2C60 RCs4s3s2cb_1_S2CB RCs4s3s2c10_2_S2C10 RCs4s3s2c10_2_S2C10 RCs4s3s2c20_2_S2C20 RCs4s3s2c30_2_S2C30 RCs4s3s2c40_2_S2C40 RCs4s3s2c50_2_S2C50 RCs4s3s2c60_2_S2C60 RCs4s3s2c10_2_S2C10 RCs4s3s2cb_2_S2CB   How can i use a second wildcard parameter in my code for the first group of fc which don't have a number between _ cause with the following code  featureclasses = arcpy.ListFeatureClasses("RCs*", "Polyline", "")     for fc in featureclasses:           ....   i get everything but i want only the first group of feature classes

I know there has to be a way to do this but I'm having trouble figuring out how to do so. I would like to create a list of feature classes to perform operations on however, I want to have the list contain feature classes which have 2 separate and distinct file name identifiers. The code would look something like:  FCS = arcpy.ListFeatureClasses("X_*" OR "*_Y")   I know OR is incorrect however, is there some way to do this without having to re write code to work with the second wildcard. Thanks for helping gout, i know there is a selection method in the Select By Attributes which allows for multiple wildcard use using the OR statement.


I'm currently using Ubuntu 19.10 (installed from ISO File).   Even after 3 Days of the official release of Ubuntu 20.04 LTS, update-manager -c is unable to fetch the distribution release of Ubuntu 20.04 LTS.  However, update-manager -c -d can fetch the development release of 20.04.   Hence, I thought of upgrading to 20.04 Development Branch and then to 20.04 LTS Distribution Release. Is it possible to do so?  Some Thoughts: On visiting various forums, I could read, that the update from 19.10 will take around 48 hours to reflect. If anyone is able to upgrade to 20.04 LTS, could you please tell me the server through which the upgrade was done?

Update  appear to have been updated recently (as of writing this the last update appears to have taken place on 3rd of June) to include the following statement:  The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS.  Also note that .  TLDR (as of 15 Aug 2020):   is the canonical tracking document for the first Focal Fossa point-release (20.04.1). It’s a live document. The Ubuntu release team will be updating it as we work on releasing 20.04.1. […] Upgrades from 18.04 to 20.04.1 are still disabled as we are working through a few upgrade blockers   Edit The answers (so far) do not answer the question. The question is pretty simple. Ubuntu.com points to a "FinalRelease", which turns out to be a "Development Release", see evidence below. I'm not asking how and when to upgrade. I'm pointing out what seems to me to be an apparent inconcistency (in semantics, linguistics, logic) in the way Ubuntu names or labels its releases. From an answer to the question I'd except someone to pick up and acknowledge this inconsistency. An answer could start with a "Yes, ..." or a "No, ...", for starters. (Moreover, a good answer could distinguish between the release being in dev stage and/or the upgrade process (e.g. from LTS to LTS) being in dev stage, if appropriate.) This question, as I see it, is not a duplicate. Futher, I think it is a question which deserves a non-patronizing answer. Thanks.   indicates that today (23rd April 2020) the new Ubuntu 20.04 LTS is to be released.  See "condensed screenshot" here:  Indeed, it seems that that's what happened, see  and :  However, when following the instructions to upgrade (from 18.04 LTS to 20.04 LTS) found  and elsewhere (edit: actually , too!), even prior to the July point release, I'm a bit confused to see that the instruction is to use update-manager -d which also points to the "Development Release" (see screenshot below) rather than the "FinalRelease" (see screenshot and link above). Is the "Final Release" (which I'm after) the/a "Development Release"? Why isn't it called something like "Production Release" or "Final Release"? When will it no longer be referred to as "Development Release"? In July? I'm confused :(


I have $1^3 + 3^3 + ... + (2n + 1)^3 = (n+1)^2(2n^2 + 4n + 1)$  So, if $A_r = (r + 1)^2(2r^2 + 4r + 1)$ is true, then $$A_{r+1} = (r+1)^2(2r^2 + 4r + 1) + (2r + 3)^3$$ And now I can't transform the expression above into the form $$(r + 2)^2(2(r + 1)^2 + 4(r+1) + 1)$$ I tried to open these terms and got $2r^4 + 16r^3 + 47r^2 + 60r + 28$, but it seems to be a very difficult expression.   I will be grateful for any hints.

Use mathematical induction to show that:  $1^3 + 3^3 + 5^3 + ... + (2n + 1)^3 = (n+1)^2(2n^2+4n+1)$ whenever $n$ is a positive integer.  I am able to solve this problem, but the thing that confuses me on this is the Basis Step.  P(1): $(2(1) + 1)^3$ $\neq$ $4(7)$, does this mean that this problem can not be proved using mathematical induction, or am I missing something? Thanks.


SO I accidently zeroed out my main drive. Meant to put sdb and put sda by mistake. :(  Computer is still on, anyway I can recover? I know if I restart I'm screwed.

I'm an idiot, I was writing an image to a USB drive using dd when instead of typing /dev/sdb I typed /dev/sdd and wrote the 135mb image to my 750gb External Hardrive full of files. Is there ANY possibility of recovering the files or did dd completely zero out the drive? Please help, as this is one of the lowest points of my life EVER.  dd finished writing the 135mb image in 5 seconds, so I didn't have a chance to stop it. By the time I knew what happened to was too late. The command was as follows:   sudo dd if=generic.img of=/dev/sdd bs=1M   EDIT2: The External Harddrive's filesystem was FAT32(I've had the drive for awhile and FAT32 was the most Universal FS at the time). I also have a 2TB drive I just got which I was planning on moving most of the files to from the 750gb, If needed I can use it to transfer the Recovered files to.


How do we prove that among all closed surfaces with a given surface area, the sphere is the one that encloses the largest volume, and not do it by cases?  so far I've tried is that I know the formula for the surface of the sphere and volume of sphere

The isoperimetric inequality on the sphere of radius 1 asserts that for any closed curve on the sphere, $$L^2 \geq A(4\pi - A)$$ where $L$ is the length of the curve and $A$ is the area it encloses.  There are a number of proofs of this; I am looking for a proof using the calculus of variations in the spirit of the proof of the standard isoperimetric inequality on the plane.  I don't think this can be done, but I thought I'd see if others have an idea.  First, let us review the variational proof of the isoperimetric inequality on the plane.  By Green's theorem, the area enclosed by a curve $(x(t), y(t))$ is given by: $$A = \int_a^b x(t)y'(t)\, dt$$ On the other hand the length is given by: $$L = \int_a^b \sqrt{x'(t)^2 + y'(t)^2}\, dt$$ Using Lagrange multipliers, we can maximize $A$ while treating $L$ as a constraint, and the isoperimetric inequality follows.  To adapt this idea to the sphere we would need to use Stokes' theorem instead of Green's theorem to manufacture a line integral which calculates surface area.  Namely, we would need a vector field $\textbf{F}$ on $\mathbb{R}^3$ such that if $C$ is a closed curve on the sphere which is the boundary of a piece $S$ of the sphere then: $$\int_C \textbf{F}\cdot \textbf{T}\, ds = \iint_S \text{curl}\, \textbf{F} \cdot \textbf{n}\, dS = \iint_S dS$$ In other words we want to choose $\textbf{F}$ so that $\text{curl}\, \textbf{F} = \textbf{n}$, the outward unit normal vector of the sphere.  But there can be no vector field in $\mathbb{R}^3$ whose curl is $\textbf{n}$ since the integral of $\textbf{n}$ over the sphere is $4\pi$ while the integral of the curl of a vector field over any closed surface is $0$ by Stokes' theorem.  This seems to suggest that you can't use the calculus of variations to prove the isoperimetric inequality on any closed surface, which is a bit disappointing.  Is there any way to get around this problem?


I got this from "4.4 The recursion-tree method for solving recurrences" in book "Introduction to Algorithms"  The recurrence that try to use recursion-tree to solve is: $T(n) = 3T(n/4) + cn^2$

I have been hit with a homework problem that I just have no idea how to approach. Any help from you all is very much appreciated. Here is the problem  Prove the equation: $a^{\log_b c} = c^{\log_b a}$  Any ideas?


For a non-native speaker, the above two sentences seem similar.    From the point of the native speaker's view, is there any slight difference?     In the same vein, "I have no money" and "I don't have any money" seems similar to me. Am I right?

In English, there are at least two ways to express negation, for example: — I don't have money — I have no money  or — No objects were found — Objects were not found  or — No restrictions are applied — Restrictions are not applied  Questions:   What is the difference between these two forms? Is it only the matter of style or there is more significant differences in the meaning of the sentences? When should we use the first one form and when the second? Do these two forms stress a difference between British and US English?


How do I show $(1/n!)^{1/n}$ goes to $0$ as $n$ goes to infinity? I need this to use the spectral radius theorem to show an operator has spectrum {0}.

How do I prove that $ \displaystyle\lim_{n \to{+}\infty}{\sqrt[n]{n!}}$ is infinite?


Academics sometimes publish popular books based on their own research, but not always cite properly themselves, even when book references other authors properly. Moreover, sometimes I can see that one author publishes very similar (but not same) papers on the same topic, without self-referencing, even though it can be seen that the author recycles some of hers/his ideas. Even respectable people in the profession do it.   Given this where is the line beyond which we are talking about self-plagiarism?   On one hand it feels bit wrong to do this even in a small amount. On the other hand I can imagine that it can be impractical, and cumbersome to piously self-reference yourself, and I also worry that that might seem egocentric to the reader.   It is no brainier that copying part of your old article, and submitting it as new is clearly wrong. On the other hand it does not seems to be wrong using the main ideas, quotes (or chapter titles), or paraphrasing minor ideas of your earlier papers to publish a book without using the same referencing standards for yourself as you use for other authors.  Any opinion on this? Should I always reference myself as well as I do others, or is it ok to be more lenient on yourself as long as it is not more excessive then it is usual in the field? Do you think that this depends mostly on the context?

I am planning to write several papers exploring various aspects of the same scientific question. Each of these papers must have an introduction which motivates it and explains the relationship between the problem and what others have studied in the past. It would be fantastic if I could simply copy-and-paste the same introduction, or, at least, 90% of it.  This seems to me to be ethically unproblematic. After all, I need to say the exact same things every time, and I certainly don't mind the self-plagiarism. Am I hurting the reader in any way? I suppose I might be, if the reader desired an introduction which consists of original material, but that is an odd desire, isn't it? Its the research, the stuff that follows the intro, that is original. Sadly, I have gotten wind that the majority of the research community apparently does not agree with the sentiments expressed in the previous paragraph. This leads me here to ask a series of related questions:  To what extent is self-plagiarism in non-technical bits considered acceptable? I often see authors recycle paragraphs but I have never seen anyone cut-and-paste the entire section outright. I'd be particularly interested in learning whether norms on this vary across different scientific communities.  How often do scholars find themselves trying to same the same thing in different words to avoid self-plagiarism?  Supposing I insert a sentence to the effect of: "The introductory section 1.2 is taken verbatim from the author's earlier paper [1]." How likely are journal editors and reviewers to complain about this?   By the way, I am fairly certain they would be very likely to complain about a sentence to the effect of "We refer the reader to [1] for motivation to study this problem and a discussion of its relation to prior work."


As far as I can tell, there's no indication in the data dumps accessible in Data Explorer as to whether a particular user is a diamond moderator or not. This would certainly be a useful thing to know (for example, ) My tripartate question is thus   Am I wrong and there is some way to determine diamond moderator status in a query? If there isn't, can we get that added? I have a feeling the answer to #2 may be no, and it may have been decided to leave the information out deliberately. if that's the case, is there a publicly-accessible explanation of the reasoning behind this?

Moderators are special, privileged users who should serve as an example to the rest of us.  Therefore, it is natural to want to query behaviors and statistics about these model users, Like I did, for example, when researching . Unfortunately, there is no way to determine moderators in the SEDE data set!  We are left with hand-coding the current mods like in .  This is hardly a good solution and does not port if we want to quickly switch the query from, say, SO to Super User. Please provide a Moderators table, listing the ID's of that site's moderators. (Or, alternatively, add a flag-column to the Users table, but this would be less efficient.) As nhinkle notes, .  Please add it to SEDE, as well.    For reference, the identities of the mods is by no means secret -- being posted on each site's . It's just very clunky to get this list inside a query.  Currently, you can kludge a list of moderators by navigating to an About page and executing this javascript: $("#mainbar-full div.content-page div a[href*='/users/']").map ( function () {     return parseInt (this.href.replace (/.+\/users\/(\d+)\/.+$/, "$1"), 10); } ).get ();  Alternatively, parse the return from .


this is the third time I'm considering applying for a visa to Norway and I have been rejected twice. Firstly, I was rejected because the consider my relationship with my girlfriend that I was to visit as not an esblished relationship since we haven't met in person and we only met online, then my girlfriend visited me we got married she returned then I applied to visit her because she is undergoing surgery in September and she want me to be with her but I got rejected on the following Grounds:  Justification for the purpose of intended stay has not been    provided. Reference is made to the fact that the applicant's and the reference's marriage has not been registered in the Norwegian population system. The applicant wishes to visit his wife. However, the embassy does not consider this a satisfactory reason that outweighs the applicant's necessary tie with his home country. We have noted that the applicant comes from a country with a great potential for emigration due to its social and economic situation. In our experience, many applicants fail from west Africa wish to resettle in other countries. The applicant is relatively young, married and has no children. He has not stated to have property or other financial commitments in his home country. After considering these aspect of the application, the embassy finds that the applicant lack the necessary ties with his country of origin.  These were the reasons that they gave, she is suggesting to get the marriage registered in their population system and to reapply since she is expecting to undergo a surgery on the 5th of September and want me to be with her as she does not have anyone to take care of Can someone help me with solutions that will increase my chance of getting the visa so that I can be with her through her surgery.

Schengen refusal formulae can be difficult to understand sometimes.    When an applicant receives a refusal with "Justification for the purpose and conditions of the intended stay was not provided", what does it mean?


Please help me. How can I draw this using tikzpicture. Thank you.

I find myself needing to draw lots of elegantly curved paths in TikZ. Ideally, I'd just specify a series of points, and TikZ would calculate the extra data itself to draw a nice series of curves passing smoothly through these points, perhaps with an optional "looseness" parameter that I could specify. But the only way I can find to draw nice curves is by explicitly giving control points, or by manually specifying in and out angles.  I can think up a simple algorithm to do this, which would certainly be within TikZ's power to perform: just choose the in and out angles in a simple fashion based on the relative angles between each adjacent pair of line segments.  Is something like this already built-in? Or can someone cook something up that does the job?  Edit: Jake has provided an answer using the plot [smooth] functionality. This is almost perfect! But it can't do what I need, because it doesn't let me specify tangent angles manually where needed, which is especially important at the beginning and end of the curve. I would have thought this would be a natural and straightforward addition to the existing plot [smooth] algorithm: for every coordinate, an optional angle should be able to be specified as an argument, which if supplied is treated as the tangent angle for the curve at that point. And while we're at it, it wouldn't hurt to also allow the tension to be modified along the path.  A minimal extension to the algorithm would just accept two optional parameters, for the curve tangent at the beginning and end.


I'm attempting to replace all instances of a string within a variable, but the string I'm looking for is also a variable. How can I add this string within a regex?  var myVar = HelloWorldHello; var myString = Hello;  myVar = myVar.replace(/\\' + myString + '/g, '');   The above doesn't seem to be working. I need to end up with World.

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


Well this is embarrassing...  I was attempting to download a freeware tool and clicked on the wrong thing so I was blasted with tons of malware.  Windows Defender seems to have gotten rid of some of it, but one program Ceprolad.A refuses to go away.  What is the best way to get rid of Ceprolad.A without spending money or reformatting my HD?

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I am trying to Find out simple Geoprocessing Tool that can physically re-arrange the fields of attribute table (for both feature class +  tables), I have found some posts here, but nether of them have provide a good and a simple tool that can do the  job.

Using ArcGIS 10.0, is it possible to reorder the fields in a file geodatabase, and have the order persisted to the database?  We considered exporting to XML, and writing a parser to change the field order, then re-creating a new database from the XML. This seems like a laborious process.  Another idea is to import the existing field definitionss into Excel, re-order them, export to CSV, then write a Python script to create these fields in a new Geodatabase. Does a script like this exist, before we write it from scratch?  Unfortunately the ArcGIS Diagrammer doesn't seem to support field re-ordering.  Are there any scripts or hacks we could use to simplify this process?


I always keep my system up to date, but reboot it not very often. After an reboot the repeating input (if you hold down a key) of the keyboard stoped working. After some test with live image and so on I can give the following facts.   its not the keyboard (tried another one) Its all keys (even backspace - what is really annoing) It depends not to my user it depends not on the Desktop IT DEPENDS ON MY INSTALLATION (live image works fine)   When I start a terminal session via Strg+Alt+F1 then it constantly fills the input with this: "^@" so after a while it looks like  "^@^@^@^@^@^@^@^@^@^@"     In the GUI it does not show this BUT I'm sure thats the problem.  Could not find anything online - so I hope anybody of you can help me out!  My system:  LinuxMint 18.3 (based on Ubuntu 16.04) Kernel: 4.13.0-32-generic

I am facing very weird problem on which I cannot find solution. One time touchpad gestures stopped working along with keyboard keys holding. Touchpad is moving the cursor but nothing more. When I am holding keyboard keys they appear only once, although in my setting it is set up to repeat keys.  $ uname -r 4.13.0-26-generic


I am looking for an injection that is able to map irrational numbers to real numbers. My Attempt : I considered my favorite irrational number $\pi$ and so I attempted to map all elements from $\mathbb{R}\backslash\mathbb{Q}$ of the form $2\pi n$ $\forall n\in\mathbb{N}\cup\{0\}$ to elements of the form $\pi n$ in $\mathbb{R}$. The problem I am facing is being unable to map all elements from $\mathbb{R}\backslash\mathbb{Q}$ of the form $(2n+1)\pi$ with $n\in\mathbb{N}\cup\{0\}$ to rationals in $\mathbb{R}$. At last, if otherwise... map elements from $\mathbb{R}\backslash\mathbb{Q}$ to itself in $\mathbb{R}$.

Is there a simple, constructive, 1-1 mapping between the reals and the irrationals?  I know that the Cantor–Bernstein–Schroeder theorem implies the existence of a 1-1 mapping between the reals and the irrationals, but the proofs of this theorem are nonconstructive.  I wondered if a simple (not involving an infinite set of mappings) constructive (so the mapping is straightforwardly specified) mapping existed.  I have considered things like mapping the rationals to the rationals plus a fixed irrational, but then I could not figure out how to prevent an infinite (possible uncountably infinite) regression.


naveen@naveen-VirtualBox:~$ sudo apt-get install libspdlog-dev Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libspdlog-dev naveen@naveen-VirtualBox:~$

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?


I was a victim of serial downvoting 2 days ago. Is it possible to know the username, IP address or similar of the person who down-voted me? What happens to such people? Will they be banned/warned?

While browsing Stack Overflow, I noticed that I lost a lot of reputation:        Is this serial downvoting? Will it be corrected by a rep-recalculation? How often are those done?    Here's a second instance:


After startup for 5 minutes my system is very slow. The Task Manager shows that the disk usage is at 100%. (Later this number is around 2-4 %, but sometimes for 1-2 minutes go up again at 100%.)  I searched a lot on Google. For example I read , and also other pages. I opened two topic on Microsoft answer.  and one in Hungarian.  But I didn't found the solution yet. So I would like to ask Community's help. :)  Here the steps I already done:   I disabled everything at startups (including services) and the issue is the same.  I disabled Prefetch and Superfetch, the Baground Intellingent Transmission, Windows Search and Windows Defender but the issue is still persists. I made a health check on HDD, I made defrag and file system error check, but there are no errors. Also I tried to reinstall the HDD's driver. I made a full hardware check up, with no errors. The Windows and all the drivers are up-to-date. I tried a clean start. The issue is the same. I deleted Dropbox and all antivirus. I turned of the MSI mode.      I using also Linux, where this error is not occurs. Good to know, that Windows had 4 partitions, but I deleted 2 of them for the Linux. I don't know what partitions was these but both was only 10 - 20 MB.  I using a Dell Inspiron 15R SE 7520 with Windows 10 Home.  Personally I think it can be the Intel Rapid Store Technology "driver", because the problem started around when I installed it. (However I'm not sure.) And my hardware not supported yet by Intel, so I have no the newest driver. However I deleted Intel's software and driver and the issue is the same.    Thank you in advance for your assistance!

My new laptop is two months old, the first day I got this laptop I noticed this but I assumed it was a bug in Windows 8. However I still have this issue today after reformatting and installing all updates.  The problem is that the disk shows 99% usage from an application...  In this case Dropbox, but the usage is never over 2 MB/s; in this case it is 0.8 MB/s.  What can I do about this?


I've my windows 8.1 os and it's 32 bit. Recently I wanted to try 64 bit programs and I want to upgrade my os to win 10. Can I upgrade my win 8.1 to Win 10 ? With windows 10 64bit boot able disk without going through normal update from os? by selecting the upgrade option in insall options in bootable cd? Without doing clean win 10 64 bit OS installation. i don't want to pay for 64 bit os again.

I have a windows 8.1 32bit installation with 4GB of RAM and a x64 capable CPU. I've upgraded the RAM to 8GB and want to do the Windows 10 upgrade... as far as I'm aware the upgrade will do a like for like (32bit to 32bit)... If I do this and let Windows 10 activate... then do a clean x64 Windows 10 installation... will this work and activate correctly or does the hardware id hash contain architecture information (32bit x64 etc) and not allow this?


Let $V$ be a complex vector space of dimension $n$ with a scalar product, and let $u$ be an unitary vector in $V$. Let $H_u: V \to V$ be defined as  $$H_u(v) = v - 2 \langle v,u \rangle u$$  for all $v \in V$. I need to find the minimal polynomial and the characteristic polynomial of this linear operator, but the only way I know to find the charactestic polynomial is using the associated matrix of the operator.  I don't know how to find this matrix because I don't know how to deal with the scalar product. Is there some other way to find the characteristic polynomial? If not, how can I find the associated matrix of this linear operator?  Thanks in advance.

Let $V$ be a complex vector space of dimension $n$ with a scalar product, and let $u$ be an unitary vector in $V$. Let $H_u: V \to V$ be defined as  $$H_u(v) = v - 2 \langle v,u \rangle u$$  for all $v \in V$. I need to find the characteristic polynomial of this linear operator, but the only way to find it that I know of is using the associated matrix of the operator.  I don't know how to find this matrix because I don't know how to deal with the scalar product. Is there some other way to find the characteristic polynomial? If not, how can I find the associated matrix of this linear operator?  Thanks in advance.


I would like to create a concept which ensures that the type's value_type member type is convertible to char. (Such as std::basic_string<char>) Here is what I have tried so far (neither of which work): template <typename T> // Error: Template argument for template type parameter must be a type; did you forget 'typename'? concept MyConcept = std::is_convertible_v<T::value_type, char>;  template <typename T> concept MyConcept = requires(T t) {     // Expected concept name with optional arguments     { T::value_type } -> std::convertible_to<char>; };  As far as I am aware, this checks that the type has an actual property called value_type, which isn't what I'm looking for: template <typename T> concept MyConcept = requires(T t) {     { t.value_type } -> std::convertible_to<char>; };  I'm using g++-10 version 10.2.0.

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


After experimenting with desktop environments and uninstalling and installing unity desktop all window menus are sticking under the window name    Switching the window menu behavior has no effect.  Is there a way to fix this?

I upgrade from Lucid via update-manager -d and the upgrade went fine. However, I didn't get Unity's global menu. Windows stil have their indivual menu bars.    This happens for all applications.  Does this typically occur? Can this be fixed with a configuration setting?