i'm creating a system than get html form values and send it to API. I created a simple html form with javascript to get values to send, but i get form using form ID, is there any way to get form without id ? i'll creating this to work in website than have only one . index.html <!DOCTYPE html>       <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>            <form id="myForm">         Send me your name:         <input id="myName" name="name" value="John">
         Send me your email:         <input id="myEmail" name="email" value="Exemplo@exemplo.com">
         <input type="submit" value="Send Me!">       </form>    teste1.js window.addEventListener( "load", function () {     function sendData() {       const XHR = new XMLHttpRequest();       const FD = new FormData( form );        const data = {          name: FD.get('name'),         email: FD.get('email')        }        // Define what happens on successful data submission       XHR.addEventListener( "load", function(event) {         alert("Success.");       } );        // Define what happens in case of error       XHR.addEventListener( "error", function( event ) {         //alert( 'Oops! Something went wrong.' );       } );        // Set up our request       XHR.open( "POST", "API_URL" );       XHR.setRequestHeader('Content-type', 'application/json')       // The data sent is what the user provided in the form       XHR.send(JSON.stringify(data));   }     // Access the form element...   const form = document.getElementById( "myForm" );    // ...and take over its submit event.   form.addEventListener( "submit", function ( event ) {     event.preventDefault();      sendData();   } ); } );  look i get form with const form = document.getElementById( "myForm" );  and const FD = new FormData( form );  how get form without id, if it was like <form> ...


Do Augments override the base item's stats?

I understand how the cube works to do the augmentation, but does it stack with the item's stat, or override it completely?  Edit: Because people seem to not understand, but was answered in comments.. I am not asking if the secondary rolls of augment stack, I am/was asking if it stacked with the underlying base stat of the item. The answer posted in comments is that it will stack under it's own name of the gem it was leveled with. For example (now that I moved forward and can give real example)..   Burden of the Invoker before: [607 Strength] [Other Stuff]  Burden of the Invoker after: [607 Strength] [305 Strength "Gem Name"] <- another stat [Other Stuff]  Granted multipliers below are off, overall the focal point of question answered. End Edit  For example: - Armor Item with base stat of +600S  Add Augment Legendary lvl 50, Rubies = 750S  Would the resulting stats be +750S or 1350S?  So if you have a high roll already (say alter above hypothetical to 650) but has no vitality, would it be more worthwhile to not augment your base stat then?


How do I print 'block' letters in the terminal?

How do I echo/print block lettering in the terminal like:   ?  figlet and toilet don't help. Neither do  or  unicode characters.  This is not a duplicate. As I said, figlet, banner and toilet have no styles for what I want, as depicted in the image.


Am I faster in the air or on the ground?

A new mechanic in Mario kart 8 is the hang gliders, which allow you to steer your character in the air after a big jump. For maximum speed, should I try to maximize air time, by aiming upwards or minimize air time by aiming downwards? Or is it faster to do neither, and stay level vertically?


I already read this question:  but it doesn't answer mine.  It seems to me, that the wildcards (especially *) are not consistently working correctly.  Assume I have a file with the name abc_d270_def_1000.fun. When I search in the Windows 8 Explorer for *000.fun, it doesn't find this file. But in Windows 7 the exact same search string does find this file. I did a bit of investigation and discovered that my file won't be found when I'm searching for  abc_d*70_def_1000.fun abc_d**0_def_1000.fun   but it will be found when I'm searching for  abc_d***_def_1000.fun abc_d2**_def_1000.fun abc_d27*_def_1000.fun   So it seems that the wildcards can not be placed before a number.  Is there a way to change this, so that I can search for *000.fun and my file will get found?


failed to update - internet connection error

i am using ubuntu 12.04 lts. i m trying to update but i get an error      Failed to download repository information   Check your Internet connection.   My internet connection is fine.  when i see details of the error an get this      W:Failed to fetch   Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)   , E:Some index files failed to download. They have been ignored, or old ones used instead.   any help please


Resonance Frequency and Centre of Gravity

Is there a relationship between these 2   As of now I am moving a piece blutac up and down a ruler to change my COG. I have connected the base of my ruler to a vibration generator and am measuring the highest amplitude to measure the resonance frequency.   The closer the COG is to to the base the higher my resonance frequency is.


I was trying to learn about using dictionaries in python and made two very short programs. I have a doubt over the output of the program. Here is the code.  d = {} d[0] = '0' d[1] = '1' d[2] = '2' for keys in d:    print d[keys]   and it gave the following output  0 1 2   but, when I made the following program.  d = {} d['name'] = "Pratik" d['age'] = 17 d['country'] = "India" for keys in d:     print d[keys]   it gave the following output  India 17 Pratik   It would be great if somebody could explain this output to me. The expected output looking at the first output was  Pratik 17 India


Given a string:  $AABBC=A^2B^2C^1$   I am trying to find the Total Permutations (this may be incorrect):  $\dfrac{5!}{2!\cdot2!}=30$  My question is how would I find the partial sums (perhaps the wrong choice in words) when added together would give an index such that:   $AABBC=1$ $ABABC=2$ $CBABA=29$ $CBBAA=30$   (30 might be the wrong number here but is suppose to be the last)   I have tried to draw out a tree structure to get an idea and thought with as the minimum:  $CAABB$  $4(\dfrac{4!}{2!\cdot2!})$ + 1  And:  $CABAB$  I would get something like:  $4(\dfrac{4!}{2!\cdot2!}) + 0 + 1(\dfrac{2!}{2!}) + 0 + 0$  But I am missing something here. How would I find the sums needed for $BACAB$ ?  More specifically I am trying to find the index of a word that is arbitrarily long in alphanumeric.  So the string may also be something like:  $AAAAABBBBDDEEFFFGGGGGHIIIIJJJJKLMOOOPZZZZZ$


Active vs passive voice with inanimate object as the subject

I have asked the  in ELL Stackexchange forum. There all the answers and comments I received was really helpful, but still I was looking for something more. So I have decided to ask this same question here also.   I have seen some sentences like this -         The film was announced to be released on this coming Friday.   The film was announced to release on this coming Friday.      Both the sentences are used, and I know they are interchangeable and does bear the same meaning. But I have some doubt about the second sentence - why is it "to release", when the film cant release itself.   Some other sentences of similar structure that arises my confusion -         The product sells well.   The book reads well.   The glass broke.      The sentences are understandable, but in each of the sentences the subjects can't perform any job, as they all are inanimate object. The verbs are active, but they acts like they are used as passive.  Now my question is how to decide which verb to use this way and which not?


"On occasion he had even been entrusted with the rectification of ‘The Times’ leading articles, which were written entirely in Newspeak."  Why can't we say: "he was entrusted"?


An undefined reference error for files in a directory in c++

I'm working on a project, and inside of the project I've separated my own classes and functions into a directory called base_lib. When compiling the project, I keep getting an undefined reference error for one of the classes in this library. I have been trying to find the answer on many different forums and ultimately just decided to ask it myself. The code:  stack.h  #ifndef __STACK_H #define __STACK_H   namespace stacker { /******* My code here  *******/ }   #endif   stack.cpp  #include "stack.h" #include <iostream>  using namespace std;  template <typename var> stacker::Stack<var>::Stack() {     head = nullptr;     tail = nullptr; }   fix.h  #ifndef __FIX_H #define __FIX_H  #include <iostream> #include <string>   namespace fixes { /******* My code here  *******/ }  #endif   fix.cpp  #include "fix.h" #include "base_lib/stack.h" #include <iostream> #include <string>   using namespace std; using namespace stacker;   main.cpp  #include <iostream> #include "fix.h" #include "base_lib/functions.h"  using namespace fixes; using namespace mine; using namespace std;   The compiler error  C:\...:fix.cpp:(.text+0xa2): undefined reference to `stacker::Stack<char>::Stack()' ...   Does anyone have any tips or tricks?


Why is the probability measure P not defined on the power set of $\Omega$, but on it's sigma algebra?

why do we not define P on the power set of $\Omega$, which is equivalent to declaring that all sets are measurable. Even if $\Omega$ is uncountable, it's sigma-algebra and power set would also be- then how do we conclude that only the elements in sigma-algebra are measurable, while others are not


How can a beast heart adept's abilities improve after finishing the class?

I'm playing a marshal 1/totemist 4/beast heart adept 9. Since I'm nearly done with the prestige class , I need some advice:   Do any classes continue what beast heart adept started with its monstrous companions? Are there feats or magic items that improve upon what the beast heart adept can already do?


How to show that $\emptyset\in\tau_{\beta}$?

Problem. Let $X$ be a non-empty set and $\beta$ be a  (in the linked definition of basis for a topology replace the term by basis set).  Then the set $\tau_\beta:=\left\{\displaystyle\bigcup_{B\in \beta_0} B: \beta_0\subseteq \beta\right\}$ forms a topology on $X$.   I have already shown that $\tau_{\beta}$ is a topology assuming that $\emptyset\in\tau_{\beta}$ but I can't show that $\emptyset\in \tau_\beta$. I think that it holds vacuously but I am not sure how to prove it. Can anyone help?


Question About Gravity vs. Earth’s Rotation

If a bullet was fired perfectly straight up (assuming a windless environment) such that the peak of its trajectory was just shy of orbit, would it fall back to Earth in the same spot, or would Earth’s rotation cause it to land in a different place?


Formula for 95% confidence interval for $R^2$

I googled and searched on stats.stackexchange but I cannot find the formula to calculate a 95% confidence interval for an $R^2$ value for a linear regression. Can anyone provide it?  Even better, let's say I had ran the linear regression below in R. How would I calculate a 95% confidence interval for the $R^2$ value using R code.  lm_mtcars <- lm(mpg ~ wt, mtcars)


According to , the schwa /ə/ doesn't occur in stressed syllables. But , Oxford Advanced Learner's Dictionary and Longman Pronunciation Dictionary say otherwise: the word "because" has been variously transcribed as /bɪˈkəz/ or /bəˈkəz/. So in which source should I believe? Or is there any error in transcription going on here? Or is "because" the only exception? And are there others?


Proving a function is bounded given the first derivative of the function

Let $f : [0, ∞) → \mathbb{R}$ be the solution of the ordinary differential equation  $f'(x)=\frac{1}{x^2 +f(x)^2}$  satisfying $f(0) = 1.$ (You may assume that this solution exists, and is unique.) Prove that $f$ is bounded.  I'm not sure where to start with this question, is there specific theorems that I need to take advantage of? Is it an unimportant fact that this is an ODE?  Any tips would be very helpful!


2005 BMO2 showing that at least three different sets in the list are subsets of at least four sets in X.

Consider the following problem:  Let $X = \{A_1, A_2, … , A_n\}$ be a set of distinct 3-elements subsets of $\{1,2, … ,36\}$ such that  $A_i$ and $A_j$ have non-empty intersection for every $i, j$;  The intersection of all the elements of X is the empty set.    Show that $n ≤ 100$.  How many such sets $X$ are there when $n = 100$?    From the solution, assuming that $A_1 = \{1, 2, 3\}$. Choose $A_{i_1}$, $A_{i_2}$, $A_{i_3}$ with $1$ not in $A_{i_1}$, $2$ not in $A_{i_2}$ and $3$ not in $A_{i_3}$. Suppose that $A_{i_1} = \{a_1, a_2, a_3\}$, $A_{i_2} = \{b_1, b_2, b_3\}$ and $A_{i_3} = \{c_1, c_2, c_3\}$. Every set in the collection $X$ has one of the following doubleton sets as a subset: $$\{1, a_1\}, \{1, a_2\}, \{1, a_3\}, \{2, b_1\}, \{2, b_2\}, \{2, b_3\}, \{3, c_1\}, \{3, c_2\}, \{3, c_3\},$$ and call this list of subsets $(t)$. I don’t understand the following part of the solution: To show that at least three different sets in the list $(t)$ are subsets of at least four sets in $X$. Suppose that at most two different sets in the list $(t)$ are subsets of at least four or more sets in $X$. Every set in $X$ contains at least one set in list $(t)$, so the total number of sets in $X$ is at most $34\cdot2+7\cdot3=89<100=|X|$.  Therefore, there are at least three different sets $P1, P2$ and $P3$ in the list $(t)$ which are subsets of at least four sets in $X$.


I've tried dual booting and installing Ubuntu 20.04 with the recommended methods on the internet using the latest Rufus with GPT (my system is UEFI), disabling Secure Boot, Fast boot, using "nomodeset" in the Grub bootloader (I have a AMD processor HP ENVY), but it always stops at this error screen while booting.  This black screen appears while I boot Ubuntu from my USB drive, and it hangs it here, nothing afterwards. I could install Ubuntu in VirtualBox on my laptop, but it has been weeks I've been trying to install it from my 16GB USB stick, but I had no success.


Corrupted Linux hard drive. How to recover files?

have totally broken one a Linux device. I can't login in terminal try, and the GUI screen won't come on, even though there is a mouse in tty7 (though that is an unrelated problem). The device is an i386 intel atom netbook running lubuntu (newest version I believe), just one partition for only one OS. It gives long strings of incomprehensible (long and meaningless, not garbage though, actual errors, just extreme panic) error messages when I try to log in, and when I was logged in entered any command. As a result, I could not use ls, cd or so on to get an idea of where precisely it was broken, or reset tty7 to stop aforementioned unrelated problem to try in GUI. When I was logged into tty7, and tried to do anything, it gave error messages about not having a path, just like when I entered commands in terminal tty's.  I know why this happened, though. Due to extreme stupidity, and lack of experience, whilst I was using dd to update, and get working, the live usb version of lubuntu on a usb, (8GB, one partition), I sent it to sda (harddrive) not SDB(usb). I was root. It gave up halfway through. Essentially, I believe I have just partly overidden the hard drive with a live usb lubuntu, and stopped midway through so as it became too broken to run commands anymore.  It is not totally broken, though. It seems capable of giving panicky messages, and displaying the GUI screen. It is only attempts at actually doing anything that fail, for example, accessing log out and shut down options on the GUI. I could not shut down neatly (not without holding down power button), so have not yet decided to, on the grounds I probably won't be able to load it again anyway.  Thankfully, this is an expendable computer, given to me to basically experiment with and break. I've already broken it once or twice, once by catting the hard drive. This time, however, there are some c++ folders in /home/matthew with files I'd rather not use. Is there any way to recover them (the live usb still does not work, but we could get it working using another device)  Sorry about the long (and stupid) question, and losing the files wouldn't be the end of the world. Nevertheless, important lessons about not using root, checking code before running, backing up important files and recording errors aside, is there a way to get my code files back?


When the verb precedes the noun "percentage", a singular verb is required

According to Garner's fourth edition  When the verb precedes the noun percentage, a singular verb is required. That is, a higher percentage of them are, but there is a higher percentage of them  I'd love to have some elaboration on this point because I could't find any related information at all. Does this singular have to do with the pronominal there itself in general? EDIT:  Though serving as a plural when the need arises, series is ordinarily a singular noun. But it is also a noun of multitude, so that phrases such as a series of things take a plural verb. However, the collocation there {has been - is} a series has predominated in print sources. Common nouns of multitude: lot, majority, mass, minority, multitude, percentage, proportion, variety.  According to Microsoft® Encarta® 2009,  If you put the indefinite article a before percentage, use a plural verb when the noun or pronoun in any subsequent prepositional phrase is regarded as a countable plural, not a unit or a whole: A large percentage of the errors are found in this text. If the noun or pronoun object in such a phrase is singular or is regarded as a unit or a whole, use a singular verb: A large percentage of the electorate remains undecided.  However, a counterexapmle:  If you are speaking of the senators as individuals, say A majority of the senators have cast their votes


Find the value of: $\lim_{n \to \infty}\left(\frac{1}{n+1}+\cdots+\frac{1}{2n}\right)$

Calculate $$\lim_{n \to \infty}\left(\dfrac{1}{n+1}+\cdots+\dfrac{1}{2n}\right).$$   I tried relating it to a Riemann sum, but I couldn't see how to do so.


How to remove white space before reference?

I'm using  \usepackage{cite}   to reference bibliography (I'm using bibtex). In general the text is in greek, but bibliography is in english. I'm using babel package, so in order to write in english you need to put your text between \selectlanguage commands, which change the language. For example, to write a reference I have to use  \selectlanguage{english}\cite{foo}\selectlanguage{greek}   because else latin characters get substituted by greek and I don't want this to happen since bibliography is in english.  So I made a little macro:  \newcommand{\citem}[1]{\selectlanguage{english}\cite{#1}\selectlanguage{greek}}   For some reason, this command adds white space before the reference. For example, if I want to reference book Blah Blah labeled as foo and write Some text (\citem{foo}), this prints out     Some text ( [Blah])   How can I make this space between the opening parenthesis and the bracket disappear?  I know for sure that the language is not the problem here, because I changed the macro to the trivial  \newcommand{\citem}[1]{\cite{#1}}   and printed     ( [Βλαη])   The latin characters turned into greek, this was expected, but the space remained.  Update: Thanks to egreg, I found a way to get rid of the redundant white space before references. Macro is:  \makeatletter \newcommand{\citem}[1]{%   \begingroup\let\cite@adjust\@empty   \textlatin{\cite{#1}}% \endgroup }   But now I can't use citem into a caption. Error is:  Argument of \@caption has an extra }.   <inserted text>     \par l.261 }


Existence of subgroup of order six in $A_4$

Show that  the  alternating  group  $A_4$  of all even permutations of $S_4$ does not contain a  subgroup of order $6$.   For me am thinking to write all elements of $A_4$ and trying to find every cyclic subgroup generated by each element of $A_4$, then I have to check whether there exist such a subgroup or not! This is a long procedure for me, I ask if there is a short way to do this.


How can I rig a cylinder so that when it's rotated its end cap will not penetrate the floor?

I have a default Blender cylinder positioned upright atop a ground plane:    How can I rig the cylinder so that can be animated to wiggle/jitter (perhaps procedurally with noise f-curve modifiers on two of its rotation axis) without penetrating the floor?    A simple parent-child relationship as in the image above is sufficient to rotate (and translate) the cylinder on 1 axis in either a positive OR negative direction.   I'm looking for a setup that would allow me easily to rotate the cylinder on two or even three axis in both a positive and negative direction.  I imagine this would be possible with some drivers applied to the XYZ coordinates using trigonometric equations but the math escapes me. It might also be possible using a particular bone setup with the correct constraints but my attempts to find something that works so far have not succeeded.  Thanks for your assistance.


How do I access files on Desktop from Ubuntu (WSL)?

I opened the Ubuntu app after installing it from the Microsoft Store. I created a username and password for the system, but I cannot access the files on my computer. How do I do that? I have command prompt for Windows 10, but I want to use the commands found in Linux.


Is it possible to kill Ulfric after joining the Stormcloaks?

So I've been thinking if it's possible to join the Stormcloaks only to realize Ulfric's an ass and kill him after that at some point of the game (I know you can't just go and kill him at first because he's an important NPC for the main story quests).  I don't want to join the Empire and - in my mind - what would make sense in my character's storyline would be him joining the Stormcloaks at first (because of how the game starts and my character being a Nord and having escaped with Ralof), but later realizing how Ulfric is only after power and how his fight against the Empire might even benefit the Altmers by weakening both forces (Empire and Rebellion). His Talos talk is just an excuse for his actions, as I see it. I really don't like this guy (he's a crazy racist who would do anything for power), but I also don't like what the Empire has become.  Please note that I don't really want spoilers about the plot, I just want to know if it is possible to challenge Ulfric to one-on-one combat "in the Old Nord Way" or just take the Rebellion for myself by assassinating him.


I need to write in my document some greek letter (outside any formulas). What do you suggest me? Thanks a lot


Why does t statistic increase with the sample size?

I have a question on reading t-test p-value. If I understand correctly, the t-statistic is computed as:  $t = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}}$  where $\bar{X}$ is sample mean, $\mu$ is population mean, $\sigma$ is sample standard deviation and $n$ is size of sample. Degrees of freedom is $n-1$.  Now, we can see that the t-statistic is inversely proportional to the standard error/variance of the sample population ($\sigma / \sqrt{n}$). Higher $n$ leads to smaller standard error that gives higher t-value. Higher t-value means lower p-value infering that the difference between sample-mean ($\bar{X}$) and population-mean ($\mu$) is significant (hence we reject the null hypothesis).   But this formula seems counter-intuitive to me as bigger sample size (higher $n$) should give sample mean closer to population mean.   How do we explain this?


Which Stack Exchange site for this type of question?

Which is the most popular Chiclet keyboard in the world same as laptop?        What proxy to use for online  flash games?


I'm getting this error often, and I'm fairly new to blender and I'm not sure if this is the same thing as the Auto-run disabled issue, but I can't finish my project with this error in the way.  It says:     ERROR: Python auto-execution disabled.     How can I fix this problem?


How do I export a part of an SVN repository with dependencies?

I am trying to migrate a part of an SVN repository using svnadmin dump.  The provided svndumpfilter tool doesn't manage copy/move/rename dependencies from directories not included in the export.  Is there a tool which can manage these dependencies?


I have an function to detect shapes in an image, this returns the shape name, from that I have an array of the returned shapes but was wondering how I could add a count to each shape detected?  So it would show:  rectangle 1  rectangle 2  rectangle 3  rectangle 4   and so on for each rectangle detected. The code I have at the moment is:  def detect(c):     # initialize the shape name and approximate the contour     shape = ""     peri = cv2.arcLength(c, True)     approx = cv2.approxPolyDP(c, 0.04 * peri, True)      # if the shape has 4 vertices, it is a rectangle     if len(approx) == 4:         # compute the bounding box of the contour and use the         # bounding box to compute the aspect ratio         (x, y, w, h) = cv2.boundingRect(approx)         ar = w / float(h)         #the shape is a rectangle         shape = "rectangle"      # otherwise the shape is a circle     else:         shape = "circle"      # return the name of the shape     return shape  # detect the shape shape = detect(c)  #array of rectangles rectangles = []  #add each rectangle found to the array 'rectangles' if shape == 'rectangle':     rectangles.append(shape)


Ubuntu 14.04 Network Manager is not available after Sw-Update

After running a regular Sw-update this morning, and restarting my Lenovo T430-based Ubuntu 14.04, the Network Icon on my Gnome2-panel is all grey and on left-clicking on it, it says: NetworkManager is not running. I tried to start the service manually from a terminal:  sudo service network-manager restart   But this only returned:  stop: Unknown instance: network-manager start/running, process 5174   Needless to say, the network-icon in my gnome-panel remained grey and no internet-connection was established. And then, while trying to kill this process 5174 with:  kill 5174   the terminal returned:  bash: kill: (5174) - No such process   What's going on here ? Any advice how to get online again ?


How To Logout and Apply New Group Settings

Can someone please tell me how to logout and log back in again via the command line so that I can apply a new group's settings to a user. To put this in perspective, assume that I am currently logged in as testuseraccount, and then I  issue the commands below into the terminal.  su usermod -aG sudo testuseraccount   So I believe by typing su this logs me into root (but just within the shell). So how do I logout of root, then logout of testuseraccount & sign back in (in order to apply the sudo group to testusersaccount) via the terminal?


I'm trying to connect to mysql using the command  mysql -h 127.0.0.1   It comes up with the error  ERROR 1045 (28000): Access denied for user 'root'@'mydomain.com' (using password: NO)   Why is 127.0.0.1 being converted into my domain name, and how can I fix it? If I use skip-name-resolve, then instead of "mydomain.com" it uses the external IP.  Also, it does work when using localhost socket, but not localhost TCP.  I have bind-address = 0.0.0.0 in my.cnf and the only thing in /etc/hosts is 127.0.0.1 localhost  Edit: On Ubuntu 13.04, and MySQL 5.5.34


I've just cloned a full functioning website with its database.  But on localhost:    The index page shows a white page   When I go to the login page, it shows a login form with basic HTML, without CSS styles, and no template. When I try to log in, it redirects me to , which I am not allowed to access. I've tried to compare another page just now and it isn't white, but it doesn't show what it needs to show too. It shows the following code.   [t001_01_main.tpl.php] var addthis_config = addthis_config||{}; addthis_config.ui_email_note = 'verbind: test setting E-mail text'; */?>   I'm running the localhost on a Macbook Pro without MAMP. Other Drupal installations work fine.   I have tried putting the following code, but it gives the same result.  error_reporting(-1);  // Have PHP complain about absolutely everything  $conf['error_level'] = 2;  // Show all messages on your screen, 2 = ERROR_REPORTING_DISPLAY_ALL.  ini_set('display_errors', TRUE);  // These lines just give you content on WSOD pages. ini_set('display_startup_errors', TRUE);   I've looked into WPOD, but I can't access anything on the site. In /etc/apache2 there isn't any error.log file.  The problem isn't with one page; the user page is plain HTML and when logging in my site keeps redirecting to https:// (like said in the second paragraph). So many solutions found about WPOD can't be tried because I can't login.  The Drupal version of this project is 7.36, php version of my localhost is 5.6.19   I've tried updating the drupal version to 7.51 I've tried using php 5.4 (oldest version I have installed) There are no new errors in the watchdog table   Live site works like a charm , other local websites that I've imported to localhost allso work


Ubuntu doesn't render the window boundaries and top left corner correctly after sleep

Really I have no idea how this happened or how to describe it correctly.  I think it started after a sudo apt upgrade, and every time I close the lid on my laptop and re-open the lid, this happens.


What is the different between who and whom

When I have been learning english I can not understand different between who and whom?


Find f:R->R such that f(U) is open for all open sets U, but f is not continuous.

The title says it all, really. I'm confronted with this problem from my topology course, and I have made no progress. I'm not sure if I'm supposed to solve it with the "standard" topology on R or something else, but I think its true even with the "standard" topology- I just can't find such a function.  I would add that this is an introductory course in topology and I don't know most advanced notions.


to bring  to the front, as it clearly got lost or was reintroduced to google-code-prettify  Still Literal Strings will highlight the rest of the code as String, see this screenshot:    in the question referenced there is the answer, that this should have been fixed with code-prettify upgrade, but as it is clearly still not that way, i hereby ask this question:  Why is the codeblock highlighted as Strign after the String Literal?


Installing Ubuntu 18.04.2LTS on Lenovo Ideapad Yoga 530 AMD Ryzen 5

Testing Ubuntu 18.04.2 on Lenovo Yoga 530 and not getting the mouse pad and the Wi-Fi to work.  It works with an external mouse and I can connect to my phone via Bluetooth.    When running rfkill command, I get that there is a hard block on Wireless LAN.  0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 3: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   How can I remove the hard block?  Also, running the lscpi | grep Wireless gives me this:  01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter   Running the wireless-info script I get the following result:    Any help appreciated


Solving $\lim\limits_{x\to0} \frac{x - \sin(x)}{x^2}$ without L'Hospital's Rule.

How to solve $\lim\limits_{x\to 0} \frac{x - \sin(x)}{x^2}$ Without L'Hospital's Rule? you can use trigonometric identities and inequalities, but you can't use series or more advanced stuff.


Failed to set MokListRT error and can't access Windows anymore

I had installed Windows on my machine and wanted to install Ubuntu alongside Windows in a dual boot. First I shrank my Windows C drive, and in options of the Ubuntu 20.10 installer I just chose "Installed in dual boot" (something like that). At the end of installation I received some errors, but Ubuntu was still able to boot and function normally. Then when I restarted it become like this:  Failed to Set MokListRT: Invalid Parameter Could not create mokListRT: Invalid Parameter Importing MOK states has failed: import_mok_state() failed : Invalid Parameter Continuing boot since secure mode is disabled_  I just want to know how to fix this error and enable my computer to dual boot. I checked if Windows files are still on disk, and they are.


Rsync duplicating files that in the source directory are symlinks

I have a 4TB internal drive in my ubuntu server. This drive contains backups made by a script that's been running for years. This script creates a new directory every day and rotates the existing ones, something like backup.1 (today), backup.2 (yesterday), backup.3, and so on. It keeps 365 directories (so a full year of backups). The script uses symlinks in order to not duplicate files. So backup.1 will contain new/changed files but files that are the same than yesterday will be symlinks to the files referenced in backup.2 (or point to the same inode if the one in backup.2 is a symlink). So this is very efficient. The problem is I'm attaching an external drive now, another 4TB drive. I want to run a script to "clone" the internal 4TB directory using rsync. This is my script: echo "Stopping crons" /etc/init.d/cron stop  echo "Mounting external drive" mount /dev/sdd1 /mnt/external-drive/  nice -n2 rsync -av --delete /mnt/master/ /mnt/external-drive/  echo "Starting CRONS" /etc/init.d/cron start  The problem I have is my external drive is full. I check and rsync is not keeping the original structure. It's rather creating a new file even for the files that in the source drive are just links. My source drive has only 2TB used.


Why is filling a balloon from your mouth much harder initially?

Why is it that when you first fill up a balloon, it's hard to get air through, but after inflating it a bit, it becomes much easier to further inflate the balloon?


Seemingly equivalent list initialization results in different behavior

I'm solving  in Python 3 and came up with the following solution:  def dynamicArray(n, queries):     seqList = [[] for _ in range(n)]     lastAnswer = 0     result = []      for query in queries:         if query[0] == 1:             seqList[(query[1] ^ lastAnswer) % n].append(query[2])         elif query[0] == 2:             seq = seqList[(query[1] ^ lastAnswer) % n]             lastAnswer = seq[query[2] % len(seq)]             result.append(lastAnswer)      return result   This works fine and passes all test cases.  The problem is when i change the initialization of seqList from the following:  seqList = [[] for _ in range(n)]   To this:  seqList = [[]] * n   Then all test cases fail and i cannot figure out why. There are no other changes in the code.  I've even created the following simple test case just to compare the results of these initialization methods:  n = 3  a1 = [[]] * n a2 = [[] for _ in range(n)]  print(a1) print(a2) print(a1 == a2)   And the result is as expected:     [[], [], []]      [[], [], []]      True   I'd really appreciate if someone could explain this behavior to me.


Resize screen to display only on working part of semi-functional touchscreen

I have a oneplus android phone.  The touch screen recently started malfunctioning so that the bottom centimetre of the screen does not work, but the rest of the screen works perfectly well.  Unfortunately the bottom centimeter contains lots of important functions.  Is there a way to resize my display or resolution so that it excludes the bottom centimeter of my screen?


Given $x,y \in \Bbb{R}$, show that:$$x^2+y^2+1\ge xy+y+x $$ I tried using the fact that $x^2+y^2 \ge 2xy$ But then I'm not sure how to go on, Also tried factoring but didn't help much, also tried substituting $\frac{x^2+y^2}{2}$ instead of $xy$ but that gave me the same result of the first substitution, i.e. $xy+1\ge x+y$  This inequality seems very easy, I'm feeling dumb for not having solved it yet


Locking in Capital Gains when in Lower Tax Bracket

I am a college student graduating this upcoming year. I have a decent amount currently invested in a taxable brokerage account.  For the 2019 year I would be in the 0% long term gains bracket and 12% marginal income bracket (which I believe is used for short term gains). Next year I anticipate moving into the 15% long term gains bracket.  Since the market is up, before the year is out I was thinking of trying to realize these gains (I have a mixture of both short term and long term gains currently) by selling and just rebuying the same positions. Since both tax rates are lower than long term gains will be next year I was thinking of doing this for both.  Is this a smart idea or am I missing something? Are there any other considerations I should be aware of?


How to install ubuntu 18.04 server minimal?

When I install Ubuntu server the footprint is 3.5GB no matter what I do. If I install debian it is about 700MB. Is there no way to install Ubuntu without installing all of those packages? Just a bare bone install.


By mistake I have upgraded Ubuntu from 20.04 to 21.04. Is there an easy way of going back to the previous release?


Ok, bear with me guys and girls as I'm learning.  Here's my question.  I can't figure out why I can't override a method from a parent class.  Here's the code from the base class (yes, I pilfered the java code from an OOP book and am trying to rewrite it in C#).  using System;  public class MoodyObject {     protected String getMood()     {         return "moody";     }      public void queryMood()     {         Console.WriteLine("I feel " + getMood() + " today!");     } }   and here are my other 2 objects that inherit the base class (MoodyObject):  using System; using System.Collections.Generic; using System.Linq; using System.Text;  namespace ConsoleApplication1 {     public class SadObject: MoodyObject     {         protected String getMood()         {             return "sad";         }          //specialization         public void cry()         {             Console.WriteLine("wah...boohoo");         }     } }   And:  using System; using System.Collections.Generic; using System.Linq; using System.Text;  namespace ConsoleApplication1 {     public class HappyObject: MoodyObject     {         protected String getMood()         {             return "happy";         }          public void laugh()         {             Console.WriteLine("hehehehehehe.");         }     } }   and here is my main:  using System; using System.Collections.Generic; using System.Linq; using System.Text;  namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             MoodyObject moodyObject = new MoodyObject();             SadObject sadObject = new SadObject();             HappyObject happyObject = new HappyObject();              Console.WriteLine("How does the moody object feel today?");             moodyObject.queryMood();             Console.WriteLine("");             Console.WriteLine("How does the sad object feel today?");             sadObject.queryMood();             sadObject.cry();             Console.WriteLine("");             Console.WriteLine("How does the happy object feel today?");             happyObject.queryMood();             happyObject.laugh();         }     } }   As you can see, pretty basic stuff, but here's the output:     How does the moody object feel today?   I feel moody today!      How does the sad object feel today? I   feel moody today! wah...boohoo      How does the happy object feel today?   I feel moody today! hehehehehehe.   Press any key to continue . . .   Not as I expected.  I've tried to make the base method virtual and calling override when trying to override it and that just gets me this error "cannot override inherited member 'MoodyObject.getMood()' because it is not marked virtual, abstract, or override".  I also tried it without the virtual and override and it thinks I'm trying to hide the base method.  Again, I'm new to OOP and would appreciate any guidance.  EDITED TO ADD:  I found it!  The MoodyObject.cs was only a "solution item" in the solution explorer as opposed to a "ConsoleApplication1" item.  I dragged it down to where it belonged in the solution explorer and voila!  It works now.  I marked Luc's answer below as the answer because he offered the help I needed to get to where I have it resolved... I'm learning so much here.  It's amazing and you guys and girls are crazy smart!


$f$ Holder continuous with Holder exponent $p>1\implies f \text{ is constant}$

Say I have a function on a an interval $I$ in $\mathbb{R}$ $f: I \to Y  $ where $Y$ is any metric space.Say $f$ satisfies $d_{Y}(f(y), f(x)) \leq  C\cdot|y-x|^p$, for all $y,x \in I$ where $p \in (1,\infty)$ , i.e. $p$ is bigger than $1$ (so this is much stronger than mere Holder Continuity). I want to show that $f$ is constant on $I$.   Here is what I got so far. $f$ is obviously continuous. Also, it makes intuitive sense for $f$ to be constant, since $p >1$ will make $|y-x|^p$ very small for for $|y-x| \ll 1$.   I also feel like I have to look at the expression  $$\frac{d_{Y}(f(y), f(x))}{|y-x|} \leq  C\cdot|y-x|^{p-1}$$ (Note: There is no notion of differentiability here). I'm also thinking that splitting up the interval $[x,y]$ (assuming $x<y$) will help me like so:  $$d_{Y}(f(y), f(x))\leq\sum_{k=1}^{k=n}d_{Y}(f(x_k), f(x_{k-1})) \leq C\cdot\sum_{k=1}^{n}  |x_k-x_{k-1}|^p = \sum_{k=1}^{n}  (\frac{1}{n})^p = n^{1-p} $$      $ (y = x_n, x = x_0)$.  Is this the answer, that last equality chain?  Edit:  That last chain of equations, as suggested in the comments below should be $$d_{Y}(f(y), f(x))\leq\sum_{k=1}^{k=n}d_{Y}(f(x_k), f(x_{k-1})) \leq C\cdot\sum_{k=1}^{n}  |x_k-x_{k-1}|^p $$ $$= C\sum_{k=1}^{n} (\frac{|y-x|}{n})^p =|y-x|^p n^{1-p} $$


Question about using "only" in the sentences

For example I want to say:     I slept only 5 hours last night   or     I only slept 5 hours last night.   Which one is correct?


WiFi not connecting in Ubuntu 14.04 (Dual boot)

My Sys Spec: HP-Laptop (Pavilion Notebook) Os         : Window 10(Original with Laptop) , Ubuntu-14.04 (Dual Boot)  My system has dual boot, Windows-10 and Ubuntu-14.04. After installing ubuntu, I am unable to see Wifi Connections and unable to connect to Wifi (Wireless) Connections. However I am able to connect through Wired (LAN) Connections  This issue is not there in Window-10. Its working fine in Windows-10.  Can anyone help me on this please ?


I recently installed ubuntu on my windows pc and everything worked fine and i was using ubuntu since i installed it and everytime i restart my computer it would bring me an option to choose from ubuntu and windows boot manager...and now i choose to open windows and when i restart again there is no option anymore i couldnt go back to ubuntu again.I tried enabling boot menu options on windows cmd but it just gave me an option to choose from windows versions. Is there anyway i can fix this?


Let $a$,$b$,$c$ and $d$ be non-zero, pairwise different real numbers such that $ \frac{a}{b} +\frac{b}{c} +\frac{c}{d} + \frac{d}{a}=4$ and   $ac=bd$  . Show that $\frac{a}{c} + \frac{b}{d} +\frac{c}{a} + \frac{d}{b}\le-12$ and that $-12$ is the maximum.  I simplified the inequality to prove: $a^2+b^2+c^2+d^2\le -12ac$  But I am not sure what to do next. Hints and solutions would be appreciated.   Taken from the 2018 Pan African Math Olympiad


How can I - without using derivatives - find the limit of the function  $f(x)=\frac{1}{\cosh(x)}+\log \left(\frac{\cosh(x)}{1+\cosh(x)} \right)$  as $x \to \infty$ and as $x \to -\infty$?  We know that $\cosh(x) \to \infty$ as $x \to \pm \infty$ thus $\frac{1}{\cosh(x)} \to 0$ as $x \to \pm \infty$.  And I imagine that $\frac{\cosh(x)}{1+\cosh(x)} \to 1$ as $x \to \pm \infty$ thus $\log\left(\frac{\cosh(x)}{1+\cosh(x)}\right) \to 0$ as $x \to \pm \infty$.  Is this approach sufficiently formal?  Any help is appreciated.


A determinant of a combination of matrices

Following a book, I see a statement that reads      we find that (18.7.11) is euqivalent to $$ l^k\left|u_{ij}^W-\frac{b_ib_j}{l} \right|=0 $$ which can be written as $$ l^{k-1}\left|u_{ij}^W\right|\cdot\left[l - \sum_{i,j=1}^k u_W^{ij}b_ib_j\right]=0 $$   To translate, the book says that given that $0\neq l\in\mathbb{R},\;{\bf b}\in \mathbb{R}^k$ and $0<{\bf U} \in M_k(\mathbb{R})$, then $$ \det\left({\bf U} - \frac{{\bf b} {\bf b}^\top}{l} \right) = \det\left({\bf U}\right)\left[1 - \frac{{\bf b}^\top{\bf U}^{-1}{\bf b} }{l} \right]$$ Can anyone help me understand why that's true?


What's the reasoning behind GRE scoring scale?

Is there a reason for it being 130 - 170, rather then 0 - 40? Is it to make it easier to use the value in some other calculation?


A finite group which has a unique subgroup of order $d$ for each $d\mid n$.

Problem Suppose G is a finite group of order $n$ which has a unique subgroup of order $d$ for each $d\mid n$. Prove that $G$ must be a cyclic group.  My idea:   I try to prove it by induction. Let $p|n$ be a prime. Then by condition, there exists a unique subgroup $H$ of order $n/p$. Since $|gHg^{-1}|=|H|$, we must have $gHg^{-1}=H$ by the uniqueness part of the condition. So, H is a normal subgroup. Now, $|G/H|=p$ and thus $G/H=\langle x\rangle$ where $x^p \in H$.    However, I cannot continue.  My another idea is that first consider the case when $|G|$ is a power of some prime $p$. But, it still doesn't work.


Where did texture paint in UV editor go?

Before 2.8, it was possible to change the mode of the UV editor to "draw" (I don't know the exact name) and thereby texture paint within the UV editor. The option has disappeared in 2.8. How can I draw in the UV editor or image editor?  I used Windows Paint to make the thin lines, but we don't have the various texture types there, so it's not an alternative solution.  Solution:


Let $R$ be a commutative ring with unit. Is it true that given an ideal $I$ and $r \geq 2$ principal ideals $P_1, ..., P_r$, then if $I \subseteq \bigcup_{i = 1}^r P_i$, $I \subseteq P_i$ for some $i$? This would be the analogous of the Prime Avoidance Lemma for principal ideals.


I have tried to use the Stolz theorem and calculate $\lim_{n\to \infty}{\frac{a_{n+1}-a_n}{b_{n+1}-b_n}}$ and i have reached $\lim_{n\to \infty}{\frac{1 + \frac{1}{2} + \frac{1}{3} + ... + \frac{1}{n-2} + \frac{1}{n-1} + \frac{1}{n}}{\ln (n+1)}}$ but I do not know how to continue. Could someone help me? Thanks in advance.


I am interested in good integer approximation from below and from above for binary Log(N!).  and  provides only a general idea but not exact values. In other words I need integers A and B so that  A <= Log(N!) <= B


Indexing the page number of each bibliography item

Assume that that I am using the following environment for the references of my paper:  \bibliographystyle {amsalpha} \begin {thebibliography} {VDN92} \bibitem{abels} {\bf H. Abels,} Parallelizability ... Math. Ann. vol. 212, (1974), 1--19.  \end {thebibliography}   What should I do to add the page number of occurrences of this paper (those pages of my paper that I have cited the above paper) at the end of this citation?


When I trying to use vector iterator to template specialized class, in the template, I get an error C2146 in MSVS2012. Is it a compiler issue or something wrong with my code?  template <typename T> struct A { };  typedef A< int > Ai;  std::vector<   Ai   >::iterator;            // ok std::vector< A<int> >::iterator;            // ok  struct B {     std::vector<   Ai   >::iterator it1;    // ok     std::vector< A<int> >::iterator it2;    // ok };  template <typename T> struct C {     std::vector<  Ai  >::iterator it1;      // ok     std::vector< A<int> >::iterator it2;    // ok     std::vector< A<T> >::iterator it3;      // fail };


Are the Empire (or First Order) not using clones any more? If not, why?

In The Force Awakens, we see a rogue stormtrooper. This could be explained as a "glitch in the code" and many may have passed it by, but then he says something about being taken away from his family - which is a bit odd, if they were a clone, unless they were given fake families which I highly doubt. This made me wonder if the Empire have stopped using the clones for their storm troopers, and if this is the case, why?


Wi-Fi connection working only in the same room (RTL8723BE)

I have a Ubuntu 18.04 partition on my HP laptop (originally Windows 10). I am only able to connect to Wi-Fi while I am in the same room of the modem. When I go to another room I get the message "no networks available", even if other devices can connect and the "Windows part" too. I searched for problems like this, but I couldn't get a solution. I hope you can help me, thank you.  I tried lspci -knn | grep Net -A3; rfkill list This was the output:    02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:804c]     Kernel driver in use: rtl8723be     Kernel modules: rtl8723be 03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07) 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 5: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no   I tried uname -r, I got 4.15.0-36-generic.


I have tried to install MiKTeX 2.9 on my Windows 8 laptop and the installation wizard was running fine and i had no problems. when I was compiling TeX the first time the following occurred:  Sorry, but "MiKTeX Configuration Utility" did not succeed.  The log file hopefully contains the information to get MiKTeX going again:    C:/Users/Julian/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log  You may want to visit the MiKTeX project page (http://miktex.org), if you need help.  Sorry, but C:\Program Files\MiKTeX 2.9\miktex\bin\x64\texify.exe did not succeed.  The log file hopefully contains the information to get MiKTeX going again:    C:/Users/Julian/AppData/Local/MiKTeX/2.9/miktex/log/texify.log  You may want to visit the MiKTeX project page (http://miktex.org), if you need help.   Could somebody help me?


Changing font size around all the coordinates and Legends in horizontal stack chart

I am trying to reduce the size of text around the chart . I already tried  tiny and every node near coord/.append style={font=\tiny} but its make too small. Please help me \documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.17}  \begin{document} \begin{tikzpicture}   \begin{axis}[       xbar stacked,       width=15.6cm, height=7cm,        bar width=15pt,       nodes near coords={         \pgfkeys{/pgf/fpu=true}         \pgfmathparse{\pgfplotspointmeta / 106 * 100}         $\pgfmathprintnumber[fixed, precision=1]{\pgfmathresult}\%$         \pgfkeys{/pgf/fpu=false}       },       nodes near coords custom/.style={         every node near coord/.style={           check for small/.code={             \pgfkeys{/pgf/fpu=true}             \pgfmathparse{\pgfplotspointmeta<#1}%             \pgfkeys{/pgf/fpu=false}             \ifpgfmathfloatcomparison               \pgfkeysalso{above=.5em}             \fi           },           check for small,         },       },       nodes near coords custom=6,       xmin=0, xmax=109,       xtick={0, 10.6, ..., 106.1},       ytick={1,...,5},       yticklabels={A,B,C,D,E},       xtick pos=bottom,       ytick pos=left,       xticklabel={         \pgfkeys{/pgf/fpu=true}         \pgfmathparse{\tick / 106 * 100}         $\pgfmathprintnumber[fixed, precision=1]{\pgfmathresult}\%$         \pgfkeys{/pgf/fpu=false}       },       enlarge y limits=.15,       legend style={at={(0.5,-0.20)}, anchor=north, legend columns=-1},     ]       \addplot coordinates {(54,1) (49,2) (42,3) (41,4) (37,5)};       \addplot coordinates {(3,1) (7,2) (1,3) (7,4) (16,5)};       \addplot coordinates {(34,1) (28,2) (50,3) (43,4) (30,5)};       \addplot coordinates {(12,1) (20,2) (9,3) (11,4) (19,5)};       \addplot[color=violet, fill=violet!50] coordinates {(3,1) (2,2) (4,3) (4,4) (4,5)};       \legend{\strut Agree, \strut Strongly agree, \strut neutral, \strut Disagree, \strut Strongly disagree}   \end{axis} \end{tikzpicture} \end{document}


Need to Pass the values as hidden in Url in Salesforce

Has anyone have the idea of passing the values as hidden in url  for example I need to pass the values of First Name,Last name,email,address & so on  \apex\page2?fn=test&ln=test&email=vemula.aruna@clickandpledge.biz&bill=adres,adres2,city,508209,840,Alabama,&tdate=12/11/12   If I pass them like that I'm getting a very large URl.Any remedy for this


How to restrict anonymous users to a single product and quantity 1 using Commerce and Rules?

I have a slightly unusual use case in that I want to allow authenticated users to order multiple products and use the shopping cart but I want to limit anonymous users to purchasing products individually (no changing quantities, no adding multiple products to the cart).  I am using Commerce and Rules on Drupal 7.  Because I do not want anonymous users to access the cart, I want to redirect them to the checkout page if they attempt to access the cart (I know this is not the most foolproof method, but it is sufficient for my purposes).  I tried creating a rule triggered on the event Content is viewed with the condition Path has URL alias of cart.  However, this rule is not triggered; when I add a Path redirect action and then visit the cart path, I am not redirected.  What event should I use in Rules to do the redirect?  Or is there some better way to do this?


Regex for repeated sub strings in a lengthy string

I have a string which has repeated values "There are 14 no of pigs and 11 no of cows and many more".Here in this string I want to find the substring starting with number and ending with animal names and replace with some other string.  tried with this. But it selects complete string (\b\d+.* (pig|cow|chicken)s?\b) And not the individual substrings.


What is a good book on analysis and calculus?

I am looking for a book on (one variable) real analysis that includes, simultaneously:   A treatment of the abstract and theoretical aspects of real analysis; A treatment of the more mechanical and computational aspects of calculus (such as techniques of antidifferentiation, for instance).   The reason I'm finding this hard to find is that usually undergraduates take a course in calculus where they learn mostly the mechanics and then take a real analysis course where the emphasis is on theory. I'm looking for a book that integrates these two aspects. Ideally the logical prerequisites should be (besides some mathematical maturity) the mathematics one learns in high school (algebra, trigonometry, ...).


Electromagnetic and gravitational interactions are similar - they are mediated by massless particles, they have infinite range and they diminish with $1/r^2$. The main difference is that gravity is always attractive while electromagnetic force is not. A photon intermediating electromagnetic force has spin 1 while graviton should have spin 2. What is a reason for different spin values of photon and graviton?


How to Show Funds if you sponsor someone a UK Visit Visa

I would like to Sponsor a trip to UK as holiday for my parents. My Dad is retired and mom is house wife. I am in Employment (not in UK) have active Bank Account and a Business. Can I attach my Bank Statement & Affidavit stating I am sponsoring my parents Trip? Is that acceptable to show funds this way? Do I have to transfer the funds to their Account to make it more Legitimate?


I recently bought a Lenovo Z51-70 which has 5yh Gen i7 and 8GB RAM with 4GB AMD Tropo X2 Graphics. With this configuration it should play almost every high end game but it only happens when I connect a charger. As soon as I disconnect it the Games start lagging. I've contacted Lenovo support regarding this and they've asked me to install some drivers which  didn't work. Finally I've decided to go it's service center this Saturday but just want to know if anyone else had this issue lately and what can I do to solve it.


I want to add a definition in my LaTeX file. However, I have a dot after the word definition. How can I remove it? I want:     Definition Here is the definition   NOT     Definition. Here is the definition   \newtheorem*{definition*}{Definition}                       \begin{definition*}                 Here is the definition                \end{definition*}


How to complete the "How much money are you planning to spend on your visit to the UK" for a child travelling with both parents?

The mother and father are sharing the expenses for the holiday. Family of 4. For example total cost for whole family is 100 pounds. Do I put 25 pounds on each persons application or 100 pounds on the father's application? The website does not accept 0 so should I put 1 pound for the children and mother if the answer is 100 pounds for the father? Or 50 for the mother and 50 for the father as they are sharing the cost?


Dealing with bundle/omnibus/list-of-questions question that consists of rather distinct questions

I have looked at the various help pages but I couldn't find a clear guideline for the following issue: often enough someone will ask in the same post (i.e. in the same SE-question) a whole bunch of questions (in the plain English sense of the word), which while may be about the same topic are nevertheless sufficiently distinct that each may require several paragraphs of text to answer adequately.   I can see an upside for leaving related questions grouped together from the asker's perspective: "there's a thread (on SE) answering all my questions about topic T!" On the other hand, from the perspective of organizing questions by having a clear heading/title for each (actual) question and so forth, i.e. from the perspective of SE being a fairly structured database of Q&As instead of being a more like a collection of forum threads "I'm confused about topic T", the omnibus question-list approach seems clearly sub-optimal.  The omnibus approach also makes the issue of accepting answers (and perhaps reviewing such actions) difficult: if two different users give replies to different parts/sub-sets of the question-list, which one is the most adequate one? Even upvoting all partial answers seems iffy because it actually penalizes the user(s) who provides(s) the most complete answer to the question-list: since a user can only give at most one upvote to another user's answer, if user X provides answers to A & B in the same SE-answer, he can only get at most one upvote from user Y, whereas if these were two different SE-answers, he could get two upvotes from user Y.  So, given the above problems, which I think are real enough, is there anything in the SE system addressing list-of-questions question splitting?


How to select entities not within a given cylinder in minecraft

I built a flat circular plane in minecraft, and am trying to force players to remain within this area. The circle is 161x161 centered around 0, 44, 0. I then placed a command block at the very center, with the command tp @a[rm=80,r=85] 0 45 0. This teleports everyone more than 80 and less than 85 blocks from the command block back to the center of the circle, creating basically a hemisphere (the sphere is cut in half by the circular plane) to move within.  However, I want to instead restrict movement to a cylinder from y=44 to y=infinity. With this method you would only be teleported when your x and z coordinates exceeded the boundary of the 161x161 circle, ignoring your y coordinate. You would be able to stand at the edge of the circle and fly up as high as you wanted without being teleported. This does need to keep the same property of the previous command to not teleport players outside 85 blocks. It will only teleport those who have an x and z change of between 80 and 85 blocks ( 85>sqrt(x²+y²)>80 )  I tried variations of the command involving the dy argument, but this only removed the teleport all together.  Note: If it is not possible to have an infinite height limit, restricting to any value above y=70 would also work. In addition, the ideal minimum of y=44 can be changed, but not increased.


Let $X_1,...X_n$ be a random sample with distribution $\text{Normal}(\theta,1)$. Find the UMVUE for $\theta^2$  What I´ve done so far:   I have already shown that $T=\sum_{i=1}^nX_i$ is a complete sufficient statistic for $\theta$. Let $\widehat{\theta^2}=\bar {X}^2-\frac{1}{n}$ be an estimator for $\theta^2$   $$E[\widehat{\theta^2}]=E[\bar {X}^2-\frac{1}{n}]=E[\bar{X}^2]-E^2[\bar X]+E^2[\bar X]+\frac{1}{n}=Var(\bar X)+E^2[\bar X]+\frac{1}{n}$$  I know that $\bar X$ has distribution $\text{Normal}(\theta, \frac{1}{n})$ It follows that :$$E[\widehat{\theta^2}]=\theta^2$$ Hence $\widehat{\theta^2}=\bar {X}^2-\frac{1}{n}$ is unbiased estimator  Know I have to compute $g(T)=E[\widehat{\theta^2}|T]$ and by Lehmann-Scheffé this will be the UMVUE for $\theta^2$ but the problem is how can I compute $$E[\widehat{\theta^2}|T]=E[\bar {X}^2-\frac{1}{n}|\sum_{i=1}^nX_i]$$ I know I need to find the joint density of $\bar {X}^2-\frac{1}{n}$ and $\sum_{i=1}^nX_i$ but is there an easy way to do it?  Or is there another way to find the UMVUE? I would really appreciate if you can help me with this problem


Custom user role that can only edit specific (non-custom-type) page and all child pages

My site has several static pages and several custom post types. I'm trying to create a custom user role called students and give students access to ONLY certain custom post types and certain specific static pages.   I understand how to do this with custom post types by using add_cap() and populating the 'capability_type' and 'map_meta_cap' fields passed to register_post_type for that custom post type.   However, I don't understand how to do this for generic pages (which are not custom, but have been populated with different content). Specifically, I would like to take a parent page called internal-resources and give the student users editing capability for that specific page. There are some child pages of the internal-resources page they should be able to edit too. Finally, I would like them to be able to create new child pages under internal-resources. However, other static pages like Research and People they should NOT be able to edit. This shouldn't be too difficult, right?  Thanks for the help!!


I am trying to migrate from Lubuntu 19.0.4 disco to 20.0.4 focal via 19.10 but keep hitting wall, xvfb & python3-psutil dependencies?

Here is what I get The following packages have unmet dependencies. chrome-remote-desktop : Depends: xvfb but it is not installed Depends: python3-psutil but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)


How do I derive the Lorentz contraction from the invariant interval?

Reviewing some basic special relativity, and I stumbled upon this problem:  From the definition of the proper time: $$c^2d\tau^2=c^2dt^2-dx^2$$ I was able to derive the time dilation formula by using $x=vt$: $$c^2d\tau^2=c^2dt^2-v^2dt^2=c^2dt^2\left(1-\frac{v^2}{c^2}\right)\rightarrow d\tau = dt\sqrt{1-\frac{v^2}{c^2}}=t/\gamma$$  Now, I would very much like to be able to derive the length contraction formula in a similar fashion, and feel strongly that this should be possible. The definition of the invariant interval is: $$ds^2=dx^2-c^2dt^2$$ using $t=\frac{x}{v}$ I tried: $$ds^2=dx^2-\frac{c^2}{v^2}dx^2=dx^2\left(1-\frac{c^2}{v^2}\right)\rightarrow ds=dx\sqrt{1-\frac{c^2}{v^2}}$$  This is where I'm stuck: I don't see how this can be converted to a Lorentz factor...  Any help that will allow me to arrive at the desired result $ds=\gamma dx$ would be very much appreciated.


Full Screen Netflix in Chrome causes my screen to goblank on Ubuntu 14.10

thanks in advance.  This started 3 days ago and I can't for the life of me figure this out. When I start a video in Netflix in Chrome,it starts perfectly. Then, when I change to full screen, the image freezes for a moment, my screen then goes black and I can't get out without a restart.  It is in Chrome 44 64 bit and Ubuntu 14.10. I tried uninstalling  and reinstallingbut with no luck. ANy ideas?


If it's flat then how a volume can be flat? And I've read that it's actually not flat .....it's a "Poincaré dodecahedral space". Any suggestions for books posts or articles are highly appreciated.


Making underscore persistent in LaTeX math mode (for long subscripts)

Is there at all a way to make underscores and carets persistent in LaTeX math mode? What I mean, is to be able to write several-character sub/superscripts without using curly brackets. Could LaTeX maybe understand that a white space determines the end of my sub/superscript?  A quick example. I'd like to have something like  x_ij y_ij   Compile to the same result as  x_{ij}y_{ij}   I understand that this is probably not a really reliable thing, but I'm looking to take notes faster during class!  Many thanks


What is a good substitute for oyster sauce (for someone with a shellfish allergy) that is also allergic to mushrooms?

I just started to teach myself to cook some Chinese food recipes however a great deal involve oyster sauce. When trying to look up alternatives everything kept saying a form of mushroom sauce. Problem is I'm highly allergic to mushrooms as well. What is a good substitute?


Let $G$ be a group where $(ab)^3=a^3b^3$ . Prove that $\{ x^3 \mid x \in G \}$ is a normal subgroup of $G$.   I just don't know how to start. I proved it is a subgroup (was pretty easy) but how to prove it's normal? Thanks in advance for your help!


Would running against the spin in a rotating space station reduce the pseudo gravity?

I'm reading a science fiction book where a character is on a rotating space station orbiting Mars.  She is running opposite to the spin at a speed where Mars is stationary overhead.  Would this cancel out the artificial gravity caused by the rotation?  If so, what would happen to her?  EDIT - I did look at the answer to a similar question after sammy suggested it, and while it is the same question, I still wonder about what would happen. If you're running against the rotation, you would probably begin to float.  But then the moving air would catch you.  I assume that you would then fall back to the "floor".  Does that seem sensible?


Free software that monitor CPU temperature under El Capitan?

Is there some free software that can show CPU temperature in real time for OS X El Capitan?   doesn't provide such an option.


I've coded a little comment function on my website by PHP. I have noticed that there is a huge security risk. Users can write some HTML/PHP/MySQL and insert it into the table. Is there a easy way to prevent this?  This is my PHP insert script:  <?php     if ( $_SERVER["REQUEST_METHOD"] == 'POST' ) {     $kommentar_neu = $_POST["kommentar"];      if (!empty($kommentar_neu)) {          $order = "INSERT INTO $db_kommentare         (kommentar, teilnehmer, kommentardatum, projektnummer)         VALUES         ('$kommentar_neu', '$teilnehmer_name', '$zeiteingabe',           '$projektnummer_hw_order')";     }     } ?>


Why do not we use radian unit sign well?

Mentioned the word) Radian-unit-sign, rad, unit, radian, pure number, ratio, symbol, speed, distance, time


Dual boot system (Windows10-Ubuntu 18.04) on Uefi pc?

I own a Aspire E 15 laptotp where I installed Ubuntu 18.04 because I fell in love with this OS.  I later discovered that games doesn't run very well on this system because they are simply not designed to, even with compatibility layers like Wine the performances reached are terrible and the hybrid GPU design of my pc doesn't allow me to fully experience the dedicated Nvidia card.    My laptop uses UEFI and some people told me that I would never be able to install W10 in a double boot configuration with Ubuntu, is it true?


Proving that $\cos(2\pi/n)$ is algebraic

I want to prove this without using any of the properties about the field of algebraic numbers (specifically that it is one). Essentially I just want to find a polynomial for which $\cos\frac{2\pi}{n}$ is a root.  I know roots of unity and De Moivre's theorem is clearly going to be important here but I just can't see how to actually construct the polynomial from these facts.


is it 'wrong' to upvote lots of answers from the same author to grant them bonus rep?

I've recently come across a few really well written and researched answers contributed by low rep users.  I feel like my solitary upvote isn't sufficient reward for their efforts. (Yes, I know that truly good answers will attract votes from other users, but in less active tags this can take a while.)  Is it 'wrong' to go to the user's page and go through other answers and questions they have worked on to give them 'bonus' rep?  I wouldn't upvote obviously bad answers, but if the answer is at least ok - or if the answer is an area I don't have experience in - is this 'reverse-gaming' or a legitimate technique to help great new SO-ers?  Edit: thanks for the feedback. It's a good thing I asked first...  Might have to ask a new question about how to help people 'level up' in quieter areas of SO.


.on(click,function) not working for dynamically added content

My dynamic posts are added by .load() and they enter the DOM as such:

Basic Info
<button class="closer">X</button>

Notes:

Lorem ipsum dolor sit amet.

   My jQuery to remove the the post works on the static first post on the page but not the newly added dynamic ones. Here is the jQuery:       $(".closer").on('click', function() {          $(this).parent().remove();      });   I've been trying different selectors and reviewing similar problems from other people but still can't seem to get it work. Any help is much appreciated :)


I am new to Linux. I want to remove the home directory of the user andreas which was the administrator account into a directory called admins. I ran the command  mv /home/andreas /admins   I logged out and tried to log in and it does not let me log in. When I entered the password it leaves me at the login screen. How can I fix it?   root@ubuntu:/home# ls -al total 28 drwxr-xr-x  7 root    root    4096 Mar  4 10:19 . drwxr-xr-x 24 root    root    4096 Mar  4 10:10 .. drwxr-xr-x  3 root    root    4096 Mar  4 10:10 andreas drwxr-xr-x  2 root    root    4096 Mar  4 08:58 employees drwxr-xr-x 19 kostas  kostas  4096 Mar  4 10:23 kostas drwxrwxrwx  2 nicolas nicolas 4096 Feb 19 08:54 nicolas drwxr-xr-x  2 root    root    4096 Mar  4 08:56 users    root@ubuntu:/home/andreas# ls -al total 12 drwxr-xr-x  3 root    root    4096 Mar  4 10:10 . drwxr-xr-x  7 root    root    4096 Mar  4 10:19 .. drwxr-xr-x 22 andreas andreas 4096 Mar  4 08:55 admins root@ubuntu:/home/andreas#    root@ubuntu:/home# ls admins  andreas  employees  kostas  nicolas  users  root@ubuntu:/home/admins# ls Desktop    examples.desktop  personal_info.txt  sensitive_info.txt Documents  mario             Pictures           Templates Downloads  Music             Public             Videos root@ubuntu:/home/admins#


I'm new to sql, What's the difference between  select vehicle.plates, make, model  from vehicle     join registration on registration.plates = vehicle.plates  where country = 'Japan';   And  select vehicle.plates, make, model from registration, vehicle where registration.plates = vehicle.plates and country=’Japan’;


I have tried burning Ubuntu 12.04 to disc by using Nero and also using infrarecorder.    When i use infrarecorder and burn as image and check files on disc, I only get four files and not the reset.    I have seen in how to burn in Ubuntu help, that I am not getting the full operating system to burn.    I am not sure if this is down to my equipment, or down to iso file itself.    At present I'm using Windows xp, and worried if I continue after April 8th I will start to run in to problems.   I just need to burn Ubuntu iso file properly so I can use it as a dual boot up.


What is the difference in these two loops methods?

So, i'm kinda new into JavaScript and i was creating a test script just to see how it works to apply style through JS, in case applying display none to the divs in the document, this is the test code: <!DOCTYPE html>   <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title>
Test DIV 1

Test DIV 2

Test DIV 3

<input type="button" value="hide DIV" onclick="hideDiv()">
     But the onclick returns this: Uncaught TypeError: Cannot set property 'display' of undefined at hideDiv (test.html:18) at HTMLInputElement.onclick (test.html:13)  And this one works well: <!DOCTYPE html>   <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title>
Test DIV 1

Test DIV 2

Test DIV 3

<input type="button" value="hide DIV" onclick="hideDiv()">
     So what is the difference beetween: for(let i in test){     test[i].style.display = 'none' }  And for(let i=0;i<test.length;i++){     test[i].style.display = 'none' }


Alright, now before I start I'm not the most tech savvy person out there so I dont know alot of terms and how to do things. I mean I know what a command, terminal, and argument is and all that but I can't understand everything so if you happen to answer my question, you have to help me through step by step. Anyway my question is, I am downloading Minecraft on ubuntu running the version 12.o1 and I go into firefox and go to the right page for it but I start the download and it asks what I want to do to the file. The only thing I can select  is save file. The minute I click download file, firefox crashes. I don't know why but I am selecting the right .jar file and everything. Then in my download folder I have a .jar minecraft file and I can't open it. The thing says you need to be able to execute it. So I go into properties and select the option. I can't seem to figure it out. Please help...


How does a program decide whether or not to have coloured output?

When I execute a command from a terminal that prints coloured output (such as ls or gcc), the coloured output is printed. From my understanding, the process is actually outputting , and the terminal formats the colour.  However, if I execute the same command by another process (say a custom C application) and redirect the output to the application's own output, these colours do not persist.  How does a program decide whether or not to output text with colour format? Is there some environment variable?


sstatic.net SSL certificate is for an incorrect domain

Noticing that the "Human Verification" image did not show, I found that the src, , shows that sstatic.net is giving an SSL vertificate for *.stackexchange.com..


Related to the question: .   I was wondering if there is a minimum length for Minecraft usernames?


I am in Montgomery County, Maryland and I had a contractor tell me it's against code to put a recessed light in my shower. The shower is 3' X 3' X 7'1" (3 foot by 3 foot and the height is 7 feet 1 inch).   Here are my questions:   Can I put a recessed light with shower trim in that shower? (Everything I see says I can) Do I need a special high pressure light as it's under 8 feet tall? (And If so, what do I buy?) Any other code related questions that I should be aware of?   I researched it and put the light in and this contractor (who does this for a living) tells me an inspector would reject it, which I don't believe as recessed lights in showers are everywhere these days.


How do I disable hyper-v from command prompt in server 2012?

In previous versions, I might be able to remove Hyper-V through ServerManagerCmd.exe but this was apparently deprecated in 2012 (it seems it doesn't even exist) or dism /Online /disable-feature /featurename:hyper-v but it's telling me that it can't provide this service to Windows PE.  How do I accomplish the same thing within Server 2012? Is there a way to access powershell from the menu below? I try going to Command Prompt there and typing powershell but nothing. When I type sconfig to attempt to install powershell, it says that script doesn't exist.  EDIT: I'm trying to do this from the recovery command prompt when you start up in advanced startup. I cannot boot into the OS since enabling Hyper-V  I am constantly being returned to this screen pretty much no matter what I do (other than going to command prompt):    The difference is it says continue to Windows DataCenter instead of windows 8. I tried the suggestion here :   but i get the error "DISM does not support servicing windows pe with the /online option"


What do you call people who like word puzzles?

What is the term for, or the name for, a person who enjoys solving word puzzles, crosswords, etc.?


Regex that iteratively matches all strings that begin with one string and end with another

I'm trying to strip a string of all sequences that begin with a string "GUGU" and and end with something like "AGAG". The closest I've gotten is   replaceAll("GUGU(.*)AGAG", "")   but all that does is replace the "largest" instance. Meaning if there are multiple occurrences of GUGU*AGAG in a string, it only matches the outermost. So what could I do to get this to work for every instance of the regex in the string?


When you go to a restaurant and you want to pay by card, in american English, what do ask the waiter for? for them to please bring the card machine? or card terminal? or any other term?


This may depend on the seat post and the fixture, but how deep should my seat post be into the frame? I have a bike that came with a post that is pretty long and I cut an inch off the bottom of the post a couple months back so that I could sit lower, now I'm considering cutting two to 4.5 more inches off so I can get further down on the bike during some technical riding and so that I can pump deeper. How far into the bike does the seat post need to go before stability is compromised? Are there any other risks of having your seat post not too deep?


Python: Create 50 objects using a for loop

I am new to python recently I am working on a project in I created a class:-  class foo():     def __init__(self, name):     self.name = name   I want to create 50 objects of this class which sholud be named as obj1, obj2, obj3,..., obj50 I am trying to create these classes like  for i in range(1,51):     obj + i = foo(i)   So that 50 objects like obj1, obj2, obj3,..., obj50 are created with names as 1, 2, 3,...,50. But for some reason this is not working for me.  Can anyone tell what am I doing wrong here. I know that I can use a list to store the objects but for some reason I would like to do it this way. Any help is highly aprreciated.


Hello I could help several days ago I am trying to make this code work. I am trying to remove from an html the <video> tag that is inside a <nonscript>.  Example  <noscript>         <video style="width:100%; height:100%;"                controls="controls"                autobuffer="autobuffer"                class="player-html5"                preload="metadata"                poster="15.jpg">             <source src="hello.mp4" type="video/mp4">         </video>     </noscript>   The code that I have is like this but does not return anything.  function vide($source){      preg_match("'<noscript>(.*?)</noscript>'", $source, $match);     if($match){          return $match[1];     } }   Could you use the the dom document?  I just need everything found in the html video tag.  Sorry for my bad english and thanks


Hitting arrow keys adds characters in vi editor

When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor:   for ↓ I get B, for ↑ I get A, for ← I get D, for → I get C.   Please help me in resolve this problem.


This is the first section of my main method, where I prompt the users to input as many phrases as they want, and the input gets saved in an ArrayList. I coded this so that the program would stop asking for more input if the user puts 'q', but for some reason, when I run this, even if I input q, it doesn't exit the loop. It just keeps on asking for more inputs. I'm assuming I made a mistake in the while loop, but I'm not entirely sure what.  I'm really new to Java so I may have made a blatant mistake but I'm not sure..   public static void main(String [] args)   {     //vars     String userInput;     int quitter = 0;      //arraylist     ArrayList<RecursivePalindrome> a = new ArrayList<RecursivePalindrome>();      //scanner     Scanner in = new Scanner(System.in);      //user input     System.out.println("\t Palindrome Checker");     System.out.print("Input phrase one at a time (press 'q' to quit): ");     while(quitter == 0)     {          userInput = in.next();          if(userInput == "q" )         {             quitter++;         }         a.add(new RecursivePalindrome( userInput));         System.out.print("Input phrase one at a time (press 'q' to quit): ");     }     System.out.println();


I am creating a custom map in Minecraft, but when I try to set a block, I get the error, "Cannot place block outside of the world." I do believe that this is due to chunks not loading. Is there any kind of Vanilla Chunk Loader that I can use to keep many chunks loaded at the same time? I would prefer if there was no clutter.  I have heard about the Hopper system (I don;t know if it stills works, but then again, it creates too much clutter.


how to fill out W4 when i'm getting $1600 extra income a month

Aug 22 was my last day at a job that paid $76,000 / yr. After that that job is supposed to pay me $400 / wk for consulting for $1,600 / month. At the new job (which I started on Aug 26) I'm making $80,000 / yr.  On the W4 () I filled out there was a section for "additional amount, if any, you want withheld from each paycheck". I'm thinking I could use this section to withhold taxes on the consulting money I'm getting for as long as I'm getting it. It's just not clear to me how much I need to withhold.  Any ideas?  Thanks!


About memoir and titlesec incompatibility

In page 2 of the titlesec documentation, Javier Bezos writes     titlesec works with the standard classes and with many others,   including the AMS ones, and it runs smoothly with hyperref.   Unfortunately, it is not compatible with memoir, which provides its   own tools with a limited subset of the features available in titlesec.   I don't use the memoir document class so I am not familiar with its features, but I've made a few simple tests (really few and simple) using it together with titlesec and couldn't detect any problems. To what extent can titlesec be safely used with memoir? Which exactly are the incompatibilities mentioned?


The Case of the Missing Verb, or can a perfectly good word fail to exist?

Is it possible for an action to lack a verb?  For example - to answer my own question - there is a verb for smell bad ("stink"), but there is no counterpart for to smell good.  Is there?


Replace image/texture option not available?

I'm watching a tutorial on how to make Minecraft animations, and one step was to click on the replace a image button but it wouldn't let me.    Why is this option grayed out?


DIV appears when clicked, I want it to disappear when clicked anywhere on the screen using javascript

Shows and hides the .box class  $('.popup').on('click', function(){     $('.box').toggleClass('show'); });   THE CSS  .show {     display: block; }


Downloading map service from ArcGIS web service as features?

I imported FEMA's Advisory Base Flood Elevation (ABFE) layer. It is an ArcGIS Web Service over the internet.  I can view it on the map, but it is listed as not selectable, and I cannot export sub layers, and I cannot view the attributes table.  It seems to be locked somehow.  I need to convert this layer into a standard layer that I can clip and manipulate.


If $a$ is an odd integer, then prove that $24\mid a(a^2 - 1)$  So, I simplified $a(a^2 -1)$ to $a(a+1)(a-1)$. Now, I have seen some answers which first say that this is clearly divisible by $6$ and go on to express this as a multiple of $4$. But such answers ignore that $2$ could be a common multiple. So that they ultimately prove $12\mid a(a^2 -1)$ Now, back to my unfinished proof. I let $a = 2k+1$ and substituted this value of $a$ to get: $4(2k+1)(k)(k+1)$ And here I am stuck...


Show that for each composite integer n, there exists a prime $p$ dividing $n$ (with $p\leq n^{1/2}$)

Let $n$ be a composite integer. Show that there exists a prime $p$ dividing $n$, with $p\leq n^{1/2}$.  $n$ is a composite integer so $n= ab$ where $a$ and $b$ are larger than $1$, let $p$ be a prime, suppose $p^2 \leq a^2 \leq ab = n$, because $p \ | \ a$ and $a \ | \ n$ then $p \ | \ n$. Hence, $p\leq n^{1/2}$. Am I right about this?


Finding the container of an inline script

Let me explain first what I'm trying to do. Because if there's a better way to achieve this, I'm all ears (or eyes actually).  I've built a (html) template parser of sorts. What I can do is write html templates for webpages and include pieces of code from other templates. Something like this:
   %include ads.tmpl bannerad%
     Dis will insert a section (bannerad) from the template file ads.tmpl. And the section in ads.tmpl looks something like this:    <bannerad>

 </bannerad>     That way I can include the same banner code on multiple pages and if I ever want to change the look/feel of the banners, there's only one place I have to chance it. This all works fine.  But now I need to be able to identify where a banner is requested. For obvious reasons, I would like to distinguish between say for instance the top of the home page, and somewhere in between text on a sub page.  My idea was to add some identification to the parent container. Something like this:
   %include ads.tmpl bannerad%
     And then with inline script in the bannercode, iterate through the banners' parentNodes until it finds data-banner_position_id. Something like this:    <bannerad>

    </bannerad>     Now this doesn't work obviously (for several reasons). But is there a way to get this to work? Or is there a better way to do this? It is BTW, completely likely that a page will display more than one banner on a single page...


Can't start Xcode - stuck on installing state

I was trying to upgrade Xcode because it didn't let me upload to apps to iTunes Connect. Now it's stuck in installing state (few hours) and doesn't start:  Xcode is being updated Xcode can not be opened while it is being updated.  What do to?


My question is: is there flexibility in how one can punctuate the phrase "Why not?"  The answer may seem obvious at first...it is a question after all. However, it's also a common idiom, and I am wondering if that offers a choice in how it's punctuated. I became curious about this after seeing dictionaries, including  and , using the phrase in example sentences sans the question mark:     "Do you want Italian food tonight?" "Sure, why not."   .     I said we were, too, so he said why not let him take us to dinner somewhere and then all come together.   The second example sounds especially wrong, and as if it's missing quotation marks. Of course, most dictionary examples of the phrase in a sentence included question marks. So are the provided examples above errors?  Edit: The first comment suggesting this is a possible duplicate links to a statement, not a question.


How does Inflation solve the Magnetic Monopole problem?

Cosmological Inflation was proposed by Alan Guth to explain the flatness problem, the horizon problem and the magnetic monopole problem. I think I pretty much understand the first two, however I don't quite understand how a period of exponential expansion fully explains monopole problem.   From Weinburg's Cosmology, the issue is essentially that various grand unified theories predict that the standard models $SU(3)\times SU(2)\times U(1)$ arose from the breaking of an original simple symmetry group. For many of these theories, a crazy particle known as a "magnetic monopole" is created at a certain energy (sometimes quoted at around $M = 10^{16} GeV$). So my question is why does a period of rapid expansion somehow or other result in a low density of magnetic monopoles (assuming they exist/existed at all)?   I would think, like in nucleosynthesis, that the primary factor in monopole creation is energy density, and since inflation is still a "smooth" process, at some point the universe would hit the proper energy density to create magnetic monopoles. How does the rate of expansion at the time they were created effect overall present density?


I am having trouble with my google sheets script and I wondered if anyone had any advice for a beginner. I want my script to check a cell value (Sheet1, H2), then send an email if the value = 29. However, at the moment it will send an email whatever value it returns, I don't think my if statement works correctly. Any ideas would be really appreciated.  function CheckExpiry() {   // Fetch the days till expiry.   var ExpiryDataRange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange("H2");    var ExpiryData = ExpiryDataRange.getValue();   // Check expiration   if(ExpiryData = 29){     // Fetch the email address     var emailRange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange("C2");     var emailAddress = emailRange.getValue();        // Send Alert Email.     var message = 'You are recieving this email as harness # is up for inspection soon, current inspection expires in the following number of days: ' + ExpiryData; // Second column     var subject = 'Your Harness Spreadsheet Alert';     MailApp.sendEmail(emailAddress, subject, message);     } }


I want to search for a specific string that unfortunately contains google wildcards (*).  How can I search pages where the exact string extern void* appears.  (Some of you might have guessed that I am wrestling with C these days)  I tried with DuckDuckGo or Bing with the same result: the * is interpreted.


Why has String theory gained so much ground among physicists given that there is no evidence that it is correct?

First I must say that I am not an expert in string theory so my understanding is minimal and therefore feel free to correct any misunderstandings I may have. String theory is very popular among mathematicians and physicists nowdays. I can understand why mathematicians may be interested in it, since to us it's just another theory but I cannot understand why physicists are so interested in a theory that we have no evidence is the correct theory of quantum gravity. Here are a few points about why string theory is a questionable theory of quantum gravity.  String theory hasn't managed to eliminate singularities. One of the reasons we want a theory of quantum gravity is to deal with singularities, but string theory not only doesn't resolve them, it even generalizes them to higher dimensions.  string theory hasn't made any prediction. In fact, as far as I know (please correct me if I am mistaken) string theory hasn't even been able to predict classical phenomena and I am not sure whether it's possible for string theory to make any prediction.  There is no experimental evidence of supersymmetry or even the existence of the graviton.  It cannot give general relativity as a classical limit. Many times I have heard of people claim that string theory gives Einstein's field equations in the classical limit but I have yet to see it in process, it can give rise to Einstein's field equations only for special cases but I haven't been able to find any proof that the theory of general relativity can be fully recovered from string theory (hopefully you can show me references to prove me wrong)   So I want to ask, why do physicists believe that string theory is the appropriate theory of quantum gravity? What evidence do we have? Is it just because it's the best we have, so we choose to work with what we've got?


update/ upgrade ubuntu 19.04 not working

I tried sudo apt-get upgrade and sudo apt-get update but any of them doesn't work. always  same error messages are showing 404 error.Not Found [IP: 2001:67c:1562::18 80]


Conditional expectation in AR(1) process

Suppose we have a stationary AR(1) process: $Y_{t+1}=a+ \rho Y_{t} + \epsilon_{t+1}$ where $\epsilon_{t+1}$ is white noise with probability density function $\phi(.)$.   Now say we have a equation $P_{t+1}=u\cdot (A_{m}-Y_{t+1})^{+}$ where $(Y_{m}-Y_{t+1})^{+}$ = $ \max \{(A_{m}-Y_{t+1}),0\}$ and $u$ is a constant.  So $P_{t+1}=u\cdot(A_{m}-a-\rho Y_{t}-\epsilon_{t+1})^{+}$.   Can we write $E[P_{t+1} \mid Y_{t}]= u\cdot \int_{-\infty}^{(A_{m}-a - \rho Y_{t})}(A_{m}-a-\rho Y_{t}-\epsilon_{t+1})\phi(\epsilon_{t+1})d\epsilon_{t+1}$ ?


Can you make a seismograph with an accelerometer?

Actual seismograph electronics are very expensive. I'm just wondering if a seismograph can be made with a adequately semsitive accelerometer. To be exact I want to bury the accelerometer based seismograph and have it sense footsteps.  So is this possible and what method would you reccommend for my needs and why?


I am new to Java and I am trying make the hashtags to adjust to my text. For example, if I write "message hello, how are you?" I want it to print with capital letters and that the hashtags adjust themselves depending on how many characters I print. Do you have any suggestions on what I can use to make this happen?  public void addMessage() {     System.out.println("Write message followed by a text: ");     String message = readString();     System.out.println("############################################################");     System.out.println("#                                                          #");     System.out.println("#" + message.substring(7).toUpperCase() + "                 #");     System.out.println("#                                                    #");     System.out.println("############################################################"); }


Why was an answer allowed on a question that was merged into another one?

I merged a question on programmers.stackexchange.com earlier today and 20 minutes or so later someone came along and answered it. Shouldn't that have been impossible?  Here's the . It was merged into .  Is it possible to merge the answer now or should the user repost manually?


Let $P = \text{span } \{ v_1, v_2\}$ be a plane in $\mathbb{R}^3$ with normal vector $n$, show that $\{v_1, v_2, n\}$ is a basis for $\mathbb{R}^3$   It must be that $\{v_1, v_2\}$ is linearly independent (LI) by def of a plane, thus $c_1v_1 + c_2v_2 = \overrightarrow{0}$ for $c_1 = c_2 = 0$.  It must follow that the coefficient of $n$ is 0?


A book with tribes that connect across national borders, and national borders don't matter

The book is set in a world where there are tribes that connect across national borders. National borders don't actually mean much. "Tribes" have superseded them. Each tribe has their own set of laws and rules, governing bodies, benefits, maybe even currencies. Does any of this sound familiar to anyone?


I just ran the command sudo apt update just like i do everyday but this time i got an error im new can someone tell me the exact command i can run?

*E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


$\mathbb{Q}(\sqrt{n}) \cong \mathbb{Q}(\sqrt{m})$ iff $n=m$

Page 105 of D. Burton's A First Course in Rings and Ideals reads     It is not difficult to show that if (I'll call them $n$ and $m$ instead of $n_1$ and $n_2$) $n$, $m$ are square free integers, then $\mathbb{Q}(\sqrt{n}) \cong \mathbb{Q}(\sqrt{m})$ if and only if $n=m$.   Well, it is getting difficult for me, any help or would be appreciated.    My progress so far: Suppose $\phi :\mathbb{Q}(\sqrt{n})\to\mathbb{Q}(\sqrt{m})$ is an isomorphism. Then $\phi(u)=u$ for every $u \in \mathbb{Q}$, so that $\phi(\sqrt{n})^2=\phi(n)=n$. If $\phi(\sqrt{n})=a+b\sqrt{m}$ for some $a,b\in\mathbb{Q}$, then $(a+b\sqrt{m})^2=a^2+b^2m + 2ab\sqrt{m}=n$ implies $$a^2+b^2m = n$$ and $$2ab=0.$$  Then $b=0$ cannot happen since that would imply that $\sqrt{n}\in\mathbb{Q}$, where $n$ is a square-free integer. Also $a=b=0$ cannot happen. Hence $a=0$ and we have $$b^2m=n.$$ If $\psi:\mathbb{Q}(\sqrt{n})\to\mathbb{Q}(\sqrt{m})$ were an isomorphism then there would exist some $s\in\mathbb{Q}$ such that $$s^2m=n,$$ then $s=b$ or $s=-b$. Therefore the only isomorphisms from $\mathbb{Q}(\sqrt{n})$ to $\mathbb{Q}(\sqrt{n})$ are $\phi(u+v\sqrt{n})=u+vs\sqrt{m}$ and $\psi(u+v\sqrt{n})=u-vs\sqrt{m}$.    I don't know if there's an easier way and I don't know if I'm in the correct way here. Thanks beforehand :)