Radius of convergence $\iff$ distance to the nearest singularity?

If I consider the following power series, the radius of convergence of each of them is the distance to the nearest singularity in the complex plane: $$e^z=\displaystyle\sum_{n=0}^\infty \dfrac{z^n}{n!}, \, R\to\infty \, \text{(converges everywhere)}$$ $$\ln (1+z)=-\displaystyle\sum_{n=1}^\infty \dfrac{(-1)^n z^n}{n}, \, R=1 \, \text{(diverges at} \, z=-1)$$ $$\arctan z=\displaystyle\sum_{n=0}^\infty \dfrac{(-1)^n z^{2n+1}}{2n+1}, \, R=1 \, \text{(diverges at} \, z=i)$$ $$\dfrac{z}{e^z-1}=\displaystyle\sum_{n=0}^\infty \dfrac{B_{n}z^n}{n!}, \, R=2\pi \, \text{(diverges at} \, z=2\pi i).$$ Does this hold true for all power series? It's clear that $R\le d$, but can it be shown that $R=d$? The letter $d$ denotes the distance to the nearest singularity in the complex plane (from the origin).  This does not account for removable singularities.


Serious performance issues with Ubuntu 18.04 and large file numbers

I am using our university network for my research work, and was given a new PC with Ubuntu 18.04, and an Intel i7-7700. I work a lot with machine learning applications, so I am constantly moving huge datasets (~ 30-50 GB) of relatively small files. With Linux, I run into severe performance problems when doing so, especially when using Nautilus.   For example, when working with the AVA-Dataset (255530 .jpg-images), Nautilus takes FOREVER (~3 Minutes??) to simply open the folder and display the contents! Note that I am using list layout, without any thumbnails that have to be displayed, or anything like that - just the filename, and that's it. On my Windows machine, opening similar image folders only takes about 2-3 seconds. Am I doing something wrong, or is this a general Linux-specific problem?   Help and suggestions greatly appreciated! :)


What happens when piping the `yes` to another command?

If the yes command echos "y" continuously until killed, then it will never get done right? If it will never get done then how does it pipe it's output to the next command??


I have the following dataset:  test_set = ("The sun in the sky", "The sun in the light", "Do not blame it on moonlight", "Do not blame it on sunshine")   What I would like to do now if filter this test based on a list. So like  y = [0,1] test_set_2 = test_set[y]   However, this gives me the following error:  Traceback (most recent call last): File "/Users/marcvanderpeet/PycharmProjects/untitled/test3.py", line 5, in <module> test_set_2 = test_set[y] TypeError: tuple indices must be integers, not list   Any ideas on how I can get the result I am looking for:  test_set_2 = ("The sun in the sky", "The sun in the light")


number length limit in SOQL Where condition

When I execute SOQL in Developer Console:  Select Id, Amount From Opportunity Where Amount > 10000000000   An parsing error occurs:  Unknown error parsing query   Is there length limit of number on SOQL Where condition?


what app do i need to download in order to watch video's online? Something similar to flash program but for ubuntu? (first time ubuntu user) Thank you very much!


For small values of $l$, isomorphisms occur among certain of the classical algebras. Show that $B_2$ is isomorphic to $C_2$.   Well, both $B_2$ and $C_2$ have dimension $10$. $B_2$ consists of $5\times 5$ matrices, while $C_2$ consists of $4\times 4$ matrices. It seems to take too much work to exhibit an explicit isomorphism, and then computing to show that $\phi([x,y])=[\phi(x),\phi(y)]$, where $[x,y]=xy-yx$. How can we show that the two algebras are isomorphic?


Can I delete all data/files definitively from my computer?

I have a couple of very important personal files, that I don't need anymore.  But the problem is that even I delete these files using default Windows 'delete' command, the files can be restored using a simple File Recovery software. So I am delving for a good and efficient way to delete any data permanently.


In how many ways can $5$ distinct figures be given to $3$ friends so that each friend receives at least one figure?

I have 5 various figures. How many ways I can give figure to 3 friends, that every friend has at least one figure.  o - present figure  | - present friend  Choose:  o | o | o o o   $C^{*}{5+3-1 \choose 3-1}={7\choose2}=21$ ways  Is that correct result?


pgfplot: Customize the axis wide scientific notation multiplier

Hy Guys,  I'm experiencing two problems with ticklabel formats. First, if I explicitly set scaled y ticks = true, the base ten notation still appears at every tick.   Here's the diagram:    Here the used code for the picture:  \begin{tikzpicture}  \begin{axis}[% scaled y ticks = true, width=4.52083in, height=3.56562in, xmin=0, xmax=0.01, ymin=-0.0025, ymax=0, xlabel={Time t [s]}, ylabel={TopNode Displacement [m]}, xmajorgrids, ymajorgrids, zmajorgrids, legend entries={$D=0$}, legend style={nodes=right}, scaled x ticks = true, x tick label style={ rotate=90,anchor=east,}, y tick label style={/pgf/number format/.cd,sci,precision=5}] \addplot [ color=green, solid, line width=1.0pt ] coordinates{ (0,0)(9.9173e-005,-3.01301e-005)(0.000199171,-0.000141203)(0.000299992,-0.000335604)  .... (0.0997007,-0.0021914)(0.0998004,-0.00218975)(0.099901,-0.00218216)(0.     100001,-0.00216898)  };  \end{axis} \end{tikzpicture}   I dismissed the majority of the coordinate information, otherwise this post would be some 100 lines long.  If this should ever be solved my second question is if there is a way to set the exponent of the axis multiplier to a specific value, e.g. from 10^-3 to 10^-2?


In one of my classes at school, part of my assignment includes creating a constructor that assigns random values into a 2D array. While I have been able to create the array, have the constructor assign random values into said array, I cannot seem to create multiple objects with different 2D arrays. Any object I make seems to hold the same values previously assigned to the first one. I am fairly new at c++ so I assume the answer is barely flying over my head. TIA  #include <ctime> #include <cstdlib> #include <iostream>  using namespace std;  const int sizeOfArray = 3; int myArray;//a  class Matrix { public:   int myArray[sizeOfArray][sizeOfArray];//a   Matrix ()//b   {     srand(time(NULL));     for(int i = 0; i < sizeOfArray; i++){       for(int j = 0; j < sizeOfArray; j++){       myArray[i][j] = rand() % 10;       }     }   }    void printMyArray();  }; void Matrix::printMyArray()//c {   cout<<"The Matrix is as follows: \n"<<endl;   cout<<myArray[0][0]<<"\t"<<myArray[0][1]<<"\t"<<myArray[0][2]<<"\n"<<endl;   cout<<myArray[1][0]<<"\t"<<myArray[1][1]<<"\t"<<myArray[1][2]<<"\n"<<endl;   cout<<myArray[2][0]<<"\t"<<myArray[2][1]<<"\t"<<myArray[2][2]<<"\n"<<endl; }  int main() {   Matrix matrix;   matrix.printMyArray();    Matrix natrix;   natrix.printMyArray();    return 0; }   I want the output to spit out two different arrays, however, the same array is repeated twice with the output as:   The Matrix is as follows:  4   0   9  6   0   4  6   3   0  The Matrix is as follows:  4   0   9  6   0   4  6   3   0


How to align a form element to the center of the page?

I have got a login page and I want to align form element to the center of the page.   .signininp {   border-radius: 20px;   width: 20%;   margin-top: 10px;   padding: 5px; } <form>   <input class="signininp" type="input" name="email">
   <input class="signininp" type="input" name="pass">
   <input class="signininp" type="submit" name="submit" value="Giriş Yap"> </form>


How to avoid problems with the JuanLesPins theme and textsc?

I'm preparing a presentation and figured out that some text disappears or has a wrong color. Below you'll find a MWE. If you comment out the JuanLesPins theme the text with the \textsc command will appear or disappear:  \documentclass[english]{beamer} \usetheme{JuanLesPins} \title{Foo} \author{Bar} \begin{document} \begin{frame}   \titlepage{} \end{frame} \begin{frame}   \frametitle{Sets}   \begin{columns}     \begin{column}{.6\textwidth}       \textsc{Georg Cantor} is the founder of set theory and he said:     \end{column}     \begin{column}{.4\textwidth}       baz     \end{column}   \end{columns} \end{frame} \end{document}   Can you tell what the reason for this behaviour is and how this can be corrected?


What is the word for: "transform into words"?

In my essay, I want to use a phrase that would best express 'the act of  transforming real events into words.' I know that initally sounds a bit awkward, but I will give the context to clarify this.     News feed, social media, and television where many sought their repose were only repeating what was going on    So, instead of writing repeating I want to use something like liquidify or transcribe. But both these words do not really connotate the idea I want to give. I want to say that these news feeds were just transforming what was outside into words, which made people feel even more besieged.   Any suggestions?   Also, is the question mark in my question text placed correctly?


Let $\{x_n\}$ be a sequence such that there exists a $0 < C < 1$ such that $$|x_{n+1} - x_n| \le C |x_n - x_{n-1}|.$$  Prove that $\{x_n\}$ is Cauchy. Hint: You can freely use the formula (for $C \not = 0$) $$1+C+C^2+...+C^n = \frac {1-C^{n+1}}{1-C}.$$  My attempt : $\frac {|x_{n+1} -x _n|}{|x_n - x_{n-1}|}<C$. Then, $\frac {|x_{n+1} -x _n|}{|x_n - x_{n-1}|}<1$. So, I thought that it goes to zero as $n \to \infty$ because the difference between $x_n$ and $x_{n+1}$ is getting smaller as $n \to \infty.$ But, I don't know how to use the hint in the question, and how to write the answer properly.  Could you give some hint?


By reflection of photons from a mirror, the mirror must get an impulse of 2p=h/pi.l for every photon. This means that the mirror receives kinetic energy.  But the photon has the energy it has before the refection. How does QED explain this? In "Photons and perfect mirror" the question is answered as a consequence of other explanation but I does not see the mechanism which leads to it. I try to clarify this as respond to the answers.


Closed form of a partial sum of the power series of $\exp(x)$

I am looking for a closed form (ideally expressed as elementary functions) of the function $\exp_n(x) = \sum_{k=0}^n x^k / k!$.  I am already aware of expressing it in terms of the gamma function. Background / Motivation When counting combinations of objects with generating functions, it is useful to be able to express the partial sum $1 + x + \cdots + x^n$ as $\frac{1-x^{n+1}}{1-x}$. For example, to count the number of ways to pick 5 marbles from a bag of blue, red, and green marbles where we pick at most 3 blue marbles and at most 2 red marbles, we can consider the generating function $f(x) = (1+x+x^2+x^3)(1+x+x^2)(1+x+x^2+\cdots)$. By using the partial sum identity, we can express it as $f(x) = \left(\frac{1-x^4}{1-x}\right)\left(\frac{1-x^3}{1-x}\right)\left(\frac{1}{1-x}\right)$.  Simplify, express as simpler product of series, and find the coefficient of the $x^5$ term. I want to be able to do the same for a generating function in the form $g(x) = \exp_{n_1}(x)^{p_1} \exp_{n_2}(x)^{p_2} \cdots \exp_{n_j}(x)^{p_j}$ The easiest way to extract the coefficient of a given term $x^p / p!$ would be to use a similar closed form expression for $\exp_n(x)$ and a similar technique to $f$. Attempted Solutions Differential equation Recall that the way to prove the identity $1+x+x^2+\cdots+x^n = \frac{1-x^{n+1}}{1-x}$ is to define $S = 1 + x + x^2 + \cdots + x^n$ and notice that: $S - Sx = 1 - x^{n+1}$. Likewise, notice that $y(x) = \exp_n(x)$ satisfies $y - y' = x^n/n!$.  Via SAGE, the solution is $y(x) = \frac{c+\Gamma(n+1,x)}{n!}e^x$.  Our initial condition $y(0) = 0$ so $c=0$.  By , $\Gamma(n+1,x) = n! e^{-x} \exp_n(x)$ so we have $y(x) = \exp_n(x)$. Recurrence Relation Notice that $\exp_n(x) = \exp_{n-1}(x) + x^n/n!$. Using the unilateral Z-Transform and related properties, we find that $\mathcal{Z}[\exp_n(x)] = (z e^{x/z})/(z-1)$. Therefore, $\exp_n(x) = \mathcal{Z}^{-1}\left[(z e^{x/z})/(z-1)\right] = \frac{1}{2 \pi i} \oint_C z^n e^{x/z}/(z-1)\;dz$. $(z^n e^{x/z})/(z-1)$ has two singularities: $z = 1$ and $z = 0$.  The point $z = 1$ is a pole of order one with residue $e^x$.  To find the residue at $z = 0$ consider the product $z^n e^{x/z} (-1/(1-z)) = -z^n \left( \sum_{m=0}^\infty x^m z^{-m} / m! \right) \left( \sum_{j=0}^\infty x^j \right)$.  The coefficient of the $z^{-1}$ term is given when $n - m + j = -1$. The residue of the point $z=0$ is then $-\sum_{m,j} x^m / m! = -\sum_{m=n+1}^\infty x^m / m!$. Let $C$ by the positively oriented unit circle centered at the origin.  By Cauchy's Residue Theorem, $\frac{1}{2 \pi i} \oint_C z^n e^{x/z}/(z-1)\;dz = \frac{1}{2 \pi i} 2 \pi i \left(e^x - \sum_{m=n+1}^\infty x^m / m!\right) = \exp_n(x)$. Finite Calculus I've tried to evaluate the sum using finite calculus, but can't seem to make much progress.


If the $\det(A)=0$ why does the matrix $A$ have an eigenvector? Explain why there is a basis $B$ in $R^n$ so that the matrix $[A]_B$ has the zero vector as its first column   I know that if the $\det(A)=0$ of a matrix is zero then it is singular and thus not invertible. That in turn means that it doesn't have one solution. Why does that mean that it has an eigenvector?  As for the second I have no idea.


How to prove the anti-derivative of a periodic function?

How to prove that the anti-derivative of a periodic function is not necessarily periodic? (Without considering random examples)  I know that integral of $$ f(x) = f(a+x) $$ is $$ F(x) + c $$


How to implement password protection for individual files?

I'm writing a little desktop app that should be able to encrypt a data file and protect it with a password (i.e. one must enter the correct password to decrypt).  I want the encrypted data file to be self-contained and portable, so the authentication has to be embedded in the file (or so I assume).  I have a strategy that appears workable and seems logical based on what I know (which is probably just enough to be dangerous), but I have no idea if it's actually a good design or not.  So tell me: is this crazy?  Is there a better/best way to do it?   Step 1: User enters plain-text password, e.g. "MyDifficultPassword"   Step 2: App hashes the user-password and uses that value as the symmetric key to encrypt/decrypt the data file.  e.g. "MyDifficultPassword" --> "HashedUserPwdAndKey".   Step 3: App hashes the hashed value from step 2 and saves the new value in the data file header (i.e. the unencrypted part of the data file) and uses that value to validate the user's password.  e.g. "HashedUserPwdAndKey" --> "HashedValueForAuthentication"   Basically I'm extrapolating from the common way to implement web-site passwords (when you're not using OpenID, that is), which is to store the (salted) hash of the user's password in your DB and never save the actual password.  But since I use the hashed user password for the symmetric encryption key, I can't use the same value for authentication.  So I hash it again, basically treating it just like another password, and save the doubly-hashed value in the data file.  That way, I can take the file to another PC and decrypt it by simply entering my password.  So is this design reasonably secure, or hopelessly naive, or somewhere in between?  Thanks!  EDIT: clarification and follow-up question re: Salt. I thought the salt had to be kept secret to be useful, but your answers and links imply this is not the case.  For example,  linked by erickson (below) says:      Thus, password-based key derivation as defined here is a function of a password, a salt, and an iteration count, where the latter two quantities need not be kept secret.   Does this mean that I could store the salt value in the same place/file as the hashed key and still be more secure than if I used no salt at all when hashing?  How does that work?  A little more context: the encrypted file isn't meant to be shared with or decrypted by others, it's really single-user data.  But I'd like to deploy it in a shared environment on computers I don't fully control (e.g. at work) and be able to migrate/move the data by simply copying the file (so I can use it at home, on different workstations, etc.).


how to solve double integral of a min function

I came across this integral in a book. I don't understand how the author writes the following expression for it.  $$\int_0^T \int_0^T \min(t,s)\, dt\, ds = \int_0^T \left(\int_0^s t\, dt + \int_s^T s \,dt\right) ds $$


This website is Meta Stack Overflow, but I thought it's better to know if  meta really means meta literally!  Just to give more knowledge about this website.  Is it related to only Stack Overflow? Or is it general questions?


What is the option '-mindepth' doing in this command?

I am using the find command of bash, and I am trying to understand it since it is part of a code that I am using. In the code, the command in question is -   find -L $RAW_DIR -mindepth 2 -maxdepth 2 -name "*.bam" -o -name "*.sam" | wc -l  I have been trying to understand this command by searching its components. In esence, I thinking it is trying to find the number of files that end with .bam or .sam. I think -maxdepth 2 means to search for these files in this folder and its immediate subfolder.  What I do not understand is what mindepth -2 does in this case. I looked up mindepth, and the explanation given everywhere is -  "Do not apply any tests or actions at levels less than levels (a non-negative integer). '-mindepth 1' means process all files except the command line arguments."  To me this explanation is not very clear. Just like maxdepth -2means search for subfolders upto a depth of 2, what does mindepth -2 correspondingly mean, in simple language?  Also, if mindepth is just the opposite of maxdepth in terms of the direction (which would make intuitive sense), then how do I understand the fact that executing the command above on a folder that does have a .bam file leads to the output  0, whereas omitting the mindepth part of the command leads to the output 1 ?


There is a lot of lag when I play Minecraft. I think this is due to the low amount of RAM I've allocated to Minecraft. (495MB)  How do you allocate more RAM to Minecraft?  I checked my other computer (Intel i5 Core) and it had the same amount of RAM allocated to Minecraft. However, Minecraft did not lag on that computer.  After I installed Optifine on this computer, the lag stopped (I don't know why cause I read that Optifine splits the load onto 2 cores, but I have only one core (At least I think so, a sticker on the laptop says Intel CORE i7)).


Remove one of the off-topic close reasons

Here on MSE, there are two close reasons within "off-topic" that mean exactly the same thing. This:     This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the help center.   and this:     Blatantly off-topic (this question has nothing to do with the software that powers the Stack Exchange network)   Should one of these be removed?


How are Wolverine's claws still in his body?

Everyone knows that Wolverine's adamantium claws are super-sharp — sharper than even a razor — and virtually indestructible. What puzzled me the first time I saw Wolverine is: how do the claws stay in his body?  As it is shown, Wolverine's flesh and skin are human in strength, but the healing factor makes it superhumanly durable and strong. Still, when Wolverine slashes something, or someone, extremely hard, dense, or thick (as he has to use great amount of force), the claws don't tear through his hand and leave his hand through the opposite side of the palm (because of the action having equal and opposite reaction).


Which of these two sentences is grammatically correct ? (cotton Korean blouse vs Korean cotton blouse)

Which of these two sentences is grammatically correct and why?  nice blue cotton Korean blouse nice blue Korean cotton blouse  I picked number 1 but it seems number 2 is correct, I would like to know the reason, I think number 1 sounds better, is there a rule I don't know about?


Import DB with `max_allowed_packet` limitation issue and no admin access

While importing a full database on a remote server :  mysql -h foo < dump_file.sql, it returns  ERROR 1153 ... Got a packet bigger than 'max_allowed_packet' bytes. But I don't have admin rights on that server to change my.cnf settings. The limit is 16Mb  I tried to optimize the dump like following, without result :  mysqldump --skip-extended-insert --net_buffer_length=10000 DATABASE_NAME > dump_file.sql   Would it be helpful to use LOAD DATA INFILE Is there any possible syntax to use it without specifying INTO TABLE ... ?  LOAD DATA INFILE dump_file.sql   Or any other way to turn around that issue  ?  EDIT : previous question asks :     Where do I change max_allowed_packet to be able to import the dump? Is   there anything else I should set?   when I merely know where to change max_allowed_packet, but I have not enough rights to do it.  So I specifically asked how to do it with CLI only, and if it would be helpful or not to use LOAD DATA INFILE in my case, which is not at all in the other question. Whatever, duplicated or not, I got an answer who solved the issue.


Finding distance between consecutive points using ArcGIS Desktop?

I am wondering how I can get the distance between consecutive GPS locations in ArcMap 10 (i.e. the distance between consecutive GPS locations sent in during a wildlife telemetry study).


Why is this function template not working in hpp files?

Originally this works (file init.cpp):  #include "main.h" #include "api/llemu.h" #include "api/lcd.hpp" template<typename ... Args> void lcd_print(std::int16_t line,std::string fmt,Args ...args){   const char* format = convert(fmt,args...);   if (line >= 1 && line <= 8) {     llemu::editLabel(lines[line - 1], format);   } } void initialize() {     llemu::init();   lcd_print(1,"hey"); }   But when I try to implement the function template in a hpp file, it doesn't work. New code:  //init.cpp #include "main.h" #include "api/llemu.h" #include "api/lcd.hpp" void initialize() {     llemu::init();   lcd_print(1,"hey"); }  //lcd.hpp template<typename ... Args> void lcd_print(std::int16_t line,std::string fmt,Args ...args);  //lcd.cpp template<typename ... Args> void lcd_print(std::int16_t line,std::string fmt,Args ...args){   const char* format = convert(fmt,args...);   if (line >= 1 && line <= 8) {     llemu::editLabel(lines[line - 1], format);   } }   There is a linker error in the new code:  [undefined reference to `void lcd_print<>(short, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)]   What does it mean and what did I do wrong?


Make sure only a single instance of a program is running

Is there a Pythonic way to have only one instance of a program running?   The only reasonable solution I've come up with is trying to run it as a server on some port, then second program trying to bind to same port - fails. But it's not really a great idea, maybe there's something more lightweight than this?    (Take into consideration that program is expected to fail sometimes, i.e. segfault - so things like "lock file" won't work)


Multi document printing from document library?

Is there any one have solution for print multiple documents from Document library? User has option to select multiple documents or single document or inside folder.  I found commercial product "Unbounded Printing Services for SharePoint". But is so expensive. Please share me if you have any thoughts.


Could you explain the following sentences from Bash manual about $_, especially the parts in bold,  maybe with some examples?      At shell startup, set to the absolute pathname used to   invoke the shell or shell script being executed as passed in the environment   or argument list.      Subsequently, expands to the last argument to the previous   command, after expansion.      Also set to the full pathname used to invoke each   command executed and placed in the environment exported to that command.     When checking mail, this parameter holds the name of the mail file.


Is it normal for Windows 10 pro system to take up almost 112 GB?

Please see the screenshot from WinDirStat. Why does Windows 10 Professional take up almost 112GB on my 256GB SSD? Is that actually normal? I've run CCleaner and Windows' in-built clean-up tool, including for system files, but it only shrank by 1GB. What else can I do to free up disk space without affecting system performance? Thanks    Edit: Thanks guys! From what I gather, System Volume Information is the single remaining 'culprit' after the clean-up, but I'm told that, for the sake of system restoration, that's something I shouldn't remove completely. To err on the side of caution, I've put it at 7 percent of the disk size. If there's something else I could or should do, please let me know.


I have removed the mentioned libraries. Then my system disconnected from NIS service and many packages are being removed. The problem is I am not even able to login in my system. When i restarted it is showing "low graphics mode error". I do not know what to do Please help me. I am a beginner to Ubuntu.


Storing a List Iteration in Python3 yields unexpected result

If I execute the following code: l = ["A", "B", "C"] for i in range(len(l)):     e = l.pop(0)     l.append(e)     print(l)  The output is as expected and iterates the list as expected placing the first element at the end: ['B', 'C', 'A'] ['C', 'A', 'B'] ['A', 'B', 'C']  HOWEVER, if I attempt to build a data structure to store the lists: fl = [] l = ["A", "B", "C"] for i in range(len(l)):     e = l.pop(0)     l.append(e)     fl.append(l) print(fl)  The output is not as expected: [['A', 'B', 'C'], ['A', 'B', 'C'], ['A', 'B', 'C']]  Can anyone please explain this?


Convergence of series with $\sin(\sqrt{n})/n$

Here is a series, a friend of mine gave me.  Examine the convergence of the series  $$\sum_{n=1}^{\infty}\frac{\sin(\sqrt{n})}{n}.$$ It is from the book A Garden of Integrals, Frank E. Burk. It is given after the chapter "The Euler Summation Formula". So I am interested in a solution, which avoids this formula, and is, say, more elementary in terms of the tools it uses. Thank you!  EDIT. Thanks for pointing out the earlier question. Sorry that I did not look up. The solution there is very nice. If you find any other solutions, please post them.


I have a custom button on the Product object that I only want to run if the current logged in user is either the record owner, a specific user id, or a sys admin profile. How would I do that? Below is my current code  {!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}  var r = new sforce.SObject("Product2");  r.id = "{!Product2.Id}";  r.Convert_to_Service_Catalogue__c = true;  result = sforce.connection.update([r]);  window.location.reload();  if ( result[0].getBoolean( "success" ) ) {      location.reload( true ); // refresh page  } else {      var errors = result[0].errors;     var errorMessages = "The Lifecycle Status must be Beta, and the following fields must be populated; Name, Unique ID, Jisc Directorate, Include in Dashboard, Service/Project Owner or else this record won't be converted to a Service Catalogue record";      for ( var i = 0; i < errors.length; i++ ) {         errorMessages += errors[i].message + '\n';     }      alert( errorMessages ); // display all validation errors  }


Displays won't sleep while screen-saver is running

So, I've got my screen-saver set to come on after 5 minutes,    … and my display to sleep after 1 hour:    Unfortunately, I get up every morning, and the displays are still running Aerial. I really, really don't want to burn out my expensive 5k monitors by powering them 24/7.  How can I ensure that 1. my computer requires my computer requires my password after a few minutes, 2. my displays don't turn off until they've been idle for a few hours (they take forever to boot back up — ~10 seconds before I can log-in when I sit down), and 3. my displays do turn off after a sufficient idle-period?


How can I simplify $\sum_{k=0}^n a \cdot k \cdot q^k$?

So I recently found out about geometrical series. However now I've got this formula:  $\sum_{k=0}^{n-1} \frac 1 3 k \cdot {\frac 2 3}^k$ is there also a way to simplify this?


Given the URL (single line):   How can I extract the following parts using regular expressions:   The Subdomain (test) The Domain (example.com) The path without the file (/dir/subdir/) The file (file.html) The path with the file (/dir/subdir/file.html) The URL without the path () (add any other that you think would be useful)   The regex should work correctly even if I enter the following URL:    http://example.example.com/example/example/example.html


Picking up money for someone else on Moneygram ? Is it safe?

A close friend of mine asked me if I could pick up money for him using my ID from money gram since he had already exceeded the receiving limit this month. The amount was 500 euros. I just wanted to know if it was safe to do this.


Unable to rename a file, delete, create a new folder, cut, paste in a volume neither by terminal nor by GUI

shubbh@Tuxedo:/media/shubbh/New Volume$ sudo rm resume.pdf abc.pdf rm: cannot remove 'resume.pdf': Read-only file system rm: cannot remove 'abc.pdf': No such file or directory shubbh@Tuxedo:/media/shubbh/New Volume$ sudo mv resume.pdf Songs mv: cannot move 'resume.pdf' to 'Songs/resume.pdf': Read-only file system shubbh@Tuxedo:/media/shubbh/New Volume$ sudo mkdir a mkdir: cannot create directory ‘a’: Read-only file system


Total pages number appears as question mark

In my document, I use this script:  %the template \documentclass{llncs} \usepackage{blindtext} \usepackage{xpatch}  %for foot page numdering \usepackage{fancyhdr}  \renewcommand{\headrulewidth}{0pt} \fancyhf{} \cfoot{\number\value{page} of \pageref{LastPage}} \pagestyle{fancy}   \xpatchcmd{\maketitle}{\thispagestyle{empty}}{}{}{}              %end page numbering  \begin{document}  %\includepdf[pages={17-23}]{master_paper.pdf} \title{Document Title} \author{Name Here} %\\Supervised by: Prof. Cas Cremers \institute{Institution)\\ \email{zz@yy.com}}  \maketitle   \begin{abstract} Abstract goes here.. \end{abstract}   \section Section Here  \end{document}   The problem is that, when I view the document in PDF format, at the buttom of the page, the page numdering does not appear properly. It appears as: 1 of ?? i.e. it does not show the total number of pages as supposed.


Can I get the exit code from a sub shell launched with $(command)?

I am setting a variable like this:  myvar=$(command --params)   I want to check the exit code ($?) of my command afterwards.  Checking $? like this always returns 0 because it successfully set the variable to the output of the command.  Is it possible to get the return value of command?


I need to prove that $$(1+2+{...}+k)^2 = 1^3 + {...} + k^3$$ using induction. So the base case holds for $0$ because $0 = 0$ (and also for $1$: $1^2 = 1^3 = 1$) I can't prove it for $k+1$ no matter what I try! Can you give me a hint?


I know there are multiple packages for typesettings algorithms (algorithmic, algorithmicx, algorithm2e), and some other which are not exactly designed for this exact purpose but can be used as well (listings). What I don't know is which to choose.   What are the pros and cons of the different packages for typesetting algorithms? (I'm asking for an objective survey here.) Are there any clear differences among them? Which one is more "common" in academic papers?


Changing the properties of an edge on a later slide

I am using beamer and TikZ and would like to change the color and thickness of an edge in the second slide of the same frame. Here is what I tried:  \documentclass{beamer}  \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata}  \begin{document}  \frame{     \newcommand*\properties{}     \only<2>{\renewcommand*{\properties}{orange, ultra thick}}     \begin{figure}         \begin{tikzpicture}[node distance = 1.5cm, scale=0.8]          \node (1) {1};         \node[right = of 1] (2) {2};          \path[->]         (1) edge[\properties] (2);          \end{tikzpicture}     \end{figure} }  \end{document}   The strange thing is that when I put only orange or only ultra thick in the definition of \properties, everything works as expected. In addition, if I just put orange, ultra thick together in the bracket that follows edge, it is still fine (and of course in this case the edge has the same look on both slides). But when I have both of them there, an error occurs:     Package pgfkeys Error: I do not know the key '/tikz/orange, ultra thick' and I am going to ignore it. Perhaps you misspelled it.   May I know why this is the case? How should I correct it to achieve the desired result (i.e., the edge turning both orange and thicker on the second slide)? Thank you!


How does tangzhong (water roux) make bread softer?

As I understand it, tangzhong in relation to bread making is an Asian technique in which a portion of the flour in the recipe is pre-cooked with water to make a roux, before being cooled and added to the rest of the ingredients. It is supposed to make the resulting bread very soft, often for days longer than non-tangzhong breads. I thought maybe it works by binding the proteins so gluten development is restricted, but I'd have thought that would inhibit rise, which seems not to be an issue.  Disclaimer: I have not yet made a tangzhong bread, but I believe I have eaten a few... My first attempt is currently doing a bulk rise.  How does tangzhong work exactly? How does it actually change the dough to achieve the distinct softness for which it is so famous?


Limit probability of winning a card game

As mentioned in  question, the probability of winning, with an $n$-card per $k$ suit deck, a counting-up match card game (where you count through each of $n$ cards in order $k$ times and lose if you ever match the card drawn, i.e. you lose if card $i\equiv i \mod k$), is:  $$P(n,k)=\frac{1}{(nk)!}\intop_0^{\infty}x^{nk}R_k\left(-\frac{1}{x}\right)^{n}e^{-x}dx,$$  here $R$ represents a (square)   From my simulations it seems to be that $\lim\limits_{n\rightarrow\infty}P(n,k)$ is well-defined and nonzero for all fixed $k$; what is the limit? I've never been good with factorial limits, let alone with the Rook polynomials involved.


I recently deleted a post after discovering the information in it was irrelevant to others, but I now need to access it as there is relevant information about an ongoing issue I am having with my operating system.  I read  that the post's author has access to the deleted posts:     What happens when a post is deleted?      Once a post has been deleted, it will disappear for all users except   the post's author, developers, moderators, and users with this "access   to moderator tools" privilege. However, deleted posts can be undeleted   by casting undelete votes. Once a post has 3 undelete votes (more for   highly-active questions), it will no longer be deleted.   But when trying to look through my own questions I don't see them.  Is there a way for me to access my deleted posts?


I am searching a command that gives me the file create time in a folder.


How does the tester screwdriver work? If I put the tester screwdriver inside the "hot wire" of an electrical socket, it lits up if I press my finger against the metal cap on top of the screwdriver. This happens also if I stand on a surface of isolating material, such as wood. I read elsewhere that this happens due to stray capacitance formed by the "hot wire", the human body, and the ground. One has  $$ Z = R + \dfrac{1}{j \omega C}  $$  for the impedance, so if C  is high enough, the impedance should be close to r , the "effective resistance" of the formed circuit. Here I get lost; why r  is small enough to cause a current in the range of mA  even if I stand on an isolating surface?  So really what I am asking is how one may represent the system hot wire - screwdriver - human body - wooden floor - building - ground as an electrical circuit, and which parts of the physical system contribute to the resistance, capacitance (and inductance?) and in which proportion, even very approximately.


In Windows 10 Resource Monitor I found that the system process is constantly writing C:\ProgramData\Microsoft\Windows\wfp\wfpdiag.etl at like 30-100KB/s. This equals 1TB write/year which is not healthy for SSD. There are other log write like C:\Windows\System32\LogFiles*** too.   Although logs is needed for diagnostics, it's better to be turned on only when problem has already occured.  Is it possible to disable as much system logs as possible to decrease garbage write amoung to SSD?


int e=0; int Compatibility=0; int numOfDisagreements=0; int tsize=likes.size()+dislikes.size(); int numOfCommonLikes=0; int numOfCommonDislikes=0; while(e<tsize){     if (user.likes.get(e).equals(Stranger.likes.get(e))){         if ((Stranger.howDoYouLike(likes.get(e)))== 1 && user.howDoYouLike(likes.get(e))==1)         {             numOfCommonLikes=numOfCommonLikes+1;         }     }     else if (user.dislikes.get(e).equals(Stranger.dislikes.get(e))){         if ((Stranger.howDoYouLike(dislikes.get(e)))== -1 && user.howDoYouLike(likes.get(e))==-1)         {             numOfCommonDislikes=numOfCommonDislikes+1;         }   Am getting a nullpointer error, I don't know what that means but can someone tell me what is wrong with this code please, I am looking real hard      else      {         numOfDisagreements=numOfDisagreements+1;     }          e+;     }      Compatibility=(numOfCommonLikes+ numOfCommonDislikes)- numOfDisagreements;     return Compatibility; }


Why didn't Briar Cudgeon disappear from the Time Stop?

In Book 1, Artemis et al escaped from the time stop by drugging themselves to sleep.  In the same time stop, Julius Root "accidentally" plugged Briar Cudgeon with a tranquilizer dart.  Cudgeon fell asleep, but did not disappear from the time stop.  Why not?


How to "create" millimeter paper using pfgplots?

I want to replicate some graphs that I drew by hand on millimeter paper. Here is a picture:    My current code is as follows (I didn't worry about the data yet):  \documentclass{report}  \usepackage{pgfplots} \usepackage{siunitx}  \begin{document}  \begin{tikzpicture}[scale = 2]             \begin{axis}[                 axis lines = middle,                 xlabel = t\lbrack\si{\second}\rbrack,                  ylabel = x\lbrack\si{\metre}\rbrack,                  x label style = {anchor = north west, font = \scriptsize},                 y label style = {anchor = north east, font = \scriptsize, shift={(0,0.5cm)}},                 xtick = {0,10,...,20},                 minor xtick = {1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19},                 ytick = {0,10,...,20},                 minor ytick = {1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19},                 tick style = {line width = 0.3pt},                 ticklabel style = {font = \tiny, fill = white},                 axis line style = {-latex},                 grid = both,                 ymin = 0,                  ymax = 21,                  xmin = 0,                  xmax = 21,                 ]                 \addplot[                 only marks,                 mark size = 2,                 black,                  error bars/.cd,                  y dir = both,                  x dir = both,                  y explicit,                  x explicit                 ]                 %table[x= temp, y = temp, x error = temp, y error = temo]                 %{\datafile};                 coordinates {(6.4,7.2) +-(1,0.5)};             \end{axis}         \end{tikzpicture} \end{document}   (Note that I used dummy values, coordinates, sc and variables; they aren't important right now).  By setting the major and minor grid style I was able to get thick lines on my labeled coordinates and thin lines in between:  \pgfplotsset{minor grid style = {line width = 0.1pt}} \pgfplotsset{major grid style = {line width = 0.4pt}}   But this is where I get stuck. There are several things that I'm not able to do by going this route:   I need major grid lines every centimeter, independent of the label. On millimeter paper there are 3 grids; besides the major one with 1cm spacing and the minor one with 1mm spacing, there is a third one every 5mm (with a thickness somewhere between the 2 grids). Using pgfplots I am only able to edit the major and minor grid styles, but I can't seem to find a way to add further grids to a certain graph. Display the plot in "landscape mode" so that it takes up the whole page, as shown in the picture.   I'd appreciate it if somebody could help me out with those issues.  Thanks!


Why are the mesh faces different colors?

In the 3D View window the mesh I am modeling appears with two different colors.  The final render has one color.    it's my first day learning blender and I'm following a tutorial to create a house model. In the tutorial the different faces of the house are all the same color, but my faces are having two different colors. I'm wondering why was there a color applied and what does it mean? When I render the model it's all the same color.


Replacing non-English characters in attribute tables using ArcPy and Python?

I have a few shapefiles where some of the attributes contain the non-English characters ÅÄÖ. Since some queries doesn't work with these characters (specifically ), I tried to change them in advance with a simple script and add the new strings to another field.  However, change in characters works fine but not updating the field with arcpy.UpdateCursor.   What is an appropriate way of solving this?  I have also tried to do this via the Field Calculator while posting "code" to the codeblock, with the same error.  Error message: Runtime error  Traceback (most recent call last):   File "", line 1, in    File "c:/gis/python/teststring.py", line 28, in      val = code(str(prow.Typkod)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 3: ordinal not in range(128)  Code:  # -*- coding: cp1252 -*- def code(infield):     data = ''     for i in infield: ##        print i         if i == 'Ä':             data = data + 'AE'         elif i == 'ä':             data = data + 'ae'         elif i == 'Å':             data = data + 'AA'         elif i == 'å':             data = data + 'aa'         elif i == 'Ö':             data = data + 'OE'         elif i == 'ö':             data = data + 'oe'         else:             data = data + i     return data   shp = r'O:\XXX\250000\DB\ArcView\shape.shp'  prows = arcpy.UpdateCursor(shp)  for prow in prows:     val = code(unicode(str(prow.Typkod), "utf-8"))     prow.Typkod_U = val     print val     prows.updateRow(prow)   The values of Typkod are of the type: [D, D, S, DDRÄ, TRÄ] etc.  I use ArcMap Basic (10.1) on Windows 7.    New Error message:  Runtime error  Traceback (most recent call last):   File "", line 1, in    File "c:/gis/python/teststring.py", line 29, in      val = code(unicode(str(row.Typkod), "utf-8")) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 3: ordinal not in range(128)  >>> val 'DDRÄ' >>> type(val) type 'str'      It appears as if the output from the function is wrong somehow. When there's ÅÄÖ involved it returns data = u'DDR\xc4' and not (as was my intention) data = 'DDRAE'. Any suggestions on what might cause this?


Upgraded to windows 10 but now I want to swap out my hdd for an SSD. How can I still get windows 10?

Trying to do this in my laptop. Do I have to call microsoft? Laptop actually came with vista, but I had a free upgrade to 7 since it came out a couple months after I got the laptop.


How can I set a command block to /say something when a player stands on a certain set of coordinates?

Sorry for the simple question, but I can't find this anywhere after quite a few searches. I have a statue on my server and I would like it if text came up as a caption for any player approaching it on a single-block pedestal in front of it. Right now I have /execute if entity @a[x=-920,y=61,z=446] run say test, but that spams the message over and over again no matter where the player is. The command block is set to 'repeating', 'unconditional', and 'always active'. Setting it to 'conditional' doesn't allow it to work at all. Am I approaching this the wrong way?  Thank you!  EDIT: I think that my question is different than the ones testing to see if a mob is at a certain location because I am specifically asking for advice on how to execute the 'say' command when the circumstances are met. That being said, the answers in the other thread helped a lot, so it marking my thread as a duplicate may be the best option.


I would like to convert   var delta = TimeSpan.FromSeconds(10);   to string like 00:00:01  I try this delta.ToString(@"0:\\hh\\:mm\\:ss", System.Globalization.CultureInfo.InvariantCulture);  But nothing is working fine.  Also I cannot find here  correct way to do it.  Method ToString() does not help so i need in format lie hh:mm:ss.   Any clue?


If $S$ is a non-empty set, then we can take $r$ such that $r \in S$. Why do we need the axiom of choice?

If $S$ is a non-empty set, then we can take $r$ such that $r \in S$.   Suppose that for any $a \in A$, $S_a$ is a non-empty set. Then, we can take $r(a)$ such that $r(a) \in S_a$ for any $a \in A$.     Why do we need the axiom of choice in 2.?  What is the difference between 1. and 2.?    Do I need to study basics of axiomatic set theory to appreciate the axiom of choice?


Prove that a subgroup is dense in $\mathbb{R}$

Let $G$ be a subgroup of $(\mathbb{R}, +)$. Prove that $G$ is dense in $\mathbb{R}$ or any element in $G$ has the form $a\mathbb{Z}$, with $a \in \mathbb{R}$. (We denote that a group $G$ is dense in $\mathbb{R}$ if any element in $\mathbb{R}$ is the limit of a sequence of elements from $G$)  I haven't done anything notable yet.  Thank you!


Why cant i select an  added via .append?

When i add an
 with the css below i can select the item but if i add it using .append i cannot what am i doing wrong?

Opt 1

   .  $('ul.select li').click(function(e){   var item = $(e.target);   item.addClass('selected');   item.siblings().removeClass('selected');   $('#events').val(item.text()); });  $('#events').append('
Opt 2
');   .  ul.select {    list-style: none;    margin:  0;    padding: 2px;    height:50vh;    overflow-x: hidden;    border: 1px solid grey;    width: 50vw;    background-color: black;    color: white }  ul.select li {    padding: 2px 6px; } ul.select li:hover {    cursor: pointer; } ul.select li.selected {    background-color: lightgrey;    color: black; }   See  for example of issue.


What is the order of operations for $p \implies q \implies r$

I've been studying mathematical logic recently and we have briefly covered the order of operations for operators like AND/OR/IMPLIES, etc.  However, we have a challenge question regarding how the following statement should be interpreted in terms of order of operations, and I don't believe we have covered this material nor can I find the same question answered online.   The statement is $p \implies q \implies r$  The question asks if the above statement is correctly represented by $(p \implies q) \implies r$, or $p \implies (q \implies r)$, or neither - i.e. what is the correct order of operations when there are no brackets and the two logic operators are equally weighted.  I have used a truth table to determine that the above two statements are not equivalent, but are either the logical equivalent to the first statement, or neither?


How did J.J. Thompson decide that the electron was negative charge?

I read Ben Franklin had it wrong by stating "current is the flow of positive charge". Right from the start Ben Franklin could have easily decided to say that current is the flow of negative charge.   So why is it that when J.J Thompson discovered the electron the physics community decided the correct elementary particle that moves is negative?  Why could they not have said it was just positive and be consistant with what Ben Franklin said?  Today we compensate by having the positive move in reverse so the negative turns out to be moving in the "forward" direction. Is there something really fundamental about the electron that it must be called negative instead of positive perhaps?


The problem  I've got a simple question: what's the difference between ejecting  using  (formerly known as ) button (see image below) and  command?    Before you will read rest of this question I encourage you to think if you expect any difference between results of clicking eject button in  and typing  command? If yes, then what's the difference? If no, then read on...    1st try:  eject  When I insert my  to my computer's USB socket,  automatically mounts it, which is reflected both in :    and command line using e.g.  command:  me@host:~$ df -h Filesystem      Size  Used Avail Use% Mounted on (...) /dev/sdf1       3,6G  3,6G     0 100% /media/me/Debian 9.1.0 amd64 1   or  command:  root@host:~# blkid (...) /dev/sdf1: UUID="XXXX-XX-XX-XX-XX-XX-XX" LABEL="Debian 9.1.0 amd64 1" TYPE="iso9660" PTUUID="XXXXXXXX" PTTYPE="dos" PARTUUID="XXXXXXXX-XX" /dev/sdf2: SEC_TYPE="msdos" UUID="XXXX-XXXX" TYPE="vfat" PARTUUID="XXXXXXXX-XX"   When I click eject button marked with a red circle:    and I run those commands once again, there is no sdf string in commands' output (which is probably what I should expect after ejecting /dev/sdf1):  root@host:~# df -h | grep sdf root@host:~# df -ah | grep sdf root@host:~#   Note that I added -a (--all) flag to df command and I got the same (empty) result.  root@host:~# blkid | grep sdf root@host:~#   Note that now I'm unable to remount /dev/sdf1 without reinserting my flash drive:  root@host:~# mkdir -p /mnt/test root@host:~# mount /dev/sdf1 /mnt/test mount: special device /dev/sdf1 does not exist     2nd try:  command  Now repeat the hole procedure with only changing the way I unmount my flash drive. Instead of clicking eject button, I type:  umount /dev/sdf1   Here is the result of :  root@host:~# df -h | grep sdf root@host:~# df -ah | grep sdf root@host:~#    result is probably as expected because it's the same as above... but here comes the :  root@host:~# blkid | grep sdf /dev/sdf1: UUID="XXXX-XX-XX-XX-XX-XX-XX" LABEL="Debian 9.1.0 amd64 1" TYPE="iso9660" PTUUID="XXXXXXXX" PTTYPE="dos" PARTUUID="XXXXXXXX-XX" /dev/sdf2: SEC_TYPE="msdos" UUID="XXXX-XXXX" TYPE="vfat" PARTUUID="XXXXXXXX-XX"   Note that remounting works fine in opposite to the previous try:  root@host:~# df -h | grep sdf root@host:~# mkdir -p /mnt/test root@host:~# ls /mnt/test | wc -l 0 root@host:~# mount /dev/sdf1 /mnt/test mount: /dev/sdf1 is write-protected, mounting read-only root@host:~# ls /mnt/test | wc -l 24     The question  Why is that?  What is the precise, underlying reason of above differences in  output? Does  do something more than  command? It seems to me that  eject button is kind of 'permanent' unmount. Why?


The above table is from   \documentclass[a4paper,oneside,12pt]{report} \begin{document} \begin{small} %\begin{sidewaystable}[h] \begin{table}[htp] %\restylefloat{table}  \centering\small\setlength\tabcolsep{3pt}  %\centering \footnotesize\setlength{\tabcolsep}{0.5pt} %\toprule \hspace*{0cm}\begin{tabular}{l@{\hspace{3pt}} *{15}{c}}  %\begin{tabular}{l@{\hspace{1pt}} *{12}{c}} \hline \hline  %\bfseries cluster& \multicolumn{6}{c}{\bfseries previous study}& \multicolumn{6}{c}{\bfseries present study}\\           \hline clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\           &        &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\          \hline \bfseries Berkeley 53          &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\ \hline \hline %\toprule \end{tabular}\hspace*{0cm} \caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber} %\end{sidewaystable} \end{table} \end{small} \end{document}     I want table like in the picture.


I added some legs to a Blender model and now the bones do not move the mesh, what did I do?

So this is the first time I've done this in Blender opposed to using PMX Editor. I wanted a model to have legs and a skirt instead of the jeans she originally had so I added them and removed the bones that came with the legs. I have deleted the extra vertex groups it created and now none of the bones work.  How do I go about fixing this? I have included the Blender file. Any help would be absolutely amazing.


How can I stream the same music to multiple computers?

Is there a way to stream the same playlist on multiple computers at the same time? I want to be able to sync what's playing on multiple computers (for parties etc).


Ubuntu desktop with 12.04 is about to crash.  Installed 13.04 on a new machine, want to transfer Book Antiqua font from old machine to the new one.  How do I find it on the old machine?  My /usr directory is empty. My fonts.conf file has these lines: <!-- Font directory list --> <dir>/usr/share/fonts</dir> <dir>/usr/x11R6/lib/X11/fonts</dir>  <dir>/usr/local/share/fonts</dir> <dir>~/.fonts</dir>  Don't know what this means, but my /usr directory has nothing in it.


Evaluating $\int \sqrt{\frac{5-x}{x-2}}\,dx$ with two different methods and getting two different results

I tried Evaluating $\int \sqrt{\dfrac{5-x}{x-2}}dx$ using two different methods and got two different results.  Getting two different answers when tried using two different methods:-  M-$1$:  $$\int \dfrac{5-x}{\sqrt{\left(5-x\right)\left(x-2\right)}}dx$$ $$\dfrac{1}{2}\int\dfrac{-2x+7}{\sqrt{\left(5-x\right)\left(x-2\right)}}dx+\dfrac{3}{2}\int\dfrac{dx}{\sqrt{\left(5-x\right)\left(x-2\right)}}$$ $$\sqrt{\left(5-x\right)\left(x-2\right)}+\dfrac{3}{2}\int\dfrac{dx}{\sqrt{-x^2+7x-10}}$$  $$\sqrt{\left(5-x\right)\left(x-2\right)}+\dfrac{3}{2}\int\dfrac{dx}{\sqrt{\left(\dfrac{3}{2}\right)^2-\left(x-\dfrac{7}{2}\right)^2}}$$  $$\sqrt{\left(5-x\right)\left(x-2\right)}+\dfrac{3}{2}\sin^{-1}\dfrac{x-\dfrac{7}{2}}{\dfrac{3}{2}}$$  $$\sqrt{\left(5-x\right)\left(x-2\right)}+\dfrac{3}{2}\sin^{-1}\dfrac{2x-7}{3}$$  M-$2$:  $$x=5\sin^2\theta+2\cos^2\theta$$ $$dx=\left(10\sin\theta\cos\theta-4\cos\theta\sin\theta\right) \, d\theta$$ $$\int \sqrt{\dfrac{5\cos^2\theta-2\cos^2\theta}{5\sin^2\theta-2\sin^2\theta}}\cdot6\sin\theta\cos\theta \,d\theta$$ $$6\int \cos^2\theta \,d\theta$$ $$\int 3\left(1+\cos2\theta\right) \,d\theta$$ $$3\left(\theta+\dfrac{\sin2\theta}{2}\right)$$ $$3\theta+\dfrac{3}{2}\sin2\theta$$  $$x=5\sin^2\theta+2-2\sin^2\theta$$ $$\sin^{-1}\sqrt{\dfrac{x-2}{3}}=\theta$$  $$\cos2\theta=1-2\sin^2\theta$$ $$\cos2\theta=1-2\cdot\dfrac{x-2}{3}$$ $$\cos2\theta=\dfrac{7-2x}{3}$$  $$3\sin^{-1}\sqrt{\dfrac{x-2}{3}}+\dfrac{3}{2}\cdot\dfrac{\sqrt{9-(49+4x^2-28x)}}{3}$$ $$3\sin^{-1}\sqrt{\dfrac{x-2}{3}}+\sqrt{\left(5-x\right)\left(x-2\right)}$$  In first and second method I am getting the different results of $\dfrac{3}{2}\sin^{-1}\dfrac{2x-7}{3}$ and $3\sin^{-1}\sqrt{\dfrac{x-2}{3}}$ respectively. I checked that these are not inter-convertible. Why am I getting this difference?


Can "at all" be used in an affirmative sentence?

The real risk of cbdcs to the financial system may be that they eventually precipitate a new kind of run: on the idea that banks need to exist "at all". What does 'at all' refer to here? Does it give the sentence a negative meaning?


So I'm running a fresh install of Win8 on a 60gb SSD with a another 300HDD for storage. I have set a 20gb space for the installation of Ubuntu alongside Win. The issue is when I run the DVD with Ubuntu for installation it shows that there is no other OS even though I just restarted from windows desktop... I don't have secure boot and my fast start up is turned off. Mobo is a Sabertooth 990FX R2.0


I was poking through the settings in unity tweak tool, adjusted a few things just to see what they did. Like window behavior on sides/corners multi desktops (forgot what they are called in ubuntu)  The very last thing I touched was the reset button and it broke it. My top bar is now gone, the launcher is gone, and the super key wont start a search. I have tried a ton of things I've read to fix it without luck, will list what I have tried.  tried reseting unity "unity-tweak-tool --reset-unity" it asks me to log out and back in which I am not sure how to do via terminal as I have no top bar to do the normal way. I logged out by using sudo service lightdm reset but I dont know if that is correct, it got me back to the login screen but upon log in everythings the same.  I tried running unity via terminal and get: unity-panel-service stop/waiting unity7 stop/waiting unity-panel-service start/running, process 3102 unity7 start/running, process 3104  those numbers change sometimes but it never works, screen flashes a bit, some windows come and go but then in the end nothing stays.  I went to restore from back in time but through terminal it says its not configured which i dont understand because I had it doing daily backups with back in time root. Which I watched it do the first one but now cannot find.  Any help is appreciated.


Why I get the same predict value in Arima model?

I am really don't know what I am missing. So, please help me.  I am doing a time series analysis. What I want to do is find the predicted values.  Here is my data.  848852  705558  829983  761070  826599  795067  840063  764453  885627  797778  781298  915712  810750  701044   I know this is a really small sample to doing time series analysis. But I tried.  I did it unit root test. Through that, I found my data is stationary data.  And I couldn't find seasonal after checking the plot.  Actually, I don't know how to find a seasonal unit root using r. I just guess checking the graph.  So, if you know how to find the seasonal unit root, let me know. I would really appreciate it.  Anyway, I got the predicted values using the Arima model. And the values I get from the Arima model is following.  852427.0 785296.3 815065.3 801864.3 807718.3 805122.3 806273.5 805763.0  805989.4 805889.0 805933.5 805913.8 805922.5 805918.6 805920.4 805919.6  805919.9 805919.8 805919.9 805919.8 805919.8 805919.8 805919.8 805919.8   As you can see, from the 20 value, the values are the same.  Why does this problem happen?  What should I do to solve this problem??  To sum up, Here is my question.   Q1. What is the minimum sample size to do a time series analysis? Q2. To find the seasonal unit root, how can I do it in R? Q3. Why do I get the same predicted values? To solve this problem, what should I do?     P.S.  Here is my R code.  a1 <- scan()  848852  705558  829983  761070  826599  795067  840063  764453  885627  797778  781298  915712  810750  701044  library(tseries)  library(astsa)  library(forecast)  plot.ts(a1)  adf.test(a1)  acf2(a1)  result = matrix(NA, 324, 2)  air <- 0  num <- 1   for(i in 0:5) {    for(j in 0:5) {      tryCatch({        ari <- Arima(a1, c(i, 0, j))      }, error = function(e){})      result[num, 1] <- ari$aic      result[num, 2] <- ari$aicc      num <- num+1    }  }  which.min(result[,1])  where <- data.frame(rep(0:5, each=6), rep(0:5))  where[2,]  # the result is (0,1)  ari1 <- Arima(a1, c(0, 0, 1))  pre <- predict(ari1, n.ahead = 12*2)  pre$pred


Find the product $\prod_{n=1}^{\infty} (1+x^{2n-1}) $ , for example in case $|x| \le 1$


equals method in Linked_list always return false

I am creating an equals method in my linked list which will take a parameter a linked list in the same type. My linkedList has 2 attributes: a CellNode and as usual there is also a head attribute. In my CellNode, there is an object of CellPhone inside. The problem I am having is this equals method always return false when it calls the "smaller" equals method of CellPhone class.  I have tried create 1 linkedlist and then one linked list from clone method but it doesn't work either. And I see nothing can cause problem from the equals method of CellPhone. I tried to compare 2 CellPhone with each other and it works as expected but it shows unexpected result with linked list  Here is the "smaller" equals method inside CellPhone class      public boolean equals(Object obj) {         if((obj == null) || (obj.getClass() != getClass())) {             return false;         } else {             CellPhone cellObj = (CellPhone)obj;             System.out.println(cellObj + " comparing with " + this) ;             if ((this.getBrand() == cellObj.getBrand()) &&                 (this.getPrice() == cellObj.getPrice()) &&                 (this.getYear() == cellObj.getYear()))             {                 System.out.println("equal");                 return true;             } else {                 System.out.println("not equal from CellPhone object");                 return false;             }         }         }   Here is my equals method in Linked list:  public boolean equals(CellList passed) {         CellList other = new CellList(passed);         if(other.size() != passed.size()) {             return false;         }         CellNode index = head;         CellNode otherIndex = other.head;         while(index != null) {             if(index.cell.equals(otherIndex.cell) == false) {                 System.out.println("Not equal from linkedList");                 return false;             }             index = index.next;             otherIndex = otherIndex.next;         }         return true;     }      I am testing by this inside main driver:  //testing         CellList Alist = new CellList();         CellList fake = new CellList();         CellPhone c1 = new CellPhone(1119000, "SonyEricsson", 2009, 347);         CellPhone c2 = new CellPhone(1116700, "Nokia", 2011, 500);         Alist.addToStart(c1);         Alist.addToStart(c2);         //adding element for the fake list         fake.addToStart(c1);         fake.addToStart(c2);         //Comparing         System.out.println(Alist.equals(fake));    I would expect the result comes out as true because I add the same 2 CellPhone objects, but it actually outputs like this:  [1116700: Nokia  500.0$ 2011] comparing with [1116700: Nokia  500.0$ 2011] not equal from CellPhone object Not equal from linkedList false   So it prompts out the not equal line from the CellPhone class although all the attributes were the same. What am I missing here? Thank you


I accidentally used xkill on my desktop - how can I get it back?

I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.  Is there a command that will get them back? I'd rather not restart.  I'm using GNOME and GDM.


Cloud Page Journey Receives Email Send Error

I have a CloudPage that is populating a Journey when people sign up to simply send them an email. The problem is that when they fillout the form since they are not a member of our All Subscribers list they are being errored out with this message.  Failed - Email.JourneyBuilder.Activities.EmailActivity.EmailAddress: Error binging data bound member  I tried re configuring the data extension to make sure the field type was set to email, as well as having the data extension the CloudPage drops into set as sendable. I've also made sure I was sending into a publication list as apposed to All Subscribers, but I am still running into these errors. I have other Journeys running that can execute email sends but this is the only CloudPage Journey we have running.  Any help would be greatly appreciated!


Can I upgrade from Windows 7 32bit to 64bit without formatting?

My friend installed Windows 7 on his computer (upgrading from XP).  He wasn't sure if his processor supported x64 or not, so he installed the x86 version, just to be on the safe side.  After I looked it up, it turns out his processor does support x64, and now we want to upgrade.  The question is: is it possible to upgrade without completely re-installing the OS?  Can I? Or do I have to format the C: partition again?


How can Python consume a quoted argument from a shell variable?

I am trying to parametrize a call to pytest like this:  export OPTIONS="tests -k 'not e2e'" pytest ${OPTIONS}   The pytest call fails because of the quotes in the variable. Putting the options directly in the call works fine.  I tried:  pytest ${OPTIONS}  ERROR: file not found: tests -k 'not e2e'  pytest $(eval echo "${OPTIONS}") # removes all quotes ERROR: file not found: e2e  pytest $(printf %s ${OPTIONS})   How can I make the pytest call work in a parametrized way?  UPDATE  This  contains a solution that works:  eval "OPTIONS=($OPTIONS)" # (opt.) convert an existing string to an array  export OPTIONS=(tests -k 'not e2e') pytest "${OPTIONS[@]}"   Thank you very much for pointing that out. I was already searching for hours.


I just want ask how the socket in the image is called?   I couldn't really find and the closer I could get is only Raspberry's module.


Two equivalent definitions of the coLie sheaf for a family of elliptic curves

Let $f: E\rightarrow S$ be a family of elliptic curves, i.e. a proper flat morphism of schemes whose geometric fibers are genus $1$ curves, along with a section $e:S\rightarrow E$. Then there is an invertible $\mathcal O_S$-module $\omega = f_*\Omega^1_{E/S}$ on $S$, sometimes called $\mathrm{coLie}(E)$ because at $s\in S$ the fiber of $\omega^{-1}$ at $s$ is the Lie algebra of the elliptic curve $E_s$. I've seen it claimed that $\omega\cong e^*\Omega^1_{E/S}$, though it's not clear to me why this is true, or how even to define a map $f_*\Omega^1_{E/S}\rightarrow e^*\Omega^1_{E/S}$. I'd appreciate an explanation of why this isomorphism holds (or a reference giving such an explanation). Thanks!


cumulative distribution functions (CDFs)

i want to know why is important use CDF for this analysis of TMY (typical meteorological year) because i have the data of the month for compare with the long term mean  This the example of the manual      I have 2 CDF's with equal number of points that I want to compare. These are from:  Temperature of 1 month from 2012  Mean temperature across months  What can I do to obtain this difference, this is from the formula of Finkelstein-Schafer??  the manual is this manual


Extract substring between two different characters using a python regular expression

I'd like to use a python regular expression to extract the substring between two different characters, > and <.  Here are my example strings:
Foobar:

Python
   My current regular expression is \>(.*)\< and matches:   Foobar Python   My re matches the first example correctly but not the second one. I want it to return "Python". What am I missing?


I want to install pgfornament package. I have TeX Live 2013 installed on my Windows 8.1 system. Now, I downloaded the pgfornament package and copied the .sty file to the path  C:\texlive\2013\texmf-dist\tex\latex\pgfornament   but yet I get the error in Texmaker that the pgfornament.sty file is not found. What should I do?


TryParse not working properly to convert joined date like "270619"

The problem is to convert a random formatted (12/08/12-08-2019/12AUG/120819 etc) into DateTime. Since format is not fixed I'm using TryParse, it does work for normal cases but not for "120819".  string text="270619";  DateTime dt=new DateTime();  Thread.CurrentThread.CurrentCulture=CultureInfo.GetCultureInfo("en-IN");  var result= DateTime.TryParse(text,CultureInfo.CurrentCulture,DateTimeStyles.None,out dt);  Console.WriteLine(dt);   Expected date should be 27-06-2019 00:00:00  Edit: Currently I'm using formats={"ddMMyy","ddMMyyyy"} and its working, but TryParseExact then fails for the other format like dd-MM-yyyy. Guess I need to write down all the possible formats in there. Or use if else case using both TryParse and TryParseExact.


Editing network interfaces without system rebooting

I'd like to make some changes to my networking configuration by editing my /etc/network/interfaces file. What's the cleanest way to make changes to this file and have them take effect, without having to reboot? Typically, I've been doing:   Edit the file service networking restart   But I have the impression that this isn't the "right" way to make these kinds of changes.


Can I downgrade my Nexus One from Android 2.3.6 (Gingerbread) to Android 2.2 (Froyo)?

So I was wondering whether it's possible to downgrade my old Nexus One which is currently on gingerbread back to Froyo. If so, how do I go about this? I don't know much about downgrading on Android, but I think I have to root the device first and then flash a stock ROM. If that's the case, where could I find Android 2.2 ROM for my Nexus One? Any help is appreciated.


Extending a map $\langle a \rangle \to \mathbb{Q}/\mathbb{Z}$ to $A \to \mathbb{Q}/\mathbb{Z}$ for $A$ an abelian group

In an exercise I am doing I have an abelian group $A$ and $a \in A$.  I have to find a homomorphism $$ f: \langle a \rangle \to \mathbb{Q}/\mathbb{Z} $$ such that $f(a) \neq 0$ and then extend this map to  $$ f': A \to \mathbb{Q}/\mathbb{Z}.  $$  I was trying to prove this by considering , but this seems to be not the right approach... I would appreciate explanation on how I can do this. Thank you.


Ubuntu 14.04: setting environment variables

I need set environment variables for Android Studio project EVERY TIME when reboot or close terminal. (Ubuntu 14.04) For setting variables I use:  export KEYSTORE_NAME=/home/anna/Documents/keys/NAME.keystore  export KEYSTORE_NAME_PASSWORD=PASSWORD export KEY_NAME_ALIAS=NAME export KEY_NAME_PASSWORD=PASSWORD   How can I set there variables forever?


Guide for when a word ends in 'or' or 'er'

Is there a rule or guideline for when a word ends in 'or' or 'er'? For instance teacher vs professor.


Why do I get a Null Pointer Exception for an object Array?

I want to create an ArrayList of type Card  My Card class will have 2 instance variables of type Suit called suit and of type String called rank. The type Suit is its own subclass with 2 instance variables of type String called suitTitle and type Boolean called selected.  My card Class looks like this  public class Card { public Suit suit; public String rank;   With the constructor and all the obvious getters and setters  My Suit Class looks like this  public class Suit { public String suitTitle; public Boolean selected;   With the constructor and all the obvious getters and setters  When creating the cards First I need an Array of Suit type that will look like this  Suit[] suit = new Suit[4]; suit[0].suitTitle = "Spades"; suit[1].suitTitle = "Hearts"; suit[2].suitTitle = "Clubs"; suit[3].suitTitle = "Diamonds";   But when trying to put in the values, I get a nullpointer exception


Extracting lines from a file based on two columns in another text file


Is it useful to test the return of "new" in C++?

I usually never see test for new in C++ and I was wondering why.  Foo *f = new Foo;  // f is assumed as allocated, why usually, nobody test the return of new?


Creating a shortcut to a program on thumb drive without drive letter

Is there a way to create a shortcut to an EXE on a USB thumb drive that will work no matter what drive letter is assigned to the thumb drive?  I have a program in a folder on a thumb drive.  I want to create a shortcut in the root of the thumb drive that points to the program's EXE and will work no matter what drive letter is assigned to the thumb drive.  How can I do this?


Stackoverflow Up vote counting time 14 hours

This is my 1st post in "". I notice that in "" the daily "up vote" limit is 40, and if a user complete his daily limit, the next 40 "up vote" will start after 14 hours. Here i want to say that, i know "" maintain his time according "UTC time". But my question is if a person complete his daily limit, does the count down start just after finishing his task or it regulated by fixed "UTC time"? Hope you understand my question.  -Thanks in advance.


How exactly did statisticians agree to using (n-1) as the unbiased estimator for population variance without simulation?

The formula for computing variance has $(n-1)$ in the denominator:  $s^2 = \frac{\sum_{i=1}^N (x_i - \bar{x})^2}{n-1}$  I've always wondered why. However, reading and watching a few good videos about "why" it is, it seems, $(n-1)$ is a good unbiased estimator of the population variance. Whereas $n$ underestimates and $(n-2)$ overestimates the population variance.  What I'm curious to know, is that in the era of no computers how exactly was this choice made?  Is there an actual mathematical proof proving this or was this purely empirical and statisticians made A LOT of calculations by hand to come up with the "best explanation" at the time?   Just how did statisticians come up with this formula in the early 19th century with the aid of computers? Manual or there is more to it than meets the eye?


How do i insert a # in a bibtex entry.. seem to be impossible it does not recognize the \# or # as simple hashtag (#)..  @ONLINE {DMA,     title = "AR# 57550 - Example Designs - Designing with the AXI DMA core",     month = "aug",     year  = "2015",     url   = "http://www.xilinx.com/support/answers/57550.html" }


Suppose a series $a_n$ is greater than 0 for all positive integer n, and that $\sum \frac {a_n} n$ converges, then does the following also converge?

I was wondering if the following is true. Suppose a series $a_n$ is greater than 0 for all positive integer n, and that $\sum \frac {a_n}n$ converges, then is $\displaystyle \lim_{m\to \infty}\sum_{n= 1}^m {a_n \over m+n} = 0$? It seems to be true because if $\sum {a_n\over n}$ converges, then that means that ${a_n\over n }\to 0$ for $n\to \infty$. This means, neglecting $n$, ${a_n \over m+n}$ will also tend to 0, and thus the summation would be equal to 0, but I don't know if this is true.


Ubuntu 18.04 LTS install from USB - How to make bootable USB on Windows?

Just downloaded Ubuntu 18.04 LTS Desktop ISO file and I want to install from USB.  Do I need to uncompress the ISO file on to the USB, to make it bootable?


Can we go from equations of motion back to Lagrangian?

We always go in one direction, from Lagrangian to equations of motion (classical mechanics). But is it possible to go the opposite way, from equation of motion to Lagrangian? Suppose we have an equation of motion $$ f(q,\dot{q},\ddot {q})=0. $$ Is there a way to tell if there exist a Lagrangian that generates the equation of motion? And if there is one, how can we find it? (I am aware it is not going to be a unique solution)


I'm little puzzled with square roots basics which says that square root of a squared number is absolute value of that number. I was in a impression that it would have both positive and negative roots.For example  The Basic says: $\sqrt{2^2} = |2| = 2$  While I think that: $\sqrt{2^2} = \sqrt{4} = 2$ or $-2$.


Can't find the Eclipse that was installed by Eclipse installer

I downloaded an installer from  and run eclipse-inst. It showed a dialog to select an IDE to install, I selected Java and installed it in /root/java, then it showed me a button to launch it... I launched it and it opened the IDE, but when I closed the IDE, I couldn't find it anywhere in my computer using search. I also hadn't access to /root/  How can I uninstall it?  How could I install such programs correctly? Did I make a mistake?


I need to set up a SQL Server Audit to capture all database activity for all logins except one - the login our application runs under. In this case the login I want to exclude is CPSDOM\cpointedb.  In SQL Server Management Studio under 'Security / Logins' I see the login CPSDOM\cpointedb. But, when I look under 'Databases / dbName / Security / Users', I do not see the user CPSDOM\cpointedb.  When I set up my Database Audit Specification I also do not see a CPSDOM\cpointedb user. I was hoping to see this user listed in the Database Audit Specification so I could check all the users except that one.  Is there a different (better) way to do this? All I want to do is set up an audit that excludes one user.  I like the idea of just auditing all users (public) in the audit and excluding CPSDOM\cpointedb from the analysis, but I am concerned this may cause performance problems. Is that a valid concern?


How to add root permission to some app by myself?

Is there any way that I intentionally grant root permission to some app? Not automatically via SuperSU when a specific app asks for root permission, but in a way to pick an app via some tool and grant it root permissions.   For example, I add my favourite text app to the approved list and then I can open root files via that app.


Showing that this set of functions is a group.

I have trouble understanding the following task:     Show that the set $X = \{f_1,\ldots ,f_6\}$ of functions $f_i : \Bbb Q\setminus \{0,1\} \to \Bbb Q\setminus \{0,1\}$ with   $x ↦ f_1(x) = x$,$x ↦ f_2(x) = 1/x$,$ x ↦ f_3(x) = 1-x,$ $x ↦ f_4(x) = 1/(1-x)$,$ x ↦ f_5(x) = (x-1)/x$, $x ↦ f_6(x) = x/(x-1)$   and the composition as the operation is a group. Is this group commutative?    I'm a little confused as I don't know what to do with all these functions. I can't apply the definitions of a group on this because of that. If the group is $(X,∘)$ how do I show that this is associative don't I need the information on how the single functions are connected or am I missing something?


Show comment "scores" in activity tab on profile

I was wondering if would be possible to show comment votes when viewing comments we've left in the activity tab.  For example, I often go to my profile and click on the Activity sub-tab (now 'All Actions') to find comments I've recently left. If I want to see how many upvotes the comment got, or any responses (ones that don't tag me specifically), I have to click the comment and go to the question. Since comment "scores" don't affect reputation, I'm not aware of any other way to check them.  While I realize there's no easy way to show comments that follow (is there?), I think it would at least be possible to show the number of upvotes beside each comment, just like when viewing the question/answer on its own page. Granted, that's the least of the two uses but still. Seeing your comment get voted up is a great feeling if nothing else.  Would this be a possible and/or useful feature to add?


If a uniformly continuous function maps measurable sets to measurable sets then it must map null sets to null sets

I'm solving an old qualifier problem which asks me to show that a continuous function $f:[a,b]\rightarrow\mathbb R$ (and so uniformly continuous) maps measurable sets to measurable sets if and only if it maps null sets to null sets. I've proved the 'if' direction using the fact that any measurable set is the union of a null set and a $F_\sigma$ set and using preservation of compactness under continuity. How do I show the other direction? I can't seem to solve it despite my efforts. I would really appreciate some help on this. Thank you.  Of course, I'm talking of the Lebesgue measure above.


Add affiliations to the authors' name in the article class

I am using the \documentclass{article} to write an article. how can I add the affiliation to the author's name like the following picture?    And, this document class has a date under the names. Can I omit it?


In Windows when you're in File Explorer, you can right-click anywhere and create a new item of various types (there's then a submenu option to select which type: text file, ZIP file, etc., just to name a few). In Finder there seems to be no such option. I imagine the expected workflow on Mac would be to open an Application and create a new file from within the application, then save it. But I sometimes prefer this alternative workflow of creating a blank file first, and then opening it as the entrypoint into the application.  Is there some way to configure Finder to add a right-click option to create new, empty files?


How to set the figure number corresponding to its section and start from 1 in each section

\renewcommand{\thefigure}{\arabic{section}-\arabic{figure}}     I used this commend, and I get the figure number like this: 1-1,1-2.....2-9.....5-54, but I want to set the figure number to the type that corresponding to its section number and start from 1 at each section, like this, section1: 1-1,1-2,1-3,etc; section2: 2-1,2-2,etc; section3: 3-1,3-2,etc


Can you do that? I mean, it can produce a whisper-volume sound, but how long or articulate would that be? The intended use is to send a message across the room to another player without NPCs noticing.


Malformed line 1 in source list /etc/apt/sources.list.d/mssql-server.list (type)


How can I print lines from file backwards (without using "tac")?

I want to print lines from a file backwards without using tac command. Is there any other solution to do such thing with bash?


Determining if a function of two variables is convex

We are told that a function is convex only if the following inequality holds:  f(tx + (1 - t) x' , ty + (1 - t) y') ≤ tf(x, y) + (1-t) f(x', y')  for 0 ≤ t ≤ 1 and all pairs of points (x, y) and (x', y').  What does this mean geometrically?


Consider the two imaginary numbers $i$ and $-i$. Is there any fundamental difference between the two of them? If I take the field $\mathbb{C}$ and apply the map $a + bi \mapsto a - bi$ does the image end up meaningfully different from the field I started with? Or when we write out complex numbers are we arbitrarily choosing which of the non-real solutions to $z^4 = 1$ to call $i$ and which to call $-i$?


I would appreciate any help with this problem: $ x^8+2x^7+2x^6+5x^5+3x^4+5x^3+2x^2+2x^1+1x^0=0 $  I know that when $x$ isn't zero $x^0=1$ so the equation could be re-written as $ x^8+2x^7+2x^6+5x^5+3x^4+5x^3+2x^2+2x+1=0 $. I am not sure what to do from here. I have tried using wolframalpha to get the solutions so I know real ones exist (2 of them, actually), but I have no idea how to get them.


There exists a prime congruent to $m$ mod $p$

Q: Is every element of $\mathbb Z/p\mathbb Z$ represented by a prime number? More generally, let $m, n \in \mathbb Z$ be coprime. Is there a prime number congruent to $m$ modulo $n$?   the affirmative answer is given by .     A: Yes, in fact there are infinitely many such primes.   I don't want to prove Dirichlet's theorem. Is it obvious that there always exists at least one such prime?


Mouse doesn't work in the guest OS (Ubuntu 14.04.2) on Virtual Box (installed on MAC OS X)

I installed Ubuntu 14.04.2 (64 bits) to my Mac OS X 10.9.5 (64 bits) using Virtual Box version 4.3.24. I am not an experienced Linux user. When I start Ubuntu, I cannot make my mouse work in the window that it operates; it disappears in the window most of the time. My keyboard works fine. I checked other questions on similar problems, but couldn't find a suitable solution. I cannot use mouse in Ubuntu (I installed it using my keyboard).  Here are the two messages that appears when I start Ubuntu; the first one relates to keyboard (mostly), the second one relates to mouse:   You have the Auto capture keyboard option turned on. This will cause the Virtual Machine to automatically capture the keyboard every time the VM window is activated and make it unavailable to other applications running on your host machine: when the keyboard is captured, all keystrokes (including system ones like Alt-Tab) will be directed to the VM.    You can press the host key at any time to uncapture the keyboard and mouse (if it is captured) and return them to normal operation. The currently assigned host key is shown on the status bar at the bottom of the Virtual Machine window.    The virtual machine reports that the guest OS supports mouse pointer integration. This means that you do not need to capture the mouse pointer to be able to use it in your guest OS -- all mouse actions you perform when the mouse pointer is over the Virtual Machine's display are directly sent to the guest OS. If the mouse is currently captured, it will be automatically uncaptured.    Any advices?  Solution Edit: I found one way to use mouse in the Virtual Box guest OS window. On the left above menu under the section Machine (on Mac) I clicked the button that says Disable Mouse Integration (Host key + I, Host key is left command key for me). After that I acted as if mouse integration was not available in my machine. Like stated in message 1 (in the above question) I pressed host key. I clicked capture in the box that appears. I can only use mouse in the window, when I want to use it in my host OS I need to hit the host key again. My new question is how can I make Mouse Integration really work?


How exactly does Knuth's Up-Arrow notation work?

I've done some research, and found this on Wikipedia. \begin{matrix}a\uparrow b=a^{b}=&\underbrace {a\times a\times \dots \times a} \\&b{\mbox{ copies of }}a\end{matrix} \begin{matrix}a\uparrow \uparrow b&={\ ^{b}a}=&\underbrace {a^{a^{{}^{.\,^{.\,^{.\,^{a}}}}}}} &=&\underbrace {a\uparrow (a\uparrow (\dots \uparrow a))} \\&&b{\mbox{ copies of }}a&&b{\mbox{ copies of }}a\end{matrix} I'm still a bit confused on this topic. I've done a lot of research, but I can't seem to understand this. Could somebody explain this in an understandable way? From what I can gather, for example 2↑↑3 would be 2^2^2 = 16? Then 2↑↑↑3 would be 2^2^2^2 = 256? Am I correct, or have I mis-interpreted this?


Pgfplots: how to have "let" retrieve coordinates in the axis coordinate system?

This is a continuation of my , but now I want to use pgfplots.  In an axis environment, I add a node using the axes coordinate system. I would like to use let to retrieve the coordinates of a node in the axes coordinate system.  In the example below:  \documentclass{standalone} \usepackage{tikz,pgfplots} \usetikzlibrary{calc} \begin{document}     \begin{tikzpicture}         \begin{axis}[xmin=0,xmax=10,ymin=0,ymax=10]             \node [circle,fill,inner sep=2pt]  (d1) at (axis cs:4,2) {};             \draw let \p1=(d1) in (d1) coordinate[label=below:\x1]{} ;         \end{axis}     \end{tikzpicture} \end{document}   The label, which should give me the horizontal coordinate of the node, currently reads: 77.999988pt.     Where does that number come from?  Since the node is placed at (4,2), I would like instead get the label as 4 times 28.45274pt = 113.81096pt. (I would then transform it for display.)


I am a complete noob who just installed an Ubuntu guest in . I did a minimal installation, because the only program I want is LibreOffice. I did some research on how to install LibreOffice on Ubuntu, but I found different answers. Some recommend installing it from  (USC), others, from the official site, and a third group prefer to install it from the terminal typing “sudo apt install libreoffice”. Like I said, I am a complete beginner with this so I am confused on how to proceed. What is the difference between the different options? What is the best way to install this software?


Visualforce page rendered as xls no longer working

I am having trouble with a visualforce page rendered as xls. It was working fine for a year and now it stopped. The .xls file is generated and downloaded but shows up as a blank grey background with no content. I've tried making a simple test page with the same result. I have added contentType="application/vnd.ms-excel#FILENAME.xls" to the page tag to accomplish this in the past. Was something changed in the spring/summer 16 releases ?   *SOLVED BELOW: The issue was not a Salesforce problem, but a MS Office security update issue.


What is the purpose of "\left.", i.e., "\left" followed by a period?

What is the purpose of \left., i.e., \left followed by a period? Similarly for \right.  E.g. for \right. and \left (no period)   begin{eqnarray}\label{Dsys}   \textcolor[rgb]{.25,.0,.8}{%     \left\{\begin{array}{l}               u_t=F(u) \\ \\                u(0)=u_0\in H,            \end{array}      \right.    } \end{eqnarray}


What happens with reputation from votes during suspension?

Will votes on my answers/questions cast while I'm suspended still increase my reputation after the suspension ends?


I can't see the 'last activity' field after editing my question.  I mean the field on the right-hand-side that lists your question as active today, active yesterday , active 2 days ago, etc.    As you can see there is no such field on .  But there is such a field on :    Can anyone tell me why it isn't there? Is this a bug perhaps?


MTMFS consuming an entire CPU core and fans running full bore with Lion

You may be aware that Lion introduced MTMFS, the Mobile Time Machine File System.  I've had a couple of instances now where MTMFS has been chewing up an entire core of my dual-core (mid 2009) MacBook Pro for hours on end with no evidence that it's actually doing anything constructive.  As a consequence, CPU temperature rises and the cooling fans run fast and noisy.  Restarting the machine quietened things down again, but I'm expecting it to start again.  Does anyone understand MTMFS well enough to suggest why it's keeping itself busy (or is it most likely, simply a bug), or if there's currently any solution? I fear I may have gone deaf or been scalded to death before Apple release an update...


If $n$ is an even natural number then $2^{n-1}$ is divisible for $2^{\varphi(n)}$?

If $n$ is an even natural number ($n \neq 0$) then is $2^{n-1}$ divisible by $2^{\varphi (n)}$? Since $n$ is an even number then $n-1$ is an odd number. Hence, $(2,n)=1$. By Euler's theorem, $2^{\varphi (n-1)} - 1$ is divisible for $n-1$. But I don't know what I should do. Any help would be greatly appreciated.


How do physicists know when it is appropriate to use $\mathrm dx$ as if it is a number?

I'm trying to teach myself calculus of variations when I came across a worked example about the shortest distance between two points in a plane. This is a question about the mathematics but I don't think it belongs in Mathematics stack exchange because it's about techniques utilized by physicists.  The worked example starts off by defining a distance function like this:  $$\mathrm ds = \sqrt{\mathrm dx^2 +\mathrm dy^2}$$  So here $\mathrm ds, \mathrm dx,$ and $\mathrm dy$ are being treated as if they are real (as in actual) numbers that have some real value when they are, in the best case, infinitesimals. The way I understand them is that they either define an operation on a function, such as $\frac{d}{\mathrm dx}$, or the derivative of a function that's been acted on by the differential operator, eg. $\frac{\mathrm dy}{\mathrm dx}$. They're just notation for operations.  $\frac{\mathrm dy}{\mathrm dx}$ is not a ratio of two numbers. They're not numbers as far as I can understand, they represent operations.  The worked example then pulls out a $\mathrm dx$ from under the square root, as if it is a number, to get this  $$\mathrm ds = \sqrt{1 +\left(\frac{\mathrm dy}{\mathrm dx}\right)^2} \mathrm dx$$  Then it does this   $$\int \mathrm ds = \int \sqrt{1 +\left(\frac{\mathrm dy}{\mathrm dx}\right)^2} \mathrm dx$$  it's gone back to treating $\mathrm dx$ and $\frac{\mathrm dy}{\mathrm dx}$ as operators or functions resulting from operations respectively.  My question is, how do you justify when to switch between treating it as a number and an operation? I find this very strange but I see it often in physics literature. Are there circumstances where this doesn't work? Please direct me to any source where I can learn more about this.


Can I play Battlefield Hardline online between an Xbox 360 and Xbox One?

I have Battlefield Hardline for Xbox 360, and my brother has it for the Xbox One - can we play together online?


How to improve seo for keyword to achieve it from 9th to top 3 result in google's first page

I have one keyword for my site and when I search for it , it is displaying my website at 9th result in first page in Google , Now I want to know that what improvement I need to do in SEO for same keyword to reach in top 3 result?


I heard the following dialog in a British English movie:     Words go round quick. All the little tongues go clack, clack, clack.   What does this mean, and why was the word "quick" used instead of "quickly"?


Which is the best source of free map icons (royalty free & price free)?  I need an icon set for my Google Maps project that will give it a custom feel. Ideally I want an icon set with a creative commons license so I can modify them myself.


Bibliography with different names and ordered by name

I would like to create two bibliographies with two different names. My two bibliographies are books.bib and articles.bib  Doing :  \renewcommand{\refname}{References from Books}   after \begin{document} and then introducing the bibliograpy with :  \nocite* \bibliographystyle{plain}  \bibliography{books} %   works for books.bib.  I would like to the do the same thing with articles.bib and the title "References from articles".  Moreover, I need items to be referenced in alphabetical order in both cases.


How long is it safe to eat left-out Lasagna

Last night I made a large portion of lasagna (ground turkey, cheese, spaghetti sauce).  I wanted to let it cool down before placing it in the refrigerator, but I forgot to put it away last night.  I discovered in the morning that I had left it out all night (room temp was low 60F last night).  I put it right into the refrigerator as soon as I discovered it.   Is it safe to eat? And if so, how long?


Cannot open gnome-terminal from Unity launcher or from side panel shortcut

I've installed Ubuntu 16.04 and everything seems to work fine, except that I cannot start gnome-terminal from Unity launcher or from a shortcut locked to the side panel.  However, gnome-terminal starts fine from Xterm or from right-click>Open Terminal. I can also run gnome-terminal by Alt-F2.  So, this seems to be a problem with Unity?  When pressing on gnome-terminal from Unity launcher or from a shortcut, the gnome-terminal icon just pulsates a bit, after which the shell terminates. I never see the shell itself, just its icon on the sidebar.  Searching for Terminal in Unity launcher, it finds gnome-terminal, but its name is "nlykkei@nlykkei-Ubuntu:~" and not the usual "Terminal".  Also, gnome-terminal doesn't show colors anymore, like green for an executable, etc.  Can someone guide me on how to restore my Unity Terminal? I've already spent 2-3 hours on Google, attempting to solve the problem by configuring locale settings.


Limit of given fraction approaching to zero

Show that $\lim_{(x,y) \to (0,0)} f(x,y) = \frac{x^3(y^3 + \pi)}{x^2+y^2}$ is equal to zero.  My progress: I have two ideas related to this problem. Initially, I thought about using polar coordinates, but quite uncertain whether it is right approach for this problem or not. Alternatively, I am thinking about squeeze theorem: by AM-GM and triangle inequality, I managed to find a function larger than given $f$ with variables $x,y$ only. Does that imply limit of $f$ will be zero?


Possible to install Ubuntu on Portable External Hard Drive?

Some background info: I have to install Ubuntu for a school project, to use one of the programs on Linux for robotics. I currently have a desktop with an SSD that has Windows 10 on it and 1 TB HDD internally installed. I don't have enough space on the SSD and HDD to allocate for additional space. So I bought a Portable External Hardrive to install Ubuntu on it. I have already made a flash drive with the Ubuntu ISO image file on it so I can boot it from my USB flash drive. I've already played around with my BIOS Settings and Boot Menu just to be sure that it can boot from the flash drive. I've also started the "Try Ubuntu" option so it's able to work. Everything works fine in that department. My main question: Would I be able to install Ubuntu on the Portable External Hard Drive, but still, keep my Windows Operating Systems intact? I would like to switch between both Ubuntu and Windows Freely and because this is Portable I would like to unplug the External Hard Drive when I'm not using Ubuntu if that's a possibility without damaging my internal hard drives, that way my default Operating System is Windows. Thanks,


Secure download link (HTTPS) for Ubuntu desktop

All the download links I see for Ubuntu 16.04 desktop are http links. Is there a secure (https) link anywhere?


My mother used to correct me all the time when I was younger when I would talk about bringing a toy to a friend’s house instead of taking it there.   Which is correct, and why?