Reverse proxy hardware requirements for high RPS

I am setting up a web service that is expected to process ~100,000 requests per second. For this, I want to setup a reverse proxy that forwards requests to several back-end servers. The requests come from a small set of clients (~1000). Each request involves 1 KB data transfer - 750 bytes incoming and 250 bytes outgoing. Can this reverse proxy be setup on a single server? What would be the general hardware requirements for such a server?


Reinforcing a Close Vote to Prevent Re-Opening?

It's well known on SO that some questions are essentially impossible to delete despite being a bad fit for the format, because of their sheer age or popularity. Essentially, they will become a part of a game of tug-of-war where they will be repeatedly closed and then re-opened, never allowing deletion to happen.  What I'd like to propose is a kind of reinforced close vote.   Once a question has been nominated for deletion, people with enough reputation to vote to close a question can elect to 're-inforce close vote', costing them one of their own close votes. For each person who reinforces the close vote, it will take 1 more vote to re-open the question.  This seems like it would allow a good balance between being able to re-open existing questions which have been edited to be a good fit, and allowing a deletion vote on a popular but unsuitable question to go through.


Move from One Tab to Another Tab on click event

I have created an app with 5 tabs, in my 1st tab I am having a button on click of which I want to go to tab3. This is my code of button event --  moreButton3.setOnClickListener(new View.OnClickListener() {     @Override     public void onClick(View v) {         Intent intent = new Intent(view.getContext(), Tab3_Image.class);         view.getContext().startActivity(intent);     } });   But while clicking the button the app crash, below is the logcat error --  E/AndroidRuntime: FATAL EXCEPTION: main Process: com.s2s.doupnow, PID: 22481 java.lang.NullPointerException     at com.s2s.doupnow.Tab1_Home$6.onClick(Tab1_Home.java:313)     at android.view.View.performClick(View.java:4444)     at android.view.View$PerformClick.run(View.java:18457)     at android.os.Handler.handleCallback(Handler.java:733)     at android.os.Handler.dispatchMessage(Handler.java:95)     at android.os.Looper.loop(Looper.java:136)     at android.app.ActivityThread.main(ActivityThread.java:5113)     at java.lang.reflect.Method.invokeNative(Native Method)     at java.lang.reflect.Method.invoke(Method.java:515)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)     at dalvik.system.NativeStart.main(Native Method)


How does the US government shutdown affect academics?

I hope this question does not offend our American fellows.   I've read in news that the US government is partially closed  and many agencies and services run by US federal government is no longer available, for example national parks, many websites, etc. I was wondering if this temporary government shutdown has any negative effects on academic life in US?


According to some theories space is constantly expanding but at what granularity?

One idea from cosmology is that galaxies are all moving away from each other. Naively this could be taken to mean that they are expanding into something. Popularly this could be seen as them moving outwards into an area of  completely empty space at the 'edge' of the universe.  However, if the universe is infinite and unbounded and uniformly populated, there is no empty volume for the galaxies to move into. Therefore logic dictates that the space between galaxies must be expanding.  Let us suppose this is true. Then    Is it also the case that the space within the galaxies is expanding.   What about the space in our solar system.   Where do we stop? Under this theory is the space inside an atom expanding?


Where does the energy loss in cycling go proportionally?

If you are biking on level ground with no wind, I understand that there are losses inherent in your activity which you provide effort to overcome  (if you want to maintain a steady speed):   Air/wind resistance Rolling resistance Friction losses ?   I am wondering if there has been any significant analysis into what percentage of the overall energy exertion goes to which loss. Something like "70% of the energy loss is due to X, 15% to Y" etc.  I know that this will vary based on the type of bike, tire pressure, posture, speed, wind speed, etc, but I am curious if there has ever been an in-depth analysis into the breakdown of energy loss in cycling.   I care about far more than just drag, which is the only variable the related question addresses.


Derivation of formulas for median and mode for grouped data

I am studying in 10 th grade. In statistics chapter they gave formulas of mean,mode,median for grouped data. I could derive formula for mean easily but I can't for others. My textbook also didn't gave derivation, they blindly put them in textbooks and make students to mug them. I am curious to know how these formulas came.


Why does $\lim_{x\to0}\frac{\sin(x)}{x}$ equal $1$?

Without using L'Hospital's Rule, why does $$\lim_{x\to 0} \frac{\sin x}{x} = 1?$$


How do you write the following sentence:   Marcelo, together with Angela and I, are going to... Marcelo, together with Angela and myself, are going to...


If like 99% of Saurons' lifeforce was in the ring then why could Sauron not sense the ring wherever it were even if no one did wear it? Or how could he not sense it when Frodo was right in front of Saurons' eye in mordor? If more part of is lifeforce was in that ring then he should be able to sense it even if no one wore it, right?


Today's inappropriate ad: health scam on Travel

Inappropriate ad spotted on Travel.SE. Looks like the usual health scam. Unfortunately this one seems not to open the link preview when I long-click it, so it's only the image, but .


My site doesn't have a SSL certificate, but Google is indexing the HTTPS version

Redirecting to HTTPS causes an error, Google should be indexing the HTTP version. How can I enforce that? I have no forms or logins on my website, I have no SSL certificate.  For example: Searching for paul and martin consultancy in Google returns the home page (second result) with an https:// protocol:    And clicking this link naturally results in the following browser error:    I am using this .htaccess:  Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]


The class equation is defined on finite group $G$ with $a\in G$, then   $|G|=\sum_{s}|G:C(a)|$ where $s$: sum runs over elements from distinct conjugacy classes.  My question what are the applications of this class equation ??


LVM devices not showing in initrd but working on boot

I am currently working on a custom initrd based on the CentOS 6.7 (2.6) kernel with the  loaded.  The initrd is designed to backup files off a old RHEL system into memory, unmount the disk, wipe the disk and then finally dd a prebuilt CentOS system onto the disk.  The CentOS system was built on VMware then the vmdk was exported and converted into a raw format with qemu-img.  From testing the whole process works awesomely and once the dd is complete the system can be rebooted and start up fine.  The current blocker is that once the dd operation has completed, I can't mount the LVM disk to copy files back.  As you can see in the modules list the LVM drivers are there and are loaded, if I run a fisk -l it shows sda1 as the boot partition (Non-LVM) and sda2 as a LVM partition. When running pvscan -vvv it sees /dev/sda2 but says No label detected.


Is it possible to import an fbx model, so that I can edit models from unity in blender?  I tried and nothing worked, when I open the file I see the default cube when opening blender.


Some accepted answers appear to have been unaccepted but still have the checkmark

Some accepted answers do not have a valid accept-vote in Votes table, even though the question owner still exists. Stack Overflow alone has over  such answers. A recent example is :  The  says that the answer was unaccepted on July 3, 2014. However, it still has the green checkmark However, the checkmark does not show acceptance time on hover.  Is the answer accepted or not? Is it some kind of ?


Getting a lock using an object, rather than this - Threading

I’m trying to learn threading in C#, and I’ve seen something crop up in few articles but I am not sure I fully understand it: In the given two examples, what would the fundamental difference between getting a lock on ‘this’  vs ‘thisLock’.  Example 1:  class Account     {         decimal balance;         private Object thisLock = new Object();          public void Withdraw(decimal amount)         {             lock (thisLock)             {                 if (amount > balance)                 {                     throw new Exception("Insufficient funds");                 }                 balance -= amount;             }         }     }   Example 2:  class Account     {         decimal balance;          public void Withdraw(decimal amount)         {             lock (this)             {                 if (amount > balance)                 {                     throw new Exception("Insufficient funds");                 }                 balance -= amount;             }         }     }   From my understanding, I would of thought that ‘thisLock’ only stops other threads from entering that specific area of code.   Were as getting a lock on ‘this’ would stop all operations on the object, i.e. calls to other methods by other threads?  Have I fundamentally miss understood this, or is that the correct conclusion?


How much of Star Wars movie deleted scenes are canon?

If the answer is not a unanimous yes/no, please identify the particular scenes which are considered canon based on what we currently know. Please state so too if the answer differs between Legends and current canon - I am looking for answers covering both canonicities.


What is the actual role of the Chosen One?

When the Jedi Council senses the rise of the dark side about a century or two  before the end of the Republic, Yoda suggested that it heralds the imminent coming of the Chosen One, prophesied to bring balance to the Force. Anakin Skywalker is confirmed to be indeed the Chosen One, but what exactly is his intended destiny?  Foremost is the Jedi belief that he will end the Sith Order once and for all. Even though he, as Vader, eventually sacrificed himself to kill Palpatine, thus ending both the master and the apprentice, the Sith Order was not truly ended. Palpatine eventually returned before dying for good, and the Sith Order under Krayt's Rule of One yet lives. Not to mention that the greatest champions of the dark side have always come from the light. If Anakin was chosen to end anything, he was extremely sloppy.  But what about the other possibility? The Father decreed that the Chosen One is meant to replace him in keeping the Son and the Daughter in balance. By choosing to leave, he had supposedly failed his destiny, allowing the Force to tilt in severe imbalance, and this consequence is supposedly revealed and only then corrected in some measure a great many years later by his son Luke.  In any case, Anakin seems like a massive failure in life. But what was his true purpose?


Proving that $ka \equiv kb \pmod{m} \iff a \equiv b \pmod{m/\gcd(k,m)}$

I'm having some trouble proving the following proposition:  Let $m \in \mathbb N$ and $a,b,k \in \mathbb Z$, then: $$ka \equiv kb \pmod{m} \iff a \equiv b \pmod{\frac{m}{\gcd(k,m)}}$$  I began by trying to prove that $a \equiv b \pmod{\frac{m}{\gcd(k,m)}} \implies ka \equiv kb \pmod{m}$ but I got stuck with: $$a\gcd(k,m) \equiv b \gcd(k,m) \pmod{n}$$ Then I also tried to prove that $ka \equiv kb \pmod{m} \implies a \equiv b \pmod{\frac{m}{\gcd(k,m)}}$ But I also was not able to conclude anything. This is my first time learning modular arithmetic and I'm still confused with the concepts and have no intuition with this at all, this is perhaps why I'm having some trouble solving these types of questions. How can I prove this?


Surjection of ring homomorphism give surjection of group of units?

Let $A,B$ be commutative rings, and $f:A\to B$ be ring homomorphism. Then, we get group homomorphism $f^{*}: A^{*}\to B^{*}$. When $f$ is surjection, is $f^{*}$ surjection?


Transposing columnar record data to rows in Excel

Can I reference a cell in another worksheet like this?  Example:   Worksheet A A1 Data1 A2  A3 Data2 A4  A5 Data3   Worksheet B (I want to copy by referencing the cells in Worksheet A)     B1 'Worksheet A'!A1    B2 'Worksheet A'!(A1+2) ~ meaning I want to copy cell 'Worksheet A'!A3    B3 'Worksheet A'!(A3+2) ~ meaning I want to copy cell 'Worksheet A'!A5 ... Note that A3 in this formula comes from the formula in B2 by skipping one row in Worksheet A.    B4 'Worksheet A'!(A5+2)   The reason for this is so that I can skip the A2 and A4 cells and be able to drag the formula in Worksheet B to extend it without the need to point manually each cell that I want to copy from Worksheet A.


I received $1000 and was asked to send it back. How was this scam meant to work?

Possible Australianism - netbank = a website + app by which an Aussie can do their banking, including transferring money to other people.  A while ago, I ended up with $1000 transferred into my account, which in the description looked like a netbank transfer, not like a cheque, cash deposit etc, and which looked like it had already cleared and landed in my account. Usually when something is still working through the bank's system it displays as 'pending', but did not in this case.  I received a phone call from someone, saying that they had accidentally typed in the wrong account number, and wanting me to send them the same amount of money back via netbank.   Surely bank account numbers have a checksum, which make it relatively difficult for a typo to result in a payment going to the wrong person? What are likely sources of them being able to find my phone number to call me? Obviously, the bank either being hacked, or giving it out in response to a query from this person (but surely the bank is unlikely to tell me my own mobile number if I claim to have forgotten it?). Presumably either my phone, or the phone of someone I have sent money to/received money from could be compromised. Has anyone heard of any instances of this happening?  I then went to my bank, explained the situation and said that I did want to refund the money through the officially sanctioned methodology. After the laughter died down, the bank told me to ask the person to fill out a form, then they would get me to fill out a form that would authorize undoing that exact payment.  I rang up the person to tell them this, and over the course of about a week received an increasingly elaborate story about how that wasn't working, they needed the money immediately, there was a fee to fill out that form and they couldn't afford to pay it etc.  After that, I never heard back from them again. I check my netbank for several weeks after, expecting the money to magically disappear, but it did not. This was probably a year ago, and I'm pretty vague with money so may not have noticed if it disappeared more recently. How were they expecting to benefit?  Were they hoping to get the transfer from me, and undo the transfer to me, to leave them $1k up? If so, how can an internet banking transfer be 'undone' once it has already shown as 'received'. Or was this to do with money laundering? The account they requested me to send money to was the same as the one that the money appeared to come from. This was a scam, right?


I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}


Isn't really there encapsulation in Python

So today I asked if there's something like Protected member class in Python where many people said there's no something like lik Public Protected or Private . But I made the following code to test this:  class Vehiculo():      def __init__(self, peso):         self.__peso = peso   and from an outer class I did:  car = Vehiculo(10) car.__peso = 20   and what it printed was still 10, so this is like Private, however when I changed the class variable with just one underline:  class Vehiculo():          def __init__(self, peso):             self._peso = peso   it printed 20 instead. Can someone clearly explain this to me? I've read a very similar post (that many consider as duplicate) but I DON'T UNDERSTAND what they say. This is exactly the Public Private behavior. And I'd like to know how to do a Protected behavior or if it's even possible.  Thanks and regads.


ArcPy-generated string formats badly in map text element

I've got a script that's pulling a bunch of attributes and concatenating the information into a long string.  text_description = "Address: {}\n\n".format(dictADDR[key]) text_description += "{} Customers.".format(len(listCustomer)) if countPole == 0:     text_description += "No Poles\n" else:     text_description += "Poles:\n"     text_description += "  Pole Quantity: {}\n".format(countPole) (et cetera)   The goal is to include this string both in an emailed final report when the script finishes, and include it in a text element on a PDF map (displayed next to the parcel and an aerial map).  This works fine for the email, and gives something like:  Address:  1225 BICKLEY RD 0 Customers No Poles No Overhead Distribution   However, in the text element it ends up ignoring spacing and overlaps some text with other text (see image below).    Copy-pasting the contents of the text properties box, it appears to have the line breaks in the correct places:  Address:  1225 BICKLEY RD 0 Customers. No Poles No Electric Overhead Distribution  What's going wrong, and what should I change in either the text element or my code to fix it?


The Bash command :(){ :|:& };: will spawn processes to kernel death. Can you explain the syntax?

I looked at  and can't understand how this works.  This command "exponentially spawns subprocesses until your box locks up".  But why? What I understand less are the colons.  user@host$ :(){ :|:& };:


I've downloaded a raster with temperature projections by the Hadley Center (CIMP5) from . It comes as a NetCDF file that I loaded onto QGIS 3.2.1. I then overlayed a shapefile with the borders of Peru, and it seems like the two maps are plotted separately:    How should I proceed to plot both the raster (NetCDF) and the shapefile on top of each other as they should? When I first loaded the raster in QGIS I got a message saying the CRS was undefined, but I could not for the life of me find what the appropriate CRS is for these files in the website.  Following @Vince's suggestion, here are the extents of each of the two layers:


True of false: The sum of this infinite series.

I'm fairly sure it is false, but I'm not quite sure about which test I should use to prove it.  $$\sum_{n=2}^\infty \ln\left(\frac{n-1}{n}\right) = -1 $$ I think using the integral test should work, but it may get kind of messy, so I'm looking for som advice. All I have to do is prove that it diverges, right?  Thanks in advance.


I am working on polygon shapefile and I want to display all the labels in the map. But, I am unable to see the labels of few polygons. I checked my geometry, I almost tried every single permutation and combination mentioned in Layer->Labeling.   Please tell me how to resolve this problem?


How did this main Harry Potter character die?

I might be missing something obvious but when I read the seventh Harry Potter, it wasn't clear to me how Voldemort died. How did Voldemort die?


Ubuntu 14.04 Brightness keeps going to 100%

I recently installed Ubuntu 14.04 for the first time. Although I have set brightness a million times, every time I start the computer, it goes to maximum again. If I restart the computer it remembers my brightness definitions, but I completely turn off, it forgets.   How can I get it to remember my preferences?  Thank you, cheers.


How find this function $xf(x^2)=f(x),x>0$

Assmue that $f(x)\in C(0,+\infty)$ and for any $x>0$ have $$\int_{x}^{x^2}f(t)dt=\int_{1}^{x}f(t)dt$$  Find this $f$  My try: we have $$2xf(x^2)-f(x)=f(x)\Longrightarrow xf(x^2)=f(x),\forall x>0$$ and then I can't works


I was reading the man of find on the -exec command {} switch section, it states that the {} should be quoted to protect from interpretation by shells. I'm trying to reproduce such a behaviour locally without any success and wondering in what context does that interpretation apply. Here is what i am doing trying to get that interpretation to work: echo "Hi" > f1 touch -- \$\(ls\ \-la\) -n find ./ -type f -exec cat {} +  Just basically trying to get either a switch or a command to be interpreted as it's parsing the malicious file names, but it doesn't get interpreted as suggested in the man. What am i missing ? Alternatively is there a way to exploit such a line code with cat as a command and not any other ?


I had the thought that I should run a computation on my document to see things like: How many times I cite each source, how many times I cite each author etc. Then I thought that isn't enough. What if I cite A_foo, B_foo and C_foo, but both A_foo and B_foo cite C_foo. That is worth knowing. A graph of citations between the texts that I am citing will revel interesting information.  For example nodes with out any parent, will generally indicate new and original ideas. While they may draw on other things, those things are distant enough from  my work that I am not citing them. Nodes that have no links to any others, show that I am bringing in an idea from another subfield, perhaps.  This graph should be computable, I know google scholar maintains a list of almost everything I've cited, and for each thing lists who has cited them.  Has this been experimented with? Are there existing tools for the job? If there isn't I might mess around with some python and put something together.  My references are all in bibtex.  I would like to construct a graph of the citations.


I created a .sty file that I used locally with a tex file.   I mean that I put the tex and the styfile on the same folder (in my documents) and call the styfile as a \usepackage{mycustomstyfile}  However I try to do the same in LyX by putting \usepackage{mycustomstyfile} in the preamble but it does not work. Someone can help me?   The LyX error message is   Undefined contorl sequence :   s        kldafjkldfjksdfjl The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.


There is a card game I've played before, where it goes as follows:  You take a standard deck of cards, and shuffle them randomly. You then proceed by flipping each card and placing them down, simultaneously you count of ace, two, three, .. , queen, king, ace(2), two(2), three(3),...., king(4). That is you go through all 52 cards.  You lose the game only if the card that you read off is the same card as you were counting to. (i.e. the sequence two, ace, seven, four would lose at four.) Whereas, seven, four, two, king, queen, two, ace, eight would lose at the eight).   My question is how many possibilities are there to win this game? Also, how many possibilities are there to lose this game?


Let $V$ be a vector space. Determine all linear transformations $T:V \rightarrow V$ such that $T=T^2$. I am given      $x=T(x)+(x-T(x))$ for every x in V, and show that $V={y:T(y)=y} \oplus N(T)$ as a hint   I don't have a first thought on this problem, what can identity mapping tell us? And what's the general intuition for this problem?


While developing a React app, I needed to use some environment variables. The way to do it is by using this syntax:  REACT_APP_NOT_SECRET_CODE=abcdef npm start      My first question is: How does that work? I don't know this linux thing, what's happening behind the scenes?  My second question is: How to I make more scalable? say I have file that looks like that  MY_VAR_1=123 MY_VAR_2=23332 MY_VAR_3=3232   How do I inject it to the npm process? I tried   cat .env | npm start    But it doesn't work  I guess after I understand the linux syntax I get be in a better position to use a file instead of inline data.  Thanks


what is this floor reflective shading texture?

what is ths reflective, glossy, smooth white texture? Kindly help me answer steps to create this white reflective texture


What observations would be needed to falsify the law of conservation of energy?

I've been doing some thinking, and began to wonder: What observations have led us to the conclusion that ‘energy can neither be created nor destroyed’?  Essentially, this means that the big bang supplied our universe with all the matter that currently exist in it.  My question is, if this were untrue for some reason (despite what math tells us) - and there were more ‘atoms’, ‘quarks’ or ‘bits’ being added to the system, how would we tell? What would that look like?  What experiment would be used to detect ‘more matter’ existing now than during the big bang?  Is this simply a matter of creating instruments that measure more accurately, or would some clever experiment need to be devised?  I've read several answers on this and other sites that explain the law of conservation of energy, but none that nail the hypothetical question above.


I have a quick question  In $\mathbb{R}$ let $$S \subset \mathbb{R}$$  If S is not open then must it be a closed set?  I think no because if it not closed means its complement is open. But how do I show this?


Insert result of command into an executable (one command)

Is it possible to insert the result of a command (or even a chain of commands) into an executable in one command? Something like this:  ./a.out < echo 0   Or is it necessary to do this:  echo 0 > input.txt ./a.out < input.txt


Quadratic (Pythagorean?) Diophantine Equation

How do you find all (non-trivial) $(x, y)$ such that $$x^2 + y^2 = 2017^2?$$  I really don't want to go through trial and error, like what I managed to do here:     So, we can rewrite the equation as $x^2 = 2017^2 - y^2 \implies x^2 = (2017 + y)(2017 - y).$ From there, I know nothing but guessing values of $y,$ which would be rather painful.   Yes, I know the Babylonian method of finding Pythagorean triples, but I figured since $2017$ is prime it would still simplify to $x^2 + y^2 = 2017^2.$  Thanks in advance for your help.    Ah, I got my Babylonian method wrong. It is for $a, b, c, m, n \in \mathbb{Z}$ such that $a^2 + b^2 = c^2$ and (WLOG) $m > n,$  \begin{align} a &= k\left(m^2 - n^2\right) \\ b &= 2kmn \\ c &= k\left(m^2 + n^2\right) \end{align}


I have a method that calculates age; calculateAge(User user):  public int calculateAge(User user) {     String date = null, month = null, year = null;     String[] fields;     String DOB = user.getDOB();     System.out.println(DOB);     fields = DOB.split("-");     System.out.println(fields);     fields[0] = date;     fields[1] = month;     fields[2] = year;     System.out.println(date);     System.out.println(month);     System.out.println(year);     LocalDate birthDate = LocalDate.of(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(date));     LocalDate now = LocalDate.now();     Period age = Period.between(birthDate, now);     return age.getYears(); }   The prints are debugging lines, and as of now, this is what they print:  The DOB is 1-1-1988, but fields is [Ljava.lang.String;@6d41a4a instead of displaying the array of fields. As such, date, month, and year are printed as null and it can't Integer.parseInt(null), so it gives me a NumberFormatException: null.


Show that $6^{(k+1)+1} + 7^{2(k+1)-1}$ is a multiple of $43$ knowing that $6^{k+1} + 7^{2k-1}$ is a multiple of 43.  I have written it as $6^{k+1} 6^1 + 7^{2k-1} 7^2$ but idk what to do after.


There have been many cases where on-site plagiarism has been coincidentally discovered by  good citizens either while looking for , or while answering questions merely to find out one of their  etc.   Most of the cases have been identified as verbatim copy-paste of the original answer.  I understand plagiarism is considered very offensive and can't be tolerated. It is very unprofessional and unfair. So here are my questions (and possibly a feature request):   Could verbatim plagiarized content be automatically detected?  Should it be pushed into a review queue similar to low quality posts for other users to confirm?


I am trying to add multiple authors but the \\ doesn't work on \name.  I've been given a template to work with \name but I have too many authors and the names don't fit properly. I have 9 authors some of them very long names.  I have the following:   \documentclass{article} \usepackage{spconf,amsmath,graphicx} \usepackage{booktabs}   \begin{document}  \title{Title here}   \name{AuthorName1,AuthorName2,AuthorName3,AuthorName4,Authorname5,AuthorName6,AuthorName7, AuthorName8, AuthorName9} \address {Address 1 \\  Address 2 \\ Address 3} \maketitle  \end{document}   Can anyone help how to put the authors names in two rows?


Double right arrow when typesetting Scala sources in LaTeX

How do you produce the unicode double right arrow variant of function types when typesetting Scala code with LaTeX? I can use math escape, like so  \lstset{mathescape=true} \begin{lstlisting} val x = (i: Int) $\Rightarrow$ i*i \end{lstlisting}   But that breaks the monospacing. Any ideas?


Why did I stop getting reputation for upvote - today's rep only at 95?

My total rep for the day is only 95, yet I didn't get any reputation points for an upvote on one of my answers.  Why?  Is there a limit on total upvotes per answer that will generate reputation?    The answer whose upvote didn't generate any additional reputation is .  It is at a total upvote count of 106.    In doing research on this topic, I came across the 200 vote daily limit for upvotes (I'm way below that for today - though have hit it in the past) and a discussion about caps on total reputation for upvotes on a single answer which said there was no limit there.  So, I'm stumped.  Why did I not get any reputation points for today's upvote on the  answer?


Why google index the pages that has been blocked on robots.txt?

I found this very interesting. I already blocked those pages via robots.txt but it keeps on showing on my Search Console for Smartphone. Does adding this:  User-agent: Googlebot-mobile  Allow: /*?variant=*   will make the error disappear?  The general robots.txt is:  User-agent: * Disallow: /*?variant=*


What is the difference between 'protected' and 'protected internal'?

Can someone please explain the difference between the protected and protected internal modifiers in C#? It looks like their behavior is identical.


In my previous questions like 'how do compressions and relaxation carry energy...' and 'how are they not isothermal...' and 'where does the heat come from in the compressed gas...',i've made  enquiries reagarding the phenomenon of sound energy propagation and got answers from experts.So i am now writting my concept:when a vibrating fork compresses the air,it does work on it increasing the K.E. of the layer.When the fork goes opp. side,it works on the compressed layer and relaxes it increasing theP.E.Meanwhile,during expansion,the layer works on the next layer and compresses it using the excess kinetic energy.And the next layer does the same to its next layer by compressing using that K.E. given to it by the fork via the first layer.Ultimately,the last layer works on our ear drum to produce sound using the kinetic energy.The question is am i right in my assumption?Plz help...


Label dynamic text but also shorten it to only 50 characters

I am using dynamic text and labeling this:  <dyn type="page" property="number"/>  but I only want it to label the first 50 characters and than if it has to shorten the name to than put et al. at the end.  Thoughts?


I have a problem with the next exercise. It's so confusing for me. I have one implication, but no the other.   Let $f:D\subset\mathbb{R}^2\rightarrow\mathbb{R}$ with $D$ open set. The exercise is the next:  $\displaystyle\frac{\partial f}{\partial x} = \displaystyle\frac{\partial f}{\partial y}$ for all $(x,y)\in D$ if and only if there exist a derivable function $g$ such that $f(x,y)=g(x+y)$ for all $(x,y)\in D$.  $\Leftarrow )$   Let $(x,y)\in D$  $\displaystyle\frac{\partial f}{\partial x}=\lim\limits_{h\rightarrow 0} \displaystyle\frac{f(x+h,y)-f(x,y)}{h}=\lim\limits_{h\rightarrow 0}\displaystyle\frac{g(x+y+h)-g(x+y)}{h}=g'(x+y)$ (the limit there exist because $g$ is derivable).  $\displaystyle\frac{\partial f}{\partial y}=\lim\limits_{h\rightarrow 0} \displaystyle\frac{f(x,y+h)-f(x,y)}{h}=\lim\limits_{h\rightarrow 0}\displaystyle\frac{g(x+y+h)-g(x+y)}{h}=g'(x+y)$ (again, the limit there exist because $g$ is derivable).  Thus, $\displaystyle\frac{\partial f}{\partial x} = \displaystyle\frac{\partial f}{\partial y}$  But, I can't understand the implication $\Rightarrow) $. Some hint? I think define a function using the partial derivatives, but, really, I don't know how.


Downloaded shapefiles become 1KB when I try to upload to QGIS

This problem is happening when downloading multiple GIS files from different sites. I downloaded 2012.zip from  to see the precinct maps for 2012 in Washington state.  Everything looks normal, so I extract the data from the zipfile so I can upload it into QGIS with no problems. I go to add a shapefile to my new project, and select the shp file.  I leave everything in default, and go to add the shapefile.  Once I've done so, I see that a layer name "Statewide_Prec_2012" has been added but nothing shows up. The area where the map should be is completely blank, despite the layer being selected. I "zoom to layer" and the screen stays the same. I open the attributes table and it's blank. Now, if I go and look at the extracted data from earlier, this is what I find.  Does anyone have any clue what is happening? I never ran into this issue using ArcGIS but switched to using QGIS so I can work on projects on both of my computers.


I'm fairly new with Java and I'm having some trouble understanding what I'm doing wrong. Here is a brief description of the purpose of the program.    Make a bank account. Deposit 1000 into it. Withdraw 400. Withdraw 500. Print out results and expected results.    Here is my code. Keeps on saying non-static variable bankAcc cannot be referenced from a static context.   public class BankAccountTester     {         private double bankAcc; //Stores bankAcc balance          public void money(double deposit)         {             deposit= (1000);              int withdraw1 = -400;             int withdraw2= -500;             bankAcc= bankAcc + withdraw1 + withdraw2;         }          public double getbankAcc()//Returns value to bankAcc so it has new balance         {             return bankAcc;         }          //Prints out value and expected value         public static void main(String[] args){             System.out.Println("My bank account has " + bankAcc);             System.out.Println("Expected is 100");         }     }


Are hand motions required to use the Force?

In almost every canon (that is, visual) source, Force users typically wave a hand to invoke the Force to move or manipulate objects, people and thoughts. I get out-of-universe this is a visual cue that the Force is being used, but in-universe is it strictly necessary?  (The only exception I can think of is when Luke is training on Dagobah and is balancing rocks while standing on one hand with Yoda on his foot. He doesn't appear to be waving his hand to move the rocks.)  Is this addressed anywhere in-universe, even in Legends?


Showing that an entire function is a polynomial based on its values on the unit circle

Let $f : {\bf C} \to {\bf C}$ be an entire function.  Assume that $|f(z)| = 1$ when $|z| = 1$.  Is it true that we must have $f = z \mapsto C z^m$ where $m$ is an integer and $|C| = 1$ ?*  I think the answer is yes. By maximum modulus, $f(z) \leq 1$ whenever $|z| \leq 1$. Likely Cauchy's theorem can be applied here perhaps after applying a suitable Mobius transform.


I need my jquery .on to detect the newly added elements from .get.  simple scenario   $('.click').on('click',function(){     alert('clicked'); });

click here

    it works fine for the above, but when i added a new
click here
   by   $.get('url',function(data){     $('.content').append(data); });   the second click wont be detect by the jquery, only the first click is working.  when i try to change to .live, its not working entirely.  any alternative way to make this works?  thank you.


Need absolute path for each line from a text file using shell script

I have a text file with list of .XML files.  I need an absolute path of each XML in file.  Tried following shell script but after lots of try,find command is not working inside do tag.      #!/bin/sh     NAMES=`cat list2.txt`     for NAME in $NAMES;     do      echo "$NAME"      find $PWD -type f -name "$NAME"    done


Background: This year I'll do another Group Theory course ( Open University M336 ). In the past I have used Mathematica's AbstractAlgebra package but (although visually appealing ) this is no longer sufficient (i.e. listing subgroups of $S_4$ takes ages). So, I want to learn more about GAP. I worked through beginner tutorials that I found via the . Currently, I am not making much progress with GAP. The  does not help me much at this stage.  Question: Which resources are available to self-study GAP? How does one become proficient in GAP? What ( books, tutorials ) should you study?


Complex number is very weird to me, especially so when they appear in engineering and physics equations.  It is possible to  where  $i = \begin{pmatrix} 0&1\\ -1&0 \end{pmatrix}$ and $1= I$  However, the eigenvalues and eigenvectors of the $i$-matrix  are complex. Which means complex numbers may reappear even if we use the matrix representation.  Is it possible to totally get rid of complex number from our real world equations? Or is it so fundamental in our world?


I am going to recieve £10k and I am a minor

My grandmother is going to go into care very soon and as a result, sell her house. Each of her four grandchildren are going to recieve £10,000 from the sale of the house to help kickstart ourselves - my cousin wants to move cities, another wants to buy a car and the last one is too young so she is going to have it in savings.  I am looking at going to university next September in Belgium as an expat, as I have both British and Irish citizenship. However, there is no guarantee I will go to university as  it is my backup to getting a job. The problem is, I have no idea what to do with the money in the meantime as:   I live with my parents I am under 18 (I'm 17) I don't have any debt I don't plan on learning to drive I have limited options of where to invest/save the money due to my age I don't currently have any savings as I spent it on things I needed when I was younger (new saxophone and clarinet)   How can I maximise my gains from the money while keeping it accessible in case I need it?


MacBook Air - No internal speaker sound after boot (icon not greyed out + no red light)

I don't know when I've started having this, but with my MacBook Air 2015 13", the volume icon only shows "Headphones" as an output device option.  The icon is not greyed out, nor is there any red light coming from the headphone jack. The startup chime works fine as well.   Resetting NVRAM - didn't work Resetting SCM - didn't work Re-plugging in the headphones (multiple times) - didn't work Twirling the headphone plug (multiple times) - didn't work Blowing in the headphone jack (multiple times) - didn't work


Is there a convenient way to place a figure* at the end of the current page instead of taking up the entire next page in the twocolumn environment? Placement modifiers [Hb] do not work.


my system is dell inspiron1525. I want to install fifa13 or 12 in my laptop.I use ubuntu14.04.Show me the way.


How do you remove the lock screen from windows 10? The one with the random image which you have to [enter] away before going to the login input?  I had it removed until 2 weeks ago, but some windows update has undone that setting.  The regedit setting for HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization[NoLockScreen=1] is not working anymore. Not sure why.  P.S.: I'm running Windows 10 Home


Just downloaded ubuntu 17.04. Instructions suggest verifying iso before burning. Only verification link is for 16.??.


Python 3.x, matrix doesn't work as intended

sorry if the answer could be easy, but i really can't understand why this is giving me so much problems... I want to populate a matrix with elements of another list, but when i do Matrix[0][1] = 1 it modifies the second colums of EVERY row, instead of just the first row. I had never happened this problem before, i don't really understand. This is the code: NumAlberi = int(input()) AltezAlb = ["a"] * NumAlberi NumVele = ["b"] * NumAlberi valori = [[0] * NumAlberi] * NumAlberi for c in range(NumAlberi):     AltezAlb[c], NumVele[c] = map(int, input().split()) ListaOrdinata = [[0] * 2] * NumAlberi a = list(AltezAlb) b = list(NumVele) c = 0 print(ListaOrdinata)  while c < NumAlberi:     if c % 2 == 0:         tmp = max(a)         ListaOrdinata[c][0] = tmp         a.remove(tmp)     else:         tmp = min(a)         ListaOrdinata[c][0] = tmp         a.remove(tmp)     ListaOrdinata[0][1] = 1     c += 1     print(ListaOrdinata, a) print(ListaOrdinata)```  This is the output:  [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] [[5, 1], [5, 1], [5, 1], [5, 1], [5, 1], [5, 1]] [3, 4, 2, 4, 3] [[2, 1], [2, 1], [2, 1], [2, 1], [2, 1], [2, 1]] [3, 4, 4, 3] [[4, 1], [4, 1], [4, 1], [4, 1], [4, 1], [4, 1]] [3, 4, 3] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]] [4, 3] [[4, 1], [4, 1], [4, 1], [4, 1], [4, 1], [4, 1]] [3] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]] [] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]]  for example, at the end of everything, the last line of output should be: [[5, 0], [2, 0], [4, 0], [3, 0], [4, 0], [3, 0]] Thank you in advance


I have downloaded Ubuntu 13.10 desktop. Now I can't open it to install it. Keep getting a request for which program to use to open it. How do I install it?


Do lens hoods need to be matched to focal length?

Is it true that not all generic lens hoods work on all lenses (provided the filter diameter matches, of course)? I read that the focal length plays a role in it - but I cannot find such readings on any lens hoods I see available online.


How can a visa refusal affect my future travel plans?

I was lucky to have all my visa applications approved by the embassies and I have a good understanding about how to convince you are a legit traveller and intend to leave the country.   My question is, what bad could happen if a visa application was rejected?   Do they seal the passport as my application was rejected? I understand each embassy has their own records, but they mark it in the passport? Are there any known automatic rejections if I was rejected a visa for another country? All my applications to country B get rejected because my application to country A visa was rejected?


Split Excel table over multiple PowerPoint slides

I have a table in Excel which is too long for one PowerPoint slide. So I would like to split it over 2 or 3 slides, but have the header on each of the slides. What is the easiest way to accomplish that? I am using Excel and PowerPoint 2007.


I'm investigating the effect of overhead cover (tree canopy) on the proportion of birds (in relation to mammals) scavenging on carcasses left out in nature. For this study I placed 35 carcasses in nature and measured the number of animals scavenging and the canopy cover.  The number of animals scavenging differs considerably amongst carcasses, ranging from 7 to 574. This number will be included in the analysis as weight. However, I want to rescale them in order to mitigate their effect.   There are many options to rescale weights, such as dividing everything by the maximum number of animals  df <- mutate(df, Scaled_Weight = NumberOfAnimals / max(NumberOfAnimals)   Or by taking the natural logarithm  df <- mutate(df, Scaled_Weight = log(NumberOfAnimals))   Or using an r function to do so  df$Scaled_Weight <- scales::rescale(df$NumberOfAnimals, to = c(0.001,1))   Somebody told me that taking the square root is also a common practise for rescaling weights.   df <- mutate(df, Scaled_Weight = sqrt(NumberOfAnimals))   Is there one method more applicable than the other? On what does it depend which method is most suitable? Which one is best for my particular case?


Event handlers on dynamically created elements?

$(document).ready(function () {     $('.add-button').on('click', function () {          $('.alert-button').after('<button type="button" class="alert-button">Click me! </button>
');      });       $('.alert-button').on('click', function () {        alert('HI!');      });  });  <button type='button' class="alert-button">Click me! </button>
 <button type="button" class="add-button">Add button!</button>     Hi! My " $('.alert-button').on('click'..." code works on elements created on page load, but not on dinamically created ones.  So i have a page with 2 buttons (please run the snippet above). If you click on "Click me!" alert "Hi!" appears.   But when I duplicate "Click me!" button via pressing "Add button", a click on the duplicated "Click me!" produces no alert "Hi!" (although it also has ".alert-button" class).  I want to see alert "Hi!" when I click on any "Click me!" button.   what am I doin' wrong?:)


Windows 10-like hotspot program for Ubuntu

I need to create something like the above in Ubuntu to connect my chromecast in my dorm room. It basically re-routes the wifi connection. This seems to be impossible in Ubuntu so far based on my research. Can you guide me regarding this topic:  Mobile hotspot wifi to wifi in Ubuntu...


I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand.   I believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it works correctly in "quirks mode" / no-doctype):

[...]

   In IE7, the outer div is a fixed size and the inner div is relatively positioned and contains more content (assuming the inner div causes an overflow). In all other browsers, this seems to work as expected.  Screenshot:


Is it appropriate for a mod to use sockpuppets?

Yesterday in a SE site there was an answer claiming that the accepted and upvoted answer was blatantly wrong and there was a gross mistake.  The poster revealed that the accepted answer was by a sockpuppet of a mod, and that he was aware that there was at least one more alias of his.  The correcting answer was deleted twice, and we'll never know if the accepted answer is misleading or not.  I was just wondering if this practice is acceptable. I suppose (or rather hope) that that mod refrains from upvoting his sock's posts, but what happened indicates that a mod can easily impose his own views (even when they are probably wrong).  Could someone who is in charge of mods clarify if such practice is tolerated or should be reported.  It seems necessary to specify that this question is not  anything, let alone suggesting a conspiracy by anyone. I simply and faithfully reported a fact, something I witnessed, that raises some questions. I appreciated the answers but, if a Manager thinks the episode deserves investigation I'll report to them (and only to them) the details of the incident through a discreet and confidential channel.  edit:  It is deplorable that this question continues to be misread or misinterpreted after so many comments and clarifications, I can't see what information can be gained if I disclose the site and the question, since there is nothing wrong there to be seen, and you need 10k+ rep in that particular site in order to read deleted stuff and you have to be a TM if you want to check multiple accounts.   I regret, also, that   insists on the conspiracy string and that the simplicity of the title has warranted a deliberately wrong, restrictive, literal interpretation of this question as a duplicate. I'll ask a new question, of course mods can have multiple accounts, as long as they do not protect them abusing of their priviledges.


I am having trouble understanding the concept of convolution. I get the mathematical idea behind it. I am able to evaluate that the convolution of the following problem  is $$f*g(t) = {0,\ \ t <= -1,\ \ t >= 1;\\ t+1, -1 <= t <= 0;\\ 1 - t,\ \ 0 <= t <=1}$$ However, what exactly is happening to the signal on more physical level?


I'd like to change the date format that is used for articles in Drupal 8. It looks like it uses the Default medium date format by default. I added my own format at admin/config/regional/date-time, but I  can't find where to edit the format that articles use.   Is there a way to do this from the CMS or does this need to be done in code?


Is it ok to promote my services (not products) when answering a very broad question?

I am writing an answer to a fairly general question ( to be specific), so I am giving a very general answer. Can I add at the end "if you want more help, please contact me for consulting" ? Is this kind of self-promotion allowed?  This is different from promoting a product, because a product is a very specific solution to the question. But promoting a service in this case is needed because the question was fairly broad and requires a whole consulting project to answer.


How is the descriptive text on the new tags page generated?

The new tags page has descriptions below each tag derived from the tag wiki excerpt. The page seems to chop off the first few words of some excerpts, such as when they start with "[tagname] is" "Questions for", and so on.  How does this filter work exactly, and what words are removed?


How to scan text from a file and save into an array Java

I am trying to read a string in from a text file, split the string whenever there are spaces, and store each word in an array of strings:  eg. input "Hello i am a sentence"  output [Hello, i, am, a, sentence]  I currently have the following  Scanner sc = null;       try       {         sc = new Scanner(new FileReader(args[0]));         LinkedList<String> list = new LinkedList<String>();         String str = sc.nextLine();         for(String i:str.split(" ")){            list.add(i);         }         String[] arguments = list.toArray(new String[list.size()]);         System.out.println(arguments);       }       catch (FileNotFoundException e) {}       finally       {           if (sc != null) sc.close();       }   But i am unable to convert the list into an array and i get the following output  [Ljava.lang.String;@45ee12a7


Would Gendry have inherited Storm's End?

This is a question about the show. In the books, some characters are alive that are dead in the show, so the answer would be different.  In S08E04, Queen Daenerys makes a show of granting Storm's End to Gendry, the bastard of King Robert Baratheon. Before she does, she asks if anyone knows who the current Lord of Storm's End is. Nobody knows, and she gives it to Gendry.  Did Queen Daenerys give Gendry something he wouldn't have had otherwise? Or did she just make a big show of pointing out that he was the rightful heir?   Obviously a real Baratheon would inherit before Gendry. Was there an obscure Baratheon that nobody knew about? One that Queen Daenerys supplanted when she made Gendry the Lord of Storm's End?  Do bastards ever inherit property? When no true-born heirs are alive? If so, then as the oldest (possibly the last) bastard child of King Robert, wouldn't Gendry be the rightful heir?


Barcode how many outlets can you put on a 14-2 Wire


Why are excess charges in a conductor at the surface?

I’ve been told that coulomb repulsion pushes excess electrons to the surface of a conductor (i.e. sphere) electrostatic equilibrium, and this symmetry causes the net electric field inside to be zero. However, why can’t excess charges just be evenly distributed throughout the sphere? Would that symmetry not cancel the fields from each charge?  It would be helpful if anyone can provide a diagrammatic answer.


Reduce timeout for creation of question in Android app

In using the Android app for the first time today, I quickly discovered several things that I would like to suggest for improvement.  Being a dedicated SOer and dutiful alpha tester, I tried to use the Android app to post these questions here to Meta.  Which leads me to this question. I composed my second question and hit "preview", to be greeted with:     A creation of question can only be performed once every 900 seconds   Aside from the grammer [sic], the 900 second timeout seems rather long -- 15 minutes.  Can this be reduced, perhaps based on rep?


Accessing class fields from a nested class

What is the best way to access fields from a nested class?  class FirstClass {     public int FirstClassField;     public FirstClass()     {         this.FirstClassField = 5;     }     class SecondNestedClass     {         int SecondClassField;         public SecondNestedClass()         {             FirstClassField = 6;         }     } }   The error:     An object reference is required for the non-static field, method, or property 'FirstClass.FirstClassField'   The goal is to be able to use and modify FirstClass fields from the Nested class.  For my purposes, the first class is a form  public partial class MyForm : Form   And passing a reference of MyForm is not possible since it is readonly.  Any ideas?


Macbook Pro Retina 15" (late 2013), is it possible to run 1 extra display at 60hz in a best resolution than full hd?

Sorry but I have read a lot on this topic, in threads of this platform and multiple articles .. etc. And I'm still not sure what resolution and frequency my laptop can run on an external monitor.  Laptop: Macbook Pro 15 "Retina (Late 2013) Connections: 2 Thunderbolts, 1 HDMI  About what I would like:   I want to add 1 new monitor to work on a double screen: monitor + laptop screen. I'm thinking about 27 "- 32" with a resolution somewhat higher than FullHD. In this way I hope not to notice too much negative ppi difference compared to the Retina display   About Freq y Res:   I don't want 30hz or 24hz with higher resolutions; I would like to know the maximum resolution for an external display at 60hz. QuadHD, 2K, 4K? I have no idea.   I have read about MST and 60hz at 4k works with this computer, but I do not understand too much how it works and if this affects me. Because I want to connect only 1 additional monitor.  Now, knowing this maximum resolution at 60hz, I will be able to decide to buy a monitor that best suits the requirements.  And now what cable or adapter do I need so that everything works correctly without limitations?  Thank you


How can I backup directory and files including all sub directory and files using shell script?

I have a file named backup.sh. I just want to take backup only html directory and its all sub directories and files. But I'm getting all the parent directory of html directories as well like var, www which is not required for me.  I'm pasting the code below:  #!/bin/bash #Purpose = Backup of Important Data DATE=$(date +"%d-%b-%Y") SRCDIR="/var/www/html" DESDIR="/media/HDD-01/html" FILENAME=html-$DATE.tar.gz  # Making backup with compress  tar -cpzf $DESDIR/$FILENAME $SRCDIR   I got this code from below link:    Can anyone suggest me how can I solved my problem?  Thanks in advance.


Let $p,q,r$ be prime integers with $q\neq r$. Let $\sqrt[p]q$ denote any root of $x^p-q$ and $\sqrt[p]r$ denote any root of $x^p-r$. Please show that $\mathbb{Q}(\sqrt[p]q)\neq\mathbb{Q}(\sqrt[p]r)$.  By Eisenstein we know the two polynomials are irreducible and so they are minimal polynomials and both have degree $p$.


Using "Rigid Body" for rolling ball. Flat surface. How to push the ball to roll?

Think of billiards. With some force, a ball can roll on a flat surface. When I had asked a question about calculating rotation for a rolling ball, someone wrote an answer that I should use Rigid Body. But the Rigid Body introduction video was using a slope. I want to roll a ball on a flat surface.  So, if I have an active Rigid-Body ball and a passive Rigid-Body plane, can I push the ball slightly so that it could roll a little bit and stop (like billiards)? Or must I use a slope?


How does the curvature of spacetime induce gravitational attraction?

I don't know how to ask this more clearly than in the title.


What do you call this sitting pose or position that sad or depressed people adopt?

What do you call this pose/ position that we adopt when we are very sad or depressed? (For example; when we feel heartbroken or have lost someone or something important.)  P.S. I know that some people sleep in the " that is kind of similar to this sitting position, can I use "sitting in the fetal position" too?     Fetal position (British English: also foetal) is the positioning of the body of a prenatal fetus as it develops. In this position, the back is curved, the head is bowed, and the limbs are bent and drawn up to the torso.   [Wikipedia]   Update:  We Iranians use a single word and also a (figurative) expression for referring to this position/ pose. I don't know how to translate that single word, but the expression literally says "to hug the knee(s) of sadness". For example:      "Why have you sitted in this corner and hugged the knees of sadness like this? Has the world come to an end?!!, Come on, pull yourself together,...".   I don't know if I can use "to hug one's knees" for describing or mentioning this position or not.


Unable to find expected entry 'main/binary-i386/Packages - Chrome

I recently noticed while installing some packages and using the command apt-get update  that I ran into the following error:  Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release   Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   As mentioned in  recent question on Ask Ubuntu, Chrome will no longer be supported by 32 bit systems, however I am currently running 64 bit Ubuntu 14.04, with libc6:i386 libncurses5:i386 libstdc++6:i386 installed for 32 bit application support.   Am I seeing this error because dpkg is looking for the i386 packages as a result of the aforementioned install of libc6:i386 libncurses5:i386 libstdc++6:i386?   How do I resolve this error?   EDIT - (I was not able to resolve this question with simply updating Chrome as mentioned in the other thread, and not all the information in the other answer was present at the time I posted this).


Energy-momentum tensor of a fluid for scalar fields

I know that the energy-momentum tensor for a perfect fluid in General Relativity is given by $$T_{\alpha \beta} = (\rho +p)u_{\alpha}u_{\beta}-p\,g_{\alpha \beta}, $$ where $\rho$ is the density, $p$ is the pressure and $u_{\alpha}$ is the four-velocity of the fluid. I also know that if my space is filled by a scalar field, I can relate the above expression to the one of the energy-momentum tensor for the wave equation: $$T_{\alpha \beta} = \partial_{\alpha }\varphi \partial_{\beta} \varphi - \frac{1}{2} g_{\alpha \beta} \partial^{\gamma} \varphi \partial_{\gamma} \varphi$$ if I choose $u^{\alpha} = \frac{\partial^{\alpha} \varphi}{\sqrt{\partial^{\gamma} \varphi \partial_{\gamma} \varphi}}$ and $\rho=p=\frac{1}{2} \partial^{\gamma} \varphi \partial_{\gamma} \varphi$. Here, I am assuming that $\nabla_{\alpha} \partial^{\alpha} \varphi=0$ and $\partial_{\alpha} = \frac{\partial}{\partial x^{\alpha}}$. My questions are:  This relation and formulas hold for $(+, -, -, -)$ signature. How about $(-, +, +, +)$? Of course it should work, but now I need that $u_{\alpha} u^{\alpha}=-1$ and I am not sure how I can make it work (without using complex numbers).  I would expect $\rho = T_{00}$, since the $00-$component of the energy-momentum tensor is referred to as "the energy density". However, this does not seem the case from the previous formulas. Is there something wrong with the above expressions, or is my analogy wrong?


Why are negative even integers zeros for the Riemann Zeta Function?

First I would just like to clarify I understand that the Riemann Zeta Function is only defined for $s>1$ and that we have to use other formulas that use analytic continuation to "define" the other values of $s$. What I don't understand however is why does the analytically continued function give us zero when $s$ is a negative even integer. I couldn't seem to find any proofs online and I would love to know the answer.


Can't sync user's picture from Active Directory to SharePoint2013

As title, I've done every single step to sync user's picture, but it's still doesn't work. I don't know what to do now to make it work. Any idea?   I've selected "Use SharePoint Active Directory Import" in  "Configure Synchronization Setting".  In "Manage User Properties" I've set up the mapping with "thumbnailPhoto" attibute for Picture. I can see . "Picture---URL---thumbnailPhoto".  I've run full sync and get 241 users from AD  Then I open PowerShell Command and run "Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation mysitehostURL" . And there is no error.  Finally I checked it again but still didn't work.?


How do I insert records in Custom Metadata Type through Apex?

I want to write a trigger on a custom object (Template__c) such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?  I tried using the "CustomMetadataValue". I can see the values assigned in Debug when I run in Anonymous window but the values do not get created in actual.


How do I draw a vertical line in a pgfplots plot

I am trying to draw the line x = 0.9375 but getting an error on this line. My document is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots}   \title{Reservation pictures} \author{santanu } \date{July 2020}  \usepackage{natbib} \usepackage{graphicx}  \begin{document}  \maketitle  \begin{tikzpicture} \begin{axis}[     axis lines = left,     xlabel = $J$,     ylabel = {$\pi_{d}$},     xmin=0, xmax=1,     ymin=0, ymax=1, ] \addplot [    color=red, ] {1-01.6*x}; \addlegendentry{$J\,=\,k_{g}\pi_{g}$} %Here the blue parabloa is defined \addplot [   color=green, ] {x}; \addlegendentry{$\pi_{d}\,=\,J$} %Here the blue parabloa is defined \addplot [   color=blue, ] {1-1.06667*x}; \addlegendentry{$J\,=\,k_{d}\pi_{g}$} %Here the blue parabloa is defined \addplot [   color=black, ] {x = 0.9375}; \addlegendentry{$J\,=\,k_{d}$} \end{axis} \end{tikzpicture}


Electronic facial massage machine and bigger music instrument as a carry-on luggage?

Is this allowed to bring on flight as a carry-on luggage? Its size is like an electronic toothbrush.    And this is the instrument (quite long).  I will fly with SAS airline in a business class, normally I'm allowed to bring 2 of 23kg luggages, but I prefer to take my instrument al a carry-on luggage.


When running through the dungeon indiscriminately murdering everything that moves, I sometimes get a message that I've gotten a Massacre Bonus when I slaughter an impressive number of enemies in a short time frame. This is accompanied by a small experience bonus. However, I'm not quite sure how this works.   What sort of timing mechanics govern the kill streak? How many enemies do I need to kill before the massacre bonus triggers? What formula governs the experience point bonus for the massacre? Does an entire party's kills add together for it, or is it based only on a single character's kills?


how to maximize the slope in order to find the tangent line of hyperbola from a point?

I have a hyperbola in the first quadrant opening to the right given with the equation $$x=\sqrt{19.8y^2-6.9y+0.7}$$ and I have to find the tangent line from the point $(0, 0.08)$ to the hyperbola (the tangent line with positive slope, so above the hyperbola if it's opening to the right).     The problem is I don't know what the tangent point is on the hyperbola because then I would just be able to find the slope and use $y=mx+b$ to find the equation of the tangent line.  My idea is since there are many lines that intersect the hyperbola from that point I have to maximize the slope between the point and the hyperbola and then I should be able to find the tangent line between $(0, 0.08)$ and the hyperbola. But I don't know how to find the maximum slope between the line that goes through the point and the hyperbola?


why do i am getting unrecognized arguments while parsing with argparse?

i am running a blender script where it takes command line arguments which are these  parser = ArgumentParserForBlender() parser.add_argument('--bvhFile',type=str,help='provide bvh file path',required=True) parser.add_argument('--mhx2File',type=str,help='provide mhx2 model file path',required=True) parser.add_argument('--fps',default=15,type=int,help='Please provide frame rate for Animation(default=15)',required=True) parser.add_argument('--FramesToRetarget',type=int,help="How many frames do you wanna retarget(default=All the frames present in bvh file)") parser.add_argument('--videoFormat',default='FFMPEG',help='video format in which animation will be generated(default=FFMPEG)',choices=['FFMPEG','AVI_JPEG','AVI_RAW'],required=True) parser.add_argument('--Animation',default=False,type=lambda x: (str(x).lower() == 'true'),help='True if you want to get animation video(default False)') parser.add_argument('--Point_tracking',default=False,type=lambda x: (str(x).lower() == 'true'),help='True if you want to get point tracking of vertices(default=False)') parser.add_argument('--camera_location',default="(0,-3,0)",type=str,help='specify a camera location as in format-(x,y,z),default is (0,-3,0)')  args = parser.parse_args() bvhFile = args.bvhFile mhx2File =args.mhx2File fps = args.fps EndFrame = args.FramesToRetarget videoFormat =args.videoFormat bool_animation = args.Animation bool_pointtracking = args.Point_tracking camera_loc = args.camera_location   and i am running this with this code  $ bash run_render.sh --bvhFile "C:/Users/Vikram Jain/Downloads/demo_bvh.bvh" --mhx2File "characters/John.mhx2" --fps 15 --FramesToRetarget 2 --videoFormat FFMPEG --Animation True   the problem is ocurring because i am not giving camera location argument, but i defined it as optional argument then why this problem occurs?  usage: blender.exe [-h] --bvhFile BVHFILE --mhx2File MHX2FILE --fps FPS                [--FramesToRetarget FRAMESTORETARGET] --videoFormat                {FFMPEG,AVI_JPEG,AVI_RAW} [--Animation ANIMATION]                [--Point_tracking POINT_TRACKING]                [--camera_location CAMERA_LOCATION] blender.exe: error: unrecognized arguments:   if i provide --camera_location than the error disappears.


Do save bonuses stack from multiple magic items in AL?

I play in Adventurers League and have a character that has a +1 Ring of Protection, which gives +1 to AC and saves. I also have a Stone of Good Luck which gives a +1 to saves and ability checks.  If I equip both items and my base Dex save is +4, would it become +6 due to receiving both bonuses, or +5 with just one? I can't find much in the PHB or Google to answer this.


I want to use Ubuntu on my new laptop .   I should thus use latest LTS, which is 18.04.  But 18.04 kernel does not support my laptop's hardware (for example wifi card requires 5.1+). 18.04 is currently in its third release 18.04.3. Will 18.04 receive the official update with the kernel above 5.1, so I can use my laptop?


Does the cartesian product have an associative property such that $M_1\times(M_2\times M_3) = (M_1\times M_2)\times M_3$, or does the different order result in different ordered pairs?


Is it bad practice to use Reflection in Unit testing?

During the last years I always thought that in Java, Reflection is widely used during Unit testing. Since some of the variables/methods which have to be checked are private, it is somehow necessary to read the values of them. I always thought that the Reflection API is also used for this purpose.  Last week i had to test some packages and therefore write some JUnit tests. As always i used Reflection to access private fields and methods. But my supervisor who checked the code wasn't really happy with that and told me that the Reflection API wasn't meant to use for such "hacking". Instead he suggested to modifiy the visibility in the production code.  Is it really bad practice to use Reflection? I can't really believe that-  Edit: I should have mentioned that i was required that all tests are in a separate package called test (so using protected visibilty e.g. wasn't a possible solution too)


So I was having this conversation with a friend about my ex and she asked me, "Who broke up?"  I said, "She"  My friend was like, "It should be her and not "she"?  Could someone please help me out on this?


Regular Expression to get Street Name and Number Separately

I am using the compile method for the pattern class in order to separate digits (street house number) from a string into a number field, and the non-digits (street) into a string field. \d* gives me the numbers in the text field. But how would I only get the first number in the following examples:  '20a Test Street Appt. 3'; 'Test Street 20/4'; 'Test Street 1-15';   When I want to caputre the string only, I can use [^\d]*. How can I remove additional characters like in the following examples:  'Test Strasse 17 c' => The 'c'; '20a Test Strasse' => The 'a'; 'Test Strasse 20/2' => The '/';   The code I am using for the regex is as follows:  // First, instantiate a new Pattern object "MyPattern" Pattern numberPattern = Pattern.compile('[\\d]'); //correct regex here Pattern streetPattern = Pattern.compile('[\\d]'); //correct regex here // Then instantiate a new Matcher object "MyMatcher" if(account.BillingStreet != null){    Matcher numberMatcher = numberPattern.matcher(account.BillingStreet);    Matcher streetMatcher = streetPattern.matcher(account.BillingStreet);     // You can use the system static method assert to verify the match    if (numberMatcher.matches()) {       account.HouseNumber__c = numberMatcher.group(1);    }    if (streetMatcher.matches()) {       account.Street_Custom__c = streetMatcher.group(1);    } }


Changing account email and logins on SE network

first, I read the threads and documentation about changing IDs. I may have miss something, for sure, but I read before posting.  I created my SE network login with my gmail address some years ago. Now, I'm trying to change the email address I use to connect SE. I also read, I can't remove the first email account to create my SE logins, ok.  I ran the procedure to add new login, and save the data to be widespread on the whole SE network. This seems to work because if I connect any category and click Edit -> My logins, I see:     Stack Exchange    my new email address (with change password and remove actions)   But, I don't understand why I can't connect  with my new credential, this leads to "No account found with this email address". Only the old address works.


Is there any way in latex to create a simple box around one item in a list?  I tried both \framebox, and \fbox, none of them worked  \begin{enumerate}[label=\Alph*),ref=\Alph*] {\color{red}\item null.}  \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Works, but   \begin{enumerate}[label=\Alph*),ref=\Alph*]  {\color{red}  \fbox{ \item null.} }   \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Does not. So yeah, any way to box a single entry in a list?


Difference between bookmark levels greater than one - what does this mean?

When compiling my LaTeX file, I received this warning message. Though I got the PDF file, I still want to know why this warning comes and how to fix it.  It occurs in this line.  \paragraph{Plane stress} Plane state of stress, a.k.a. plane stress, is a state of stress in which\[\sigma_{33}=\sigma_{31}=\sigma_{32}=0.\]     Warning: Difference (2) between bookmark levels is greater(hyperref) than one, level fixed on input line 97. Difference (2) between bookmark levels is greater(hyperref) than one, level fixed.   The question may be seemed dummy to some TeX experts, but as a newbie here, I really don't know how it comes.  I attempt to write two subsubsections, but without numbering them. So I choose the command \paragraph. Is there any work-arounds?


CloudPages - hosting HTML on either GitHub, DropBox, etc. - and HTTPGet into a CloudPage

I'm trying to figure out how to be able to host HTML files within either GitHub or DropBox, then perform an HTTPGet within a CloudPage like below: %%[     set @httpContent = HTTPGet('https://www.dropbox.com/s/0og6dbz3hbyqf1h/test.html') ]%%  %%=TreatAsContent(@httpContent)=%%  The expectation which I'm having trouble with is that I would like to be able to edit these HTML files in real time, and by doing so, the CloudPage will always be updated with the most recent changes.  Basically, if you consider the DropBox file above (test.html), I would want to go to DropBox, edit the file, save it, then immediately via the AMPScript above in the CloudPage, the CloudPage will be updated with the updated test.html.  I hope that makes sense.  When you run the following CloudPage URL which contains the code above:  It literally pulls in the actual HTML rather than rendering it.  Is there any way to accomplish what I'm trying to do?


Problem: Let $A$ and $B$ be real orthogonal matrices, $n$x$n$, where $n$ is an odd number. Prove that, at least one of the matrices $A+B$ and $A-B$ has to be singular.  What have I done so far:  -Since  matrices $A$ and $B$ are real orthogonal, it means that their determinants are $-1$ or $+1$  First I observed matrix $A+B$: $$A+B=AI+BI=ABB^T+BAA^T=AB(B^T+A^T)=AB(A+B)^T\Rightarrow$$  $$det(A+B)=det(AB)det(A+B)^T=det(A)det(B)det(A+B)$$  So, if $detA=detB$ we have $det(A+B)=det(A+B)$ which tells me nothing.  But, if  $detA=-detB$ we have $det(A+B)=-det(A+B)$ which can only hapen if $det(A+B)=0$ making $A+B$ singular.  Then, I tried the same for $A-B$: $$A-B=AI-BI=ABB^T-BAA^T=AB(B^T-A^T)=AB(A-B)^T\Rightarrow$$  $$det(A-B)=det(AB)det(A-B)^T=det(A)det(B)det(A-B)$$  So, if $detA=-detB$ we have $det(A-B)=-det(A-B)$ which can happen if $det(A-B)=0$ making $A-B$ singular.  Is this correct or should I do matrix $A-B$ differently? I am also a little confused why does it have to be said that $n$ is an odd number? What should that tell me?  Any help is greatly appreciated.


I want to create a file which will execute a code, for example:    sleep 60s; dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend   -so that double-clicking on it will be equal to open the terminal and write it in there.    How do I do it? (In windows, I think, it is a .bat file)


Coupon Collector Problem with Batched Selections

I am trying to solve a variation on the .  In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches.  Here's an example problem formulation: There are 100 distinct coupons. A person makes selections in 10-coupon batches at random (each coupon with replacement). What is the expected number of batches necessary to have selected 80 unique coupons?  I have been able to determine the expected number of selections necessary to have selected k unique coupons when selecting one at a time (much like Henry's ), but I'm a bit stumped as to how to go about solving it with this particular wrinkle.  Any tips/guidance would be greatly appreciated.


Why does it skip the If statement inside the While loop? It prints out "no work", why?

This is the program  import java.util.Scanner; //imports class  public class blank2 {      public static void main(String[] args) {       Scanner in = new Scanner(System.in);      boolean valid = true;      String ans;      ans = in.next(); //answer is a string   If you type in "y", it goes right to the else statement.  while (valid == true) {   it always skips this statement      if (ans == "y")     {        System.out.println("it works");        valid = false;     {     else     {           System.out.println("no work");        valid = false;     {    }         }  }   It just wont work


Can't update Android Studio to 2.3 version

I try update my android studio 2.2.3 to 2.3 on Linux 16.04. I click on check for update, update and restart. It starts to downloading patch file at the end of downloading it crashes android studio.   How I can update my android studio? Is there any chance by updating android studio through terminal?   SOLVED:  Just delete old version and install new one.


It started few days ago. I'm running sudo apt update command and it never ends. Terminal output is  Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical.com/ubuntu xenial InRelease                      Hit:3 http://ppa.launchpad.net/attente/java-non-latin-shortcuts/ubuntu xenial InRelease Hit:4 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:6 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease              Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]     Hit:8 http://dl.google.com/linux/chrome/deb stable Release                      Hit:9 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease            Fetched 341 kB in 2s (150 kB/s)   While this proccess system fan speed is boosted on my laptop and it's kinda annoying to listen to this. There is no excessive cpu activity though. Can you guys hint me why it happens?


I would like to be able to convert a single feature (or potentially many features) in an ArcGIS layer into  (WKT) format during a geoprocessing operation using Python and ArcPy (no non-ArcPy modules).  The purpose is to then pass the WKT on to SQL Server Spatial and do additional processing outside of the ArcGIS GP toolset.  Is there a method for converting a ArcGIS geometry features to WKT via ArcPy?   I have already read the following, without finding what I am after:    (references a tool in the deprecated "Samples" toolbox)  (uses ArcObjects or non-ArcPy modules)  (Uses QGIS and OGR)   There apparently used to be a tool called "" (which appears to be a Python script) that was in the Samples toolbox, but that toolbox was  and I cannot find a copy of the Samples Toolbox (I have v10.0) on my machine.  If there are no current solutions, if someone could just point me to a copy of the sample, I would be totally fine with using that tool, too.


I tried to compile this code using xelatex.  \documentclass[a4paper,12pt]{scrartcl} \usepackage{fontspec} \usepackage{mathpazo} \usepackage{lipsum}  \begin{document} \lipsum \end{document}   It seems the font is not loading.   How do I fix this?


Is there a way to suggest a decision by the "Community" bot  may be wrong?

Is there a way to suggest that a decision by the "Community" bot could be wrong? I recently made (i.e. suggested) a minor edit to a question, mostly to remove the SHOUTING, which was rejected by Community".   The edit was:   But no reason for the rejection was given. Perhaps it was simply too minor an edit, which I would be happy to accept. But I'm curious.


Show that $\int_{-\infty}^{\infty} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$ is convergent.

Show that $$\int_{-\infty}^{\infty} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent.   $$\int_{0}^{\infty} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent by comparison test with $\int_{0}^{\infty} \dfrac{1}{x^4} dx$.  How do i show that $$\int_{-\infty}^{0} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent?


Can't login to Ubuntu server 14 after fresh install; never given chance to set password in first place

I'm very new with Linux and I'm trying to set up a testing network with VMs by following  video series.  I downloaded Ubuntu server 64bit version 14 and installed it using VMware workstation. I wasn't sure of many of the questions asked during the installation process but I mainly went with the defaults. Now that the machine has booted I can't login. I remember the password and name I gave to the only account I created.  What's the default account and password?     UPDATE: somethings screwed up. I tried a new VM and noticed I'm never given the opportunity to select a password. However, in VMware it detects the installation as Ubuntu and asks me to enter my name, username and password (and I'm 100% sure the password I selected is the one I'm entering).   UPDATE 2: I tried setting the time in the .vmx to let the option screen stay longer and this is what I get    It is possible no bootloader was installed (this is a fresh in stall so I don't mind junking it and starting from scratch).   Just to be clear this is the ISO I installed with: ubuntu-14.04.2-server-amd64


how to simulate a rocket exhaust engine like shown below

Hell, i want to achieve this result of the rocket exhaust as shown below. this is from space x starship animation.  i tried volumetrics but didnt get quite the result. a glare and a blur got me close but not there yet. the photo show some volumetrics were used because the light is jagged.  am i missing something? is this achievable in blender and how.  thank you.


In my page.tpl.php I'm doing this to display one of my view:  print views_embed_view('teaserview', 'default');   That gives me the following html output:

Edit view

    But the only thing that I really need is     Is there a possibility to modify the views_embed_view call so that I get only the needed data?   There would be the possibility to modify all the views .tpl.php files but I hope there's an easier way to do this.   I also read about the semantic views module but I didn't understand how to configure my view with it so that i get only the needed markup as output. it didn't seem to have any effect.


I installed Xubuntu for reasons of stability and fluidity in my notebook.  I used to have Ubuntu with Gnome Shell, which used much screen magnifier (I have vision problems). After that bad experience, due to the slowness of the system, but decided to reinstall Ubuntu with Unity, I spoke to also had a screen magnifier, the problem is that the system is quite slow and unstable because it froze and restarted at any moment the computer is not a good practice.  Met Xubuntu, but apparently this little thought in people with some degree of visual impairment.  I tried KMag -> not qualify.  Virtual Magnifying Glass 3.5 -> That qualifies half as wide the screen as usual, but locks the keyboard and mouse actions.  I was told to install GNOME Orca, this is just a screen reader, does not help.  Any suggestions?


how to verify if MTU 9000 configured properly on all component

we want to test the network on all Linux machines  after all machines and switches configured to MTU=9000  the reason for that is because inconsistent MTU configuration can cause huge problem  so in our hadoop cluster we have ~50 machines and also switches that configured also  what are the Linux CLI that can approve that all linux / switches configured with MTU=9000  as all know ifconfig -a , show the MTU value  but we want to test it on each machine that MTU is real working


How do I get both subject and background in focus at the same time with my (µ4/3) prime lens?

I'm using an Olympus EM-5 Mark II and my prime lens is the Panasonic 20mm f/1.7 (40mm film equiv. focal length).  I don't know if I can set the camera's focus to infinity to avoid the blurring effect when I don't want it. For example, when I want to take a picture where both the background and subject are clear. Currently I can only choose between blurring the background or blurring the subject.  Perhaps I missed something? Can someone show me what I did wrong?


How to mark student reports more efficiently

I have been assigned to mark student reports for an engineering coursework, which mainly involves the use of a software. The main content of each report is around 15 pages. There are 45 reports in total. I am also required to write feedback to each student. I have not been involved in designing the assignment nor teaching the course.   The professor who assigned me this task told me that the marker last year took about 4 full days to complete the markings, and yet I have spent more than two weeks doing this (and not really doing anything else), and I am not yet done. I did need to spend some time familiarising myself with the subject matter and the software in the beginning, because I have never used the software before, but it is not that difficult to use.   Since this is my first marking experience, I am wondering whether it is normal to have spent so much time marking. Is there any strategy I can adopt to complete the task more efficiently, especially in my case where I am not involved in designing the assignment?


Can I catch the change event from a dynamically created HTML input element farther up the DOM?

I have a <select> form element that is being generated dynamically after the page loads. I was using jQuery to attach a change event that would update other fields in the form, and wanted to eliminate the need to rewire the handler each time the form containing the <select> was replaced.  For click events on dynamic elements, I have been moving to unobtrusive JavaScript and wanted to use that approach for change - but no success. Attaching to the <select>directly was cumbersome because when the node is replaced in the DOM, the connected event listener dies with it, and the new node must be attached to again.  So I wanted to know, is there a way to unobtrusively assign a change event handler to the parent element of a newly-created <select> and let the event bubble up to a handler on a previously-existing element, in order to avoid attaching a handler each time a new target input element is created?


I  there any JavaScript way (regex) or module to check if a string is a URL which the follows following schema .  NOTE - I have seen other questions related to this in stackoverflow and none of them are satisfactory. Most of them are the regex which matches the http/https/ftp URL but what about feed or mailto URL or URL with any other schema as specified in


Existence of a $C_c^{\infty}$ function $\Phi$ s.t. $\int \nabla \Phi \neq 0.$

Let $\Omega\subseteq \mathbb R^n$ be open, bounded and connected set with $\mathcal{L^n}(\Omega)>0$. Let $\Omega=\Omega_1\cup\Omega_2$ where $\Omega_1\cap\Omega_2=\emptyset$ with $\mathcal{L^n}(\Omega_1)>0$ and $\mathcal{L^n}(\Omega_2)>0.$ Also $\Omega_1,$ $\Omega_2$ are $\mathcal L^n$-measurable sets.  Prove that  $\exists$ $\Phi\in C_c^{\infty}(\Omega)$ such that $\displaystyle \int_{\Omega_1}\nabla\Phi(x)dx\neq 0.$   Here $\Phi$ is real valued function and $C_c^{\infty}(\Omega)$ consists of all $C^{\infty}(\Omega)$ functions which have compact support in $\Omega.$   I tried to show by contradiction and wished to have $\mathcal{L^n}(\Omega_1)=0 $ but couldn't be able to do that.  Any help is appreciated. Thank you.


I often need to tail -f apache access logs for websites to troubleshoot issues- one thing that makes it annoying is that anyone loading a page once may cause 12+ lines to get written to the log, and since they're long lines each one wraps multiple lines in my terminal.  tail -f seems to play nicely with piping to grep and awk, and I came up with a pretty simple solution to filter out duplicates when one IP address makes many requests in a particular second (as well as trim it to the particular info I usually need)-  tail -f log.file | awk ' { print $1 " " $4 " " $9}' | uniq  The problem is, this doesn't work. I just get no output at all, even when I know there should be tons of lines printed.  I've tried some troubleshooting, but haven't been able to get things to really work-  tail -f log.file | awk ' { print $1 " " $4 " " $9}'    This works exactly as I think it should, and prints the lines as they happen (but with many duplicates) like so:  12.34.56.78 [10/May/2016:18:42:01 200 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304 12.34.56.78 [10/May/2016:18:42:02 304     tail log.file | awk ' { print $1 " " $4  " " $9}' | uniq   This also works exactly as I think it should, and filters out any duplicate lines. But for my troubleshooting I really need the real time updates of tail -f  How can I make tail -f filter out duplicate lines?


I am using Ubuntu 14.04 (it works best on my older system). I had upgraded to Firefox 57 and, after days of trying to make it work, I removed it from my system (I still have the ~/.mozilla directory). I want to reinstall v. 56 (I know about the ESR version but do not want it as it updates along the lines of 57).  I would like to know how to install FF v56. I have downloaded firefox-56.0.2.tar.bz2 and tried installing using the instructions  but I end up with a separate directory from my mozilla directory. I am just looking for a simple, clean method for manually installing FF 56. Any ideas?  ls /var/cache/apt/archives/ | grep firefox firefox_57.0+build4-0ubuntu0.14.04.4_i386.deb firefox-locale-en_57.0+build4-0ubuntu0.14.04.4_i386.deb   NOTE: The reason the other question/answer is not related as I am not downgrading, rather I am re-installing.


Why am i getting " java.lang.NullPointerException" in my android app?

I want to show "hello" message on the screen but my app is not working.  What is causing "java.lang.NullPointerException"?  the debugger says value of longitude is null. Even if that is the case, shouldn’t my "hello" message still appear?  I have the following code:   package autogenie.maptrial;   import android.Manifest;   import android.content.Context;  import android.content.pm.PackageManager;  import android.location.Location;  import android.location.LocationManager;  import android.support.v4.app.ActivityCompat;  import android.support.v7.app.AppCompatActivity;  import android.os.Bundle;  import android.widget.Toast;  public class MainActivity extends AppCompatActivity { private Location location; private Double latitude, longitude; private LocationManager locationManager;   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {         // TODO: Consider calling         //    ActivityCompat#requestPermissions         // here to request the missing permissions, and then overriding         //   public void onRequestPermissionsResult(int requestCode, String[] permissions,         //                                          int[] grantResults)         // to handle the case where the user grants the permission. See the documentation         // for ActivityCompat#requestPermissions for more details.         return;     }       locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);      location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);      longitude=location.getLongitude();     latitude=location.getLatitude();        Context context = getApplicationContext();     String s="hello";     int duration = Toast.LENGTH_LONG;      Toast toast = Toast.makeText(context,s, duration);     toast.show();   } }   What debugger shows:    After that it crashes.


I would like to get some opinions. I need to make dialog with 3 tabs, every tab have different form, some very long and some very short. my dilemma is, if to make the dialog height change by the length of each tab or to make it the same height for all the tabs even if some of them will have large blank space (see the example...). If you have a examples of websites that use something similar i will be happy to see...


Where I can find real world data for triangulation?

I want points for practicing triangulation algorithms.  Just points with coordinates [X,Y] and elevation [Z] of real world terrain.  I can use Google Maps Elevation API, but there is no method how to get only significantly terrain points.


Unable to boot to Ubuntu after a restart

I have been using Ubuntu 14.04 alongside Windows 8 for almost a year and a half. And one day when I restarted to switch to Ubuntu I wasn't able to see the grub options for dual boot and when I tried to go to boot options and chose Ubuntu it says "Selected boot device failed". What could be the reason for this and will I be able to recover the data stored on my Ubuntu partition. Please Help


Why does it seem like there is always a Lagrangian?

All the fundamental laws of physics can be written in terms of an action principle. This includes electromagnetism, general relativity, the standard model of particle physics, and attempts to go beyond the known laws of physics such as string theory. For example, (nearly) everything we know about the universe is captured in a Lagrangian where the terms carry the contributions of Einstein, Maxwell (or Yang and Mills) and Dirac respectively, and describe gravity, the forces of nature (electromagnetism and the nuclear forces) and the dynamics of particles like electrons and quarks. Source: David Tong Me: I am a second year undergrad and have a nice familiarity with the -1/4 F_ij F_ij term (electromagnetism) and how it results to the Maxwell's Equations, but am still curious to know how it seems like there is always a Lagrangian. Apart from one obvious advantage that the Euler Lagrange equations hold in any coordinate system and the Lagrangian holds the key to the symmetries of the system.


Microsoft C++ exception: std::bad_array_new_length at memory location 0x00F9FA88. What is wrong?

It's just a struct  #define _CRT_SECURE_NO_WARNINGS //def   #include<iostream> #include<conio.h>   using namespace std;   my struct  struct muncitor   {     int id;     char *nume;     float salariu;     char init_t;     bool fct_conducere;     int nr_calificativ;     int *calificativ; };   reading struct content  void read(muncitor m)  {      cout << "Id: ";     cin >> m.id;      cout << "numele: ";     char aux[20];     cin >> aux;     m.nume = new char[strlen(aux) + 1];     strcpy(m.nume, aux);      cout << "salariul: ";     cin >> m.salariu;      cout << "initiala: ";     cin >> m.init_t;      cout << "functie: ";     cin >> m.fct_conducere;      cout << "nr calificative: ";     cin >> m.nr_calificativ;     cout << m.nr_calificativ << " ";      m.calificativ = new int[m.nr_calificativ]; here is the problem      for (int i = 0; i < m.nr_calificativ; i++)     {         cout << "calificativul: ";         cin >> m.calificativ[i];     }  }  void main() {      muncitor m;      m.id = 1;     m.salariu = 1250;      read(m); //call void     _getch; }   Can't figure it out. The debug stops at m.calificativ = new int[m.nr_calificativ]; What is wrong? Please help me. A test is coming soon. I can't find a solution, so I'm asking here.


calling a function and changing a variable value which said function utilises within the same IF clause

Good evening, I am trying to construct a menu system for a program I am building to practice my mental mathematics. The idea is that selecting the option “1” in the below sub-menu (sub1) causes the introductory dialogue generated in the function two_by_three_mult (called upon selecting “1”) to change to reflect the choice made. However when option “1” is selected the intro_dialogue variable does not change to equal “2-digit by 3-digit multiplication”, meaning that when the two_by_three_mult function runs the correct message is not displayed.   I assume this issue arises because I am attempting to call a function (two_by_three_mult) and change a variable (intro_dialogue) which said function utilises within the same IF clause however I cannot work out how to format my code to fix this.   def sub1():     sub1_1 = int((raw_input("""Welcome to the practice area. What would you like to practice?     1:2-digit by 3-digit multiplication     2:Anything else     """)))     if sub1_1 == 1:         def printHam():             intro_dialogue = "2-digit by 3-digit multiplication"         two_by_three_mult()     elif sub1_1 == 2:         sub12_1 =(raw_input("""under construction. press 'm' to return to the main menu. Press any other button to exit         """))         if sub12_1 == "m":             main_menu()  def two_by_three_mult():     import random     questions = int((raw_input("Welcome to the %s multiplication programme.  How many questions do you wish to attempt? "%(str(intro_dialogue)))))


When I buy fresh herbs from the grocery store they go bad too quickly what can I do to keep them fresher longer?    I just bought a vacuum sealer because I thought it would help preserve my food longer.   Should I seal and freeze or can they be kept in the frig?


The mean absolute deviation is:   $$\dfrac{\sum_{i=1}^{n}|x_i-\bar x|}{n}$$   The variance is: $$\dfrac{\sum_{i=1}^{n}(x_i-\bar x)^2}{n-1}$$   So the mean deviation and the variance are measuring the same thing, yet variance requires squaring the difference. Why? Squaring always gives a non-negative value, but the absolute value is also a non-negative value. Why isn't it $|x_i-\bar x|^2$, then? Squaring just enlarges, why do we need to do this?  A similar question is , but mine is a little different. Thanks.