I have the following code that produces a line chart:  \begin{figure}[p]     \centering \begin{tikzpicture}     \begin{axis}[     use units,     cycle list name=exotic, %This defines the color. It produces nicer colors         width=15cm, height=8cm,     % size of the image         grid = major,         grid style={dashed, gray!30},         %xmode=log,log basis x=10,         %ymode=log,log basis y=10,         xmin=0,     % start the diagram at this x-coordinate         ymin=0,     % start the diagram at this y-coordinate         %/pgfplots/xtick={0,5,...,60}, % make steps of length 5         %extra x ticks={23},         %extra y ticks={0.507297},         axis background/.style={fill=white},         ylabel=Time,         xlabel=Number of Datapoints (n),         y unit=s,y unit prefix=m,         tick align=outside]        % import the correct data from a CSV file       \addplot table [col sep=comma,trim cells=true,y=Best Case (Ascending)] {datasets/time_mergesort.txt};           \addplot table [col sep=comma,trim cells=true,y=Average Case (Random)] {datasets/time_mergesort.txt};                     \addplot table [col sep=comma,trim cells=true,y=Worst Case (Descending)] {datasets/time_mergesort.txt};                      \legend{Ascending,Random,Descending}     \end{axis}  \end{tikzpicture}     \caption{Mergesort Run Time for Sorting Random Data}     \label{fig:merge_sort_from_csv} \end{figure}   And at the moment the legend appears on the chart on the upper right corner. I need to move that below the chart, or even to leave that on the chart but to move that on the upper left corner.   I have tried the solution mentioned at , but it did not work for me.  How can I move the axis in a different position?


I'm on a 2009 macbook pro dual boot. When my system starts, I get a message saying I don't have the wireless driver I need. I tried following the instructions from the website shown, but after I execute the command in Terminal, it asks for my password but will not allow me to type it in, so I have not been able to advance past that step.  This is my first time running Linux/Ubuntu on my computer so please be explicit :) Thanks


Show hidden files on Mac OS X Mojave using Terminal

To see my /etc folder I've tried this command in Terminal:  sudo chflags nohidden /etc   followed by:  sudo defaults write com.apple.Finder AppleShowAllFiles true; killall Finder   also tried:  sudo defaults write com.apple.Finder AppleShowAllFiles YES; killall Finder   Neither of them seemed to work.


Show that the sequence $y_n = 1+\frac{1}{2^k}+\frac{1}{3^k}+...+\frac{1}{n^k}$, where $n\in \mathbb{N}$ and $k\geq 2$ is convergent.

Let   $y_n = 1+\frac{1}{2^k}+\frac{1}{3^k}+...+\frac{1}{n^k}$, where $n\in \mathbb{N}$ and $k\geq 2$.  I need to show that this sequence is convergent.   I did $y_{n+1}-y_n$ and I got that it is bigger than $0$ so the sequence is growing and I know that $y_1 \leq y_n$ but I need to also find a number which is bigger then $y_n$ which I do not know how to do. The answers says that I need to show that the sequence is smaller than $2$ but I really do not have any idea how to do it.


Ubuntu kernel not upgrading with upgrade to 15.10

I just upgraded from Ubuntu 15.04 64-bit to Ubuntu 15.10 64-bit. I read that 15.10 was using the 4.1 or 4.2 kernel, but I noticed that my kernel didn't upgrade.  When I type in the terminal uname -r, I get 3.19.0-18-generic  Same thing in GRUB: the only kernel I can choose is 3.19.0-18  Can someone explain how to upgrade the kernel?


The original ClearBits link to the September 2011 data dump has broken. How can I access it and other previous data dumps? The Internet Archive only has .


GRUB does not list an option for windows 8

I installed Ubuntu 12.04 alongside windows 8.1, and after that when I boot my computer the grub menu come up and I have the option to boot Ubuntu regularly, or in safe mode, but I don't have the option to boot windows. I've tried using grub customizer, but that didn't work, so I then came here, but I just don't know what I'm doing in general, so if you could seriously dumb it down for me(like literally step by step) that would be AWESOME!


What happens in the following situation?  My opponents got the  and  lock going on but I have a  in my deck that keeps me shuffling my graveyard back into my deck when it gets milled.  DO I just keep on shuffling untill the 45 minutes is up and the games end in a draw? How is this situation resolved?


Seeding for Round 1 in NCAA basketball tournament

In the "field of 65" style tournament bracket, there were two 16-seeds (presumably the weakest teams) that had a play-in game in order to play the overall #1 seed.  When they expanded to 68, it's now 4 play-in games between 16-16 seeds, 13-13 seeds, 11-11 seeds and 16-16 seeds.  Why didn't they just do it between all 16 seeds?  Was there specific reasoning?  Is it the same seeds in each region every year or is there a mechanism for selecting which teams will play in Round 1.    (I know it can  be debated that playing in such a game can be a good warm-up for lower seeds, but I don't think that was the official reason.)


How to disable Write Protect from USB drive?

For some reason I cannot add nor remove any files in my USB drive, and Windows says that it is write protected (I have no idea how write protect got enabled on the drive in the first place)    I can read and copy files from the USB drive just fine, but cannot write anything to it    I have , and it says  to go to StorageDevicePolicies, but it doesn't exist in my computer    All other USB drives work fine on this computer    Why did it suddenly get write protected, and how can I undo this? Can this be done without messing with the registry or formatting the drive? I don't want to format the drive   OS is Windows 7


Is it possible to get a professor position without having had any fellowships in grad school?

As a deferred action for early childhood arrival () student, I found out that I am not eligible for federal fellowships from the government or through the university.  Some universities allow for fellowships to DACA students if they meet in-state requirements but being a student who attended undergrad at another state, I do not qualify. (I applied to all out-of-state graduate programs)  With the DACA status, I can still apply and work as teaching assistant or research assistant to fund my Ph.D. program.  So my question would be, if I do not have any fellowships on my CV and only RA & TA positions, how much would this negatively impact me when applying for assistant professor positions, if at all?  Do hiring committees ever place emphasis on whether the student had had fellowships or not? And would it be more worth it to go into a Ph.D. program in-state where I may qualify for some federal fellowships made through the school (from a funding perspective)?


what happens with commanders and o ring effects?

I know that when a commander is exiled, the owner has the option of putting it in  exile or back in the command zone, but what about effects that only remove it as  long as a permanent is in play, like o ring, or angel of serenity. does the  commander leave play until the mentioned permanents leave play or can the opp bypass them and just put the commander in the command zone.


Russian Language Bold Font problem with newtxtext

I am writing an article in English, with some pages in Russian.  \documentclass[12pt]{article}  \usepackage[T1,T2A]{fontenc}  \usepackage[utf8]{inputenc}  \usepackage[russian,english]{babel}  \usepackage{newtxmath} \usepackage{newtxtext} \begin{document}  hello \textbf{hello}  \selectlanguage{russian} привет \textbf{привет}  \end{document}   Output:  hello hello привет привет  I am using \selectlanguage{} to switch between languages when needed.  However, I noticed that when I try to use \textbf{} when in Russian language mode, it does not work because of newtxtext, which I am using for math formulas.  Does anyone know how to solve this problem?  Thank you.


I have a process of sharing video snippets. The users are trained and they need to trim a video (complex step that include using several UI components), choose a recipient and write a message. My question is if wizard/ steps left pattern can be a good fit although it has only 2 steps and it is for trained users


Calculating $\int \frac{x}{\sqrt{x^{2}-36}} \, {\rm d} x$

I wish to calculate $$\int \frac{x}{\sqrt{x^{2}-36}} \, {\rm d} x$$ I use a substitution $x=6\sec\theta$ and get $\int \csc\theta d\theta$ as intermediate.. Then, after some calculation $$-\ln\left|\frac{x}{\sqrt{x^2-36}}+\frac{6}{x^2-36}\right|$$ Is it correct?


Can it be determined that the sum of the diagonal entries, of matrix A, equals the sum of eigenvalues of A

I have a question to ask down below, that I have been having some trouble with and would like some help and clarification on.  Suppose A  is an $n \times n$ matrix with (not necessarily distinct) eigenvalues $\lambda_{1}, \lambda_{2}, \ldots, \lambda_{n}$. Can it be shown that:     (a) The sum of the main diagonal entries of A, called the trace of A, equals the sum of the eigenvalues of A.   (b) A $- ~ k$ I has the eigenvalues $\lambda_{1}-k, \lambda_{2}-k, \ldots, \lambda_{n}-k$ and the same eigenvectors as A.  Thank You very much.


Python-Pandas: meaning of asterisk sign in expression

While looking for a way to split a column into multiple columns within a loop, I stumbled upon  containing this expression:   # Split delimited values in a DataFrame column into two new columns df['new_col1'], df['new_col2'] = zip(*df['original_col'].apply(lambda x: x.split(': ', 1)))   which works perfectly, but I am not able to understand how it operates, in particular with respect to the * sign. Until now, I have seen asterisks only in functions definitions and I have not been able to find any documentation for this case.  Could anyone explain how it works?


$ p(x)\in\mathbb{R[X]} $ is a polynomial of degree $n$ with no real   roots. Show that: $$\int\limits_{-\infty}^{+\infty}\dfrac{(p'(x))^2}{(p'(x))^2+(p(x))^2}\,dx \leq n^{3/2}\pi.$$   It's easy to see that the degree of $ p$ has to be even. For $n=2$ this integral is at most $2\pi$. For $n>2$ the maximum value of this integral is obtained when all the imaginary parts of the roots of $p(x)$ tend to $0$, but I couldn't go further.    Any help would be appreciated, thanks.    Edits by David Speyer: It seems very likely now that the optimum bound is $n \pi$, not $n^{3/2} \pi$. As pointed out in the comments below, and further in , this is the value we get in the limit where $p$ has double roots on the real axis.   It seems likely that  moving the roots of $p$ away from the real axis can only make the integral less. Write the roots of $p$ as $a_j \pm i b_j$, so $p(x) = \prod ((x-a_j)^2 + b_j^2)$ and  $$\frac{p'(x)}{p(x)} = \sum \frac{2 (x-a_j)}{(x-a_j)^2 + b_j^2}.\quad (\ast)$$  So making the $b_j$ larger tends to make $p'(x)/p(x)$ smaller, which makes the integral smaller. But this argument is not rigorous, because the terms of $(\ast)$ can have both positive and negative sign, so it could be that making the individual terms closer to $0$ makes the absolute value of $(\ast)$ larger.  I don't see how to beat this issue easily.  Thus, I'm putting up a bounty for proving or disproving   $$ \int_{-\infty}^{+\infty}\dfrac{(p'(x))^2}{(p'(x))^2+(p(x))^2}\,dx \leq n\pi.$$


Can I install Ubuntu 17.04 on a laptop Alienware 17 R3 without damage?

I want to install Ubuntu 17.04 but I dont know if this could damage my laptop.    I have:  i7 6700HQ NVIDIA GEFORCE GTX 970M 16GB RAM 1TB HDD


How to write XPath if my ID is changing continuously?

//*[@id='post-9505']/h3/a/time //*[@id='post-9466']/h3/a/time //*[@id='post-9517']/h3/a/time   In this id number is changing continuously, so how can i write dynamic XPath?  please help me to write XPath for this !


How to deep copy object with an array with Object.assign function?

I have a typescript class that contains an array attribute, i would like to create a copy of this object, i used Object.assign, but the array is not duplicated  class:   export interface IDeclaration {     rechutes?: Rechute[];     text: string; }  export class Declaration implements IDeclaration {     constructor(         public rechutes?: Rechute[],         public text ?: string,     ) {} }  export interface IRechute {     dateDebut?: Moment;     dateFin?: Moment; }  export class Rechute implements IRechute {     constructor(public dateDebut?: Moment, public dateFin?: Moment) {         this.dateDebut = dateDebut ? dateDebut : null;         this.dateFin = dateFin ? dateFin : null;     } }    copy :    const copy: IDeclaration = Object.assign({}, res.body, {     text: transformMethodText(res.body.text),     rechutes: transformMethodRechutes(res.body.rechutes) });  transformMethodText(text: string) : string{     return 'test : ' + text; }  private transformMethodRechutes(rechute: Rechute): Rechute{         return Object.assign({}, rechute, {             dateDebut: rechute.dateDebut != null ? moment(rechute.dateDebut) : null,             dateFin: rechute.dateFin != null ? moment(rechute.dateFin) : null         });     }   Array will always set to empty, when i try to push some new object no change is made.  How to copy my rechutes array inside the Object.assign function ?  Thank's


I have this loop but i dont know why it never check the condition,i thought it might for integer.tostring,please help if you can:     public static void linerSearch(String[] array1, int key){         int size = array1.length;         for(int i=0;i<size;i++){             if(array1[i] == Integer.toString(key)){ // < -- This line                 System.out.println("The node is already in the list");             }         }       }


Checking to see if a DateTime variable has had a value assigned

Is there an easy way within C# to check to see if a DateTime instance has been assigned a value or not?


C++ - meaning of a statement combining typedef and typename

In a C++ header file, I am seeing this code:  typedef typename _Mybase::value_type value_type;   Now, as I understand, quoting from « C++ the Complete Reference » by Schildt. typename can be substituted by keyword class, the second use of typename is to inform the compiler that a name used in a template declaration is a type name rather than an object name.   Similarly, you can define new data type names by using the keyword typedef. You are not actually creating a new data type, but rather defining a new name for an existing type.   However, can you explain exactly what is the meaning of the above line of code, where typedef and typename are combined together. And what does the "::" in the statement imply?


Windows Server 2019 Standard Edition Licensing for Virtual Machine on Hyper-V

I have windows server 2019 standard edition installed on my host machine and with 2 additional Windows server 2019 on Hyper-V virtual environment.  Now I want to install 2 more windows 10 client VMs (Hyper-V) on same host machine.  As I have read some of the Microsoft’s articles which say that there are only 2 VMs (Hyper-V) allowed in windows server standard edition, for adding more VMs (Hyper-V) Do I need to purchase another license for Hyper-V?  This are the following links which I follow


So when we view reputation, there is graph view. However, it seems to be off by a day. Here's what I mean:   I'm sure 70 + 20 + 15 is not 15. Its 105, which is what we see below:   And 40 + 10 is NOT 105, unless you did  :)     Anyways 40 + 10 is 50:   So yeah. Did you do what that post on codegolf says? Devs better fix that :)


Do SharePoint 2013 JavaScript Client object model support run with elevated privileges code

Can I elevate Visitors Group users permission via javascript client object model code to do some list or library item updates ?


How to check if your home folder and swap partition are encrypted using terminal?

I installed Ubuntu 12.04 a few days ago but strangely I seem to have skipped the part about choosing to encrypt home folder. Now if it is encrypted I do not know what is the encryption key. How do I check if it is really encrypted? (and also the swap partition).


I've come across the following problem in my textbook    I tried solving this by figuring out how many choices there are for each position within a round and came up with the following.  $${8 \choose 2} \cdot {6 \choose 2} \cdot {4 \choose 2} \cdot {2 \choose 2}$$   My idea was that that are ${8 \choose 2}$ ways to pick the first pair, ${6 \choose 2}$ ways to pick the second pair, etc. so multiplying them would yield all possible first round pairs, but this is not correct and I don't understand why.   Question: Can someone please explain why the above reasoning is not correct


After 13.04 installation, computer only boots to windows

I just completed the installation process for Ubuntu 13.04, and when it completed it said it needed to restart. After restarting, Windows 8 booted up, with no option for Ubuntu whatsoever.


Will I lose all the data in my hard disk when I install Ubuntu alongside my Windows 8?

I am using Windows8 and now I am trying to install Ubuntu alongside my Windows8 .My professor has warned that i might lose all my data in the hard disk.Will I lose the data ?


I am writing an algorithm in LATEX un=sing sharelatex.com. I have written a long comment and it is cut from a point. I have written this:     %This is a LaTeX template for homework assignments \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{listings}  \begin{document}  \begin{lstlisting}  Function(A[1...n],x){   ...............    count=0;    H(A[1...n],n);    if (a==0){        while (j<=n and A[j]<=0){               ................        }         /* If there is at least one element that is equal to zero and at least one non-zero element then there are two elements with the desired property. In any other case the variable found is not changed.  */        if (count!=0 and count!=n) found=1;    }    ............. \end{lstlisting}  \end{document}  and it looks like that:  What could I do?


Converting spoken word audio files into text

I've been working on transcribing a lecture series from audio to text files.  There are just over 20 lectures, and each one is about an hour long.  Using VLC Player, I'm able to slow down the speaker's words to a rate that I can keep up with.  However, it's extremely slow going, and it takes so much concentration that I can barely get through a third of a lecture before I have to take an extended break.  The thought had occurred to me that I would be better served by using some kind of speech recognition software, and then proofreading the computer-generated result.  This is likely to be a one-time thing, so while I don't mind using commercial software to get the job done, it would be preferable if it wasn't too expensive (or free; free is always good).  Command-line solutions are fine, too (:  Any suggestions?


Show that rodriques formula is a linear transformation?

Can someone help me out on how to find the the matrix representation and show proof that it is a linear transformation?    It is the rodrigues roation formula  and the matrix representation should look like    where c and s are cos and sin


Let $f:\mathbb{R}\rightarrow \mathbb{R}$ a continuous function and $g(x)=\min\{f(t) \mid t\in[x-1,x]\}$ and $h(x)=\max \{f(t) \mid t\in[x-1,x]\}$ s.t. $g(x)+h(x)=0$, $\forall x\in \mathbb{R}$. Show that $g$ and $h$ are constant functions. I know that $f$ is bounded on $[x-1, x]$ and it cans reach her bounds but now I am stuck.


Are we living in a Universe with 3 time dimensions and 1 spatial dimension?

If I said that we are living in a Universe with 3 time dimensions and 1 spatial dimension, would I be wrong?  By that I mean if the spacetime interval was evaluated as -time1^2-time2^2-time3^2+space1^2 instead of space1^2+space2^2+space3^2-time1^2.  Is there an absolute difference between a spatial and a time dimension, or are they like the positive and negative electrical charges?  Edit: This came to me after reading a question considering more than 1 time dimensions. I think it was about a 2+2 universe, which prompted the question "Which 2 would be the time dimensions?"  So I guess the real questions is, is time's property the fact that it is a single dimension of its type/sign, instead of 3? Could we talk about spacetimes only for 1+N pseudo-euclidean spaces, but not for M+N where M>1 and N>1?  And also, if we have 3 time dimensions and 1 space dimension, and the spacetime interval was


How to know when chicken breast has cooked through?

Sometimes chicken breast can be thick and I never know how to tell when it's cooked! How can I be certain it is cooked all the way through?


Creating buffer around features using GeoTools?

I want to develop a simple GIS application using GeoTools. I have looked at the tutorials but i could get to much meaningful from them.   I have a simple JMapFrame to which add can add a featureLayer from a shapefile  public void action(ActionEvent e) throws Throwable{     sourceFile = JFileDataStoreChooser.showOpenFile("shp", null);     if (sourceFile == null) {         return;     }     FileDataStore store = FileDataStoreFinder.getDataStore(sourceFile);     featureSource = store.getFeatureSource();      Style style = SLD.createSimpleStyle(featureSource.getSchema());     Layer layer = new FeatureLayer(featureSource, style);     map.addLayer(layer); }   Now, lets say I want to create a buffer around my features. From what I have understood I have to get the featureSource, then create a featureCollection, iterate through the features and for each of those feature I have to cast them to a Geometry, then create a buffer.   When I have created a buffer should I go all the way back to featureLayer and add it to my map?


How to install a clock face on my desktop?

I just installed 12.04 and would like to jazz it up a little with a nice-looking clock face on my desktop. Any suggestions...?   Thx


Why doesn't pasting X flipped pose paste arm poses?

I suspect the cause might be the naming conventions of the arms, but I'm not sure.  Here's a picture of the model and armature with names.


Intuition behind proof in the Rudin book that there is no largest/smallest real number.

In Rudin's Principles of Mathematical Analysis (3rd ed), he proves (at the very beginning: example 1.1) that the set $A$ of all positive rationals $p$ such that $p^2<2$ contains no largest number and the set $B$ of all positive rationals $p$ such that $p^2>2$ contains no smallest number.   To show this, he starts by associating with each rational $p>0$, the number $q=p-(p^2-2)/(p+2) = (2p+2)/(p+2)$. And thus $q^2-2=2(p^2-2)/(p+2)^2$.   My question is actually simple: from where does he get the expression for $q$ and how does one get the intuition to come up with the form of the number $q$?


If only a Sith deals in absolutes, then does Yoda deal with Luke by using absolutes?

Obi-Wan tells Anakin that      Only the Sith deal in absolutes.   He uses that as his identification that Anakin had actually turned to the Dark Side. (Anakin's statement of "Either you're with me or against me" )  Then is Yoda making an absolute statement, when seeking to make a deal (getting Luke to try again, work harder, DEALING with living with Luke) with Luke says...      Do or Do not. There is no try.    Is this confirmation that Yoda is a Sith?


Hotkey to switch to a specific window by title

I wish to create a hotkey to switch to a specific window (identified by its title) of an application - no matter if that application is currently active, or whether I am in fullscreen or split screen mode in another application. I read through the Automator actions, and didn't see anything like "Change to window" or something like that. It can start/activate applications, but my target app has several top-level windows and I want exactly one of those. Is this possible with onboard tools, or some small 3rd party utility?


Shakespeare Use of present tense narrating a past action

in Macbeth, Acte III -scene 6,  In this portion of the scene: «  Lennox- Sent he to Macduff?  Lord -  He did, and with an absolute 'Sir, not I,'         The cloudy messenger turns me his back,         And hums, as who should say 'You'll rue the time         That clogs me with this answer.' »  Why does Shakespeare use present tenses : « turns » and  « hums » to narrate a past event ?  Thanks by advance,  Julien


how to avoid stackoverflow in == overload

Here is my implementation of == and != operators in the class.   public class MyClass      {         public int         FirstField            { get; set; }         public int         SecondField            { get; set; }          public static bool operator ==(MyClass first, MyClass second)         {             if (first == null && second == null)                 return true;             else if (first == null || second == null)                 return false;             else             {                 if (first.FirstField == second.FirstField && first.SecondField == second.SecondField)                     return true;                 else                     return false;             }         }          public static bool operator !=(MyClass first, MyClass second)         {             return !(first == second);         }     }   Else where in code I have following two instances that are used for == and != comparisons.  MyClass class1; MyClass class2;  if (class1 == null || (class1 != null && class1 != class2)  )   Problem is that when line above is called I get a stackoverflow exception at following line.  if (first == null && second == null)  What am I doing wrong here?


Does rooting phone affect online banking security?

I'm thinking of rooting my android phone (HTC Desire 300) and was wondering if doing so would affect the internet security with stuff like online banking. Is it still secure to do my banking on a phone that has been rooted? Does it make any of my other online passwords or details vulnerable or unsecured?


I have a video reference in my Video Sequence Editor while I animate my scene. However, when I try to render, it just renders the video file that's loaded in the VSE instead of my scene. I'd like to just disable the VSE's influence over my render so I can have my reference there without affecting anything else. How could I do this?


Upgraded to Ubuntu 16.04 now I can't boot Windows 7 or 10

I created a boot able flash drive using this procedure:     I then used this to upgrade Ubuntu to the current version.  After the upgrade, I can not get the windows boot loader to come up no matter what hard drive I try to boot from and the Ubuntu boot loader only shows Ubuntu where as the previous version would also give Windows as an option. What do I need to do to fix this?


Does string theory require continuous spacetime?

Is spacetime continuous according to string theory? Or is spacetime discrete or has some type of foam?


$\mathbb{Z}[x_{1},\dots,x_{n}]/I$ is a field therefore it's finite

I'd spent much time for this but didn't get any results.. Could u give me only the idea but not a full proof


Different margins for odd and even pages, but not mirrored with memoir

I need a help with this page layout:   top/bottom margins: 2cm for all pages on even pages: 3.5cm - 2cm on odd pages:  2cm - 2cm   I tried:  \setlrmarginsandblock{3cm}{2cm}{*} \setulmarginsandblock{2cm}{2cm}{*} \checkandfixthelayout   But  this doesn't resolve my problem. What's is the solution using memoir package?


he said the project will be carried out vs he said the project would be carried out

When do I have to use "will + verb" after that clause?     He said the project will be carried out.   vs     He said the project would be carried out.   According to the tense agreement, I think the first sentence is right.   Is there any slight difference?


Making a two-column table fit to page (header for resume)

\begin{table} \label{my-label} \begin{tabular}{ll} Name       & Local address \\ Affliation & Phone number  \\ Address    & Email         \end{tabular} \end{table}   I have a simple table here that I want to use for the header of my CV. However, the output looks like this:     How exactly can I left-align the first first column and right-align the second, similar to what you would typically see as the header of a CV?


Can a person negotiate with banks on CD interest rates?

I use a brick and mortar bank for some of my savings. I’d love to get a CD interest rate closer to what Ally or other online banks offer.   Are brick and mortar banks will to negotiate with customers on interest rates? For instance, if I went into a branch and said I’m moving my money to Ally unless the bank matches Ally’s rates, do I have any chance of getting them to?


Prove that $f$ is constant if $f$ is real when $|z|=1$

Let $f$ be a holomorphic function in $\mathbb{C}$. Prove that if $f$ is real when $|z|=1$, then $f$ must be a constant function.  I honestly do not know how to do this problem, consider using Schwarz's lemma, but do not get anywhere.


When you scroll right in the code box in , the text in the code box overflows.  Before and After:           Device Information  Device GT-I9505 (S4)  Android Version 5.0.1  Application Version 1.0.77


Steps for saving and retriving utf8 to MySQL with Perl

I am confused about the Perl DBI settings for handling utf8:  $db->{mysql_enable_utf8} = 1 $db->do(qq{SET NAMES utf8});   I read I should issue them immediately after making the db connection this way:  my $db = DBI->connect($cstring, $user, $password); $db->{mysql_enable_utf8} = 1 $db->do(qq{SET NAMES utf8});   Here is the issue:  1)-I have the web page with form which set to utf8, so user data are sent in utf8 to the script.  2)-the script uses CGI::Simple to read the form data. Should I decode the form data with utf8::decode() or just leave it?.  3)-Should I set these two or not:  $db->{mysql_enable_utf8} = 1 $db->do(qq{SET NAMES utf8});   I hope some one will explain the steps to save and read utf8 starting from getting the user input on the web page to the MySQL database.


What represents the state of a quantum system?

Frederic Schuller claims in his lectures that state of a QM system is NOT a vector in a Hilbert Space. Physicists simply make a mistake here. And they make some complementary mistake elsewhere which makes the effect of this mistake go away. How true is this claim?


Make transparent object not layer up itself

I want to make object transparent, but the object itself should not be visible through itself. It's in an animation that rotates it, but at a certain angle I can see parts of the object through other parts of the object, which I don't want. So object should be transparent for everything in the scene, but this object. Below I pointed with red arrows those "whiter" pieces that are semitransparent white over semitransparent white which I don't want to get:    Currently it have 3 materials on it (front, back and sides) and transparency + backface culling is done like this:     For rendering I'm using Cycles engine and Blender 2.73.1. Is there anything I could do to make that happen? I think it got something to do with geometry settings but I have no idea what to set and how.


If every pair of congruence equations admits solutions, then the entire system admits solutions

Let a system of three linear congruence equations in integers be given;      \begin{cases}x\equiv b_1\mod c_1\\ x\equiv b_2\mod c_2\\ x\equiv b_3\mod c_3\\ \end{cases}   with $c_1,c_2,c_3\in\mathbb Z_{+}$. Show that, if every pair of congruence equations admits solutions, then the entire system admits solutions.    Now, if every pairs admits solutions, then for example $b_1\equiv b_2\equiv a\mod \gcd(c_1,c_2)$ for some $a$ then;   $x-a\equiv b_1-a\mod c_1$  $x-a\equiv b_2-a\mod c_2$  replacing $x$ by $x':=\frac{x-y}{\gcd(c_1,c_2)}$, we obtain:  $x'\equiv b_1'\mod c_1'$  $x'\equiv b_2'\mod c_2'$  and since $\gcd(c_1,c_2)=1$ by Chinese Remainder Theorem we have a unique solution $\mod{c_1'c_2'}$, so $x\equiv (\gcd(c_1,c_2)x'+a)\mod{\operatorname{lcm(c_1',c_2')}}\quad(1)$  We can do it with another pair (take $2$nd and $3$rd, since we know that such a pair admits solutions;  $x\equiv(\gcd(c_2,c_3)x''+a')\mod{\operatorname{lcm(c_2',c_3')}}\quad(2)$  Now how can I show that for the pair $(1)$ and $(2)$ also solutions exist ?


how to write makefile when two header files include eachother in c++?

I've recently started to learn how to write makefile, and I've got a question which seems to me to have a simple answer. It's that how can we write makefile when two header files include eachother? I've searched for an answer to it but I couldn't find anything. (I want the content of the makefile be as simple as possible)


What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm?

How can one determine the length of the different units (measured 1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc) in mm?


Can I force screen blank and ignore input?

I would like to force my screen to blank, and leave it stay blank regardless of what I do with my keyboard and mouse until it receives a command to unblank (kind of like a lock).  The commands I know are:  xset dpms force off sleep 2 xset dpms force on   I only want it to blank for two seconds then unblank, but I want it to absolutely stay blank for these two seconds no matter what. Can this be done?


How do opportunity attacks work when wielding weapons with different reach?

Assume a player with two weapons: a whip and a dagger.  A hostile creature stands right next to the player. On the creature's turn, it moves away 5ft. So the creature left the reach of the dagger, but is still in the reach of the whip.  Does this movement provoke an opportunity attack?   I am interested in an RAW answer, not in speculation about what a (any) sensible DM would rule.  Note: Assume Mearls' interpretation of reach provoking OAs in general, as discussed .


is made of bamboo or was made of bamboo in a sentence

The organ in Las Pinas Church is made entirely of bamboo. The organ in Las Pinas Church was made entirely of bamboo. Whic is more suitable,is made or was made?


Extract url from string using javascript regex

I have a string like "test http://www.bing.com test". I want to extract just the url ("http://www.bing.com") from this string. How do I go about doing it? How would the regex look like?


What is the meaning of exp9ubuntu1 suffix in Ubuntu?

Here is my clang version: Ubuntu clang version 3.2-1~exp9ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) And what I don't know is the meaning of "exp9ubuntu1"? Please Help, Thanks.


We say that for a number $R$, $R^0 =1$, but if $R=0$ how can $R^0$ be $1$?


Custom field metabox not showing in back-end

I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?


I'm trying to draw some repeated with PGF/Tikz, and I'm using a foreach. Problem: each line has, on the right, a description, which is a string of text - which may be somewhat long and contain commas or math expressions.  How can I create a list of strings, iterating over it and use each string as node text?


Suppose a group of friends are having a discussion and the turn comes to one of the friends who says the below sentence.  "I respect each and every one of you's opinions"  Is this sentence grammatically correct?   If it is, then is even "Each and every one of you's opinion also correct?


If for linear operator $A:E\to E$, $A^k=0$, then $A^n=0$

Let for the linear operator $A:E\to E$, $A^k=0$, then $A^n=0$.  Here $n=dim E$ and $n <k.$  I tried to find the characteristic oolynomial that I think it is the clue, however did nit succeed.   Any suggestion?


Difference between char* var; and char *var;?

Just wondering if there's any difference between:  char* var; char *var;   or is it just a matter of preference (spacing)?


Suppose we have the following:  $X = A + B $ where $X, A,$ and $B$ are any sets. $A + B = \{ a + b : a \in A , \; \; \; b \in B \} $ Can we conclude that $\sup X = \sup A + \sup B $ ?


Python remove words containing "unusal" chracters

I have an array of words and and I would like to remove all words that contain any unusual characters like umlauts, accents, etc. (I know there are ways to normalize them to regular characters instead, but I specifically want to remove them). My idea so far is to create an array of accepted characters (letters a-z), because this is easier than making a blacklist accounting for all possible combinations of letters and accents, and go through my array of words checking if the word has any characters other than the accepted ones. I've found  article that describes the opposite, removing all words that do contain a certain characters: filtered_tokens = [w for w in tokens if all(ch not in w for ch in accepted_characters)] unfortunately a simple negation doesn't make this work for my problem. I'm open to suggestions and new approaches altogether, but ideally I would like to get this to work with no additional packages besides maybe nltk, which I am using to extract my words from a text.


Integral formula for surface area of revolution

To find volume of the shape generated by rotating $f(x)$ around the $x$ axis we calculate  $$\int_a^b \pi f(x)^2\, \mathrm d x$$  as the area of a circle is $\pi r^2$ and we just split it into discs.  Why then by analogy is the surface area formula not just   $$\int_a^b 2 \pi f(x)\, \mathrm d x$$  I don't understand the fundamental difference between the two cases.


What is the word that best suits this type of behaviour of person?

Suppose a person is asking others to do something which he himself does not follow, what is the best word that can be used to describe this behaviour?


Why is 'self' required to call a Ruby method from within its constructor?

If I have a class like this:  class Person    def initialize(options={})     self.name = options[:name]   end    def name=(name)     @name = name   end  end   ... then the 'name=' method gets called and I get what I expect. But if I alter the example slightly to drop the 'self' from the call to 'name=' then the method is never called:  class Person    def initialize(options={})     name = options[:name]   end    def name=(name)     @name = name   end  end   Why is this? Why must 'self' be there? I was under the impression that the implicit 'self' would be set as expected in the 'initialize' constructor and therefor would behave as the first example.


When a diamond moderator locks a question, there's a choice to have it auto-unlock in an hour, a day, a week, or not at all. Generally, this function works fine.  However, I locked every post on  for an hour, and while the question auto-unlocked an hour later, I had to manually unlock the answers. I doubt it's a cron issue because the question was the last thing I locked, so if it unlocked, everything else should have as well.  Furthermore, the lock box displayed a "Unlocks in xx minutes" note (visible to mods only, I think) on the question lock, but not on any of the answer locks.  On that basis, I'm pretty sure the timer lock on answers doesn't work. If it's supposed to work, please fix it; if there's supposed to be no timer at all, please make it work nonetheless, because it would be incredibly useful in situations like this.


The same tex file working in old version is not running in latest version

A very old version of LaTeX was installed in my computer. Recently, I removed that old version and have installed the latest TeXstudio 2.12.8. But the files which were running in the old version without showing any warning, now is not running in the latest version. I gave run a file several times. It shows the following error  EDIT: log file from running  moderncv tex file


Show that if (R) is a gradient system then $\frac{\partial f_i}{\partial x_i}-\frac{\partial f_j}{\partial x_j}=0.$

The dynamical system $\dot{\vec x}=f(\vec x)$ (R) is called a gradient system if there exists a function $V(\vec x)$ such that $f(\vec x)=-\nabla V(\vec x).$ Show that if (R) is a gradient system then $$\frac{\partial f_i}{\partial x_i}-\frac{\partial f_j}{\partial x_j}=0.$$  Where do I begin with this?


Why is this bash array member expansion returning empty string?

I created a utility function to try to run 7z, then parse and construct a couple arrays of filenames and crcs from the output of 7z (which I want to use later in the function).  However, I'm getting weird behavior where, at the end of my function (currently - the function is still incomplete), when I try to use the bash syntax for expanding an array to all of its members, I just get the empty string.  Example of array expand syntax:  debuglog "z_filelist_name[@] = \"${z_filelist_name[@]}\""   That line results in output:  z_filelist_name[@] = ""  rmdupes() {    debuglog "rmdupes: removing duplicates for archive $1"      #get list of files in archive from 7z     #local z_filelist_raw     declare -a z_filelist_name     declare -A z_filelist_crc      #z_filelist_raw=$(7z l -slt "$1")     i=0      #parse output of 7z to build array of filenames and checksums     7z l -slt "$1" | while read line     do         #possibly dangerous assumption in code below: For every Path, there will be a crc, thus, don't increment i until we find crc         debuglog "Processing line:"         debuglog "$line"          if [ "${line:0:6}" = "Path =" ]         then             z_filelist_name[$i]=$(echo $line | cut -d ' ' -f 3 )          debuglog "z_filelist_name[$i] = \"${z_filelist_name[$i]}\""                    fi         if [ "${line:0:5}" = "CRC =" ]         then              #use bash associative array to associate filenames to crc values             z_filelist_crc[$z_filelist_name[$((i++))]]=$(echo $line | cut -d ' ' -f 3 )         fi     done      debuglog ""     debuglog "z_filelist_name[@] = \"${z_filelist_name[@]}\""       for zf in ${z_filelist_name[@]}    do         debuglog "Found Path (crc): $zf ( ${z_filelist_crc[$zf]} )"     done     }   Can anyone explain why the array values aren't being expanded properly. The debuglog statements earlier in the fuction that output individual elements by using the $i index variable, expand to the proper values.


What happens to my body when I am "inside" a Pensieve?

When I am viewing memories in my Pensieve, what happens to my physical body? From the perspective of an outside observer, do I physically enter the Pensieve or am I merely standing next to it in some sort of trance?


How long can cooked, refrigerated chicken breast stay out at room temperature?

I cooked up some fresh chicken two days (Saturday) ago and stored it in my fridge sealed in some Tupperware. I made a delicious wrap for work this morning with the same chicken from the fridge, got to work, but forgot to put it back on the fridge about an hour and a half after I initially took it out.  I see that the FDA states two hours is the safe threshold for freshly cooked chicken (straight from the oven), but does this change if the chicken wasn’t immediately cooked? That is, keeping cooked chicken that was refrigerated out at room temp?  Thank you, from a constant worrier


Okay, I made it through a page and a half of questions on this sub-domain that came up under the search "subjective", so I'm sorry if this has already been discussed to death. Please close this as duplicate with a pointer to the best question already asked, as I'm sure if this is a duplicate, it's not the only one.    So, I asked a subjective question a while back because I stopped being able to see the line between subjective and objective when questions like "should I learn more about xyz" and  "what is your favorite tool for thisorthat" and "favorite tricks for nameyourlanguage" kept coming up. And I got shut down right away. I'm not bitter. I was. But I'm not now. But it is a bit of a drag   a) seeing obviously subjective/personal questions get upvoted with hundreds of responses  b) seeing obviously subjective questions that are fun or intriguing get shut down after 10 minutes.  or  c) seeing obviously corny/boring/begging-to-get-shut-down questions in the way of real questions.  I know that the last one is everyone's least favorite and I'd like to think that the subjective rule was created for just those questions. But since subjective duh is a matter of taste, my (c) may be your (b) or (a) and so forth.  And having seen how much discussion has already gone down about this, I'm wondering if maybe we ought to accept that we're not just experts (or those in need of one, or both), but nerds who want to talk shop.  To further this discussion, I'd like to pose a question, a point, and a concept:  question: What are the stats on subjective questions? And by that I mean, are they more likely to be asked be someone with a higher reputation or someone with little or no reputation?  I ask because there is a difference between having a place for us all to wax poetically on our favorite CS joke, and having a problem with vandals storming the gates and asking silly questions about whether HTML is stupid or just really dumb. (I'm not sure that made sense at all. I'll try that again...)  Are subjective questions typically asked by folks as one of their first 10 questions?  a point: I have never understood how community wiki works, how to tell if a question is of that category, how to see only those questions or filter them out, etc. And from what I can tell from previous  discussion here, it has a few flaws to be worked out either way. Wouldn't a community.stackoverflow alleviate most of the problems (or at least give us a stern finger to point people?).  a concept: I think it would be silly to award points and reputation based on subjective questions, as they don't have a right answer. But the idea of trying to do such reminds me of one of my favorite British shows entitled QI.  Celebrities must answer questions that are impossibly hard and trivial and rather then simply getting points for knowing the answer, they are rewarded points for being Quite Interesting. Now, I imagine that would be near to impossible to judge as a group (rabble/angry mob/etc) but at the very least, it could be an encouraging model for such a SO site and would at the very least justify the idea of points for "right answers".  So, having thrown all of that out there, I'm dying to know, is such a SO site already in the works?


Looking for the name of a post apocalyptic/sci-fi tv show or film

Every once in a while this starts nagging me, I have really no idea and not much to go on so here goes...  A man wearing a blue? uniform walks into a town that looks abandoned and empty and all covered in dust.  The skies are brown/dirty with no sun.  He goes into the upstairs of one of the houses. He stops at I think a fireplace, examines something, or it’s like he’s remembering something.  Then downstairs in the street, a man/person wearing rags/robes with bandages covering his face starts banging on a fire hydrant with a stick/pipe. More people in bandages/robes start appearing, there's a chase in the town. I don't remember much but he's chased into wastes? through a gully or ditch and then a vehicle (only really remember that it was steel in colour) shows up and a woman comes and shoots one or two of the people chasing him.   That’s about all I remember. I was about 6 or 7 maybe and it was afternoon maybe a little later.  I thought maybe Star Trek, but after searching I don't think it is. I think it might be 80's, maybe early 90's. I think it's sci-fi rather than post-apocalyptic.


How to export FBX with random colours generated by shader and particle system?

I'm using the particle system to randomly generate items instead of manually doing it one by one, and then I'm utilizing shaders with a color ramp and random to randomize the base color of the particles. Problem is when I export as an FBX, it refuses to export with the randomized colours, it just sets all the particles to blue. Is there a way to fix this or am I going to have to do each particle manually? I mostly use blender for exporting objects instead of renders, wondering how useful shaders will be to me if at all. Thanks.


How to pass JSON in Set.Body Using rest and method= Post in apex?

I want to pass JSON as request Body in rest API request call using the POST method.  JSON:-   {  "product": {     "title": "Burton Custom Freestyle 151",     "body_html": "Good snowboard!",     "vendor": "Burton",     "product_type": "Snowboard",     "tags": "Barnes & Noble, John's Fav, \"Big Air\"",     "images": [       {         "src": "http://example.com/rails_logo.gif"       }     ]   } }   How to do this?


How does a capacitor function in a 120V AC motor circuit?

I don't understand the direction of current flow when a capacitor is wired in series with the start windings in, say, a fridge or other AC motor  running at/under 120V AC. Wiring diagrams seem to suggest that voltage energizes the hot leg of the circuit and current flows through the run windings and then returns via the neutral leg. Without a capacitor, the same thing would happen to the start windings. Problem there I guess is that both windings would be in phase and thus no spin created for the rotor. So, a capacitor is wired in series with the start windings which I kind of understand. But I don't know how the voltage and current behave. Does voltage energize the hot leg, flow through the start windings and then charge the capacitor? When voltage on the hot leg oscillates down to zero, does the capacitor discharge back toward the starter windings, or does current flow through the capacitor to the neutral leg? Basically I don't understand where the capacitor's charge goes when the hot leg is hot and when it is not. Lastly, is the capacitor placed between (downstream from) the start windings and neutral, or could it be wired between incoming voltage and the windings?


I'm using the natbib package and have a sentence like this:     Smith's (2000) argument is widely accepted.   If I use \citet{smith2000}'s, this will lead to "Smith (2000)'s argument...".  Is there any way to get the desired genitive-s directly behind the name?  Here's my preamble:  \documentclass[paper=a4, fontsize=11pt]{scrartcl}  \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs \usepackage{longtable} %Muss vor arydslin stehen! \usepackage{arydshln} \usepackage[ngerman, english]{babel} % English language/hyphenation \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amsthm} % Math packages \usepackage{arydshln} \usepackage[]{float} \usepackage[authoryear,round,longnamesfirst]{natbib} \bibliographystyle{plainnat}   Thanks for any hints!


Where can I find the log files for mounting disks?

I understand if I boot from a live cd  I can see all the system logs under System > Administration > File Log Viewer   I have a major error with a disk not mounting and I want to trace i tback to the last time it did work and what may have corrupted the ext4 filesystem on it.  So within the File Log Viewer Where do I start examining?


I used the bootstrap method to calculate the 95% CI of a rate ratio, but wonder how I could calculate a p-value to test the significance of the rate ratio by bootstrap?  Any help would be much appreciated!


mysterious pop up add in google chrome: "wonderland ads"

I have a laptop with a mysterious pop up add that starts in a seperate tab. It opens some add site called "wonderlandads" which then redirects to other sites. (Links    )  I've scanned my laptop with avast and also kaspersky's rootkit detection program and they both haven't found anything. Even tried running Lavasoft's Adaware but no help.   After that I uninstalled and reinstalled chrome itself. Still no solution.  Internet explorer on the same laptop does not face this issue. I have manually set the dns server's to Google's 8.8.8.8 and 8.8.4.4. Also set the IPv6 DNS to google's servers.   I've checked the hosts file and there's no entries in there. Searched the registry but couldn't find any entry for "wonderlandads". I've disabled all extensions within Chrome.   If I open an incognito window within  chrome then there this spam tab does not get invoked.   Any other tips? The Laptop is running Windows 8. What else can I do to debug this?  Update:  It seems I've temporarily fixed the problem. No more popups. My approach was to kill seemingly redundant chrome threads via the process explorer. One of them must have been the offending one. The solution sustains on hibernation. Now will see if it sustains a chrome restart & then a laptop reboot (doubt it).


The trace of a matrix is the sum of its eigenvalues

If $A$ is a complex square matrix, I need to prove that the trace of $A$ is the sum of its eigenvalues. I've already proved that, if $p(x)$ is the characteristic polynomial, then  $$p(x)=det(xI-A)=(x-\lambda_1)...(x-\lambda_n)=x^n-(\lambda_1+...+\lambda_n)+...+(-1)^ndet(A)$$  But I´m stuck with the proof... Thank you!  PS: I know that is a direct consequence of the identity $p(x)=x^n-Tr(A)+...+(-1)^ndet(A)$, but in that case, I need a proof of this identity...


Convexity of range set of a twice continuously differentiable function with convex domain

Let $X\subset\mathbb{R}$ is convex and $f:X\rightarrow\mathbb{R}$ is a twice continuously differentiable function. Is $f(X)$ convex?


if I enable short tag = true, then I can use like below   <?=$variableName ?>   Instead of   <?php echo $variableName ?>   I have below questions:   Does it good practice? Is there any server dependency? All open sources and framework support for this?


Writing a long document, compilation with Texmaker becomes too slow, so when I want to see how it looks, I loose time (not too much, but it is getting worse because of document's size).  Is there any way to compile faster?


SSL error, Sec_Error_Unknown_Issuer With Firefox

I purchased a certificate from  for my application, the problem is when I go to the url  I am getting the following message.   The certificate is not trusted because the issuer certificate is unknown. Error code sec_error_unknown_issuer. So people have mentioned that the intermediate certificate is need but I think that I have installed that as well as the main certificate.  This message seems to appear with Firefox and seems to be ok with the IEs  Any ideas?  Thanks


Animating Dynamic Paint with noise texture

so I'm trying to recreate this effect   and I've gotten as far as having the white area around a rock, but I've been struggling with animating the area where the brush touches the canvas. Eris gives a few notes on how he did it, but I haven't been able to follow them. Does anyone have a more detailed step on how to use noise texture to only affect the Brush area of effect?  Thank you


what are the odds from 5 persons, to at least 2 be born at the same day in the week?


How to check whether the image from the specified URL loaded or not

Through an ajax call, I am procuring URLs which I need to use to change the src of an img. However this is taking time. Meanwhile i need to show loading or something. How do i check whether $("#img#).attr("src","http:\\fsomething "); has loaded the image on the page or not?


Why didn't Starfleet know about the Borg prior to the events of "Q-Who"?

I have finally binged Star Trek: TNG and the movie series together so something stuck out for me so I apologize if this had been answered in a novelization or somewhere outside the TV series. In TNG the Federation met the Borg in "Q-Who" but in the beginning of Star Trek Generations Guinan and the rest of the El-Aurian were being sent to Earth (after what I think is the Borg attack on their world). When Guinan is rescued it was  2293, so wouldn't the El-Aurian people have told Starfleet about the Borg 80 years before the start of the series?


If I have Windows 7 Pro in a partition and Ubuntu 14.04 in a other partition, I can emulate the windows in my partition using Ubuntu? and if not, when windows software become available for Ubuntu? (Platform switching)??? TY all also if my question has no answers!


Why is standard deviation defined as sqrt(var(x)) and not as abs(X-u)?

Why is standard deviation usually defined as sqrt(var(x)) and not simply as abs(X-u) while the latter is simpler to understand and both give same values?


Given sets $A$ and $Y$, I want to show that there is a set $T$ such that given $a\in A$ an $y\in Y$ the ordered pair $(a,y)$ belongs to $T$.   $$$$   In other words we want to show that the existence of the set of ordered pairs $A\times Y$, or not?   For that do we have to apply the axioms of sets?


$f:X\to Y$ and $g:Y\to X$ are bijective and continuous. Then two metric spaces $X$ and $Y$ are homeomorphic?

Let $X,Y$ be metric spaces. Suppose that there is a mapping $f:X\to Y$ which is bijective and continuous. Suppose that there is a mapping $g:Y\to X$ which is bijective and continuous. Then, are $X$ and $Y$ homeomorphic?


Prove the inverse of this differentiable function is differentiable?

Suppose we have a differentiable function $ g $ that maps from a real interval $ I $ to the real numbers and suppose $ g'(r)>0$ for all $ r$ in $ I $.  Then I want to show that $ g^{-1}$ is differentiable on $g(I). $  Intuitively this makes sense but I can't come up with a neat proof. I was thinking to use the mean value theorem but I'm not sure if that would get me anywhere.


Windows 7 Delete heavily nested folder structure

I was running a node script that went awry and created a folder structure like so:  \myfolder     \myfolder     \file.txt         \myfolder             \file.txt                 \myfolder                 \file.txt                     \etc.   This is nested to an extent of over 300 times, I would estimate, if not more.  I cannot del it because it is too long a file path.  I cannot use robocopy because it actually freezes around this point:    I cannot use FileAssassin as it is only for files apparently.  I have tried using the .bat script from this answer  , and it is still running, but I fear at the level of recursion that the folder is at even if every single subfolder was renamed to one character it would still be longer than 260 (or whatever the limit is).   How do I remove this problem from my filesystem?  EDIT  DeepRemove is successful! Victory! 3,421 levels of recursion. Jeesh! I'll be more careful with nodejs (or any programmatic modification of the filesystem) from now on, esp. when recursion is involved!


How can I reduce the file size of a scanned PDF file?

I have a 72.9MB PDF file that I need to shrink into under 500KB.  The file was a JPEG image that I had scanned, and then converted to pdf.


How do I automagically use  in custom page template?

I have searched a lot now and not found a real solution that helps me with this:  I am creating a custom page template for an archive page. This (static) page will show all my blog posts ordered by year & months. I figured that this is already a long list of about 500 posts, so I decided that I would want a "paginated" archive page with 75 posts each. But i cannot figure out, how to use the -shortcode in my php template. I inserted as show below, and it only works 50%. It "ends" the current page, but does not add the links for the following pages.
 <?php     $all_posts = get_posts(array(         'posts_per_page' => -1 // to show all posts     ));      // this variable will contain all the posts in a associative array     // with three levels, for every year, month and posts.      $ordered_posts = array();     $post_count = 0;      foreach ($all_posts as $single) {         $year  = mysql2date('Y', $single->post_date);         $month = mysql2date('F', $single->post_date);          // specifies the position of the current post         $ordered_posts[$year][$month][] = $single;      }      // iterates the years     foreach ($ordered_posts as $year => $months) { ?>
<?php echo $year ?>

         <?php foreach ($months as $month => $posts ) { // iterates the moths ?>

<?php printf("%s " . $year . " (%d)", $month, count($months[$month]));?>

                 <?php if ( ! has_category( is_category( pinboard_get_option( 'portfolio_cat' ) ) ) ):                 foreach ($posts as $single ) { // iterates the posts ?>
                         <a href="<?php echo get_permalink($single->ID); ?>" class="article"><?php echo get_the_title($single->ID); ?> - <?php $categories = get_the_category($single->ID);                         $separator = ' ';                         $output = '';                         if($categories){                             foreach($categories as $category) {                                     $output .= 'term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" class="category">'.$category->cat_name.''.$separator.'['.$post_count.']';                                 }                                 echo trim($output, $separator);                             }                             $post_count++;                             /*                             if ( $post_count > 75 ):                                 return '';                             endif;                             // Kinda works: ends "page" but does not add pagination                             */                             ?>
                 <?php }                 endif; // ends foreach $posts ?>

         <?php } // ends foreach for $months ?>
      <?php } // ends foreach for $ordered_posts ?>

 <?php wp_link_pages( array( 'before' => '
' . __( 'Pages:', 'pinboard' ), 'after' => '
' ) ); ?>


Difference between "but" and "nothing but"

Every now and then I stumble about a construction like this:     It was but something....   and I understand it to be      It was nothing but....   or     It was only...   depending on the context.  I do know what this "but" means and I do know what else "but" can mean. My question is this?  Is the a difference between "but" and "nothing but" in this context, be it ever so small and hidden in tone or emphasis? Is there such a difference between "but" and "only"? And finally is "but" in this context something you can say or does that make you sound way out there? Thanks a lot


I use UKenglish package. And the \date command produces the date like so: 10th October 2011. But I want just 10 October 2011; th should be omitted. How can this be done? I tried using datetime package. But couldn't eliminate th in the date.


Tell now I have studied that java uses pass-by-value but I am bit confused here

public class Passing_Objects_to_Methods  { int id; public Passing_Objects_to_Methods(int id)  {     this.id=id; } public static void swap(Passing_Objects_to_Methods b1,Passing_Objects_to_Methods b2) {     Passing_Objects_to_Methods temp;     temp=b1;     b1=b2;     b2=temp; } public static void main(String []args) {     Passing_Objects_to_Methods obj1=new Passing_Objects_to_Methods(2);     Passing_Objects_to_Methods obj2=new Passing_Objects_to_Methods(1);     System.out.println("Before Swapping");     System.out.println("Id of obj1 "+obj1.id);     System.out.println("Id of obj2 "+obj2.id);     swap(obj1, obj2);     System.out.println("After Swapping");     System.out.println("Id of obj1 "+obj1.id);     System.out.println("Id of obj2 "+obj2.id); }     When I pass object and try to interchange it wont change outside the block since java is pass-by-value But public class Passing_Objects_to_Methods_Part2 {     int id;     public Passing_Objects_to_Methods_Part2(int id)      {         this.id=id;     }              public static void Swap(Passing_Objects_to_Methods_Part2 b1,Passing_Objects_to_Methods_Part2 b2)     {         int temp;         temp=b1.id;         b1.id=b2.id;         b2.id=temp;     }     public static void main(String[] args)     {         Passing_Objects_to_Methods_Part2 obj1=new Passing_Objects_to_Methods_Part2(2);         Passing_Objects_to_Methods_Part2 obj2=new Passing_Objects_to_Methods_Part2(1);         System.out.println("Before Swapping");         System.out.println("Id of obj1 "+obj1.id);         System.out.println("Id of obj2 "+obj2.id);         Swap(obj1, obj2);         System.out.println("After Swapping");         System.out.println("Id of obj1 "+obj1.id);         System.out.println("Id of obj2 "+obj2.id);      } }  As I try to interchange The variables of objects it does change them Outside the block also.Please Tell me the reason.


Why does this differentation output correct result?

I noticed something funny. If you differentiate $x^x$ treating the exponent as a constant, you get $xx^{x-1}=x^x$. If you treat the base as a constant, you get $x^x \ln{x}$. If you add these two bizzare and incorrect derivatives of $x^x$, you get $x^x(1+\ln{x})$, which is correct!  Is it merely a weird and funny coincidence or is it a part of a deeper result?  (I'm checking it for $(x^x)^x$, but it will take a while :) )


Why does sizeof show 4 bytes for a char?

So I am currently a student and am having a programming couse.  Today we had about the use of sizeof in different classes(if it had 1 int or 2 int´s and so on)  One part of the example I found weird was this:  class TwoIntAndACharClass { public:     int x_;     int y_;     char z_; };   and the part to test it  TwoIntAndACharClass o3b; cout << "Sizeof TwoIntAndACharClass          = " <<  sizeof(o3b) << "\n";   So in the program i could see a class with 1 char took 1 byte. So when I saw this I thought I would see 9 bytes and not 12  So first I thought that it was weird but after some time I came to the conclusion that it might save some kind of blocks of 4 bytes.  To be 100% sure that this was true I then tried adding a new variable into the class(a double variable of 8 bytes) and the total size increased from 12 bytes to now 24 bytes. That ment that the char now had to be 8 bytes long so my last theory failed.  My last theory was that it would take the biggest already declared variable and use the size of that for the char variable _z , as this worked with both long long int(8 bytes) and a double(also 8 bytes)  So my question is, is my last theory true - or is it something different making the char take more memory then needed? (my teacher did say that each compiler could handle this differently but I have tried it on microsoft visual studio and a friend tried it on another compiler with the same results, but is that really true, is it the way the compiler handle this?)  Sorry for my poor english.


Convergence of series $\sum 1/n$ such that this decimal expression doesn't contain 5.

Study the convergence of the series $\sum 1/n$ where $n$ is all naturals numbers, and the sum is taken for all 1/n that not contain que number 5 in this decimal expresion.   For example:  1 + 1/3 + 1/5 + 1/6 + 1/9 + ...  I delete 1/2, 1/4, 1/7,... because this decimal expresion containing a 5.


Is is possible to increase the depth of field in cycles while keeping the same blur size? I know this is not physically correct, but in some renders this would be useful. Here is a demonstration of what I am looking for: Normal Focus:  What I'm trying to achieve (New part shaded green):  Is this possible (Maybe with the compositor)? If so, how? Any help is appreciated. An example for what this would be used for would be the following: I have a somewhat lengthy main object that I want in focus. The other background objects are moderately close to the main object, but I want them to be blurred. If you increase the DOF blur to ensure the background objects aren't in focus, your main object is only partially in focus. The Depth of focus is too shallow to fit your main object. Now if you change to a wide DOF, the background objects would still be relatively clear which is not what you want. The solution is what I am describing; You would set a very shallow DOF, initially, so that the background is well out of focus, and then you would increase just the focus area to cover the main object but keep the blur amount the same.


I'm trying to handle an exception to avoid my program crash if double.Parse(string) tries parsing invalid values (such as strings instead of numbers). Here's what I've got:  do {     //asking customer the amount of shirts he would like to buy any shirts they want.     numbershirtString = Console.ReadLine(); // customer types in amount of shirts they want.     numbershirts = double.Parse(numbershirtString);      keepLooping = true;      if (numbershirts < 10)     {         Console.WriteLine("You would be buying " + numbershirts + " shirts");         keepLooping = false;     }      if (numbershirts > 10)     {         Console.WriteLine("You cannot order more than 10 shirts. Please try again.");         keepLooping = true;     }  } while (keepLooping);   I would appreciate your help. Thank you in advance!


Inquiry for Ph.D admissions in European countries

I want to pursue a Ph.D in Chemistry and the destinations of my choice are Germany, Switzerland, Netherlands and Sweden. Can anyone please tell me the scholarships and fellowships available to which an Indian student can apply in these countries? (I know of a DAAD fellowship for Germany)  I would also love to know if there is any centralized admission process to these countries (similar to US)?  Thank you


What are good books for special relativity?

I read Introduction to special relativity by Robert Resnick. It is a beautiful book as an introduction. I got insights and intuition in special relativity. I want to learn special relativity at a more deeper level. Please recommend some books/research papers for special relativity?


If there is an difference, if I use " or ' in javascript or html?  Till now I was coding in php and java only and now I don't know, if I can use ' only or do I have to use ".   I know a bit stupid question, but it makes me confuse, since I am used to ' syntex instead of ".


If a warlock's invocation states that they can use a spell without a slot does that mean they can cast the spell as often as they want?

On page 111 of the 5E hand book the invocations Misty Visions, Mask of Many Faces, Master of Myriad Forms, and Otherworldly Leap all they that you can cast them without expending a spell slot. Does this mean the spells essentially become cantrips and I can cast them as often as I want?


Delete a user and all files owned by this user

I have used deluser without the parameter --remove-all-files:  $ deluser 'user'   Is there a way other than rm -r /home/user to remove all files owned by a user now (since I have already executed deluser)?


VMware Workstation recommends 2 GB of system swap space

When I start a virtual machine, it appears the following message:    The question is, how to increase the swap file?   I am using VMware® Workstation 15 Pro 15.0.2 build-10952284  This is the actual size of swap:  swapon NAME      TYPE SIZE USED PRIO /swapfile file   2G  11M   -2


"handy" instead of "mobile phone" (non-Germans)

Does anybody (non-German) ever use the word handy instead of mobile-phone in English?


Wait 1 second before executing AJAX request onkeyup

I've got an ajax request that executes every time an user presses some button (writes text) in a certain textarea. This would work great already (it is a search filtering function btw.), but it would n't be a good idea to execute the filter after each keystroke. So I was thinking about making a delayer thing. So the ajax request would only execute only when at least 1 second has passed since the user pressed the last button. How can I achieve this?  <textarea id="text" name="text" onkeyup="Search()"</textarea>  function Search() {     $.ajax({...     ... }   So obviously it will run all the time. For example if I type "hello" into the textarea fast it will run 5 times and it has no use. It would be enough to run it only when I stopped writing for more than 1 second.


Adding uncertainties when you cannot make any assumptions about the measurements

From what , when adding two $x$ and $y$ measurements with uncertainties $\delta x$ and $\delta y$, the resulting uncertainty is determined by doing:  $$\delta z = \sqrt{(\delta x)^2 + (\delta y)^2}$$  I am writing a software library to handle measurements and it includes the concept of precision/uncertainty. However, I have no way of knowing the context of the measurements. Is therefor not more correct for me to "assume the worst" and do:  $$\delta z = \delta x + \delta y$$  I know, from what I read, that this overestimates the uncertainty of $z$, and that it is very unlikely for both uncertainties to be their maximum. But on the other hand, it is theoretically possible and it's not up to me to make assumptions.  At least, that's my thinking process for now, but I'm no physics expert. But I would like my software library to be as correct as possible.


Can a personal pronoun such as I and they be used in passive expressions of mistake? If yes, what is the meaning?  For example,     I am mistaken.   They are mistaken.


What force counteracts the electrostatic attraction of an electron in an atom?

We all know it is not the centrifugal force.  Given that the probability density multiplied by the surface area of a shell peaks at some distance from the nucleus. Also given that the electron in the atom does not behave like a tiny ball of matter, but like a wave function with probability distribution spread out through space.   Still, there is a very very strong electrostatic attraction between the electron and the nucleus due to their tiny distance.   (a) What force counteracts this attractive force to prevent all of the electrons from sticking to the nucleus?  (b) Why is the kinetic energy of the electron twice the fall in potential energy? As an example, a meteor falling towards earth would not stop when the KE is twice the PE, it would continue falling till all the PE is converted to KE simply because the attractive force does not stop at any point.   (c) Why doesn't the electrostatic attraction ensure that the highest probability of finding the electron is on or within the nucleus?  (d) Given the Pauli exclusion principle saying that all electrons cannot have the same energy, meaning all cannot be sticking to the nucleus or within the nucleus, still there has to be an opposing force holding the electrons at successively higher energy levels, like the reaction force from the tree holds the apple up at a higher potential energy. If the opposing force is not there, then they must fall and lose energy. Why is this opposing force not needed for an electron?  (e) Can we say that while an electron is in an atom, it does not behave like a particle at all, so it is not attracted by and does not accelerate towards the nucleus because only particles can do that and waves cannot, meaning there is no such thing as a charge, attraction, mass or acceleration for a wave.   Sorry to ask many different ways, but it illustrates problems in understanding that need to be solved.


How do I get emails when someone comments on my question?  I read that you need to click the Stack Exchange icon in the top left, but all I get are communities ().


How do I give a villager trades with custom NBT tags

I want to make a special villager that will trade a custom structure block upon the given items. I don't know how to get a villager to trade items with NBT tags though. What would I do with this example:  /summon Villager ~ ~ ~ {Profession:0,CustomName:"Carpenter",CustomNameVisible:0,Career:4,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.knockbackResistance",Base:"1f"},{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"stick",Count:8},buyB:{id:"wooden_pressure_plate",Count:1},maxUses:9999999,sell:{id:"structure_block",Count:1},rewardExp:false}]}}


Ubuntu 14.04 won't load onto an empty hard drive

I have 2 HD's; 40 GB,Ch0 master with Win XP; 160 GB,Ch0 slave with Ubuntu 12.04. I used Parted Magic to repartition the 160 GB drive and I changed the jumpers to reverse the master/slave position. Now I have Win XP on the 40 GB slave drive and an empty 160 GB HD master. I partitioned the 160 GB HD as 1 GB boot; 78 GB root; 62 GB Home and 8+ GB Linux-Swap.  I used Parted Magic and Boot Repair Disk to install the MBR and Grub2; however, in searching the drive I can't find them. Atempts to install Ubuntu 14.04 using a DVD+R, I consistently get the message "missing operating system - operating system load error". Does anyone have an idea why the Ubuntu 14.04.1-i386-iso won't load?  I followed the suggestions of Virusboy and gyropyge by deleting the partitions. I also disconnected the Windows XP drive as suggested by gyropyge. The Seagate Barracuda 160GB drive was designated as unallocated. I then attempted to install Ubuntu 14.04.1 from a DVD iso I downloaded from the Ubuntu website. I set all 3 options in the BIOS to boot from CDROM. Upon restarting, after the BIOS processed, I get "missing operating system" which repeats until I shut down. I then used Parted Magic, changed the drive from "unallocated" to one large formatted partition. I got the same result: "missing operating system".


How do I make a slow clock without taking up space?

I'm making a minigame where a player has to survive in essentially a world of hell. I am creating a "water bar", where players must drink to survive. It is a dummy scoreboard objective. I want to run the command     "/scoreboard players @p remove water 1" every 3 minutes so players can run out of water. The current loop I have is a circle loop () but much bigger than the one shown. Is there a way I can make a loop that's much smaller than the one I have currently but still sends a signal to the command block once every 3 minutes?


What causes the portraits of Wizards to behave interactively?

Does J.K. Rowling address how the interactive portraits work? Would a portrait painted after a Wizard/Witch died become interactive, or does the painting of the portrait have to take place during the Wizard/Witches lifetime?


Evaluate $\lim_{n\to\infty}\frac {qn+1}{qn} \frac {qn+p+1}{qn+p} \cdots \frac {qn+np+1}{qn+np}$ where $p\in\mathbb{N}\setminus\{0,1\},q>0.$

Evaluate $$\lim_{n\to\infty}\frac {qn+1}{qn} \frac {qn+p+1}{qn+p} \dotsm \frac {qn+np+1}{qn+np}$$ where $p\in\mathbb{N}\setminus\{0,1\},q>0.$   Any hints on how to approach this problem in the first place? The answer should be: $\left(\frac {p+q}q\right)^{1/p}$  I have just tried something and got pretty close to the result anyway:  Let $\lim_{n\to\infty} \frac {qn + 1}{qn}\frac {qn+p+1}{qn+p}\dotsm\frac {qn+np+1}{qn+np}=L$ taking the $\ln$ on both sides we get:  $$\lim_{n\to\infty} \sum_{k=0}^n\ln\left(1+\frac1{qn+kp}\right).$$  Here (I'm not sure if I'm wrong here) but if we use the remarkable limit on each of these $\ln$. $\lim_{x\to0}\frac{ln(1+x)}{x}=1$.  $$\lim_{n\to\infty}\sum_{k=0}^n\frac1n\frac1{q+ \frac knp}\xrightarrow[{n\rightarrow\infty}]{}\int_0^1\frac 1{q+xp}dx=\frac 1p\ln\frac {p+q}{q}=\ln L.$$  $\implies \boxed{L=\sqrt[p]{\frac{p+q}q}}.$


Underlining Text in Latex -- No Vertical Gap

There are many questions/answers on Stack Exchange and elsewhere regarding underlining text in latex. After reading (a selection of) these, I tend to use \underline{...}. I have one (fairly major) complaint.  The vertical spacing changes dependent on .... Eg, \underline{words} looks fine, while \underline{writings} looks (in my opinion) awful because the line is placed so far below the text, so as to be sufficiently below the g.  With a g, due to the fact that the bit below the line is the full width of the letter, one can get around this with \underline{writin}g\underline{s} (most unsatisfactory). However, something like that doesn't work for p or q.  How can I force the underline to be placed at the natural height below the word (such as in the case \underline{text} for all words? (The line would then pass through parts of a g, p or q.)


I understand how integers and rationals are expressed/derived in ZFC. But what about the irrational numbers? Can they also be expressed? If not, are there other axiomatic set theories able to express them? As for Dedekind cuts, from my understanding (maybe wrong), any irrational in question must have a 1-1 explicit function to a natural number, in order for the method to work (As an example the square root of 2 has such a function).  It boils down to this: is there an isomorphism between the the set of irrationals (as "just" numbers) and a a set of pure sets?


Google Chrome used to work for me, but today it started to act weirdly. When I open it(on Docky), it will create a new window instead of keeping on its own icon. To fix that, I ran sudo apt-get purge google-chrome stable and then re-installed it. But now it is worse. Before, the new window had a title and a blurry icon, now it has no title and no icon. Is there a way to fix it? what should be done?


What exactly *is* the Riemann zeta function?

I'm doing a little project on the $\zeta$ function, and I am at a complete loss of what it is actually doing.  I understand it is way over my head, but when I am plugging say $\zeta(1 + i)$ into WolframAlpha, what is it even calculating? Wikipedia and .edu sites don't seem to have an answer, which is making me think there is no single answer.  Thanks, smart people of MathStack!  EDIT:  Why is everyone voting to close this? I understand it's similar to a different question, but this question might provide someone with some different intuition.  Either way - this helped me a ton! Thanks @Mixed_Math.


We are 2 families, 4 adults and 4 kids (age 8, 11, 13, and 16) reaching at LHR  airport from USA.  Which will better economically save money and time to purchase, Oyster Card or London pass with travelcard?  We'll be able to spend half a day in London on June 1st, all day on June 4th and most of the day on June 5th.


Question about the solution of the wave equation

The solution of the wave equation $$u_{tt}-c^2u_{xx}=0$$ is given as $$u(x,t)=f(x+ct)+g(x-ct)$$ where $f,g$ are arbitrary functions of one variable.  One way to prove this is the following:  $$(\partial_{tt}-c^2 \partial_{xx})u=0$$ $$(\partial_t-c \partial_x)(\partial_t+c \partial_x)u=0$$  So solutions must satisfy  $$ (\partial_t-c \partial_x)u=0 \;\;\cup\;\;  (\partial_t+c \partial_x)u=0 $$  $\displaystyle{(\partial_t-c \partial_x)u=0 \Rightarrow u=f(x+ct)}$  $\displaystyle{(\partial_t+c \partial_x)u=0 \Rightarrow u=g(x-ct)}$    Could you explain me why the last two equations stand??


Small, nitpicky edits to grammar, punctuation, and capitalization feel really patronizing

I understand why the edit feature exists, but when people use it to adjust grammar, punctuation, capitalization, or minor changes in wording, it feels patronizing, and it makes me uncomfortable.  This site is very useful for getting answers, but I'm really uncomfortable about posting here because I don't want to deal with someone jumping down my throat over not using camel case for a book title.


I have the following code that I use to populate a DataTable with information from a CSV file.  I have declared a DataTable as a class attribute  public partial class Super_Proyectos_LoadProjects: System.Web.UI.Page {    private DataTable dt;    private DataTable datosC;    string rutaActual;    .... }   protected void btnLoad_Click(object sender, EventArgs e) {     if(fupCSV.HasFile)     {         try         {             string csvPath = Server.MapPath("~/Projects/") + Path.GetFileName(fupCSV.PostedFile.FileName);             fupCSV.SaveAs(csvPath);              dt = new DataTable();                             dt.Columns.AddRange(new DataColumn[8] { new DataColumn("Project ID", typeof(string)), new DataColumn("Worker ID", typeof(string)),                                 new DataColumn("Project Name", typeof(string)));             dt.TableName = "Project";              string csvData = File.ReadAllText(csvPath);               foreach(string row in csvData.Split('\n'))             {                 if(!string.IsNullOrEmpty(row))                 {                     dt.Rows.Add();                     int i = 0;                      foreach (string cell in row.Split(','))                     {                         dt.Rows[dt.Rows.Count - 1][i] = cell;                         i++;                     }                 }                                 }                                                 gvProyectos.DataSource = dt;             gvProyectos.DataBind();                         }         catch(Exception)         {             string script = @"<script type='text/javascript'>                         alert('Error al cargar los datos.');                     </script>";              ScriptManager.RegisterStartupScript(this, typeof(Page), "alerta", script, false);         }                 } }   Everything works fine here  protected void btnAccept_Click(object sender, EventArgs e) {     Response.Write(dt.Rows[0][0].ToString()); }   But when I click on the accept button I get the following error:     Object reference not set to an instance of an object.   Why do I get error when using the DataTable outside where it was loaded?


Is it possible to dodge a Tower shot after it has locked onto you and fired?

Is there anyway to dodge a Tower shot after it has already been fired at you? I find myself Tower-Diving to chase an enemy down, only to get sniped at the last second by a heavy bullet that had been chasing me. Is there a way to dodge one after it has been fired after me?   I would prefer answers that can apply to many/all champions.


Characteristic of  a Non-unital Integral Ring

If $R$ is a unital integral ring, then its characteristic is either $0$ or prime. If $R$ is a ring without unit, then the char of $R$ is defined to be the smallest positive integer $p$ s.t. $ pa = 0 $ for some nonzero element $a \in R$. I am not sure how to prove that the characteristic of an integral domain without a unit is still either $0$ or a prime $p$. I know that if $p$ is the char of $R$, then $px = 0 $ for all $x \in R$. If we assume $ p \neq 0 $ and $R$ has nonzero char, and $p$ factors into $nm$, then $ (nm) a = 0 $ , which means $ n (ma) = 0 $. Well $ma \neq 0$, because this would contradict the minimality of $p$ on $a$. But I don't know where to go from this point w/o invoking a unit.   Edit: I had left out the assumption that $R$ is assumed to be a integral domain. This has been corrected.


Retrieving photos taken without a memory card

We went out for a picnic and took lots of photos but we didn't spot that there was no memory card in the camera until afterwards.   If there was no memory card in Digital SLR camera is there a way to get back the photos taken?   Some images are shown when the camera is connected to a laptop but they are not saved and not detected.


Draw arrows to show multiplication pattern (distributive property)

Based on this question:  I got some nice tools for illustrating to my students how to find the product of a number or a variable and a parenthesis.   However, the solution fails when I should have two sources in one line, for instance when expanding (a+3)(b+4). I would also be able to place a small number next to or above the arrowhead to indicate the first calculation, the second, etc. The second set of arrows could just as well go below the expression, not above it, to simplify things.   I could of course define myself a new set of macros similar to the existing ones, for instance \sourceTwo and \targetTwo, but it feels like this could be done more elegant.   MWE:  \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \newcommand\source[1]{%     \tikz[remember picture,baseline,inner sep=0pt] {%         \node [name=source,anchor=base]{$#1$};     }%     \setcounter{target}{0} } \newcounter{target} \newcommand\target[1]{%     \tikz[remember picture,baseline,inner sep=0pt] {%         \node [name=target-\thetarget,anchor=base]{$#1$};     }%     \stepcounter{target}% } \newcommand\drawarrows{     \tikz[remember picture, overlay, bend left=45, -latex] {         \foreach \i [evaluate=\i as \n using int(\i-1)] in {1,...,\thetarget} {             \draw (source.north) to (target-\n.north);         }     } }  \begin{document}  \begin{equation}     (\source{a}+4)(\target{b}+\target{3}) = \drawarrows \end{equation}  \end{document}


Is it possible to install Windows 7 alongside Ubuntu and windows 10 dualboot?

I installed windows 10 on my laptop in UEFI mode with HDD GPT disk format, then I installed Ubuntu 16.04LTS on another partition. So I have Ubuntu dualboot with Windows 10 now.  I also installed rEFInd (it's like GUI for you to choose between different OSs) because I don't wanna use Grub2 as the default bootloader. Now I want to have Windows 7 too, but when I boot from the USB stick, an error screen showed up saying something like  the windows boot manager is having problems due to a recent hardware change   My system is still working fine so I don't know if the problem came from my system or if the setup I want is impossible.


Ubuntu boots only out of installer: All boot options are tried

I have Ativ 9 Lite, on which I have installed the Ubuntu (Gnome) 14.04 daily. I after I complete the install and restart using the option offered at the end of the installation procedure, Ubuntu boots fine (from the SSD). However, if I now restart (or start from cold) it gives the error:  All boot options are tried. Press F4 key to recover with factory image using Recovery or any other keys for next boot loop iteration.  I have a EFI (with boot flag) and a / partition. The firmware boot order list is empty. I have set both Secure boot and Fast boot to disabled, and the firmware looks for both UEFI and CSM. How do I make the firmware find Ubuntu, as the installer also could? here is my boot-repair output:


T-SQL : Searching values in several table

I've got several table with the column Archive. On a trigger I would like to check if the value exist in several tables.  Of course I can duplicate the query for each table but I think it could be easier to do this with a variable.   I've got a table RefTable with all the table created in the datase ID, TblName.  All the table are in the same database  Here is what I would like but it is not working :  IF EXISTS (SELECT archive from (select TblName FROM RefTable) WHERE archive = @var)


I'm traveling next week to Montreal, Canada for 2 weeks and then for another week to New York. I want to buy a SIM card for my smartphone in Montreal that will also work in New York.  The main purpose of the phone will be calls (not a lot) and maybe some text messages, no Internet needed. Of course I'm looking to buy the sim card wherever it is cheaper. Could you tell me which cell phone provider in Canada is the best solution for me?


I'm getting a strange message each time I boot. For a quick second before the Apple Logo appears I see the text:  BuildError(): error building a user of type 0x20010008   Then the Logo appears, and shortly after the Login screen. After which the following errors appear:  BuildError(): error building a user of type 0x20010008 **** ERROR _CreateMenuWithWithIdentifier no image for file: 1_flag_menu_item.png **** ERROR _CreateMenuWithWithIdentifier no image for file: 77_flag_other_menu_item.png **** ERROR UIFlagPickerRestoreState No state found for flag picker **** ERROR ArchiveViewCreateWithOptions ArchiveCopyPNGImage failed for file: preferences_good_samaritan_message_ribbon.png **** ERROR ArchiveViewCreateWithOptions ArchiveCopyPNGImage failed for file: logimui_bootprogressbar.png   In verbose boot this is in big text before the usual status messages that show loading of the OS.  I'm was running OS X 10.10.4, and this began once I upgraded to the GM Candidate of El Capitan 10.11, which is the newest and stable release. Haven't a clue about what it is.  Any ideas as to what these messages are?  Update: Fresh Install  I just wiped my computer and did a fresh install of 10.11 GM El Capitan. Still showing up. Seems to be an issue of the new OS.


Invalid signature when trying to apt-get update on Kali

I'm getting an invalid signature error when I try to apt-get update:  Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease  Hit:2 http://dl.google.com/linux/chrome/deb stable Release   Hit:4 https://download.sublimetext.com apt/dev/ InRelease                        Hit:5 http://deb.i2p2.no unstable InRelease                           Get:6 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]  Err:6 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease   The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> W: Some index files failed to download. They have been ignored, or old ones used instead.   Why is this happening? How can I fix it?


How do I use two different versions of wine on the same installation?

I need to use two different Windows applications, one works well with Wine 1.4 but not on Wine 1.5 and the other application works well with the later version but not with the former.  Is there a way to have both versions of Wine installed, specifying which application should run with which Wine version?


Arcpy ListDatasets function to specific directories instead of workspace

Are there any alternatives to the arcpy list functions (ListDatasets, etc.) where the directory can be specified rather than using the env.workspace?    For example, what if I would like to get a list of datasets in several different directories?    Or if I have my workspace in_memory?    The os.walk might partially work, but won't recognize non-file-based data types.  Is another function or snippets that can accomplish this?


Integer solutions to the equation $a^3+b^3+c^3=30$

The following problem was posed to me but I could not do much about it:     Determine if there are any integer solutions to the equation   $a^3+b^3+c^3=30$   I made a computer search that shows that there are no integers $a,b,c$ such that $a^3+b^3+c^3=30$ and $|a|,|b|,|c|<51$  Thank you a lot.


JdbcTemplate is not able to connect to databse

I have a Roles pojo class which maps to Roles table in the database . Then i have RolesDao and it's implementation RolesDaoImpl.  i call the RolesDao using the below code in the main() method :-  RolesDao rolesDao = context.getBean( RolesDao.class);         rolesDao.getRolesList();   But i get the below error : -  Exception in thread "main" java.lang.NullPointerException     at com.rahul.spring.dao.RolesDaoImpl.getRolesList(RolesDaoImpl.java:35)   How do i resolve it ?  My RolesDaoImpl is below :-  @Component public class RolesDaoImpl  extends BaseDaoImpl implements RolesDao  {  @Autowired private OracleConfiguration dataSource; public List<Roles> getRolesList() {          String sql = "SELECT * FROM ROLES";         List<Roles> customers  = getJdbcTemplate().query(sql,                 new BeanPropertyRowMapper<Roles>(Roles.class));         return customers;         }   And my BaseDaoImpl is below       @Component     public class BaseDaoImpl {        private JdbcTemplate jdbcTemplate; //getters and setters omitted for brevity          private String packageName; public JdbcTemplate getJdbcTemplate() {         return jdbcTemplate;     }       public void setDataSource ( DataSource dataSource )     {         this.jdbcTemplate = new JdbcTemplate(dataSource);     }   And my OracleConfiguration class is   @Configuration //@ConfigurationProperties("oracle") @PropertySource("classpath:dev.properties") public class OracleConfiguration {      @Value( "${oracle.username}" )     private String username;// we can remove value injection and just use      @Value( "${oracle.password}" )     private String password;  @Value( "${oracle.url}" )     private String url;     @Value( "${oracle.driverType}" )     private String driverType;     @Bean DataSource dataSource() throws SQLException {      OracleDataSource dataSource = new OracleDataSource();     dataSource.setDriverType(driverType);     dataSource.setUser(username);     dataSource.setPassword(password);     dataSource.setURL(url);     dataSource.setImplicitCachingEnabled(true);     dataSource.setFastConnectionFailoverEnabled(true);     return dataSource; }   I am able to print/get the values from dev.properties file.


Way to keep header footer distance same for first page, smaller after that?

Is there a way in which i can keep the original header/footer size for the first page, then use smaller margins from the second page then on in?


Why is the even root of a number always positive?

Let $n \in \mathbb N$ be a natural number and $a \in \mathbb R$ be a real number. The $n$-th root of the number $a$ is defined as follows:  Case I: $n$ is an odd number. In this case the $n^{\text{th}}$ root of $a$ is defined to be that number $b \in \mathbb R$ such that $b^n = a$.  Case II: $n$ is an even number. In this case the $n^{\text{th}}$ root of $a$ is defined to be that number $b \geq 0$ such that $b^n = a$.  Why is it that when $n$ is even, we only consider $b \geq 0$. For example, both $+2$ and $-2$ squared equal $4$, but when we say the square root of $4$ is $2$. Is there a reason for this?


I understand  the definition of  limit. I can use it to prove things, but I still  don't  get the motivation behind it.


Okay. This is similar to a question I asked a few days ago. I am trying to show that $Aut~ Z_p$ is isomorphic to $Z_{p-1}$, where $Z_p$ denotes the congruence class of integers $\mod p$ and $p$ a prime. I have shown $Aut~ Z_p$ consists of $p-1$ elements, using the fact that a homomorphism is uniquely determined by how it maps $[1]_p$, the generator of $Z_p$; the only element it cannot be mapped to is $[0]_p$, otherwise $[1]_p \rightarrow [k]_p \neq [0]_p$ extends to an automorphism.  Now I am trying to show that $Aut~ Z_p$ is a cyclic, and show that mapping the generator of $Aut~ Z_p$ to $Z_{p-1}$ defines an isomorphism. However, I am having trouble showing this. I could use some hints.  Note: At this point, I don't know anything about fields (let alone rings), the order of an element, and related concepts.   Edit: I noticed that the question was asked , but from my cursory reading I didn't see any ideas I could use yet.


Accessing files with permissions through live cd of ubuntu for backing up the entire files of a previous installation

Hi all iam having an ubuntu istallation on my laptop which happens to be not working, i need to back up my data as the ubuntu is not booting up. but when i tried to back up data  by connecting the hard drive through hard disk enclosure on a different pc though live usb feature of ubuntu , there are some files of my personal data which cannot be accessed and says i do not have permissions to use, read or open. Can anyone please provide me a solution