Running a script when users connect through ssh
Ssh login hook?
Alternatives to Dmitri Bertsekas' Introduction to Probability and Sheldon Ross' A First Course on Probability I have Ross' A First Course on Probability and Bertseka's Introduction to Probability book. However these two books do not exactly give me what I am looking for. The problem is  Bertsekas' book is introductory, while Ross' book explains expression $E[\ E[X\mid Y] \ ]$ just by briefly saying it is a function of $y$ if I remember correctly. I need a probability book which will make me feel comfortable with the symbols and letters rather than ready made formulas. I want to be able grasp when a random variable is a constant or when it is not. I want  to be able to read and understand equations involving both random variables and constants and when are interpreted as a rv. when they are not etc. I want to load the new entries without reloading the page. I found a great solution for: The ajax script:  &lt;script&gt;     $(document).ready(function() {     var refreshId = setInterval(function()     {         $('#content').fadeOut("fast").load('http://neocsatblog.mblx.hu/new.php').fadeIn("fast");     }, 10000);      }); &lt;/script&gt;   And the php:  &lt;?php require_once("wp-blog-header.php"); ?&gt; &lt;div id="content" &lt;?php cyberchimps_filter_content_class(); ?&gt;&gt;          &lt;?php do_action( 'cyberchimps_before_content'); ?&gt;          &lt;?php if ( have_posts() ) : ?&gt;              &lt;?php while ( have_posts() ) : the_post(); ?&gt;                  &lt;?php get_template_part( 'content', get_post_format() ); ?&gt;              &lt;?php endwhile; ?&gt;          &lt;?php elseif ( current_user_can( 'edit_posts' ) ) : ?&gt;              &lt;?php get_template_part( 'no-results', 'index' ); ?&gt;          &lt;?php endif; ?&gt;          &lt;?php do_action( 'cyberchimps_after_content'); ?&gt;      &lt;/div&gt;   However, this is a special feature that works perfectly here:  However, the main page refuses to load new entries, I do not understand the reason for this, as we use everything the same. Two logos in beamer after certain frame mkdir -p will create a directory; it will also make parent directories as needed.  Does a similar command exist for files, that will create a file and parent directories as needed? Developing Unit Tests While Refactoring Legacy Code? Is a clean install better than upgrading? Is it better to install Ubuntu completely new or is the upgrade process just as good? In other words, will my computer run just as problem-free and efficiently when I upgrade as opposed to a fresh install? A gateway to a new world/future where things can be improved with use This book is about an explorer (with robot companion) who walks through a "gateway" into the future/parallel world. In this world, things that are created do not fall into disrepair, instead things get better.  The main character is kidnapped early on in the story and forced to labor by beating the outside of a castle with a spear. It is explained to him that this makes the wall better and able to resist attacks by these weapons. In his cell, he meets a man wearing an extravagant shirt and asks about it and the man explains to him that the shirt has been in his family for several generations, which is why it looks so nice.   To escape from the jail cell, the man tears one of his zippers from his jump suit and uses it like a saw to cut a hole in the wall. He escapes with the man in the fancy shirt and a woman.   The woman, is something special in this world. (She can focus on the change that is happening to an item and somehow enhance or speed up the process)  The man makes a wheeled cart for them to escape in. While the wheels are at first rough and wobbly, they soon "become better" and spin better. Is a semigroup with unique right identity and left inverse a group? Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal. The MySQL manual at  covers this.  Usually I just dump the database and reimport it with a new name. This is not an option for very big databases. Apparently RENAME {DATABASE | SCHEMA} db_name TO new_db_name; .  This needs to work with , which stores things very differently than . Save Illustrator as PDF with transparent background How do I fork a process that doesn't die when shell exits? How can I prevent spam on sites which I control? This is a general, community wiki question to address all non-specific spam prevention questions.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .    For purposes of this question, spam will include:   Any automated post Manually-posted content which includes links to spammers' sites Manually-posted content which includes instructions to visit a spammer's site Is there a *simple* example showing that uncorrelated random variables need not be independent? How can I compile, run and decompile C# code in Ubuntu terminal? Arduino Negative Voltage Reading with Positive Ground I am trying to measure voltage &amp; current off a solar charge controller from panel, battery &amp; load simultaneously with my arduino. I have managed to achieve this by tying all the negatives together and using it as GND, however, when I do that the charge controller doesn't function properly and when I switch to off-mode the loads still run. After checking the instruction manual further, I found out that the positives are shared common between Pan, Bat, Load. This was confirmed with a multimeter.   So now what I am thinking of doing is using the positive from the battery as the GND reference and then measuring all other voltages (through voltage dividers with respect to the GND). The voltages should then range between -17V to 0V.   However, I have read that the analog input pins are not able to read negative voltages, and with respect to the positive GND, the Analog inputs will all be negative.   EDIT: I was thinking of using an amplifier to invert positive ground to a negative ground, meaning I could measure all the positive sides of the voltages. But after getting answers from you guys it seems I may not have to use an amplifier and a voltage divider may suffice. I have currently included a 2 resistor voltage divider between each analog input, +5V source, Vmeasure which you can see in the diagram below.  According to my calculations, if this works, @-17V I should see 0.6V @ analog input. @0V I should see 4V at analog input.   I'd appreciate feedback on this circuit, and below in the second image I've also included a piece of another method suggested by @jonk (thanks), and would be interested in knowing what the benefits are of method B) over method A)  Thanks!  Ps. the ameters are there in place of ACS712 current sensors which also go into analog input pins.   Method A)        &ndash; Schematic created using   Method B (EDIT: This method has worked, I am still yet to test method A) thanks @Jonk)) How configure the DHCP settings of WIFI Tethering (Hotspot) on Android? When connecting my PC to Android Wi-Fi hotspot, it assigned a 192.168.42.x address to my PC. I really need to change this as it conflicts with one of our work subnets - is this possible? How can I delete my printer from Ubuntu? Using 12.04 my printer a canon ip2600 will not print.   SystemSettings/printers shows it as installed, connected to local host, enabled, accepting jobs, shared and allowing printing for everyone. Yet it does not print.   I have tried to remove it but get a request for user name and password which I enter (I only have one password) but the password is listed as incorrect.   I need a sudo command which I can use to delete the printer so I can attempt to re-install it. As it is the printer is useless and I can not even uninstall it. Run command on another(new) terminal window How to run any command in another terminal window?  Example: I opened one terminal window and if I run command like apropos editor, then it run and out-puts on that window. But I want to run same command on another terminal window (new window) instead on present window from first terminal.   Further clarification:  I need suggest-command &lt;command&gt; that open new terminal window and run mentioned &lt;command&gt; in that (newly opened) window. (where suggest-command is example of suggestion of command.)  How to do that? Are threads implemented as processes on Linux? I'm going through , Advanced Linux Programming by Mark Mitchell, Jeffrey Oldham, and Alex Samuel. It's from 2001, so a bit old. But I find it quite good anyhow.  However, I got to a point when it diverges from what my Linux produces in the shell output. On page 92 (116 in the viewer), the chapter 4.5 GNU/Linux Thread Implementation begins with the paragraph containing this statement:     The implementation of POSIX threads on GNU/Linux differs from the   thread implementation on many other UNIX-like systems in an important   way: on GNU/Linux, threads are implemented as processes.   This seems like a key point and is later illustrated with a C code. The output in the book is:  main thread pid is 14608 child thread pid is 14610   And in my Ubuntu 16.04 it is:  main thread pid is 3615 child thread pid is 3615   ps output supports this.  I guess something must have changed between 2001 and now.  The next subchapter on the next page, 4.5.1 Signal Handling, builds up on the previous statement:     The behavior of the interaction between signals and threads varies   from one UNIX-like system to another. In GNU/Linux, the behavior is   dictated by the fact that threads are implemented as processes.   And it looks like this will be even more important later on in the book. Could someone explain what's going on here?  I've seen this one , but it doesn't help much. I'm confused.  This is the C code:  #include &lt;pthread.h&gt; #include &lt;stdio.h&gt; #include &lt;unistd.h&gt;  void* thread_function (void* arg) {     fprintf (stderr, "child thread pid is %d\n", (int) getpid ());     /* Spin forever. */     while (1);     return NULL; }  int main () {     pthread_t thread;     fprintf (stderr, "main thread pid is %d\n", (int) getpid ());     pthread_create (&amp;thread, NULL, &amp;thread_function, NULL);     /* Spin forever. */     while (1);     return 0; }