Replace a "href" element with javascript

I have such code:
         link
   I need to change href attribute to www.example2.com How would I achieve that using javascript?


Natural sort order string comparison in Java - is one built in?

I'd like some kind of string comparison function that preserves natural sort order1.  Is there anything like this built into Java?  I can't find anything in the , and the  only knows of two implementations.  I can roll my own (it's not a very hard problem), but I'd rather not re-invent the wheel if I don't have to.  In my specific case, I have software version strings that I want to sort.  So I want "1.2.10.5" to be considered greater than "1.2.9.1".    1 By "natural" sort order, I mean it compares strings the way a human would compare them, as opposed to "ascii-betical" sort ordering that only makes sense to programmers.  In other words, "image9.jpg" is less than "image10.jpg", and "album1set2page9photo1.jpg" is less than "album1set2page10photo5.jpg", and "1.2.9.1" is less than "1.2.10.5"


Why do we observe opposite motion of trees (nearer) and trees (distant) when seen from a moving frame?

If you are in a moving train or in a bus, what you observe is that the trees which are nearer to you move opposite to the direction of your motion. But the trees which are very far away from you, appear to be moving along with the direction of motion. Why it happens?


MikTeX for MS Windows seems to use Type3 (raster) fonts when instructed to use Type1 (vector)

I use MikTeX as my compiler for Windows. The problem is that it uses Type3 (raster) fonts even though I've stated:  \usepackage[T1]{fontenc}   in the preamble.  As far as I've understood, this will force the compiler to use vector fonts instead.  Have I misunderstood something? Can I reconfigure my installation to always use vector fonts?


How to map/bind mouse button as keyboard button in Windows 7?

I'm trying to map/bind my mouse button 4 and button 5 to behave as kayboard num pad 1 and 2, does exist some way to do that? Maybe with some specific software?


Ubuntu 12.04 Installer doesn't recognize other OS

I want to install Ubuntu 12.04 alongside Windows 8 on a Dell Inspiron SE  The installer says I currently have no detected operating systems.  Is it ok to go ahead with the install using the "something else" option and putting Ubuntu on a partition or will it wreck my Windows 8?


Is it possible to get Netflix working with HTML5

I just read how Chromebooks and Windows 8 are now supporting HTML5 playback on Netflix instead of Silverlight. The site is still requiring users to install silverlight (when you login from Linux computers) Is it possible to emulate Windows 8 or Chromebook?


How do I work out tube and rim strip size

I have a Schwinn Men's Volare 1200 Bike, 700c. Recently had a flat. I am confused. What size tubes do I need to buy? And also the rim strip snapped. What size rim strip should I order


Is binning of continuous data always bad for statistical tests?

I was always thinking that binning of data if data is naturally continuous is bad. However, here is the case. The goal of study was to find if there is an association between a biomarker and disease progression.  I have 40 data points, measured in percents (disease progression). I have one biomarker which is factor (yes or no). I perform Wilcox test between groups with and without biomarker, comparing disease progression, I got p-value 0.07.  Doctors have clinically significant thresholds (symptoms decrease, symptoms remain more or less the same or symptoms highly increase). They divide data into these 3 categories and count number of times this biomarker occur within the subgroup (so it form contingency table $2\times 3$). They perform exact Chi squared test in this binned data (this is actually the ) and get p-value of 0.03. Expected values in contingency tables are not super-low - 40 data points are nicely distributed across 6 cells of the contingency table.  So, 2 questions: 1) in this particular case - does it mean that exact chi squared on binned data is more powerful test than Wilcoxon test? or it is just a coincidence? (I am not surprised that tests gave different p-values - I am surprised by the magnitude of difference in p-values) Or it is likely a violation of parametric assumption of this "exact chi-squared test" (I am unfamiliar with, but I think  test was assumed)? Of course I understand that Wilcox test between groups and proportion test within 3 subgroups are answering different questions - but the initial goal is to find if there is association between biomarker and disease progression and it seems that both statistical tests are answering it.  2) Is binning preferred over continuous data in some situations? In which?


Simple point processes and the expected value

When considering simple point processes, how is $$P(t_{n+1} \in [t;t+dt]) = E[N([t;t+dt])]$$, where $N(A)$ is the number of points in interval $A$ and $dt$ is the length of an infinitesimal interval. My argument is that it's because we are considering simple point processes - a.k.a there is either zero or one point in an infinitesimal interval. Is that true? If so, I'm feeling that I'm missing something in my argument. I think my question is still why we can say that it's the expected value? And if it's all wrong, I hope I can get another explanation :)


What does ` mean in this output from lsblk?


What do I need to do if I want to clear the console without OS-Limitations? I know that on Linux and Mac the command "clear" exists, whereas Windows has "cls". I want to clear the console every now and then on the three major systems without personally choosing "clear" or "cls".   My idea so far was   import platform os = platform.system() if os == "Windows":     clear = 'cls' else:     clear = 'clear'   and then just use clear as variable for both, depending on the OS, but it doesn't work. Is something like this actually possible?


Does Goblin Arsonist's ability deal 2 damage when there are two in play?

Does having two  on the battlefield cause their ability to deal 2 damage when one dies?


Does a dedicated sound card have any advantages over onboard sound?

I was wondering about this today, there was a point when building a new computer meant having to buy a sound card to hook into the motherboard. But with most modern boards sound cards are built into the motherboard.  What kind of advantages do modern discreet sound cards have over their on board counterparts? Is there a huge difference in sound quality can reproduction? Or is it more of status symbol of a high end build in this day and age?


I've recently been learning about differential equations, and my teacher has been giving some particularly difficult examples out for those of us who finish early. He gave us the following differential equation: $$x=y\frac{dy}{dx}-\left(\frac{dy}{dx}\right)^{2}$$ With the hint "Differentiate with respect to $y$, then let $\frac{dy}{dx}=p$". I've solved it after the lesson and would like someone to check whether or not I've done so correctly.    Following the hint, $$\frac{dx}{dy}=\frac{1}{p}=p+y\frac{dp}{dy}-2p\frac{dp}{dy}$$ Which rearranges to $$p-\frac{1}{p}+y\frac{dp}{dy}=2p\frac{dp}{dy}$$ Multiplying through by $\frac{dy}{dp}$, $$\left(p-\frac{1}{p}\right)\frac{dy}{dp}+y=2p$$ Rearranging into the form $\frac{dy}{dp}+f(p)y=g(p)$, and writing $p-\frac{1}{p}=\frac{p^{2}-1}{p}$ $$\frac{dy}{dp}+\frac{p}{p^{2}-1}y=\frac{2p^{2}}{p^{2}-1}$$ Our integrating factor is $$e^{\int\frac{p}{p^{2}-1}dp}=e^{\frac{1}{2}\ln(p^{2}-1)}=\sqrt{p^{2}-1}$$ So we have $$\sqrt{p^{2}-1}\frac{dy}{dp}+\frac{p}{\sqrt{p^{2}-1}}y=\frac{2p^{2}}{\sqrt{p^{2}-1}}$$ The left hand side is, by design, $\frac{d}{dp}(y\sqrt{p^{2}-1})$, and the right hand side can be integrated as follows: $$\int \frac{2p^{2}}{\sqrt{p^{2}-1}}dp=\int\frac{2(p^{2}-1)+2}{\sqrt{p^{2}-1}}dp=\int 2\sqrt{p^{2}-1}dp+\int \frac{2}{\sqrt{p^{2}-1}} dp$$ These can both be solved using the substitution $p=\cosh(u)$, and gives $$y\sqrt{p^{2}-1}=p\sqrt{p^{2}+1}-\cosh^{-1}(p)+\alpha$$ Where $\alpha$ is an arbitrary constant. Dividing, we finally have $$y=p+\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}$$  Here I was stuck for a long time, until I realised that we also have the equation we began with: $x=py-p^{2}$, which we can solve as a quadratic in $p$ to also get $$p=\frac{y\pm \sqrt{y^{2}-4x}}{2} \implies p^{2}=\frac{y^{2}+y^{2}-4x \pm 2y\sqrt{y^{2}-4x}}{4}$$  Thus, $$y=\frac{y\pm \sqrt{y^{2}-4x}}{2}+\frac{\cosh^{-1}\left(\frac{y\pm \sqrt{y^{2}-4x}}{2}\right)+\alpha}{\sqrt{\frac{y^{2}-2x \pm y\sqrt{y^{2}-4x}}{2}-1}}$$  This is as good as I can do - we have a relation between $y$ and $x$ - am I done? Is this the correct answer? Is there an easier way?     Thank you for your time.    Following the suggestion by @Valentin $$\frac{dy}{dp}=1+\frac{\frac{1}{\sqrt{p^{2}-1}}\sqrt{p^{2}-1}-p\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}=1+p\frac{1-\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}$$ Hence, $$dx=\frac{dy}{p}=dp\left(\frac{1}{p}+\frac{1-\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}\right)$$


Controlling position of figures under \paragraph

I am trying to control the position of the figure. I would like to place it right below the title of paragraph, but it does not work.  When I add a text right below the \paragraph, the figure moves below the title as I wish. So I tried some of my ideas such as \phantom, \vspace and things like that to create invisible spacing. But it did not work that way.  Could you help me fix this issue?   P.S., I would also like to make the text start in the next line, instead of starting in the same line with the paragraph. Linebreaking functions did not work..     \paragraph{[2] xxx}  \begin{figure}[h!]  \centering  \includegraphics[width=0.9\textwidth]{P2.png}  \caption{\label{fig:frog}This is a figure caption.}  \end{figure}


Thevenin equivalent with dependent source

Well, I'm trying to find the Thevenin equivalent of this circuit:    As you can see, the only current source is a dependent source. However, the control variable is in a wire where, if nothing is connected between A and B, is \$i_\Delta = 0\$ A, and that makes the source 0 A. However, if I connect an impedance \$Z\$ to the circuit, I will have current, and a Thevenin equivalent. I don't know how to solve this problem. I've bee searching here for a while, and I found this:   . I can see how is solved that case. However, I still don't know how to apply that method to my circuit.  Any help about finding the Thevenin equivalent is appreciated n.n


Determinant of a specific $n\times n$ matrix

Let $M_n=   \begin{bmatrix}     1 & 2 & 3 & ... & n\\     2 & 2 & 3 & ... & n\\     3 & 3 & 3 & ... & n\\     \vdots & \vdots & \vdots & \ddots & n\\     n & n & n & n & n   \end{bmatrix}$  What's $\det(M_n)$ ?  Seems like it is one of these exercises virtually impossible to do without the one trick, which is why I ask this question.  Computing the first few determinants yields:  $\det(M_1)=1$  $\det(M_2)=-2$  $\det(M_3)=3$  so if I were to make a wild guess, I would say $\det(M_n)=n(-1)^{n+1}$  The induction process didn't work too well for me because I can't find the determinant once a row and a column have been added to pad the matrix to dimension $n+1$.  I tried to use the well-known formula for the determinant by cutting the inside in four parts ($M_n$ in the upper-left, $(n+1)$ in the lower-right, and the $(n+1)$ row and column, but at the end I must compute the determinant of a sum of matrices which didn't help...  I don't know the name of this specific matrix, so maybe this is a repost, but if this is the case, I can't find the original one  I'd be grateful if someone could provide some hints.


Trying to understand why energy must be quantized/discrete

So I'm reading about bound systems right now in my quantum text. It is beginning to explain why energy must be quantized, and is doing so by introducing the reader to the one dimensional "quanton in a box". Essentially it shows this:  For a region of 0 potential energy, with infinite potential energy everywhere else, a particle is "free" within the region of 0 potential energy. This means that the particles wave function must go to zero at these "boudaries", and therefore resemble a standing wave between the potential energy bounds.  Because the wavefunction must be zero at the ends, the Dr Broglie wavelength must be so that an integer number of half-wavelengths fits inbetween the regions of infinite potential. Therefore, the energy of a particle (quanton) must be so to satisfy this, and cannot be any arbitrary value.  First of all, the more board question: why, then would an electron that is outside of a bound system be quantized? Or any other particle that is outside of a bound system (atomic nucleus, etc.)?   Secondly, the question that I am more interested in: the only reason that a classical standing wave in a string results in the way it does is be cause f resonance; the string resists frequencies that do not match a natural harmonic of the material, and accepts very well frequencies which do match. So then isn't the fact of energy quantization a direct consequence of the phenomenon of resonance? It must be. But then, what is the material that is experiencing this resonance? For an electron, which could be described as a "matter-wave", would the Higgs field, itself, be resonating? Or something else?


Template class fails to register constructor, Why?

In a C++ Program, attempting to use templates in a class I'm developing results in my compiler not registering the class constructors declared in the source.  If I remove the template it compile fine, but other that that in the last hour I've made no progress to in what might be wrong (I've tried playing with where and how I declare the template, and namespace syntax's) .  So, what am I failing to understand about C++, please?  rondel.h:  template <typename T> class RondelGauge: public sf::Drawable, public sf::Transformable { private:     //No Default constructor     RondelGauge();      //Used to draw the gauge     virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;      //The data the gauge visualises     T& dataValue;     std::string& label;     std::string& dataUnit;           [Irrelevant code emitted]  public:     //The constructor - No errors thrown in the header.     RondelGauge(T& value, std::string& iLabel, std::string& iUnit); };   rondel.cpp:  #include "rondel.h" #include "stdafx.h"  template <typename T>  //This, and variations of it, fail to reguister. RondelGauge<T>::RondelGauge(T& value, std::string& iLabel, std::string& iUnit) : dataValue(&value), label(&iValue), dataUnit(&iUnit) {     setOrigin(65 / 2, 65, 2);     setPosition() }


Is nukson.com part of stackexchange sites?

Today I got an E-Mail from  about their new site. They claim to get my E-Mail ID from github. Then, I visited the site and found it a copy of stackoverflow.  So my question is: Is this site is a part of stackexchange or who owns it?


Can I carry a non-mercury thermometer on plane?

So I found this multi-tool thing in my drawer, recently, which has:   A magnifying glass, allowed on-board, I think. A compass, also OK. and a thermometer, not OK.   However, the thermometer is covered in plastic very tightly and the liquid is red (mercury isn't red, is it?), so would that be OK on a plane? I don't need it, I am just curious if it is allowed and if there is anything I can do...


Is Schwarzschild's solution in his original paper consistent with current solutions?

I was reading the Schwarzschild's original paper where he derives the Schwarzschild metric for the first time(The english translated version found in arXiv :  ).   The derivation is not very complicated and I could understand(?) most of it. However, in the final solution (Pg.6 - Eq.14) the radial coordinate $R$ is not the spatial $r$ of polar coordinate. They are related by - $$R = (r^3 + \alpha^3)^{1/3}$$ This was surprising to me because in our GR class and also in GR textbooks I used (including Wikipedia) - this was never mentioned and the radial coordinate in the metric is used as if it was spatial co-ordinate.  Why is this so? Is the original derivation wrong?  OR  Is it that this $R$ should be considered as the spatial co-ordinate instead of $r$. If so, why?


Why can't I extend /home partition using Gparted?

Here's the screenshot:    sda7 is /home partition in my case. I want to extend it using unallocated space of 95+GB, but I can't seem to do that.


I installed most software from the terminal. I saw that with some programs people give commands like this for example:  sudo apt-add-repository ppa:jfi/ppa sudo apt-get update sudo apt-get install psensor   But some just give commands like this:   sudo apt-get install psensor   If that is the case, and I want to add repository (so that program receives updates more quickly, if I understood it right), how do I know what comes after ppa:? How can I find that out?


Confused about time dilation/length contraction

I have a following problem: A meson is generated $h$ meters above the earth's surface and begins to move towards the earth with velocity $v$. Its (proper) lifetime is $t_m$.   What is $v$ if the meson is to reach the surface of the earth? How long did the meson live, according to a clock on the surface of the earth? According to the meson, how far away from the surface of the earth was it created?   I familiarized myself with formulas for time dilation and length contraction. If we attach a primed frame of reference to the meson, then  $$\Delta t = \gamma \Delta t'$$ $$\Delta x = \frac{1}{\gamma} \Delta x'$$  But then, what is $v$? Is it $\frac{\Delta  x}{\Delta t}$ or $\frac{\Delta  x'}{\Delta t'}$? Clearly the two aren't the same, but I thought the velocity is 'set in stone' so to speak, regardless of the frame of reference? So what is the meaning of each of those two quantities?


Output awk to file and print at the same time

I'm trying to output this to a file and print it at the same time, I've tried to use > test.txt behind "scan" but that didn't work, anyone have any suggestions? sudo iwlist wlan0 scan | awk -F ':' '/ESSID:/ {print $2;}'


Screen tearing in Xfce/Compiz, not in Unity/Compiz

I would like to use Xubuntu with Compiz on my old Thinkpad T60 with Intel Core 2 Duo integrated graphics. The installation works and the performance is fine, however I get heavy screen tearing e.g. while scrolling websites, playing videos or moving windows.  Just for comparison, I started a Vanilla Ubuntu 14.04 Live ISO and immediately, there was no screen tearing at all without altering any settings, so the hardware seems to be capable of displaying everything without teating. However, I would still like to stay with Xubuntu.  I also installed the Compizconfig Settings Manager on the Ubuntu Live installation to compare the settings, but could not find a clue on what the difference is that makes my Xubuntu/Compiz installation cause to tear.  Is there a solution to this or things to try out?  Edit: I have no tearing problems with Xfce4 & Compiz at this point. I don't know what exactly the problem was, however, I re-installed Xubuntu 16.04.2 again, because I was setting up different parts of the system and had made some mistakes.  After the clean installation, I first followed this answer:  to enable the Intel driver's VSync/TearFree features.  After that, I disabled the Xfce compositor and directly installed and set up Compiz according to this routine:   After doing so, I experienced no further tearing with dragging windows, scrolling websites or playing videos (fullscreen). Maybe I made mistakes while setting up Compiz previously or the Compton-installation was interfering with it.  If you have similar issues, try a clean install with this workflow.


How can I change the dpi of my monitors separately?

I have two fullHD monitors, one of which is a 15" Laptop screen. How can I change the DPI of only that particular screen, to read text more comfortably?


Solution of trigonometric equation $0 = x\cos(x)+2$

I'm having a hard time finding the solution of the following equation:  $$0 = x\cos(x)+2$$  This is part of showing that $f(x):= x^2e^{\sin(x)}$ has 3 extremas in $[-\frac{\pi}{2},\frac{\pi}{2}]$.


Latest version of Chrome now shows a button in the far-right on the tab-bar that denotes the user that's currently logged in to Chrome. I'm the only one using my computer and that button is kinda annoying, sitting there and staring at me all the time.  Is there a way to hide this button?  I'm using Mac OS X Yosemite and Google Chrome Version 39.0.2171.99 (64-bit).


If $\Vert Tx-Ty \Vert = \Vert x-y \Vert$ for all $x,y \in X$ and $T(0)=0$ then T is a linear aplication.

Problem: Lets $X$ and $Y$ normed vector spaces $T:X\rightarrow Y$ a aplication such that $\Vert Tx-Ty \Vert = \Vert x-y \Vert$ for all $x,y \in X$ and $T(0)=0$ then T is a linear aplication.  My attempt: If I evaluate in $0$: $$\Vert Tx \Vert = \Vert x\Vert \quad \mbox{for all $x \in X$}$$ Then, $$\Vert T(x+y) \Vert = \Vert x+y\Vert \leq \Vert x\Vert + \Vert y\Vert = \Vert Tx\Vert+\Vert Ty\Vert$$ But, I do not know how to continue.


Can I modify and reset the java method argument

I could find a lot of information about pass-by-reference and pass-by-value about java method arguments but not of the following kind where a method1 argument is modified in another method2 and simultaneously set to itself in method1.  public class TestQDoc {     public  QDoc method1(QDoc doc) {         doc = (QDoc) method2(doc);         return doc;     }      public QDoc method2(QDoc doc) {         doc.x = 100;         return doc;     }      public static void main(String [] args) {         QDoc doc = new QDoc();         doc.x=200;         TestQDoc tq = new TestQDoc();         doc=tq.method1(doc);         System.out.println(doc.x);     }      static class QDoc {         public Integer x;     } }   The above code is printing 100 as expected. I am not sure if the method arguments are passed by reference or passed by value. Also, is there any possibility that method1 fails to return the modified doc in method2?


How does a Zealot Barbarian's critical hits interact with Divine Fury?

In Xanathar's Guide to Everything, the Path of the Zealot feature Divine Fury has been  to an effect triggered when the first creature is hit by a successful attack on each of the Barbarian's turns during a rage.     Divine Fury (XGtE, page 11)      Starting when you choose this path at 3rd level, you can channel divine fury into your weapon strikes. While you're raging, the first creature you hit on each of your turns with a weapon attack takes extra damage equal to 1d6 + half your barbarian level. The extra damage is necrotic or radiant; you choose the type of damage when you gain this feature.   The Player's Handbook notes on page 196 that:     If the attack involves other damage dice, such as from the rogue's Sneak Attack feature, you roll those dice twice as well.   If the attack that triggers Divine Fury is a critical hit, is a Zealot Barbarian allowed to roll 2d6 instead of 1d6? I feel that this question is sufficiently distinct from  because (a) part of the uncertainty is the result of the ability previously being an aura, and (b) it seems like a secondary effect that isn't an intrinsic part of the attack (the first attack succeeding is merely the condition that triggers it), like a Paladin's Divine Smite or a Rogue's Sneak Attack.


Explanation about Curl in electromagnetism

what does curl means in electromagnetism? How can we derive relation between curl and gradient in electromagnetism?


Does the username need whitespace after for the notification to work?

It's difficult to test this without setting up a new account, and asking myself a question...  When including a @username in a comment, does it need whitespace after the username for the notification to work?  For instance, if I say something like...     Thanks @username, that worked perfectly   ... will @username get the notification?


I made chicken stock recently from chicken thigh bones and skin (just needed the thigh meat and the bone-in-with-skin were cheaper).  After cooling it in the fridge I ended up with gelatinous semisolid stuff underneath a layer of fat a few mm thick.  I removed the fat, but am wondering whether the "stock" underneath it is useable for anything.


How can one show the multiple integral $\int_{0}^{a} \int_{0}^{a} \frac{dx ~ dy}{(a^2+x^2+y^2)^{3/2}}= \frac{\pi}{6a}$ by hand?

Mathematica gives the value of the  multiple integral  $$ \int_{0}^{a} \int_{0}^{a} \frac{dx ~ dy}{(a^2+x^2+y^2)^{3/2}}=\frac{\pi}{6a}. $$  See also  from WolframAlpha:        The question is how to show this by hand?   This is posted in the spirit of sharing some experience and to see how others would solve it. I am posting a solution below (now moved to the duplicate target).


Pull-up and Pull-down Resistor Usage on Input or Output MCU Pins

Are pull-up/down resistors (whether internal or external) only needed for MCU INPUT pins? In contrast, an MCU pin configured as an OUTPUT "knows what level it's at" because it does the driving - a "floating" MCU OUTPUT pin tied to some input of another circuit doesn't make sense, because the state of the MCU pin can only be high or low... do I have this right? Now, upon MCU bootup or failure, it may be beneficial to have a pull-up/down tied to this "MCU output to IC input" line to ensure that the input to some IC is never floating.  Maybe I just answered my own question here... pull-up/down resistors can be used on both input and output pins, depending on application?


how to select an LDO regulator to get 3.3 v 200 mA of output from 5v and 250 mA of Input?

I would like to power my stm32 microcontroller the supply voltage is 3.3v and 160 mA of current. So i would like to regulate my buck controller output of 5v to 3.3v to power my microcontroller.  My input to LDO regulator:  input voltage : 5v  input current : 250 mA  Expected output:  output voltage : 3.3v  output current : 200 mA ( to power my STM32 microcontroller)  Iam planning to use Texas instrument TPS730 LDO regulator to get 3.3 v as output.  TPS730 power consuption:  (Vin-Vout) *Iout = (5v-3.3v)*200 mA = 0.34 W  In datasheet Maximum junction temperature is given as 150 degree C and Rthja as 225.1 degree C/W  so 225.1 *0.34 = 76.54 (degree C) + 25 (room temperature) = 101.54 degree C  so i think it is safe to use based on Power consuption. if iam wrong correct me whether it is safe or not.  My doubts:  i need an out put voltage of 3.3v and 200 mA of current but in datasheet it is given like    What does this means . only if my output voltage is 5v then only i can able to get 200 mA as output current.If it is like this i cannot use this regulator because the maximum output voltage i need is 3.3 v so can i able to get 200 mA of output current with 3.3 v of output voltage if my understanding is wrong please correct me. or can i able to get 200 mA of current by having 3.3 v as output voltgae     and What does this means i am confused.Is it telling like only if my input voltage is 5.5 v then only i can able to get 200 mA. if it is like this i cant use this regulator because my input voltage is 5v .Is it like that or can i use this regulator with 5v of input to get 200 mA of output  Iam really confused after a large number of search i am asking this question in stack. Can i able to use this regulator by having 5v as input and i need 3.3 v output voltage and 200 mA of output current.  Please find the Datasheet of Texas instruments TPS730      In the above datasheet in Page 13 it has given the adjustable output voltage .  Basically can I use this regulator based on my specifications ,If no is there any regulator based on my specs with decent power consuption.


$\left( \frac{1 \cdot 2}{p} \right) + \left( \frac{2 \cdot 3}{p} \right) + \cdots + \left( \frac{(p-2)(p-1)}{p} \right) = -1$

Let $p$ be an odd prime number. Prove that $$\left( \frac{1 \cdot 2}{p} \right) + \left( \frac{2 \cdot 3}{p} \right) + \left( \frac{3 \cdot 4}{p} \right) + \cdots + \left( \frac{(p-2)(p-1)}{p} \right) = -1$$ where $\left( \frac{a}{p}\right)$ is the Legendre symbol.  This seems to be a tricky one! I've tried using the property $\left( \frac{ab}{p} \right)=\left( \frac{a}{p}\right) \left( \frac{b}{p} \right)$ and prime factoring all the non-primes but to no avail. I had a quick thought of induction haha, but that was silly. I tried factoring the common Legendre symbols like $\left( \frac{3}{p}\right) \left[ \left( \frac{2}{p} \right) + \left( \frac{4}{p} \right) \right]$ but that didn't bring anything either. And I've been looking for pairwise cancellation with $1$ term leftover, but that does not seem to work.  Can you help?


I have a client with a SQL2016 DB with a 100Gb MDF and a 4Gb LDF. The DB is set to Simple. I can't get it done to shrink the LDF to a minimum. How can I shrink the LDF to a normal level? Does this setup and file sizes effects performance?


Unable to run downloaded jar (no access to src files)

My professor gave us an example application to compare with our own work.  When I try to run on the console I get the following errors.      Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.NullPointerException         at java.desktop/javax.swing.ImageIcon.<init>(Unknown Source)         at Craps.CrapsGameFrame.<init>(CrapsGameFrame.java:150)         at Craps.CrapsGameFrame.<clinit>(CrapsGameFrame.java:74)   I've had similar errors in previous assignments involving javafx and I was able to fix them by making changes to resource pathways or the controller, however I do not have access to the src files for this application.  Is it a bad application or am I doing something wrong?  Any help is appreciated, thanks


Is it possible to find the combined standard deviation?

Suppose I have 2 sets:  Set A: number of items $n= 10$, $\mu = 2.4$ , $\sigma = 0.8$  Set B: number of items $n= 5$, $\mu = 2$, $\sigma = 1.2$  I can find the combined mean ($\mu$) easily, but how am I supposed to find the combined standard deviation?


Consider the measure space $(\Omega, \mathcal F)$, where $\Omega$ is an uncountable set, and $\mathcal F := \{A \subset \Omega: A \text{ is countable or }A^c \text{ is countable}\}$. Prove that $\mu: \mathcal F \rightarrow [0, \infty]$ defined as: $$\mu (A) =  \ \begin{cases}        0 & ,A \text{ is countable} \\          1 & ,A^c \text{ is countable}     \end{cases} \ $$ is a measure on $(\Omega, \mathcal F)$. I have already shown that $\mu(\varnothing) = 0$. Also, by taking an arbitrary sequence $Z_1, Z_2, ... \in \mathcal F$ (with $Z_i \cap Z_j = \varnothing$), I have shown that $\mu (\bigcup\limits^{}_{n\geq1}Z_n) = 1$ because $(\bigcup\limits^{}_{n\geq1}Z_n)^c$ is countable. However, I don't know how to get $\sum_{n\geq1}\mu(Z_n) = 1$ to conclude that $\mu$ is a measure (doesn't seem possible to me). Any idea?


Can torque relations actually be *derived* from Newton's Laws, or is it something extra?

For a long time I have wondered if there is a way to show that the rotational analogs of Newton's Laws are a direct consequence of just those laws, or are we adding more to them?  I understand mathematically that we take Newton's second law and do "r cross both sides," but that has always struck me as using more than just the 2nd law.  Here it matters where forces on the body are applied, but I don't see where Newton's Laws talk about points where forces are applied to a body. For translational motion it doesn't matter.  So are we adding a sort of "extra law" when we do this for rotation?  The only thing I can think of would be to "disassemble" an extended body into differential point masses and work with internal constraint forces that make the body rigid. If every mass is just a point mass it would get around the issue I'm having.  I've never seen any discussion along those lines, though.


Expression under summation on multiple lines

Possible Duplicate:          I want to write expression \sum_{i=0}^n i with i\neq 4 under the summation symbol. How can I write this?


5 hours ago I could install it but now I can't:  apt-get install nixnote2   it shows:   Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  nixnote2 : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


I am aware this question has been asked many times but I'm still struggling to understand a few things.  Let R be a ring in which $x^2=x$ for all x ε R.  (a) Prove that $x + x = 0$ for for all x ε R.  (b) Prove that R is commutative.  For (a):   I understand that $a+a=(a+a)^2=a^2+a^2+a^2+a^2=a+a+a+a$. But I don't understand how $a+a+a+a ⟹ a+a=0$.  For (b): For any $x, y$ in the ring $R$, $x+y=(x+y)^2=x^2+xy+yx+y^2=x+y+xy+yx,$ so $xy+yx=0$. But how do I get to $xy = yx$ ?


I've inherited a Maintenance Plans that does the following:   Cleanup old data Checks DB integrity Performs Database and Transaction Log Backups Reorganizes Our indexes Updates Statistics Delete old backups and Maintenance Plan files   Of the 23 minute Maintenance Plan, Updating the Statistics takes a staggering 13 minutes. During this 13 minute period, access to the database is blocked (or at least, replication from this DB to our others is paused).  My Question Is:  When should we be Updating the Statistics, and why?   This seems like the kind of thing we should do less frequently than every day. I'm trying to get us out of the "just because" mind-set of doing unnecessary Maintenance.


finding infinetely many primes in three different forms of prime numbers below

my question is about number theory,about prime numbers:  here is the question:  prove that there exists infinitely many prime numbers  of the form 4k+1 and also of the form 4k+3  and also of the form 6k+5


What software programs are used to draw physics diagrams, and what are their relative merits?

Undoubtedly, people use a variety of programs to draw diagrams for physics, but I am not familiar with many of them.  I usually hand-draw things in  which is powerful in some regards, but it is time consuming to do things like draw circles or arrows because I make them from more primitive tools.  It is also difficult to be precise.    I know some people use LaTeX, but I am not quite sure how versatile or easy it is.  The only other tools I know are Microsoft Paint and the tools built into Microsoft Office.  So, which tools are commonly used by physicists?  What are their good and bad points (features, ease of use, portability, etc.)?  I am looking for a tool with high flexibility and minimal learning curve/development time.  While I would like to hand-draw and drag-and-drop pre-made shapes, I also want to specify the exact locations of curves and shapes with equations when I need better precision. Moreover, minimal programming functionality would be nice additional feature (i.e. the ability to run through a loop that draws a series of lines with a varying parameter).  Please recommend few pieces of softwares if they are good for different situations.


Do I have to do any configuration to start brace expansion? When I run mkdir {1..10}, it just creates a dir naming {1..10}.


Understanding Google App Engine Pricing for Websites ~ Should I change to dedicated website hosting?

I'm currently debugging U.I. code and writing articles for an analytical website that I plan to launch by the end of 2016. My concerns in regards to promoting the site is that, if it gains traction, I'm worried about if I'll be able to afford to keep it online. So I personally would like to ask two things:   Can someone explain to me how the hosting costs are charged by Google for the App Engine Cloud Platform? Should I switch to dedicated website hosting for this site, should it gain some attention? I've been monitoring NameCheap, as I have done business with the brand in the past.


ESTA is valid but the Visa was denied- can I travel to the USA?

I was denied an O-1 Visa (Artist Visa) to the USA twice in the past year and a half. I applied for the O-1 Visa with my Israeli Passport. In addition, I have an European passport and a valid ESTA. I want to travel to the USA for a period of 2 weeks.   My question is: Is there a chance I can get denied by entering the USA? based on the fact that I was denied a visa recently?


What are some places to get good reference material?

I want a few sites to get good reference images of objects, machines, humans. Anything. I want to model objects more precisely, but in the end, I always end up using my creativity since I don't find good reference material on objects


Correct indenting in a description environment

I would like to create a description enumeration which looks like the following:  keyword 1: Short Description of the keyword            A characterization of the keyword keyword 2: Short Description of the keyword            A characterization of the keyword   As an example:  Animal 1: Lion           A lion is ... Animal 2: Elephant           An elephant is ...   I tried the following  \begin{description}     \item[Animal1: Lion]\hfill \\     A lion is ...     \item[Animal2: Elephant]\hfill \\     An elephant is ... \end{description}   The problem is that the text "A lion is ..." is not aligned with the word "Lion".  Can you give me some advise how to create such an environment where I can give the item command a second parameter for the short description which is then correctly aligned with the characterization text? By the way I'm using the koma class scrbook.


Find the radius of convergence of $\sum\limits_{n=1}^\infty n!x^{n^2}$

I've got difficulties finding the radius of convergence of $\sum_{n=1}^\infty n!x^{n^2}$. I've already tried presenting it as $\sum_{n=1}^\infty b_n x^n$, where $b_n = (\sqrt{n})!$ if $n$ is a square and $b_n=0$ otherwise. I wanted to use the Cauchy–Hadamard formula and ended up with something like this: $$\frac{1}{R}=\limsup\limits_{n\rightarrow\infty}\sqrt[n]{\lvert b_n \rvert} = \lim\limits_{n\rightarrow\infty}\sqrt[n]{(\sqrt{n})!}$$ And I'm not sure if it's correct. Even if it was, I wouldn't know how to calculate this limit.


i want to insert session cart into database mysql  here is my code  foreach($_SESSION['cart'] as $productid => $qty){     $query3 = "INSERT INTO dtransaction(trans_id, pro_id, quantity) VALUES ('$new', '$productid', '$qty')";     $query4 = mysqli_query($con, $query3);     print_r($query3."<br>"); }   the result of print_r  INSERT INTO dtransaction(trans_id, pro_id, quantity) VALUES ('TR033', '21', '1') INSERT INTO dtransaction(trans_id, pro_id, quantity) VALUES ('TR033', '16', '2') INSERT INTO dtransaction(trans_id, pro_id, quantity) VALUES ('TR033', '13', '8') INSERT INTO dtransaction(trans_id, pro_id, quantity) VALUES ('TR033', '12', '3')   im using auto_increament (int) for detail_id but in database, inserted like this  detail_id   trans_id    pro_id  quantity 197         TR034       21      1 201         TR035       21      1   detail_id jump 4, pro_id and quantity only insert the first data  what i want is like this  detail_id   trans_id    pro_id  quantity 198         TR034       21      1 199         TR034       16      2 200         TR034       13      8 201         TR034       12      3   how to do that? sorry for my bad english


What does the asterisk (*) do in grep -nri "searchString" *?

Normally while searching using grep, the command I was using was this:  grep -nri "String"   whereas most of my colleagues do this:  grep -nri "String" *   What does the latter do (the * part)?


So I have a scenario where i need to fire validation in UI but the same validation should not run in any where in the code(n number classes).  The reason for doing this is that my system is stabil and I do not want to hinder DML operation on Account by introducing the new validations. There are many places in code where Account get update and by introducing this validation it will stop those code.  What I need is that new validation should fire when a record is saved from UI but do not fire then there is DML from code behind.  Looking forward to it!!  [UPDATE]  Can this work! - Detect by using apexpage reference if a context originated from VF page and if yes then make a check box true on the record and make my validation check that?


Combining multiple SVN repositories into one

After considering the answers to my previous question (), I've decided to take the 4 or so repositories I have and consolidate them into one. This of course leads to the question, what's the best way to do this?  Is there a way to combine two or more repositories maintaining the version history for both?  Edit: I should also point out that I'm using Assembla.com, which does not provide access to the svnadmin command, AFAIK  Another edit: Does this even matter? If svnadmin works on URLs, then it's no problem then.


Is there a standalone free offline version of Minecraft?

I tried searching the website and couldnt find a question that answered this specific aspect of the game. Its very difficult for me to use the internet because of my location, and I have recently become interested in Minecraft.   Im aware that there is a pay version that can be played offline once youve logged in once but the idea of doing anything internet related that requires almost any kind of talking between my computer and the internet is laughable where I am right now.   Even just downloading it will probably take a day or more. Also with a connection like the one I have I sure as heck dont want to pay to play.  Is there a way I can download the game, for free, and play OFFLINE, for free?


Crashlytics-Firebase crash report doesn't make sense

I have a crash reported like:  Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'android.view.View androidx.recyclerview.widget.RecyclerView$c0.a' on a null object reference at com.xx.xx.Fragment$23$1.run(TestFragment.java:4) at android.os.Handler.handleCallback(Handler.java:907) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:216) at android.app.ActivityThread.main(ActivityThread.java:7625) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)   How to find the androidx.recyclerview.widget.RecyclerView$c0.a? Where is the crash happening?  Absolutely nothing to do with NullPointerExceptions. This question is about finding variables names in Crashlytics reports when classes are not symbolicated in the crashlog.


I am trying to understand what process is making my transaction log file to grow. For example, currently it is 120 GB and only 5-10 MB of it are in use.  Before:   FULL recovery mode a backup of the transaction log file is made each 5 minutes AlwaysOn Availability Groups is enabled the transaction log file size is 128 MB (only 1-5 percent of it are in used)   After several days:   The transaction log file size is 120 GB (again only few MB of it are in use)   I am trying to detect what is causing this huge grow. One of the possible reasons explained  is The database is participating in an AlwaysOn availability group.  I have try to find this particular error:     Error: 9002, Severity: 17, State: 9.  The transaction log for database   '%.*ls' is full due to 'AVAILABILITY_REPLICA'   But I have only errors for the transaction lot of the tempdb:  The transaction log for database 'tempdb' is full due to 'active_transaction'   Is there any message or error which will help me to understand when or why this is happening?  Is there any other way to detect the event?  As far as I read, I can only use DBCC OPENTRAN but it will give me current transaction which is opened which is useless for me as I do not know when the event happened.


Should question authors be allowed to edit accepted answers into their questions?

After a question is answered, is it acceptable to edit the question to include the answer?  For example, , which I rolled back because it was harder to see what the original question was, and the answers did not make sense with the updated question.  Sometimes, instead of editing the original text of the question, they add new text to the end - "I did X and Y and Z and now it worked."


I had the regular version of the game. -CUSA00207- But I think to get the GOTY edition for DLC. -CUSA03173-  Both are for the same region.  The only thing I'm worried about is if the GOTY version will be able to load old save file ?


What is the reason for this Java NullPointerException?

I seem to get a NullPointerException in my code at line 15, but I just cannot understand why. I have been stuck on this for some hour now, and I don't know how to fix it. I have read up on what NullPointerException is, and I think I have a clear grasp of what it is, but I thought my if-statement would fix it, but apparently not.  Here is the code:  package learning; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class Index{     public static void main(String args[]){         Index indexObject = new Index();         String filePath = "C:\\Users\\Edvin\\Desktop\\inputPrices.txt";         Scanner inputScanner = new Scanner(System.in);         int average = 0;         if(indexObject != null){             average = indexObject.findAverage(getFileInfo(filePath).split(","));         }         else{             System.out.println("Object instance is null. Terminating program.");         }          int currentItemInput = inputScanner.nextInt();         if(currentItemInput<average && currentItemInput != 0){          }     }      private static String getFileInfo(String x){         File listOfPrices = new File(x);         String error = "An error occurred";         try{             BufferedReader getInfo = new BufferedReader(new FileReader(listOfPrices));              String prices = getInfo.readLine();              while(prices != null){                 prices = getInfo.readLine();             }             return prices;         }         catch(FileNotFoundException e){             System.out.println("Couldn't find File");             System.exit(0);             return error;         }         catch(IOException e){             System.out.println("An I/O error occurred");             System.exit(0);             return error;         }     }      public int findAverage(String[] tempIndivPrices){         int x = 0;         int y = 0;         int total;         int [] indivIntPrices = null;         for(String i : tempIndivPrices){             indivIntPrices[x] = Integer.parseInt(tempIndivPrices[x]);             x++;         }         for (int element : indivIntPrices){             total =+ indivIntPrices[element];             if(element==indivIntPrices.length-1){                 int result = total / indivIntPrices.length;                 System.out.println(result);                 return result;             }         }         return 0;     } }


Add a Trade to a Villager Using /data (1.14)

I am trying to add another custom trade to a pre-existing wandering trader without clearing all of its previous trades.  I have tried running this command:  /data modify entity @e[type=wandering_trader,limit=1] Offers.Recipies[] append value {maxUses:99999,buyB:{id:"minecraft:air",count:0b},buy:{id:"minecraft:stone",Count:1b},sell:{id:"minecraft:acacia_log",Count:1b}}   However, this does not work.  Does anyone know the proper syntax to do this, and if this is even possible?


On a plane there are two identical circles that do not intersect. One straight line intersects circle 1 at...

I've been given this question for homework, and I've made a bit of progress but I'm not sure what to do next. I called the intersection of the two lines $P$, and let $BP=x$ and $FP=y$. Thus, $PG=6-y$ and $PC=14-x$. I then used Power of a Point to get that $y=\frac{7x}{3}-\frac{40}{3}$, but I don't know where to go from here.


Finding the sum of $1 \cdot 2x + 2 \cdot 3x^{2} + 3 \cdot 4x^{3} + \dots$ .

What is the sum of $1 \cdot 2x + 2 \cdot 3x^{2} + 3 \cdot 4x^{3} + \dots$ ?  I have been stuck on this problem with no direction. I have tried multiplying the sequence with $x$ and trying out $S-Sx$ but have gotten nowhere. Any help?  Thanks.


Prove or disprove that accumulation of a set is $(0,0)$

Let $ S = \left\{ \left(\frac{1}{n} + \frac{1}{m}, 0\right)\; : \; n, m\in \mathbb{N} \right\} $  How can i prove formally that there's a single Accumulation point on S, intuitively i think is $(0,0)$.  Is $S$ defined by a sequence?


This problem has bothered me for quite some time and I can't solve it. I have even tried to make a construction, but it sometimes tips to the left and sometimes tips to the right :).  When we submerge the body in the water the water pushes it up. That is an action. At the same time the body pushes water down. That is a reaction. So the balance should be maintained.  But, since the water level rises the hydrostatic pressure on the bottom is greater so the right side should go down.  There is another similar problem but it's not the same.   Please help.


Got Autobiographer badge even without completing all fields

I completed all fields and got Autobiographer but even after deleting some fields from my profile, I still have that badge. Why is that?


How to remove duplicate copies of all kinds of files from another directory

I have 2 directories on separate drives: A and B.  A contains 680GB (around 2,500,000 items) and B about 400GB (around 2,000,000 items). All of B should be contained in A, the difference being about 500,000 .dmg .img and .iso files and associated text and .odt files detailing their contents.  How can I eliminate the files in A that are already held in B?  Is this a job for rsync or fdupes?  If so, what would the command line look like? Any help would be much appreciated as disk A is very short of space. Tks jg


"Closed subsets of compact space are compact" with an alternative definition of covering

I am studying Abraham and Marsden's Foundations of Mechanics. They define a covering $\{U_\alpha\}$ of a set $S$ to satisfy $S = \bigcup_\alpha U_\alpha$, and NOT as $S\subseteq\bigcup_\alpha U_\alpha$. Their definitions of compactness of a topological space, and its subsets (involving the relative topology) are the usual ones. Then they casually remark  It follows easily that a closed subset of a compact space is compact.  However, I'm not able to prove this with the given definition of cover. (I can prove it using the latter definition though.) I'm even skeptical if that holds with the given definition.  I really don't think that this is a duplicate!


i'm new to python (about a week or less) and I'm using python 2.7.  i'm writing a program to check ip validation and classes and i want to make the output in color, so it will be more readable on terminal to the user.  i have already tried this:  # to make the text purple for example. print '\033[95m' + "This is a purple output" # if i'm writing another simple print after the first one it will be purple too print "Example" # now this statement purple too   but when i use this example the output after the first print method become purple too.  Thank for everyone who try.


In which rings $R$ does $a\mid xy$ imply the existence of $b\mid x$ and $c\mid y$ with $a=bc$?

Let $R$ be some integral domain and consider the following property: For all $a,x,y\in R$, if $a\mid xy$, then there exist $b\mid x$ and $c\mid y$ with $a=bc$.  Question: Is there a 'simple' classification of integral domains with this property?    Own work: Note that the property implies that irreducible elements are prime, so if $R$ satisfies the ascending chain condition on principal ideals, it must be a UFD. Since the property clearly holds in any UFD, the only 'interesting' $R$ are those that satisfy the property, but not the ascending chain condition on principal ideals.   Perhaps one can prove that the property is equivalent with irreducible elements are prime, in which case it holds precisely when $R$ is a GCD domain. This would be the type of 'simple' classification I'm looking for.


To me, using Present Perfect form means the event can occur again. So, saying      someone has died   may not be grammatically correct.  Also, I noticed (it might be just coincidence):     passed away   is used more often than     has passed away   Is using Present Perfect correct here?


How to prevent a background process from being stopped after closing SSH client in Linux

I'm working on a Linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file.  To my surprise, that doesn't work. As soon as I close the Putty window, the process is stopped.  How can I prevent that from happening??


Show linearity using additivity and continuity at zero

Let $f: \mathbb{R} \to \mathbb{R}$ be continuous at $0$ and $f(x+y) = f(x) + f(y)$ for all $x, y$ in $\mathbb{R}$. Show that there is a real number $c$ such that $f(x) = cx$.  I'm not sure about how to do show this, I can tell that $f(0) = 0$ and that from continuity at $0$ we get $|f(x)| < \epsilon$ for $x$ in some delta neighborhood of $0$. Can anyone help me with this please. Edit: please note that the function is only continuous at $0$ so Cauchy functional equation properties can't be used here.


Can a baryon consist of two quarks and an antiquark? Or a pentaquark be made of three quarks and two antiquarks?

I suspect these particles exist, but are extremely short-lived, even compared to other unstable, exotic particles...


Why transform distribution could help model accuracy?

Sometime the distribution of a variable is not normal, either left or right skewed, and people tend to transform the distribution by doing x^2 or log(x), etc to make it look more normal.   Question is why this would help model accuracy?  Thanks,


How do I increase the partition size of my ubuntu 18.04 via gparted

Here's the screenshot of my gparted window, I want to increase the size of my ubuntu partition (60.41 GB) using the unallocated size.  How do I achieve this? I have dual boot with Windows 10.    If possible, it would be preferred if the solution does not involve using a live CD/Pen drive (kind of urgent and I don't have one)  Edit: My resize option is showing disabled for ext4 even though I have unallocated just above it. Should it be below it? If yes then how do I achieve that?    Thank you :)


mentions:     00:04:22: Heathrow also doesn’t display the gate for flights until around 45-90 minutes before departure. This is common in European airports, but uncommon elsewhere.   Why is it common in European airports not to display the gate for flights until around 45-90 minutes before departure, unlike other places?    Note regarding the duplicate flag: my question is about why it is common in European airports not to display the gate for flights until around 45-90 minutes before departure, unlike other places (or perhaps this statement is incorrect). I'm not asking for the reasons why airport authorities would do it (the YouTube video I mentioned in the question explained these reasons pretty well; tl;dw=increase shop sales+take a cut from them).


How can I add the bibliography as a numbered entry in the table of contents?

My table of contents currently looks as follows:     1 Introduction   2 Related Work   3 xyz   …   …   …   8 conclusions   References    However, I would like "References" to be numbered (9). How can I do that?


What is the metal sheath surrounding a USB connector, and is it commonly connected?

I was tearing apart a mouse for repairs and noticed that the small plug for the USB connection had a fifth connection. This connection had a much thicker wire than the other four.  I assume it is connected to the metal sheath on the male end of the connector, but what does it actually do?


Define different planes for drawings in TikZ

I want to draw figures on different planes in TikZ. Consider an example of drawing a simple rectangle in the xy plane at z=0 and another rectangle in the xy plane at z=2. Generally, the planes I am considering will also include some rotations (see below for details) in addition to displacements from the origin O. I have seen this  which uses different canvases, but I'm not sure how to adapt that.   I am looking to use the scope environment that allows me to displace a plane and rotate it. That way any figures drawn within that scope appears within that plane.  Detail on the rotations considered here The rotations referred to here are along the axes x,y,z. For example, consider I have two planes: one that has the origin O = (0,0,0) at the bottom left corner and a second plane that has the origin at O' = (2,0,0). Rotations of plane 2 are along the axes that intersect the point O.  Here is a MWE that sets up the basic problem:  \documentclass{standalone}  \usepackage{tikz}  \usepackage{tikz-3dplot}  \usetikzlibrary{arrows.meta}  \begin{document}  \tdplotsetmaincoords{60}{130}  \begin{tikzpicture}[scale=2,tdplot_main_coords]  \draw[thick,->] (0,0,0) -- (5,0,0) node[right]{$x$};  \draw[thick,->] (0,0,0) -- (0,5,0) node[above]{$y$};  \draw[thick,->] (0,0,0) -- (0,0,5) node[below left]{$z$};  %Circle in xy plane at z=0  \filldraw[fill=blue!40!white, draw=black] (0,0,0) rectangle (4,4,0);  %Another circle at xy plane at z=2  %\filldraw[fill=blue!40!white, draw=black] (0,0) rectangle (4,4);  \end{tikzpicture}  \end{document}


I tried setup SSL cert without SSLv3 in my nginx, but SSL Labs say, my server have SSLv3 how to disable it.   My config:      add_header Strict-Transport-Security max-age=31536000;     add_header X-Frame-Options DENY;      ssl_session_cache shared:SSL:10m;     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED";     ssl_prefer_server_ciphers on;     add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';


Why is blenders hair system making spikes?

I am using a hair/particle system but all of the hairs look like spikes not hair:    How can I set it so they all have a consistent thickness and how can I adjust the thickness?


I was modeling something when suddenly I was unable to pan around using shift + middle mouse.  I tried changing the controls in user preferences, closing and reopening the program, and everything else I could think of, all to no avail.  I'm working with 2.69.  Any help would be much appreciated.  EDIT:  Still not sure what happened, but I copied everything in the file into a new one and now it's working.


Eliminar la particion de Windows 10 y aumentar la particion linux

you can translate with the translator if you want Tengo Ubuntu instalado y Windows 10 también  en un HDD de 1TB, 900G para Windows y 100G para Ubuntu, debido a que me quedo sin espacio y el Windows 10 esta roto y no funciona  Quiero quitar la partición del Windows 10 y darle todo el espacio disponible a Ubuntu  para ello usare Partition Magic -- ENGLISH-- I have Ubuntu installed and Windows 10 also on a 1TB HDD, 900G for Windows and 100G for Ubuntu, because I run out of space and Windows 10 is broken and does not work I want to remove the partition from Windows 10 and give all available space to Ubuntu for this I will use Partition Magic


I bought a house recently. Some of the wiring, particularly in the basement, while not obviously unsafe, is... inspired. On the side of a junction box in the basement, there's a device with two thin wires coming off of it, going up into a hole. I believe, but don't know for sure, that above the hole is an exterior wall, but there's nothing on that wall that would use such thin wires - just switches and outlets, which I'd hope are fed from the thicker cables also going through that hole. So what is this thing?


Let $X,Y,Z$ be i.i.d $U(0,1)$ random variables. Then $P(X>Y+Z)$  Saw this  but I am not sure how to utilize it here. If it was $2$D random variable question I would've easily calculated. $P(X>Y)$ which is inside red outlined shape.  Which is $\dfrac{1}{2}$ but its $3$D now and I am not sure how to setup limits of integration. Since there joint density is unity. $P(X>Y+Z)=\int_{0}^{1}\int_{?}^{?}\int_{y+z}^{1}1 dxdydz$ Also what other way I can use to solve this ?


Allow the owner of a post to approve a suggested edit even if it was rejected by reviewers

A user  which added useful information to one of my answers. However, because it was a substantial edit, it was rejected by the reviewers. That's fine. However, as the owner of the post I would like to be able to overrule their decision after reviewing the edit myself (as I was encouraged to do by the notification in my inbox).  Currently, I had to open the edit suggestion in a different tab and manually copy and paste over the changes from the markdown diff to apply the changes. This seems laborious and doesn't give credit to the user who suggested the edit.  Request:  I would like a button on the suggested edit page, visible to the owner of the post, which applies the suggested changes, preferably just as if it had been accepted by the reviewers (i.e. giving credit to the editor and the +2 reputation for editing, if applicable).  Related discussions: (note that since this is a feature request, these are not duplicates)


If we look at $P=VI$, we see that if the current doubles then the potential difference is halved but this doesn't seem to make sense according to $V=IR$. If we look at that equation, since the resistance remains constant, doubling the current should increase the potential difference. Can someone explain what I'm misunderstanding in simple terminology?


I was upgrading from 13.04 to 13.10 via ssh (didn't use screen). My ssh connection was interrupted when do-release-upgrade script was about to remove obsolete packages. Now when I reconnect and run it it just says No new release found. How to finish upgrade process?


I want to compute the limit $\left(1+\frac{1}{n^2}\right)^n$. One way to do this is to take logs. So $$x_n=\left(1+\frac{1}{n^2}\right)^n$$ Then $$\log x_n = n\log\left(1+\frac{1}{n^2}\right) = n\left(\frac{1}{n^2}-\frac{1}{2n^4}+O\left(\frac{1}{n^6}\right)\right)$$So $\log x_n$ converges to $0$, and $x_n$ converges to $1$.  Is there a simpler way to do this, maybe without Taylor log expansion?


Can't select text with mouse in Word or Outlook

I cannot select text with my mouse in Word and Outlook. I can for a little while, then I can't, so, I close and restart the applications again and all is well. This also means that I can't drag anything like text that I have selected with the keyboard or table widths or tabs in the ruler bar...  The cause was unknown until today when I narrowed it down to the Ctrl key.  That is, as soon as I use the Ctrl key (for copy, paste, undo or even by itself for the purpose of this test), my ability to select and drag is gone.  There are no sticky keys. I am using Office 2010 (Professional 14.0.6112.5000 32-bit on Windows 7 Pro SP1).  I have uninstalled and re-installed Office. I have tried several registry edits offered by my findings with no luck.  Any ideas?


C# BackgroundWorker to access ListViewItem

I'm sure this has been asked millions of times before  but I'm banging my head against a brick wall at the moment. First I will give you an overview of my goals:  I am creating a media conversion application using C# in Visual Studio 2010. I have successfully managed to convert from MP3, WAV, WMA and OGG into the AIFF file format using NAudio, however that time has come where I need to use BackgroundWorker to convert the files as the program locks up during the conversion process, and I want the progress text to be updated while they are converting. The selected media files will be in a ListView box and I use a foreach loop to run through the ListView and then convert the files individually.  The problem I am facing is accessing the ListView from a seperate thread. The error I get in debugging is:  Cross-thread operation not valid: Control 'listView1' accessed from a thread other than the thread it was created on  Here is my code to convert the files:          foreach (ListViewItem item in listView1.Items)         {             worker.ReportProgress((i * listView1.Items.Count));             if(item.Text.EndsWith(".mp3"))             {                 using (Mp3FileReader mp3 = new Mp3FileReader(item.Text))                 {                     using (WaveStream pcm = WaveFormatConversionStream.CreatePcmStream(mp3))                     {                         AiffFileWriter.CreateAiffFile(item.SubItems[2].Text, pcm);                     }                 }                 string[] saLvwItem = new string[3];                 saLvwItem[0] = item.SubItems[2].Text;                 saLvwItem[1] = "Conversion completed";                 ListViewItem lvi = new ListViewItem(saLvwItem);                 listView2.Items.Add(lvi);              }              else             {                 if (item.Text.EndsWith(".wav"))                 {                     using (WaveFileReader wav = new WaveFileReader(item.Text))                     {                         using (WaveStream pcm = WaveFormatConversionStream.CreatePcmStream(wav))                         {                             AiffFileWriter.CreateAiffFile(item.SubItems[2].Text, pcm);                         }                     }                     string[] saLvwItem = new string[3];                     saLvwItem[0] = item.SubItems[2].Text;                     saLvwItem[1] = "Conversion completed";                     ListViewItem lvi = new ListViewItem(saLvwItem);                     listView2.Items.Add(lvi);                 }                 else                 {                     if (item.Text.EndsWith(".wma"))                     {                         using (WMAFileReader wma = new WMAFileReader(item.Text))                         {                             using (WaveStream pcm = WaveFormatConversionStream.CreatePcmStream(wma))                             {                                 AiffFileWriter.CreateAiffFile(item.SubItems[2].Text, pcm);                             }                         }                         string[] saLvwItem = new string[3];                          saLvwItem[0] = item.SubItems[2].Text;                         saLvwItem[1] = "Conversion completed";                         ListViewItem lvi = new ListViewItem(saLvwItem);                         listView2.Items.Add(lvi);                     }                     else                     {                         string[] saLvwItem = new string[3];                         saLvwItem[0] = item.SubItems[2].Text;                         saLvwItem[1] = "Not converted. Unsupported format";                         ListViewItem lvi = new ListViewItem(saLvwItem);                         listView2.Items.Add(lvi);                     }                 }             }         }   Which needs to be called from the backgroundWorker1_DoWork event.  Could anyone tell me how I can get this working?  Thanks in advance...


Why am I getting an undefined reference error in my code?

I am trying to create a recursive mergesort application using 3 files: mergesort.cpp mergesort.h mergesort-test.cpp. I am getting an "undefined reference" error in my code and I am not sure why.  The exact error I am receiving is this:    /tmp/ccFPDpmn.o: In function `main':  /home/cs104/hw-dendi/hw4/mergesort/msort-test.cpp:35: undefined reference to `void mergeSort<int, Compare>(std::vector<int, std::allocator<int> >&, Compare)'  collect2: error: ld returned 1 exit status   I am using this command to compile: g++ -g -Wall -std=c++11 mergesort.cpp mergesort-test.cpp -o mergesort-test  Here are my files: mergesort.cpp      #include <vector>     #include "msort.h"     using namespace std;      template <class T, class Compare >     void mergeSort(std::vector<T>& list, Compare comp){         int start = 0;         int end = list.size() - 1;         recursive(list, comp, start, end);     }      template <class T, class Compare >     void merge(std::vector<T>& list, Compare comp, int start, int end){         std::vector<T> l(((start+end)/2)-start+1);         std::vector<T> r(end - ((start+end)/2));          for(int i = 0; i < l.size(); i++) {             l[i] = list[start+i];         }          for(int i = 0; i < r.size(); i++) {             r[i] = list[((start+end)/2) + 1 + i];         }          int i, j;         while (i < l.size() && j < r.size()) {             if (comp(l[i], r[j]) == true) {                 list[start] = l[i];                 l++;             }             else {                 list[start] = r[j];                 r++;             }             start++;         }          if (start != end) {             while (i < l.size()) {                 list[start] = l[i];                 i++;                 start++;             }             while (j < r.size()) {                 list[start] = r[j];                 j++;                 start++;             }         }     }      template <class T, class Compare>     void recursive(std::vector<T>& list, Compare comp, int start, int end) {         recursive (list, comp, start, ((start+end)/2));         recursive (list, comp, ((start+end)/2)+1, end);          merge (list, comp, start, end);     }   mergesort.h:  #include <vector>  template <class T, class Compare > void mergeSort(std::vector<T>& list, Compare comp );  template <class T, class Compare > void merge(std::vector<T>& list, Compare comp, int start, int end);  template <class T, class Compare> void recursive(std::vector<T>& list, Compare comp, int start, int end);  struct Compare { template <class T, class Compare>     bool operator() (const T& left, const T& right) {         return left > right;     } };   mergesort-test.cpp:  #include "msort.h" #include <iostream> #include <vector> #include <functional> #include <cstdlib>  using namespace std;  int main() {     vector <int> vec;     vec.push_back(1);     vec.push_back(3);     vec.push_back(5);     vec.push_back(7);     vec.push_back(9);     vec.push_back(2);     vec.push_back(4);     vec.push_back(6);     vec.push_back(8);     Compare c;     mergeSort(vec, c);  for (int i = 0; i < vec.size(); i++) {     cout << vec[i] << " "; }  return 0;   }


Tall image that can be placed within the page margins is moved to the last page!

Latex moves my figure (with [t] specifier) to the last page seemingly because it is tall. Its height is about 70% of the distance between top and bottom margins. Hence, it should be possible to place the figure at the right page. When I decrease the height of the figure to some extent, the figure is placed at the right page. The [p] specifier also maintains the figure with its original height at the right page.  The problem is that how can I keep the figure with its original height and [t] specifier at the right page? (preferably without using packages).  A sample code is as below:  \documentclass[12pt, letterpaper]{article}  \usepackage{graphicx} \begin{document}  text ... (e.g. 1 page + 10 lines)  \begin{figure}[t] \centering \includegraphics[width=\textwidth,height=15cm]{F1.pdf} \caption{F1} \label{FG:1} \end{figure}  text ... (e.g. 2 page + 20 lines)  \end{document}


With tax-free earnings, isn't Roth 401(k) almost always better than 401(k) pre-tax for a young person?

I can start withdrawing from my 401(k) in 30 years. I'm currently in one of the the highest federal tax brackets and will likely be in the lowest tax brackets when I start withdrawing. That alone might indicate that I should avoid taxes now (to the extend that the contributions allow me to) and pay them in retirement (i.e., choose pre-tax 401(k)). However, Roth 401(k) also renders earnings tax-free. Assuming I contribute $10,000 today, I expect to have on the order of ~$10,000 * 1.1^30 ~= $170,000 in 30 years (assuming 100% equity and past returns). If I choose Roth 401(k) instead of pre-tax 401(k), suppose my taxes increase around 10% on my contributions/basis because I earn less in retirement compared to now. I lose 0.1*$10,000 = $1,000 from this. However, I don't pay any taxes on earnings ~$170,000-$10,000 = $160,000, which clearly dominates the ending 401(k) balance and any reasonable tax rate on earnings should favor Roth 401(k). Am I misinterpreting what constitutes "earnings" or is this a no-brainer? (I'm assuming that tax rates remain roughly unchanged for 30 years, but even if they increase, it should favor Roth 401(k) even further.) EDIT: Some people suggested some other threads that are interesting, but not narrow enough for my particular (previous) confusion. In particular, I was specifically concerned about untaxed gains. The top answer clarifies this specific uncertainty.


Beamer Block: White Space When Using Math

I want to reduce the white space (above and below) when I insert an equation environment in a beamer block.  \documentclass{beamer} \usetheme{Antibes} \usepackage{amsmath}  \begin{document}  \begin{frame}  \begin{block}{Separation of variables} \setlength\abovedisplayskip{0pt} \begin{equation} 1 + 2 = 3 \end{equation} \end{block}  \end{frame}  \end{document}     I searched the web of course but the solutions I found do not seem to work (like \setlength\abovedisplayskip{0pt}).  What I found and should have worked:


My default python version is 2.7.18rc1 after upgrade from 18.04 to 20.04

We knew Ubuntu 20.04 will set python 3 as default python, but after upgrade from 18.04 to 20.04, I found my default python version is 2.7.18rc1 not python3:


Modify the page title of view and set custom title for it

I am using views and drupal 7 . I pass arguments in the URL and i want this as view page title. This is possible by using override title check-box. But i want to modify this title. i.e do some formatting and some trim of the content and show only what i require as title. how can i do it.


Why pouring milk from a height makes a chain shape?

I have noticed a chain-like shape when milk is poured from a height into a cup.  The chain pattern repeats itself after some distance till it reaches the milk in the cup.  Any reason behind this?


Can a 7 days full 100% CPU load "burn-in" / "stress test" damage a modern notebook?

When I buy new computers, I usually do a "burn-in" with 100% CPU load for, say, seven days, in a well ventilated place.  This is to    find out if the computer has problems before I invest time into setting it up for me let it "steam out" some of the "plastic/chemical gasses" before I use it in my home   But, now I'm wondering, am I creating hardware problems by doing this? Are modern notebooks built to withstand this?   I guess a server surely is, but is a notebook? I'm talking one from a "well" known brand as Apple, Lenovo, HP, ASUS, Dell, etc.  So I did a burn-in for a new notebook recently. It went fine and didn't crash the OS even once. The notebook is of a model that doesn't get that very hot.  But after some weeks the hardware seems to "give up", recently the  has started to act up.  So, can a seven days full 100% CPU load "burn-in" / "stress test" damage a modern notebook??  How would you do a "burn-in" of a notebook? I guess one could put a fan next to it, but then the temperature would not get that high, and huge part of the reason for burn-in would disappear.    Thank you all for answers!   But reading them, I really wonder where "computing" is today. Many say that this seven days 100% CPU load will be damaging (/wear out early) to the computer.   From my computing background (1990- ) this sounds really strange - though I'm not saying it is wrong.  What if you have some encoding work to do? Or some 3D-rendering work? Those can easily run for three days, 100% CPU load. Shouldn't notebooks be used for those things?   I can accept that some people are skeptical about my worries about "toxic fumes"; you want to see proof. OK. But really, if one can't use a new notebook at 100% CPU for some days, I really would like to see some disclaimers from computer manufacturers, or some kind of admissions from them, that this is the case.   "This notebook is not suitable for 3D rendering." LOL!!!    Added 22 Oct 2014: I took a look at the SSD using some diagnostics software. It had information on the temperatures:   Highest temperature recorded ever was around 42 °C Highest temperature recommended was circa 70 °C Shutdown temperature was circa 75 °C   Conclusion: My seven days 100% CPU burn-in did not create a high temperature in the SSD, and it kept very good margin to the given max. Remember that I had the notebook in a room that never had an air temperature over, say, 26 °C.


How to run multiple instances of a bash script in parallel/background, taking parameters from a file?

I have a bash script that parses log files - aggregating data in an AWK array - that takes part of the file path as a parameter. It runs fine, I can run multiple instances in the background manually. The trouble is I can't figure out how to avoid invoking the script manually for each parameter in my list.  Depending on where I've put the & it either runs the instances serially or tries to run all the jobs at once (I don't want to see a load average of 9999 again).  script.sh param1 &  script.sh param2 & ... #works fine   script.sh < params.txt & ... #runs serially   Placing & at various places within the script had some undesirable outcomes.  hub=$1 while read date; do     zgrep ^1 /logarchive/http/${hub}pr*/$date*.gz|\     awk -F'[ ,]' '{print$34,$(NF-6),$6,$(NF-7)}'|\     awk 'NR>1{bytesDown[$1 " " $2] += $3; bytesUp[$1 " " $2] += $4} END {for (i in bytesDown) print i, bytesDown[i], bytesUp[i]}'\     > ${hub}.$date.txt done < dates.txt   I'd like to run an instance in the background for each parameter in a file.


Is what is involved in the attack ever clearly defined for the purposes of critical hits

Please Note That the Question is Written as Intended Please do not edit my question so that it becomes a duplicate of another question, then flag it as a duplicate. I specifically stated that I am not asking for what is correct at least twice in this post. My question is specifically about the source of that information not the interpretation of the ruling. The Question Questions have been asked in this regards before, but never have I seen actual sources quoted on it.  This is not a question of what is correct. I am looking for a source that is official / authoritative (or from Sage Advice.) In the players handbook it states.   If the Attack involves other damage dice, such as from the rogue's Sneak Attack feature, you roll those dice twice as well. (PHB 196) Some attacks cause special effects in addition to or instead of damage (PHB 194)   The Attack Involves ... The question that has come up is what "the attack involves" means.   I have seen multiple interpretations of what "the attack involves means" and can see most interpretations having valid points.  Seeing as all of the differences hinge on the DM's interpretation of what "the attack involves" means I cannot use the above quote as a sole basis for discussion. Examples that I have encountered;  Paladin's Divine smite. Most argue that it is part of the attack and a Paladin gets to choose what level of spell slot he uses on divine smite after he sees that he gets to double the damage dice.  Some say that it is not involved in the attack and the smite is an a separate ability.  Other smites Most claim same as above, some claim it is a separate spell, and that it is a different instance of damage that Triggers on a hit and is not part of the attack itself. (see also hex and hunter's mark)  Poisoned weapons This one is more evenly split in my experience. Half say it is part of the attack since it triggers on a hit and should have its dice doubled. Others say it is a saving throw effect and so it does not have its effect doubled.  Attacks that trigger saving throws Several monsters have attacks that when they hit trigger saving throws against affects and do additional damage.  Like poisoned weapons above, some argue that it is all part of the same attack so, based on the second quote above, all of the dice should be doubled.  Others say that the damage effect is behind a saving throw and should not be considered "part of the attack".   Some have quoted the below trying to interpret it the way that most benefits them.  Each weapon, Spell, and harmful monster ability specifies the damage it deals... Magic weapons, special abilities, and other factors can grant a bonus to damage. ((PHB 196))  Some have used the above quote claiming that any and all effects that damage a creature that have any association with an attack roll have their damage dice doubled including the Area Effect portion of the Ice knife spell. (Their argument was full of holes but I decided to include it here to have more examples.) Just to be clear, I am not asking for interpretations of these examples. Each of these questions boils down to an interpretation of what is "involved in the attack" for the purpose of Critical hits. What makes for a good answer? what I am looking for is any Wizards of the Coast associated material that can be used to more clearly define what is and is not "part of the attack."


find searching in parent directories instead of subdirectories

I'm nested deep in a file tree, and I'd like to find which parent directory contains a file.  E.g. I'm in a set of nested GIT repositories and want to find the .git directory controlling the files I'm currently at. I'd hope for something like  find -searchup -iname ".git"


My friend's challenge: prove that $\sqrt {\frac {a^2+b^2}{ab+1}} \in \mathbb N$

A few days ago, I told my friend that I wanted to learn trigonometry by the end of $2018$. His immediate reply was that I should go on if I could solve this mathematics problem:      a and b, given that $a\text{ and } b \in \mathbb N$ and $\left( \left( a^2+b^2 \right) \div \left( ab+1 \right)\right) \in \mathbb N$, then prove that $\sqrt{\frac {\left( a^2+b^2 \right) }{ \left( ab+1 \right)}} \in \mathbb N$   Over the last few days, I went about trying to see if I could prove it. (My friend has a tendency to occasionally trick me with unsolvable math problems) this is what I proved:   If $a \text{ xor } b=0$, it works. If $b=a^3 \text{ and } a \neq 1$, it works. Besides $n=0$, $x^n=a \text{ and } x^{n+2}=b $will work   To recap, one number must be $2$ powers greater than the other (i.e. $32$ and $128$. [$2^5$ and $2^7$]).    Or, at least what I thought...    When I sent an email to him, he said that I missed 2 very seldom noticed things and that everyone he had ever asked the problem missed it.  Which either means he intentionally made the problem too hard for my intelligence ( which is -spoiler alert- very low, compared to you people), or he is just making fun of me for not noticing his problem is impossible. Either way, a plethora of mathematicial geniuses whom are much more experienced than me at algebra could solve this easily. Could someone tell me what I'm missing??  Thanks in advance.   (And DON'T tell my friend about this!!)


Is it normal for a journal submission to show “With Editor” for more than forty days?


how to get all non null values from array in c#

i'm printing all non null values from array which contain null values. i want to print only non null values  string a = "welcome";  var rm = new string [] {null,"hai",null,"15"};  Console.WriteLine("{0}",!String.IsNullOrEmpty(rm[0])? a  :!String.IsNullOrEmpty(rm[1]) ? a +":"+ rm[1] :  !String.IsNullOrEmpty(rm[2]) ? a +":"+ rm[1]+ ":"+rm[2] : a +":"+ rm[1]+  ":"+rm[2]+":"+rm[3] );    actual output : welcome:hai  Expected output : welcome:hai:15


It seems impossible for an ice cube to contain bubbles.  the ice should freeze far too slowly for a bubble to get trapped within it.  However, virtually all ice (that I have seen in my freezer) contains gas bubbles.  How is this possible?


How to render layers in different files?

To explain myself better, i have 3 render layers (i’m using blender 2.8) one with the subject, one with a light beam and the last one with the background. This is an animation and i want to composite each layer in premiere separately, how can i render 3 different images per frame? Thanks!


Inverse of this $3\times 3$ matrix using the Cayley–Hamilton theorem

Find the inverse of the matrix $$\begin{pmatrix} -1 & 2& 0 \\ 1& 1 &0 \\ 2 & -1& 2 \end{pmatrix}$$ using the Cayley–Hamilton theorem.  Thanks!


How to deserialize a JSON String to Apex

How can I deserialize this json object:      {     "response": {         "count": 1,         "benchmark": 0.22567009925842,         "requests": [             {                 "request": {                     "id": 537481,                     "image_thumbnail": "",                     "title": "Request for new bin(s) - residential",                     "description": "Propmain ref  3234-1114",                     "status": "submitted",                     "address": "36 Pine Tree Close",                     "location": "Peterborough, England",                     "zipcode": "PE1 1EJ",                     "user": "",                     "date_created": 1417173208,                     "count_comments": 0,                     "count_followers": 0,                     "count_supporters": 0,                     "lat": 52.599967,                     "lon": -0.233482,                     "user_follows": 0,                     "user_comments": 0,                     "user_request": 1,                     "rank": "0"                 }             }         ],         "status": {             "type": "success",             "message": "Success",             "code": 200,             "code_message": "Ok"         }     } }   What i've tried:   Map<String,Object> rawObj = (Map<String,Object>) JSON.deserializeUntyped(jsonString);     Map<String,Object> responseObj = (Map<String,Object>)rawObj.get('response');     List<Object> reqs = (List<Object>) responseObj.get('requests');     System.debug('Map Size = ' + reqs.size());     Map<String, Object> i = new Map<String, Object> ();     for (Object x : reqs) {          i = (Map<String, Object>)x; }     Map<String,Object> requests = (Map<String,Object>)i.get('request');     System.debug('Map Size = ' + i.size());     for (String field : i.keySet()){          Object id = i.get(field);         Object title = i.get('title');         System.debug('Id : ' + id);         System.debug('title : ' + title);          //System.debug('Title : ' + title);       }


I have tried to cover below class but unable to cover even single % . Unable to figure out where/what I missed, Please anyone help me Apex class: public with sharing class customSearchController {     public static list<ICIX_V1__ICIX_Product__c> getContactList(string searchKey,string productType) {         string sTempSearchKey = '%' + searchKey + '%';         //string sTempSearchKey = '%' + searchKey;         // create Product list to store search result          list<ICIX_V1__ICIX_Product__c> lstProduct = new list<ICIX_V1__ICIX_Product__c>();         // query Product records         for(ICIX_V1__ICIX_Product__c oCon : [Select id,Name,Product_Number__c,ProductType__c,Parent_Name__c From ICIX_V1__ICIX_Product__c WHERE  Product_Number__c LIKE : sTempSearchKey and ProductType__c=:productType limit 10]){             lstProduct.add(oCon);         }         return lstProduct;     } }  Test class: @isTest public class customSearchController_Test {          static testMethod void getContactListMethod() {         try{                        list<Account> acclist=new list<Account>();         Account acc=new Account();         acc.name='Hasbro Dev Stg Res 2';         acc.ICIX_V1__Status__c='Active';         acc.ICIX_V1__ICIX_ID__c='304078';         //acc.ICIX_V1__Internal__c=true;         acclist.add(acc);         insert acclist;                      string searchKey;         string productType;                  list<ICIX_V1__ICIX_Product__c> lstProduct = new list<ICIX_V1__ICIX_Product__c>();         string sTempSearchKey = '%' + searchKey + '%';                ICIX_V1__ICIX_Product__c product1=Hasbro_TestDataFactory.createProduct()[0];         product1.Product_Number__c='C6119AV10';         product1.ProductType__c='ASSORTMENT';          lstProduct.add(product1);                  ICIX_V1__ICIX_Product__c product2=Hasbro_TestDataFactory.NewProduct();         product2.Product_Number__c='C6119AV10';         product2.ProductType__c='ASSORTMENT';         lstProduct.add(product2);                  insert lstProduct;                 customSearchController.getContactList('product2.Product_Number__c','product2.ProductType__c');     }          catch(Exception e){              }     } }


How to make MySQL Server > 5.5.45 on OS X Yosemite accessible through tcp?

Right now I do a netstat -n | grep 3306 and nothing come. Beside I try to connect using:  $ mysql -h127.0.0.1 -u root -p Enter password:  ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)   to connect and see the error below. Even so, when I use:  $ mysql -hlocalhost -u root -p   no problem at all to connect to the server.  All this indicated me that MySQL Server installed the official installer on OS X 10.10 Yosemite, not allow networks connection to the server. How I enable that feature?  EDIT TO MAKE A POINT WY IS NOT A DUPLICATE QUESTION  Suggestions for solve this problem can be found in a lot of places like , but none of those solutions worked for me. I will explain what I did, so MySQL on OS X gurus can suggest new things ;)   I install MySQL following  Copy sample of my.cnf   sudo cp /usr/local/mysql/support-files/my-innodb-heavy-4G.cnf /etc/my.cnf    I can stop and start the service using the   I tested without success:  :     Just comment out bind-address= altogether. When you do that, it will   bind to all addresses. Also make sure that you don't have   skip-networking enabled in your my.cnf.   I tested with bind-address comment out as well as skip-networking comment out. I tested with bind-address = 127.0.0.1 and with bind-address = 192.168.1.77 too.  I really don't what else to do. I'm testing that MySQL server is not listening to any TCP port using two commands:   netstat -n | grep 3306, showing nothing. mysql -h 127.0.0.1 -u root -p and mysql -h 192.168.1.77 -u root -p, receiving Can't connect to MySQL server on... error   Any Help?


reset inline-css that has been set (only) by jQuery

I have (please don't fight the reason) the following html

  and now need to add position: fixed via jQuery $(".something").css("position", "fixed");  which leaves me with the following markup in the inspector

  And noooow I want to erase ; position: fixed from the style-attribute again. The only solution I came up with is storing the initial position-value via .data() and then on reversing setting it again. But that leaves me with the following markup..

  Unfortunately I can't have the position-property in the style-attribute afterwards. It overwrites my css coming on some class changes etc. what I want: I am now looking for a way to delete the parts of the style-attribute that jQuery has put there... something like $(".something").css("position", unset); Please NO !important suggestions for my css! I am more looking for a clean way to solve this issue in general, rather than a solution for my specific problem here


Let $G$ be a group and $$N:=\langle\{g^2:g\in G\}\rangle$$ Prove that $N$ is a normal subgroup.   I am quite not sure how to start on this exercise. I heard that this can be proven by using the notion of an index of a group but since we did not cover this in the lecture I think it should not be used. Has someone a hint for a more basic solution?


Distorted shape after using pathfinder (illustrator cc)

I have this shape (no strokes):   when I use the pathfinder unite tool the image is distorted to the following:     I have unchecked align to pixel grid, scale rectangle corners and scale stroke from the transformer control panel.   I've looked online for an explanation but can't seem to find one. Anyone has an idea for this?


Ubuntu 20.04 application search bar missing

After updating to Ubuntu 19.10, pressing the Super button only shows the list of the currently opened applications. It does not show the applications list when nothing is opened.  Also, the search bar is missing and I need to search the applications manually from the top bar.  My current Ubuntu version is 20.04 LTS and gnome-shell version is 3.36.1 and the problem still persists.  The image below is what I see on pressing the super button.


How do I add keyframes to a newly created action with no associated objects?

So I'm writing an animation import script... since animation bone names can differ from the armature's bones in question, I want to create the actions and edit their group names manually, and then manually assign them to the armature.  The problem I'm having is I can create an unrelated action with unrelated groups, but the channels of those groups seem to require linked pose bones...  Since it's safe to say these pose bones don't exist, how can I assign keyframes to raw data?


How can I control an app on my iOS device from Mac or PC

I would like to take control of my app on an iOS device (mostly an iPhone) from my MacBook Pro or Windows, doesn't matter which one.  I know that it can be accomplished via Veency, and that's exactly what I need - but I do NOT want to jailbreak my iPhone.  Is there a similar legal alternative?  If not - is it something I could develop perhaps, or will I run into some SDK limitations for such a thing?


How to replace all word containing a pattern in vim?

I want to replace all words containing a string  in a file using vim.  how can it be done in vi editor ?


Is there a name for an idiom that intentionally reverses key words for dramatic effect?

I have in mind a particular kind of expression which employs a repeated sentence structure, but with key words reversed for dramatic or emphatic effect. Here are two examples:   "It's not the size of the dog in the fight, it's the size of the fight in the dog" JFK's famous "ask not what your country can do for you — ask what you can do for your country"   In both cases, the words in bold have been reversed to reveal a deeper or more profound truth. Does this particular kind of idiom or expression have a formal name?


I have tried in  but couldn't get exactly what I need.   Could somebody explain the difference between sudo su - & su -  Thank you.


Many sites change their temporary site icons to something more interesting, e.g. Chess.SE uses a rook.  From Chinese.SE:     ... if you have a unicode symbol, we could use that instead of the "Cn". For example, before it got a site design, the Anime site's logo was the Kanji for anime. ...    And judging from , it looks like Chinese.SE strongly favors 漢 rather than the current "Cn".  However, the example I’m particularly interested in is Islam.SE where we're , and probably the least problematic would be the Kaaba.  I made a mock up below (to illustrate my mental picture):    While the Kaaba is , it displays differently on different devices.  Also I'm concerned that Stack Exchange uses a kind of "sky blue and white" theme for sites without their own icon, and this might violate that theme.  We haven't made a decision at Islam.SE yet, and there are other possibilities (although nobody has objected to the Kaaba, which is a good sign it's a sensible choice), but it would help us make a decision to know what is possible and what is not.  Question: What Unicode symbols are possible as a temporary site favicon?  I’m particularly worried that either technical or design concerns will mean a “flat no” for some possibilities.  In which case, it’s pointless discussing it on the relevant meta site.  I could imagine something like the Kaaba being impossible for those reasons or some other reason I haven’t foreseen.    I don't feel this is the question same as .  I'm particularly focused on the choice of Unicode symbol (I edited to make this more apparent), whereas the other post talks about "pixels", etc., which don't directly enter into this question.  Furthermore, unlike the other question, I'm talking about the temporary logo: the one we use prior to getting a designed site.


Throughout Blade Runner we see Gaff (Edward James Olmos) making origami figures at various points in the movie. He makes a chicken, matchstick men and at the end of the film there is a unicorn waiting outside Deckard's apartment.    There is a   of  out there regarding the unicorn in particular, and how it indicates that Deckard is a replicant. I think an answer regarding the use of origami in general will be interesting new ground to cover.  Why origami? What does the origami represent in Blade Runner?