How is 'via' pronounced and where did these variations come from?

Over the years, I've heard people say 'v-ē-ə', 'v-ī-ə', and sometimes the 'uh' is an 'ah' sound. (edit- It has come to my attention that 'via' was once a 'wee-ah' from Latin, but I don't feel like this helps my question. If anything, that just makes me wonder why there is that variation in the beginning 'ē' and 'ī'.)  Now, I'm guessing the difference between 'uh' and 'ah' may just be regional, but that doesn't explain the first part of such a teeny word.   This has been driving me nuts for awhile. I've tried online dictionaries, asking English teachers, and they all are the reason (as well as TV and movies) for why I'm still clueless. (As for the English teachers over my years of schooling, all of them agree to disagree with how it is said. I have one teacher saying 'no' to 'vee-uh' and one saying yes to that way and vice versa.) As for the dictionaries, they can mention the two variations but they don't explain why.  (edit)  I guess the reason why I had been confused is because I didn't understand why there was a disagreement about how 'via' is pronounced. Can anyone shine some light on this as well? (I do appreciate the answers I received before I edited my question, but now they are insufficient.)   Is it appropriate to pronounce it both ways or is only one way correct? Also, where did these variations come from? (Via is Latin, yes. However, in Latin, it only had one way of pronouncing it. In English, there are two variants that are questionably debatable, and that is what this question is asking about.)


I have an array of array created from a for-loop which is incremented by 2. As a result the end result array looks like this: (3) [Array(2), empty, Array(2)] 0: (2) ["A", 2] 2: (2) ["B", 4] length: 3 __proto__: Array(0)  What's the best way to remove the empty array ?  var arr = [];         var z = 0;     for (var i = 0; i < props.data.length;  i += 2) {           arr[i] =  [props.data[i][1], parseFloat(props.data[i+1][1]), ]       }


If the Federation crew was able to beam aboard Borg cubes, why didn't they destroy it from the inside?

Many times Federation personnel beamed on board Borg Cubes, so if they were unable to destroy the Borg Cube by their torpedoes and other weapons why not simply plant a high energy destruction bomb from the inside and destroy it.   Secondly, if they were able to beam on board, where are the Borg shields?


Ubuntu 16.04 WiFi not working | Realtek RTL8723DE

I cannot connect to WiFi in Ubuntu 16.04 on an HP 15.6 Notebook. I have found lots of answers to this that would probably help. However, I cannot use anything that involves the internet such as GIT because there is no wifi. I cannot use Ethernet because I don't have an Ethernet port in my office. Please help me.


biblatex, biber, is it possible to \printbibliography between two years?

With biblatex and Biber, is it possible to print all the bibliography (\printbibliography) from (let's say) 2003 to 2008 in one section? And then in another section print all the bibliography from 2009 to 2016?


How Networking works on sheer p2p connections

How do programs find each other if there are pure p2p connections with no master servers.   I've heard about technologies like STUN TURN, ICE Torrent Tracking and so on  Is there a way to be not dependent on some server for negotiation to find others over the internet?  If not what is the least way to depend on one, lets say for 2 games to connect each other via p2p?


Lens recommendation for upcoming NYC trip?

I'm just a photo enthusiast knowing just the basics so far. My dad used to work with a film SLR and taught me a few things. I currently own a Canon 60D with the 18-135mm kit lens. I originally wanted to invest in a 50mm f/1.4 prime lens (rec'd by Dad), but I don't think it'll be versatile enough for traveling.  I will be taking lots of family pictures/city views. And most search came up for a wide-angled lens, such as the 10-22mm. But it seems a bit too short on its own. Would it be a good combo with the kit-lens.  I want to get one versatile lens that I can combine with my 18-135mm, or invest in just one lens to travel. (lots of walking!)  18-135mm is great, but it's quite bulky, and the lens has a terrible droop.  However, I'm not sure if I'm ready to replace it yet (still learning).  I want to take 2-3 lens max. Budget is under $1500.   What combination would you recommend for my week trip to NYC with family?   Thank you!


Clustering variables based on correlations between them

Questions:   I have a large correlation matrix. Instead of clustering individual correlations, I want to cluster variables based on their correlations to each other, ie if variable A and variable B have similar correlations to variables C to Z, then A and B should be part of the same cluster. A good real life example of this is different asset classes - intra asset-class correlations are higher than inter-asset class correlations. I am also considering clustering variables in terms stregth relationship between them, eg when the correlation between variables A and B is close to 0, they act more or less independently. If suddenly some underlying conditions change and a strong correlation arises (positive or negative), we can think of these two variables as belonging to the same cluster. So instead of looking for positive correlation, one would look for relationship versus no relationship. I guess an analogy could be a cluster of positively and negatively charged particles. If the charge falls to 0, the particle drifts away from the cluster. However, both positive and negative charges attract particles to revelant clusters.   I apologise if some of this isn't very clear. Please let me know, I will clarify specific details.


Help with counter-example on uniformly convergence.

Show that the sequence: $$h_n(x)=\begin{cases}\frac{x}{n}\left(1+\frac{1}{n}\right) \mbox{ if } x=0\mbox{ or }x\notin\mathbb{Q}\\ x(b+\frac{1}{n})(1+\frac{1}{n})\mbox{ if } x\in\mathbb{Q}. \end{cases}$$  Does not uniformly converges at any bounded interval.


how to create a data file with a column of date from day1 to dayN?

I was wondering if I could generate a hourly or daily time step date in a column starting from some year in the past to some day in the near past or today.  to be more clear, I want to create one column of data from 2000-10-10 100 to 2012-12-31 2400. The output file will look like   Date   2000-01-01 100 2000-01-01 200 2000-01-01 300 . . . . . 2012-12-31 2400


Issue in using longtable within table environment

I have an issue making a long list with wrapped text. The table can be several page long. I use longtable and assign the width for each column but as soon as I put it in the \begin{table} \end{table}, it does not work. It clips the table. I want to make a label for the table so I put it in the table environment.  And is there a way to automatically adjust the width so that I don't need to assign the value manually?  Thank you.   Tung  \begin{table} \centering \begin{longtable}{|p{6.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline Name                                      & Company     &  Catalog Number   &   Comments    \\ \hline Small DNA FRAG Extract Kit-100PR          & VWR         &   97060-558 & \\ \hline Acrylamide 40\% solution 500 mL           & VWR         &   97064-522 &  \\ \hline Bis-acrylamide 2\% (w/v) solution 500 mL  & VWR         &   97063-948 &  \\ \hline GeneRuler 100 bp DNA Ladder, 100-1,000 bp & Fermentas   &   SM0241  &    \\ \hline Mini Vertical PAGE System                 & VWR         &   89032-300  &  \\ \hline \end{longtable} \label{tab:list} \end{table}


I make an AJAX call and import the data to my html. Now I want to make an alert when I click a certain div.  In the past I always used .on() on elements after an AJAX call. This time its not working but AjaxComplete is working.  Any explination for this ?  NOT WORKING :  $( ".morec" ).on("click",function() { alert('test'); });   WORKING :  $(document).ajaxComplete(function(){ $( ".morec" ).click(function() { alert('test'); }); });


How can I copy location info from geotagged phone images to images taken with my other camera around the same time?

So i did quite a big trip recently, and took lots of pictures with my DSLR and occasionally Android phone. Only after coming back did i read about the whole GPX file, tracklog options in Lightroom. meaning i don't have such a tracklog file.  The android phone did geotag most photos it took. (at least, when it got a gps fix i guess)  So my question is, is there some software or way that will automatically copy the geotag from the android's photos to photos taken on the same time with my DSLR?  Or alternatively, generate a tracklog from the geotagged data in the android pictures?


If $ \frac {z^2 + z+ 1} {z^2 -z +1}$ is purely real then $|z|=$?

If z is a complex number and $ \frac {z^2 + z+ 1} {z^2 -z +1}$   is purely  real then find the value of $|z|$ .  I tried to put $ \frac {z^2 + z+ 1} {z^2 -z +1} =k $ then solve for $z$ and tried to find |z|, but it gets messy and I am stuck. The answer given is |z|=1


How can I embed a terminal widget on my desktop?

I use the command line a lot and I would like a widget (possibly integrating itself into the desktop) to provide access to a terminal.  Like this:


i am getting this type of problem,when i open my computer(continue to wait or press s to skip mounting or m for manual recovery)  please help me regarding this


Sanitize mysql injection string with preg_match

I want to sanitize data against mysql injection. So I need to write a pattern to recognize and remove 4 main mysql SELECT, Replace, DELETE , UPDATE.  I want to use this general rule for array_map  $_POST = array_map('stz',$_POST);   However I stuck in to write that pattern to against happens like this "  ' AND 1=1; SELECT * FROM test_table "


Please look at the following sentence        Having lived all my life in India, I can speak Hindi very well.      Does this mean I still live in India, or can it also be used if I have just moved from India to USA? If yes, then can it  also be used if I have been living in USA for 1 year, when I speak these words?      a. Having known her, I can tell she won't be happy.   b. Knowing her, I can tell she won't be happy.   What's the difference between #a and #b? Can #a ever be used, because it is difficult to 'un-know' someone after knowing them. In light of this should always #b be used ?   Also, if I want to say that I have known her 5 years and still know her, then which form must I employ     c. Having known her for 5 years, I can tell she won't be happy   d. Knowing her for 5 years, I can tell she won't be happy.   Thank you.


Is there anybody who knows how to solve the following?  Qn1: Show that for any integer n ≥ 0, one has gcd( n!+1, (n+1)!+1 ) = 1  Qn2 :Why is it that the greatest common divisor of any two integers a,b∈Z is defined as the unique non-negative integer gcd(a,b)∈Z, where Z is ≥ 0 such that:  {ar + bs ∈ Z : r,s∈Z} = gcd(a,b)*Z


How to make these faces just one material?

I'm making this dinosaur, and I'm making certain parts certain materials. For some reason, some faces do this. They are set to be the tan material, but show some red. I'm pretty new to this so it may be a simple answer, maybe not. If you need anymore information, just ask. This is also my first time using this site.


VF pages supported in Community Builder - What happens with the 3rd party JS libraries? Any LockerService Implication?

I was playing with a page that I am trying to put on to work for the community builder. The page uses the lightgallery library, to open up a popup gallery for some photos.   I verified that now the Community Builder supports the VF pages. If I am not wrong, initially they were supported only in the App Builder, for the Salesforce Lightning Experience.   After doing some testing, I found out, that the lightgallery plugin, works without any problem in a regular VF Page, but when I try to put it inside a Community Page, via Community Builder, that plugin simply doesn't work anymore.   Before going into dettails about that, I am trying to figure out what are the limits of this feature for the moment:    Should we be aware of any limitation regarding this scenario(what might be the best practice in this case)? How will be treated the 3rd party JS libraries called from withing a VF Page, used in a Community Template?   Thanks, E.


Integrating $\int_0^{2\pi} \frac1{a\cos(t)+b\sin(t)+c}dt$ with $\sqrt{a^2+b^2}=1<c$

Let $a,b,c\in\mathbb{R}$ such that $\sqrt{a^2+b^2}=1<c$.  Find $I:=\int_{0}^{2\pi} \frac{1}{a\cos(t)+b\sin(t)+c}dt$.  So, I set $z=e^{it}$ and then $dz=ie^{it}dt$ and so $\frac{dz}{iz}=dt$. Therefore,  $\begin{align*} I & =\frac{1}{i}\int_{|z|=1} \frac{dz/z}{a\cdot\frac{z+z^{-1}}{2}+b\cdot\frac{z-z^{-1}}{2i}+c} \newline &=\frac{2}{i}\int_{|z|=1} \frac{dz}{a\cdot(z^2+1)-ib\cdot(z^2-1)+2cz} \newline &=\frac{2}{i}\int_{|z|=1} \frac{dz}{(a-ib)z^2+2cz+a+ib}\newline &= \frac{2}{i}\int_{|z|=1} \frac{dz}{(z-z_+)(z-z_-)}\end{align*}$  Where $z_{\pm}=\frac{-2c\ \pm\ \sqrt{4c^2-4(a+ib)(a-ib)}}{2(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-(a^2+b^2)}}{(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-1}}{(a-ib)}$.  Therefore, if we define $f(z)=\frac{1}{z-z_-}$, we get that $f$ is analytic in $\{z:|z|\leq 1\}$ since  $$|z_-|=\Bigg|\frac{-c-\sqrt{c^2-1}}{a-ib}\Bigg|=\bigg|c+\sqrt{c^2-1}\bigg|>|c|>1$$  Finally from Cauchy's Integral Formula:  $$I=\frac{2}{i}\cdot 2\pi i\cdot f(z_+)=4\pi \frac{1}{z_+-z_-}=\frac{2\pi(a-ib)}{\sqrt{c^2-1}}$$ Which is not always real... So my question is what is the problem.  Moreover, sometimes it is correct, e.g. $a=1,b=0,c=2$ gives the correct answer $\frac{2\pi}{\sqrt{3}}$.


udev action to call notify-send not working

I have been trying to make a udev rule for a while, but without succes. For testing purposes, I have a file /etc/udev/rules.d/80-power.rules which contains  ACTION=="add", RUN+="/opt/eigen_scripts/waarschuwing_stroomkabel.sh"   Supposedly, this should run the specified script whenever a device like a USB stick is added (I monitored udevadm and the action indeed is add when plugging in a USB stick). This is not actually what I want to achieve in the end, but it seemed like the easiest way to at least get some kind of udev rule working. If you think the problem lies here, feel free to suggest an even simpler rule, I'd be glad to get any rule at all working.  The script in /opt/eigen_scripts/waarschuwing_stroomkabel.sh is  notify-send -i face-worried "Geen stroom!" "Sluit de adapter aan of de computer valt misschien uit."   and should send a notification.  Both files mentioned can be read and executed by root and all users. Using bash I have manually run the script in the second file (both as root and as normal user) and it works just fine. I have rebooted the system several times. I don't know what to try anymore. Thank you for your help.  I am working on a laptop with Ubuntu 16.04 installed.  Update: I have been looking at the duplicate question and the links in the comments, but haven't gotten much wiser. Updating my script to the script  #!/bin/bash  export DISPLAY=":0" notify-send "device plugged"   and rebooting did not solve anything, while it did at least partially work for the dupplicate questions's OP. I tried to follow the steps in the first two answers of  but without effect. And I do not understand what  is even about.


Visualforce component to display formatted currency

I have a component that I am using with a visualforce email template. It's a simple table that I get from a controller query to display Opportunity Products. I want ot format the totalprice field so instead of 10000 it shows 10,000. I found a lot of questions that suggest   <apex:outputText value="{0, Number, Currency}">   My problem is I'm not using output text because of the table part so I'm not sure where to put the value. Example:

             Product Name	             Currency Code	             Total Price
         <apex:repeat value="{!olis}" var="o">
             {!o.Product2.Name}	              {!o.CurrencyIsoCode} 	              {!o.TotalPrice}
         </apex:repeat>
   What am I doing wrong? I can save the component but no formatting takes place in the template;


placing the figure at bottom of the page

I want to place the column-spanned figure at the bottom of the page  near to the text  but using \begin{figure*}[b] goes the figure to the end of the document!! Why?  \begin{figure*}[b]     \centering     \includegraphics{fig.eps}     \caption{Something}     \label{f1} \end{figure*}


Creating a buffer based on area (i.e. sqm) instead of distance

Is there a way in ArcGIS 10.1 or QGIS (or any add-on) to create buffer based on an area (i.e. sqm) rather than using buffer distance? I'd like to create a buffer of let's say 5% of the area within the buffer. The problem is that the feature is not regularly shaped. Thanks,  Alex


Which property of stationarity is violated by a time series with regular cycles?

in the answers given to this question  it is said that a stationary time series is not allowed to have regular cycles. According to my search a stationary time series has 3 properties:  Expactation value is constant for every t Variance is constant for every t Autocovariance is constant for every t  Which of those is violated by a time series with regular cycles? I'd appreciate every comment.


Error with unicode-math and pgfplotstable

I was trying to make a table with pgfplotstable and append one csv file to another by \pgfpotstablevertcat. Now I wanted to change the math font with unicode-math, but then I get the error "File ended while scanning use of \pgfplotslistpushback". I am using lualatex from MiKTeX to compile the document. Same problem for xelatex.  What could be the issue? Is it a bug or am I missing something obvious? Here is a MWE which produces the error.  \documentclass{article} \usepackage{unicode-math} \usepackage{pgfplotstable}  \begin{filecontents}{dataA.csv} pH,     concentration 1,      1.5 2,      -0.5 3,      -1.5 \end{filecontents} \begin{filecontents}{dataB.csv} pH,     concentration 4,      -2.5 5,      -3.5 6,      -4.5 \end{filecontents}   \begin{document} \pgfplotstableset{col sep=comma} \pgfplotstablevertcat{\outputa}{dataA.csv} % loads `dataA.csv' -> `\outputa' \pgfplotstablevertcat{\outputa}{dataB.csv} % appends rows of dataB.csv \pgfplotstabletypeset[columns={pH, concentration},fixed zerofill]{\outputa}; \end{document}


Rigorous book for several variable calculus

I have lecture notes on several variable calculus. But it omits many proofs as the subject is so large, and for example the Taylor's formula was given only in a special case. Is there a rigorous book to fill the details, or should a student just fill the details as he or she sees something that is omitted?  Lecture notes contains the euclidean space $\mathbb R^n$, real valued functions on $\mathbb R^n$, vector-valued functions, integrals in a plane and in higher dimensional spaces and integral formulas, like path integral, Green's formula in a plane, exact vector fields, surface integrals, Gauss's theorem, and Stokes's theorem.


Place a subsubsection and a sidewaysfigure on a page

Since I have some graphics which have to be printed very large so you can see the details, I want to put them in the appendix of my document. Now to easily navigate the appendix I want to place a subsubsection and a sidewaysfigure on each page.  \subsubsection{Paper 01 - Kalman} \label{apx:plots-paper01-kalman}  \begin{sidewaysfigure}[htbp]     \centering     \includegraphics[width=\textwidth,         height=0.7\textheight,         keepaspectratio     ]{verificationMeasurementPaper01v2/KalmanDistance2.eps}      \caption{...} \end{sidewaysfigure}  \subsubsection{Paper 01 - Kalman (100 Samples)} \label{apx:plots-paper01-kalman-100}  \begin{sidewaysfigure}[htbp]     \centering     \includegraphics[width=\textwidth,         height=0.7\textheight,         keepaspectratio     ]{verificationMeasurementPaper01v2/KalmanDistance2-100-samples.eps}      \caption{...} \end{sidewaysfigure}   But now the subsection and the subsubsection are printed on the first page and after that there is always one page with one image.  How can I change this, so every subsubsection stays with the corresponding image on one page?  Both of the duplicated answers do not work. The subsubsections are still on the same place and not in front of the corresponding image.


How does one go about earning the ? I have attempted looking at other answers and couldn't find much.  Is there a detailed process that could be explained please?


I have an exercise that asks for the minimum distance of a BCH-Code with length 63 over $F_2$ with generator polynomial given by $g(x)=(x+ 1)(x^6 +x+ 1)(x^6 +x^5 + 1)$.   As $g(x)=x^{13}+x^{11}+x^8+x^5+x^2+1$, the minimum distance is $\leq 6$.   I know that one can show that the distance is $\geq 6$ and therefore is equal to 6. Can someone help me how to do that? So show that the designed distance is 6?


How to build a regular expression for a host name?

Need to build a regular expression for the following:  x.x.x.x   Above represents some host name, where x could be a group of characters/numbers and there must be only 3 dots.  I tried few things but was failing in some cases.


How can i set Caps Lock to set Russian language and Shift + Caps Lock to set english? Not just Ctrl + Shift to switch them.


I just remembered about a problem/paradox I read years ago in the fun section of the newspaper, which has had me wondering often times. The problem is as follows:  A maths teacher says to the class that during the year he'll give a surprise exam, so the students need be prepared the entire year. One student starts thinking though:   The teacher can't wait until the last day of school, because then the exam won't be unexpected. So it can't be the last day. Since we've removed the last day from the list of possible days, the same logic applies to the day before the last day. By applying 1) and 2) we remove all the days from the list of possible days. So, it turns out that the teacher can't give a surprise exam at all.   Following this logic, our student doesn't prepare for this test and is promptly flunked when the teacher does give it somewhere during the middle of the year (but that's my own creative addition to the problem).  This problem reminds me about the  for finite number of turns - you have to betray at the last turn because tit-for-tat retaliation is no longer relevant (no next turn), but then that means that you have to betray at the turn before that, and so on, until you reach the conclusion that you can't cooperate at all.  So is the student's reasoning correct or not? Mathematically it looks like it should be, but that would imply that surprise exams are not possible (and they are).


Need to upgrade Windows XP to Windows 7 without losing data

I have a desktop with Windows XP on it that I urgently need to get it updated to Windows 7. I have heard from a friend that you need to do a clean install. Or is there a upgrade option, losing any data is not an option what would you suggest I do perhaps if I updated to Vista then to 7 would that work?


Correct answer for the following question? What is the reason?

I have come accross a multiple choice question in which I mixed up for what the answer might be. I am aware that we could use a gerund after help but not sure so much. Here I add the picture of the question  and please tell me why you would choose that.   The teacher helped us .................. Some of the questions. a. answering b. answer c. write d. to write


How to boot from toshiba recovery partition after installing ubuntu 14.04.1?

Im new here and have not found a post even close to this so here it is:  i installed ubuntu 14.04.1 over my Windows 7 Home Premium installation. didn't loose any important data.skip to when the install is done  i tried out ubuntu and got sick of it after a while.(the try ubuntu option was greyed out) i got sick of ubuntu after about an hour and i tried to boot into my recovery partition.  That's where im running into trouble: you are supposed to hold down the numerical "0" while turning on the power. but it just proceeds to load grub/ubuntu and does not even try to boot into the recovery partition. "000000000000" is all i get from holding it down  I know the recovery partition is intact,but i cant access it,even when setting a boot flag on it. i am stumped and i really need answers  thanks in advance!  specs  Toshiba satellite l775 intel core i3 dual core processor original os:windows 7 home premium 64 bit sp1 let me know if you need more info!


How to iterate over matches which contain spaces

I have a file that looks like this # ... stuff  @late() def test1():     # ...  @late() def test2():     # ...  I need to get each match after the @late() line and do some work on them. I've tried getting the line after using awk '/^@late()/{getline; print}' $the_file_path. The results are correct but when I iterate over the matches for line in `awk '/^@late()/{getline; print}' $the_file_path` do     echo $line done  I get def test1(): def test2():  As you can see, the "def test1()" and "def test2()" are split at the " ". Desired print output def test1(): def test2():  I've tried surrounding each line in quotes to prevent it from breaking at the space but have had no luck. Can I get a pointer on how to handle this case?


Reading a database from the assets folder

I have a db file in asset folder how can I use it. I must be able to read and write the database file  If I use      SqliteDatabase.open(context.openassest().open(filrname),null);   Exception db file not found    Don't check. The syntax I have done correctly in my lap see the content


As a developer, I love writing code, and I like to think I'm fairly good at it.  However, my chosen field is Web Development, which almost always requires the developer to also act as designer.  I can tell if a design is good or not, I can offer suggestions to improve the layout or UX. But I cannot pick a color scheme, I cannot create a layout, and I am terrible at generating graphics.  As a developer, how can I pickup design?


Making a simple L type Road. With the curve, mesh making follow the path. Scale and it has enough verts.Why at the corner its not a sharp edge. its going curve. I do not think this is the . I want sharp edge at the corner. And this answer show the round edge.    Any suggestion how to solve


I understand intuitively that this is true, but I'm embarrassed to say I'm having a hard time constructing a rigorous proof that $|a+b| \leq |a|+|b|$. Any help would be appreciated :)


I started gathering information about Hamiltonian MCMC and I would like to ask if someone knows some good papers or books.If it possible notes that give a detailed explanation of Hamiltonian MCMC.  Thanks in advance!


Error from Java Application - Call to external interface

I have started getting below error from my Java Application - calling to the external interface:  Exception message: java.lang.NoClassDefFoundError: com/mercury/opal/capture/gen/LocationReference39_0   Can you please suggest the cause/resolution of this issue? I tried to search it but did not help.


Are all non-irrational numbers rational?

I am working on a simple proof involving rational and irrational numbers. Is it safe to assume that if a number is not rational, it is irrational, and that if a number is not irrational, it is rational?  Example: Let $P(x)=\text{x is rational}$ and $Q(x)=\text{x is irrational}$.  Then is it true that $\forall x\ P(x)\text{ xor }Q(x)$?


Single query approach to split and copy string values in a column

This is a part of my .  I have the below logic to split a string value from a column in table tblProjects as below:  SELECT  @Docs = Documents FROM tblProjects WHERE ID = @ID  SET @Docs = @Docs + '$' SET @pos = 0 SET @len = 0  WHILE CHARINDEX('$', @Docs, @pos + 1)>0 BEGIN   SET @len = CHARINDEX('$', @Docs, @pos + 1) - @pos   SET @value = SUBSTRING(@Docs, @pos, @len)    IF CHARINDEX('|', @value) >0   BEGIN     SELECT  @type = SUBSTRING(@value, 1, CHARINDEX('|', @value) - 1),             @name = SUBSTRING(@value, CHARINDEX('|', @value) + 1, 200)     INSERT INTO tblDocuments VALUES(@ID, @value, @type, @name)   END       SET @pos = CHARINDEX('$', @Docs, @pos + @len) +1 END   A sample input would be   insert into tblProjects(ID, Documents)  values('P_1', 'gdgfg|jkkgk$bkgkkj|kjgkgk$vjffj|Khkgjhg$jkgkvghv|kbkghhkgk');   I need to split the Documents string and insert the values into a separate table. Values delimited by | should go into separate columns of the same row, whereas values for a particular row are delimited by $.   Is there a single query method to complete this operation, for all rows in the table, in the minimum possible time?


Java: Is there a way, how I can import a file which is in the same folder as the .jar?

The thing is, I am looking for a codeline which can import a txt file which is in the same folder as the .jar. The only problem is, the path where the jar and the txt file will be is unknown. So I am searching for a method which can return me the path of the .jar file which is at the same time the path of the txt. But it has to work with an outstanding .jar file and not only in console. Would appreciate some helpful answers because I tried so many not working ways until now.


Is the square root of negative 1 equal to i or is it equal to plus or minus i?

I didn't see a duplicate..  The motivation is you tube.  Tanton lectures of which one is titled " The Complex number i is NOT the square root of negative one".  Does anyone have a clue why this may be true. I did not follow his one line explanation of why  the square root of negative one is plus or minus i,  not i   Thank you


How old was Lady Arwen, wife of Aragorn in the Lord of the Rings?

Lady Arwen is possibly thousands of years old when The Lord of the Rings starts off. But exactly how old was she? What was the age difference between her and Aragorn? Considering the age difference, would not Aragorn seem to be a small kid in front of her?


Edit: I've opened  in the code-prettify project on GitHub.    The author of the question  noted in the comments that:     As expected, the broken SE syntax colouring now indicates to inexperienced eyes that the '> ' prompts are part of typed strings and the warning messages further destroy any highlighting utility.   I turned off the syntax highlighting by adding the <!-- language: lang-none --> tag, as described in the relevant meta thread:      However, it got me to wondering: why doesn't Stack Exchange support proper shell session syntax highlighting?  Oddly enough, including the tag <!-- language: shell_session --> does turn on some sort of syntax highlighting, even though I don't see shell_session anywhere in the supported languages list in the above linked Meta thread.  However, the syntax highlighting isn't great—it looks more like shell syntax highlighting than shell session syntax highlighting.  As noted, it doesn't properly identify the default PS2 prompt of > and highlights it as though it is part of the quoted string.  GitLab.com has shell_session syntax highlighting, as mentioned .  I checked and GitLab's highlighting does properly handle PS2 detection, and even error message detection.  Since the shell_session tag isn't even mentioned in  (and so I'm not sure why it does anything at all here on Stack Exchange), how can I propose improvements to the Stack Exchange functionality of shell_session highlighting so it can improve to be more like GitLab's?    Here is what GitLab's syntax highlighting looks like:    And here is Stack Exchange's highlighting of the same block:


i have a little problem with my icons on 12.04 :D I was installing an application from a tar-archieve but the icons for that special application were missing. So I looked up the tar again and found a subfolder /share/icons/48x48/ which sould (and thats the point, it should, but does not) fit into /usr/share/icons.  So i just ran  sudo cp -Rf ./share/icons /usr/share/   That worked for the particular application (MonoDevelop 4). But now, various icons are missing like Banshee, Software-Center, Audacity, Adoure, VLC and so on... (but not all, half of them are still in place!) I checked the permissions on /usr/share/icons and its all ok. What has gone wrong here and any ideas on how to fix this? Thnx ;)


Why is the closed unit interval compact?

Looking at the definition for compactness, i.e. "every open cover has a finite subcover", it seems like $[0,1]$ wouldn't be compact, since you can't construct a cover with a finite subcover that fills the bounded space.  This is obviously wrong because of Heine-Borel. Any counter-examples?


Why am I getting a 'missing $ inserted' error?

I'm trying to compile this:  \documentclass[11pt,fleqn]{book}  \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry}  \usepackage{xcolor} \definecolor{ocre}{RGB}{243,102,25}  \usepackage{avant} \usepackage{times} \usepackage{mathptmx} \usepackage{pifont,bbding}  \usepackage{microtype} \usepackage[latin1]{inputenc} \usepackage[brazilian]{babel} \usepackage[T1]{fontenc}  \usepackage{xlop}  % Index \usepackage{calc} \usepackage{makeidx} \makeindex  % Others \usepackage{cancel,relsize} \usepackage{pdfpages} \usepackage{multicol} \usepackage{xcolor,colortbl,subfigure} \usepackage{stackrel}  % TikZ \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes,snakes,calc,positioning,arrows} \usetikzlibrary{intersections,through,backgrounds}  %----------------------------------------------------------------------------------------  % Letras \mathbb \newcommand{\NN}{\mathbb N} \newcommand{\RR}{\mathbb R} \newcommand{\ZZ}{\mathbb Z} \newcommand{\CC}{\mathbb C} \newcommand{\QQ}{\mathbb Q} \newcommand{\PP}{\mathbb P}  % Operadores \newcommand{\mdc}{\operatorname{mdc}} \newcommand{\mmc}{\operatorname{mmc}} \newcommand{\sen}{\operatorname{sen}} \newcommand{\dom}{\operatorname{D}} \newcommand{\cdom}{\operatorname{CD}} \newcommand{\ima}{\operatorname{Im}} \newcommand{\idx}{\operatorname{id}} \newcommand{\suchthat}{\;\ifnum\currentgrouptype=16 \middle\fi|\;} \renewcommand{\CancelColor}{\color{ocre}}  % Comandos \newcommand{\ds}{\displaystyle} \newcommand{\tf}{\therefore} \newcommand{\raw}{\Rightarrow} \newcommand{\lfraw}{\Leftrightarrow} \newcommand{\lfaw}{\Leftarrow} \newcommand{\ov}{\overline}  %----------------------------------------------------------------------------------------  \input{structure} % Insert the commands.tex file which contains the majority of the structure behind the template  \begin{document}   \chapter{Conceitos iniciais} Neste capítulo, introduziremos definições e algumas propriedades da Geometria Plana que nos serão úteis ao longo deste livro. Apesar de algumas afirmações parecerem óbvias, elas nos auxiliarão tanto nas demonstrações de alguns resultados mais complexos quanto nas resoluções de exercícios propostos.  \section{Noções primitivas} Na Matemática, a maioria dos conceitos são bem definidos, uma vez que, se tratando de uma ciência exata, não restem dúvidas para que propriedades e resultados sejam estabelicidos com total rigor.   \end{document}    But it makes this error:   ! Missing $ inserted. <inserted text>                  $ l.76 Neste capítulo, introduziremos definiçõ                                                es e algumas propriedades da ...   There's no math environment here, so why this happens?  Thanks :)


Are $C(\mathbb{R})$ and $D(\mathbb{R})$ isomorphic or not?

Let's denote ring of all continuous functions and differentiable functions from $\mathbb{R}$ to $\mathbb{R}$ by $C(\mathbb{R})$ and $D(\mathbb{R})$, respectively. I want to know whether these rings are isomorphic or not.   From the first part of  it is clear that if there exists a ring monomorphism which sends 1 to itself then it is identity on the constant functions. But I can not find anything else. Please help. Thank you.


Windows software with no need for graphic viewer to explore WFS service?

The city of Haarlem (Netherlands) publishes all its open data through a . To examine if I can build an interesting application with it I would like to explore the data this service produces.  What I am looking for is software similar to generic SOAP clients, that lets me:   point to the service endpoint select an operation input request parameters perform a request show the response data   I have tried QGIS, but a fresh install of the current version produces an error about a missing qgis_core.dll. And I am not sure QGIS can do what I want, since I am not interested in visualizing the data at this moment.  I don't need a graphic viewer, but something that shows the actual requests and responses because I want to find out how to communicate with such a service in my own code.


New to Linux and wanted to ask which version is the best to learn Ubuntu?  This is what I see on the packages site: trusty (14.04LTS) trusty-updates trusty-backports xenial (16.04LTS) xenial-updates xenial-backports bionic (18.04LTS) bionic-updates bionic-backports cosmic (18.10) cosmic-updates cosmic-backports disco  Thank you for your help and appreciate your time! Bob


basic settings for good result in Nikon P510 coolpix

Please advice me the basic settings of Nikon P510 coolpix for good results especially I seek your advice on Aperture value, shutter speed and ISO - what should be the combination for a good result with the above camera?


Why does the change I make to a variable, after passing to a constructor, get reflected back in the original variable?

Java is basically a pass-by-value language. But I wrote some code, and found that in that case Java actually passed the reference of an array rather than just its value, because when I changed the values in the array in another method of another class, the original array was changed.  What I did was I created a constructor and passed an array as the argument of that constructor. That constructor then called a method which did some operations on the said array. But, when I checked for the values in that array in my main() method, from which the constructor was called, I found that the values were changed.  If Java was supposed so pass a copy of the array, this shouldn't have happened. Can anyone please help?  Here is the code I'm talking about. The actual code is different but I wrote an example of what I am talking about for the sake of simplicity.     public class Test  {      public static void main(String[] args)      {          int[] matrix = {1, 2, 3, 4};          dump(matrix);           Changer changer = new Changer(matrix);          dump(matrix);     }        static void dump(int[] matrix)     {         for(int i = 0; i<matrix.length; i++)         {             System.out.print(matrix[i]);         }          System.out.println();     } }  class Changer {      Changer(int[] matrix)     {         change(matrix);     }      void change(int[] matrix)     {         for(int i = 0; i < 4; i++)         {             matrix[i] += 1;         }     } }     Any help is appreciated  EDIT:  Because this question was marked as duplicate, I want to clarify.  I accept that Java is pass-by-value. But I pointed to a situation where the value was not passed, and the reference/original variable was passed. I want some confirmation about Java's behavior


Estimating the battery capacity using current power consumption and battery percentage

I want to estimate the current maximum capacity (in kWh) having the current power consumption (in kWh) and the state of charge of the battery (in %) available in a time series.   I do not have a full battery charge circle recorded but only a snippet with the state of charge going from ~95% to ~35% in a 1 second data recording interval.  At first, i cumulated the current power consumption and noticed that the progression between cumulated power consumption and state of charge was almost the same (see figure 1 and 2).   progression of state of charge vs. cumulated power consumption   So i tried to use a linear regression model to predict two values of cumulated power consumption at 0% and 100% state of charge. In my assumption the delta of these two leaves me with the current maximum capacity of the battery.  Ideally i want to monitor the capacity during the data recording. Which means i only have data of a few percent of state of charge. In figure 3 and 4 you can see my attempt of trying to create a linear regression model for every 2% state of charge. As you can see in the right plot, the estimated capacity has a very high variance.  LEFT: regression lines (green) of every 2% state of charge; RIGHT: estimated capacity of every 2% state of charge   Since i am not an expert in neither the matter of regression nor batteries/physics, my questions are:   Is there a much simple or more exact way (or both) to estimate the current maximum capacity of the battery? If yes, is there a good way to estimate an sufficiently exact capacity with an even smaller snippet in an ongoing process, lets say every 2% state of charge? (maybe using a characteristic curve of the discharge process)


Scheduling program execution and file moves

I am looking for some high-level suggestions on how to build the following:  During the process of about two weeks, a few jobs will need to run a few times a day, at very precisely given times. These jobs include:   Pulling/pushing files from/to FTP servers. Running an SSIS (that's Microsoft's ETL solution) package. Running a C# program that's compiled as .exe.   All of this happens on Windows Servers.  As a programmer, my first thought was to write a tool in C# that can run for a couple of weeks, and just executes these other tasks at the given points in time. This sounds like overkill and difficult to maintain, though.  What would your solution be?


I need to find international prices of airfare for specific locations in the years 2013 and 2014. Please help my boss will kill me if I cannot come up with this info soon!


When you make a First Post review, some time appears a review-audit to test if you're making attention in review tasks. However I note that some times this review-audits appears to be made by user who has more than 1 rep, I think that this is an error because if it's a first user post is not possible that this user has more than 1 rep and it's a clue to know that this is a review-audit post. I'm correct or I'm missing something? (I know that If you have a trusted user from another Q&A site you can have 101 rep but in this case your post not appears as first post isn't it?)  Thx! :).


Character of the subobject classifier in the topos of $\mathbf{M}$-sets.

I'm currently reading Goldblatt's Topoi - The categorial analysis of logic and at some point he lets one verification to the reader and I must admit that I'm stuck.  He's just introduced $\mathbf{M}$-sets where $\mathbf{M}$ is a monoid, and he's showing that the category of $\mathbf{M}$-sets and multiplication-preserving maps is a topos.  He also introduced the concept of a left ideal and called $L_M$ the set of left ideals of $M$, and his claim is that $L_M$ together with the multiplication $m\cdot B = \{n\mid nm \in B\}$; and with the true arrow $true : \{0\} \to L_M$, $true(0) = M$ is a subobject classifier in this category.   Then he considers a monic arrow $k: X\to Y$ and argues that the character $\chi : Y\to L_M$ associated with this subobject is defined by $\chi(y) = \{n \mid n\cdot y \in X\}$.   This is where I'm stuck : I've managed to show that this does make the associated square a pullback square, and that any other arrow $g:Y\to L_M$ that makes it a pullback square has $g(x) = M$ for $x\in X$. I've also shown that it has $\chi(y) \subset g(y)$ for all $y\in Y$, but I can't prove that $\chi$ is the only one that works...  Any indications?


Groups $G,H$ with surjective homomorphisms that are quotient of each other

Let $G$ and $H$ be groups and assume that there exist onto homomorphisms $$\phi :G\rightarrow H,\qquad\psi :H\rightarrow G.$$ If $H$ and $G$ are finite then it is clear that $H$ and $G$ are isomorphic. It is also valid for finitly generated abelian groups. However, in general this is not true even in the abelian case.     My question is: if we know that $G,H$ are finitly generated and such $\phi ,\psi$ exist then are $G$ and $H$ isomorphic?


I'm not able to understand why the global variable is not working.  global globalvar globalvar = 0 def print_globalvar():         globalvar = globalvar + 1         print globalvar  def print_var():         print_globalvar()         globalvar = 10         print_globalvar()  print_var()   Traceback for the above code.  Traceback (most recent call last):   File "test.py", line 14, in <module>     print_var()   File "test.py", line 9, in print_var     print_globalvar()   File "test.py", line 5, in print_globalvar     globalvar = globalvar + 1 UnboundLocalError: local variable 'globalvar' referenced before assignment


Use existing home, etc and var partition when installing Ubuntu

Is there any possible way to use the existing home, etc and var partition when installing Ubuntu?


The content of my user inputted array isn't what was entered

I have a ten spot array in my code, which is user inputted.  for (int i = 0; i < arraya.length; i++){      arraya[i] = scan.nextInt(); }     After entering   2, 4, 53, 2, 3, 46, 45, 5, 4, 3   the array that was printed read  [I@86b012   How do I fix this?


Relation Between Bayesian Estimation and Maximum a posteriori estimation

Is maximum a posteriori estimation some kind of Bayesian Estimation?   If yes, can you point out other Bayesian estimators?  Edit:  So I've come to know the following (don't know if they are correct):  MAP finds the mode of the posterior, and Bayesian Estimator finds the distribution of that posterior with respect to the estimating parameters. And in order for Bayesian Estimator to find the optimal parameters, some particular risk function (like Mean Squared Error, 0/1 error etc.) must be defined.  So it seems these two estimators have nothing in common except they both incorporate prior into their estimation. Or is it possible that MAP is some special case of Bayesian Estimator with some particular risk function.


MySQL Prepared statements with a variable size variable list

How would you write a prepared MySQL statement in PHP that takes a differing number of arguments each time? An example such query is:  SELECT `age`, `name` FROM `people` WHERE id IN (12, 45, 65, 33)   The IN clause will have a different number of ids each time it is run.  I have two possible solutions in my mind but want to see if there is a better way.  Possible Solution 1 Make the statement accept 100 variables and fill the rest with dummy values guaranteed not to be in the table; make multiple calls for more than 100 values.  Possible Solution 2 Don't use a prepared statement; build and run the query checking stringently for possible injection attacks.


Counting in Lojban, The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9

Counting in Lojban, an artificial language developed over  the last forty years, is easier than in most languages The numbers from zero to nine are:  0  no 1  pa 2  re 3  ci 4  vo 5  mk 6  xa 7  ze 8  bi 9  so   Larger numbers are created by gluing the digit together. For example, 123 is "pareci". Write a program that reads in a lojban string (representing  a no. less than or equal to 1,000,000) and output it in  numbers.  I don't know what happened; it seems that my programme is not checking the if statement       if (str.substring(i-2,i) == q[ale]).  The rest of the loop is working fine.  Any advice?  public class apple {     public static void main(String[] args) {         String [] q =            new String[10];//"no","pa","re","ci","vo","mk","xa","ze","bi","so"];         q[0] = "no";         q[1] = "pa";         q[2] = "re";         q[3] = "so";         q[4] = "ci";         q[5] = "vo";         q[6] = "mk";         q[7] = "xa";         q[8] = "ze";         q[9] = "bi";          //q[0] = "so";         int ln;          String str = "nocipa";         ln = str.length();          if (ln % 2 != 0)         {             System.out.println("Invalid number");         }         else         {              for (int i = 2; i <=ln-2; i = i + 2)             {                 for (int ale = 0; ale < 9; ale++)                 {                     if (str.substring(i-2,i) == q[ale])                     {                         System.out.print("hello" );                      }                 }             }         }     } }


How is it that Quantum entanglement does not let you transmit infomation?

when I was first introduced to entanglement I was told that "it is a phenomena that allows information to be transmitted faster than light", however, as I kept reading up on it, this seemed to be an oversimplified model to the extent of inaccuracy. I now find that there is a rule that says information cannot be transmitted this way... why? I understand that transmitting information via entanglement breaks relativity (in the sense that it means information can be transmitted then light). But surely things like the information loss paradox etc. have counter intuitive names if no information can actual be gained from these mechanisms. So, is there an intuitive way of explaining why no information can be transmitted this way (or if it can), other than it breaks down other theories.?


I would like to know how to put a time delay in a Python script.


Dynamically updating question view counter

Most posts update on-the-fly as changes are made, but question view counts still require a page refresh.  Whenever I ask a question, I usually find myself refreshing the page compulsively, to find out whether it's getting attention. If the view counter was dynamic, I wouldn't have to do that.  I would like view counts to be updated dynamically along with the other content.


How many people can the TARDIS transport?

The interior of a TARDIS is much larger than its exterior, but how many occupants can it transport?


Gravity change as a function of time only

Is it possible to find how gravity changes with time? That is, height is not part of the equation.   For example, $g$ can be expressed as a function of height that does not involve time with this relation:  $g_i=g_0 (r /(r+h))^2$  where $g_i$ is $g$ at any height and $g_0$ is on the Earth's surface.   I also found through the above relation that $g_i = g_{i-1} ((r+h_{i-1})/(r+h_i))^2$  By the same token, there should be a relation between $g_0, g_i,   t$ that does not involve distances. An object in free fall will be going through changes in $g$ as time progresses. Is it possible to create such an expression?


Safari 12 improved the security of the browser by killing off the older API. Unfortunately in doing so it killed the very handy Sessions:    I can easily go find the tabs I had open when I upgraded.   My challenge - where do I find a robust tool that remembers all of your tabs even after a crash?   (Yes I know of the preference "reopen open all windows from last session" - past experience says that this doesn't work if the browser crashes).


What command would I use to find out how much total space my hard drive has left?

What's a single command I can run that shows me the total amount of space free on a hard drive? I don't want to do any math, I just want a command that shows me the total free space on my hard drive.


What's a potentiometer with four terminals in this schematic?

I'm reading .  In it, there's a application circuit schematic with two potentiometers that have a fourth terminal in it. See below:    The components I'm talking about is P3 and P4. I understand the terminals across the "resistor" (going to the input and ground) and the terminal with the arrow, that goes to the amplifier, but I couldn't figure out what is that terminal going to the left, connected to the 2.2 nF capacitor and 2.7 kΩ resistor.  What does it mean? What type of potentiometer is that?


JS, when a variable is assigned to another variable, does it hold a reference to that variable or the value that that variable holds at that moment?

Provided this code  let myVar = 'hey' let myVar2 = myVar myVar = 'what'   When I assign let myVar2 = myVar, I am assigning a reference to myVar2? Or in the assignation myVar gets resolved and I am assigning the value that myVar has at that moment?  My doubt is whether    myVar2 holds a reference towards the original myVar (which is no longer available since it has been overwritten by the second assignation myVar = 'what') or myVar2 holds since the beginning whatever value had myVar, regardless that that variable will be overwritten later on


How to setup two completely separate partitions on one SSD

I have a MacBook with 1TB SSD. I want to have two separate partitions with two independent macOS installations. I want to make sure that none of the partitions have any kind of possibility to interact with the other, I want them to be as separated as if they were physically separate. Is this achievable with, for example, FileVault for each of them? Edit: My question is neither "how can I install two different macOS versions on two different partitions on one SDD", neither "how do I use FileVault", etc. I know how to do all of that. I want to make sure that there is no interaction between the partitions possible. Can this be made sure with the above approach? Is it sufficient?


Off-Topic Stack Exchange Site Selector should allow search rather than fixed list

I came across this question this morning  which should have been posted to   When attempting to vote closed due to off-topic -> belongs on another SE site I could only select from a fixed list of 4 sites, none of which were applicable.  Can we update the selector to allow for browse/search for the appropriate site.


Is it possible to speed up the gzip process?  I'm using  mysqldump "$database_name" | gzip > $BACKUP_DIR/$database_name.sql.gz   to backup a database into a directory, $BACKUP_DIR.  the manpage says:     -# --fast --best             Regulate  the  speed  of compression using the             specified digit #, where -1  or  --fast  indi‐             cates  the  fastest  compression  method (less             compression) and -9 or  --best  indicates  the             slowest compression method (best compression).             The default compression level is -6 (that  is,             biased  towards high compression at expense of             speed).    How effective would it be to use --fast? Is this effectively lowering the CPU usage on a modern computer?   My test results  I didn't notice any acceleration:   7 min, 47 seconds (with default ratio -6) 8 min, 36 seconds (with ratio --fast ( = 9 ))   So it seems it takes even longer to use the fast compression?  Only higher compression really slows it down:   11 min, 57 seconds (with ratio --best ( = 1 ))   After getting the Idea with lzop I tested that too and it really is faster:   6 min, 14 seconds with lzop -1 -f -o $BACKUP_DIR/$database_name.sql.lzo


JavaScript: Are my event handlers overwriting itself? How to minify reflows in this casse?

Using the following code, I try to create the markup for a HTML list and then attach an event handler to every list element.    The list is created as expected and everything seems to work fine, the only problem is that it always alerts I am 4, no matter what li I click. So I guess that every event handler overwrites the preceding, by why?  Also I see one big downside of the way I do it, because I have to add every li to the DOM before I can add the event listener, which causes a lot of reflows. I would prefer to add all li elements to the ul and then add the complete list to the DOM. Is it possible to do it this way and add the event handler anyway?  Maybe there is a more better way in general?  MyTest.prototype.createDots = function() {     var self = this;     var dots = document.createElement("ul");      this.element.parentNode.appendChild(dots);      for (var i = 0; i <= 3; i++) {         var dot = document.createElement("li");          dot.innerHTML = "" + i;         dot.setAttribute("id", "dot-" + i);         dots.appendChild(dot);          document.getElementById("dot-" + i).addEventListener("click", function() {             alert("I am " + i)         }, false)          console.log(i);     } }


is it possible to replace a ms-dos command with another one?

I installed msys tools for a c++ programming more unix-like environment. the find command won't replace the native find windows command, which is pretty sad because I have to type in the full path (absolute) to the find msys command to use it. But which is really annoying because I am using emacs 'grep-find' command and it will use the find ms-dos command and will give an anarchic and useless result.  Is it possible to replace the native find windows command somehow ?


Evaluation of $\lim_{x\to 0} \frac{(1+x)^{1/x}-e+\frac{ex}{2}}{x^2}$

Evaluate the following limit:  $$L=\lim_{x\to 0} \frac{(1+x)^{1/x}-e+\frac{ex}{2}}{x^2}$$  Using $\ln(1+x)=x-x^2/2+x^3/3-\cdots$  I got $(1+x)^{1/x}=e^{1-x/2+x^2/3-\cdots}$  Could some tell me how to proceed further?


My device is Micromax a110q. I rooted it and changed my rom to sony pure xperia z2. After changing my rom the data is much more consuming by android os. So help me how to reduce data..


Why should events in C# take (sender, EventArgs)?

It's known that you should declare events that take as parameters (object sender, EventArgs args). Why?


How to check if current admin page is Gutenberg editor?

Previously I could use is_gutenberg_page(), but this function seems to be gone after 5.0 release.  Any tips on how to check if current admin page is gutenberg editor?


Sequence convergence and limit for $u_{n+1}=\frac{1}{2}(u_n+\frac{a^2}{u_n})$

Here is a problem I've been working on. I am stuck and wondered if you guys could shed any light.  Let $a>0$ and $u_{1}>a$.  Consider the sequence $(u_{n})_{n=1}^{\infty }$ defined by:  $$ u_{n+1}\: :=\: \frac{1}{2}(u_{n}\:+\:\frac{a^2}{u_{n}})\;\;\;\;\forall n\in \mathbb{N} $$  Show that the sequence is convergent and that:  $$ \lim_{n \to \infty}u_{n}=a $$  Thank you in advance guys,  Deborah


Quantization of a particle on a spherical surface

Suppose we have a particle of mass $m$ confined to the surface of a sphere of radius $R$. The classical Lagrangian of the system is   $$L = \frac{1}{2}mR^2 \dot{\theta}^2 + \frac{1}{2}m R^2 \sin^2 \theta \dot{\phi}^2 $$   The canonical momenta are  $$P_\theta = \frac{\partial L }{\partial \dot{\theta }} = m R^2 \dot{\theta }$$ and $$P_\phi = \frac{\partial L }{\partial \dot{\phi }} = m R^2 \sin^2 \theta \dot{\phi }$$  The Hamiltonian is   $$H = \frac{P_\theta^2}{2 m R^2} + \frac{P_\phi^2}{2 m R^2 \sin^2\theta }$$  Now start to quantize the system. We replace $P_\theta $ and $P_\phi $ as $-i\hbar \frac{\partial}{\partial \theta}$ and $-i\hbar \frac{\partial}{\partial \phi} $, respectiely, to obtain   $$H = -\frac{ \hbar^2 \partial^2}{2 m R^2 \partial \theta^2} - \frac{\hbar^2 \partial^2 }{2 m R^2 \sin^2\theta \partial \phi^2 } $$   This is apparently wrong, it should be the total angular momentum!   So what is the right procedure to quantize a system, especially a system in curvilinear coordinates?


Going JavaScript to PostgreSQL and back!

In JavaScript we work with nested/complex objects. In PostgreSQL we have composite types and JSONB.  However, converting between JS types and PG types is not straightforward.  I am currently using JSONB, however I do not like the fact that I need to also cast JSONB fields to text (using ->> or #>> operators) then cast text to the desired PG native type (e.g. ::int4).  I wish that PG supports some kind of a native arbitrary object type like JS.  Any thoughts or better ideas?  Thank you!


JavaScript functions breaking with comma in string from PHP

Step 1: On clicking a button, show a modal. <button class="btn btn-sm fa fa-edit" onclick="updateJobModal('<?php echo $custContactName ?>','<?php echo $jobDesc ?>','<?php echo $detailedDesc ?>','<?php echo $poNumber ?>','<?php echo substr($dueDate, '0', '10') ?>','<?php echo $prevJobNumber ?>','<?php echo $totalSellPrice ?>','<?php echo $sellLevel ?>','<?php echo $brandType ?>','<?php echo $clientRef ?>')"> &nbsp;</button>  JavaScript: const updateJobModal = (contact, jdesc, detailed, pono, duedate, prevjob, total, selllevel, brand, cliref) => {   let recordInUse = <?php echo $recordInUse?>;    if (recordInUse === 1) {     swal('Error', 'Unable To Update! Job Is Currently Open In EPMS!!', 'warning');   } else {     console.log([contact, jdesc, detailed, pono, duedate, prevjob, total, selllevel, brand, cliref]);     document.getElementById('jobdesc').value = jdesc;     document.getElementById('contact').value = contact;     document.getElementById('contact').innerText = contact;     $('#ddesc').val(detailed);     $('#ponumber').val(pono);     $('#duedate').val(duedate);     $('#prevno').val(prevjob);     $('#totalprice').val(total);     $('#selllevel').val(selllevel);     $('#brand').val(brand);     $('#clientref').val(cliref);     $('#modal-form').modal('show');   } };  Now the problem is the field $detailedDesc has commas in it. Example: Lot B--Box , Blank Tray , Top Insert, Mailing Label  It breaks the function and causes Uncaught SyntaxError: Invalid or unexpected token. Function call causing the error: updateJobModal('','Snack Pack Custom Box Mailing','Lot B--Box ,  Blank Tray ,  Top Insert,  Mailing Label ','Array','2018-07-31','','235315','20/30','Brand','Client Ref')  How do I get it to working correctly?


Does light pollution affect sleep quality while already asleep?

Many articles on the internet write about melatonin and its effects, making you tired. A lot of articles also point out how the use of devices before going to bed in modern days likely decrease melatonin production. Therefore, making it harder to fall asleep. But this information is only about the process of getting to sleep, before we are actually sleeping.  A recent Harvard Medical article 1 states:     High exposure to bright, artificial outdoor lights during the night may result in sleepless nights for older adults.   Referring to a publication on Nov. 15, 2018, in the Journal of Clinical Sleep Medicine.  Considering that:    many people nowadays, use their mobile devices in bed prior to going to sleep; modern cities or houses have (street) lights that are always enabled at night; ignoring the phase of falling sleep; focusing only on the time we are asleep already, so during the actual sleep cycles.   Does a darker room with less or no (artificial) light pollution improve sleep quality, with all associated health benefits as a result? In other words: Does light pollution, while asleep decrease the sleep quality or does light pollution only negatively affect the phase of “falling asleep”?  I wasn't able to find any studies or information regarding sleep quality in relation to light pollution during sleep. Were such studies performed? Are there specific moments when light pollution affects sleep quality the most, for example during REM-sleep or in a specific sleeping phase?    1


I have an afterInsert trigger on Events. When the Script is finished, I would like to delete the event. I keep getting this error message.     DML statement cannot operate on Trigger.new or Trigger.old   If I cannot do this within Trigger.new, what is the best way to do this? If SOQL is involved, what field am I looking for? event.ID?


I can't understand why people seek small $p$-value. I mean, $p$-value is the smallest level at which $H_0$ can be rejected. Making level small we minimize the probability of type $1$ error, which as I think means that we are getting more evidence against $H_0$, since now the probability of accidentally rejecting $H_0$ when it is true decreases $=>$ probability of accepting $H_0$ when it is true is becoming bigger, because $P_{H_0}(test = 1)=1-P_{H_0}(test = 0)$  When $p$-value is small we reject $H_0$, but it seems to me that when $p$-value is small it must be vice versa, because the small $p$-value corresponds to the higher probability of accepting $H_0$ when it is true.  I saw the answers that you suggested... but none of them helps. I know the 'interpretation' of p-value, I can imagine it as an area under curve too, but I can't understand the relation to what I wrote above.


Consider this simple code fragment :    {    if(fork())  { printf("Parent terminated\n");  }  else  {    char *s = "hello world";   *s = 'H';  printf("child terminated\n");  } wait(NULL);   return 0; }   When I compile it  I dont get a segmentation fault error as we expect while assigning to *s The output is :  Parent Terminated  ( without printing child terminated)  Now if I remove the two lines char *s=......'H' I get the normal output .Can someone please explain this


12v (ish) measured by a 0-3.3v input pin

firstly apologies I'm a newbie at practical electronics!  I have a sensitive little thing which can measure 0-3.3v DC in steps of 0-1023. I'd like to use it to measure the voltage on a "12v" vehicle battery - which as I'm sure you know can go significantly higher when being charged through an alternator so really I need to figure out the following:  What circuit can I design to take a DC input of between... 10v and 15v... DC and bring it down to <3.3v in such a way that I can still measure the difference?  I have seen some similarish posts but all have been (a) relatively specific and  (b) not explained in laymans terms that I could understand.  thanks


How to show only specific file extensions?

I want to have a folder where I can see all the .pdf files that I have on several different folders.   You may have different files on this folder but when you open it it will only show you a specific file extension.   Is this even possible?


I have three servers that currently have ips 192.168.1.1, 192.168.1.2, and 192.168.1.3.  They can see each other and talk to each other.  I would like to create a second subnet, on top of the 192.168.1.x, which is 10.170.x.x.    I can assign ips to each of the three servers, 10.170.0.1, 10.170.0.2 and 10.170.0.3,  with ip addr add 10.170.0.1 dev eth0.  The problem I'm having is how to do the routing.  I can't ping any server over the 10.170.x.x network.  I believe that I need to create some peer-to-peer bridges but I have no clue on how to get started.  Any ideas?


python - import at top of file vs inside a function

In Python code in the project , sometimes the import statements are inside of functions.  def main():     import argparse     cmd_parser = argparse.ArgumentParser(description='A tool to work with MicroPython .mpy files.')     cmd_parser.add_argument('-d', '--dump', action='store_true',         help='dump contents of files')     cmd_parser.add_argument('-f', '--freeze', action='store_true',         help='freeze files')     ...   Is this good practice? Is there a technical reason for this?


ALright I have the netbook. I recently did a reset and now I cannot load any apps. It's telling me the internal memory is full and I do not know how to erase things and clear it since it won't let me even download an app to debug/clear cache/clean it.  Who has some helpful suggestions?


Why do we get results of an inertial frame on an accelerating Earth?

Earth is an accelerating frame. However, all experiments done on earth behave as if Earth is an inertial frame. How is this possible? Is there an experiment which can be done on earth to show it really is accelerating?


How to make a Windows service start before another at Windows startup

Is it possible to make a Windows service (third-party one, I don't control its code) to start only after a service I own?  I need that to connect to a device which is blocked by the third-party service.


Rigging: the left toe's mesh moves along with the right foot

When I move the right bone on my character the left toe's mesh moves along with the right foot.


Is there any way to lock a shell script from being executed twice?  I need to execute a script that transfers some files from one server to another. The script has to be executed by cron once a day. The connection between both servers should be fast, but may be slower at some times, meaning that the transfer may take more than 24 hours time. Hence, if the script is still running after 24 hours, cron should not execute it.  I thought of creating a file named myscript.lock at the start of the script and deleting it again at the end of the script execution. When the script is started it first checks if the file exists and if it does, then the script stops. This way I can guarantee only one execution. But, if the server breaks down during the script execution, the file will remain and not be deleted. Hence, every time the script is started it will think that it is already running.  Is there any locking functionality offered by the OS I could use for this matter?


What are the best practices for tooltips on mobile websites? I'm designing the mobile version of a website for customers' accounts (where they can see their latest bill and settings for their accounts). The desktop site is filled with tooltips: to explain terms. For instance, on a page to edit customers' settings, there are tooltips for each setting (each setting can also be ticked). We also have customers' bill pages: accounting terms have tooltips.  We're considering tooltips (an 'i' icon next to each item, but each "i" will have to be quite small: not really usable), or a single tooltip button at the top or/and bottom of each page needing tooltip. Or a tooltip pinned to the bottom of the page.  I think we need to minimise the number of tooltips. In addition, I'm not sure what is the best practice, usability-wise, to present them on a mobile device.


White artifacts when expanding extruded object

I use Illustrator CS6 to create a 3D pie chart. For this, I first create a "normal" pie chart and apply an extrude filter. Even though the results looks great in Illustrator, I get some white artifacts in the exported PDF (see screenshot). I tried with and without Object > Expand appearance and also with and without strokes. Is there a way to avoid these thin white lines? Thank you!


Mac-like alt-tab replacement for Windows 7?

Is there an alt-tab replacement for Windows 7 that works in the same manner as command-tab and command-tick (tilde) on OS X?  Requirements:  1. Completely keyboard-shortcut-based, no mouse action should be necessary.  2. 2 keyboard shortcuts with the following behavior:  a.) alt+tab:       cycles through open applications (NOT windows... applications, meaning even if i have 10 firefox windows open, I only want to see firefox once in the list that comes up when i hit this shortcut)  b.) alt+`:     cycles through WINDOWS that are instances of the currently active application (meaning if firefox is my active window and i hit shortcut2, it will cycle through those 10 firefox windows, while ignoring any other windows from ANY other application).    Update 08:40 5/21: I tried out eidylon's suggestion, TopDesk.  It doesn't provide any of the functionality described here.  Other apps I've already tried:   VistaSwitcher Switcher Dexpot (awesome app, still using, but doesn't do what I want in this case... also looked for plugins but couldn't find one that does it) UltraMon Nvidia nView   update: Unfortunately I still haven't found a solution for this.  update: made this a community wiki in case anyone is ever able to find a solution for this.


I want do_release_upgrade from 16.04 to 18.04 LTS but I receive update errors: Error during update A problem occurred during the update. This is usually some sort of network problem, please check your network connection and retry. W:The repository 'https://esm.ubuntu.com/infra/ubuntu bionic-infra-security Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository 'https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch https://esm.ubuntu.com/infra/ubuntu/dists/bionic-infra-security/main/binary-amd64/Packages , E:Failed to fetch https://esm.ubuntu.com/infra/ubuntu/dists/bionic-infra-updates/main/binary-amd64/Packages , E:Some index files failed to download. They have been ignored, or old ones used instead. Restoring original system state Aborting Reading package lists... Done Building dependency tree Reading state information... Done === Command terminated with exit status 1 (Mon May  3 12:47:38 2021) ===***  How can I fix this? Can I still do_release_upgrade after 30th april 2021? greetz, Timo


trying to install compat-wireless-3.6.8-1.tar.gz

tar -jxvfcompat-wireless-3.6.8-1.tar.gz bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting now  please help


Why do I have to wait to "tip" a user for a great answer via Bounty?

I found a fantastic  that saved me tons of time.  Really, we are talking a lot of time and effort.  So naturally I wanted to do more than just upvote it.  I thought, "sweet, they changed the bounty system a while back to allow me to "tip" a user who really helped me out".  I made a bounty of 100 on the question then tried to award it to the answer.  I was then told I had to wait 24 hours...  Why do I have to wait 24 hours?  Now it looks as if I am looking for better answers.  I am not, I just want to tip a great answer.  I would like to suggest that if the question is old, that the bounty time limit be removed.    Something like: if the question is more than X days old and there are no new answers for X days (or some such thing).  That will allow for tips to be directly applied, but also protect trigger happy new askers from accepting the first answer that gets applied to their new bounty question.


Why didn't Palpatine publicly change his name once he became Emperor?

Anakin Skywalker was known as Darth Vader (this was already his Sith name) after the creation of the Galactic Empire.  So why did Palpatine remain "Emperor Palpatine"? Why didn't he embrace his persona as Darth Sidious?  I started wondering after reading one of the answers to


What is the difference between '.' and 'source' in shells?

Possible Duplicate:          I have used both the dot command '.' and 'source' to reload a given rc file (typically to update my environment variables) but I am not sure if they are different and if one is preferred. What is the difference between the two ?


The probability that two friends will be able to meet each other between 9:00am and 12:00 noon, not waiting for each other for more than 15 minutes is?


Show that any bounded linear functional on a normed linear space is continuous.   Can we say that it is uniformly continuous ?   Also, is it true, if we reverse the statement    any continuous  linear functional on a normed linear space is bounded ??


Recurrence relation (linear, second-order, constant coefficients)

Q1. Find the general solution to the difference equation  $$ a_{n} - 4a_{n-1} + 3a_{n-2} = 6 $$    Q2. Solve the difference equation   $$ a_{n} - a_{n-1} - 2a_{n-2} = 0, a_0 = 2, a_1 = 4 $$    I am completely lost in solving recurrence relation questions. Can anyone guide me in steps to solve the following 2 questions?


sftp an entire directory to a remote machine?

Note: using scp or other tools is off the table due to vendor requirements.  I have been set up with a private key to be able to upload numerous files to a vendor's server.  Let's say I have all of my files in /etc/files and I want to upload them as myuser@example.com:/files/  I was told I could do this using heredocs but I'm a little unsure. Any advice?  I have a private key so I will be using that via the -i flag.


Why doesn't multiplication by constant affect MLE?

I have an example that derives the MLE for Binomial.  Since there's that factorial term $n_i \choose x_i$ in front of the Binomial p.d.f. and it's a constant, the example claims that one can merely use  $$L(p;x)=\prod_{i=0}^n p^{x_i} (1-p)^{n_i - x_i}$$  as the likelihood function (to find MLE), discarding the constant factorial from it.


How to search in an List and my List is look like : List myList = new ArrayList()

I want to search in a List and my List is look like  List<Employee> oneEmp= new ArrayList<Employee>(); List<Employee> twoEmp= new ArrayList<Employee>();    oneEmp= [Employee [eid=1001, eName=Sam Smith, eAddress=Bangluru, eSalary=10000000], Employee [eid=0, eName=, eAddress=, eSalary=null], Employee [eid=1003, eName=Amt Lime, eAddress=G Bhagyoday, eSalary=200000], Employee [eid=1004, eName=Ash Wake, eAddress=BMC, eSalary=200000], Employee [eid=1005, eName=Will Smith, eAddress= Delhi, eSalary=200000], Employee [eid=1006, eName=Shya Ymwar, eAddress=Madras, eSalary=50000], Employee [eid=1007, eName=Nag Gam, eAddress=Pune, eSalary=10000000], Employee [eid=1008, eName=Arti, eAddress=Delhi, eSalary=10000000]]  twoEmp= [Employee [eid=0, eName=null, eAddress=null, eSalary=100000], Employee [eid=0, eName=null, eAddress=null, eSalary=50000], Employee [eid=0, eName=null, eAddress=null, eSalary=200000]]   I am using code like this:-  for(Employee two : twoEmp){         for (Iterator<Employee> iterator = oneEmp.iterator(); iterator.hasNext(); ) {         Employee e = iterator.next();         if (e.geteSalary() != null && two.geteSalary() != null && e.geteSalary().compareTo(two.geteSalary()) == 0) {             finalEmpList.add(e);         }         }     }   But this still required 2 for loop     I am using JAVA 1.6   My Employee class has attributes:  //Employee class int eid; BigInteger eSalary; String eName, eAddress;   Now I want to get all the objects in List who's Salary = 10000000  result should be :   [Employee [eid=1001, eName=Sam Smith, eAddress=Bangluru,    eSalary=10000000],     Employee [eid=1007, eName=Nag Gam,    eAddress=Pune, eSalary=10000000],  Employee [eid=1008, eName=Arti,    eAddress=Delhi, eSalary=10000000],.........................]  I would like to achieve this without using any loop or minimum loop required because data will be large


Positive real number inequality $\frac{m+p}{n+p}\gt\frac{m}{n}$, where $n\gt m\gt 0$ and $p\gt 0$

Let $m$, $n$, and $p$ be real numbers such that $n\gt m\gt 0$ and $p\gt 0$. Prove that   $$\frac{m+p}{n+p}\gt\frac{m}{n}$$  My attempt:  $$\frac{m}{n}+\frac{n+p}{n+p}\gt\frac{m}{n}\implies\frac{m(n+p)+n(n+p)}{n(n+p)}\gt\frac{m}{n}\\\implies\frac{mn+mp+n^2+np}{n(n+p)}\gt\frac{m}{n}\implies\frac{n(m+p)+mp+n^2}{n(n+p)}\gt\frac{m}{n}$$  I can't seem to progress from here. I tried to find a way to force a cancellation with the $n$ in the denominator, but couldn't find a plausible approach. Any help?


why javascript `var undefined` is OK but `var null` throw error

why does browser throw Error for var null; ?  I am reading  and I know undefined is a global variable different from null.    But I am just curious about that why it throws Error when dovar null; in contrast, when var Number=123,var Boolean=123,var Object=123,var undefined=123(although useless), etc.,it's ok.  As far as I know, null is not a reserved word and keyword in JavaScript. It should be a primitive type.  How does var work exactly in relation to null?


I would like to build a cartogram map using Web GIS.   I have a basemap and a set of raw data in excel.   I wondered what are the steps to build up a cartogram map using Web GIS?  Note: Originally this Question solicited Answers for both Web GIS and ArcGIS for Desktop.  A new Question has been asked focussed on ArcGIS for Desktop () and so this one has now been focussed on Web GIS (which itself is still quite broad).


How can I find the equation of the tangent line to the curve at the point $(-3,f(-3))$?

Let f(t)=2/(t+8)  (a) Simplify the following difference quotient as much as possible: $$[f(t+h)−f(t)]/h$$  MY ANSWER (CORRECT): $-2 / [(t+8)(t+h+8)]$  (b) Use your result from (a) and the limit definition of the derivative to calculate $f′(t)=\lim_{h → 0} [f(t+h)−f(t)]/h=$  MY ANSWER (CORRECT): $-2 / [(t+8)^2]$  (c) Use your answer from part (b) to evaluate $f′(−3)$  MY ANSWER (CORRECT): $-2 / 25$  (d) Find the equation of the tangent line to the curve at the point $(−3,f(−3))$ y=  I have tried the point-slope formula, $y-y_1=m(x-x_1)$, but my answer was incorrect.


I am still a little new to the macOS world, so my question might be easily solved. I have been doing some networking with my MacBook Air and noticed some things I did not understand/thought that they should be different.    When I run ifconfig I see many network adapters, and with many I mean way more than I anticipated.  lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384     options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>     inet 127.0.0.1 netmask 0xff000000      inet6 ::1 prefixlen 128      inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1      nd6 options=201<PERFORMNUD,DAD> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500     ether c8:69:cd:af:4f:bc      inet6 fe80::1832:448c:e682:a8a8%en0 prefixlen 64 secured scopeid 0x5      inet 152.67.132.28 netmask 0xfffffc00 broadcast 152.67.132.255     nd6 options=201<PERFORMNUD,DAD>     media: autoselect     status: active en1: flags=922<BROADCAST,SMART,PROMISC,SIMPLEX> mtu 1500     options=60<TSO4,TSO6>     ether 9a:00:05:1b:4b:3f      media: autoselect <full-duplex>     status: inactive p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304     ether 0a:69:cd:af:4f:bc     media: autoselect     status: inactive awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484     ether fa:1f:bf:37:c7:35      inet6 fe80::f81f:bfff:fe37:c735%awdl0 prefixlen 64 scopeid 0x8      nd6 options=201<PERFORMNUD,DAD>     media: autoselect     status: active bridge0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500     options=63<RXCSUM,TXCSUM,TSO4,TSO6>     ether 9a:00:05:1b:4b:3f      Configuration:         id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0         maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200         root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0         ipfilter disabled flags 0x2     member: en1 flags=3<LEARNING,DISCOVER>             ifmaxaddr 0 port 6 priority 0 path cost 0     nd6 options=201<PERFORMNUD,DAD>     media: <unknown type>     status: inactive utun0: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 2000     inet6 fe80::4974:b78a:7731:c82a%utun0 prefixlen 64 scopeid 0xa      nd6 options=201<PERFORMNUD,DAD> utun1: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1380     inet6 fe80::9ffc:672f:768f:f232%utun1 prefixlen 64 scopeid 0xb      nd6 options=201<PERFORMNUD,DAD> utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380     inet6 fe80::733c:91be:79df:7b4b%utun2 prefixlen 64 scopeid 0xc      nd6 options=201<PERFORMNUD,DAD>   lo0 and en0 are clear to me but the others are not.  However,  and  have cleared a lot of this up for me.   However, when I started writing this I only had utun0 and utun1 and now utun2 has appeared!  What I'd like to know is: Can I disable/remove them since I seem to not use them? If so, how?   ifconfig delete doesn't seem to work and ifconfig up/downhas no effect.


Finding the eigenvalues of differential Normal mapping of the Hyperbolic Paraboloid

Consider the hyperbolic paraboloid $S$, $S=\{(x,y,z)\in\mathbb{R}^3 |z=x^2 -y^2\}$  Study the second fundamental form of this surface at $(0,0,0)$ and show that it is not a semi-definite bilinear form, In other words, show that its Gauss Curvature is negative at this point.  My solution:  First I define $f$ as $f(x,y,z)=-x^2+y^2+z$ and see that $\bigtriangledown f(x,y,z)=(-2x,2y,1)$ for all $(x,y,z)$ to define the Gauss map $N(p):S\rightarrow T_{p}S$ by   $N(p)=\displaystyle\frac{\bigtriangledown f(x,y,z)}{|\bigtriangledown f(x,y,z)|}$ $\forall p=(x,y,z)\in S$  where $T_{p}S$ is the tangent plane of $S$ at $p$  so, the Gauss curvature by definition is the product of two eigenvalues of  the differential $dN(p)$ that is given by the matrix  $DN_{(x,y,z)}=\frac{1}{|\bigtriangledown f(x,y,z)|}\left[\begin{array}{ccc} 2 &  0  & 0 \\ 0 & -2  & 0 \\ 0 &  0  & 0 \end{array} \right]$  and so $dN_{(x,y,z)}.(v_{1},v_{2},v_{3})=(-2v_{1},2v_{2},0)$, where $v\in T_{p}. S$  I checked that the eigenvalues of $DN$ are $\{2,-2,0\}$ but by the fact that the operator $dN(p)$ is self-adjoint it must have only two eigenvalues, so how can I choose these two? By the exercise, I assume that the curvature is $-2.2=-4$ but I don't know the argumentation for choosing these values.  I found an example  asking this same thing, but $S$ is a cylinder, in this case   $N(x,y,z)=\frac{1}{r}(x,y,0)$, $r$ is the radius of $S$ and  $dN_{(x,y,z)}(v_{1},v_{2},v_{3})=\frac{1}{r}(v_{1},v_{2},0)$  the matrix that defines $dN$ is   $DN=(1/r)\left[\begin{array}{ccc} 1 &  0  & 0 \\ 0 & 1  & 0 \\ 0 &  0  & 0 \end{array} \right]$  and the exercise concludes that the eigenvalues $k_{1}=1/r$ and $k_{2}=0$, in that way we can see there are only two options, but in my exercise there are 3.  I know this is kind of linear algebra exercise but i would appreciate any help of geometers and algebraists.


Can an electron jump to a higher energy level if the energy is insufficient or exceeds the $\Delta E$?

Lets say we have an atom of hydrogen. It has one electron on $E_1 = -13.6~\mathrm{ eV} ~~(E_2 = -3.4~\mathrm{eV})$ energy level. I know that if we fire a photon with 10.2 eV energy the hydrogen atom will absorb it and the electron will jump on the next energy level E2. And bellow are my questions.   Q1: If a photon with 10.1 eV energy (insufficient to excite electron) would hit the atom of the hydrogen what would happen? Will the photon be absorbed by the atom and immediately emitted and the emitted photon (or photons?) will have the same 10.1 eV energy? Or the photon will pass through the atom or what would happen? Q2: Same question as the above one in this case our photon has a slightly more energy lets say it has 10.3 eV. Again what would happen? Will the atom absorb the photon and excite the electron but since the energy of the photon exceeds the required energy to excite the electron will the atom emit a photon with 0.1 eV energy or what will happen in this case?   I have done some research about it and got really confused. Some say that it needs the exact amount of energy ($\Delta E= E_2 - E_1$ in our case $\Delta E$ equals to 10.2 eV) to jump onto the higher energy level some say that it can jump if the energy exceeds the $\Delta E.$ What I really could not find is what happens with the extra amount of energy or maybe electron can be on $E_2$ energy level with slightly more/less energy.  Eventually I want to understand the concept of the reflection. How we see the objects, why they are transparent or glossy or red or whatever else. But this is out of scope of my question.  I'm not an expert though; so mark done the mistakes above if there are any.


I received legal documents pertaining to hiring in which every use of the word 'hire' was proceded by the indefinite article 'an'. Example:     An hire takes place once...   Is this correct or acceptabel usage of 'an'. If so can you explain when it is correct and why?


I am doing research for three different questions and I am going to present one single thesis statement for each question. Would I refer to all three statements as 'thesis statements' or as 'theses statements'?  Intuitively, I would choose the latter as both the total number of statements and questions are plural. Which one is correct though?


How to handle lecturer who doesn't let me use my phone?

Inspired by another question where a user asks how to handle students with a phone, my question is from the opposite perspective: what is the correct response when a lecturer asks one to put away the phone?   This actually recently happened to me (a few months ago), and for obvious reasons (not wanting to interrupt the flow of the lecture, not wanting to have a falling out with the professor, etc), I just put my phone down.   But to be honest, I don't think that's the correct response, or at least I feel this is not the way it should be, because I find such demands inappropriate for a number of reasons, and so I shouldn't be giving in to them, should I?    My reasoning:  First of all, and this may sound immature, but what I do with my phone is none of the lecturer's business. As long as I am not disturbing anybody (audio is always off, I am never typing loudly because it's a touch-screen, and nobody is distracted by the screen because I make sure to sit in the back), it shouldn't be a problem.   Secondly, I find that such demands can impede my learning. I often use the phone to look up information related to what the lecturer is actually talking about. If a topic is mentioned that I don't quite recall, a quick google search or a 10-second glance at the topic's Wikipedia page brings me up to speed. Or perhaps the textbook for the course is on my cloud server and I need to the phone to actually access the book, if I didn't bring (or even buy) the physical copy.   Finally, I find it highly disrespectful to call a student out for being on a phone in the middle of a lecture in front of all others. Such conversations, if they need to be had, should be had in private. Approach me after the lecture or during the break if you have a problem. Don't call me out in front of the entire class.


On the proof that, if $(xy)^2=(yx)^2$ for all $x$ and $y$ in a group, then $xy^2=y^2x$ for all $x$ and $y$

Let G be a group and $(xy)^2=(yx)^2$ for all $x, y ∈ G$. Show that $xy^2=y^2x$ for all $x, y ∈ G$.   I understand the solution for this question but I have seen some people solve it in this way:  Choose $y = x^{-1}y$ and substitute in for $y$  $$xx^{−1}yxx^{−1}y=x^{−1}yxx^{−1}yx⟹y^2=x^{−1}y^2x⟹xy^2=y^2x$$  My issue with this solution is that we're assuming under multiplication closure for any arbitrary element $y ∈ G$, we have $y = x^{-1}y$ for all $x ∈ G$. This seems incorrect. Can anyone explain why I may be wrong about this?


If a function $f(x)$ is Riemann integrable on $[a,b]$, is $f(x)$ bounded on $[a,b]$?

Most statements regarding Riemann integrals (at least the ones that I have encountered) begin with the statement "for $f(x)$ bounded on $[a,b]$." I am wondering if Riemann integrability implies boundedness. I think that this has to be the case, but I am not sure. If Riemann integrability does imply boundedness, are improper integrals considered Riemann integrals? I would think that improper integrals wouldn't be Riemann integrals since improper integrals are allowed to be equal to $+\infty$ or $-\infty$. Or are improper integrals that are not equal to $\infty$ considered Riemann integrals?   I am confused.


I would like to work on a project for Fake News Detection especially for Indians news which are in different languages and different formats.   Fake news as image with no or very less text Fake news on a blog site Fake news as Tweets Fake news in Hindi Fake news in the watsapp group and shared across.   Need your help on the approach. One approach I can think of is using OCR we can read the content of the post, then search those content in the google. If the news is not present in any of the famous print media then we can tag it as fake. However there can be many challenges in this. What if the print media itself gives any fake news shared by someone.  How to handle the scenario where there is no text in the image but the information shown as image is fake.  How to handle posts written in Hindi. ?  And even if we detect fake news, is there any way to make the person accountable for sharing it. ? I know it is little difficult problem to solve. But is there any work currently done by any company on this. ?  Any starting point for me to get into this domain ?


I included a few tall images in a  I asked on space.se. I thought they would scale to something appropriate, but as they are very tall images, it really didn't. For your information, here is one of them posted here. Can you set a reasonable max height in the CSS for images?


I want to put individual JComboBoxes into each cells of a JTable. ie. The JComboBox content is not identical for each cell.   I basically would like to be able to just call the following code to add a row of JComboBox into the JTable. Anyone has any idea? Thanks  JComboBox cb1 = new JComboBox(...); JComboBox cb2 = new JComboBox(...); model.addRow(new Object[] {"Row name", cb1, cb2} );  JComboBox cb3 = new JComboBox(...); JComboBox cb4 = new JComboBox(...); model.addRow(new Object[] {"Row name 2", cb3, cb4} );   The closest example code I can find is as follows. But it is for where JComboBox content is identical for the individual column. Not the solution I need.  TableColumn col = table.getColumnModel().getColumn(vColIndex); col.setCellEditor(new MyComboBoxEditor(values));   where  public class MyComboBoxEditor extends DefaultCellEditor {     public MyComboBoxEditor(String[] items) {         super(new JComboBox(items));     } }


Name change with Indian Tourist Visa on old Passport

I have an old U.S. passport in my maiden name and valid Indian tourist visa.  I have now new U.S. passport with my new name.  Can I travel with both passports and name change certificate and be okay? or do I have to obtain a transfer of visa?


What is wrong with “echo $(stuff)” or “echo `stuff`”?

I used one of the following  echo $(stuff) echo `stuff`   (where stuff is e.g. pwd or date or something more complicated).  Then I was told this syntax is wrong, a bad practice, non-elegant, excessive, redundant, overly complicated, a cargo cult programming, noobish, naive etc.  But the command does work, so what exactly is wrong with it?


What can category theory encode that set theory could not encode, if anything? (Fwd from Quora)

Interesting reply to  from Alex Sadovsky, Ph.D. Mathematics & Biomechanics, University of California, Irvine     Nothing. All of modern mathematics is described in the language of   . Every area of mathematics, whether   category theory, representation theory, functional analysis, or   algebraic geometry, is just a specialization. It does not introduce   anything that could not be described by set theory.      Category theory specializes in Morphisms.   Comments from readers here?


Get two letter country code in Apex method

I want to write an Apex method that takes a country name as input and returns the equivalent two letter country code (ISO A2). Is there a way to write it without explicitly hard coding all countries and code in the method?


I need to know how to install QGIS 2.0.1 for Windows 8 64 bit so it can recognize and open ESRI .gdb files.   What do i download and what settings do i change?   I have seen  but the information at this link was posted two years ago, and I am looking for an update.


Evaluate $\int_{0}^{\frac{\pi}{2}} \frac{\sin^2 nx}{\sin x} \text{d}x$

Evaluate $$ \int_{0}^{\frac{\pi}{2}} \frac{\sin^2 nx}{\sin x} \text{d}x$$   where $n\in\mathbb{N}$     I was able to do this using parametization (differentiation under integration) but I'm not allowed to use that in my school since it isn't in the syllabus :( I should only use high school level mathematics. However, I can't see a way to do this with an elementary approach.


To tell the name of a person I met in the past

I have a basic grammar question about the past tense. If I met a guy yesterday, which tense should I use about his name today?  For example,     "Yesterday I met a guy, his name is/was John."


Calling $P$ the set of prime numbers, Euler proved that $$\sum_{n=1}^{\infty}\frac 1{n^s}=\zeta (s)=\prod_{p\in P} \frac 1{1-\frac 1{p^s}}$$ At University my professor proved that in this way:   First we can see $$\frac 1{1-\frac 1{p^s}}=\sum_{k=0}^{\infty}  \left(\frac 1{p^s}\right)^k=\sum_{k=0}^{\infty}\frac 1{p^{ks}}$$ Then $$\prod_{p\in P} \frac 1{1-\frac 1{p^s}}= \prod_{p\in P} \sum_{k=0}^{\infty}\frac 1{p^{ks}}$$ So we see that when we calculate the product of the sums we obtain a sum of reciprocal of $s$-th powers of natural numbers, and for all $s$-th power of a natural number then it’s reciprocal is in the sum... so we conclude thesis.   This demonstration is surely clear but it appears to me a bit “informal” at the moment of the conclusions... Does anyone know a different demonstration of this Identity?


Three Tables side by side with different caption

I would like to draw three tables side by side with three different captions. My tables are below  \documentclass[11pt,a4]{article} \begin{document} \begin{table}[!t] \renewcommand{\arraystretch}{1} \caption{Common Differentially Expressed and Non Differentially Expressed genes by } \label{table:6} \centering \begin{tabular}{|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline { Method} & { \centering  Differentially Expressed Genes} & {Non differentially Expressed Genes}  \\ \hline Fooooo and AW    & 14923 & 4715   \\ \hline  Fooooo and Fiiiiis  & 14923 & 4715   \\ \hline Fooooo and Fiiiiis  & 12700 & 4720  \\ \hline Fooooo and Fiiiiis & 15179 & 3624 \\ \hline Fooooo and Fiiiiis  & 14904 & 4711  \\ \hline Fooooo and Fiiiiis  & 14904 & 4711  \\ \hline Fooooo and Fiiiiis  & 12682 & 4716  \\ \hline Fooooo and Fiiiiis  & 15159 & 3623 \\ \hline \end{tabular} \end{table}   \begin{table}[!t] \renewcommand{\arraystretch}{1} \caption{Common Differentially Expressed and Non Differentially Expressed genes by } \label{table:7} \centering \begin{tabular}{|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline { Method} & { \centering  Differentially Expressed Genes} & {Non differentially Expressed Genes}  \\ \hline Fooooo and AW    & 15546 & 3889   \\ \hline Fooooo and Fiiiiis   & 15546 & 3889   \\ \hline Fooooo and miiii  & 13296 & 4307  \\ \hline Forgery and minP & 15554 & 1977 \\ \hline Haaaaa and Fffffff  & 15538 & 4071  \\ \hline Haaaaa  and ffffff  & 15538 & 4071  \\ \hline haaaaaaa  and tttt  & 13296 & 4307  \\ \hline haaaaaaa  and ssssss  & 15554 & 1977 \\ \hline \end{tabular} \end{table}   \begin{table}[!t] \renewcommand{\arraystretch}{1} \caption{Common Differentially Expressed and Non Differentially Expressed genes } \label{table:8} \centering \begin{tabular}{|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline { Method} & { \centering  Differentially Expressed Genes} & {Non differentially Expressed Genes}  \\ \hline aaa and BBB  & 10193 & 2060   \\ \hline BBBBB and CCCCC  & 10193 & 2060   \\ \hline CCCCC and DDDDD & 10193 & 360 \\ \hline EEEE and FFFF  & 10177 & 2059  \\ \hline GGG and HHHHH & 10177 & 2059  \\ \hline IIIIIIIII nd JJJJJJ  & 10177 & 360  \\ \hline \end{tabular} \end{table} \end{document}


I pray to kindly show the intuition behind the concept of rough path. Google provided  some links that deal with the notion  of rough path but was difficult for me to  have an idea.