My brother in law arrived in the USA as LA tourist and his visa expires in mid-August.  Currently, the Trinidad airport remains closed with no opening dates set. Does he fall under any exemption or does he still have to file for an extension? If so does he have to pay the fee?


How to split a string with any whitespace chars as delimiters

What regex pattern would need I to pass to  java.lang.String.split()  to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters?


Expected value $\frac{1}{x+1}$ of Poisson distribution

If the random variable $X$ has a Poisson distribution with mean $\lambda$, derive an expression for the expected value $\frac{1}{X+1}$   My attempt,  \begin{align*} \mathbb{E}\left[\frac{1}{X+1}\right] &=\sum_{x=0}^{\infty}\frac{1}{x+1}P(X=x) \\ & =\sum_{x=0}^{\infty}\frac{1}{x+1}\frac{e^{-\lambda}\lambda^x}{x!}. \end{align*}  I don't know how to proceed anymore so I went to see the given solution,  the answer is $\frac{1-e^{-\lambda}}{\lambda}$.


\blacktriangle not showing if unicode-math included

Following example shows only the square and lozenge (XeTeX, Version 3.14159265-2.6-0.99998) the other three symbols being shown as spaces whereas if unicode-math is removed, the symbols are shown correctly. Is there a way to show the symbols correctly whilst using unicode-math?  \documentclass{article}  \usepackage{amssymb} \usepackage{unicode-math}  \begin{document} $$a\blacksquare \blacklozenge \blacktriangle \blacktriangledown \bigstar b$$ \end{document}


where is ns-2.35 and tcl8.5.8 directories in file system stored?

I used sudo apt-get install ns2 to install ns2. I want to know where are the above mentioned directories stored on my system?


I want an arrayed object to be upright throughout a tapered spiral

I want all of the objects to stay upright and un-distorted throughout the whole structure.  Also if you notice anything fucky with what I'm doing and have suggestions I'm all ears. I am new to this and need to learn the proper workflow the first time as to not spend a lot of time unlearning bad habits.  Thanks!    I have followed what you said and now I'm getting 180 degree rotation on the y axis.  Also there is only one object at the very top that has a random amount of rotation.


Image recognition between Improved vs Raw Land for city parcels from Aerial with QGIS?

Are there any tools or methods that allow QGIS analyze whether the lots/parcels have been untouched or developed, and return a "1" or "0" to a table or points layer or anything?  I was thinking more into simple shape recognition, like a driveway(2 parallel lines) or a rectangle (dwelling of sorts) or by colors: green/brownish(untouched), silver-ish (developed,) or by a differential of "most of area in one color" and a spot with a "different color". The lots-layer has an attribute table with areas, id, etc. and overlaid with Google Maps/Bing, etc. (see attached pic)


Special option for APT not to install via Snap

I just installed Ubuntu 20.04 and saw a problem while installing programs with apt. I am in a closed environment without internet but with a full copy of the Ubuntu Archives with apt-mirror.  When i want to install some programs "apt install" now uses snap to download these files..   Example:  apt update  apt install chromium-browser  Reference:   Is there a special switch or config to deactivate this feature? This would be really useful to me!


I have a generator and want to yield none after which I want the iteration of the generator to stop, i.e. StopIteration but I am not sure which way to accomplish this.   I think of the following to options:  yield None return   and  return   in my generator. Are they equivalent? Or which one should I use?


Whats the difference between Singh-Ray Vari-ND and cheap Fader-ND filters?

I think the Singh-Ray Vari-ND variable ND filter sounds great, but is really expensive.  There are way cheaper variable ND filters from some chinese sites.  I wonder: are the cheap ones worth the money? Is the vari-ND worth the premium you pay for it?  or: what's the difference between cheap knock-offs and the Singh-Ray?


Purely "algebraic" proof of Young's Inequality

states that if $a, b \geq 0$, $p, q > 0$, and $\frac{1}{p} + \frac{1}{q} = 1$, then $$ab\leq \frac{a^p}{p} + \frac{b^q}{q}$$ (with equality only when $a^p = b^q$).  Back when I was in my first course in real analysis, I was assigned this as homework, but I couldn't figure it out.  I kept trying to manipulate the expressions algebraically, and I couldn't get anywhere.  But every proof that I've seen since uses calculus in some way to prove this.  For example, a common proof is based on this  and integration.  The proof on Wikipedia uses the fact that $\log$ is concave, which I believe requires the analytic definition of the logarithm to prove (correct me if I'm wrong).  Can this be proven using just algebraic manipulations?  I know that that is a somewhat vague question, because "algebraic" is not well-defined, but I'm not sure how to make it more rigorous. But for example, the proof when $p = q = 2$ is something I would consider to be "purely algebraic":  $$0 \leq (a - b)^2 = a^2 + b^2 - 2ab,$$ so $$ab \leq \frac{a^2}{2} + \frac{b^2}{2}.$$


Intuitive explanation of the bias-variance tradeoff?

I am looking for an intuitive explanation of the bias-variance tradeoff, both in general and specifically in the context of linear regression.


Why are there two of the same program in my applications?

I updated my Joplin notes program and instead of replacing the old version, a new one (right) was installed. Why did this happen? How do I remove the old version?


When to pronounce ‹s› as /z/ in the middle of words?

When do you pronounce ‹s› as /z/ in the middle of words? Is there any rule? I also saw there are some differences in articulating medial s between American and British accents. I already know the rule for pronouncing plural s and es.  Is there any case where ‹c› is pronounced /z/?


How to create a itterative number 10digit long by taking a base number


So I see that this is actually a thing. There are several posts in forums that deal with this subject but none of the solutions that I've tried has worked.   Here is the thing. I have a Ubuntu 16.10 installed alongside Windows 10. There are two partitions that I envisioned as sort of transition rooms for file sharing among OSs. The thing is that I can't seem to make any changes to files on other partitions from Ubuntu.  Solutions that I've already tried:  sudo chmod -Rf 777 /media/user/partitionname sudo chown -R user:user /media/user/paritionname sudo chown -R user:user /dev/sda5 sudo chown user:user /dev/sda5 sudo chmod 777 /dev/sda5 sudo chmod 777 /media/user/partitionname   What I get is the following:  chown: changing ownership of '/media/user/partitionname': Read-only file system   Or something along those lines.   New folder and paste options are greyed out.  What I've already tried is changing every single permission option that I could find to read and change or read and modify.  Any help will be greatly appreciated!  PS: I would also appreciate a basic tutorial for solutions proposed :) I'm still learning! Thanks!


Does the number of hands on the Weasley clock ever change?

In The Burrow there is a clock with the members of the Weasley family on,it shows where the family members are at all times, if one of the Weasleys get married do their partners/any possible children get added to the clock.We know that there was originally 9 hands each representing each member of the Weasley family. Does this ever change for example when (SPOILER ALERT) Fred dies or when a new family member is born.


How to use HttpWebRequest (.NET) asynchronously?

How can I use HttpWebRequest (.NET, C#) asynchronously?


Cronjob unable to restart apache in CentOS 6

I'm using Plesk 12 + CentOS 6.  I ssh into root account and use crontab -e to create the following entry:  * * * * * service httpd restart  I expect it to restart apache every minute (just to test/debug it's working)  I checked the apache status using service httpd status and the PID is always the same, and apache is not restarting.  I verified /var/log/cron that the command is being executed.  Feb  7 16:11:01 srv104 CROND[15620]: (root) CMD (service httpd restart)  However, all other entries in the crontab are correctly executing.  If I execute the command service httpd restart manually in shell terminal, apache is restarting correctly with a new updated PID.  Is there any preventive measure in place such that service can't be executed in root cronjob?     has some useful tips, but does not address my specific situation mentioned in the original question above.  Working Solution:  If I specify the full path to the /sbin/service, eg. /sbin/service httpd restart in the cronjob, as mentioned in the accepted answer, it does work.  Not sure if it's operating system version related, but simply with the PATH in place in /etc/crontab/ does not help in my situation.


Intuitive understanding of Extreme Learning Machine

I have read the description of the ELM in , but a lot of it goes over my head.   What is a less mathematical, more intuitive understanding of ELM?


merging partition with ubuntu partition gparted

Can someone please help me in merging sda4 with sda8(ubuntu).


How to get hardware specs of Android device?

How can I find information on the hardware of my Android device like processor architecture, RAM, etc?


Help! The help centre is full of nonsense!

All the help centre pages seem to be broken.    looks like this:    looks like this:    It's also  on  sites, but always nonsense.   What gives? Did April Fool's come early?


Using AutoMerge Editing - things aren't merging, what isn't right?

I have checked the AutoMerge Editing box in the Mesh menu, and dragged faces so they are as closely lined up as I can make them, and clicked Remove Doubles in order to adjust the merge distance to wider. Still I can almost never get things to merge. Is there something I'm missing?


Difference between private properties and private fields

Say you have a class test:  public class test {     public test()     {         isTesting = false;     }      private bool isTesting;      public bool getTesting() { return isTesting; }     private void setTesting(bool testing) { isTesting = testing; } }   and another one:  public class test {     public test()     {         isTesting = false;     }      public bool isTesting { private set; get; } }   Is there any difference between these two?  Should one be used over the other or is this a matter of preference?


What are the differences between vim.basic and vim.tiny?

My favorite editor is Vim, so I decided to change the default editor of my ubuntu installation with the following command:  sudo update-alternatives --config editor   A prompt (with listed options) came up asking for an editor, but I noticed that it listed two flavors of Vim:   /usr/bin/vim.basic /usr/bin/vim.tiny   What is the difference between the basic and tiny options?


I am looking at some of my older code and I can see this, which really confuses me. Code is simplified and located inside a function (object).  $('#element') .on('mousedown', function(e){          var mouseX = e.pageX;          $('body').on('mousemove', function(e){             mouseX = e.pageX;         });          timer = setInterval(function(){             console.log(mouseX);         }, 100); }) .on('mouseup mouseleave', function(){     $('body').off('mousemove'); });   I needed that mouseX to be up do date when every interval fired, so back then, when my programming understanding was a bit sketchy, I simply thought, great, let's update that variable inside another event (mousemove).  Now looking at it I think - how does that local variable get updated in another scope, that is created independently and furthermore is then successfully used in completely different (interval) scope, that is also created independently?!  The code works(mouseX is correct), and it is not creating a "member" variable in parent function/object.  Can someone enlighten me a bit please.


How can i make a 3.3v ouput from 9v battery?

I'm a newbie in embeded system and basic electronics ,Yesterday i purchased a esp8266 wifi module from amazon along with ftdi usb driver i'm also have an Arduino uno, esp8266 require 3.3 v . Arduino and ftdi driver has a 3.3v pin but the tutorial i watched suggest that not connect esp with arduino or ftdi ,so how can i start working with esp from a 9v battery?


What type of SSL certificate I need to create CA?

I've a task to create Certificate Authority for company use. Preferably using "valid" ( not self-signed) certificate. The goal is to issue individual certificates for subdomains, instead of wildcard, plus sub-subdomains, not covered by wildcard cert, users, services, etc.   All this may be limited to a single domain only.  As I understand I need valid certificate which has certain capabilities in it like this  Key Cert Sign, CRL Sign.  Is that true and can someone point me to the documentation and SSL provider who can sell me that kind of certificate ?  Thanks.  UPDATE: Thanks for the comments: I may need to rephrase my question then, what is needed to issue publicly valid certificates for services and users ?  There are some sites issuing user certificates, like this . But I don't want to rely on public and free services for company use and would rather use something constant and reliable.


How data are prepared during training, testing and in production?

Most of real world datasets have features with missing values. Replacing missing values with an appropriate value such as its mean, is considered as a good step in feature engineering. Some times we also standardize/normalize feature columns before feeding it to train an model. Before modelling  we also split our dataset to training and testing sets. My first query is how do we do feature engineering in this splitted dataset? Do we use a global mean of the unsplitted features  to replace the missing value of those features in both training and testing set or should we use local means of those sets? Like the above question how do we do normalization to a train, test dataset? The last but an important question, in productions we mostly get feature values one at a time (think a row of features), how do we feature engineer such data rows?


So, some minor spoilers below to Star Wars episodes 3 and 5, though I really don't think anyone should not know about this.   Anyway, I got to reading  about why Anakin thought he could save Padme when she was so close to giving birth, and the (currently) top-voted answer raised even more questions about how long Padme had actually been pregnant when she died. Either Lucas didn't give her enough of a belly or her newborns were much too old when they came out. From this, I began wondering why Padme hadn't been visibly pregnant at the start of Episode III, since as far as I could tell the movie took place over at most a few weeks.   So that got me wondering, is there anything in the EU (either still canon or canon until Disney took over) about when Anakin and Padme 'did the deed'? And, from this event, could it be estimated how far along Padme was in her pregnancy when she gave birth?


Problem :  Let $ABCD$ be a convex quadrilateral sides : $a,b,c,d$ and $e,f$ sides of diagonal :  Prove that :      $$16S^{2}+\left(a^{2}+c^{2}-b^{2}-d^{2}\right)^{2}=4e^{2}f^{2}$$    Where :  $[ABCD]=S$ area   I don't know how I starte in this problem ?  I'm thinking use $\operatorname{altitude}$


''Linear'' transformations between vector spaces over different fields .

Let $\mathbf{V}(\mathbb{K}_1,V),$ and $\mathbf{W}(\mathbb{K}_2,W)$ two vector spaces over different fields ( as an example: $\mathbb{K}_1=\mathbb{C}$ and $\mathbb{K}_2=\mathbb{R}$).  We can generalize the notion of  a linear transformation $T:\mathbf{V}\to\mathbf{W}$ for such two space?  My idea is that we have no problems for additivity: $$ T(\mathbf{x}+\mathbf{y})=T(\mathbf{x})+ T (\mathbf{y}) $$ but we have some truble with homogeneity since for $T(\alpha \mathbf{x})$ we cannot define $\alpha T(\mathbf{x})$.  It seems that we must have some function $\lambda :\mathbb{K}_1 \to \mathbb{K}_2 $ so that we can write something as $$ T(\alpha \mathbf{x})=\lambda(\alpha)T(\mathbf{x}) $$   but there is some ''natural'' definition of such function $\lambda$ that preserve the intuitive meaning of linearity?


I have a relatively old pc (5 years old) running on vista.  I got fed-up with vista and I am not quite convinced with windows 8. I seriously considering to switch to Ubuntu. Being quite new to the Linux/Ubuntu world I am not sure which is the best release for me. Shall I go to the latest release (the 13.10)? or shall I go for the latest LTS (the 12.04) release or something in between? Is it painful later on to upgrade your Ubuntu system? Please let me know your recommendations.  From System Requirements there should be no problem. My pc seems to have the suggested requirements for all the latest releases.  Thanks for your help.


so in my constructor it has two objects as parameters and they are being assigned to variables. Do I need to check if they are null?


Why are identical objects from snapshot.before and snapshot.after, not equal?

I have a cloud function to increment a counter, only if certain fields change within the snapshot ('exercises' in this case).  In my cloud function, I have this check that always fires for some reason:  const before = snapshot.before.data(); const after = snapshot.after.data();      if (before['exercises'] !== after['exercises']) {    console.log(before['exercises']);    console.log(after['exercises']);    // Increment the counter... }   And the log statements are identical:  [ { exerciseId: '-LZ7UD7VR7ydveVxqzjb',     title: 'Barbell Bench Press' } ] // List of exercise objects  [ { exerciseId: '-LZ7UD7VR7ydveVxqzjb',     title: 'Barbell Bench Press' } ] // Same list of exercise objects   What can I do to ensure that these values within the snapshot get treated as equal?  Thank you.


find a substring in a string then extract everything after that word including the word found

I have a string: s = "expected exit code none[one] front back rear x y z"  I want to find [one] and capture everything after that including [one].  The output should be my_str = "[one] front back rear x y z"  I tried: import re patt = re.compile(r"[one](.*)") f = re.search(patt, s) f.group(0)  Output: >>> "one] front back rear x y z" Can't figure out how to include the missing [.


How do I travel as dual citizen of the US and New Zealand?

I have lived in the US for many years. I renewed my New Zealand passport several years ago (born in NZ).  I have been told I must leave and enter the US on my US passport. I am going to NZ soon. What will happen if I show US Airlines my US passport but on arriving in NZ show my NZ passport?


What is the proper way to write the plural of a single letter? Or a word used as a word ('mention' usage)? (another apostrophe question)

When writing (a blog post, script, etc..) what is the proper way to indicate two or more instances of a single letter? For instance, in Monty Python's Bookshop Sketch:     C: I wonder if you might have a copy of "Rarnaby Budge"?      P: No, as I say, we're right out of Edmund Wells!      C: No, not Edmund Wells - Charles Dikkens.      P: (pause - eagerly) Charles Dickens??      C: Yes.      P: (excitedly) You mean "Barnaby Rudge"!      C: No, "Rarnaby Budge" by Charles Dikkens.  That's Dikkens with two Ks, the      well-known Dutch author.      P: (slight pause) No, well we don't have "Rarnaby Budge" by Charles Dikkens      with two Ks, the well-known Dutch author, and perhaps to save time I      should add that we don't have "Karnaby Fudge" by Darles Chickens, or      "Farmer of Sludge" by Marles Pickens, or even "Stickwick Stapers" by Farles      Wickens with four M's and a silent Q!!!!!  Why don't you try W. H. Smith's?      C: Ah did, They sent me here.   I had always believed that plural never uses an apostrophe before the 's' (it's only used for possession), but I have rarely seen in written material the format "four Ms". (On a side note, whoever wrote  also used "two Ks".)  On a side note, and perhaps this should be a separate question, if a Compact Disc is a CD, then two Compact Discs would be two CDs right? (I see "CD's" written everywhere)


OV-chipkaart or GVB day pass for within Amsterdam travel?

I have read  and  and  but I am still a bit confused as to which kind of card I need.  I'll be coming to Amsterdam for 4 days (only Amsterdam) and need to move about the city to go from my hotel to the conference location.  As per  from the airport to Amsterdam central, I can get a 4 EUR ticket for the train:     An addition about the train tickets: you can indeed still buy paper   tickets. The price for a ticket from Schiphol to Amsterdam CS is €4.   However within the city if I am to use the tram or bus, do I need to buy the ov-chipkaart or the GVB day pass?


Strange light when shooting long exposure

I've been experimenting with some photography for a few months now and I noticed that this happens on pictures with lower shutter speeds:     What is this, why does it happen and what can I do to prevent it/fix it? It has affected some pictures I think are pretty good otherwise. Pictures were taken with a Nikon D3300 and a Tamron 18-200mm f/3.5-6.3 Di II VC on a tripod. Shutter speeds of about 30 seconds.


If $a_n=\left(1-\frac{1}{\sqrt{2}}\right)\ldots\left(1-\frac{1}{\sqrt{n+1}}\right)$ then $\lim_{n\to\infty}a_n=?$

I have an objective type question:- If $$a_n=\left(1-\frac{1}{\sqrt{2}}\right)\ldots\left(1-\frac{1}{\sqrt{n+1}}\right)$$ then $\lim_{n\to\infty}a_n=?$:- A)$0$ B)limit does not exist C)$\frac{1}{\sqrt\pi}$ D)1 My approach :-As the product contains $1/\sqrt2$ so the overall product would be irrational,and as product is converging also so by option elimination answer would be $$C) \frac{1}{\sqrt \pi}$$,as it is the only irrational number in options. Now i want to ask is that is my solution right? If it is right then what is the proper method to actually solve the question? but if it is wrong then what is the right solution? Suddenly a doubt is also arising that whether 0 is an irrational number?


JSLink for Modal Pop-up calculated column not working (SPO)

I have an html-enabled calculated column that I wanted to transfer to JS Link. The calculated column contains an icon, that when clicked, opens an edit form in a modal box. How do I structure this in JS link?  Here are the details:   Internal Field Name: "AA01_OpenEditForm" Column Display Name: "Update"   Below is the Calculated/Number Column:  ""&""


How to go from Maine to Canada by bus without going though Boston?

Any ideas on how to go from Maine to Canada by bus without going south through Boston?


I have a button declared in XAML which has MouseDown and MouseUp attributes that both call a specified method...  <Button x:Name="btnBackward" Content="Backward"         MouseDown="btnBackward_MouseDown"          MouseUp="btnBackward_MouseReleased" Width="50" Height="25"          Margin="65,400,377,45"/>   However, the method btnBackward_MouseReleased is never called.  private void btnBackward_MouseReleased(object sender,                                         System.Windows.Input.MouseEventArgs e) {     Console.WriteLine("mousereleased");     this.isRewinding = false; }   What am-I missing ?


How to remove the ".svc" extension in RESTful WCF service?

In my knowledge, the RESTful WCF still has ".svc" in its URL.  For example, if the service interface is like  [OperationContract] [WebGet(UriTemplate = "/Value/{value}")] string GetDataStr(string value);   The access URI is like "". In my understanding, part of REST advantage is that it can hide the implementation details. A RESTful URI like "" can be implemented by any RESTful framework, but a "" exposes its implementation is WCF.  How can I remove this ".svc" host in the access URI?


"Questions like this" or "questions like these"

On a  to one of my other questions on this site, a user said:     It’s much easier to answer questions like this when you specify where   you've come across the word.   Is the use of the word this correct in such case?  I would be inclined to say “questions like these”, or if I wanted to use the singular form I would rephrase it as “a question like this”.


How to make my own Dropbox / Ubuntu One server at home?

Does anybody know of any resources that can show me how to make my own "Dropbox, Ubuntu One" server at home?  I really like the idea of these services, but I don't want to put my 'stuff' in the clouds. Ideally, it should have a client that runs on Linux and Windows.  I tried to setup iFolder on my Ubuntu 10.04, but without any success so far.


I noticed that some float variables are being shown wrong in Visual Studio 2017 debugger, although the internal value is right, that is, it is only wrong in the debug view.  For example:  obj_carro.vel1000rpm.push_back(stof(parte[2].substr(0, pos)));  cout << stof(parte[2].substr(0, pos)) << endl; cout << obj_carro.vel1000rpm[obj_carro.vel1000rpm.size() - 1]  << endl;   It shows the correct value:  9.9 9.9   But VS 2017 debugger shows:  9.89999962  float   What is wrong? How to solve this?  Update: the cout output rounds to 6 decimal places after the point. This should be an answer, but the question is on hold...


How can I install Ubuntu alongside Android Gingerbread on my Droid X2 so that on boot it asks which OS to boot to?


Elliptic Curve and Divisor Example help (Step 2)

I have an elliptic curve $E$ over $\mathbb{F}_{11}$ defined by $y^2=x^3+4x$ with the point at infinity $\mathcal{O}$  I have a divisor of $E$, defined by $$D=\left[(0,0)\right]+\left[(2,4)\right]+\left[(4,5)\right]+\left[(6,3)\right]-4\left[\mathcal{O}\right]$$  As $\text{deg}(D)=0$ and $\text{sum}(D)=\infty$ then $D$ is the divisor of a function - we want to find this function  I am given the following: \begin{align}\text{div}(y-2x)&=\left[(0,0)\right]+2\left[(2,4)\right]-3\left[\mathcal{O}\right]\\ \text{div}(x-2)&=\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right] \end{align}  I have already found (in ) that $$D = \left[(2,-4)\right]+\text{div}\left(\frac{y-2x}{x-2}\right)+\left[(4,5)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]$$  I am then told that we can write   $$[(4,5)]+[(6,3)]=[(2,4)]+[\mathcal{O}]+\text{div}\left(\frac{y+x+2}{x-2}\right)$$  And thus write $$D=[(2,-4)]+\text{div}\left(\frac{y-2x}{x-2}\right)+[(2,4)]+\text{div}\left(\frac{y+x+2}{x-2}\right)-2[\mathcal{O}]$$  However I am struggling to see how we can find the value of $$\text{div}\left(\frac{y+x+2}{x-2}\right)$$ from what we already know  I can find that \begin{align}\left[(4,5)\right]+\left[(6,3)\right] &=\left[(2,4)\right]+\left[\mathcal{O}\right]+\text{div}\left(\frac{y+x+2}{x-2}\right)\\ &=\left[(2,4)\right]+\left[\mathcal{O}\right]+\text{div}(y+x+2)-\text{div}(x-2)\\ &=\left[(2,4)\right]+\left[\mathcal{O}\right]+\text{div}(y+x+2)-\left(\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right]\right)\\ &=\text{div}(y+x+2)-\left[(2,-4)\right]+3\left[\mathcal{O}\right]\\ &\Downarrow\\ \text{div}(y+x+2)&=\left[(4,5)\right]+\left[(6,3)\right]-\left[(2,-4)\right]-3\left[\mathcal{O}\right] \end{align}  but how can I justify this from only knowing \begin{align}\text{div}(y-2x)&=\left[(0,0)\right]+2\left[(2,4)\right]-3\left[\mathcal{O}\right]\\ \text{div}(x-2)&=\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right] \end{align}    This question comes in 3 parts:   Step 1 -  Step 2 - This one Step 3 -


What is the difference between g++ and gcc?  Which one of them should be used for general c++ development?


Is there a standard as to how many meters or feet if a GPS number (latitude and longitude) is off by a tiny amount, such as 0.0001?

For example, if the latitude and longitude is  25.1054, 121.5973   then what if it is off by a small amount, such as 0.0001:  25.1055, 121.5974   Then can it readily tell how many feet or meters it is off by?


Why is Normal Distribution required to perform an independent t-test?

I've been told many times that, when carrying an independent t-test, I have to determine whether my dependent variable (DP) is normally distributed on boths levels of my independent variable (IV).  On the other hand, I know that the independent t-test (and many other statistic test) is based on the General Linear Model (GLM):  Y = b0 + b1*X + e   Where Y is my DV (continuous) and X my IV (coded for example has -1 and +1). As far as I know, the GLM requires, among other things, that the errors are normally distributed. It doesn't say anything about the distribution of the IV or DV.  If my assumptions are correct, then why are we asked to check if our variables are normally distributed?  Also, assume I have a large sample.


Characteristic function of uniform random variable

I am trying to find out expectation of a function of a uniform random variable. I am given a random variable $x$ that is uniformly distributed over the interval $[0, a]$. I want to find out the expectation $E[e^{-i2\pi (m-n)\frac{x}{a}}]$, where $m$, $n$ are integers and $i=\sqrt{-1}$.  I saw derivation at a few places, and it looks like that the expectation evaluates to $\delta_{km}$. It is not clear to me how this derivation is carried out. When I look at the expectation, it appears I am trying to calculate the characteristic function of a uniform random variable. This function is not a delta function. So what am I missing here?


What should I do when I'm asking a question that needs a new tag, but I don't have enough rep?

Today, I asked my first question on WebApps.SE: . (I'm fairly active on other SE sites.) My question was about a web app that didn't have a tag created for it yet, and since I don't have 300 rep on the site, I wasn't able to create the appropriate tags. Looking over the list of tags already on the site, none of them looked like they would have been appropriate for my question.  What is the right course of action in this situation?


I am trying to replace a string from shell. I have already read the string and it's in template variable. Now I am trying to replace the companyId which store in REPLACE_COMPANY variable  with the parameter passed in shell. I have tried few solution from net but didn't succeeded. Also I want to keep the file format intact as with replace I found all string comes into one line. Can anyone help.  REPLACE_COMPANY="companyId"  echo "$template"  ##### Company: companyId CONFIG  START #####  backend FE:spaces-companyId         redirect scheme https if !{ ssl_fc }         balance roundrobin         server 1-www spacesIp:80 check cookie s2  backend BE:synapse-companyId          redirect scheme https if !{ ssl_fc }          balance roundrobin          server 1-www synapseIp:8008 check cookie s2  ##### Company: companyId CONFIG  END #####


How do I efficiently iterate over each entry in a Java Map?

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


What is the explanation for the flatness of some galaxies?   (If it's due to their rotation then why they are rotating, why some other galaxies are not flat etc., I would like to hear a nice and complete answer :) )


It tells me to try to run apt-get -f install.  The error says "Unmet dependencies. Try using -f."  When I try sudo apt-get -f install I get an error that says  dpkg-deb: error: subprocess paste was killed by signal (Broken Pipe)  Errors were encountered while processing /var/cache/apt/archives/linux-image-3.16.0-70-generic_3.16.--70.90~14.04.1_i386.deb /var/cache/apt/archives/linux-image-3.16.0-67-generic_3.16.0-67.87~14.04.1_i.386.deb  E: Sub-process /usr/bin/dpkg returned an error code(1)


How to find out whether two "Events" overlap using "Start" and "End" datetime objects. Python

I am using the Google calendar API with Python, in order to compile events on a given day, to see how much time I spend on certain events per day/week etc.  I was originally just subtracting the End time from the Start time to achieve a Duration, and then adding all event Duration on a given day.  The thing is, sometimes I overlap events, for example Lunch and Reading might overlap and then cause the program to believe I've magically spent an extra 30 minutes in a day.  The google API gives (as can be seen ) the following values amongst others:    "start": {     "date": date,     "dateTime": datetime,     "timeZone": string   },   "end": {     "date": date,     "dateTime": datetime,     "timeZone": string   So if I have a long list of Event objects, that all have a Start and End time, what would be a good way of checking that there are Event overlaps?


I'm having some trouble converting a value from double to int. After my conversion of the number with value of 1 and 2 in the tenth position, the value being converted is actually deducted by one. Can someone help me fix this problem? #include <iostream> #include <cstring> #include <cmath>  typedef char* BookName;  using namespace std;  class DecimalBookInfo {     public:         DecimalBookInfo(char inName[], double number);      private:         BookName name;         double code;         bool verifyCode(double number);  };  int main() {     char name[] = "TestBook";     DecimalBookInfo testBook(name, 230.1); }  DecimalBookInfo::DecimalBookInfo(char inName[], double number) {     // initiate new cstring     name = new char[strlen(inName)];     strcpy(name, inName);          if (verifyCode(number))         code = number;     else     {         cout << "Wrong code...\n";         exit(1);     } }  bool DecimalBookInfo::verifyCode(double number) {     double areaCode = floor(number);     cout << areaCode << endl;     double subCode = ((number - areaCode) * 100.0);      cout << static_cast<int>(subCode) << endl;      if (areaCode > 999 || areaCode < 100 ||      ((subCode - 10) != 0))     {         return false;     }      return true; }  The result is: 230 9 Wrong code... so I'm not sure why this is so. The number after 230 is supposed to be 10. Thank you


Let $x_0=0$. Define $x_{n+1}=\cos x_n$ for every $n\ge 0$

Let $x_0=0$. Define $x_{n+1}=\cos x_n$ for every $n\ge0$. Then  A) $\{x_n\}$ is increasing and convergent  B) $\{x_n\}$ is decreasing and convergent  C) $\{x_n\}$ is convergent and $x_{2n}\lt\lim_{m\to\infty} x_m\lt x_{2n+1} $ for every $n\in\Bbb N$  D) $\{x_n\}$ is not convergent  Attempt: $x_0=0,x_1=1$, and $0\le x_n\le1$ for $n\gt 1$   So this sequence is non constant and bounded, Hence convergent  But, I am unable to pick the right option.


"Recommend you to" vs. "recommend that you"

I recommend you to define those parameters beforehand.   I recommend that you define those parameters beforehand.   Are both sentences grammatically correct? If yes, do they mean the same thing? If yes, which one should I use?


Why does reduced mass help when talking about two body problems?

I hear people say that , $\mu$, is used for two body problems, but what sort of problems? Is it so that the two body system can be treated as one body or is it to simplify calculations regarding how the two bodies act upon each other?  I can follow the derivation (which I shall go through shortly) in a mathematical sense but I can seem to be able to grasp the ideas behind why the steps were taken.  Derivation:  Step [1] - From Newton's laws of motion: $$F_{12}=-F_{21}$$ It follows that: $$m_1a_1=-m_2a_2$$ Step [2] - Simple rearrangement of the result from step 1 to make $a_1$ the subject (it seems a reasonable thing to do but I don't know why it's done). $$a_1=-\frac{m_2}{m_1}a_2$$ Step [3] - The relative acceleration, $a_{rel}$, can be found by subtracting the acceleration of one body from the other (I get how this is done and get that it would give the relative acceleration BUT I don't know why you would need the relative acceleration). $$a_{rel}=a_1-a_2=(1+\frac{m_1}{m_2})a_1=\frac{m_2+m_1}{m_1m_2}m_1a_1=\frac{m_2+m_1}{m_1m_2}F_{12}$$ Step [4] - According to Wikipedia the result from the last step can be used thus (I have no idea what's going on in this step): $$\frac{m_2+m_1}{m_1m_2}F_{12}=\frac{F_{12}}{\mu}$$ Thus: $$\mu=\frac{m_1m_2}{m_2+m_1}$$  Again, I can do the maths but my problem here is conceptual I believe. I have included the derivation in my question because I believe that it's possible that if you were able to shed some light on why particular steps were taken that this may help.


Whenever I launch Minecraft.exe on my computer, while the Minecraft launcher is loading, my computer starts to lag out.  The render rate on my entire computer slows down  .  This is participially noticeable with moving the mouse pointer or while watching videos while it is starting.  After the launcher has loaded, everything goes back to normal.  I log in and I can play the game fine.    I have tried uninstalling all Java installs and reinstalling only the latest Java 64bit with no luck    My computer, operating system install and Java install are all 64bit.  My system specs are as follows:   Operating System         MS Windows 7 Home Premium 64-bit SP1 CPU         AMD Phenom II X4 840    38 °C         Propus 45nm Technology RAM         8.00 GB Dual-Channel DDR3 @ 666MHz (9-9-9-24) Graphics         SyncMaster (1440x900@60Hz)         1023MB GeForce GTX 550 Ti (ASUStek Computer Inc)        39 °C    My Java installs are as follows:


Prove that in a Banach space every Cauchy net is convergent.  I have trouble to prove this, please help.Thanks  Edit:Let $A$ be a directed set and $\{f_{\alpha}\}_{\alpha\in A}$ is a net in $X$ topological space then $\{f_{\alpha}\}_{\alpha\in A}$  is cauchy net if $\forall \varepsilon>0$ there is $\alpha_0$ such that  $$\|f_{\alpha_1}-f_{\alpha_2}\|<\varepsilon \hspace{0.5cm} \forall \alpha_1,\alpha_2\geq\alpha_0$$


I'm having trouble opening Minecraft.jar because there is no java runtime in open with listed. Even though I have installed it. This seems to be the solution  But I don't understand how I'm supposed to make the file hes talking about. I right clicked in  /usr/share/applications/ but it didn't give me an option to make a file.   Thanks for any help.


Ubuntu 18.04 Live boot leads to blank screen

My system is booting from the USB drive the problem is that after booting it shows the menu to select an option. And on selecting any option it leads to a blank screen.  I am trying to boot Ubuntu 18.04 from a USB live stick. I waited for about half an hour too after selecting install Ubuntu option, but it's not working. I have Dell Vostro 3568 8GB RAM, i5 7gen with AMD Radeon. I have made the live USB from startup disk creator which is preinstalled in Ubuntu.


Generating a date in a particular timezone

I have a timezone string, for example, "Pacific Time (US & Canada)". I need to get the equivalent of 3pm in that timezone in UTC for particular dates, including daylight savings time. How can I go about this?  For example, I need to find 3pm on December 3rd, PDT in UTC time.


What is zero? Irrational or rational or it have both the properties?

We say,  A number is rational if it can be represented as $\frac{p}{q}$ with $p,q \in \mathbb Z$ and $q\neq 0$. Any number which doesn't fulfill the above conditions is irrational.  What about zero? It can be represented as a ratio of two integers as well as ratio of itself and an irrational number such that zero is not dividend in any case. People say that $0$ is rational because it is an integer. Which I find to be a lame reason. May be any strong reason is there. Can any one tell me please?


Reuse oversized hardtrail frame to build a commuter bike?

I have a spare hardtrail frame which is too big (20.5") for me (5'7") for riding trails. Would it make sense to build a commuter bike for me as road/touring bike frames are generally larger than MTB? Could it be comfortable to ride this frame on road? I like to lean forward on a bike and I'm a fast type of commuter.


return sub-lists contained in a list,fixed size

How could I get (in a very efficient python way), a group of sub-lists contained in another long list??, I explain with example:  Let's say I have this:  List = [[1,2,3],[4,5,6],[7,8,9],[2,4,3],......long list]   I would like to get an output grouping the sub-list in, let's say, in a groups of 7 sub-lists, then the output would be like:  L1 = [1,2,3] L2 = [4,5,6] L3 = [7,8,9] up to L7 then process those 7 lists separately and then start again.... L1 = [x,x,x] this L1 would be (obviously) the 8th sub-list in the big list "List" L2 = [x,x,x] this would be the 9th sub-list....and so on   I dont know if I should call it like this but, It would be like making "chunks" of 7 sub-lists.  Is it possible in a fast and efficient way?


Perturbing about the Renormalized Field Theory: What justifies perturbing if the counter-terms are large?

I have a very basic question about Renormalization in Quantum Field Theory. Consider the following passage (about $\phi^4$ theory) from Zee's  (from Chapter III.3):     Shouldn't we start out with a zeroth order theory already written in terms of the physical mass $m_{P}$ and physical coupling $\lambda_{P}$ that experimentalists actually measure, and perturb around that theory? Yes, indeed, and this way of calculating is known as renormalized or dressed perturbation theory, or as I prefer to call it, physical perturbation theory. We write   $$ \mathcal{L} = \tfrac{1}{2} (\partial \phi)^2 - \tfrac{1}{2}m_{P}^2 \phi^2 - \frac{\lambda_{P}}{4!}\phi^4 + A (\partial \phi)^2 + B \phi^2 + C \phi^4 \ . $$   The factors $A$, $B$, $C$ are calculated iteratively in perturbation theory and designed at each order to cancel out the divergences that occur in the loop computations.   My question is, if we perturb about the physical theory, what justifies the use of perturbation theory? I thought that perturbation theory is only justified when the corrections to the free theory are "small" $\to$ here this doesn't seem to be the case to me since the ``couplings'' $A$, $B$, $C$ don't seem to be small, as I understand it they are divergent quantities which are functions of the cutoff/regulator used  ($A$ and $C$ are dimensionless, so I think they are actually just large numbers - while $B$ has mass dimension 1 so I actually don't know what it means for $B$ to be small here).


How can an NPC communicate with the party over long distances?

In the current story, the PC's are chasing after a traitor from their kingdom. They are working with the Spymaster to chase him down and catch or kill him. The Spymaster is going to suggest a pincer move to stop the traitor from simply running away.  I need a way the Spymaster can keep in contact with the party over long distances (10s of miles at the least). Preferably instant but it doesn't have be two-way, just short messages to each other would be perfect.  Are there any spells or magical items in 5th Edition D&D that can do this?  Homebrew answers will be accepted if they have been play-tested.


Insert Statement for Form values sent via method="Post"

I am designing a page that will send data for a pet finding business's form to a database, but I am having trouble remembering how exactly to do that since its been a while and I haven't taken a formal PHP class yet.  I have stored all the values sent to the PHP file via the POST method in the form as well as ran them through mysqli_real_escape_string() before using them on this line.  my line for a query for PHP is  $save = "INSERT INTO requests (fName, lName, address, city, state, zip, pPhone, cPhone, email, pName, species, gender, spayedNeutered, temperament, howLost, comments) VALUES ($fName, $lName, $address, $city, $state, $zip, $pPhone, $cPhone, $email, $pName, $species, $gender, $spayedNeutered, $temperament, $howLost, $comments)";   Anybody see any issues this this line?


I applied for normal family visit visa for my mother and brother to visit me in UK from Pakistan. I am myself British citizen.  Their visa was rejected based on ECO's remarks about not being satisfied with my brother's financial situation.  I want to apply for their Visa again, but this time I want to use Sponsorship Undertaking SU07 form which means that I will be legally responsible for the travel arrangements. My question is can I send them Sponsorship Declaration form SU07 even though it is general family visit visa .I am not calling them on dependent Visa.  My second question is if I use this Declaration form, will they still have to  prove that they have means to support their travel even though when I am submitting the declaration form.


Let $t$ be a real number such that $t^2=at+b$ for some positive integers $a$ and $b$. Then for any choice of positive integers $a$ and $b$, $t^3$ is never equal to: (A). $4t+3$ (B). $8t+5$ (C). $10t+3$ (D). $6t+5$  We have $t^3 = at^2+bt$ and so for (A) we have $t^3 = 4t+3 = 4(at^2+bt)+3$. I don't see how to continue since this is a cubic equation. Is there an easier way of finding a contradiction?


Borrowing points from one Stack Exchange account for bounty on another?

I don't see an answer to this , so:  Can I borrow points from one Stack Exchange site for a bounty on another?  Specifically, I want to move some points from one of my other Stack Exchange accounts so that I can start a bounty on a question I posted at Super User, where I only have 38 points.


I am trying to calculate the final velocities of two equal mass 2-dimensional circles after an elastic collision. I have tried to figure it out using formulas I know from high school physics, but nothing seems to work. My known variables are:   initial x and y velocities for each circle x and y distances between the centres of the circles at the time of the collision   The variables I would like to solve for are:   final x and y velocities for each circle   Here are diagrams showing all the variables:


Proof that $\sum\limits_{n=1}^\infty\frac1{n2^n}=\ln2 $?

Using approximation with a spreadsheet, I see that:  $$\sum_{n=1}^\infty \frac{1}{n\ 2^n} = \ln 2$$  Is there a proof of this?


I have a sql server which being monitor by Nagios through snmp string. One day, i received some alert from nagios come with some sensitive information like:  Critical Alert: dbi connect (Server name: ABC, Encrypted Password: 1, User:  Sa.......)   How can i hide this ?


Any indication what Sauron would do with the One Ring if he possessed it again?

Sauron seems hell bent on getting back the One Ring.  Any word on what he planned to do with it?  The question linked as duplicate is about Sauron wearing the ring, which isn't really what I am going for.  Of course he's going to wear it.  Then what is he going to do with the ring?


Question edited: I'm working on an alternative to iframes because WP.org balks at them and tends to reject plugins that have them (I know this from experience)  So, here's the code I have to try to replace an iframe: add_action('wp_ajax_myAction', array($this, 'myAction_ajax_handler'));  public function myAction_ajax_handler() {    echo time();    wp_die(); }  When the admin page is displayed, I have this:    echo '';    echo '

';    ?>               <?php  It works. Here's my questions. Is this the proper way to do this? Is there a better way to do this instead of polling with setTimeout? Thanks!


Is it possible to log back into a Pokemon Go account?

So I had 20+ Pokemon on my account and today when I tapped on the app, it brought me back to the original screen when you first start playing. My friend who signed up tested using my username when she first started and my username was unavailable, meaning the account still exists. I don't have the password for the account, but I do have the email. So I wanted to know if it was possible to log back into an account?


Let $n$ be a positive integer. If $2+2\sqrt{28n^2+1}$ is an integer, then it is a perfect square.    My work: $2+2\sqrt{28n^2+1}=m \implies 4(28n^2+1)=m^2-4m+4 \implies m=2k$ $28n^2+1=k^2-2k+1 \implies 28n^2=k^2-2k \implies k=2q \implies 28n^2=4q^2-4q$ $7n^2=q^2-q \implies 7n^2=q(q-1)$ Now, we have $q$ and $q-1$ to be co-prime. Here, two cases arises. (i) $q=7x^2,q-1=y^2 \implies 7x^2-y^2=1$. This cannot occur because $y^2 \equiv 6 \mod7$  is not possible. (ii) $q=x^2,q-1=7y^2$. Now, what am I supposed to do? Please help.


Editing Year missing for community edited post

Editing Year missing to community edited post Edited Year Missing   But Tooltips Show Year  Generally Year Present


I searched for the answer but still unable to find why was Unity removed from 18.04. It seemed to be a descent UI, with all the related connectivity, and very well designed short-cuts.  Can someone please point me to why it was removed from 18.04. Somehow, I am not very accustomed to gnome, or rather I am very used to Unity now.  Thanks and Regards,  Abhay


Let $A$ be the complex $3 \times 3$ matrix  $$A = \begin{bmatrix} 2 & 0 & 0 \\ a & 2 & 0 \\ b & c & -1 \end{bmatrix}$$  Find all triples $(a,b,c)$ for which the characteristic and minimal polynomials of $A$ are different.


Where should I edit my Stack Exchange Profile and is it possible to inherit in all the other communities those profile settings?

I am wondering where I can edit my profile-information for Stack Exchange (it is not possible with the tiny link, saying 'Update profile info', which just provides a dropdown to import settings from other Stack Exchange accounts).  Furthermore I tried to delete my older account on, I guess, Stack Overflow, which then took 24h. But then I tried to sign up with a new account and it seems that I still got the old data (at least the picture from my previous account) in my profile, although I used a completely different Google account for signup.  So I'd like to at least change those profile settings now for the new account and kind of want to inherit it for the accounts in other Stack Exchange communities. Is that somehow feasible?


Why don't parameters retain their value outside of a function?

The following JS code behaves oddly:  var c = 0; var a = 0; myTest(8, 5);  function myTest(a,b) {     console.log(a);     a++;     c++;     console.log(a);     return a; }  console.log(a); console.log(c);     If I take the "a" parameter out of the function, "a" increments by 1 and the third console log returns "a" as 1. Totally normal. But if I keep the "a" as a parameter in myTest function (as in the code above), it gets a value of 8, increments by 1 to 9, and the third console log returns a zero.  What is the explanation for this weird behavior? I am sorry if this is explained in another thread; I am too new for JS to produce really good google queries or understand advanced answers.


How do we know quantum entanglement really happens?

Quantum entanglement says that we can entangle two particles with an opposite property, separate them, and that they exist in an indeterminate state until we observe one of them.  eg. If we create a left/right pair, separate them in space then observe one of the particles then the other particle of the pair will instantly resolve into the opposite state of the particle we observed.  Question: How do we know this is true? How do we know that something happened to the second particle as a result of observing the first?  A much simpler explanation is that both the particles flipped into fixed left/right states at the moment we started to separate them, we simply hadn't opened the containers yet to see which was which.  I assume that there can be no possible experiment to distinguish between these two explanations since we're not allowed to observe either particle.  What reason(s) do we have to believe the magical 'quantum' explanation when the simple explanation explains it just as well?


Unexpected behavior with shell script running a program in the background

Running echo "This is a test" | wc -w > num_words results in the contents of the file num_words being "4". This could also be accomplished with a shell script count_words_and_record.sh:  #!/bin/bash wc -w > num_words   Running echo "This is a test" | ./count_words_and_record.sh has the same outcome.  The trouble is, I am a terribly impatient person, and I want to get on to other tasks without waiting for the words to be counted. So I run echo "This is a test" | wc -w > num_words &, everything happens in the background, and I can run other commands immediately. Eventually, when the counting finishes, I get a message, and the contents of num_words is then "4". However, if I instead modify the script  #!/bin/bash wc -w > num_words &   and run echo "This is a test" | ./count_words_and_record.sh, then the contents of ``num_words'' is "0" instead of "4".  What's going on here? Is there a way to modify the script to get the correct behavior?


If I need to create a large format poster @ 120 dpi can the image on the poster be @ 120 dpi as well?

If I need to create a large format poster that's supposed to be printed at 120 dpi can the image on the poster have an effective DPI of 120 dpi as well?


What orthodox file manager for OS X could I use?

I'm looking for a graphical  fro OS X, for console Midnight Commander is ok.  I need two panels, function keys operations and preferably FTP and SCP support.  Also, it would be great to be free.


Let $A$ be a ring, and $Z(A)$ its center. Show that if $x^2-x \in Z(A)$ for every $x \in A$ then $A$ is commutative

I tried it going directly saying that if I have a $y \in A$, then $(x^2-x)y=y(x^2-x)$, but couldn't reach anything.  Then I tried by the absurd, but reached even less.


I needed to convert a database from SQL to MySQL and did so successfully, however, this question is more geared towards MySQL now.  I noticed that I'm able to insert DateTime strings into a Timestamp column type, and that's all fine and good, from what I hear about Timestamp accepting either DateTime or actual Timestamps, however, I'm curious about the "ON UPDATE CURRENT_TIMESTAMP" now since I have it on a column of the database, since it is only capable of being used on Timestamp types.  Would this use a timestamp that is not in the format:  YYYY-MM-DD HH:MM:SS when it updates based on CURRENT_TIMESTAMP?  How would this influence the data that I pull from this column exactly?  For Example, would it be difficult to get the current date/time from the TIMESTAMP column when some dates might be a numeric timestamp, while others might be in DATETIME format?  Should I just use DATETIME as the type for this column without the ON_UPDATE ability to avoid a problem with mixed data coming from the database here?


How to set favicon of window opened from window.open()?

This is not working when the window is opened using the window.open method.  <link rel="SHORTCUT ICON" href="@Url.Content("~/Contents/favicon.ico")"/>   On top of window


MAMP always grabbing focus when quitting an app in Mavericks

Upgraded from Lion to Mavericks and now when quitting any app, MAMP is always grabbing the focus instead of the previously opened app e.g. open MAMP, open Safari, open TextWrangler, quit TextWrangler, MAMP has focus instead of Safari. This was working fine in Lion. Anyone seeing similar behaviour or know how to fix it?


Take the following sample linear regression equation:  $$ \hat{y} = 20 + 50X $$  I understand how a change of units in X that consists of simple scalar multiplication would alter the regression equation. For example, if we suppose X is measured in millimeters and we change it to centimeters, then the equation would become:  $$\hat{y} = 20 + 500X$$  I do not understand how a linear transformation of $X$ that involves adding a constant would change the regression equation. For example, let us suppose that $X$ is measured in degrees Fahrenheit. How would changing to degrees Celsius change the equation? $C = \frac{5}{9}(F-32)$   Experimenting with R suggests that it would change both $\hat{\beta_0}$ and $\hat{\beta_1}$ but I do not understand how.


How to install Ubuntu as the single OS on a MacBook?

How do I install Ubuntu as the only OS on a MacBook?  That is, I'd like to completely remove Mac OS X and install Ubuntu. I've tried dual-booting, but I've had so much trouble that I prefer to have only Ubuntu installed.


If I have two "entangled" particles and I know the spin state of every one of them. Then, I change the spin state of one of the particles, will it affect the spin state of the other particle even if it is far away? Also, it turns out that entanglement is actually real and can be used for many things, is this just the result of a false interpretation and understanding of Quantum Mechanics by those who claim it or it can be really done? And if it is real, will it just change our interpretation of GR?


My links to articles on WotC's site are broken with the 2014 site update. Where can I find the same content?

In 2014, Wizards of the Coast gave their D&D site a massive overhaul. As is WotC's tradition, all of the links are now broken and 404ing.  So now I have a link to the errata archive which doesn't work:    What can I do about it?


"the 90s were the best decade ever" or "the 90s was the best decade ever"  "the 90s" and "decade" are both referring to the same singular period of 10 years, so "was" seems to make more sense. "90s were" rolls off the tongue better though.


I remember hearing two words, each describing a relationship to scope, or a containing set. I think they are prefixed with micro- and macro-, but am not certain (I'll call them 1 and 2).    1 describes a type of thing which, by definition, is contained within the definition of 2.  2 describes a type of thing which, by definition, contains 1.    For example, a square is a 1 of a rectangle. A rectangle is a 2 of a square. An iPhone is a 1 of a computer, and a laptop is also a 1 of a computer.  I hope that makes enough sense. This is difficult to describe because it is so conceptual in nature.


How to write or read powers (math) by words?

What's the way to write or to read power (math) it in words?  Does "powered by" is correct?   For example:  "2 powered by 5 divided by 2 powered by 3." works?   Also "What 4 powered by 3 does equal to?" is correct?


Installing "unknown" packages to tex-live

I had quite some problems with tlmgr and a faulty TeX Live installation on Linux but now, everything works okay, I guess. Anyhow, on my Mac I am using the package , which I want to install on my Linux machine as well. The  however tells me      If you accept scheme-full, and you still didn't get the material you were expecting [...] the package may not be available under a free software license, in which case it cannot be included in TeX Live.   Do I simply put the .sty-file to /usr/share/texmf-texlive/tex/latex/ or /usr/local/texlive/2014/texmf-dist/tex/latex/ ?


which vectors are perpendicular to each other?  $\vec a = (1, -2, 3)$, $\vec b = (5, 4, 1)$, $\vec c = (1, 0, -5)$  Do i just take the dot product of 2 of them. If the dot product they are at $90^\circ$? But how do i know if there perpendicular?


Find the MLE of $p$ where $f(y;p)=2p^2y^{-3}$.   Attempt:  Method: find the likelihood function, differentiate with respect to $p$ then set to zero and solve for $p$.  $L(p;y)=\prod\limits_{i=1}^n [2p^2y^{-3}_i] =\prod\limits_{i=1}^n[2] \prod\limits_{i=1}^n[p^2] \prod\limits_{i=1}^n [y^{-3}_i] = 2^n p^{2n} \prod\limits_{i=1}^n [y^{-3}_i]$  Differentiating the log likelihood gives $2n/p$ (i think) and the $y_i$ all disappear. So what happens when you set this to zero? Because if $0=2n/p$ then surely $0=2n$ and $n=0$.  Have I misstated $L(p;y)$? Or is something going wrong with my differentiation? (Or both?)


How to evaluate chirp transform in O(nlgn) time?

The question says to evaluate chirp transform in O(nlgn) time using the equation in the hint. But I'm unable to get any idea on how to prove the chirp transform from it. Any help is appreciated.


Parse underscore named attribute from response's wrapper

I'm receiving some JSON from an API. I created a Wrapper like this: public class Wrapper{      public class cA{          List<cB> recordsB;          public class cB{             cC recordC;              public class cC{                 String _some_id; // <--- Here I'm getting the error             }         }     } }  So, when I call it to my HTTP future class, I try to parse it with: Wrapper.cA dataResponse = (Wrapper.cA)JSON.deserialize(input, Wrapper.cA.class); And I get the error  "Invalid character in identifier".  Thing is that I cannot change the name of the comming field _some_id. Can anybody tell me how could I parse this child class in order to receive the name as it is? Thanks a lot in advance!


I'm using QGIS 2.18. I need to create sector lights for navigational purposes on a map.   I have the light sector data as fields giving becon_id, start degree, end degree and color in a shapefile with over 500 buoys, beacons and lighthouses that need to be shown on the map. For each beacon, there can be many rows, each describing one light sector (for instance a white sector)  The end result should look about like below: The light sectors in the right colors, with the color marked as the character in the color field (R G W), and dotted lines from 100m to 1000m from the buoy/beacon/lighthouse.   This should most likely be created as a ruled-based symbol, but needs some python I guess?     Here below is an example of the shapefile data for a lighthouse (unfortunately not the above one) which has a green sector between 114 and 154 degrees, a white sector between 154 and 168 degrees, a red sector between 168 and 237 degrees, a green sector between 237 and 314 degrees, a white sector between 314 and 320 degrees, a red sector between 320 and 337 degrees (for some reason, 0 is not north but south):


How can I kill a dll loaded with reflection

We have an application that consists of a light weight Launcher while most of the functionality is in a dll. The Launcher regularly check for updates and download a new dll if there is one. The new dll is started using code like this (MsqApplication is a dynamic):  MsqAssembly = Assembly.LoadFile("path/msq.dll")); MsqApplication =  Activator.CreateInstance(MsqAssembly.GetType("Msq.Program")); MsqApplication.Start();   It works fine except the that we don´t know how to kill the old dll when a new one is started. Is there any good way to do that?


Why do we use zero-truncated poisson regression and do not just call outcome 1 outcome 0?

Consider the example of estimating the number of items in the basket of a supermarket shopper. If we assume that a supermarket shopper will always buy at least one item, then a typical approach would be zero-truncated Poisson regression.  However, this has its drawbacks as zero-truncated Poisson regression makes it for example difficult to implement fixed effexts.  So why couldn't we model the number of additional items in the basket of the shopper? Then the dependent variable would start at 0 and we could fall back to standard Poisson regression.


How do I add this unallocated space to my Ubuntu partition using GParted?

Here is how my GParted interface looks like:     I want to add the unallocated space to my Ubuntu partition. However, when I try to resize/move I am not allowed to do so:


.htaccess redirect only when URL doesnt match a specific URL

In our app we allow custom domains, so a user can create:  custom.my.example.com   Which we map to:  app.our.example.com   In our app we enforce SSL, except for when the user enters a preview URL such as this:  custom.my.example.com/preview/blah   Currently if users just type "custom.my.example.com" they receive an SSL error as the current rules only exempt /preview/blah from the forced redirect. How can I create a rule so that if a user enters "custom.my.example.com" without /preview it redirects them to  to show a special message?  Current .htaccess rules:  RewriteEngine On RewriteBase /  RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !^/preview RewriteCond %{QUERY_STRING} !^/preview RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]   We are using CodeIgniter on CentOS 6.5 with Apache 2.2.  Thanks!


Simplifying the integral $\int\frac{dx}{(3 + 2\sin x - \cos x)}$ by an easy approach

$$I=\displaystyle\int\frac{dx}{(3 + 2\sin x - \cos x)}$$ If $$\tan\left(\frac{x}{2}\right)=u$$ or $$x=2\cdot\tan^{-1}(u)$$ Then, $$\sin{x}=\dfrac{2u}{1+u^2}$$ $$\cos{x}=\dfrac{1-u^2}{1+u^2}$$ $$dx=\dfrac{2}{1+u^2}$$ Substitute $$\tan\left(\dfrac{x}{2}\right)=u$$ Let us simplify the integrand before integrating $$\dfrac{1}{3+2\sin{x}-\cos{x}}$$ $$=\dfrac{1}{3+2\frac{2u}{1+u^2}-\frac{1-u^2}{1+u^2}}$$ $$=\dfrac{1}{3+\frac{4u-1+u^2}{1+u^2}}$$ $$=\dfrac{1}{\frac{4u-1+u^2+3+3u^2}{1+u^2}}$$ $$=\dfrac{1+u^2}{4u^2+4u+2}$$ $$=\dfrac{1+u^2}{(2u+1)^2+1}$$ $$I=\displaystyle\int\dfrac{1+u^2}{(2u+1)^2+1}\cdot\dfrac{2}{1+u^2}\ du$$ $$=\displaystyle\int\dfrac{1}{(2u+1)^2+1}\ 2\,du$$ Now, Take :  $$v=2u+1$$ Therefore, $$dv=2\,du$$ $$I=\displaystyle\int\dfrac{1}{v^2+1}\ dv$$ $$I=\tan^{-1}(v)$$ Substitute everything back $$I=\tan^{-1}(2u+1)$$ $$I=\tan^{-1}\left(2\tan\left(\frac{x}{2}\right)+1\right)$$ $$\boxed{\displaystyle\int\frac{dx}{(3 + 2\sin x - \cos x)} = \tan^{-1}\left(2\tan\left(\frac{x}{2}\right)+1\right)+C}$$ I know that my approach is also not so difficult but still I think there must be an relatively easy approach to this integral. I have tried many different things using trigonometric identities but nothing seems to bring to the solution easily. Kindly help me out.


How to type directly with keyboard the U+200C character?

How to type directly with keyboard the U+200C character in Notepad or other places... in Windows 8.1? (without depending on a certain font)  I don't want to copy and paste ways. I don't want any complicated ways. I just want something like Alt+### for typing U+200C Directly at any text area in windows 8.1 without depending to a certain font. Just like ALT+129 for U+200B.  (I do not need ALT+129, That's for U+200B. I need U+200C)  the U+200C character name is: ZERO WIDTH NON-JOINER (ZWNJ)  Here is the U200C character info:


Short story where bird-like aliens land on destroyed Earth

I’m looking for a short story about bird-like aliens who land on Earth. The human race have died in a battle with other aliens, and we had no choice but to destroy our sun.  At the end of the story it becomes clear the the aliens are some kind of birds, when you read the story you think it is about humans landing on an other planet.  Who wrote it and what is it called?


page is what I am referring to. I have often wondered how journals TeX their articles like this, and the trick that I have tried in the past of saving the pdf and looking at the info with Preview (on a Mac) doesn't provide me with any additional information.


Based on the product name ,split data with year and get the column count in visual force page pdf

Can any on help me out how to get the Data split based on the year , product name and get the column count in a visual force page which is in a PDF format .  With Code i could retrive the data correctly.I need to split the product name based on the year.I get the Total but the subtotal is not getting calculated correctly and  i get the data added in the same  year.  For Example :In the above table i got the data for the Year 2014 with their product names and quarter value displayed.Now when i add the data for the Year 2015 with their product names and in the quarter ,it gets added in the Year 2014 itself.  But Im looking for this type of Table:  ProductName         Year       Q1       Q2   Q3    Q4       Total  BXRC-25e4000-F-04  2014       100     200   300   400       1000                      2015       100                            100    BXRC-25e4000-F-23  2014       200                 200        400                     2015       300                            300  Subtotal ------------         700     200   300   600       1800   Code :  Public Integer subtotalofquantity{get;set;}  Public Integer subtotalofamount{get;set;}  subtotalofquantity=0;  subtotalofamount=0;  for(integer i=0;i<opflist.size();i++){             if(i==3){             subtotalofquantity+= integer.valueOf(opflist[0].gmod__Quantity__c);             subtotalofquantity+= integer.valueOf(opflist[1].gmod__Quantity__c);             subtotalofquantity+= integer.valueOf(opflist[2].gmod__Quantity__c);             subtotalofamount+= integer.valueOf(opflist[0]. gmod__Amount__c);             subtotalofamount+= integer.valueOf(opflist[1]. gmod__Amount__c);             subtotalofamount+= integer.valueOf(opflist[2]. gmod__Amount__c); }   Any help very much appreciated.


The degree of a differential equation, when its a polynomial equation in derivatives, is the highest power of the highest order derivative involved.  Examples  i) $\frac{d^3y}{dx^3}-\frac{dy}{dx}+xy^2=0$ The degree is 1   ii) $(\frac{dy}{dx})^2+\frac{dy}{dx}+x\sin(y)=0$ The degree is 2   iii) $\frac{\mathrm{d}^2y}{\mathrm{d}x^2}+\cos\left(\frac{\mathrm{d}y}{\mathrm{d}x}\right)=0$ The degree is not defined  Why is the degree of $$\frac{\mathrm{d}^2y}{\mathrm{d}x^2}+\cos\left(\frac{\mathrm{d}y}{\mathrm{d}x}\right)=0$$ not defined, since it is still a polynomial in $y''$? Edit: Considering the fact that different sources provide different definitions, I look for a reliable and complete definition of what a degree is, and why it is/ isnt defined in this case


Problem about jointly continuous and linearity of expectation.

When defining jointly continuous, we  are saying: if there exists a function $f(x,y)$ satisfying that   $$ P\{X\in A, Y\in B\}=\int_B\int_a f(x,y)dxdy $$  then $X,Y$ are called jointly continuous.  So not every pair of random variable $X$ and $Y$ are jointly continuous, because such $f(x,y)$ may not exists, right?   Then in Ross's book Introduction to Probability Models, there is something I'm confused:  He proved the formula  $$ E[X+Y]=E[X]+E[Y] $$  for jointly continuous random variables, but then use it for arbitrary pair of random variables.  When $X,Y$ is jointly continuous, it is easy to prove, since $$ E[g(X,Y)]=\int_{\mathbb{R}}\int_{\mathbb{R}}g(x,y)f(x,y)dxdy $$  Then let $g(X,Y)=X+Y$.  To be clear, my question is :  (1) Isn't every pair of random variable $X$ and $Y$ are jointly continuous, right?  (2) The formula $E[X+Y]=E[X]+E[Y]$ is valid for any pair $X, Y$ even if they are not independent, right?  (3) Ross in his book proved $E[X+Y]=E[X]+E[Y]$ under the assumption $X$ and $Y$ is jointly continuous. It is quite easy. How to prove general case?


"haven't got ANY apples" vs. "haven't got apples"

Is the phrase "We have not got apples." correct, or we must use  We have not got any apples. instead?


Why the speed of light in vacuum is same in all inertial reference frames?

If Cathy’s velocity toward Bill and away from Amy is v = 0.9c, Cathy finds, by making measurements in her reference frame, that the light from Bill approaches her at speed c, not at c + v = 1.9c. And the light from Amy, which left Amy at speed c, catches up from behind at speed c relative to Cathy, not the c - v = 0.1c you would have expected.  My question is why speed of light is same in all inertial frames (as in this example)? I know this is true from observations, but HOW ?


I'm going to say this up front.. I'm no wizz kid with phpmyadmin so please ask for any information that I haven't provided.   I have exported a dump of a db online that from what I can tell has a character set of MySQL charset: UTF-8 Unicode (utf8). I then import this into my local xxamp phpmyadmin which takes a lot longer than usual.   It finally succeeds and imports 3636 queries... When importing the character set is set to utf8.   After upload I then go to my Great website to find it full of loads of odd characters for example: šÆM€ˆˆ”4!J”EE‘Ô¤R‹U-}HiI¤Mµ  So I'm wondering why I'm getting these odd characters rather than a nice glossy site  I've had to change the port to 81 by the way.  Let me know if there is anything else I can add to be more helpful


Custom counter steps twice when invoked from caption using caption package

I made a custom counter with a custom command that steps the counter and sets an automatic label for it. However, when invoking this from a caption AND using the caption package, my counter steps two times. Here's a MWE:  \documentclass{book} \usepackage{caption}  \newcounter{example}[chapter] \renewcommand{\theexample}{\thechapter{}.\arabic{example}} \providecommand{\example}[1]{\refstepcounter{example}\label{ex:#1}{\theexample}}  \begin{document}  \begin{figure}[h!] \caption{\protect\example{my_example}} \end{figure}  \end{document}   If I comment out the line \usepackage{caption}, I get the right results.  Is this a bug, or am I doing here some very basic mistake?


Is there any place on the internet which lists the historical release dates for Winter, Spring and Summer, for every year and every Salesforce instance?


This doesn't seem to be specificed in the docs and the FAQ.  I see this suggested in  (10.2016) and mentioned as an existing feature (!) in  (10.2010).


how do I prove that $$\sum_{k=1}^{n=90}\frac{1}{\sin(k-1)\sin(k)} =\frac{\cos1^{\circ}}{\sin^21^{\circ}}$$ or  $${1\over \sin1^{\circ}\sin2^{\circ}}+{1\over \sin2^{\circ}\sin3^{\circ}}+{1\over \sin3^{\circ}\sin4^{\circ}}+...+{1\over \sin89^{\circ}\sin90^{\circ}} = \frac{\cos1^{\circ}}{\sin^21^{\circ}}$$ Any ideas about how to go about doing this ?


What DLNA server program should I choose and how do I set it up? It is an absolute requirement that it doesn't take a lot of resources since it will be running on a 500 MHz machine.  There seems to be quite a few server programs and I don't have any experience with these userfriendly auto-detecet protocols/services.  Btw, the server doesn't have a GUI...


Please, does anyone knows whether $\operatorname{tr} |AB| = \operatorname{tr} |BA|$ for general trace operators $A$ and $B$ in Hilbert spaces ? Do you have a counter-example or a proof ?  Thanks  ps : I know $\operatorname{tr} AB = \operatorname{tr} BA$


I have two $2\times 2$ matrices, $A$ and $B$, with the same determinant. I want to know if they are similar or not.  I solved this by using a matrix called $S$: $$\left(\begin{array}{cc} a& b\\ c& d \end{array}\right)$$ and its inverse in terms of $a$, $b$, $c$, and $d$, then showing that there was no solution to $A = SBS^{-1}$. That worked fine, but what will I do if I have $3\times 3$ or $9\times 9$ matrices? I can't possibly make system that complex and solve it.  How can I know if any two matrices represent the "same" linear transformation with different bases?  That is, how can I find $S$ that change of basis matrix?  I tried making $A$ and $B$ into linear transformations... but without the bases for the linear transformations I had no way of comparing them.  (I have read that similar matrices will have the same eigenvalues... and the same "trace" --but my class has not studied these yet. Also, it may be the case that some matrices with the same trace and eigenvalues are not similar so this will not solve my problem.)  I have one idea. Maybe if I look at the reduced col. and row echelon forms that will tell me something about the basis for the linear transformation? I'm not really certain how this would work though? Please help.


The behaviour described below occurs on Windows-7 systems and on Windows XP. We operate in a dual-language environment - English and Hebrew.  When in Windows Explorer we sort files by name, the order in which they are listed is not what we would expect. Here is a list of file names as sorted by Windows Explorer (all of the files have a .pdf suffix):   1G110033H-PP 19C050G-PP-ORB 19C050H-PPRM 19C100H-PPRM 19C-MBPS-PP 19C-MBPS-PP-1 29AAC050-PP 29AAC100-PP 29AAC100-PPUL   29B004064-PP 101AC050-PP 101AC100-PP 101B100-PPE 1091003G-PPFSUL 10108033G-PPSA 10125033H-PPM     It looks to me that first the items are sorted according to the position of the first alphabetic character in the name, and then, within those groups, they are sorted in "normal" alpha-numeric order.  That is, all the files with an alpha character in the first position are on top of the list, followed by those with the first alpha character in the second position, followed by those with the first alpha character in the third position, and so on.  An alternate way of looking at this is that, in a file name composed of numbers and letters, the sort treats the first group of numbers in the name as the major sort node, with the rest of the name being the secondary sort node.  Now that I understand the sequencing logic, it's not a big problem, but I was wondering why this happens?


Looking for the name and author of short story about sea creatures that need a third sex to procreate

May have been in a SF magazine about 25 years ago. I remember it having a complex society and it was punishable by law if one creature rams into two others causing a pregnancy.


In the earliest grades of elementary schools, students learn that "hisself" and "theirselves" are not words. I do not understand why this is.  If you wanted to refer to 'his' sock, you would say "his sock," not "him sock." Similarly, you would say "their socks," not "them socks."   Why do you not call 'his' self hisself and 'their' selves as theirselves?


Is it possible to read a .sh that was deleted from file system but is being executed?

I've received a project that some dude did and it's on production stage. But that guy had some issues with project managers and other team members (bad attitude, being an ass.. etc). Intentionally he documented wrong apps, wrong paths, hidden folders, among others. And then left the company. While researching I've found that there's a .sh executing on process list. But that .sh doesn't exist anymore in the specified path (or even another path in the filesystem). Looking at .bash_history I've found that he executed the .sh and then removed the file (intentionally)... To keep the project going I need to know the content of that file. And as far as I understand, this shell still exists on the RAM because it is being executed. Is there any chance to read that file from RAM? or write its content on a new file? Kind regards. EDIT:  @Artem S. Tashkinov and @Gilles. Thank you for your answers. but this only dumps the output of the process. What I need is the code that the .sh contained ando produced that output.


How would I remove the border from an iframe embedded in my web app? An example of the iframe is:  <iframe src="myURL" width="300" height="300">Browser not compatible.</iframe>   I would like the transition from the content on my page to the contents of the iframe to be seamless, assuming the background colors are consistent. The target browser is IE6 only and unfortunately solutions for others will not help.


Why am I frequently getting disconnected from wifi after some time of use?

I use a Lenovo g50-45 with Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter. I am connected to the wifi and can access the Internet for like 10-5 min and then the wifi will still be connected but there will be no Internet. Here are some details and analysis report's


Journals or Articles for under graduates.

I am teaching to under-grads and many students asked me to refer some journals or articles which are accessible to them. It would be great if our community helps me out by giving links to journals consisting of  interesting research articles , expository, survey articles, or interesting historical surveys of  concepts or theorems which can develop interest and mathematical maturity in under-grads. For now, I only know Resonance and MAA. Your help would be greatly appreciated. Thanks.


In a strongly typed view I have a dropdownlist filled with "instruments" from a List from my viewmodel. Everytime the user clicks on an item a musiciansinstrument should appear underneath the dropdownlist.  this is my viewmodel  public class RegisterMusicianModel {     public RegisterMusicianModel()     {         instrumentRepository = new InstrumentRepository();         instrumentlist = instrumentRepository.FindAllInstruments().ToList<instrument>();         musicianinstrumentlist = new List<musiciansinstrument>();     }     private InstrumentRepository instrumentRepository;     private List<instrument> instrumentlist;     private List<musiciansinstrument> musicianinstrumentlist;      public List<musiciansinstrument> Musicianinstrumentlist     {         get { return musicianinstrumentlist; }         set { musicianinstrumentlist = value; }     }      public List<instrument> Instrumentlist     {         get { return instrumentlist; }         set { instrumentlist = value; }     }       private musician music = new musician();      public musician Music     {         get { return music; }         set { music = value; }     }   }   As you can see I have a filled list of instruments, an empty list of musician instruments and an object of musician. So everytime the user changes selection in the dropdownlist this method gets called and returns a JSON Object (musiciansinstrument, not an instrument).      [HttpPost]     public JsonResult AjaxInstrumentsMusician(int id)     {         musiciansinstrument mi = new musiciansinstrument();         mi.idInstruments = id;         mi.Instrumentname = instrumentrepo.GetInstrument(id).name;          return Json(mi);     }   the script:  $(document).ready(function () {     $('#Instrumentlist').change(function (e) {         var myval = $('#Instrumentlist').val();         alert(myval);         $.ajax({             url: "/Account/AjaxInstrumentsMusician",             type: "POST",             data: { id: myval },             success: function (result) {                 alert(result.Instrumentname);             },             error: function () {                 alert('failed');             }         });     }); });   I can display the JSON object properties in my view wherever I want, that's ok. But what I really want is to add it to the strongly typed object (The empty List from the viewmodel). So i can acces it from my viewmodel parameter in my HTTPPOST method. I'm not a big fan of FormCollection, extra parameters, ViewBags, ...  I'm kinda new to the concept JSON and I couldn't find any good explanation on this on google. Is this possible? Is there another elegant way of solving this issue?


Regular expression using unicode flag failing in IE and FF

I want to use the regular expression [^\p{L}0-9]/u, but it is failing in IE and FF because these browsers do not support the features introduced in ECMAScript 2018 standard yet. I want a workaround so that I can use the unicode flag /u.


I want to automatic redirect home page after click on update button, here is my handleSubmit code:  const handleSubmit = (e) => {     e.preventDefault();     // access data from backend     axios       .put(`${process.env.REACT_APP_API}/post/${slug}`, {         title,         content,         user,       })       .then((response) => {         console.log(response);         const { title, content, slug, user } = response.data;          setState({ ...state, title, content, slug, user });         alert(`Post Title ${response.data.title} is Updated`);       })       .catch((error) => {         console.log(error.response);       });   };  Here I have use a alert when my post has been updated then show me, but now I need to redirect my home page. when I click on update button Any suggestion please.


Ubuntu 20.04 Malformed entry 60 in list file

Ubuntu 20.04 The lines in question are: deb http://mirror.fsf.org/trisquel/toutatis-updates main # deb-src http://mirror.fsf.org/trisquel/toutatis-updates main  What are these? I am pretty sure they're either Librewolf or Icecat because that was what I was messing with before everything went wrong. Also, can you help me remove LibreWolf, it won't even start up? I click on it the I get the loading icon and then it stops.


What is taking the storage of my Huawei phone?

Update: The suggested duplicate  question does not indicate how to solve it, nor do I think it explains the situation unless there is a unusual amount in the hidden folders  I recently did a factory reset reset on my Huawei P8 lite 2017, and as soon as I installed a few apps if started to complain about memory. I looked at it from every angle I could think of and it just doesn't seem to make sense. Here is a screenshot of the memory usage:  My question: Where did the remaining memory go, can I free it up? Note that I am not allowed to root the phone


Prove that the sum of derivatives of a non-negative function is non-negative

Let $f(x)$ be a polynomial of degree $n$ with real coefficients such that $f(x)$ is non-negative for all real $x$. Let $g(x)=f(x)+f'(x)+f''(x)+\dots$ be the sum of $f(x)$ and the first $n$ derivatives of $f(x)$. Show that $g(x)$ is non-negative for all real $x$. Thanks for any comments/answers in advance!


This is my second time making and game and I want to make sure that I fit under 50 mbs. So far my plan is to fit all the games artwork into two 2048x2048 sprite sheets. I tested a empty unity3d project and when the apk was made it was 19 035 KB of size. Where does this overhead come from and how can I reduce it?  This is not a duplicate question of this . I'm asking why building a completely empty project results in a apk with a size of 19 MB. Does this mean that I have limit my assets to 30 MB so that the complete app will be less than 50 or is there a way to strip some of those initial 19 MB.


How do I mount a hibernated partition with Windows 8 in Ubuntu?

I can't mount my other partition with Windows 8, I have Ubuntu 12.10 amd64:  Error mounting /dev/sda1 at /media/ricardo/003E8A7D3E8A6C0A: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/ricardo/003E8A7D3E8A6C0A"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda1': Operation not permitted The NTFS partition is hibernated. Please resume and shutdown Windows properly, or mount the volume read-only with the 'ro' mount option, or mount the volume read-write with the 'remove_hiberfile' mount option.  For example type on the command line:   mount -t ntfs-3g -o remove_hiberfile /dev/sda1 /media/ricardo/003E8A7D3E8A6C0A


Minion Pro - how to make the angle symbol the same height as text?

I am using the  and noticed that when you use \angle, the resulting symbol is not the same height as the text as it is for computer modern, as seen in the below picture.  What can I do the make the symbol the same height as the text, as seen below for CM?


The use of 'Darth' as Vader's name, not title, in Star Wars

I watched Star Wars, Episode IV: A New Hope for the first time in a while a few days ago (the first step in taking my Daughter through the Machete Order). One thing that stood out was the pre-duel smack talk between Vader and Obi-Wan:     Vader: When I left you, I was but the learner; now, I am the master.   Obi-Wan: Only a master of evil, Darth.   From memory, this is the only example I can think of where 'Darth' is used as if is was Vader's first name, as opposed to the title that we (eventually) learn that it is, once we meet other Darths.   I wonder when Lucas decided that Darth would be a title for dark side Jedi (not called 'Sith' until the prequel trilogy)? In Empire and Jedi, Darth Sidious is referred to only as 'The Emperor', but 'Darth Vader' ceases to be called Darth if only one word is used; e.g. Yoda's "Vader, you must face Vader".  Is this just an example of Lucas making stuff up as he went along, rather than having it all planned out from the start (not actually all that unreasonable)? Or is there some reason that Obi-Wan used 'Darth' instead of 'Vader'? On previous viewings (i.e. before the prequels existed) I'd interpreted this as Obi-Wan being informal with his old student by using his first name, rather than his last. However, the reverse interpretation could be true once you know that Darth is a title, i.e. that Obi-Wan is using his title rather than his name in order to be as cold and impersonal as possible (i.e. replace 'Darth' with 'Sir' and put Bastard swords in their hands instead of light sabers).


One word that conveys stability, unchanging terms, and word of honor in a local context

I'm looking to send a chat to someone that conveys this message/thought but I simply cannot, for the life of me, remember what word I used to use for this. The message I'm looking to send goes along the lines of, in a positive light,  I have been able to free up more time recently due to workflow efficiency improvements but for ________ sake I would like to stick to our original terms, which is X days to complete Y milestone. Her company gave her a generous Christmas bonus and she can return what she owes you immediately. However, in the name of ________, she wants to follow your original amortization terms.  I was thinking of the word "formality" but in the second example, it may have been a simple, informal oral agreement between the two of them. I'm looking for a word that's sort of the antonym of "indecisiveness" and "turncoat". Edit: I failed to make it clear before. The context is between two/a few parties. The answers and  holds the agreement to widely-accepted societal morals and standards, which may not necessarily be the case for the agreement the parties might have entered into. What I was looking for, after additional thought, is  Her company gave her a generous Christmas bonus and she can return what she owes you immediately. However, in the name of [the agreement between them, or something that conveys this thought], she wants to follow your original amortization terms.  This would work for me:  Her company gave her a generous Christmas bonus and she can return what she owes you immediately. However, [in the name of commitment/for the sake of the commitment between the two of you (non-one word)], she wants to follow your original amortization terms.


Javascript - Auto click on a button on page load

I am trying to auto click on a button with id btn on page load. This is my snippet.  <button id="btn">Click me</button> <script> document.getElementById('btn').click();     alert("h") </script>   How can I give an alert on page load? Pls help. Thanks.


How critical are macOS Mojave compatibility requirements?

As per Apple support document, :     1. Check compatibility      You can upgrade to macOS Mojave from OS X Mountain Lion or later on   any of the following Mac models. Your Mac also needs at least 2GB of   memory and 12.5GB of available storage space, or up to 18.5GB of   storage space when upgrading from OS X Yosemite or earlier.         MacBook introduced in early 2015 or later   MacBook Air introduced in mid 2012 or later   MacBook Pro introduced in mid 2012 or later   Mac mini introduced in late 2012 or later   iMac introduced in late 2012 or later   iMac Pro (all models)   Mac Pro introduced in late 2013, plus mid-2010 or mid-2012 models with a recommended Metal-capable graphics card.      I am currently running macOS High Sierra on my Early 2011 MacBook Pro.  What does Apple's requirements mean for my ability to install Mojave? Is it possible or worthwhile to do so?


I've been using Ubuntu for a little over a year now and have gotten fairly comfortable with the UI.  The one case I've had trouble on was recently trying to install bit coin on my 13.10 computer.  When I open up the deb file and it takes me to the software center where there should be an install button there's something about libdb4.8++.  Thankyou in advance.


Can you trade from Pokemon Red on GBA to Pokemon gold on virtual console?

I have a Game Boy Advance SP and Pokemon Red GEN 1, and I'm curious if it is possible for me to trade a Pokemon from Red to the Virtual Console release of Pokemon Gold on the 3DS


In ZFC, which axioms of set are not required to class?

In  , Thomas Jech says     Classes      Although we work in ZFC which, unlike alternative axiomatic   set theories, has only one type of object, namely sets, we introduce   the informal notion of a class. We do this for practical reasons: It   is easier to manipulate classes than formulas.   Sadly I don't get the difference between them. My question actually is:   Set is defined by the axioms of ZFC. Which axioms of set are required on class, which are not?  Axioms of Zermelo-Fraenkel from Jech's book:     1.1. Axiom of Extensionality. If X and Y have the same elements, then X=Y.      1.2. Axiom of Pairing. For any a and b there exists a set {a,b} that contains exactly a and b.      1.3. Axiom Schema of Separation. If P is a property (with parameter p), then for any X and p there exists a set $Y = \{u ∈ X : P(u,p)\}$ that contains all those u ∈ X that have property P .       1.4. Axiom of Union. For any X there exists a set $Y = \cup X$, the union of all elements of X.       1.5. Axiom of Power Set. For any X there exists a set Y = P(X), the set of all subsets of X.      1.6. Axiom of Infinity. There exists an infinite set.      1.7. Axiom Schema of Replacement. If a class F is a function, then for any X there exists a set Y = F(X) = {F(x) : x ∈ X}.      1.8. Axiom of Regularity. Every nonempty set has an ∈-minimal element. 1.9. Axiom of Choice. Every family of nonempty sets has a choice function.      The theory with axioms 1.1–1.8 is the Zermelo-Fraenkel axiomatic set   theory ZF; ZFC denotes the theory ZF with the Axiom of Choice.   Definition of class, also from Jech's book:     If $φ(x,p_1,...,p_n)$ is a formula, we call $C = \{x : φ(x,p1,...,pn)\}$ a class.    Members of the class C are all those sets x that satisfy $φ(x,p_1, . . . , p_n)$:      x ∈ C if and only if $φ(x,p_1,...,p_n)$.   Note here the definition is by formula, not by axioms, this is where I'm lost.  There are similar posts on MSE, but I'm still not sure  In  , Sylvain's answer says      The powerset axiom is the main exception, the one axiom that cannot be   properly justified.   OK, so Axiom of Powerset is out. How about others?  HellCat's answer says      the axioms of Set Theory apply only to sets and not to classes.   Also in  , Asaf says:     Sets are elements of the model of set theory, and they have to satisfy   the axioms, e.g. the axiom of power set. Classes are collections of   elements from a model of set theory, but they don't have to correspond   to any element in the model, and they don't have to obey the axioms.   Does this mean all the axioms above are not applicable to classes? Then what shall the actions on classes be restrict to?


Cite_key instead of a number, what is going on?

I have the following problem: I correctly obtain a numbered bibliography at the end but along the text the cite_key appear instead of a number. How to fix this problem?   \documentclass[11pt]{book}  \usepackage[]{biblatex} \begin{document} %some text  ... \cite{ABKM2015}... %some text  \begin{thebibliography}{99} \bibitem{ABKM2015} Arroja, F. and Bartolo, N. and Karmakar P. and Matarrese, S. (2015). \newblock The Two Faces of Mimetic Horndeski Gravity             \newblock {\em ArXiV}, 1506.08575 (2015). \end{thebibliography} \end{document}   After compiling I get ... [ABKM2015] ... while I want for example  [1].


Is SQL prepared statement needed everywhere?

$update_query = "UPDATE notifications SET status = '1' WHERE status='0'";     mysqli_query($con, $update_query);   Its a very simple query with no dynamic variables defined. Is it fine to run it like this or should go for prepared statement for this kind of queries also?


If $a, b, c$ are sides of a triangle, prove that $\frac{a}{b+c-a} + \frac{b}{a+c-b} + \frac{c}{a+b-c} \ge 3$

If $a, b, c$ are sides of a triangle, how can I prove that $$\frac{a}{b+c-a} + \frac{b}{a+c-b} + \frac{c}{a+b-c} \ge 3$$


How do I remove the OneDrive folder from my File Explorer folder tree in Windows 10?

I don't use or want to use OneDrive, but after upgrading to Windows 10 it's been installed automatically and added to the sidebar of every explorer window:    I can't seem to figure out how to get rid of it. I can't uninstall it like a normal app, and I can't seem to unpin it in Explorer's options.  I tried following  to getting rid of it, but that seems to only remove stored OneDrive files.  I've also tried following another  and , but I can't seem to edit group policies on my computer (maybe because I upgraded from Win7 Home Premium?).  All I would really like is to be able to remove the OneDrive shortcut from my explorer sidebar, though being able to uninstall OneDrive would be a bonus.  I'm not sure what I should try now. Is there a way to remove OneDrive from Windows 10?


Why does the earth revolve around the sun?

I want to know why the Earth rotates around the sun. Why doesn't it rotate around the moon or a different star?


I've often heard that instead of adding up to a little less than one, 1/2 + 1/4 + 1/8... = 1. Is there any way to prove this using equations without using Sigma, or is it just an accepted fact? I need it without Sigma so I can explain it to my little sister.  It is not a duplicate because this one does not use Sigma, and the one marked as duplicate does. I want it to use variables and equations.


Which spell slots can wizards pick from if they have more spells that can be prepared than they have slots?

Sorry for the horribly worded title.  Per the PHB: Wizards can prepare a number of spells equal to their Int Modifier + their wizard level.  I have a necromancer who just hit 4th level and used the ability score increase to push her Int to 20 (+4). So she would have 8 spells she could prepare.  However in the spell slots per level chart she has four 1st level slots and three 2nd level slots.  So what could she level could she use that spare slot for?  Thanks!


Jquery ID selector doesnt work when multiple IDs are given

If I have just the #index on my body element, the length method gives me the correct answer of 1. But if I have a second ID on this body element the length method gives me 0. Whats wrong with that?  $("#index").length   You can test it here. Just remove the .removeme from the body tag and try the command in the developer console again.    Any ideas or suggestions?


Firefox SSL warning for data.stackexchange.com

When visiting , firefox tells me that not all parts of the page are secured.   Looking from source, f.ex. following things are not using https  IconUrl: 'http://sstatic.net/stackoverflow/img/icon-16.png'   Hold tight while we fetch your results   Also nearly all navigation links go to http site instead of https, transitioning user back to insecure connection.  Perhaps these could be addressed?