matlab plot jump discontinuity
Plotting a Continuous signal
Proof that a sum of Bernoulli rvs has Binomial distribution How does a wizard or bard learn new spells? Unique (non-repeating) random numbers in O(1)? I'd like to generate unique random numbers between 0 and 1000 that never repeat (i.e. 6 doesn't show up twice), but that doesn't resort to something like an O(N) search of previous values to do it. Is this possible? Is Object constructor called when creating an array in Java? In Java, an array IS AN Object. My question is... is an Object constructor called when new arrays is being created? We would like to use this fact to instrument Object constructor with some extra bytecode which checks length of array being constructed. Would that work? Adding a way to mark answer as "partially accepted" When someone gives me an answer which is useful, but doesn't fully answer the question, there is a problem when I need to decide what to do with it.  If I accept this partial answer, no one will answer me no matter how I show the unsolved part of my problem, because the question is considered "answered".  However, If I do not accept it, there is another problem:  if a second person answered the unsolved part, which answer should I accept? But the majority work may be done by the first one. If this style become consistent, who will answered an almost solved question?  In my point of view, there should be something like a progress bar which allows me to allocate the percentage of acceptance to users who answered my question. This would make everyone feel comfortable. What was Stack Exchange 1.0? I've seen a few users mention that certain SE sites like  and  are unique, as they were originally created as Stack Exchange 1.0 sites.  As a fairly recent user, I don't know what Stack Exchange 1.0 was like. The current version of Stack Exchange is the only version I've ever known.   What was Stack Exchange 1.0? What changed between SE 1.0 and 2.0? easy_install: command not found Using the inference of mean as an example, the null and alternative hypothesis could be  $$H_0: \mu \le 0 \Leftrightarrow H_1: \mu &gt; 0$$  It is often argued that this makes the calculation of the $p$-value (or critical region) easier, but from my understanding the $p$-value is $P(\bar{X} &gt; 0|H_0) \stackrel{\color{red}{?}}{=} \sup_{\theta \in H_0} P(\bar{X} &gt; 0 | \theta )$. Since I'm taking its supremum, the $p$-value doesn't change regardless of whether the equality sign is included. The same result goes for the critical region. However, I'm not sure if my understanding is correct, and my doubt is marked with a red question mark above.  Anyway, I wonder if it's correct (I know that would be unconventional, though) to write  $$H_0: \mu &lt; 0 \Leftrightarrow H_1: \mu \ge 0$$  If that's OK, what about its $p$-value and critical region? If that's not OK, I would be really surprised, because in that way we are changing the question ("Is $\mu$ less than or equal to zero?") to something different ("Is $\mu$ less than zero?") I am simply adding user in 'Monitored Users' in Debug Logs. But User is not getting added. I would like to know the purpose of nohup these days. I ask because I read this  Nohup is short for “No Hangups.” It’s not a command that you run by itself. Nohup is a supplemental command that tells the Linux system not to stop another command once it has started. That means it’ll keep running until it’s done, even if the user that started it logs out. The syntax for nohup is simple and looks something like this: nohup sh your-script.sh &amp; Notice the “&amp;” at the end of the command. That moves the command to the background, freeing up the terminal that you’re working in. Nohup works with just about any command that you run in the terminal. It can be run with custom scripts as well as standard system commands and command line utilities.  With using linux distributions such as SLES 11.4, or RHEL/CentOS 7.x, I can  remote log in to linux over the network via SSH run the simple program below, or any other, doing ./a.out &amp; log out of linux; type exit in the putty SSH terminal my sample program below, or any other including bash, csh, or tcsh shell scripts, run to completion just fine without the need for nohup typing exit in putty to close an SSH session, I would think that qualifies as a logout?  Is there any purpose or value with nouhup today?  Is it a kernel &gt;= 3.x thing? For however long I can remember (kernel &gt;= 2.6) I've never used nohup and have always just use &amp; with no problems. Can someone give me a practical scenario where nohup would be used? #include &lt;stdlib.h&gt; #include &lt;stdio.h&gt;  /*     sample C code, to print numbers to a file named zz.tmp     the numbers 0 to 29 over 30 seconds */  int main ( int argc, char *argv[] ) {    FILE *fp;    int i;     i = 0;    fp = fopen(&quot;zz.tmp&quot;, &quot;w&quot; );     while ( i &lt; 30 )    {       fprintf( fp, &quot;%d\n&quot;, i++ );       sleep( 1 );    }    fclose( fp );    return 0; }  mysleep.sh #!/bin/bash  sleep 1000  On Centos 7.7, optiplex pc login with keyboard &amp; mouse, my account is bash. I do nohup ./mysleep.sh and then control-z.  When typing jobs I see [1]+ Stopped nohup ./mysleep.sh A ps -ef | grep mysleep shows that process id existing, but if I close the terminal window via X in upper right corner, that process goes away so it seems nohup is not working? How was the Cloak of Invisibility Created? How do I get a consistent byte representation of strings in C# without manually specifying an encoding? What if I accidentally run command "chmod -R" on system directories (/, /etc, ...) I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back? What does size of a directory mean in output of 'ls -l' command? Force a rebuild of the start menu program index/database in Windows 10 With Windows 10 Microsoft migrated to a database-ish solution for indexing programs in search and the start menu, rather than just using a /startmenu/ directory. AFAIK the exact implementation is still pretty unclear, but there is something along those lines.  Updating from 8.1 to 10 causes it to migrate everything from /startmenu/ to the new system, which ignoring issues such as a (seemingly arbitrary) cap of 500 applications, works fine.  However this failed for me, and from googling seems to be an issue from upgrading with an older dev build, which then carried on to RTM.  So does anyone know a way to force a rebuild/re-index of the program library? Rebuilding the system wide index through control panel (also in &lt;=8.1) has no effect. How do I get the number of days between two dates in JavaScript? How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes:  &lt;input id="first" value="1/1/2000"/&gt; &lt;input id="second" value="1/1/2001"/&gt;  &lt;script&gt;   alert(datediff("day", first, second)); // what goes here? &lt;/script&gt; "Communicate over" vs. "communicate through" Also schemas can communicate over database links to schemas in other remote databases.    Could one replace the preposition over with through? Will it change the meaning, and if so, when should we use over instead of through? plotting 3d points: z-axis is squashed My daughter bought a ticket for a flight with a layover in Emirates (from Dallas, Texas to India). She had a stop of 48 hours in Dubai. When she was checking in in Dubai for Delhi, she was informed that her visa for India has expired in 2012. Did Emirates not have an obligation to check the visa for India before selling a ticket? I'm using classicthesis to write my document. I don't use the option drafting but I can see on the bottom of the page the date (there is a part of the date that is not readable, but when I copy and paste this part I obtain [ December 1, 2011 at 20:50 ]). This is my code:  \documentclass[a4paper]{scrreprt}   % classe report di KOMA-Script  \usepackage[english]{babel}     % Per scrivere in inglese \usepackage[T1]{fontenc}        % Imposta la codifica dei font \usepackage[utf8]{inputenc}     % Lettere accentate da tastiera \usepackage{classicthesis-preamble} % Preambolo classicthesis \usepackage{classicthesis}      % Classicthesis  \begin{document}  \input{Chapters/0_Introduction} [...]  \end{document}   I would like to avoid this little issue.  I use TeXworks in Windows7 x64.