How to make two column fom at same page?

can anyone please help me out to make the two column form vertically at same page.i ve also attached the coding too.my issue is that how to write two forms in form.py and how to do changes in templates(login.html) to make the 2 forms to be displayed into two columns??please help me out.. Thanks in advance!  class Login(AuthenticationForm):      region = forms.ChoiceField(label=_("Region"), required=False)      username = forms.CharField(label=_("User Name"))     password = forms.CharField(l![enter image description here][2]abel=_("Password"),                                widget=forms.PasswordInput(render_value=False))     t= [('http:google.com','Google'),('http://kent.com','University of Kent')]     FederatedLogin = forms.ChoiceField(label= _("Select one of the third party "),choices= t)     tenant = forms.CharField(required=False, widget=forms.HiddenInput())   login.html    {% extends "horizon/common/_modal_form.html" %}  {% load i18n %} {% load url from future %}  {% block modal-header %} {% trans "Log In" %} {% endblock %} {% block modal_class %} login  {% if hide %} modal hide {% endif %} {% endblock %}  {% block form_action %}{% url 'login' %}{% endblock %} {% block autocomplete %}{{ HORIZON_CONFIG.password_autocomplete }}{% endblock %}  {% block modal-body %}   <fieldset>     {% if request.user.is_authenticated and 'next' in request.GET %}

{% trans "You don't have permissions to access:" %}

{{ request.GET.next }}

{% trans "Login as different user or go back to" %}         {% trans "home page" %}

     {% endif %}     {% if next %}<input type="hidden" name="{{ redirect_field_name }}" value="{{ next }}" />{% endif %}     {% include "horizon/common/_form_fields.html" %}   </fieldset> {% endblock %}   {% block modal-footer %}   <button type="submit" class="btn btn-primary pull-right">{% trans "Sign In" %}</button>  {% endblock %}


Commentator badge awarded for 8 comments

Got a commentator badge today. Though my  shows only 8 comments. Either the  has changed or the SO App was generous to me today. Thanks for the badge, don't take it away :)


Is there any reward for completing all the memories and collecting all the flags?

Do you get anything after collecting all the different flags and completing all the memories so everything is full? I don't want to try and collect everything in every memory if I don't get anything in the end.


What does the symbol "$|_{\epsilon=0}$" mean with a derivative?

What does the notation "$|_{\epsilon=0}$" at the bottom of the derivative mean?


Raman vs Fluorescence, scattering vs absorption, classical vs quantum

I am trying to grasp the difference between Raman scattering and fluorescence. To me it appears that the former is described in a somewhat more classical context as ordinary inelastic scattering, while the latter actually has a meaningful quantum mechanical description. So what is the quantum explanation for Raman scattering? I have read it involves a "virtual state" as an intermediate state. What is that supposed to mean? If it just means (extremely) short lifetime, then there should be a mixed regime between Raman scattering and fluorescence, but I have never heard about that. How does one calculate the virtual state if it "exists"?    This question is focused on the mathematics behind Raman scattering. How does one formulate Raman scattering of a photon and an atom, we may for simplicity assume that we have a hydrogen atom. e.g given some electronic state, how do I calculate the virtual states involved with Raman scattering?


Show that the limit superior and limit inferior of a sequence of measurable functions are also measurable

I need help in the following proposition:  Let $f_n$ be a sequence of lebesgue measurable functions $f_n : [a,b] \rightarrow \mathbb{\overline{R}}$ then lim sup $f_n$, lim inf $f_n$ $[a,b] \rightarrow \mathbb{\overline{R}}$ are both lebesgue measurable functions.  I don't know how to manipulate those functions to proove $ \{x\in[a,b]: f^*(x)> \alpha \} $ where $f^* $ is limit superior and $f_*$ is limit inferior


Am trying to make a sum of an array which has double. However I am getting wrong answer.  var d1 = new double[] { 26392.23, 35192.23, -26392.23, -35192.23 }; var d2 = d1.Sum(x => x);   output: 7.27595761418343E-12  Expected Output: 0


Is there a way for grub to automatically reboot into Windows from Windows?

I have a dual boot setup:   Ubuntu 16.04 LTS Windows   Currently when I want to reboot from Ubuntu into Windows I use grub-reboot with the appropriate number as argument. This works well.  However sometimes Windows needs a reboot so a certain program can install or update and I manually have to select the right grub boot menu entry. Is there a similar way (from Windows UI) to tell grub which entry to boot?  I suppose the grub-reboot command passes the argument to a file which is in turn read by grub upon reboot.  edit (concerning my selected answer): I'm currently looking into mounting the ext4 drive that contains /boot and scripting the edit. this will possibly take quite a while since i'm doing this in my free time beside my 40h/week non-tech job. ^^


Prove that $f(x)=x^3$ is Riemann integrable on $[0,1]$ using partitions

Consider the function $f(x)=x^3$. Prove it is Riemann integrable on $[0,1]$ using partitions.


Order of Mirror Entity and Mind Control Tech Effect Resolutions

Example:  Player 1 has a Mirror Entity in play (Secret: When your opponent plays a minion, summon a copy of it).  He also has 3 minions on the board.  Player 2 starts his turn with no minions and plays a Mind Control Tech (Battlecry: If your opponent has 4 or more minions, take control of one at random).  What happens?  Extra credit: what happens if Player 2 started with 3 minions before playing his Mind Control Tech?  Just trying to wrap my head around the mechanics.  Thanks.    Edit: this is different from the  link because the accepted answer on that question is not relevant to Secrets and does not go into detail on their usage.  In that answer, quote: "According to Lead Designer Eric Dodds, events such as Deathrattles that are triggered simultaneously will occur in the order in which the related cards were played.".  Secrets don't enter the stack when they were played, but rather as they are triggered which is a subtle but important point to this question (and something I learned through the accepted answer on here and some of the commentary from Waterseas).


Can I increase Windows XP 32bit's 3.5Gb RAM limit with /PAE?

I have Windows XP Pro 32bit, and cannot upgrade to a 64bit os for various reasons at the moment.  I read that I can use PAE to remove the 3.5Gb limit of a 32bit os by editing the boot.ini file.  Is this true, if it is true, how do I edit the my system so I enable the PAE?


How to organize course component when there are a lot of students?

I am teaching a university maths module, which is currently taken by approximately 300 undergraduates. By the way, I am teaching in Asia.  Due to the number of undergraduates, tutorial classes are conducted from Monday to Thursday. There comes the problem:  This course consists of 2 in-tutorial quizzes. The quizzes are set very similarly so that the level of difficulty is consistent. However, due to the similarity of question, students from Tuesday, Wednesday and Thursday classes can obtain quiz questions and keep practising them. In the end, these students excel while students from Monday do averagely or poorly.   Question: How to deal with this kind of situation? A few solution that I can come out with is to have a mid-term, where everyone sits in a lecture hall.   Another way is to set different questions each day. However, this method does not guarantee the level of difficulty is consistent throughout all tutorial classes.  The last way, which I don't prefer, is to set assignment. However, students tend to copy each other and t defeats the purpose of assignment.


Large cash requirement (2700 USD) for Russian citizens to fly to the US?

My girlfriend is Russian. Last night we tried to fly her to the US on a valid tourist visa. She was stopped at DME and told she would be required to have $2700 USD to get back home immediately even though she had a return ticket. She said this was an "unwritten" rule because of the nonsense i keep seeing on CNN , Anybody else know anything? She is literally trapped and scared to death.


Prove if $f : D(0,1) \rightarrow \overline{D}(0,1)$ is an holomorphic function in $D(0,1)$ and $f$ has in $z=0$ a zero of order $n$. Then,    $$|f(z)| \leq |z|^n$$   for all $z\in D(0,1)$.   $\textbf{My attempt}$. If $f$ has a zero of orden $n$, then   $$f(0)=f'(0)=\ldots = f^{n-1)}(0)=0 \text{ and } f^{n)}(0)\neq 0$$.  Then, applying the Schwarz's Lemma I get that  $$|f(z)|\leq |z| \; , \; |f'(z)|\leq |z| \text{ and } |f^{n-1)}(z)|\leq |z| $$.  I don't know what to do now to get $|f(z)| \leq |z|^n$.


Is there a way to have multiple winners?

Question is pretty much in the title: is it possible for an alliance to win as one, instead of a single player being the winner?  And if there is such way, is there a difference between classic and disharmony?


iOS App : Does visiting the app count to consecutive days?

Does the consecutive days on the profile page reflect that I'm actively using the iOS app ?    Is this count added to the consecutive days ?   OR does only visiting the website count ?      P.S. I know that an answer for the android app is already  ; but I sure will be grateful if someone can tell me whether the same happens for the iOS App


If $a,b,c,d$ are positive real numbers such that $a+b+c+d=1$,show that                          $$  \frac{a^3}{b + c} + \frac{b^3}{c + d} + \frac{c^3}{d + a} + \frac{d^3}{a + b} > \frac 1 8$$


C extern clock_t variables not working as expected in file;

So I have, 3 files; main.c , file.c file.h  in file.h  I declared 3 variables  extern  clock_t start_t, end_t, total_t;   in file.c I wrote a function to save the length of time of main running program; and in file.h I reference it as "void saveLog(void);"  void saveLog(void) {    end_t = clock(); total_t = (end_t - start_t); double time_spent = (double) total_t / CLOCKS_PER_SEC;  double *arr = malloc(sizeof(double)); *arr = time_spent;  FILE* fp = fopen("log.txt","wb"); if (fp) {     printf("Elapsed: %f seconds\n", (double) time_spent);     fwrite(arr, 1, sizeof(double), fp);     fclose(fp); } }   in main.c at the start of main I wrote start_t = clock(); and at the end wrote atexit(savelog) I included all libraries (time.h , stdlib.h , stdio.h in all files)  When compiling I get the error apple linker id error   Undefined symbols for architecture x86_64:   "_end_t", referenced from:       _saveLog in file.o   "_start_t", referenced from:       _check_answer in main.o       _saveLog in file.o   "_total_t", referenced from:       _saveLog in file.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   By the way my thinking is , to begin counting clock and the start of main and simply do the math in the function. My question is ,why does it not work? How else should I use the clock_t variables? I tried some testing with int's and the seemed to be referenced just fine.


Was Luke Skywalker based on George Lucas?

It isn't uncommon to see people claiming or joking that the character of Luke Skywalker was based on George Lucas.  For example,  and .  I can see where this is coming from as they do seem to have some similarities.  For example:   The names (Lucas and Luke) George drag-raced when he was younger, Luke raced spaceships and speeders. Both were raised in the desert.   So has Lucas, anyone close to him or anyone involved with the creation of Star Wars ever stated whether or not the character of Luke was based on or inspired by Lucas himself?


I'm looking for a "multi-goal" path-finding algorithm. Problem I'm running into is I'm not sure what it is called... I'm not even sure "multi-goal" is what I'm actually after. I've looked at Djiskra's, which is looking for shortest path between two points (as is A*), and I've looked at travelling salesman, which is multi-goal, but is a "stop where you started".  What I'm looking for is:   given an unsorted list of nodes with equal priority given a starting node where not all of the nodes are connected to each other and nodes have a minimum of one edge generate a path that efficiently hits all of the grid locations (i.e. back-tracking is allowed, does not have to be shortest path, end point does not matter).   I'm assuming that there's an algorithm out there for this sort of a path-finding problem. (Or it may be a goal seeking problem, I'm not sure either.)  One option I was thinking of is a depth-first bounded search, but without a better idea of how to represent branching choices, I'm not sure how good the search would be.   I'm estimating this at about 300 nodes, with about 50 nodes as "nodes that must be visited", which may also be a small enough space that a brute force approach may be the easiest manner.  Any advice on what to look for, or even an algorithm that I could implement?  Thanks!


Unable to boot to windows 8 after installing Ubuntu 16.04

I installed Ubuntu 16.04. I already had windows 8 installed. Ubuntu 16.04 has been installed in legacy mode and windows 8 has also been installed in legacy mode(not sure about windows 8). After dual booting Ubuntu I cant boot to windows 8. The grub menu does not show windows 8 boot option i.e windows boot manager. I also tried boot repair disk but nothing happened. Secure boot is off.I even disabled legacy support in boot options but then the grub menu does not show up and windows 8 still does not boot. The summary of boot info is given in the following URL:  Please help.


Does the position of an asterisk affect pointers?

I have noticed that in C++, a pointer can be declared using two different types of indentation (if that's the right word I'm looking for):  //Space followed by asterisk with variable name char *pointer;  //Asterisk followed by space and then variable name char* pointer;   Does the position of the asterisk affect anything about the pointer? If so, in what situations would I need to use one type of indentation over the other?


Using built in GPS in windows 8 with precise location?

I have the lenovo helix, with a built 3g chip that features a GPS. So far every map app in the windows store is giving me the wrong location. It is in the same country, but far off. My phone is much more accurate. Why isn't this working properly?   The chip is listed as a geolocation sensor.   Edit: The "my location" in the win8 map metro app gives me some generic geo ip location. Shouldn't the internal GPS take precedence over that?


public class ReturnValueFromTryCatchFinally {     public static void main(String[] args)     {         System.out.println(methodReturningValue());     }      static String methodReturningValue()     {         String s = null;         try         {             s = "return value from try block";             return s;         }         catch (Exception e)         {             s = s + "return value from catch block";             return s;         }         finally         {             s = s + "return value from finally block";          //  return s;           }     } }   If we run this program then we are getting output as "return value from try block". If we remove the comment from the finally block (return s;) then we are getting output "return value from try block return value from finally block".  Why isn't it giving the output "return value from try block" and "return value from try block return value from finally block"? Because first it will return from the try block then it goes to finally.


My brother-in-law is sponsoring my trip. However, the company he is working at is not issuing any payslip. Will the Verification of Employment Letter and Bank Statements be enough to prove his employment and income?


Did the Stack Exchange staff members assist in the apprehension of Ross Ulbricht?

The recent arrest of someone behind Silk Road is in the news today, he was arrested in a San Francisco public library.  A couple of background articles  and .  To what extent, if any, did staff and/or admins have in assisting law enforcement agencies in arresting this programmer?  Did they voluntarily cooperate, or was it a legal requirement to cooperate under US law?    An answer from some authority saying Stack Exchange is not able to discuss the issue with users is also acceptable to me.


I am wondering whether somebody has compiled a list of fields which are available for creating content types in Drupal. There are many lists of the most popular modules, but it would be great to have one focusing on existing fields, whether in core, or from third-party modules. I have looked around a bit, but always end up with lists of modules.


I have seen lots of images like this which used a slight shadow very nicely as if the sides are folded into each other but I don't know how to create such thing. I'm not looking for a full tutorial. Just a few tips would be fine. How do you go about making something like this?


When we consider a person on a ferris wheel, the forces acting on him at the top are the normal force and gravity. The acceleration of the person is downward (towards the center), so by Newton's second law we have (for the $y$ components of the respective forces)  $$n - mg = -m \frac {v^2} r \Leftrightarrow n = m\bigg(g - \frac{v^2}{r}\bigg)$$  Now when $\frac {v^2}r > g$ then $n$ becomes negatives, and supposedly you would then need a downward force (such as a seatbelt) to keep the passenger in the seat. I can't see how this follows, when $n$ is negative does the normal force even act on the person (since it's now pointing downward)?


probability of X+Y which are two independent random variable & uniform distribution[0,1]

Two random variables X, Y are independent and both uniform-distributed in[0, 1].     How to calculate the probability density function Z=X+Y ? I tried below,  $$f_X(x) = \begin{cases}  \frac1{1-0} \\ 0 \end{cases} = \begin{cases}  1, & 0 \le x \le 1 \\ 0, & otherwise \end{cases} $$  Similarly,  $$ f_Y(y) = \begin{cases}  1, & 0 \le y \le 1 \\ 0, & otherwise \end{cases} $$  As $f(x,y)= f_X(x)f_Y(y)$, and  $$ f(z) = \int_{-\infty}^{+\infty} f(x, y)\, dx = \int_0^1 f(x, z-x)\, dx = ? $$  but have no idea how to continue to finish above evaluation.


Word to describe someone who secretly creates trouble?

I'm trying to find a word that best describes someone who secretly causes problems for other people. Sort of like a shit-stirrer or trouble maker but specifically for when the identity of the trouble-maker is unknown.  Any help is greatly appreciated!  Have a great day.


This is my first time through playing Elder Scrolls and initially I grabbed every quest that has come available...  At first I thought I wanted to be part of the Imperial Legion but I feel like I picked the wrong side and am now regretting my choice.  So...is there any way to un-join the Legion and join up with the Stormcloaks, or will I have to wait and join them next time?


Evaluate the integral $\int e^{-x}x^n dx$

Evaluating the integral $\int_{0}^{\infty}  e^{-x}x^n dx$ where n=0,1,2 ...   1st Integration by part: let $a=x^n$, $da= nx^{n-1} dx$, Also $db=e^{-x}$, $b=-e^{-x}$ We have $$ -x^n e^{-x} + n\int x^{n-1}e^{-x} dx$$  2nd: let $a=x^{n-1}, da= (n-1)x^{n-2}, db= e^{-x}, b= -e^{-x}$ We have $$-x^n e^{-x} + n\left[x^{n-1}(-e^{-x}) - \int(n-1)x^{n-2}\cdot -e^{-x}\right]$$  How would you find the general form? What would it be?


I am writting my thesis. I don't want the headers in each chapter to appear just in capital letters. Can I override the class file to get the header as " My First Chapter"?


Android app should send edits to edit queue if necessary rather than rejecting them

I edited a question, on Stack overflow and when submitting preview, got red bar telling me my account isn't allowed to make suggested edits.  On the Sandbox android question it works fine, but that is editing an answer to my question.   The message I receive is:     Account is not allowed to suggest edits   Are the rules for suggested edits different for Android app?


Hi guys! A newbie here. I don't know what's causing this (I was doing a lighthouse project before this). Then when I wanted to add a base color, this happened. I loaded my old project which was tables and chairs(it was finished with wood textures and stuff), same thing happened. Tried with a new default cube and still the same result. Answers are greatly appreciated! PS. Sorry for my bad grammar.


I ran the time command on Linux and redirected the output to a file   time > time.out   The above command didn't work. The output time command was displayed on the terminal, the file named 'time.out' was created but empty. I then tried time 2> time.out This also didn't work, it had a similar effect as the first command I ran.  What I was trying to do was to redirect the output of time command into a file using redirection operator Every other command I've run similarly works without any problems


How to add columns displaying Audio and Photo (EXIF) metadata information into Nautilus list view

In Nautilus, I would like to add columns displaying metadatas contained in files.  This is mostly useful with audio and pictures files:   Audio : Artist, album, Track Title, Year ...(ID3 Tags) Photos : Date taken, Image resolution,    Columns would be editable in the standard 'View - Visible Columns' option in Nautilus


A while ago I created this Meta discussion based on a few people using <kbd> tags to link to their JSFiddle demos: , but this was changed to . This is a similar discussion but without any automatic formatting rules enforced.    Yesterday I flagged  as all of his posts with JSFiddle demos use <kbd> tags to link to them, and it would simply take too long to edit all of his posts:     This person keeps putting links to their demos in kbd tags. I've edited a few of them, but don't have the time to go through all of his answers. Can you notify him what kbd tags are supposed to be used for?   Example usage: Working Fiddle  This was declined with the reason:     Hmmm, I don't think this is really that big a deal. Perhaps you should ask a discussion question (Discussion!) on Meta as to whether there should be a policy about this.   Can something please be enforced about this? Using this markup to link to non-user input goes against the :     The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).     I've even found myself having to edit out misused <kbd> tags from  as well.


Kill process after it's been allowed to run for some time

I want to limit the time a grep process command is allowed to run or be alive.  For example. I want to perform the following:  grep -qsRw -m1 "parameter" /var   But before running the grep command I want to limit how long the grep process is to live, say no longer than 30 seconds.  How do I do this?  And if it can, how do I return or reset to have no time limit afterwards.


Can we entangle three or more particles between each other?

Do you think is it possible to a have a particle A entangled with a particle B and B entangled with a particle C at same time?    Or have something like A entangled with B, B with C , C with D and D with A?     Or a particle can only be entangled with one particle at same time?


How to find where BLAS/LAPACK are installed?

I'm trying to build Scipy from source following these instructions: . I first installed the dependencies: sudo apt-get install gcc gfortran python-dev libopenblas-dev liblapack-dev cython  However, my Scipy unit tests do not pass, and the maintainers asked me to tell them what my BLAS and LAPACK versions are. However, I seem to find this information. How can I tell where these libraries are installed? Using Ubuntu 20.04.1.


Can Gmail vacation responder include attachments?

Can attachments be sent in vacation auto-responder in Gmail? I have set up the vacation responder and want to send along an attachment with it to every one who mails me from my contacts only.


What does the speed of light have to do with mass and energy?

I've been thinking about Einstein recently, and I came back to the famous equation e=mc^2.  Why does this work?  It's saying the difference between mass and energy happens to be the speed of light squared?  I'm sure there's a larger explanation behind it, but the simplicity of the equation seems improbable.


How to prove these inequalities: $\liminf(a_n + b_n) \leq \liminf(a_n) + \limsup(b_n) \leq \limsup(a_n + b_n)$

The inequalities are:  $$\liminf(a_n + b_n) \leq \liminf(a_n) + \limsup(b_n) \leq \limsup(a_n + b_n)$$


Java getting substring from square brackets

I am trying to get a substring from square brackets in a string, I tried multiple regexes but nothing works.  I tried multiple regexes and code from multiple stackoverflow posts but nothing works.  String mydata = "some string with [the data i want] inside"; Pattern pattern = Pattern.compile("[(.*?)]"); Matcher matcher = pattern.matcher(mydata); if (matcher.find()) {     System.out.println(matcher.group(1));     output = output.replace("%item%", matcher.group(1)); }   It should return "the data i want" but instead it says that no pattern was found.


How can I monitor a hard disk drive that may be dying?

I am using Windows 8.1 Pro and have a drive that I think may be dying, so I ran 4 different repair tools on it. And now WD Data Lifeguard shows no disk errors at all after a full test. I’m still concerned about the stability of the disk, but I would like to try using it again with the knowledge that any data on it could be destroyed at any time.  Is there a way I can monitor the disk access reads/writes or whatever information I would need to be able to tell if the hard disk drive is in fact going bad? I don’t mind having a program run in the background to monitor as I’ll likely only be using it for a few weeks at most.


If X and Y are continuous random variables, then the random vector (X,Y) is a continuous random vector?

Just need help understanding this question, as I don't really understand what a continuous random vector is. My limited understanding is that a continuous random vector must be completely continuous (so for continuous X and Y this is satisfied) and that to get the probability of the random vector occurring, we double integrate over the supports (of X and Y obviously). My guess is then, that the c.r.v (X,Y) IS a continuous random vector.  Also, what of the converse? If (X,Y) is a continuous random vector, then are X and Y continuous random variables? I also think this is correct, as the continuity of the vector MUST imply the continuity of X and Y, although I'm honestly not sure.  Thanks


Number of ways to write a prime $p \equiv 1 \bmod 4$ as a sum of two squares

My intuition, from checking many cases, is that there is only ONE way to write a prime $p \equiv 1 \bmod 4$ as a sum of two squares. But how can I formally show this?


How do I get a reference to a component on a sibling object in C# Script?

I'm working on a game, where the player dumps trash from Trash cans into a Trash Truck. These Trash cans have a random chance of having a Racoon on top of them. I have a script set up to detect when the player enters a Collider Trigger attached to the Racoon, which will cause it to play an animation and start attacking the player. To do that, it needs to work with a racoon navigation component on a neighbouring object:  I'm trying to access the RacoonNAVAI component on the Racoon_Mover game object with this line: racNav = transform.parent.parent.Find("Racoon Mover").gameObject.GetComponent<RacoonNAVAI>();  But it's throwing a null reference exception. How can I correctly get a reference to this component?


A Song of Ice and Fire isn't completed yet in print.  I've Googled a bit, but can't determine if Martin is somehow contractually obligated to complete the books in a manner consistent with the conclusion of the television show.    I have seen published comments that at least some events shown in the show completely contradict his plans for the last two books, but could not find any indication of whether the basic thrust of the ending is something he has committed to as part of his arrangement with HBO.  Is it still possible, as a publishing matter, for him to choose to have an entirely different character end up "winning at the end"? Has George commented on parallels between his envisioned ending and HBO's ending?


If $p$ is a prime number and $p\mid a^p-b^p$. Then $p^2\mid a^p -b^p$.


Is it possible to make leaving a PhD look good on a CV / Resume?

I am in the process of leaving my PhD programme in life sciences at a top university in the UK. A PhD is simply not for me and I find the work/life balance to be intolerable; in addition, my PhD so far has included an industrial placement at a Fortune 500 company that was very eye opening and enjoyable. I am looking to leave academia permanently and apply for graduate schemes.  My question is whether it is better to leave the fact that I quit a PhD off my CV, or to have the failed PhD / MPhil on there, or to mask it as '18 months of lab experience' or something similar. Is it possible to make the fact I left a PhD sound good?


Can 30 1-second exposures be combined to a form the equivalent of a single 30s exposure?

I need to take 30 1s exposure shots in raw at night. The image becomes ALMOST black... Is it possible to take this tiny amount of light/information and sum them all toghether and get as a result a single image that equals a longer expoaure? I am not talking about brightening an image, I am talking about summing the single light information of the pictures together. Would that be possible in photoshop? Would the result be any good?


How to login into Drupal 8 using Ajax (REST API)

I want to login in my Site Drupal 8.2.3 from another application using Ajax, but is returning error all the time.  $.ajax({     url : "http://localhost/Drupal-tuto-test/user/login",     type : 'POST',     data: {         'username' : 'admin',         'password' : 'admin'     },     dataType : 'json',     error : function(data) {         console.log('Error ',data);     },     success : function(data) {         console.log('Success ',data);     } });


What's the difference between the following php packages?

The following message prompts when you just simply do: sudo apt-get install php, which basically installs all of the related php packages, I believe:  libapache2-mod-php7.2 php-common php7.2 php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline   Do I need to install all of these? My server Ubuntu prompted me to perform sudo apt install php7.2-cli. Most Sources online don't specify what the difference between the packages is?


How to make custom logo for published bge game

I recently published a Blender game with an executable which has a Blender logo. I would however prefer to make a custom logo. How should I do this?


how to select only max(id) if you need less columns in group by

The thing is that i could have values like  ID         STREET_ID    HOUSENUMBER POSTCODE 10000000   20512120     22              04114 11000000   20512120     22              04074   problem is that POSTCODE have to be in select, but i need distinct STREET_ID + HOUSENUMBER with MAX id, by example i just want to show 11000000,20512120,22,04074 out of 2 records because of MAX(h.ID).  this is my code  SELECT DISTINCT     MAX(h.ID),     h.street_id,     h.houseNumber,     h.postindex AS postCode FROM house h WHERE     h.postindex IS NOT NULL AND     h.STREET_ID IS NOT NULL GROUP BY     h.street_id,     h.houseNumber ORDER BY     STREET_ID,     CAST(REGEXP_REPLACE(REGEXP_REPLACE(h.houseNumber, '(\-|\/)(.*)'), '\D+') AS NUMBER),     h.houseNumber   i have an error " ORA-00979: not a GROUP BY expression " and i understand it, because POSTCODE is not in GROUP BY, how to deal with that?


How does the gluon field and the Higgs field interact with one another?

Assuming the theories that the Gluon field and the Higgs field are both responsible for particles gaining mass, how would both exist simultaneously in the same world? How would they interact with each other? And why isn't one field alone responsible for particles gaining mass?  Edit: Found this link to a 2013 question that appears to answer this one...


This is meant to solve this problem once and for all. What is every reason an object isn't showing up in a render or viewport in when using the cycles render engine?


why does following code give different output in C , C++?

The following code gives output as 1, 4, 4 in C whereas  1, 1, 4 in C++  #include<stdio.h>  int main()  {       char ch = 'A'; //initialise      //printing output     printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f));         return 0;  }


Let $A$ be a local noetherian ring and $\mathcal{M}$ is the maximal ideal of $A$. Then $A/\mathcal{M}^n$ is artinian.

Let $A$ be a local noetherian ring and $\mathcal{M}$ is maximal ideal of $A$. Then $A/\mathcal{M}^n$ is artinian.    How can I prove this?


Why can we prove mathematically that a formula to solve an (n+5) order polynomial does not exist?

I understand that the quadratic equation can solve any second order polynomial. Furthermore, equations exist for polynomials up to fourth order. However, without a graduate level degree and a deep understanding of mathematics, is there an explanation of how we can prove that the equations for solutions to a fifth order and above don't exist?  Thanks in advance.


Find the value of $a^{2m}+a^m+{1\over a^m}+{1\over a^{2m}}$

Let $a$ be a complex number such that $a^2+a+{1\over a}+{1\over a^2}+1=0$  Let $m$ be a positive integer, find the value of $a^{2m}+a^m+{1\over a^m}+{1\over a^{2m}}$  My approach: I factorized equation 1 which yielded $(a+{1\over a})={-1^+_-(5^{1\over2})\over2}$  I don't know if it is of any help.


Converting National Bridge Inventory(NBI) ASCII file to shapefile

I have downloaded the NBI ascii file data from . Now I am not able to convert it into a shapefile. The ASCII file has a latitude longitude column. I understand that it can be imported in a GIS software using X,Y values. But I am not able to make out whether the latitude longitude is in DMS or decimal degrees.  I am posting a sample here.  Sample Latitude: 40454200 Sample Longitude: 122190700  If there is any other way of converting it, I would like to know.


Initially I have seen that in order to analyze residuals for finite sample, Ljung - Box is defined as $n(n+2) \sum_{n=0}^h p_k^2/(n-k)$ where $n$ is the sample size, $p_k$ is the sample autocorrelation at lag $k,$ and $h$ is the number of lags being tested. Actually I know the proof of formula when sample size goes infinity but in finite sample case there is a little adjustment. Also no sufficient information exist for that adjustment. Could you provide me with the proof?


How do I only dump dconf settings I've customized?

Is there any way with dconf to export a file with only the customizations I've made?


How do I expand the apps on the launcher, like in windows?

Designer/Artist here using Ubuntu for some neural network projects. I am pretty new to Ubuntu/Linux and I don't quite know how to get things looking the way I want.   The main thing annoying me is how if I have two Mozilla windows open they stack. I don't want them to stack. I want to see multiple mozilla things in my launcher, similar to the way that windows taskbar does. I'd also like if instead of just icons it could have an icon plus text.   I've seen things for Gnome to do this I think but I don't quite know how to get that working on Ubuntu? I'm on Ubuntu 16.


Explanation of the command to check shellshock

Here is the command I have used to check my bash shell for the Shellshock bug:  env x='() { :;}; echo vulnerable' bash -c "echo this is a test"   Can anyone please explain the command in details?


Relatively closed subset of compact set is compact

Let $K$ be a compact subset of $\mathbb{R}^{n}$ and $F$ a subset of $K$ which is relatively closed in $K$. Then is $F$ a compact subset of $\mathbb{R}^{n}$?


Unable to locate package libesd0-dev on Ubuntu 18.04

I used:  sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 \ guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \ libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev \ libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev \ libslang2-dev libasound2 libasound2-dev   I got:  E: Unable to locate package libesd0-dev   I was following  but it's not working.  I want to use <graphic.h> in Ubuntu for C programs.


Which is the preferred way to convert an Enum to a String in .NET 3.5?   Enum.GetName Enum.Format ToString   Why should I prefer one of these over the others? Does one perform better?


How to flag rude/abusive suggested edit from a user who has made no posts?

This meta post  suggests to flag abusive users by flagging one of the posts, so that the mods can deal with the problem.  However, on The Workplace (where I am a moderator), we had a situation where one new user made rude/abusive suggested edit (specifically, he changed the question title to include "because I'm an idiot"). The user has not made any posts (questions/answers/comments).   In this case, some of our moderators are regulars in the site chat room, so some alert users pinged us there, and it got resolved that way. However, this is more of a workaround and doesn't work if moderators don't hang out in the chat room.   What is the preferred approach to handle this situation?  One alternative I could think of is the alert users could custom flag one of their own posts and post a link to the abusive suggested edit to bring it to moderators' attention. This doesn't seem to be a clean solution though.


I'm having some trouble simulating bullets in my 2D shooter. I want similar mechanics to Megaman, where the user can hold down the shoot button and a continues stream of bullets are fired but with a slight delay. Currently, when the user fires a bullet in my game a get an almost laser like effect. Below is a screen shot of some bullets being fired while running and jumping.    In my update method I have the following:  if(gc.getInput().isKeyDown(Input.KEY_SPACE) ){     bullets.add(new Bullet(player.getPos().getX() + 30,player.getPos().getY() +  17));   }   Then I simply iterate through the array list increasing its x value on each update.  Moreover, pressing the shoot button (Space bar) creates multiple bullets instead of just creating one even though I am adding only one new bullet to my array list. What would be the best way to solve this problem?


Concatenate specific files into one single file

In a folder containing X files, I need to concatenate Y files (where X > Y) together into a single text file. I have the filenames (of Y files) that I need to concatenate.


I am having issues solving these problems: I tried using $(|a|+|b|)^2 \geq 0$ and $(|a|-|b|)^2 \geq 0$ but I am having problems constructing the proof. I need to gain some intuition on how to proceed.     Show that for $a,b\in (-\infty,+\infty)$,   the following inequalities apply:   a) $2|ab| \leq a^2 + b^2$  b) $|a|+|b| \leq \sqrt {2}(a^2+b^2)^{1/2}$


$k$-fold covering of a connected set, $B$.

A question from Munkres:  Let $p:E\rightarrow B$ be a covering map; let $B$ be connected. Show that if $p^{-1}(b_0)$ for some $b_0\in B$ has $k$ elements, then $p^{-1}(b)$ has $k$ elements for each $b\in B$.  If I were to show that $p^{-1}(b)$ is bijective to $p^{-1}(b_0)$ then I would be done with the proof. But I don't see how, I mean all I know is that for each $b\in B$ there's a nbhd $U_b$ that is evenly covered by $p$; I think I know that $B \subset \bigcup_{b\ne b_0 , b\in B}\cup U_{b_0}$, but don't see how does this help?  Any hints? Thanks.


Trouble getting video as plane to show it's image

I've imported a .mp4 video as a plane in object mode so that I can point the camera at it and animate some 3D objects in front of the video. The image of the video won't show up though (it remains a black rectangle, and trying to play the animation doesn't change this.). I've tried tutorials but they all seem to be for older versions of blender and don't seem to track to today. Anything I can apply like adding a light source doesn't seem to do the trick. I'm trying to figure out how to change the viewing mode and material of the plane but I'm not sure I'm doing it right. Some of the lighting does seem to change the the black rectangle remains as such. Changing the engine from eevee to cycles doesn't seem to make any difference either.


I am very new to LaTeX.  A newline in the input file does not mean anything to LaTeX. An empty line in the input file means a new paragraph.  Trouble is, when I view my sources with different text editors on different displays, they look very different (and always bad). So I find myself chopping lines to the about 80-th character or so.   This brings the MS Word problem - introduce a line, or even a single word, and you need to edit the whole following paragraph in order that it is nicely  positioned on the display (talking about the .tex file).  Using --soft-wrap wraps lines around, but is not pleasing to the eye, plus a single move of the cursor could scroll a whole screen - hardly intuative.  How do I write .tex source file, so that anyone - using an IDE or just any editor, can view and edit them comfortable?


After I pour a cup of tea, I can't drink it for 10 minutes. Will it stay warmer if I add the milk at the start, at the end or does it not matter?

So preface, I work in engineering so I'm familiar with the basic principals of most fields in physics, but specialise in Civil Engineering so my knowledge of thermal physics is poor and I haven't studied it since high school.  I have this recurring problem at work where I boil a kettle and pour myself a cup of tea. During the brewing process, I sometimes get interupted by a collegue who wants me to solve a quick problem, taking no more than 10 minutes of my time. I like to drink my tea at my desk while browsing the web so my tea will sit untouched for this time. I take my tea with milk.   So my question:  If I have already brewed my tea and have 10 minutes or so where I know I will not be able to drink it, should I;  1. Add the milk immediately after brewing   2. Add the milk immediately before drinking  To maximise the temperature of the drink at the time of drinking.     To me this is a closed system and it shouldn't matter what temperature the tea is when the milk is added as the same amount of time will elapse overall and the start values for each liquid is the same.  But also if I add the milk early, it has more time to 'warm up' from fridge temperature.  But if I don't add the milk early, then the tea is at a higher start temperature and intuitively to me will drop in temperature at a faster rate.   The tea can probably be assumed to be at around 95C at the start and the milk 4C from the fridge.


How to disable Spotify indicator in the top panel?

The Spotify indicator icon clashes with the native Unity theme, and is redundant, since it is already listed in the Sound indicator menu. Is there a way to remove or disable the Spotify indicator? Or at least to change the icon (couldn't grep it on my filesystem). I am using the Spotify "preview" with 12.04. Thanks!


How can the speed of light be a dimensionless constant?

This is a quote from the book A first course in general relativity by Schutz:     What we shall now do is adopt a new unit for time, the meter. One meter of time is the time it takes light to travel one meter. The speed of light in these units is    $$\begin{align*}\end{align*}$$      $$\begin{align*}  c &= \frac{ \text{distance light travels in any given time interval}}{\text{the given time interval}}\\ &= \frac{ \text{1m}}{\text{the time it takes light to travel one meter}}\\ &= \frac{1m}{1m} = 1\\ \end{align*}$$      So if we consistently measure time in meters, then c is not merely 1, it is also dimensionless!   Either Schutz was on crack when he wrote this, or I'm a dope (highly likely) 'cos I can't get my head around this:  The space-time interval between different events at the same location measures time, and between different events at the same time measures space. So they're two completely different physial measurents: One is a time measurement using a clock, the other a space measurement using a ruler. In which case the units of $c$ should be $ms^{-1}$  Does Schutz correctly show how $c$ can be a dimensioness constant?


If $T: \mathbb{C} \to \mathbb{C}$ is given by $ T(z)= a z + b \bar z$ where $a,b \in \mathbb{C}$.   Then is it true that, $ |T z|= |z| \,\,\forall z\in \mathbb{C} \implies ab=0 $ ?   If yes, how can I show this? Any help would be appreciated. Thanks in advance.


If two pieces of the same type of metal touch in space, will they bond and be permanently stuck together?

Yesterday I was watching discovery channel, on a program they said that 'if two pieces of the same type of metal touch in space, they will be permanently stuck to each other.' Is it true..? If yes... then how is it so? Why is it not possible on Earth?


Show $\operatorname{Var}(X)=E(\operatorname{Var}(X\vert \mathcal{F}))+\operatorname{Var}(E(X\vert \mathcal{F}))$  I think the fact that:   $\operatorname{Var}(X\vert \mathcal{F})=E[X^2\vert \mathcal{F}]-E[X\vert \mathcal{F}]^2(*)$  may help me:  using $(*)$  $E(E[X^2\vert \mathcal{F}]+E[X\vert \mathcal{F}]^2)+E[E(X\vert \mathcal{F})^2\vert \mathcal{F}]-E[E(X\vert \mathcal{F})\vert \mathcal{F}]^2$  I know that via the tower property $E[E[X\vert \mathcal{F}]]=E[X]$ BUT does this also hold for $E[E[X\vert \mathcal{F}]^2]$, i.e. is $E[E[X\vert \mathcal{F}]^2]=E[X]?$ Any why?  Any ideas on how to solve the underlying problem


What is this lock screen with ads and how do I remove it?

I think my device got a malware. A lock screen with ads sometimes appear, and I must swipe an area at the bottom of the screen to open the phone. I am in Eastern Europe, some ads are in Slavic languages, and they are seemingly related to travel.    Image resized. Click to view the full image  I have seen ads for Lot Air (Polish carrier). I recently went to their site.  Considering my recent surfing activity and the nature of the ads, I guess the malware is connected to airlines active in Eastern Europe.  The lock screen also promotes the app "DU Quick Charger" by claiming it has recharged the phone extra fast during screen off. (!?) It also shows battery level. I have never installed DU Quick Charger. I doubt DU Quick Charger is installed on the phone.  The problem started after installing Ryanair app. The problem is maybe, but not surely, related to this. Uninstalling Ryanair and restarting the phone doesn't remove the occasional appearance of this lock screen. After a while the situation has changed for the worse, now this lock screen appears after EVERY screen off.  I have always used Avast. I am not rooted and only install via Google Play.  What is this? And how do I remove it?


How to Upper Case References in Bibliography

I want to type References in uppercase, I am using this code but still I am getting lower case References. I am using apacite formating with Bibtex file  \centering \label{REFERENCES} \nocite{*} \bibliography{Bibliography2}  \end{document}


I'm kinda confused and can anyone say whats the right form and elaborate as to why


Prove $\sum^n_{k=0}{n \choose k} 2^k=3^n$

I need to prove that $\sum^n_{k=0}{n \choose k} 2^k=3^n$   I already know that $\sum^n_{k=0}{n \choose k}=2^n$  I'm not really sure where to go after this.


I have written my dissertation with LaTeX, but my teacher has suggested to put the number of footnotes in braces / parentheses. I thought it would be easy, but I haven't found the answer anywhere! I would like it to look as follows:     I would like (1) it to look like this.      (1) and not 1.


How do I check if a command prompt command executes valid?

So I want to check if node.js is installed using c# by using this code. System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo.FileName = "cmd.exe"; startInfo.Arguments = "/C node -v"; process.StartInfo = startInfo; process.Start();  I'm not sure how to check if the command ran successfully. Is it possible in c# and if it is how?


Penalty taker pauses during the run-up: legal or not?

When taking a penalty, some players pause during their run-up, before kicking the ball forward.   Occasionally they halt long enough and the goalkeeper goes one way, then they shoot.  Is this legal or should the player taking the kick be booked for this?


Neutral non offensive alternative to "slanting eyes"

I was looking for a term to define the eyes shape of oriental people and I discovered  that the term  is a derogatory one:         (offensive)   a person with slanting eyes; especially , one of Asian ancestry      (MerriamWebster)   I checked its and found that :         Derogatory slang sense of "a slant-eyed Asian person" is recorded from 1943, from earlier slant-eyes (1929).      (Etymologyonline)  It seems that it was a neutral term at first but it became derogatory later. Is it so? What made the term sound offensive?  What alternative neutral expression can I use  instead of "slanting eyes?


Diophantine equation of $a^2+b^2=c^2+d^2$

Is there a known solution to:  $$a^2+b^2=c^2+d^2$$  Hopefully the question is clear, if not I do apologize.


What is the default application for opening .desktop file on Ubuntu 20.04 as originally intended? When I double-click, for example, firefox.desktop on /usr/share/applications, it opens as a text file on gedit.


Finding recurrence relation 2 - Ternary sequences.

for $n \ge 1$ , Let $f(n)$ be the number of ternary sequences {$0,1,2$} of length n,  that the sum of their characters are even, and they have at least one show of $0$.  How do i find the recurrence relation for f(n), thanks in advance.


can't login as mysql user root from normal user account in ubuntu 16.04

I just installed Ubuntu 16.04 LTS along with the packages php, mariadb and nginx. I ran mysql_secure_installation and changed the root password.  Now when I try to login to mysql using the root account while logged in Ubuntu as normal user account I get access denied.   When I login using sudo mysql, mysql doesn't even ask me password. If I run mysql_secure_installtion I see that old settings never got set permanently.   What am I doing wrong?


I am creating a bitcoin based ad platform for a bitcoin earning portal. The reason I mention it is, I believe, it'll help to understand my problem and thereby I may get a better solution. I am explaining my process in 3 simple steps...   Calculating order amount in PHP...  $orderAmount = $adUnitPrice * $noOfUnit; Creating a new pending order in DB...  INSERT INTO deposit (orderid, orderamount, status) VALUES ('$orderid', '$orderamount', 'pending'); Updating the order when the bitcoin payment is made...  UPDATE deposit SET status = 'success' WHERE orderid = $orderid AND orderamount*100000000 <= $value_in_satoshi AND status = 'pending';   Now, $adUnitPrice is always 0.001. Everything is working fine as long as $noOfUnit is not equal to 70. Whenever $noOfUnit = 70, the update operation is not executing as it turns out that 'orderamount*100000000 <= $value_in_satoshi' is returning false. $value_in_satoshi is equal to 7000000 in this case.    p.s. Even if it was a floating point error, 0.001 represntation in IEEE 754 floating point math is expected to be lower than actual 0.001. So, how can it turns out to be higher ?


How does the Hogwarts Headmaster know whom to invite to school?

So all wizards get an invitation to Hogwarts at 11... How do they know whom to invite?  If a wizard is Muggle-born, then nobody would know about their existence.  Or do they register some weird magical stuff being done by them before 11?


If a wrong tag synonym has been created and was used for some time. How can both tags be separated again?


I've been reading about black holes, and I keep coming across the fact that time runs slower near a them.  My questions are: Does this mean that if you left Earth at age 30 and spent 30 years near the black hole, then you would be 45 years old?  Do you get older more slowly, because if it's all the same what is the point of travelling near a black hole?


Why did Rose throw the diamond necklace overboard?

In , the elderly Rose visits a ship searching for the  diamond, set in a necklace.  Unbeknownst to them, she actually carries it with her. In one of the final scenes, a bare footed Rose walks to the railing of the search ship, climbs up on it in similar fashion to when she and Jack were on the prow of the Titanic, and throws it into the ocean. The accepted answer in  suggests Rose threw it overboard for 'closure', but I simply cannot understand how that was closure.  After all, it is not as though Jack (when alive) had any real interest in it.  Nor did Rose. It was of interest only to her fiance Cal (who took his own life in 1929, when the stock market crashed). It could be said that the return of the 'Heart of the Ocean' to the ocean, was ..poetic in a sense, but how was it closure?  If not closure, then why did she do it? Update Interestingly, the  differs from the movie in that the people searching for the diamond are there to witness her throwing it overboard.  She even has a few words with Lovett as he is holding the object of his desire in his hand.  You look for treasure in the wrong place, Mr. Lovett.  Only life is precious, and making each day count.  Another snatch of the script that might be relevant:  The hardest part of being so poor, was being so rich.  But every time I thought of selling it, I thought of Cal.  And somehow I always got by without his help.


Neatest proof that set of finite subsets is countable?

I am looking for a beautiful way of showing the following basic result in elementary set theory:     If $A$ is a countable set then the set of finite subsets of $A$ is   countable.   I proved it as follows but my proof is somewhat fugly so I was wondering if there is a neat way of showing it:  Let $|A| \le \aleph_0$. If $A$ is finite then $P(A)$ is finite and hence countable. If $|A| = \aleph_0$ then there is a bijection $A \to \omega$ so that we may assume that we are talking about finite subsets of $\omega$ from now on. Define a map $\varphi: [A]^{<\aleph_0} \to (0,1) \cap \mathbb Q$ as $B \mapsto \sum_{n \in \omega} \frac{\chi_B (n)}{2^n}$. Then $\varphi$ is injective hence the claim follows. (The proof of which is what is the core-fugly part of the proof and I omit it.).


Proof of Cauchy's Theorem for abelian groups

I am reading the Dummit and Foote's proof of Cauchy's theorem for abelian groups. On the highlighted line, how do you conclude from $y\notin N$ and $y^p\in N$ that $\langle y^p \rangle \neq \langle y \rangle$ and that $|y^p|<|y|$?     Proposition 21.   If $G$ is a finite abelian group and $p$ is a prime dividing $|G|$, then $G$ contains an element of order $p$.      Proof:   The proof proceeds by induction on $|G|$, namely, we assume the result is valid for every group whose order is strictly smaller than the order of $G$ and then prove the result valid for $G$ (this is sometimes referred to as complete induction).   Since $|G| > 1$, there is an element $x \in G$ with $x \neq 1$.   If $|G| = p$ then $x$ has order $p$ by Lagrange’s Theorem and we are done.   We may therefore assume $|G| > p$.      Suppose $p$ divides $|x|$ and write $|x| = pn$.   By Proposition 2.5(3), $|x^n| = p$, and again we have an element of order $p$.   We may therefore assume $p$ does not divides $|x|$.      Let $N = \langle x \rangle$.   Since $G$ is abelian, $N \trianglelefteq G$.   By Lagrange’s Theorem, $|G/N| = |G|/|N|$ and since $N \neq 1$, $|G/N| < |G|$.   Since $p$ does not divide $|N|$, we must have $p \mid |G/N|$.   We can now apply the induction assumption to the smaller group $G/N$ to conclude it contains an element $\bar{y} = yN$, of order $p$.   Since $y \notin N$ ($\bar{y} \neq \bar{1}$) but $y^p \in N$ ($\bar{y}^p = \bar{1}$) we must have $\langle y^p \rangle \neq \langle y \rangle$, that is, $|y^p| < |y|$.   Proposition 2.5(2) implies $p \mid |y|$.   We are now in the situation described in the preceding paragraph, so that argument again produces an element of order $p$.   The induction is complete.      (Original image .)


Conflict between TikZ/qtree and Babel/French

I'm running into troubles when mixing Babel French and tikz-qtree. Here is a minimal non-working example :  \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{tikz,tikz-qtree} \usetikzlibrary{arrows,arrows.meta}  \begin{document}      \begin{tikzpicture}     \Tree [.CP [.NP \node(wh){what}; ]     [.C$'$ [.I did ]     [.\node[draw]{IP};     [.NP [.Det the ] [.N cat ] ]     [.VP [.V sit ]     [.PP [.P on ]     [.\node[draw]{NP};     [.NP [.Det a ] [.N book ] ]     [.PP [.P about ] [.NP \node(t){$t$}; ] ] ] ] ] ] ] ]     \draw[semithick,->] (t)..controls +(south west:5) and +(south:5)..(wh);     \end{tikzpicture}  \end{document}   The error is :  Runaway argument? (wh){what}; ] [.C$'$ [.I did ] [.\node [draw]{IP}; [.NP [.Det the ] [\ETC. ! Paragraph ended before \@@@@litlabel was complete. <to be read again>                     \par  l.22    Removing the Babel declaration, or switching the french option to german, allow the code to compile. Spanish also causes troubles, with a different error :  ! Argument of \language@active@arg> has an extra }. <inserted text>                  \par  l.20    \draw[semithick,->]                           (t)..controls +(south west:5) and +(south:5)..(wh);   I've read  and tried to apply the , with no success (but I had no more success with the code given in this thread that caused troubles : may be I'm doing things the wrong way...).  Could someone help ? Thanks a lot in advance.  1st edit : I've just realized that  offers a solution. Putting \shorthandoff{;} at the start of the tikzpicture environment allows the document to compile. It's quite strange as the question is quite old now (almost 4 years) and I've recently updated my TeXlive distribution to the 2016 version (it was yesterday ! so it is supposed to be up to date !).


Is there a VPN Monitor/Kill Switch application for Ubuntu?

Hi I am looking for a VPN Monitor/Kill Switch application that will ensure my VPN connection is always connected. Should my secured connection drop, the application will drop the applications that it's monitoring to prevent data leak. I know there are such applications for Windows. However, I have yet to find a suitable alternative for Linux.


Are collective nouns always plural, or are certain ones singular?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


As you found out I am relatively new to XeTeX and I want to import bibliography to my academic essay. But I have a few questions on how to do that:   Should I record Bibliography in separate file or define it on the same tex file? If I define it over a separate file, how XeTeX will find out the bibliographic references?


I'm working on a camera switching feature. I'm thinking about the arrangement of the label of the button. To me, we can prompt the user to slide right to enable the front camera and in order to enable the back camera, the user will slide left. The reason for my opinion is: We should show the instruction in the button rather than showing the current status. Is there any user research or different thought? Thanks in advance.


Change the sql table output - Rows to Columns

I have a result from recursive query that gives me Table1 (SQL Server 2008 R2). I need to convert the Table1 to Table2 and I don't know the best and simplest approach to do it. Any suggestions? Table1  Table2  Regards.


Why is my particle instance object rotated?

When I use the cone in the background as a particle instance object on the plane, it is rotated, as you can see. How do I get it to not do that, or rather, how do I get the cones to stand upright on the plane?  There are no rotation transformations still unapplied, I also didn't change anything in the Particle settings (other than "Hair -> Render: Object -> Object:Cone), this is just everything out-of-the-box.


How prove this inequality $\left(\int_{0}^{1}f(x)dx\right)^2\le\frac{1}{12}\int_{0}^{1}|f'(x)|^2dx$

Let $f\in C^{1}[0,1]$ such that $f(0)=f(1)=0$. Show that   $$\left(\int_{0}^{1}f(x)dx\right)^2\le\dfrac{1}{12}\int_{0}^{1}|f'(x)|^2dx.$$   I think we must use Cauchy-Schwarz inequality  $$\int_{0}^{1}|f'(x)|^2dx\ge \left(\int_{0}^{1}f(x)dx\right)^2$$ but this maybe is not useful to problem.  The coefficient $\dfrac{1}{12}$ is strange. How find it ?


I woke up Cyrus, but he went back to sleep

In Animal Crossing: New Leaf, I woke up Cyrus. But then he went back to sleep! HELP! I went into the shop, and he had woken up! But when I came back, he was sleeping again :( Is something wrong with my game?


subtraction of two irrational numbers to get a rational

Say you have a number like $\pi$ or e. Is it possible to subtract another number from it and end up with a rational number? I mean I guess you could write an equation like $\pi-x=3$ But could there ever be a solution for x (that we could know and write out)?  Correction: Any number besides the irrational number itself. Damn math ppl are too quick..


Why doesn't the frequency of light change during refraction?

When light passes from one medium to another its velocity and wavelength change. Why doesn't frequency change in this phenomenon?


20.04 LTS on Dell Latitude E7250 After updating to latest Ubuntu software, when I rebooted this black screen appeared.  I'm using Ubuntu standalone on my laptop. Kindly help me. PS: I'm very new to Linux (just a month or so). Guide me in a noob friendly way. Update:


We know that Lily and Snape were great friends at a young age, and that Snape loved her dearly, so far as to match her Patronus and become a double agent after her death. However, we know of their falling out as well. Did she return his affections, at least before he called her a mudblood? (Please no answers from HP wiki/wikia, Lexicon, or movie quotes, however canon based examples, book quotes, JKR tweets, Pottermore and interviews are fine. If you have canon-based speculation please leave a comment! I love to read speculations!)


Is there an efficient way to create a file with a given size in Java?  In C it can be done with  (see ).   Most people would just write n dummy bytes into the file, but there must be a faster way. I'm thinking of  and also of …


While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a  of how to install a newer Oracle version of Java:  sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer   However I'm afraid that this might overwrite my existing open-jdk version of Java. Since I don't know which of my programs depend on Java, I fear that this could crash these other programs.  Is there a way to make sure apt-get doesn't overwrite my previous Java? I would basically like to have installed both and be able to switch between them manually, depending on what version I need.


How to share a beamer PDF by teleconference (Zoom/etc) using the "show notes on second screen" option?

Beamer's "show notes on second screen" option is for giving talks on a projector, while showing something different (speaking notes) to the presenting author.  For remote delivery of talks, one needs:   the audience view to be generated at normal/custom size, NOT scaled up to the entire screen, so that the conference software (e.g. Zoom) can be fed a reasonably-sized image for screen-sharing possibly separate but synchronized windows for displaying the audience view and presenter view   This sounds like a request for    screensharing software, e.g. Zoom, to allow showing less than an entire window, or  a presenter software like pdfpc to change its behaviour substantially.   However, more generally, I'm looking for advice: how do you give (beamer) presentations online when you have speaker notes associated with each slide? Or even ideas for the simplest new / to-be-developed approach?


In the Cracking the Coding Interview Linked List question: Write code to remove duplicates from an unsorted linked list, the solution is  public static void deleteDups (LinkedListNode n){   Hashtable table = new Hashtable();   LinkedListNode previous = null;   while(n!=null){       if(table.containsKey(n.data)){           previous.next = n.next;       } else {           table.put(n.data, true);           previous = n;       }       n = n.next;   } }   My question is why does n = n.next not alter the linked list passed into the function, but doing previous.next = n.next and previous = n do alter the linked list passed in?


Is it possible to mount an iso in writable mode ?

I would like to know if it is possible to mount in mode writable. I mean to mount a content of an iso file in order to modify it in /media/USERNAME/NEWFOLDER


Stop last column of multicolumn table from leaving right side of page

The code below leads to this table:    where the right hand side goes off the page but the last column of data is not displayed. The table should fit on the page -- it is not too wide, except that the right column is inexplicably extended off of the page. For instance, the caption is wider than where the last column of data should be, and that caption easily fits in the page. What am I missing?  \begin{table}[ht]   \caption{Site and structural characterization data for the samples in this study.}   \begin{center} \begin{tabular}{c c c c c c} \hline  \multicolumn{1}{p{1.5cm}}{\centering Sample} & \multicolumn{1}{p{1.5cm}}{\centering Si/Sn \\Ratio \\ (AAS)$^a$\\} & \multicolumn{1}{p{1.5cm}}{\centering Si/Sn\\ Ratio \\ (EDS)$^b$} & \multicolumn{1}{p{1.5cm}}{\centering V\textsubscript{ads, micro}\\(cm$^3$ g\textsuperscript{-1})} & \multicolumn{1}{p{1.5cm}}{\centering DRUV \\Band \\ Center\\ (nm)$^e$} & \multicolumn{1}{p{1.5cm}}{\centering DRUV\\ Edge \\Energy\\ (eV)$^e$} \\\hline  Sn-CHA-F-60&59&65&0.16$^c$&219&4.33\\ Sn-CHA-F-70&70&65&0.15$^c$&223&4.12\\ Sn-Beta-F-116&116&122&0.23$^d$&222&4.23\\  Sn-xerogel&110&130&0.02$^c$&245&4.37\\ Si-CHA-F&n.m.*&n.m.*&0.23$^c$&n.m.*&n.m.*\\\hline \multicolumn{6}{l}{$^a$Bulk composition determined by atomic absorption spectroscopy (AAS).} \\ \multicolumn{6}{l}{$^b$Composition determined by energy dispersive X-ray spectroscopy (EDS).} \\ \multicolumn{6}{l}{$^c$Micropore volume determined from Ar adsorption isotherms (87 K). } \\ \multicolumn{6}{l}{$^d$Micropore volume determined from N$_2$ adsorption isotherms (77 K). } \\ \multicolumn{6}{l}{$^e$Diffuse reflectance UV-Vis spectra (band center at maximum F(R) intensity) and Tauc plots for samples after dehydration at 523 K (Section \ref{sec: chas5}). } \\ \multicolumn{6}{l}{*n. m., not measured} \\ \end{tabular}   \end{center}   \label{ta: cd3cn1} \end{table}


Cannot disable Hyper-V in Windows 8.1, listed as missing

I'm trying to run AndyOS. Its an Android emulator to run Android apps and games on my PC.  My system meets the hardware specifications and since I have prior experience in running virtual machines, I know a thing or two about virtualization support.  I had enabled Hardware Virtualization through the BIOS and installed the virtual machine,but it fails to start up.  I contacted AndyOS support forums and they suggested to disable Hyper-V as it would prevent the virtual machine to start. They told me to run the following command on an elevated command prompt to disable Hyper-V  dism.exe /Online /Disable-Feature:Microsoft-Hyper-V  Here's what I got  C:\Windows\system32>dism.exe /Online /Disable-Feature:Microsoft-Hyper-V  Deployment Image Servicing and Management tool Version: 6.3.9600.17031  Image Version: 6.3.9600.17031   Error: 0x800f080c  Feature name Microsoft-Hyper-V is unknown. A Windows feature name was not recognized. Use the /Get-Features option to find the name of the feature in the image and tr y the command again.  The DISM log file can be found at C:\Windows\Logs\DISM\dism.log   What does this mean? Is Hyper-V having a problem in my PC, even though the PC fully supports Hyper-V?  I have "Windows 8.1 Single Language" preinstalled by OEM HP.  I am able to run the virtual machine with hardware virtualization disabled but its extremely laggy.


Will reseting my device to factory setting unroot and remove superuser?

As the title says, if I reset my rooted nexus 4 to factory settings will it be unrooted relocked and superuser uninstalled?


Calculating the length (norm) of a vector

How do you interpret this equation? I've seen far simpler equations for solving the magnitude, like the square root of all of the elements of a vector squared added to one another. What exactly is going on with the Greek symbol in that equation? Is there something I'm missing? [vector magnitude calculation][1]  2.6 The lenght (norm) of a vector The lenght ( or norm ) of a vector a is: $$\left\|{a}\right\|=\sqrt{aa}=\sqrt{\sum_{i=1}^n a_i^2}$$


How to run systemctl commands inside chroot container without interactive login?

I am writing a program that does server management on remote systems. While I can run almost all commands using the:  $ chroot <directory> /bin/bash -c <command>   format and get the results back, starting and stopping the services or getting their status aren't possible because of the systemctl restrictions.   I have tried the options offered in these:    .    They're either long winding or not a simple solution like the one chroot /bin/bash -c offers.  I'm on a CentOS machine with systemctl 2.19 and there is no --shell option via machinectl. Is there a simple chroot <> /bin/bash like shortcut to run start/stop/restart the services running inside the chroot environment?  For e.g., OpenLDAP's solserver service runs inside the chroot. How do I get the output of systemctl status solserver from the host without logging into the container?


What is the difference between free and available on the system monitor?

I've searched the , but I couldn't find the answer. Is there anyone can help me?


How to append multiple lines of text to a file?

I want to append this text:  <Directory "/var/www/*">     Order allow,deny     Allow from all     AllowOverride All </Directory>   to the file /etc/apache2/apache2.conf  I have access via SSH but I don't know how to use VIM. I would like to do this via a command.


Extremizing sum/difference of lengths using triangle inequality

We have three points $P=(2,3)$, $Q=(4,-2)$ and $R=(\alpha,0)$. We need to find the value of $\alpha$ such that:    Part 1: $|PR+QR|$ is maximized.  Part 2: $|PR-QR|$ is minimized.  I was given the solution for both. I have understood the solution for case 1 but not for case 2.  Case 1's solution :    Case 2's Solution:   I have understood case 1 completely but in case 2 why was there a need to take the image of point Q? I fail to understand this.


Why is the Centroid of a Triangle Shared with Its Midpoint Triangle

The question is as follows:      Let $A'$, $B'$ and $C'$ be the midpoint triangle of triangle $ABC$. In other words, $A'$, $B'$ and $C'$ are the midpoints of segments $BC$, $CA$ and $AB$, respectively. Show that triangles $A'B'C'$ and $ABC$ have the same centroid.    My reasoning was through the means of the Midline Theorem. After drawing the diagram, we can see, for example, $C'A'$ is a midline of $\triangle ABC$, which means that $C'A'$ is parallel to the base $AC$ and half the length of it as well. Therefore, the median $B'B$ would pass through the midpoint of $C'A'$, including the midpoint of $AC$.   Is my reasoning valid or, at least, is it on the right track? Any advice on solving this problem will be greatly appreciated.


How do I remove an element from the vector?

So I have to write my own method.  I did  the following:   vector<float> remove(vector<float>& sortedVector, float input) {      for (vector<float>::iterator it = sortedVector.begin() ; it != sortedVector.end(); ++it)     {         if(input == *it)         {             sortedVector.erase(it);         }     }      return sortedVector; }   However compiler breaks at for loop. Where did I go wrong? I need to return the modified vector after the given value of the user is removed from the vector.


Can we get notifications for when moderator tags are added?

One of my questions had  added with no comment from the developers or anything. ; if I weren’t paying attention to the question, I wouldn’t know at all that my feature request were being worked on. Can this be changed so that there is a notification if moderator-only tags are added to or removed from a post?


Which article is correct when referring to a disease? (e.g. the flu, a cold)

I just had my first Composition 102 lecture and the professor said that when you refer to a disease you use "the" as in "the flu."  I don't argue with that example because you say "I have the flu," and not "I have the cold," but if that's true then why does nobody say "the cancer?"  Cancer is a disease, but I have never heard anyone say "the cancer," so is my professor wrong?


Use the definition of continuity and the formal definition of the limit value ("$\epsilon$-$\delta$ definition") to show the following: Let $f: \mathbb{R} \to \mathbb{R}$ be a function that is continuous in $x = 0$ and has the property that if $x\neq 0$ then $f (x) \ge 0$. Then $f(0) \geq 0$.  I don't know where to start and I'm not good at using the formal definition of the limit value. I really appreciate some help :)


We are writing a book about an amateur dramatic group called 'Richmond Players'. The title is "The Richmond Players Story".  There is a hot debate in the group about whether a possessive apostrophe is needed after "Players".  One school of the thought is that one is not needed because of the inclusion of "The".  Thoughts?


Why are corticosteroids used to treat Covid-19

I read an  on the BBC which said that corticosteroids where used to treat Covid-19 patients in India. Later they changed the word corticosteroids into steroids and they added that they were used to reduce lung inflammation. I didn't know what corticosteroids were so I checked on Wikipedia, where I also found this , which repeats from another source that corticosteroids where used to treat Covid-19 patients. As far as I understood corticosteroids are immunosuppressors, therefore I cannot understand why they are used to threat a viral infection. Isn't there a more appropriated treatment to reduce lung inflammation in such cases? There is another question about corticosteroids and covid-19, but it asks something different:


Removing camera button on iPhone lock screen

How to remove the camera button on the iPhone lock screen without removing the camera from the springboard  I don't want to allow people without access to take pictures using my phone (pictures are shared automatically by iCloud) But in the same time, I want to be able to use the camera from the springboard.  I'm searching for a native solution under iOS 8.x or later


problem involving series that converges depending on another series converging

Not sure how to approach this problem below. I tried assuming the conditional but that doesn't seem to get me anywhere.     If for a sequence of non-negative real numbers $\{a_n\}$, we have $$\sum{a_kb_k}$$ converges whenever $$\sum{b_k^2}$$ converges. then show that $$\sum{a_k^2}$$ converges


Prove by induction the binomial coefficient is always an integer

Prove that $\binom{n}{r}$ is always an integer for all $n$ and for  $0 ≤ r ≤ n$.


I would like to have a professional academic webpage, and for different reasons, I don't want to use the website of my current workplace (mostly because due to some external factors, it's not currently possible where I work, but also because I consider changing affiliation in the future, and I'd like to avoid moving my webpage).  A possible solution I'm considering would be to rent a server somewhere, and to manage it myself, but I was wondering if it existed some dedicated solutions for academics, ideally coming for free (after all, I can archive my papers on arXiv for free, I have a free academic licence for Bitbucket, I use Dropbox with the free version, I can also use Mendeley and academia.edu for free, I currently have a free wordpress.com blog), with the constraint that I'd like to be able to write my own scripts (for instance to publish my personal list of publications , or to manage a list of conferences I'm interested in).


unable to edit file /proc/self/make-it-fail

I am editing file /proc/self/make-it-fail from root user. This file is having write permission but update not possible, showing  "E667: Fsync failed" error.


My task is to prove: $$ |\prod_{i=0}^n(x-x_i)|\leq\frac{n!}{4}(\frac{b-a}{n})^{n+1} $$ where $x_i=a+i\frac{b-a}{n}$ for $i=0,...,n$ and $x\in [a;b]$  I managed to prove that: $$ |(x-x_0)(x-x_1)|\leq \frac {1}{4}(x_1-x_0)^2 $$ so it's for $n=1$, using a.m.-g.m., but I don't know in which direction to go in order to prove it for all $n$


Why is the square root of a number which is drawn from an exponetial distribution, Rayleigh distributed?

If we have a number $X\sim f(x|\lambda)$ where $$f(x|\lambda) = \lambda e^{\lambda x}, x \geq 0$$ then $\sqrt{X} \sim r(y|\sigma)$ where $$r(y|\sigma) = \frac{y}{\sigma^{2}} e^{-y^{2} /(2 \sigma^{2})}, y \geq 0$$ which is the Rayleigh distribution. Why is this the case? It is easy to prove this mathematically with the transformation technique, as shown , but I'd like to have a more intuitive understanding on why this arises. For example the emergence of the Rayleigh distribution can be readily explained by considering the absolute value of two normally, uncorrelated vector components.


Problem :   Verify if the statement if true of false -  The set $S$ of all real numbers of the form $\frac{m}{10^n} $ with $m,n \in \mathbb{Z} $ and $n \geq 0$ is dense in $\mathbb{R}$ .  I think this true .  Reason : $S$ is actually a subgroup of $\mathbb{R}$ with respect to addition .  Now i know the theorem that any subgroup of $\mathbb{R}$ is either cyclic or dense .   If $S$ were cyclic then there non-zero $m$ and an $n\geq 0$  such that $\frac{m}{10^n} $ generates $S$ . So there is a non-zero $i\in \mathbb{Z} $ such that $0= \frac{m}{10^n}+..\frac{m}{10^n}$ ( $i$ times adiition )$ = \frac {mi}{10^n} $ which is not possible because neither $m$ or $i$ is $0$ .So $S$ can be cyclic . Hence it is dense .


How to open duplicated question without being redirected?

I'm looking for some special parameter (like ?redirect=no, or something), which will prevent the redirection for the question from non-authenticated users.  Currently the questions are opened correctly when I'm authenticated (or for high-rep users), but when I'm sending this question somewhere else (like opening them in Privacy mode), it got redirected.  Is it possible to prevent that from happening by adding some special parameter? Or is there any workaround (like Wikipedia does that)?


Can I use the Canon EF 50mm f/1.8 II lens with the Canon 600D camera body?

I'm new to photography, just trying to get the right lens!


Why didn't Malfoy just kill Harry in the Half Blood Prince?

Obviously Malfoy was sent to kill Dumbledore. But wouldn't it just have been easier to kill Harry? Why did Voldemort only have him kill Dumbledore, when there were countless opportunities to do them both off at separate times?


I have to prove the following statement. Let$ f: X\to Y$  be a function and A and B subsets of X. Show:   1) $f(A\cap  B) \subset f(A) \cap f(B)$  2) If f is injective, then $f(A\cap B) = f(A) \cap f(B)$  To begin with 1, I started as follows:  y $\in$ f(A$\cap$B) $\iff$ $\exists$x $\in$ A$\cap$B: y = f(x) $\iff$ $\exists$x $\in$ X: x $\in$ A$\cap$B $\land$ y = f(x)  My problem then is, if I write this out like this, I have f(A$\cap$B) = f(A) $\cap$ f(B), which is not correct. Is it maybe possible that my starting point is not good for this statement? Thank you for your help.


Is it possible to work on QGIS with QTCreator since most of the build documentation is assuming Linux environment and I have to use windows 7?  all of the old posts in this forum didn't solve this issue it is still not clear how can I integrate Qgis with QTcreator.


"Race" is to "racism" as "religion" is to what?

I've heard "racist" being used in a few cases to describe bigotry towards people of a certain religion. It's a bit annoying because it implies that all people of a religion are the same race, which is hardly the correct case. However I'm also bewildered that there doesn't seem to be an appropriate one-word substitute coined to describe prejudice/discrimination/sense of superiority in terms of religion. What (if any) word exists for it?


I have this code in javascript   let a = 1; let b = 0.8; let c = a-b   I expect the value of c to be equal to 0.2, but the value I get is 0.19999999999999996  does any one have an explanation


I found a couple of interesting formulas and would like to post an image of them on Twitter.  Anyway, I'd like the formulas to look good, so obviously I'll be typesetting them with TeX...  So is there a good - and preferably as direct as possible - way to make output from TeX into a PNG or JPEG file?


Extend comment "magic links" syntax to allow arbitrary link text

The  are awesome.  How much more awesome would it be to be able to make a comment linking to one of the URLs covered by a magic link, but with custom text?  Since the square-bracket link type isn't included in the mini-markdown used for comments, it could be stolen for this purpose.  Comment text like    Please [add that information][edit] to the body  of your post rather than using comments.   or   Please [include the shortest possible amount of code that demonstrates the problem you see][mcve].   would convert to   Please [add that information](http://{SITE}.stackexchange.com/posts/{ID}/edit)  to the body of your post rather than using comments.   and    Please [include the shortest possible amount of code that demonstrates the problem you see](http://stackoverflow.com/help/mcve).   for example.


What to display while waiting for a process (4-5 seconds) to complete?

We realized that in some cases the user may be waiting up to 4 or 5 seconds (depending on connection) for their form (or some action) to be processed. The form involves getting data from other servers (facebook) and merging it with our own data then submitting to our server. So while this is all happening there will be some dead time.   Our initial reaction was the just use a spinner to indicate that something is occurring. Then we decided to make things fade and appear to kind of fake "speed". Then we thought we might be missing an opportunity to present really cool information or to delight the user.  Is there a standard approach for this specific use case, or is a spinner the appropriate method to take?


Why do different ISO images have different file sizes?

I set the ISO on my Canon 6D to 200: 1081 estimated shots remaining.  I set the ISO to "auto": 728 estimated shots remaining.  I'm shooting in RAW, if that makes a difference.


Correlation of categorical and interval variables

My data looks like this:  Color | X_1 X_2 ... X_n ----------------------- red   | 0.5 0.9 ... 0.2 green | 0.7 0.7 ... 0.3 red   | 0.8 0.3 ... 0.2 blue  | 0.7 0.4 ... 0.2 ...   I want to test for a correlation between the categorical variable Color and each interval variable X_i. What is the best way to calculate this (in R)?  For the sake of full disclosure, I'm trying to generate a simulation showing how easy it is to find spurious correlations when you have a small number of data points with a large number of features.


Google Sheets How to Hide or Show Specific Columns using Custom Menu

I've figured out how to create a custom menu, but I'd like to be able to hide or show certain columns (not necessarily ranges), based on what menu item is selected.  Not sure on the next steps / can't make it work.  function onOpen() {` var ui = SpreadsheetApp.getUi()     .createMenu('Custom Menu Views')     .addItem('Financial', 'financial')     .addItem('Schedule', 'schedule')     .addToUi(); }


Applying for a PhD before or after finishing master's

I'm currently working towards a master's in mathematics, and I would like to continue with a PhD. I have good grades and I'm aiming at something equivalent to a first class honours, at a highly ranked university in maths.  The problem with applying for a PhD now (starting next fall) is that I have barely begun work on my thesis, and therefore wouldn't be able to get a reference from my advisor (at least not one that would describe my work on my thesis, the closest thing I'll have to research, and the crowning project of my master degree). I could try to solicit a couple of half-baked references now, send preliminary transcripts and detail my plan for my master thesis, but I feel my application would be much more convincing if I submit it after I get my degree. My transcript would be a complete diploma, and my references would be able to speak to the whole of my work, including the last (and most important) part.  Although this is what I'm inclined to do, it would inevitably result in losing a year. I would be ok with that: I could try to find a job/internship somewhere, prepare my applications with more time on my hands (including prepping for possible interviews) and maybe even work on a couple of independent research projects. However I'm afraid that time spent away from academia might be a big minus for my application, considering that if accepted, I would be starting my PhD at the age of 26, pushing 27 (and although this might not show up explicitly, it would be abundantly clear from my cv). I see that most of my class mates are applying before finishing their master, and I'm therefore also worried that my taking the extra year might be perceived as an unfair advantage to other applicants.  I'm also worried that submitting applications twice might also not work, since being rejected in this round might play against me next time.  I would be very grateful for any suggestions! Thank you :)


GNOME 3.14+ launch new gnome-terminal and set title

To the disappointment of many, tab/window title can't be set anymore with --title  I use bash. I have had a few aliases I have used to connect to remote servers with.  alias c:prod='gnome-terminal --hide-menubar --profile=Production \ --title="Production Server" -e "ssh <url>" &'   I found a workaround for GNOME 3.14+ to set title which works well in the command line once put in .bashrc  function set-title() {   if [[ -z "$ORIG" ]]; then     ORIG=$PS1   fi   TITLE="\[\e]2;$@\a\]"   PS1=${ORIG}${TITLE} }   However, this only seems to be effective if placed and called in the remote server's .bashrc i.e. I can only change the title after login.  It has no effect, whatsoever if I attempt to change the title of the new window before connecting:  alias c:prod='gnome-terminal --hide-menubar --profile=Production \ -e "bash -c \"source ~/.bashrc;set-title Production;ssh <url>\"" &'   Setting window title on the remote feels wrong, when the terminal is running on my box, and I cannot make it work on servers either where my user does not happen to have a home directory to put a .bashrc in.  Is there a forest I can't see for the trees?


Do I need a dweller in the storage room?

Do I need a dweller in the storage room(s), or can I use the dweller elsewhere?


I'm trying to find a closed form solution of the following quadratic form for $x$.  $x^{T}Dx = c$  where $c$ is just a constant placeholder for some terms on the other side.  I know that, because $D$ is positive semi-definite, this equation describes a level curve of an ellipsoid in $x$, which gives me hope that there exists a closed form solution of the form $x = \frac{a\pm  \sqrt{z}}{b}$, for some $a, z, b$ (which may be matrices or vectors).   Do you know if this solution exists and if so how it is determined?


Is there a resource that documents all mobile device screen resolutions in one location?

I could not find a complete guide of this nor did I know who to contact about possibly making a wiki here for it (if it exists or not allowed please remove).  I cannot nor want to remember everything in regards to pixel dimensions when designing for mobile devices but I'd like to have a list of the pixel dimensions for:  Device                                  Width   Height  Apple iPad Apple iPhone 3 Apple iPhone 4 Apple iPhone 5 Apple Mini Google Nexus 7  Asus Transformer Pad Infinity TF700 Google Nexus 10 Asus Transformer Pad TF300 Samsung Galaxy Note 10.1   If someone knows a complete guide for all major tablet and mobile devices that would be great.


Random imperfections simulating traditional print

Is there an easy way to accomplish something like this:  I am aware this is scanned, what I want is the random ink distribution and character placement.


Upbeat "epiphany" song, drinks in pub with monster, c.2013-17

I am trying to identify a song, which I used to play all the time but forgot. It features the artist in a happy mood. I remember the following scenes from the music video:   Artist and the band playing in a street or on a bridge. Artist sitting in a pub/bar and having a drink with a hairy monster/bear. Mood of the song similar to  by .   I listened to this song couple of years ago (between 2013 - 2017). Forgot exact year. I also believe I heard this on a TV commercial first. Any clues?   I also remember the lyrics of this particular song had the word "epiphany".


Do I choose the target or the ally for the Help action?

When I use the , do I choose the monster to distract (and then the next ally to attack gets advantage) or do I choose the ally and the monster (so that only his attack against that target gets advantage)? Or something else?  Help [...] Alternatively, you can aid a friendly creature in attacking a creature within 5 feet of you. You feint, distract the target, or in some other way team up to make your ally’s attack more effective. If your ally attacks the target before your next turn, the first attack roll is made with advantage.


So, I saw a similar question explaining that Moonbeam and other similar hazard spells don't deal damage when they attack. However, since moonbeam is able to be moved, are the enemies considered 'entering' the spells AOE when it moves on to the tile they are standing on (if it comes to rest there)? The other answers and the wording lead me to believe that it could go either way, so I am curious to get some of your opinions.


I would like to produce a document with two lists of references. One should have numbered items, another should have "E" prepended to the number. Here is my solution that does not work  \documentclass[11pt,a4paper]{article} \usepackage[sort&compress,numbers]{natbib} \bibliographystyle{apsrev4-1} \usepackage[]{times} \usepackage[varg]{txfonts}  \usepackage[resetlabels,labeled]{multibib} \newcites{E}{Other references}  \begin{document} \section{Example} This is one paper~\cite{hedin_new_1965} \section{Another example} This is another paper~\citeE{kohn_self-consistent_1965}. \bibliography{MyLibrary} \bibliographystyleE{apsrev4-1} \bibliographyE{MyLibrary} \end{document}   My bibliography is as follows:  @article{hedin_new_1965,  title =     {New Method for Calculating the One-Particle Green's Function with               Application to the Electron-Gas Problem},  volume =    139,  number =    {{3A}},  journal =   {Phys. Rev.},  author =    {Hedin, Lars},  year =  1965,  pages =     {A796--A823},  }  @article{kohn_self-consistent_1965,  title =     {Self-Consistent Equations Including Exchange and Correlation Effects},  volume =    140,  number =    {4A},  journal =   {Phys. Rev.},  author =    {Kohn, W. and Sham, L. J.},  year =  1965,  pages =     {A1133--A1138},  }   After running pdflatex example.tex + bibtex example + bibtex E + (x2) pdflatex example.tex I've obtained:   As you see, the "E" is missing. Am I doing something wrong?  Bonus question  Is it possible to make labels of the second list of references to be numerals in boldface?  Your help is greatly appreciated. Thank you in advance!


Show this holomorphic function is costant

I have a holomorphic function $f$ defined on a neighborhood of the closed unit square.  Further $f(z+i)=f(z)$ on $[0,1]$ and $f(z+1)=f(z)$ on $[0,i]$.  How do I show that $f$ is constant?


Which encoding to use while reading a csv file with pandas?

How do we know which encoding type (latin1, utf-8 etc.) to use with what type of csv file? I have a csv file that has numbers, and column titles in English, and when I used latin1 as my encoder: pandas.read_csv("Data.csv",encoding='latin1')  the file was read correctly. I just want to know how do we determine which encoding type to use as I had to get my code to work by trial and error.


OK, so I'm helping a kid to re-install Minecraft on his laptop. He doesnt have any mods, any resource packs or anything else. Whenever I try to launch Minecraft it shows this:   ---- Minecraft Crash Report ---- // I let you down. Sorry :(  Time: 2/26/15 12:22 PM Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at avf.ap(SourceFile:534)     at avf.am(SourceFile:363)     at avf.a(SourceFile:310)     at net.minecraft.client.main.Main.main(SourceFile:124)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at avf.ap(SourceFile:534)     at avf.am(SourceFile:363)  -- Initialization -- Details: Stacktrace:     at avf.a(SourceFile:310)     at net.minecraft.client.main.Main.main(SourceFile:124)  -- System Details -- Details:     Minecraft Version: 1.8.3     Operating System: Windows 7 (amd64) version 6.1     CPU: 2x Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz     Java Version: 1.8.0_25, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 60847904 bytes (58 MB) / 160829440 bytes (153 MB) up to 1060372480 bytes (1011 MB)     JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.8.3     LWJGL: 2.9.4     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Using VBOs: No     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs: []     Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)   Is this normal? Pls help me. The kid will be here the next day!


Extract data from a file and place in different files based on one column value

We will generate a csv file with below values  yp1234,577,1,3 yp5678,577,3,5 yp9012,132,8,9   I need to extract data and create files based on second column. If it's 577 then the whole line has to be extracted and placed in a separate file. I mean I need a file having lines with second column as 577 alone and another file with second column as 132 alone  I tried using IF but didn't work


In the  a line is delivered at around 1:41 where Han Solo says "a 190 years old!? You look great" and I was wondering if there is a defined concept of a year in the Star Wars universe or would Han Solo just be familiar with the duration of a  solar orbit.


Let $f(n)$ be the first $n$ digits of $\pi$ . How many times is $f(n)$ prime on the interval $[1, k]$ ? Are there infinitely many prime $f(n)$'s on $[1, \infty)$?  I know this is probably be a very hard question and most likely an open problem, but I am just curious.


Where does the extra mass come from if an object approches speed of light?

According to scientists, if an object approaches the speed of light, a stage is reached where the object's speed is responsible for the increase in mass of the object. Beyond that stage, all the acceleration will increase the mass of the object. So where does this mass come from and how this mass created?


I'd like to use a counter in the text which however is only set at a later point. Like so:  \newcounter{howmany} There are \thehowmany items in this list: \begin{enumerate}   \item one   \item two   \item three \setcounter{howmany}{\theenumi} \end{enumerate}   And it should say "There are 3 items in this list". But that doesn't work. Well, sure. I need to use \refstepcounter to get that save-functionality. But \refstepcounter only increments it by one, and there doesn't seem to be a \refsetcounter ;) Any suggestions? A loop after the enumerate over \refstepcounters? Redefining \item to include \refstepcounter? There gotta be a simpler way, no?  Thanks!


Compute the complexity of the following Algorithm?  I have the following code snippet:  i = 1; while (i < n + 1) {     j = 1;     while (j < n + 1) {         j = j * 2;     }     i = i + 1; }    plz explain it in detail   I want to know the the steps to solve the problem so I can solve such problems