Why is it easier to close a door if you're pushing further from the hinges

It's much harder to closer a door if you push near its hinges as opposed to pushing at the edge of the door. I understand that this is because the torque is calculated by $r \times F$, but I'm trying to get a feel for why the distance from the rotation axis matters. How does the door (or long rod) that I'm trying to turn know how far I am away from the rotation axis? If I peel everything back, I'm just pushing some atoms in the door, which then pull neighbouring atoms along for the ride etc..


$\sigma^2 \le (\mu-a)(b-\mu)$ for all probability distributions bounded on $[a,b]$?

Let $\mu$ be the mean and $\sigma$ the standard deviation of a probability distribution defined on the bounded interval $[a,b]$ (that is, the probability that the random variable lies outside $[a,b]$ is zero).  Does the following inequality hold generally for any such probability distribution?  $$\sigma^2 \le (\mu-a)(b-\mu)$$  Motivation: This inequality holds for the Beta distribution (as is obvious from the formulae ).


Can exponential functions have "complex" solutions?

Do exponential functions, take $e^x$, have imaginary solutions just as a function like $\sqrt x$ has complex solutions? I know $e^{i\pi} = -1$ but I'm not sure how this works or relates.


Trouble with running cd with sudo as another user

I want to run a command on a shell on behalf of another user. The command is as follows:  sudo -u USER cd /home/USER   I get  sudo: cd: command not found   What is the correct syntax for the command to pass to sudo?


The logo I've created is all type. The type has been created in Adobe illustrator. I realise that it is vectorised already, but just need to clarify if the vector image is suitable for print outs scaling up/scaling down/using on a website?


Can someone explain what does [count=\i] in a foreach mean?  Antal S-Z's answer to  use this. It is also mentioned in , but I am not able to locate documentation on this in the TikZ-PGF manual (V2.10)


I flagged this one as "not an answer":      My flag got declined:     declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer   Can anyone explain why (for this particular case)?  It is clearly a link-only answer, and the answerer did not provide any information to why this would be useful to the OP. I would understand if they said at least something, that makes it relevant to the question. Then it would be arguable.  Is it just a moderator's error? I am pretty sure to have voted the same way in >100 of other different cases, and they were all accepted.


Running gta 4 in smoothly in inbuilt graphics (intel)

My pc specifications :  Display: Intel 82945G Express chipset Family  Ram :2 gb  Processor: Intel Core 2 Duo E4500 @2.20GHz 32 Bit windows 7  I want to run gta 4 on my pc anyway and graphics could be messed up but should give at leat 15-29 fps . Is it possible to rum this game on my pc smoothly (With any use of modding, swiftshader etc )  Bcoz I can't buy dedicated Gpu right now but really want to play it on my pc .  Please help !


Practical time travel: time dilation above the event horizon

Imagine there is a huge black hole with  so that one doesn't get killed by spaghettification after even nearing the event horizon.   Now imagine a very curious creature wanting to know how the universe would evolve. Even though it isn't sure it will be able to return, it decided to travel just close enough to the event horizon to survive, and stay there until for as long as it can make.  For how far would the creature see the future? Is this even possible? What should one expect?     This question was inspired by Miller's planet from the movie Interstellar.


I'm trying to build a high speed counter to measure the time delay between two radio waves . I'm thinking of using a MC100EP016A counter which works at a maximum frequency of 1.4 GHz but I cannot find out a clock IC as an input to this counter .   It requires an input high voltage of 2075 mV to 2420 mV and an input low voltage of 1355 mV to 1675 mV . this input range is much above the LVPECL output range most voltage controlled crystal oscillators provide and I cannot find a LVPECL to PECL converter at 1.4 ghz.  What can I do?  or are there any alternatives?  please help ...


I am currently finishing logo in Photoshop.  Logo will be used in Instagram header(or whatever it's called) and also will be printed on all kinds of different stuff of various sizes.   I need an advise on what would be a reasonable resolution/file size to save logo when passing it to customer?


Is there a C++ equivalent to "The GNU C Reference Manual"?

After reading , I could easily start writing my first simple programs with a strong theoretical foundation. Is there a similar document targeting C++?


Do exponent rules follow different rules from radicals

Does $\left(-3\right)^\frac{2}{2}$ not equal $\sqrt{\left(-3\right)^2}$?


Null Object Reference on setOnClickListner Method

Error:                                                                                java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kritisharan.tictactoe/com.example.kritisharan.tictactoe.starter_activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   Code in MainActivity:  public class MainActivity extends AppCompatActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.content_main);      FloatingActionButton reset = (FloatingActionButton) findViewById(R.id.reset);      reset.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             startActivity(new Intent(MainActivity.this, MainActivity.class));         }     }); }   XML Code in activity_main.xml  <include layout="@layout/content_main"/>  <android.support.design.widget.FloatingActionButton     android:id="@+id/reset"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="bottom|end"     android:layout_margin="10sp"     android:src="@android:drawable/ic_menu_revert"/>   Don't know why it is considering a null reference. Searched all the solutions but couldn't find anything that works. Please help.


Does a US national need a visa to teach a paid training course in the UK?

My US company offers technology training. A UK company has contacted us and would like to bring one of our people over for a week to train them onsite. Does the trainer need a work visa? If so what kind?


How to call two action functions from single javascript function

I have two command buttons cancel, canceAll. I have two methods cancel, cancelAll in conteoller. How can i call actionfunctions from single javascript function based on the button clicked?  I tried like this but it is not saving, showing compilation error.  function cancelAllFunc(Clicked_Id){             var id = Clicked_Id.id;             if (confirm("--?") == true) {                 if(id='1') {                     cancelAllMethod();                 }                 else {                     cancelMethod();                 }             } else {              }           }  <apex:commandButton value="Cancel All" onclick="cancelAllFunc()" id="1"/> <apex:commandButton value="Cancel" onclick="cancelAllFunc()" id="2"/>  <apex:actionFunction name="cancelAllMethod" action="{!cancelAllMethod}" /> <apex:actionFunction name="cancelMethod" action="{!cancelMethod}" />


Tapping the back button clears search query and results

After searching question by tag and opening a result, tapping the back button is clearing the tag used to query and the results.  Reproduce: tags → [tag] → tap a question → tap on the back arrow.   App Version: 1.0.95 Device Manufacturer: HUAWEI Device Model: PRA-LX1   OS Version: 8.0.0 (402(C432))


Are ArcGIS 9.3 layer files compatible with ArcGIS 10.1?

If I save layer files in ArcGIS 9.3, can they be opened and modified in ArcGIS 10.1?  When I try to open the layer file in 10.1, it does not work and gives me an error message: "the imported layer is in an invalid format."


How to convert criteria to oracle sql query

Criteria criteria = session.createCriteria(Student.class); criteria.add(Restrictions.eq(STD_ID, stdId)); criteria.add(Restrictions.le(START_DATE, dateOfService)); criteria.add(Restrictions.ge(END_DATE, dateOfService)); results = criteria.list();   Is it possible to convert the criteria object to SQL query or while debugging in Eclipse is it possible to see the generated SQL query?


An example of two functions commuting with each other

Are there two real-valued functions defined on the same subset of $\mathbb{R}$ that commute with each other but are not inverses of each other?  (After several responses, I have to make an edit to my post.  Neither function should be the identity function nor the zero function.  The two functions should not be the same function.)


Windows 10 Pro upgrade missing "boot.wim" file

I am trying to install/upgrade Windows Pro 8.1 to Windows 10 through setup.exe from C:\$Windows.~BT. But installer tell me that boot.wim file is missing.  In update history logs I can see that update to windows 10 failed many times since july 29th.


Please explain me this relativistic occurrence

So, for example, we have the planet, a spaceship (cylinder shaped) and a ball in it (spaceship is like transparent so we can see the ball). We are on the planet looking at the ship. The spaceship moves the speed of light and the ball with it. But what if the ball was moving, for example, 50000 km/h in the ship? It should still be moving the speed of light to us, but would it go through the ship?


Python / ImportError: Import by filename is not supported

I'm trying to import a python file to my application which is written in python.  I have the following code:  import os from os.path import basename  class specificClass:     def dothing(self,path):           runcommand = __import__("/root/"+ os.path.splitext(os.path.basename(path))[0]+ "/" + os.path.splitext(os.path.basename(path))[0] +"/sa/update.py")           runcommand.main()   When I run it, it gives me the following error:  ImportError: Import by filename is not supported.


how to change four hexadecimal number to float in js?

Like this :  I hava a float number 25.56,I could translate it to the four hexadecimal number E1 7A CC 41 in js.And the translate way is called as union in C.  But I don't know how to change the E1 7A CC 41 to the float in js


Update  This question has been closed on the grounds that it is a "duplicate" that "already has an answer". However the indicated duplicate is another post from two years ago, has no accepted answer, and the single solution it received is a convoluted process that is effective only for diamond-level moderators. I am not one of those, and few people are.  This issue has been hanging around for far too long without an explanation or a resolution. Accordingly this question should be reopened.    I have been helping a rep 13 user at length in the comments section, and got the automatic prompt to take the discussion to a chat room. Of course I was unable to do this.  The way it seems to me that it should work is that someone of sufficient reputation can invite anyone to a chat room. If not, then please can we silence the prompt telling me to do it!  A similar question has been asked before, but that was a why is it this way rather than a can we fix it like this.    Searching a little more carefully, it seems that this has been raised before , and . The gist of the explanation is that the chat server is separate from the main servers, and in the general case it requires an HTTP request to determine a user's chat reputation.  However, this was raised in July 2011 and the questions gained 58 and 82 upvotes respectively. It seems that this feature is highly desirable and I am surprised there has been no movement in 28 months.


show that $(p \to q) \vee (p \to r) \to (q \vee r)$ and $p\vee q\vee r$ are logically equivalent

without using the truth table:  Show that      $(p \to q) \vee (p \to r) \to (q \vee r)$ and $p\vee q\vee r$    are logically equivalent.


How to find whether it is possible for each vertex of a graph to have a different degree?

I want to prove whether it is possible for a graph to have different degrees for each vertex. I think that it can be possible with an example, but I can't prove it with mathematics.


I remember that this is something like Cronenberg films. It seems that there the guy accidentally spied on his sister in the shower and saw that she had breast on her back, and then the whole family turned out to be monsters. It seems that the family gathered in the evening for dinner, and then they tried to catch the guy. Monsters were horribly ugly.


Every time I try to update or install something, I get this:  Could not connect to mirror01.th.ifl.net:80  can somebody please explain this? It's really riling me


Prove that the matrix   $$A = \begin{bmatrix}         0      & 1 & \\        \ddots &   & \ddots \\               & \ddots & & \ddots \\               &        & \ddots & & \ddots\\               &        &        & 0 & & 1\\        -a_{0} & -a_{1} & \dots  & \dots & \dots & -a_{n-1}\end{bmatrix}$$  is non-derogatory. I am not sure how would I do this. Non-derogatory matrix means that the minimal polynomial equals the characteristic polynomial but I am not sure how to this one.


One of the most commonly asked questions of beginners. How do ranks work in Go for amateurs?  Why do we start backwards? And why do we suddenly count upwards again? What is the difference between 9d and 9p? How is this related to rating? What are the basic differences between ranks used in different countries and different servers?


What is the advantage of having a 'doctor europaeus' certified doctorate degree?

Universities in European Union countries have the possibility of issuing a PhD degree that is certified as "doctor europaeus" if the PhD student fulfills a certain , although  reports a slightly different list of requirements.  Regardless of the requirements, is there any advantage of having such certification? I am referring to practical advantages, for example a certified degree can be accepted in other EU countries with less bureaucracy. And career advantages (for example more prestige or points gained in postdoc grant applications).


'(single quote) character doesnot insert in to mysql

I need to enter:     your's faithfully   into the database but it does not insert into the database. I'm using php and mysql. **  I'm doesnt talking about sql injection. I want to insert '(single quote) into my mysql table field.  If anyone already face this problem , please share...


Visa question: attending a conference in the USA and accompanied by spouse

I'm going to attend a conference in the US and am applying for a B1 visa. While completing the DS-160 form I was asked if I will be accompanied by someone, I entered the name of my wife. Now I'm at the step of paying for the fees and scheduling an interview, and I don't think that I'm applying also for my wife's visa (there's no option to enter my wife's information such as passport number, etc...).  How should I proceed to apply for a visa for my wife, too?


I'm looking for some good references for learning how to model 2d physics in games. I am not looking for a library to do it for me - I want to think and learn, not blindly use someone else's work.  I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I find their tutorials hard to understand because they are either written poorly, or assume a level of mathematical understanding that I don't yet possess.  For specifics - I'm looking for how to model a top-down 2d game, sort of like a tank combat game - and I want to accurately model (among other things) acceleration and speed, heat buildup of 'components,' collisions between models and level boundaries, and missile-type weapons.  Websites, recommended books, blogs, code examples - all are welcome if they will aid understanding. I'm considering using C# and F# to build my game, so code examples in either of those languages would be great - but don't let language stop you from posting a good link. =)  Edit: I don't mean that I don't understand math - it's more the case that I don't know what I need to know in order to understand the systems involved, and don't really know how to find the resources that will teach me in an understandable way.


Function with multiplicative property and $f(0) = f'(0) = 1$

In my differential equations book, the question is posed to find a function $f$ such that $f(0) = 1$, $f'(0) = 1$, and $f(x+y) = f(x)f(y)$ for $x,y \in \mathbb{R}$. The book does nothing more than indicate that $f(x) = e^{x}$, but I'm struggling to see how to move forward to the solution... so far all I have been able to conject is that $f'(x) = f(x) \ \forall \ x$, but I'm having a hard time proving this and am not sure how to move forward.   Any ideas or hints?


I'm using LDME, a Debian based distro.  Is there someway, preferably automatic, where one could download the source to everything that might be executed and everything needed by those executables? I'd also like the downloaded "items" to be stored under one common directory, though a hierarchical structure under that directory would be fine.  An extra requirement would be to keep track of what was downloaded ( because that source would only be the source of a snapshot) and update that tree to what is presently installed.  NOTE: To be clear, I want to be able to download ALL the source for the software that's included with my distro.


I need to find partial fractions for $$\frac{1}{x^4 + 1}$$ so it can be integrated, but I'm completely stuck.


Why is gravity such a weak force?   It becomes strong for particles only at the Planck scale, around $10^{19}$ $\text{GeV}$, much above the electroweak scale ($100$ $\text{GeV}$, the energy scale dominating physics at low energies).   Why are these scales so different from each other? What prevents quantities at the electroweak scale, such as the Higgs boson mass, from getting quantum corrections on the order of the Planck scale?   Is the solution super symmetry, extra dimensions, or just anthropic fine-tuning?  Can we relate few problems of quantum mechanics with gravity ?  Despite the fact that there is no experimental evidence that conflicts with the predictions of general relativity, physicists have found compelling reasons to suspect that general relativity may be only a good approximation to a more fundamental theory of gravity. The central issue is reconciling general relativity with the demands of quantum mechanics. Well tested by experiment, quantum mechanics is the theory that describes the microscopic behavior of particles. In the quantum world, particles are also waves, the results of measurements are probabilistic in nature, and an uncertainty principle forbids knowing certain pairs of measurable quantities, such as position and momentum, to arbitrary precision. The Standard Model is the unified picture of the strong, weak, and electromagnetic forces within the framework of quantum mechanics. Nonetheless, theoretical physicists have found it to be extremely difficult to construct a theory of quantum gravity that incorporates both general relativity and quantum mechanics.  At the atomic scale, gravity is some $40$ orders of magnitude weaker than the other forces in nature. In both general relativity and Newtonian gravity, the strength of gravity grows at shorter and shorter distances, while quantum effects prevent the other forces from similarly increasing in strength. At a distance of approximately $10^{-35}$ $\text{m}$, called the Planck length, gravity becomes as strong as the other forces. At the Planck length, gravity is so strong and spacetime is so highly distorted that our common notions of space and time lose meaning. Quantum fluctuations at this length scale produce energies so large that microscopic black holes would pop into and out of existence. A theory of quantum gravity is needed to provide a description of nature at the Planck length. Yet, attempts by researchers to construct such a theory, analogous to the Standard Model of particle physics, have lead to serious inconsistencies.


$A_5$ is the only subgroup of $S_5$ of order 60

My attempt : Suppose $H$ is another subgroup of $S_5$ of order $60$  by Lagrange's Theorem $\vert H\cap A_5\vert ||H|$, then $|H \cap A_5| \in\{1,2,3,5,6,10,20,30,60\}$  $$\Rightarrow |HA_5| =\frac{|H||A_5|}{|H \cap A_5|}=3600,1800,1200,900,720,600,360,180,120,60$$   So, the only candidates for the order of $|H \cap A_5|$ are $30$ and $60$.  Then I want to claim that the order must be $60$. thus $|H \cap A_5|=|A_5|$ $$\Rightarrow H=A_5$$  But I didn't know how to show the former case doesn't hold.  Please give me a hint please!  PS. I haven't learned the concepts of normal group and simple group. So, I would like you to explain without using these concepts! Thank you.


A black hole is listed as "a region of spacetime exhibiting such strong gravitational effects that nothing—not even particles and electromagnetic radiation such as light—can escape from inside it" One thing i don't understand is how photons cannot escape from them. If they don't have mass, then how can gravity exert any force on them?


When i use texture paint, it doesn't show when i render it

So, I have UV unwrapped my model and made a texture for it and then started texturing the model, at first it appears textured when I render the image, but for some random reason after when I paint something it doesn't show anymore when I render it. Does anyone know why this is the case?   So this is something random,     And this is it rendered, as you can see the thing I drew isn't on the model. The thing is it worked before I saved the texture in a texture folder. This really confuses me since it used to work on this exact model, anyone knows why?


R squared generated from regression with randomly generated variables

If you regress randomly generated independent variables on a randomly generated dependent variable, is the expected R squared value simply a function of n (the # observations) and k (the # of independent variables)?   If so, why is this?    In some old regression course notes I was re-reading, I see that the expected R-squared in this case is k / (n-k-1).  I tried this with some randomly generated data (e.g. n=100 and k=20) and indeed got a value very close to 0.2532, but I don't understand how it can be this simple.  Thanks for any color anyone might have.


Fantasy piece involving different worlds and a crippled protagonist

This is a novel that I think I remember reading somewhere in the 1990s courtesy of my brother (who does not remember the book). Only a few details are coming to mind at the moment. It's a male protagonist. Something was not quite right with his legs, which led to him being nicknamed Frog or Leapfrog due to his usual method of locomotion, which consisted of pushing off from his legs to his hands and vice versa. Something happens and he winds up moving between a number of worlds (I want to say that he fell into a well or a hole in a field). There was a part which stuck with me where he's in a bottomless hole and finds he keeps falling faster and faster without end with the rushing wind becoming actively painful (I don't remember if he actually reaches a terminal velocity or if some aspect of the world prevented it while still allowing the rushing air to affect him physically).  Unfortunately, that's all I can remember. I don't remember whether he eventually gains companions on the voyage or how it ended. The most vivid memory is that of the nonstop falling.


The  keyword does away with the need for an explicit type declaration and I have read with interest the  of when it might be appropriate.  I have also read about (but not used)  which seems to take things a step further by making it .  With Boo, both the type and the declaration can be implied.  Which leads me to wonder, why did the C# language designers bother to include a var keyword at all?    Update: Yes, var supports Anonymous types, but anonymous types by themselves do not necessitate the var keyword...  var anon = new { Name = "Terry", Age = 34 };   versus  anon = new { Name = "Terry", Age = 34 };


Recommended 10Gb NIC in PCIe 4.0 1x slot?

I've been trying to figure this out for some time, and lots of googling has seen lots of discussion but no actual answers that I can find. I'm the happy owner of an AMD Ryzen system on an ASUS TUF GAMING X570-PLUS (WI-FI) motherboard, which has PCIe 4.0 enabled and working. I want to purchase and install a 10Gb NIC, probably an SFP+ compatible card. I'm quite aware that:  10Gb NIC cards in a x1 format do not currently exist. 10Gb NIC cards in x4 format exist. PCIe x4 cards can be plugged into an PCIe x1 slot. In my case, my PCIe 4.0 x1 slot is capable of 1.97GB/s or 15.76Gb/s.  What I'm trying to figure out is:  What is a recommended PCIe x4 10Gb NIC card I can use? Can I plug an PCIe x4 10Gb NIC into my PCIe 4.0 x1 slot and get 10Gb NIC speed? Will my motherboard simply negotiate the PCIe 4.0 x1 slot at PCIe 3.0 speed and halve the bandwidth to 985MB/s or 7.88Gb/s?  Has anyone used a 10Gb x4 NIC in an PCIe 4.0 x1 slot, and what was your experience? Really hoping someone can help.


Can a file read be combined in a list comprehension with list slicing?

The following code fragment is the core of a twitter bot using Twython.  I would like to know if I can combine the file read into the list comprehension as it seems rather convoluted to read a line in as a one-item list only to then create another multi-item list from that.  I've checked around and found some examples where a whole file is read in using readlines() for instance, but not one where slicing is involved too.  with open(tweet_datafile,'r') as smstweets:     bigtweet = smstweets.readline().strip()      text_entire = [ bigtweet[i:i+140] for i in range(0,len(bigtweet),140) ]  for line in range(len(text_entire)):     twitter.update_status(status=text_entire[line])   Notes:  Python 2.7, Linux. Python 3.5 is installed & available if needs be.   readline().strip() is used because I want to be able to read a file with lines  of arbitrary length and remove any EOL and whitespace (the last item of the list  could end up as spaces only; twitter will reject a status update of spaces, and I  haven't yet written any error-handling for this).   I read only the first line of the input file and then later in the code write the file back out minus that line. I decided this was the simplest solution for my limited skills as the bot won't run 24/7     I'm not a programmer, I've hacked this together using scraps of example code I  found lying about on Stack Overflow and elsewhere.  I'm trying to use quite simple  code and not rely on 3rd party libs apart from Twython. Generators and iterators appear as sorcery to me.


I want to ask a question in mathematics, in which I want to add a table with some alpha numeric values. How can I do this? Can I enter an image in the text?


Obtaining eigenvectors of a matrix with more features than observations

I have a matrix A of dimension 120 x 24000, where the number of features (n=24000) represents voxels in the brain and is greater than the number of observations (m=120), or subject brain scans. I am trying to understand how I can perform PCA on such a matrix. As I understand it, instead of doing the eigendecomposition of the covariance matrix n x n, I can transpose my matrix A and carry out eigendecomposition of the smaller covariance matrix m x m. After obtaining the eigenvalues (120 x 1 vector) and the eigenvectors (120 x 120 matrix), how can I use this to obtain the eigenvectors of the n x n covariance matrix and reduce in voxel space? I apologize for the ignorance- I've performed PCA only when my observations were greater than my features, which is more intuitive to me. But understanding how I can use PCA on a matrix where the number of features is greater than the number of observations is difficult for me to comprehend. Could someone possibly show a simple mathematical example, say of matrix size 3 x 4, to show me the PCA computation step-by-step? Thank you so much.


How to prove that Fibonacci number is integer?

How to prove that formula for Fibonacci numbers are always integers, for all $n$:  $$ F_n = \frac{\varphi^n - \psi^n}{\sqrt{5}} $$ where, $\varphi = \frac{1 + \sqrt{5}}{2}$ and $\psi = \frac{1 - \sqrt{5}}{2}$.  I know how to prove that $F_n$ is rational, but what about integer?


Get coordinate value displayed at the buttom of qgis window with pyqgis

Does anyone know how I can get the coordinate value displayed at the buttom of the qgis window? I have been searching through the qgis api but am not able to find anything suitable..


I got this error:  (bleachbit:5510): IBUS-WARNING **: The owner of /home/niider/.config/ibus/bus is not root!


Are there differences in accuracy and reliability between the frozen phonon method and Density Functional Perturbation Theory?

When proposing or predicting new materials, whether in the bulk or in two dimensions, it is important to discuss the stability of the system. This is usually done through thermodynamics and(or) lattice dynamics. A feasible way to determine the dynamical stability of a material is by modeling its phonon band structure.   I see that two popular methods of modeling the phonon band structure are:  (a) the frozen phonon / finite displacement method (as implemented in phonopy)  (b) Linear Response Theory / Density Functional Perturbation Theory (as implemented in Quantum ESPRESSO (ph.x)  Are the two methods equivalent or is one more reliable/accurate than the other, and if so, why?


how to eliminate duplicate items after merge of 2 list

I want to remove the one set of item in resultant list, if both Name\Type pair is same in both list. I saw Union, but it's doesn't works. it's give all 4 items. var data1 = new List<Data> {     new Data{Name = "N1", Type = "T1"},     new Data{Name = "N2", Type = "T2"}, };  var data2 = new List<Data> {     new Data{Name = "N1", Type = "T1"},     new Data{Name = "N3", Type = "T3"}, };  var X = data1.Union(data2).Distinct().ToList();  The result should only contains 3 items, new Data{Name = "N1", Type = "T1"}, new Data{Name = "N2", Type = "T2"}, new Data{Name = "N3", Type = "T3"},


Why don't neutrons cluster on their own?

"The answer lies in their one part in a thousand extra mass. Adding neutrons costs a little in mass, and in Einstein $E=mc^2$ implies that mass equates to energy. So it costs energy to add neutrons(due to their mass) and it costs energy to add protons(due to their electrical repulsion). This qualitatively explains why the elements have N larger than P, but not by too much. This extra energy locked into the neutron's mass also leads to instability. As nature seeks the state of lowest energy, like water running downhill to sea level, so a neutron left to itself will eventually experience beta decay: $n\to p+e+\nu$, which converts it to the marginally lighter proton, the excess energy being transformed into the electron and neutrino. So while a neutron in a nucleus can be stabilised, if you gather too many together, they will undergo beta decay, increasing the number of protons at the expense of neutrons. Conversely trying to put too many protons together and their net electrostatic repulsion destabilises them; in this case it is possible to lower the net energy by "inverse beta decay" where one of the protons converts to a neutron: $$ \rm p\text{ (in nucleus)} \to n \text{ (in nucleus)} + \text{positron} + \nu. $$ The net effect is when collections of N and P get too big a mismatch, beta decay or inverse beta decay moves the whole back toward the "valley of stability" where the number of neutrons N tends to exceed the number of protons P."  (The above is from a book called "Cosmic onion. Quarks and the nature of universe") From my understanding (not too sure as I am new on this), it took much more energy to gather protons together as compared to gathering neutrons together. What holds them together is the strong force and since the strong force holding them together is the same, there will be "a lot of strong force" left over when holding just neutrons together. As nature seeks to minimise the energy state of the nucleons, some of the neutrons will decay to proton such that there will not be "any strong force left over", hence ensuring that the energy state of the necleons are minimise. If what I say above is true, the neutron and proton "produce" equal amount of force carrier particles as is it because they themselves are made of quarks held together by the same colour charge and thus each of them produce the same amount of residual strong force?


Error when retrieve Image(Blob) data from SQLite database

I am trying to retrieve Image(Blob) Data from database But it gives my null pointer exception . What is wrong with it ? Here is the Code       JButton show = new JButton("New button");     show.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {             try{                 String iid="10";                 //iid=id.getText().toString();                 String q="select * from image where id='"+iid+"'";                  PreparedStatement ps=con.prepareStatement(q);                 //ps.setString(1, id.getText());                 ps.executeQuery();                 ResultSet rs=ps.executeQuery();                          while (rs.next()) {                     InputStream in = rs.getBinaryStream("image");                     bufImg = ImageIO.read(in);                     img.setIcon(new ImageIcon (bufImg));                 }                 rs.close();                 ps.close();                   }catch(Exception c)                 {                     c.printStackTrace();                 }         }     });


Reverse citation order of two library entries

I have the following problem illustrated by a simple example: If I cite the paper of an author T. Coven in my document, the outcome is 'Coven (2004b)'. If I cite the appendix to this paper, the outcome is 'Coven (2004a)'. Now the appendix pops up much less frequently than the original paper, therefore I would like to reverse the order (exchange 'a' and 'b' in the citations). Is this possible?  I am using Biblatex. Here is the bib-file of the above example (named: lib.bib):  @article{co:2004, author = {T. Coven}, title = {Title A}, journaltitle = {The X Journal}, date = {2004} } @article{coapp:2004, author = {T. Coven}, title = {Appendix to Title A}, journaltitle = {The X Journal}, date = {2004} }   MWE:  \documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt} \usepackage[backend=bibtex8,     style=authoryear-icomp,     dashed=false,     autocite=footnote,     maxcitenames=3,     mincitenames=1,     maxbibnames=100,     firstinits=true,     sorting=nty     ]{biblatex} \bibliography{lib}  \begin{document} \cite{co:2004} and \cite{coapp:2004} \end{document}


How many physical degrees of freedom does the $\mathrm{SU(N)}$ Yang-Mills theory have?

The $\mathrm{U(1)}$ QED case has two physical degrees of freedom, which is easy to understand because the free electromagnetic field must be transverse to the direction of propagation. But what are the physical degrees of freedom the $\mathrm{SU(N)}$ Yang-Mills theory?   I believe that the $\mathrm{SU(N)}$ Y.M. theory has four degrees of freedom, and it is easy to see that by gauge fixing (such as the Lorentz condition or the Coulomb condition) that we can always remove one redundant degree of freedom. But then we still haven't completely fixed the redundant degrees of freedom. Thus my question is:     How many physical degrees and how many are redundant degrees of freedom does the Y.M. theory have?    I would be interested to understand how we can determine this mathematically, and also to understand what the physical intuition behind this is?


Specifying geography with cardinal directions

So here in America we are in "the West".  Would this become "the Western world" or "the western world? "  I'll assume the same applies to "the East" (Asia).


For all integers $k$, $l$, $m$, $n$, if $k = nl + m$, then $n$ divides $k$ iff $n$ divides $m$

I have attempted to use the division theorem, but I am unsure exactly where to begin. Any hints/direction would be appreciated.


Letter of recommendation from a deceased advisor

A PhD advisor usually sent all his letters of recommendation for his students through his secretary. He wrote a letter for his PhD student who is currently applying for academic positions, and unexpectedly died a month after. The secretary has a letter. Should this letter be submitted as a part of application? Should it be stated in the cover letter that the letter is from a deceased advisor and how the submission should be handled (for example, for MathJobs should an account with the secretary email be created)?   The advisor worked in the US and the applicant is considering both American and European universities.


I'm a bit confused by the datasheet of a LCD (MIKROE-55). It says supply voltage is 3.5V (TYP), which results in as Supply current of 16mA.  At first I understood this as: "connect K to GND and A to 3.5V and I'm done :)"  But below that table is a graphic showing 2 Resistors (1 on seems to be on boards, 1 external).  So my question: How to connect that backlight? If a Resistor is required, how to calculate its Value.  Full Datasheet can be found here:


I am having problems getting displacement mapping to extrude in the correct direction on all sides of a sphere.  I have been following this tutorial:      UPDATED


Two lists that are identical by comparison but declared differently also update differently as well.  Can someone help explain why?  L1 = [[0] * 2] * 2 L2 = [[0 for _ in xrange(2)] for _ in xrange(2)] assert(L1 == L2) for i in xrange(2):     L1[0][i] = 1     L2[0][i] = 1 print L1 print L2   The end result is   >>> [[1, 1], [1, 1]] >>> [[1, 1], [0, 0]]


How to pad a string with leading zeros in Python 3

I'm trying to make length = 001 in Python 3 but whenever I try to print it out it truncates the value without the leading zeros (length = 1). How would I stop this happening without having to cast length to a string before printing it out?


Does First Strike cause a creature to deal damage twice?

Do creatures with first strike deal first and normal strike damage? I attacked with a  that had +5/+0, and my friend argued that his 3/1 first strike would kill it, is that true?


Resize Android screen resolution at top and bottom because of dead zones

I need to resize and move my Android screen in order to be able to use the drop-down notification bar since the top and bottom parts of the screen are dead.  I was able to work with bottom buttons (back, home, recents) after using:  wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM] wm density [reset|DENSITY]   as described in . This worked for the bottom dead zone, but not for the top. I'm still not able to use the notification bar by swiping down from the top. Is there any way to resize the area of effect of the notif. bar to achieve this or anything similar?  My screen resolution is 720x1280 - 320 dpi. It's a Sony Xperia Z3C.


If $f$ is a differentiable real function in an open set $E \subset \Bbb R^n$ and $f$ has a local maximum at a point $\textbf{x} = (x_1, x_2, \cdots , x_n) \in E$, show $f'(\textbf{x}) = 0$.   I think it would be nice if I could show that each component is $0$, which I think means showing the partial derivative at each component is $0$, but I don't know how to show this.


Installing grounded light fixture on box with no ground conductor

I'm installing a brand new motion activated security light to an existing box on my garage. After removing the old light, I notice it only has white/black wiring while the new light fixture has of course white/black/green (ground) wires to attach. What do I do if no ground wire is available with the old box?


Is the coordinate ring $\mathbb{C}[x,y]/(x^2+y^2-1)$ or the ring $\mathbb{C}[t,t^{-1}]$ unique factorization domains?

I wonder if either the coordinate ring $A(X):=\mathbb{C}[x,y]/(x^2+y^2-1)$ or the polynomial ring $\mathbb{C}[t,t^{-1}]$ are unique factorization domains?   I know that those are isomorphic, so the answere for one of those would do it. In my trys of solving this issue, I saw that: $y^2 = (1-x)(1+x)$ ist a none-unique factorization in irreducible elements, because $y, (1-x)$ and $(1+x)$ are irreducible in $\mathbb{C}[x,y]/(x^2+y^2-1)$. But I can't even prove, that $y$ is irreducible. I know, that there are no none-units nor units, which I could multiply and get $y$ again. As far as I know, the units in $A(X)$ are the constant polynomials.  I hope that someone can understand my issue (so in advance in hope you can read my spelling w/o getting hurt :) ..) and make this topic clear to me.   Thanks


PDF of a sum of exponential random variables

Let $X_i$ for $i=1,2,...$ be a sequence of i.i.d exponential random variables with common parameter $\lambda$. Let $N$ be a geometric random variable with parameter $p$ that is independent of the sequence $X_i$. What is the pdf of the random variable $Y=\Sigma_{i=1}^N X_i$.


What does ~ mean at the end of a file name (e.g. httpd.conf~)?

I edited a fresh apache config file in CentOS 5 using gedit. When I looked at the directory I saw now two files:  httpd.conf    and   httpd.conf~   What does the ~ signify?


Constructing a continuous distribution to match $m$ moments

Suppose I have a large sample drawn from a continuous distribution, size $n$,  and $2 < m\ll  n$ moments from that sample.  Alternatively, suppose I have been given those moments by an angel, oracle,  theory or fiat.  Is there a named distribution, or a natural method of constructing distributions, that lets you exactly match m moments for an arbitrary m?  I know that a finite number of moments will not uniquely determine a distribution. To narrow it down a little bit, let's limit it to distributions that are differentiable (and I presume analytic) and that simplify to the normal distribution for functions with arbitrary first and second moments and skewness, excess kurtosis and higher moments = 0.  I would also strongly prefer a distribution that can be strictly positive for some set of moments and/or coefficients of the distribution function.   Instead of the usual central moments, I would accept a solution posed in terms of raw moments, or normalized moments, or cumulants if that makes the problem easier or produces a more interesting result (with the skewness and kurtosis analogs chosen in an analogous manner to those above).  It would also be a nice property, though I do not know if it is even possible, if the distribution for m equal to some specific value m* could be reduced to the standard normal distribution by some explicitly statable invertible function of $x$ and the moments -- opening the possibility of some kind of higher-order analogue of the t-statistic, or some other useful normalization.  Please note that I am not asking how to fit a predetermined distribution, nor how to select a distribution from some larger family. I am looking for the most simple and natural ways to fit a set of moments or moment-like entities exactly, like fitting an $n$th degree polynomial to $n+1$ points.


Range of the function $f(x) = \frac{2x}{x^{2}+1}$

Plotting the function $f(x) = \frac{2x}{x^{2}+1}$ we can see the range is $[-1,1]$.  Now I was told to do $f(x)=y$ and isolate $x$ doing this I have, using the quadratic formula $x=\frac{1\pm \sqrt{1-y^2}}{y}$ then $$range f(x)= domain \frac{1\pm \sqrt{1-y^2}}{y}$$.  But this domain does not include $0$ and $0=f(0)$ so $0$ must be in the range, what am I missing?


Is there a way to check the size of the video memory? Specifically, is there one that works accurately for both integrated GPU's as well as PCI/AGP graphics cards?  Many integrated GPU's have dynamically allocated memory, so the solution would hopefully return either the maximum available video memory or the currently allocated amount. For stand-alone NVidia or ATI cards it would obviously return the total amount of physical GPU RAM.  lspci -v does output memory figures, but I do not believe it is the video memory. I suspect the figure reported is some system memory allocation or block or channel size, but I don't know for sure. You can see in these  that lspci was wrong in 5 of the 6 tests:  ** ASUS EN210 PCIe - 1024 Mb ***   01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)         Subsystem: ASUSTeK Computer Inc. Device 8354         Memory at e3000000 (32-bit, non-prefetchable) [size=16M]         Memory at d0000000 (64-bit, prefetchable) [size=256M]         Memory at e0000000 (64-bit, prefetchable) [size=32M]  *** Galaxy 8400GS PCIe - 512 Mb ***   01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 8400 GS] (rev a1)     Subsystem: nVidia Corporation Device 05cc     Region 0: Memory at e4000000 (32-bit, non-prefetchable) [size=16M]     Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M]     Region 3: Memory at e2000000 (64-bit, non-prefetchable) [size=32M]  *** VirtualBox VM - 10 Mb (headless server) ***   00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter         Memory at e0000000 (32-bit, prefetchable) [size=16M]  *** VirtualBox VM - 128 Mb ***   00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter (prog-if 00 [VGA Controller])         Memory at e0000000 (32-bit, prefetchable) [size=128M]  *** S3 Savage 4 AGP - unknown Mb (old lspci log), but I don't think they made these cards with 128Mb memory! ***   00:01.0 VGA compatible controller: S3 Inc. Savage 4 (rev 06) (prog-if 00 [VGA controller])     Subsystem: IBM Unknown device 01c5     Region 0: Memory at feb80000 (32-bit, non-prefetchable) [size=512K]     Region 1: Memory at f0000000 (32-bit, prefetchable) [size=128M]  *** NVIDIA Quadro FX 1800 integrated - 1024 Mb ***   01:00.0 VGA compatible controller: nVidia Corporation GT215 [Quadro FX 1800M] (rev a2) (prog-if 00 [VGA controller])     Subsystem: Dell Device 040c     Memory at e2000000 (32-bit, non-prefetchable) [size=16M]     Memory at d0000000 (64-bit, prefetchable) [size=256M]     Memory at e0000000 (64-bit, prefetchable) [size=32M]


Javascript Not firing when used with Dynamically-added HTML element

I'm working with code from , which copies the alt attribute of an img when clicked and pastes the attribute into a textarea when the textarea is clicked.   The code works great on a static textarea that is loaded in on page load, but I'd like to be able to dynamically add in the textarea. I have a button at the top of the HTML that calls a function that loads in a new textarea. The function is at the very bottom of the


Automatic link-to-title conversion in migrated posts

I posted  that was . My original answer included a destination URL on TeX.SE and was therefore not automatically converted to it's title equivalent. However, now that the post has been migrated, the automatic conversion has still not taken place.  Interestingly, editing the post reveals an updated, converted title-form of the URL. Migrated post (now on TeX.SE):        Rendered post during an edit:        Is there a way to have these URLs automatically update across networks? Or, upon conversion (without a visible alternative/source), be updated?


How does a black hole have a magnetic field?

If a black hole is defined as an area where gravity is so great, it has a theoretical escape velocity that is faster than the speed of light. So how, since the carrying particle of magnetic force is a photon, can a black hole have a magnetic field? Maybe the debris in the accretion disk around the black hole have a magnetic field, but surely not the black hole itself?  I am probably wrong in my understanding.


What does the moving iron voltmeter measure in a circuit, average voltage or RMS voltage?

What does the  measure in a circuit,  average voltage, \$V_{average}\$, or RMS voltage, \$V_{rms} \$?  \$V_{average}=\frac{1}{T}{\int_{0}^{T}vdt} \$  \$V_{rms}=\sqrt{\frac{1}{T}\int_{0}^{T}v^2dt} \$


Install package along with all the dependencies offline

Right now I have 2 computers:   Has connection to the internet and has installed package A. Doesn't have connection to the WEB. On this PC I need to install package A.   I decided to download all needed packages using first PC and transfer them to the second PC via USB. I have searched how to get all needed packages for some deb installation and .  But when I run:  apt-get --print-uris --yes install A | grep ^\' | cut -d\' -f2 > downloads.list   on first PC I got empty file because this package is already installed there (and I don't want to uninstall it).  Also package A is very complicated and depends on package B which depends on package C and package C is not installed on the second PC.  So how can I download all needed packages? Or is there any other way of installing it?


ffmpeg synchonization of libfdk_aac (or libfacc) and libx264

How to synchronize libfdk_aac and libx264 streams?  ffmpeg -i pipe_libfdk_aac.fifo -i pipe_libx264.fifo -c copy -f flv flv_stream_pipe_or_rtmp.output   I'm always receiving the same asych in all cases: saving file on file system, rtmp-using or raw pipe out. Is it possible to syncronize them?   ffmpeg version N-66924-gaba61b2 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 15 2015 12:50:29 with gcc 4.6 (GCC) 20120106 (prerelease) configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/qwerty/work/android-ndk-r10b86/android-ndk-r10b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi- --sysroot=/home/qwerty/work/android-ndk-r10b86/android-ndk-r10b/platforms/android-3/arch-arm --extra-cflags='-I/home/qwerty/x264 -I/home/qwerty/ffmpeg_build/mp3/build/include -I/home/qwerty/faac/output/include -I/home/qwerty/ffmpeg_sources/fdk-aac/build/include -I/usr/local/include/ -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-L/home/qwerty/x264 -L/home/qwerty/ffmpeg_build/mp3/build/lib -L/home/qwerty/ffmpeg_sources/fdk-aac/build/lib -L/home/qwerty/faac/output/lib -L/usr/local/lib/ -lrtmp -lpolarssl' --enable-version3 --enable-gpl --enable-nonfree --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-librtmp --enable-libfaac --enable-libfdk_aac --enable-libmp3lame --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5 libavutil      54. 10.100 / 54. 10.100 libavcodec     56.  8.100 / 56.  8.100 libavformat    56.  9.100 / 56.  9.100 libavdevice    56.  1.100 / 56.  1.100 libavfilter     5.  1.106 /  5.  1.106 libavresample   2.  1.  0 /  2.  1.  0 libswscale      3.  1.101 /  3.  1.101 libswresample   1.  1.100 /  1.  1.100 libpostproc    53.  3.100 / 53.  3.100


How to add a VPN connection in Ubuntu 16.10?

I just installed Ubuntu 16.10, and I am not able to add VPN connections from the network menu. Here is a screen shot:    As you can see the sub menu "Add a VPN connection" is greyed out. This was no problem in Ubuntu 16.04.


I am trying to combine/flatten a series on paths in Sketch. When I use Layer > Combine I get very unexpected results. I am assuming there is a fairly simple solution that I am missing here, can someone help me out? I have attached examples below (you can especially see the different paths when a gradient is applied). Thanks!  [  [


I start the software upgrade application, press check and Ubuntu 12.04 software upgrade does not show 12.10 upgrade on top.  The only way to upgrade seems via CD???? Upgrading to 12.04 worked that way but not to 12.10.  Thanks


Confused by the British having “dinner” in the afternoon” and “tea” in the evening

I’m having problems with meal names in the UK. I’ve just learnt that dinner can refer to the afternoon meal, and that tea can refer to an early evening meal.  Is this specific to a certain area in the UK? Do these terms still exist?


Managed Package - check for Person Accounts with post install script

So I was wondering if I can make a managed package with Person Accounts referece and install it on orgs w/ and w/o Persons enabled and then checking in code if it has or hasn't Persons enabled.


What is best practice for typesetting fractions with large objects in the numerator and denominator?  For example, fractions with limits, integrals, summations, etc... cause the expressions to look contracted and somewhat odd.  I understand that it is probably best to leave this as is when writing mathematics inline, but as a stand-alone fraction I feel it would be much less distracting if the symbols were typeset at normal size and the fraction was given more height in which to place itself.  Are there standards (for pure mathematics) regarding this problem? And what are the options - if it's generally permitted - for expanding the fraction size to incorporate large objects?    Example  \frac{\sum_{i=0}^{n} i^2}{\iint_{D}\frac{\partial (x,y)}{\partial (u,v)}\,\mathrm{d}u\,\mathrm{d}v}   Both the summation and the integral look somewhat cramped.


I have a macbook pro and i am looking to get a gaming pc.  Ive downloaded a few games on steam that are mac and windows compatible.  I play them on my mac.  Would i be able to sign into my steam account on my windows pc and download the windows version without having to buy it again?


Do I need a transit visa In Casablanca Airport?

I am travelling from Montreal (Canada) to Beirut (Lebanon) and transiting in Casablanca Airport (Morocco) for 8 hours. I currently hold a valid Canadian entry visa and study permit. My passport is Syrian. Do I need a Moroccan transit visa?


My save files are way too large!  I have been playing up to lv 15 with ~40 mods and before I knew the word of it my save file went up to ~700Mb in size.  Any way to reduce this? I tried to remove orphaned script instances with a save tool but only 670 out of 72K scripts were removed. Most likely my save file is simply too big.   Is there any way to make it smaller or to prevent the same from happening in the future?


Computing Integral of $\frac{\sin^n x}{x^n}$

How do you compute $$\int_0^{\infty}\frac{\sin^n x}{x^n}dx$$ for every $n$? Thank you.   For $n=1$ it is widely known and for $n=2$ you might use Plancherel's formula. But I don't know how to do it for $n\geq3.$


Given what is happening in Turkey at the moment, is it advisable using Turkish Airlines with a 2-hour transit in Turkey to my final destination; Copenhagen?


Let $A$ and $B$ be $n\times n$ matrices. Suppose $A$ is similar to $B$. Prove trace($A$) = trace($B$).

Let $A$ and $B$ be $n\times n$ matrices. Suppose $A$ is similar to $B$. Prove $\operatorname{trace}(A) = \operatorname{trace}(B)$.  I'm not sure where to go on this. So far I have this:  If $A$ is similar to $B$, then      $B=P^{-1}AP$ and $A=PBP^{-1}$   This implies that:     $\operatorname{trace}(B) = \operatorname{trace}(P^{-1}AP)$ and $\operatorname{trace}(A) = \operatorname{trace}(PBP^{-1})$   Not sure where to go from here


How do you measure pedal axle/spindle size?  Replacement pedals and accessories specify a size like 9/16" or 1/2".  How do I measure my current pedal to see what I need?  Is it just a matter of putting the pedal threads in a caliper and measuring the outer diameter of the threads across the axle/spindle?  Or do you need to measure the solid part, excluding the threads?


Currently I'm running Ubuntu 14.10 and have quite a bit of free space on this disc:  thufir@doge:~$  thufir@doge:~$ sudo fdisk -l  Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x1f3b4b3e  Device     Boot     Start       End   Sectors  Size Id Type /dev/sda1       927944704 976771071  48826368 23.3G 82 Linux swap / Solaris /dev/sda2  *    732633088 927944703 195311616 93.1G 83 Linux  Partition table entries are not in disk order. thufir@doge:~$    What partition scheme would make sense for installing OpenSuSE onto the free space?  I'm not sure, as I go through the OpenSuSE install process, how I'd use sda1 as the swap.  What settings should I set for sda3 for OpenSuSE?  Make the mount point / and mark as bootable?  Not sure how do do that during the install process.


I have a VPS with Ubuntu 14.04 with two websites A and B.  I set up HTTPS for website A and everything is ok with .   I don't want B to have HTTPS but when I access , Chrome throws me a warning and if I proceed to continue viewing the website, it renders the website A.  Also, main IP of the VPS is IP1 (Which is used for website B), and I purchased another IP address IP2 (used for website A).  What do I need to change in my configuration to make Apache use separate IP addresses for the two sites?  These are the config files:  a.com-le-ssl.conf  <IfModule mod_ssl.c>     <VirtualHost *:443>         ServerAdmin lienhe.a.com         ServerName a.com         ServerAlias www.a.com         DocumentRoot "/var/www/a/frontend/web"         <Directory "/var/www/a/frontend/web">                     Options Indexes FollowSymLinks MultiViews                     AllowOverride All                     Order allow,deny                     allow from all             </Directory>         ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined       SSLCertificateFile /etc/letsencrypt/live/a.com/cert.pem     SSLCertificateKeyFile /etc/letsencrypt/live/a.com/privkey.pem     Include /etc/letsencrypt/options-ssl-apache.conf     SSLCertificateChainFile /etc/letsencrypt/live/a.com/chain.pem     </VirtualHost> </IfModule>   a.com.conf  <VirtualHost *:80>     ServerAdmin lienhe.a.com     ServerName a.com     ServerAlias www.a.com     DocumentRoot "/var/www/a/frontend/web"     <Directory "/var/www/a/frontend/web">                 Options Indexes FollowSymLinks MultiViews                 AllowOverride All                 Order allow,deny                 allow from all         </Directory>     ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined   RewriteEngine on RewriteCond %{SERVER_NAME} =a.com [OR] RewriteCond %{SERVER_NAME} =www.a.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>   b.com.conf  <VirtualHost *:80>     ServerAdmin cskh.b.com     ServerName b.com     ServerAlias www.b.com     DocumentRoot "/var/www/b"     <Directory "/var/www/b">                 Options Indexes FollowSymLinks MultiViews                 AllowOverride All                 Order allow,deny                 allow from all         </Directory>     ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined   </VirtualHost>


InDesign CS5 tables: Can I automatically fit rows or columns to the size of content?

You know how Excel has the function "Autofit," where you select a whole row or a whole column and it resizes the entire thing to the height or depth of the largest content item? I want to do that in an InDesign table, but with one click. (I know I can drag the column out until the overflow box goes away, but I want to know if there's some automated function I'm overlooking.) Does this automatic function exist anywhere?


Where do the values for t tables come from?

For a given normal distribution, figuring out what percentage of scores fall between two bounds is straight forward. Calculate the z score and look it up on a z table. Or one can also evaluate the integral:  $\int\frac{1}{\sigma \sqrt{2\pi}}e^{\frac{-(\mu-x)^2}{2\sigma^2}}dx$  from the given bounds, where sigma is the standard deviation and mu is the mean. In fact this is a way to calculate the values on a given z-table. You can use this for sampling distributions, but it often doesn't always estimate the true confidence interval correctly. Hence t-statistics.  My question was where do t-tables come from? Is there an adjusted equation for them? Or is there a correction factor?


How can you use the Law of Cosines to show that "u ∙ v = ║u║║v║cosθ "

How can I do that? I didn't know there was a relationship between those 2?


Why is personal information (DOB, marital status) listed on CVs in Europe and can it be omitted?

I find it irrelevant to specify personal information on my CV, and frankly I do not see why they should be listed in academic applications. What is the advantage for the hiring committing to know if I am 18 or I have 17 children, aside from creating a chance to bias the hiring process with personal beliefs. Is it because they want to know that I am a prodigy child who got his/her PhD at 18 years old, or because if I am a 28 years old female married without children I will want children soon and so I will have to take maternity leave? Is this just an influence of the age/status discrimination in Europe where I see at times that  job offers are only open to certain categories of people (i.e.,younger than 30 years old) ?  If I omit this information will my CV be frowned upon? Or will they think I am hiding something? I do not know what I would be hiding because age can probably be guessed from the CV anyway.


How to enumerate with small roman capitals (not lowercases)?

Although I have seen many similar questions, none has been useful.   The question is quite simple: How do I reproduce the highlighted numerals in the image below?    Note that the form of the numerals addressed in questions as  is different from this one.  Thank you in advance!


Are 80-bit keys considered secure as of late-2017?

I've seen a lot of ciphers with variants that use 80-bit keys, like Grain, Trivium, KLEIN, KATAN & KTANTAN, Piccolo, PRESENT, RC4, Skipjack, and TWINE. Some of these designs are younger than six years old, making me wonder if an 80-bit key size is "secure", be it against brute force attacks or as a buffer in the case of weaknesses in a cipher's design. Is 80-bit security not enough anymore? Is it only on the edge of being insecure? If it is on the edge, by what time will 80-bit keys be obsolete?


Often I talk nonsense, and need to delete an invalid answer via mobile.  This works for comments. Is this a planned feature on Android?


Nothing can ever go through the event horizon of a black hole

Nothing can ever fall into a black hole, even from the perspective of something in the process of falling through (a process I am arguing can never be completed.) Here's my argument.   As seen from the outside, nothing can enter a black hole because it becomes infinitely slow before it reaches the event horizon. Now suppose it takes a googol years (as measured from outside) for a particular black hole to dissipate. Then the black hole dissipates before anything can enter into it. So from the perspective of something falling toward the event horizon, they will experience the black hole dissipating and the event horizon vanishing before they can ever enter it.  Can you tell me what's wrong with this argument?


how to buy and send an itunes card as a gift?

How do I gift an iTunes card to my friend in Ghana? I do not want one for myself. I have never heard or used one.


How could I make a text wrap around the irregular photo?

Please I don't need a fish I need one learn me hunting, Also I looked at all the answers, about this question on StackExchange, so would  you give us a new answer.Please


I wanted to reinstall the APT Tool, so I uninstalled it, and then I realized that it probably would've been better if I just deleted the /etc/apt directory. Is there any way that I can fix my screw-up?  My Ubuntu version is 18.04.2 LTS and the output of ls /etc/apt was   root@user-OptiPlex-755:~# ls /etc/apt  ls: cannot access '/etc/apt': No such file or directory   UPDATE: I have re-installed apt, however, this is my output:  root@user-OptiPlex-755:~# sudo apt install --reinstall apt-utils ubuntu-minimal ubuntu-release-upgrader-gtk ubuntu-desktop update-manager update-notifier update-notifier-common Reading package lists... Done Building dependency tree        Reading state information... Done Package update-manager is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: ubuntu-release-upgrader-core update-manager-core  Package update-notifier-common is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  Package update-notifier is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: update-notifier-common  Package apt-utils is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: apt  Package ubuntu-release-upgrader-gtk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'apt-utils' has no installation candidate E: Unable to locate package ubuntu-minimal E: Package 'ubuntu-release-upgrader-gtk' has no installation candidate E: Unable to locate package ubuntu-desktop E: Package 'update-manager' has no installation candidate E: Package 'update-notifier' has no installation candidate E: Package 'update-notifier-common' has no installation candidate`


The spell Shape Water lets a caster animate some water.  While the effect is limited to 'simple shapes', lasts an hour, and acts according to your direction, nearly nothing else about the effect is specified.  I want to know how the animated water option of Shape Water works and what it is capable of, for example:  Anna the Wizard casts Shape Water animating the water in a 5' hole excavated via Mold Earth.  She forms the water into the crude shape of a miniature horse, and attempts to put a miniature saddle on it.  What happens?  Her weasel familiar attempts to mount the water-horse.  What happens?  She casts Find Familiar and changes her weasel familiar into a fish, which attempts to swim in the 'horse'.  What happens?  The 'horse' gallops away.  How fast can it go?  Does the fish go with it?  Anna casts Shape Water a second time on a second hole, this time animating the water into a 20' radius hollow sphere a quarter-inch thick (the volume ).  What happens? Anna climbs to the top of a 20' tall A-frame ladder and mentally directs the sphere to roll over her so that she is at the center.  What happens? Her buddy Bartholemew wants to throw an overripe tomato at her from outside of the sphere (Don't worry, Anna prepared featherfall today).  Does she have cover?  If so how much?  If it is total cover, does that stop Bob from trying to throw the tomato?  Anna then tells the sphere to go knock on the door of Cardamon the Cultist, who lives next door to her in a town 2.5 miles away, and then to find and roll over the unprotected flames she expects Cardamon's kids will have left somewhere in their back yard, and then to track down a copy of the Book of Exalted Deeds and bring it back to her.  How much of this can the sphere do?  Anna dismisses her familiar and then the galloping water-horse before casting Shape Water yet another time, on a third hole, this time forming the water into a comically large mallet.  She has the mallet spin up into the air and then fall down on practice dummy.  Does the practice dummy take any damage?  Is it moved?  Is it wet?  Later, she has the mallet fly around bonking some enemies on the head.  What happens?  In general, this spell (and to a lesser extent Control Flames) is often extremely problematic in games I run or play in, essentially requiring the GM to come up with mountains of rulings as to how the nearly endless uses of animated water constructs work, and what they can and can't do.  The spell clearly lets you make stuff with the water and have it do stuff, but it feels like there must be a whole bunch of rules somewhere I'm missing or something.


If φ is onto and R' is a field, prove that Ker φ is a maximal ideal of R.

This is my proof.   Let Φ: R->R' be a ring homomorphismm. Then R/KerΦ is isomorphic to Φ(R). Since Φ(R) is onto and R' is a field, then R/KerΦ is also a field. Let R be a commutative ring with unity. Since R/KerΦ is a field, then kerΦ is a maximal ideal of R.   Any comment on my proof? Thank you.   in this question, its not stated that R is a commutative ring while the ones posted here has R as a commutative ring.


Getting XML for xmlpullparser with AsyncTask

I want to download XML file from some URL and use it like input for my XMLPullParser.  So I wrote AsyncTask for downloading XML and call it in my code, but I have got NullPointerException:  java.lang.RuntimeException: Unable to start activity java.lang.NullPointerException: Attempt to invoke interface method 'void org.xmlpull.v1.XmlPullParser.setInput(java.io.InputStream, java.lang.String)' on a null object reference  Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void org.xmlpull.v1.XmlPullParser.setInput(java.io.InputStream, java.lang.String)' on a null object reference   Here starts my Activity and AsynTask:  public class Parsing extends AppCompatActivity {     private final static String url = "http://validURL";     InputStream parserInput;     XmlPullParser parser;      protected void onCreate(Bundle savedInstanceState) { ...         try {             parserInput = new GetXML(this).execute(url).get();             parser.setInput(parserInput,null);         } catch (ExecutionException e) {             e.printStackTrace();         } catch (InterruptedException e) {             e.printStackTrace();         } catch (XmlPullParserException e) {             e.printStackTrace();         } ... }     class GetXML extends AsyncTask<String, Void, InputStream> {         private Parsing activity;         private String url;         private ProgressDialog pDialog;          public GetXML(Parsing activity/*, String url*/) {             this.activity = activity; //            this.url = url;         }          @Override         protected void onPreExecute() {             super.onPreExecute();             pDialog = new ProgressDialog(activity);             pDialog.setTitle("Getting XML");             pDialog.setMessage("Loading...");             pDialog.show();         }          @Override         protected InputStream doInBackground(String... params) {             try {                 URL url = new URL(this.url);                 HttpURLConnection connection = (HttpURLConnection) url.openConnection();                 connection.setReadTimeout(10000 /* milliseconds */);                 connection.setConnectTimeout(15000 /* milliseconds */);                 connection.setRequestMethod("GET");                 connection.setDoInput(true);                 connection.connect();                 InputStream stream = connection.getInputStream();                  stream.close();                 return stream;              } catch (Exception e) {                 e.printStackTrace();                 Log.e("AsyncTask", "exception");                 return null;             }         }          @Override         protected void onPostExecute(InputStream result) {             pDialog.dismiss();         }     }   }   What is wrong in my code?  Why I am getting NullPointer exception instead of loading xml and setting it like input data for XMLPullParser?  UPD:  XML is big - about 6-8Mb.  So according to:   I should use ... = null; where I have not initialize object? Or I shouldn't use it?  UPD 2:  after initializing InputStream parserInput = null; I am getting the same error.


How do I download old unsupported packages such as Kernel headers?

I am using the now unsupported Jaunty.  However, I'm also running an older unsupported kernel which I wish to programme.  i'm trying to make new system calls in kernel 2.6.21 and one of the new system calls use 'sys_write' function, but to use this function, i realized that i must install kernel header file according to 2.6.21 version.  i tried "apt-get install linux-headers-'uname -r' ", "apt-cache search linux-headers-$(uname -r)"  but i can't find anything..  #include <linux/kernel.h> #include <linux/init.h> #include <linux/module.h> #include <linux/syscalls.h> #include <linux/fcntl.h> #include <asm/uaccess.h>   additionally, above header files is what i want to.  how can i get the kernel header file for something that is now unsupported and not in a current repository?


If $g(x)$ is my density function, then $g(x_0)$ is simply $P(X=x_0)$?

If $X$ is a continuous random variable with density $g(x)$, can I say that $g(x_0)$ is the probability that $X$ is equal to $x_0$


Short story: rocket fuel which oxidizes iron destroys life on earth

I'm looking for the title of a short science fiction story, probably published in a Hugo winner collection 30 years ago. In the story, scientists have developed an extremely efficient rocket fuel that has one dangerous side-effect: it oxidizes iron. A man takes off in a rocket powered by this fuel but returns to find the earth completely devoid of life. His subsequent investigation reveals that a single drop of the fuel began a domino effect, as the substance oxidized all iron it came into contact with. In the end, the man is dying.  He drags himself to the ocean, believing that if he can get his living cells into the water they will restart the primordial soup.


Is an Ubuntu installation through untrusted DNS secure?

Suppose I have a trusted ISO Ubuntu 18.04 image on a USB stick. I have a brand new notebook and boot it from the USB stick. The notebook is connected through Wi-Fi with an unknown or untrusted internet provider ( suppose I am in a Wi-Fi Caffé), so I cannot trust dynamic DNS I got through DHCP.  AFAIK, when installing and upgrading packages, secure apt is used, so downloaded packages are signed and their signatures are checked by the public keys previously loaded in the ISO image.  I conclude that under this situation the installation is secure, regardless of the reliability of the DNS you are using.    Are my assumptions true?    Note: Although this question has been marked as a duplicate one of  , it is slightly different because it has to do more with a brand new installation than with upgrading packages of an installed system, and my question is originally concerned with DNS reliability instead of HTTP vs HTTPS protocol. Nevertheless, as fas as both cases use apt in a secure way, relying on public key infrastructure, the answer for both of them is the same.


How to catch all special characters during string matching?

Is there any way to be able to catch all exceptions when doing string matching? For example if I have a string,  print("red" =="red" ) # evaluates to True   However,  print("Rεժ" == "red") # evaluates to False   What I would like is to be able to catch all the special cases such as the following  print("Rεժ" == "red") print("RêÐ" == "red")   to be evaluated to be True. The use-case for this is to be able to have some sort of text filtering to be able to catch all the words "red".


If $f:\mathbb R\to \mathbb N$ is continuous, then it's constant.

I have to prove that if $f:\mathbb R\to \mathbb N$ is continuous, then it's constant. Th result looks intuitive, but I can't prove it. I try by contradiction : suppose there is $x,y\in\mathbb R$ s.t. $f(x)\neq f(y)$. So in somehow $|f(x)-f(y)|\geq 1$, and thus, using the $\varepsilon -\delta $ definition with $\varepsilon <1$ I tried to get a contradiction, but since there is no reason to have $|x-y|\leq \delta $, I couldn't find a way to write it properly. Can someone give hint ?


How do I prove that $\sum\limits_{r=0}^k \binom{m}{r}\binom{n}{k-r} = \binom{m+n}{k}$

I have tried the following: Expanding the coefficients and i end up with something like this: $\sum\limits_{r=0}^k \binom{m}{r}\binom{n}{k-r} = \frac{m!}{(m-r)!r!} \frac{n!}{(n-k+r)!(k-r)!}$ and then expand the sum which does not seem to be very useful. I have also been thinking about use the Pascal's triangle in my proof but i haven't figured out how to do it in a way that does not look so sloppy. Any tips will be appreciated.


Repeated "to" in "to whom something is done to"?

Is there a rule for this? For example, is it correct to say     To whom will the package be delivered?   or does it have to be     To whom will the package be delivered to?   I'm sorry if this is a duplicate, I didn't know how to properly search for this construction.


able to choose reward existing answer option even though there are no existing answers

I started a bounty just now on . The "Reward existing answer" reason was visible so I chose that option and the system let me use it even though there are no existing answers (AnswerCount=0).


Why are some words combined into a single word while others stay as two words?

Examples:   Anyone Anything Anytime Anywhere Everyone Everything  Every time Everywhere No one Nothing No time Nowhere Someone Something Sometime Somewhere   Why is there a discrepancy? Is there any rule for determining when to use a single word vs. two words?


I would like to have a minor modification of some standard AMS-environment and realize it as a new one. The problem is that not all the environments allow this procedure. Say, even the mere duplication  \newenvironment{myEnv}{\begin{gather}}{\end{gather}}   does not work. TeX-system produces the error like  ! LaTeX Error: \begin{gather} on input line 126 ended by \end{myEnv}.   However, replacing above gather -> equation or some other (good) environmens works Ok. I've faced the problem in MiKTeX 2.3 and 2.9. Is this a bug or a feature? Ideally, I would like to construct modifications like  \newenvironment{myGather}{\begin{gather} ... my tuning ...}{\end{gather}}   Investigation inside the amsmath.sty did not help me. Who can? Should I fix a built-in gather-environment in this situation?


I'm looking to upgrade from a Nexus 7 to a 10" tablet. I know that Google stores my purchase information so that I won't have to pay for any already purchased games again.   But I was wondering if it's possible to transfer my locally stored game data to the new device so that I can continue without loss of progress. If so, how is it done?


I'm finishing my PhD and looking for postdoc jobs. I've published a decent number of papers (and also have a fair number of citations), and want to emphasize this on my CV.  Should I actually state my h-index on my CV? If so, is Google Scholar the easiest/best way to compute this?  2014.03.12 EDIT: Thanks for the advice. I had originally planned to put my h-index at the head of my list of publications (as a clickable link to my Google Scholar profile).  Based on the advice from many of you I will just omit this altogether for now. My scholar profile is easy to find (for potential PIs who care about such metrics), and not explicitly stating my h-index myself avoids any negative connotations among those who object to the h-index or calculating it via Google Scholar (e.g. Google includes self-citations, arXiv/non peer-reviewed papers etc).


How does Mercy's damage buff interact with Genji's Deflect ability?

When Genji uses his Deflect ability on an incoming projectile, what happens in the following situations?   If Mercy was buffing the player who originally fired the projectile, does it retain the damage bonus after Genji deflects it? If Mercy is buffing Genji at the time he reflects the projectile, does it gain the damage bonus?


I cant find specific element using jQuery

I have this part of code in my html:

<button id="id_00002135.cream-multi_heatmap_button">heatmap</button>

<button id="id_00001392.mustard-blue_heatmap_button">heatmap</button>

<button id="id_00003453.purple_heatmap_button">heatmap</button>

<button id="id_00003435.cream-pink_heatmap_button">heatmap</button>

<button id="id_00002158.purple_heatmap_button">heatmap</button>

<button id="id_00000562.black-pink_heatmap_button">heatmap</button>

<button id="id_00000122.grey-red_heatmap_button">heatmap</button>

<button id="id_00004865.black-purple_heatmap_button">heatmap</button>

<button id="id_00006450.taupe-navy_heatmap_button">heatmap</button>

<button id="id_00003229.black-red_heatmap_button">heatmap</button>

  but when I try to get the jquery element of 'a' elements jQuery can't seems to find it. When I run the code: $("#id_00000122.grey-red_image")  this is the output:  What am I doing wrong?


Is it possible to run a fan without electricity? like the one show on this website?


Escape a UTF8 string's control characters

I currently have a UTF8 string that contains nulls, backspaces, etc. inside the string.  I am trying to escape the string so that control characters are visible in their escaped form.  Basically, the input/output I want looks like this:  String inString = "String\u0000 with\u0008 stuff \u000a in it"; String outString = "String\\0 with\\b stuff \\n in it";   I don't want to write a regex searching for all the escape characters, but I couldn't seem to find any inbuilt functions to do this.  Is regex my only option?  Thanks!


In order to obtain the equations of the motion of a rigid body, I need the applied torque about the center of mass $T_\mathrm{c}$. However, I have a torque that is applied off center of mass at the point $r_\mathrm{s}$ of the rigid body and I want to replace it with a torque about the center of mass $T_c$ and a force.   Suppose the rigid body is composed of $p$ particles, then  $$ T_\mathrm{s} = \sum_{i=1}^p (r_i - r_\mathrm{s}) \times F_i = \sum_{i=1}^p (r_i - r_\mathrm{c}) \times F_i + (r_\mathrm{c} - r_\mathrm{s}) \times \sum_{i=1}^p F_i $$ where $T_\mathrm{c}$ is the torque about the center of mass, $F_\mathrm{r}$ is the resultant of forces and $r_\mathrm{s} = r_\mathrm{c} + d_\mathrm{s}$. How can I determine $T_\mathrm{c}$ and $F_\mathrm{r}$? There are multiple solutions, I think, are all equivalent? For instance one can take $F_\mathrm{r} = 0$ which will make the c.o.m to stand still, while under $T_\mathrm{s}$ it is surely moving.


I am editing a document that includes sentences such as "John Doe is a Professor of English" and "Jane Doe is the Director of Public Policy." In this context, are the titles of their jobs, "Professor of English" and " Director of Public Policy," supposed to be capitalized?


Can't mount ISO file as loop device: Error: “failed to setup loop device”

sudo mkdir -p /media/cdrom cd ~ sudo mount -o loop ubuntu-* / mount: ubuntu-*: failed to setup loop device: No such file or directory


Why does NOT IN with a set containing NULL always return FALSE/NULL?

I had a query (for Postgres and Informix) with a NOT IN clause containing a subquery that in some cases returned NULL values, causing that clause (and the entire query) to fail to return anything.   What's the best way to understand this? I thought of NULL as something without a value, and therefore wasn't expecting the query to fail, but obviously that's not the correct way to think of NULL.


First of all, I apologize for posting a screenshot from Stack Overflow in Russian. If you have the same situation, you can place English version here.  My low quality queue is empty (zero items), but popup menu for low quality posts queue has red lamp.         Before removing counter from popup I have seen 0 and never clicked on the item with zero count. Now I see red - going in and here is nothing to review.  Is it behavior by (new) design or some kind of bug?  A  happened for close vote queue for another user, described on ruSO.meta. He has more items skipped during review, but lamp is red and queue is empty like in my case.  As , this has happened on  as well.


How can I remove an autostart service that is not listed in gnome-session-properties?

Today I upgraded from raring to saucy. This brought the Ubuntu One icon back to my indicator applet, which I had disabled.   So I removed the line NoDiplay=true from /etc/xdg/autostart/ubuntuone-launch.desktop.   But still Ubuntu One doesn't show up in gnome-session-properties and I can't disable it.   What gives?


Post Apocalyptic Series With Alien Species

I read this series when I was younger but cannot remember the name to save my life. I remember a species of Aliens saves humanity from the ashes of an apocalyptic nuclear fallout and in the resulting event humanity is rendered essentially sterile.   The species has three genders: male, female and ouloi. The ouloi are required for humanity to procreate.   That is all I remember of it.


How can I build a jar (with all it's dependencies) in maven?

I have a custom appliction, build in maven, with dependencies (more custom modules, and some other things like spring, apache commons and log4j).  How can I build an executable jar containing my application and all of it's dependencies? (I.e. what do I need to put in my pom.xml)  I am aware that it will be several megabytes in size, but I am looking for simplicity in building and executing my application.  And I would like to build via standard mvn clean install command.


Condensed word for mysterious and beautiful universe

I was writing my college essay, which is about how I discovered mathematics and how I developed it as a passion.  At one point I constructed the following sentence:     ...Math was my Narnia.   What I wanted to say is "Math was a beautiful subject, but I didn't discover that soon because it was hidden by some factors."(these some factors are discussed in the other parts of the essay).  I thought "Narnia" was a good word at first. But when I think more about it, I happened to not like it. Can anyone suggest a word that can meet this goal ?


Is there a way to discover when my Android OS was installed? In other word: what is the age of the SO running in my phone (since the last FW upgrade)?  I have root access and I prefer not installing any extra apps to this task (altough, if it is the only way, I may install one). I already have a Terminal Emulator App.  I looked into "Settings -> About phone" and there is a counter since the last reboot, which is not what I want.  I am running Android 4.0.4 on a Sony Xperia P.


How many non-negative integer solutions does the equation $3x + y + z = 24$ have?

If the equation is $x + y + z = 24$ then it is solvable with stars and bars theorem.  But what to do if it is $3x + y + z = 24$?


I'm trying to sanitize a date sent from jquery's datepicker before inserting it into a mysql database but I can't seem to get it to work. Can anyone tell me what I'm doing wrong? Thanks.  //Pull date from datepicker  $date=$_POST['date'];  //Convert to date for mysql insertion $mydate = date ("Y-m-d", strtotime($date));  $clean_date = preg_replace("([^0-9/])", "",$mydate);


Number of subspaces of space over $\mathbb{F}_p$

Let $p$ be a prime number and $V$ an $n$-dimensional space over $\mathbb{F}_p$. For $r \le n,r \in \mathbb{N}$ find the number of $r$-dimensional subspaces of $V$.  I suspect we can choose an $r$-dimensional subspace in $\binom{n}{r}$ ways. Is this reasoning correct?


Tikzpicture also scaling "dashed", "dotted", etc., patterns

I was wondering why predefined patterns like dashed, dotted, thick, etc.,  do not scaled when scaling the complete tikzpicture environment.   Minimal Example:  \documentclass{beamer}  \usepackage{tikz}   \begin{document}      \begin{figure}         \begin{tikzpicture}[transform shape, scale=.3]             \draw[very thick, dashed] (0,0) -- (10, 0);         \end{tikzpicture}     \end{figure}      \begin{figure}         \begin{tikzpicture}             \draw[very thick, dashed] (0,0) -- (10, 0);         \end{tikzpicture}     \end{figure}  \end{document}


Is it possible to schedule my laptop to mute and unmute at a specific time?

I always used to wake up to my favorite radio station on my alarm clock. However, I have moved and can no longer get that radio station over the air. To solve this problem, I would like to stream the station on my laptop, but have it muted overnight, then set it to unmute at a specific time in the morning, so that it will act as an alarm clock. Is there a way to schedule my laptop (Windows 7 64-bit) to unmute at a specific time?


I got a keyboard (, pictured below) which I'm very happy with. Unfortunately, the manufacturer has changed the button for right-click for a FN key.  Is there any program to remap the FN key to something else?


How to find integer solutions of $x^2 + by = c$

I can find lots of examples for $ax + by = c$, but how do I get started with the $\text{^2}$ there?  My specific equation is; $2x^2 - 154y = 116$  I thought I would reduce and substitute to get a familiar form; $s - 77t = 58$  which I realized has a trivial solution; $(s_0,t_0) = (58,0)$  I'm not particularly sure where to go from here, or even if this is the right path to take.


Is there a way to have an encrypted folder on macOS with fast read/write operations?

I've tried and used Disk Utility to create an encrypted image, so I can store data in it securely. However, when I tried to write files to this image, the write operation was too slow (to write ~50 GB of data, it would take 1 day as estimated).  My question: is there a robust alternative that allows creating an encrypted space in the hard disk to store data with fast read/write operations?  Device :  Apple MacBook Pro (15-inch, Mid 2012)   Processor : 2.6 GHz Intel Core i7 Memory : 8 GB 1600 MHz DDR3 Hard drive : APPLE HDD HTS547575A9E384   Rotational Rate:  5400 Partition Map Type:   GPT (GUID Partition Table)  OS version : 10.12.1   I am transferring data to an encrypted image on the hard drive. Its encryption type is 128-bit AES.  Source of data  The external hard drive that I am transferring data from : StoreJet Transcend Media.   Partition Map Type : GPT (GUID Partition Table)  Encrypted. Encryption Type : AES-XTS


Has there been an originally Sith-trained individual who converted into a Jedi?

In the movies we have seen Dooku and Anakin, the two originally trained within the Jedi Order becoming Sith Lords. Even though Vader eventually reverted back into being a Jedi, he was originally a Jedi before becoming a Sith Lord. So, I would like to know if there has been the other way around: a Sith who were given training in the Force by the Sith, and then converted into the Jedi (either only accepting its teachings or also formally joining the Order)


Dual boot windows 8 - ubuntu ; upgrading to windows 10

I decided to upgrade my windows 8 to windows 10. During the installation process, the computer rebooted and I got into the grub console, without having my usual menu.  I was able to proceed to the installation and use windows by choosing which hdd to boot on on my bios, but after the installation I can't boot into ubuntu again. Same issue with a grub shell.  On the grub shell, I tried to use ls (hdx,y)/ to display the information about the filesystems. Only one or two were readable, while the other always responded as unknown filesystem.  I booted on a boot-repair live disc, and was able to use the boot-repair tool, but it didn't fix anything and I still have the same issue.  Here is the boot info :   What should I do to repair my grub install and be able to boot on linux?  EDIT: using fsck I got the following result :  lubuntu@lubuntu:~$ sudo e2fsck -C0 -p -f -v /dev/sdb6 e2fsck: Bad magic number in super-block while trying to open /dev/sdb6 /dev/sdb6:  The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem.  If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:     e2fsck -b 8193 <device>  or     e2fsck -b 32768 <device>  lubuntu@lubuntu:~$    I believe /dev/sdb6 was the partition where my system was installed while /dev/sdb2 was where I had my /boot.  I'm unable to mount /dev/sdb6 on a linux livecd.


How do I make a h1 and h3 only as wide as the text

.main-heading {   display: block;   font-family: "Josefin-Sans", sans-serif;   font-size: 70.6px;   font-weight: bold;   text-align: center;   color: #ba9a45; }  .subheading {   font-family: "Cardo", sans-serif;   font-size: 23.5px;   text-align: center;   color: #fff;   padding-top: 30px; }

ATLANTIC

CASINO

FEED YOUR DESIRES

    I seem to not be able to make my h1 and h3 background only as wide as the text and not span the whole width of the line. How can I reduce the background of the h1 and h3 so it only spans to the end of the text? -- I've managed to resolve my issue by taking into consideration all the advice given by users below. Have a look at my revised code which works:

ATLANTIC

CASINO

FEED YOUR DESIRES

   .main-heading{   display: block;   margin-left: auto;   margin-right: auto;   width: max-content;   font-family: "Josefin-Sans", sans-serif;   font-size: 70.6px;   font-weight: bold;   color: #ba9a45; }  .subheading{   display: block;   margin-left: auto;   margin-right: auto;   width: max-content;   font-family: "Cardo", sans-serif;   font-size: 23.5px;   color: #fff;   padding-top: 30px; }


How is it possible for something to be less then nothing?

What is the ontological state of negative numbers?  Is it a human invention or a does it live with reality?


Do multi-use keys get discarded when finished with?

As with many resident evil games, you sometimes needs to collect certain keys to open certain doors, and resident evil 7 has plenty of these around.  Some keys are clearly single use, and get left in the lock in which you use them. However, there are a number of keys that can be used on multiple doors. For example, the Scorpion Key.  I am concerned that I might end up carrying these around needlessly and using up valuable inventory space, so...  Do these multi-use keys get discarded when you use them on all the doors they apply to? Or do you get a warning saying the key is no longer needed? (like previous games are known to do)


sudo apt-get install libgl1-mesa-dri Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  colord : Depends: libsane (>= 1.0.24) E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  Link to main problem


How to compare two values in generic method?

I need to create generic method which returns greater of two params. Operators > and < don't work. Here is signature of my method:  public static T Greater<T>(ref T a, ref T b) {     if (a > b)      {        return a;     }     else      {        return b;     } }   I'm quite rookie in C# and totally new in generic types.


How would I be able to create a grill of sorts found on the front of some computer cases such as this one


Story About Carrying Buckets of Oxygen (Old Time Radio)

When I was in college, in a small town, there was a radio station in town that would play old time radio shows.  One night I heard one that has stuck in my mind ever since.  While I have a lot of OTR (old time radio) shows in files, most files have air dates and series names, but not show titles, so I'm still working my way through them.  This story had a small family living in an apartment I think they called "The Nest."  Earth was bitter cold by then, cold enough for oxygen to freeze.  (I think that was because the Sun had gone out or, more likely, Earth had left its orbit.)  This family didn't have anything fancy, no hermetically sealed walls or doors, just a LOT of blankets hung all over.  Instead of space suits, they had home made suits they could use for a short while (I think - maybe they had space suits).  They survived by going out, periodically, and scooping up "snow crystals" of frozen oxygen and bringing a bucket full of oxygen like that back to the nest where they could thaw it by the fire (which they had to keep burning continuously for warmth).  I'm working my way through these OTR shows, but I haven't found it yet.  It's also possible this was based on a short story, since a lot of the OTR shows were based on stories in print at the time.  Can anyone tell me the name of the story or who wrote it or anything else to identify it?


Are sign in forms better in the left, right, or center? and why?

I'm seeing a few sites with a sign in form on the far left with a billboard of info on the right (Salesforce, Mailchimp for example). Others like facebook have the sign in on the right. Most are centered. Is there any data on what performs the best?


how can, I make this hole with array modifier?

How can I make this hole shape like this image?


Can't upgrade 11.04: flashplugin-nonfree: Package is in very bad, inconsistent state

I can't upgrade from 11.04. I've disabled all apt sources, but still I get:    The only option I am capable doing is to format and reinstall whole system, which I don't prefer as I have tuned a lot of apps settings, etc.  How can I fix this?  Update: After restart, when trying to update all packages, I get this error:     installArchives() failed:    dpkg: error processing flashplugin-nonfree (--remove):    Package is in very bad, inconsistent state - before    trying to remove rather reinstall it.   Reinstalling it results in the same error.  Update:  I found a solution at  :  sudo rm /var/lib/dpkg/info/flashplugin-nonfree.prerm  sudo dpkg --remove --force-remove-reinstreq flashplugin-nonfree sudo dpkg --purge --force-remove-reinstreq flashplugin-nonfree   But after doing that, the result is still the same.  Update:  Should I do what I found?    for pkg in `dpkg --get-selections | awk '$2=="install"{print $1}'`;   do sudo apt-get install -y --reinstall $pkg; done


Regex for number extraction not working in python

I have this   But running it in the python2.7 it gives None, why is that?  >>> fo = re.match('\.(\d+)\.', '/players/player.34360.html') >>> type(fo) <type 'NoneType'> >>>