I am using this code to disable wordpress default jquery and load from Google library to speed up website and reduce latency for this Big File.  But Here i want to make it defer or async loading, So How we can do this ?  Here is code which i am using in my function.php file:-  //Making jQuery to load from Google Library function replace_jquery() {     if (!is_admin()) {         // comment out the next two lines to load the local copy of jQuery         wp_deregister_script('jquery');         wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3');         wp_enqueue_script('jquery');     } } add_action('init', 'replace_jquery');   I have tried this in my functions.php, but it does not work:  add_filter( 'script_loader_tag', function ( $tag, $handle ) {      if ( 'jquery/1.11.3/jquery.min.js' !== $handle )         return $tag;      return str_replace( ' src', ' async="async" src', $tag ); }, 10, 2 );
I couldn't add defer tag in plugin javascripts. Google developer pagespeed test suggests me to add defer tag in contact form 7 javascripts.   This is how contact form 7 includes javascript in header.  add_action( 'wp_enqueue_scripts', 'wpcf7_enqueue_scripts' );  function wpcf7_enqueue_scripts() {     // jquery.form.js originally bundled with WordPress is out of date and deprecated     // so we need to deregister it and re-register the latest one     wp_deregister_script( 'jquery-form' );     wp_register_script( 'jquery-form', wpcf7_plugin_url( 'jquery.form.js' ),         array( 'jquery' ), '2.52', true );      $in_footer = true;     if ( 'header' === WPCF7_LOAD_JS )         $in_footer = false;      wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'scripts.js' ),         array( 'jquery', 'jquery-form' ), WPCF7_VERSION, $in_footer );      do_action( 'wpcf7_enqueue_scripts' ); }   Now how to add defer="defer" tag in the above code?
Encrypt home drive after installation I declined to encrypt to my home drive whilst installing ubuntu.  Is it possible to encrypt it after installation?  if so, how? Cardinality of the Cartesian Product of Two Equinumerous Infinite Sets Is the cardinality of the Cartesian product of two equinumerous infinite sets the same as the cardinality of any one of the sets? I couldn't find this explicitly stated in any handout or text. This certainly seems to be true from the examples I have seen:  The Cartesian product of two infinitely countable sets is again infinitely countable. The Cartesian product of two sets with cardinality of continuum again has cardinality of continuum. Integral ${\frac{1}{\pi^2}} \int_{0}^{\infty}\frac{{(\ln{x}})^2}{\sqrt{x}{(1-x)^2}} \mathrm d x$ 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? How to interpret regression coefficients in logistic regression? Linear Discriminant Analysis for $p=1$ I'm studying 'Introduction to Statistical Learning' by James, Witten, Hastie, Tibshirani.   In page 139, of their book, they began by introducing Bayes' Theorem $p_k(X)=P(Y=k|X=x) = \dfrac{\pi_kf_k(x)}{\sum_{l=1}^k \pi_l f_l(x)}$. $\pi$ is not mathematical constant, but denotes the prior probability. Nothing is strange in this equation.   The book claims that it wants to obtain an estimate for $f_k(x)$ that it can plug into the equation given above. To estimate $f_k(x)$, it assumes that is normal. In the one dimensional setting, $f_k(x)=\dfrac{1}{\sqrt{2\pi}\sigma}\exp(-\dfrac{1}{2\sigma^2}(x-\mu_k)^2)$, where $\mu_k$ and $\sigma^2_k$ are the mean and variance for the $k$th class. It is assumed that $\sigma^2_1 = \sigma^2_2 = \cdots = \sigma^2_K$. (I began to get confused from the last statement.)   Plugging $f_k$ into $p_x$, you have this quite messy equation (1) :   $$p_x(k)=\dfrac{\pi_k \frac{1}{\sqrt{2\pi}\sigma}\exp(-\frac{1}{2\sigma^2}(x-\mu_k)^2)}{\sum_{l=1}^K \pi_l \frac{1}{\sqrt{2\pi}\sigma}\exp(-\frac{1}{2\sigma^2}(x-\mu_l)^2)}. $$  Again, no surprises here since it is just substitution.     The Bayes' Classifier involves assigning an observation to the class for which equation (1) is the largest. Taking the log of Equation (1) and rearranging terms, it is not hard to show that this is equivalent to assigning the observation to the class for which the following is the largest:  $$\delta_k(x)=x \cdot \dfrac{\mu_k}{\sigma^2} - \dfrac{\mu_k^2}{2\sigma^2} + \log(\pi_k) $$  Question: I do not understand where this came from, and what it means. I tried doing the log of equation and it doesn't become this. Are we taking the derivative somewhere here, since this is the largest observation? Maybe the underlying question is what the Voltage-Current curve looks like. Can I drive it from a voltage source (like you drive a heater) or from a current source (like you drive an LED)? Or even different than those two options?  ADDITIONAL1: Say (hypothetically) I have two commercially available identical Peltier's, they are spec'd 6V/3A. Can I connect these in series to a 12Vdc power supply without any worries?  CONCLUSION1: Current/Voltage load curve is reasonably linear, both driving from current or voltage source will do fine as long as the device is operated within its spec. (Olin Lathrop, Russell McMahon)  CONCLUSION2: Don't drive a Peltier from PWM, power loss due to current increase, grows more rapidly than cooling power. (Olin Lathrop)  CONCLUSION3: Beware the mechanical wear of the device with continues cycling. Eg. don't use a thermostat on/off controller. (Russell McMahon) How can I disown a running process and associate it to a new screen shell? I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.  One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there.  Is there a different way to proceed? We've just been learning about complex numbers in class, and I don't really see why they're called numbers.  Originally, a number used to be a means of counting (natural numbers).  Then we extend these numbers to instances of owing other people money for instance (integers).  After that, we consider fractions when we need to split things like 2 pizzas between three people.  We then (skipping the algebraic numbers for the purposes of practicality), we use the real numbers to describe any length; e.g. the length of a diagonal of a unit square.  But this is when our original definition of a number fails to make sense- when we consider complex numbers, which brings me to my main question: what is a rigorous definition of 'number'?  Wikipedia claims that "A number is a mathematical object used to count, label, and measure", but this definition fails to make sense after we extend $\mathbb{R}$.     Does anyone know of any definition of number that can be generalised to complex numbers as well (and even higher order number systems like the quaternions)? Adjust space between entries in LoF and LoT Solution af a system of 2 quadratic equations I have a system of two quadratic equations with unknowns $x$ and $y$:  $$a_{1 1} x y + a_{1 2} x^2 + a_{1 3} y^2 + a_{1 4} x + a_{1 5} y + a_{1 6} = 0,\\ a_{2 1} x y + a_{2 2} x^2 + a_{2 3} y^2 + a_{2 4} x + a_{2 5} y + a_{2 6} = 0,$$  where $a_{i j}$ are arbitrary scalars.  Is there an algebraic solution of the above system? Font characters displayed as squares in Ubuntu 18.04 Is the force which throws a body on a rotating disk outwards centrifugal force? If some object is kept in a radial groove made on a disk and the disk is rotated with say constant angular velocity.   Now as we know that the object moves outwards ie away from the centre of the disk. I want to know which force is it which throws the object outwards.   As centrifugal force is a pseudo force and hence when the observer is in ground frame it shouldn't be present so which force exactly pulls it out. Why does the beta distribution become U shaped when $\alpha$ and $\beta$ <1? In the Beta distribution (used to model Bernoulli probabilities), the $\alpha$ and $\beta$ parameters can be interpreted as the number of heads$+1$ and the number of tails$+1$ seen. So, if they were both $2$, it would lean towards the coin being fair and have a maximum at $0.5$. If they are both $20$, the distribution would become even surer we're dealing with a fair coin and peak even more at $p=0.5$.  What I don't get is its behavior when $\alpha$ and $\beta$ both become $&lt;1$.   In that case, it becomes U-shaped and the density peaks at $p=0$ and $p=1$. Meaning the coin is likely to be two-sided. I know there is an intuition for this since I think I had an idea about it a long time ago. However, I've been trying to recollect all day and can't piece it together. Does anyone have an intuition? Chapter number starts at 2 not 1 How can I start my chapter from "Chapter 2" instead of "Chapter 1".  I am preparing LaTeX document for each chapter. when I put \chapter{Introduction}, it produces "Chapter 1" Introduction. However I want it to be "chapter 2" Introduction instead. Check for column name in a SqlDataReader object How do I check to see if a column exists in a SqlDataReader object?  In my data access layer, I have create a method that builds the same object for multiple stored procedures calls.  One of the stored procedures has an additional column that is not used by the other stored procedures.  I want to modified the method to accommodate for every scenario.  My application is written in C#. To explain the expansion of space I have often heard people saying that space is continuously created. This picture is usually applied to cosmological scales but I`m nevertheless curious if some microscopic description of this process could be found (or probably is already available?).  The first thing which comes into my mind by thinking about this is that in theories like loop quantum gravity, there is an idea that space is quantized. Would space expansion then be explained as the creation of new quanta in loop quantum cosmology? Or are there other different ideas, such as the quanta themselves changing properties? Do people actually working on this already have some interesting results? Tony's suit is an engineering marvel, and they explain many facets of the technology to help give legitimacy to the special powers, abilities and weapons it has.  I never read the Iron Man comics, but in the movie they really don't have a technological explanation for how he miraculously seems to be unaffected by crushing G-forces of sudden acceleration, the inertia of sudden stops and hair-pin turns, and especially the blunt force trauma from getting smashed in the face with Thor's hammer.  Certainly it appears the suit takes punishment, but Tony always remains unscatched, never a collapsed lung, broken bone or even a bloody nose.  In my infantile understanding of theoretical physics, the same technology that would be used to counter G-forces and sudden blunt force trauma to the body inside would be the very same technology used for  which in my honest opinion would be a much more stunning technological achievement than his heralded Arc Reactor.  Was their ever an explanation proferred for this and if so was it indeed attributed to Anti-Gravity? I installed blender for the first time, so I have the latest version, 2.78c.  I played with it for a bit.  Then I discovered I couldn't save my work.  I uninstalled it and reinstalled it.  Rebooted.  Same problem.  After a little testing, I realized I CAN save to my NAS storage drive.  I cannot save on my C: drive.  Any project.  Any folder.  C: always fails.  If I run blender as Administrator, it will save to the C: drive.  But not as my normal userid.  So it sounds like a bug of some kind.  I am running Windows 10.  Bitdefender A/V.  I use OneDrive.  I have a 2TB drive installed.  All clean and purring nicely.  Is there a better way to install it?  Or some change I can make (other than always running as administrator)?    Sounds like a bug - but hopefully there's a proper solution.  Thanks,  Jerry When and why is the [featured] tag removed by the Community user?