Broken packages and unmet dependency installation QGIS, PostgreSQL and postgis Ubuntu 14.04

I am aware that this could be a duplicate topic but I am struggling for a several days.  I upgraded QGIS from 2.8 to 2.18 and after that everything get broken. I couldn't use PostGIS extension on pgadmin3.  I figured out that there were a conflict with a libgdal1h: if installed, it removes other libraries used by PostGIS and vice versa.   I tried several tutorial about how to install QGIS, like for example:       I tried every suggestion reported on line, like for example:          Always, the reply of sudo apt-get install qgis python-qgis is:   The following packages have unmet dependencies:   python-qgis : Depends: python-qt4-sql but it is not installable                Depends: python-qgis-common (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed                Depends: python-psycopg2 but it is not installable                Depends: python-qscintilla2 but it is not installable                Depends: python-jinja2 but it is not installable                Depends: python-markupsafe but it is not installable                Depends: python-pygments but it is not installable                Depends: python-yaml but it is not installable                Depends: python-pyspatialite but it is not installable                Depends: libqgispython2.14.8 but it is not going to be installed                Depends: libqgis-analysis2.14.8 but it is not going to be installed                Depends: libqgis-core2.14.8 but it is not going to be installed                Depends: libqgis-gui2.14.8 but it is not going to be installed                Depends: libqgis-networkanalysis2.14.8 but it is not going to be installed                Depends: libqgis-server2.14.8 but it is not going to be installed                Recommends: liblwgeom-dev but it is not installable  qgis : Depends: gdal-abi-2-1-0 but it is not installable         Depends: libgdal20 (>= 2.0.1) but it is not installable         Depends: libgeos-c1v5 (>= 3.4.2) but it is not installable         Depends: libqgis-analysis2.14.8 but it is not going to be installed         Depends: libqgis-app2.14.8 but it is not going to be installed         Depends: libqgis-core2.14.8 but it is not going to be installed         Depends: libqgis-gui2.14.8 but it is not going to be installed         Depends: libqgis-networkanalysis2.14.8 but it is not going to be installed         Depends: qgis-providers (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed         Depends: qgis-common (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed         Recommends: qgis-plugin-globe but it is not going to be installed         Recommends: qgis-plugin-grass but it is not going to be installed         Recommends: qgis-provider-grass but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I have removed all the packages and the libraries so I do not have any library related to postgis, postgres and QGIS with the Synaptic Package Manager and all with the commands:  sudo apt-get purge qgis sudo apt-get autoremove qgis sudo apt-get --purge remove qgis sudo apt-get update   But the problem is not solved yet.  I tried to remove the repo of ubuntugis and/or debian on the file /etc/apt/sources.list.  Nothing.   And I do not understand why, using this source  I still have issues about the dipendences.   What should I do?   I am planning to format my laptop hoping this will help me with broken packages.. for the broken packages, I have already tried:  sudo apt-get update –fix-missing sudo apt-get install -f   but nothing fixed.


Need to add "Boot from USB" to UEFI Boot Priority order

I'm trying to replace Win8 with Ubuntu on a new Lenovo IdeaPad S10  with 4gb mem,500gb h/d.  Drilling down, I disable "Secure Boot" on the bios boot tab, but the  only 2 options under UEFI Boot priority order are Windows Boot Mgr  and EFI Network.  No "Boot from USB" option.  Someone here kindly suggested a link which reported they got added options by changing  "Secure Boot Mode" under the "Security" tab to "Legacy" but on my PC,  that option isn't selectable, ie, the selection cursor just bypasses  that selection. The only 2 selectable options are "Reset to Setup Mode"  and "Restore Factory Keys".  Anyone know who/where the usual suspects are hiding? How to flush them out?


Orbiting a specific point - Orbiting Camera

How would I create a camera that with the mouse, it allows you to orbit around a specifc position, with the camera always facing that point? I would also like it to be able to always be at a constant distance from the point, and be able to orbit around it in every direction.   Any ideas?


Realistically-looking feature film - menacing microscopic life-forms discovered during Apollo-like moon landing

I am trying to locate a movie I watched around 2012, released (I think) about 4-6 years earlier. It was about an Apollo-like moon landing, where the astronauts bumped upon an unknown till then microscopic life form (think virus/bacteria or something) and somehow got contaminated.  Here are all the details I can remember (many thanks to the Meta thread ):   The cinematograpy was VERY realistic - B/W footage as the original moon landing transmissions, long steady-camera shots with minimal cuts etc; in fact, if you gave the film random glimpses instead of watching, you could have easily been fooled to think that you are watching an actual moon landing documentary.  No exotic/unrealistic technology - just good old 60s-NASA-looking stuff Only 3 actors of an Apollo-like crew - 2 in the moon lander on the surface and one in the command module in moon orbit Somehow, the Russians were already present on the moon; the crew finds a Russian cosmonaut (at the bottom of a crater?), dead presumably from the same reason (contamination)   One of the two astronauts on the moon dies due to the contamination; I think it is the one inside the lander, leaving his companion outside The survivor (now locked out of the lander) searches and finds the abandoned Russian lander, and attempts to use it to return to the command module in orbit Earth mission control intervenes, trying to persuade the crew member in orbit not to accept back the incoming (Russian) lander, fearing that the surviving astronaut is also contaminated and will bring the thing back to Earth. Crew member refuses to comply, and Earth threats that they will not send the necessary parameters for re-entry. Finally, in the attempt for orbital rendez-vouz (remember, the lander coming up is Russian), the lander crashes on the command module and - THE END The movie had a website, shown during the end credits. Some googling back then revealed that the creators had received support from NASA during preparation and filming; NASA realized only later what the film was actually about, and they were not at all happy.   That's all I remember; happy to answer clarifying questions if I can (except of course how they did get contaminated through their space suits)...


Auto_Increment After deleted data from the table

How can I reset the auto_increment of a field? I want it to start counting from 1 again after I delete all the data.


Find a function $f(x)$ such that:  $$f(x)f(1/x)=f(x)+f(1/x)$$  with $f(4)=65$.  I have tried to let $f(x)$ be a general polynomial: $$a_0+a_1x+a_2x^2+\ldots a_nx^n$$  which leaves $f(1/x)$ as:  $$a_0+a_1{1\over x}+a_2{1\over x^2}+\ldots + a_n{1\over x^n}$$  On comparing the coefficients of both sides, we see that:  $$2a_0=(a_0)^2+(a_1)^2+(a_2)^2+\ldots+(a_n)^2$$  And  $$a_1=(a_0a_1)+(a_1a_2)+ \ldots +(a_{n-1}a_n)$$  I don't know how to proceed further. I know I need to compare coefficients and come to a conclusion based on their values, but I don't see what to do next.


How can I get a blurred background with a kit lens?

How can I take a image with blur background? I am a new photographer but its no my profession, its my passion. If someone know about this then tell me.


What will I see if launch a thing into a black hole?

Suppose that I launch a thing into a black hole from a secure distance, this black hole is secure at 2 meters and is floating over my yard, doesn't matter.  What will I see?  Will I see that the thing increases their speed and falls quickly into the hole?  Or will I see that the thing decreases their speed and falls slowly, every time more slowly?


Refreshing error pages lead to error pages even after the error is fixed

During today's maintenance I've noticed an annoying side effect to certain error pages. I happened to end up on  when trying to navigate to The Workplace. An interesting side effect of that error scheme is that if you refresh that page, even after the error no longer occurs, you'll continue getting the error page, as if the site was still down. It's because the error redirects you to a URL that will always show you the error.  Since it's an aspx error not a "normal" error like the 404 pages I'm not sure it can be changed, but ideally if you hit an error page you shouldn't be "stuck" on that error page. The error was fleeting, but the error URL scheme isn't.


What is the difference between Hibernate and Suspend

Logout, Restart and Shutdown are all self explanatory to me.   What are the differences between Suspend and Hibernate on the shutdown menu?


How can you identify if a Shimano rear derailleur is medium or long cage?

I have a 2013 Shimano XT rear derailleur. It is part of a 2x10 drivetrain. How can I find out if it is a medium or a long cage one? The picture below shows the derailleur.


How could we prove that this inequality holds      $$ \left(1+\frac{1}{n+1}\right)^{n+1} \gt \left(1+\frac{1}{n} \right)^{n} $$   where $n \in \mathbb{N}$, I think we could use the AM-GM inequality for this but not getting how?


How to \printbibliography of one author, then of another author?

Is it possible to \print(the whole)bibliography of one author and then further in the text to \print(the whole)bibliography of another author, and then a third author, etc. The entries that have at the same time the first and the second author should be printed once for each author. The authors might be cited at any rank in the author list. Different reference types (article, inproceedings, patent, etc.) are present in the bib file. Here is a minimal example borrowed and adapted from  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib}  @Article{a,   date =     2001,   author =   {Kennedy, J. and Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{b,   date =     2003,   author =   {Author, Amy and Kennedy, J. and Kennedy, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{c,   date =     2005,   author =   {Kennedy, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{d,   date =     2007,   author =   {Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{e,   date =     2009,   author =   {Biden, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{f,   date =     2011,   author =   {Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{g,   date =     2013,   author =   {Biden, J. and Clinton, B.},   title =    {Title},   booktitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @INPROCEEDINGS{h,   date =     2001,   author =   {Kennedy, J. and Clinton, B.},   title =    {Inproc-Title},   booktitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @INPROCEEDINGS{i,   date =     2003,   author =   {Author, Amy and Kennedy, J. and Kennedy, J.},   title =    {Inproc-Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  \end{filecontents*}   \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib}  \begin{document} \nocite{*} \end{document}


How do I display pager using EntityFieldQuery for fetch results? I can't find complete example.  I am doing simmilar to:   But I miss part to output simple pagination links (1,2,3... for every next page).


By analogy with the sun, whose light is apparently reaching us in 8 minutes, it means that we are only viewing the sun 8 minutes ago when we look up at it. However, what if we were eventually able to build powerful machines that could view light from say hundreds/thousands of years ago, wouldn't that mean we would be able to observe what anyone did at any given time (given that we know their rough whereabouts at that time, e.g. where they lived). I think this is more a question of: Do things we can observe die out immediately, or travel as light, or get stored somewhere?  (Sorry, I know next to nothing about Physics so please cut me some slack if I said anything naive/silly)


CSS bottom: 0; position: absolute; parent position: relative; not working

At  I have the navigation menu .slider-btm underneath the head image ("Branding, Print, Websites & Movies, Displays & Signage")  with:  .slider-btm {     position: absolute;     width: 100%;     bottom: 0;     height: 60px;     z-index: 10; }   and parent:  <div class="slider-outer-wrapper" style="position:relative">   yet the navigation menu .slider-btm is not at the bottom of the screen. I see the following:    I wish to have this menu at the bottom like the menu at the bottom of   Help appreciated.


Can one use cooked egg to make fried eggs (sunny side up)?

As a kid, I never really liked cooked eggs, but fried ones. Naturally, I've always wondered if cooked eggs could be reused to make fried eggs with sunny side up instead of using new raw ones. I thought it was probably a really stupid question, but then I've found these related questions:       Now, obviously, it seems a very tall order to get runny yolk if it's already cooked, but what is the closest thing we can get? How close can we get to dipping bread into yolk?


How can I speed up data transfer between local computers on a WiFi network?

I have a router with ADSL Pentagram Cerberus 6331-42. Is it normal to have transfer speeds between two computers of max 1MB/s (not 1 Mbit)? How can I set my router up to make it faster at transferring data in my local WiFi network?  I have a PC and a laptop. Both are running Windows 7. I don't use a firewall. I've set the network area up correctly; I can see other computers.  Is it possible to make the router faster by changing its values? I don't use secure encryption such as WPA or WEP; only MAC filtering.  My values in Interface Setup > Wireless are:       Here are my thoughts after few years I've published this topic:    use 5Ghz bandwidth if possible  use range extender if Your router is too far  try wifi analyzer app for mobile phone to check what channel is the less used


Is there any max. temperature that air on Earth could reach, assuming that solar radiation is standard and the average temperature on Earth is 14.6 like today? I mean, is there any chance that the temperature on Earth would reach in some place 80 C today? And I don't mean surface temperature.


Is SO an appropriate place for comments like   God Bless SIMPLEXML God Bless you all... God bless you..... Thanks a lot and God bless. God blessed. I finally got the solution.  Thank you and God Bless! God bless groovy! :) God bless me! I found a good method: God bless scripting languages and their "language features"... ..tc,god bless u... I'd like to wish you happy painting, and God bless my friend. May god bless [person's name here] please help, much appreciated. god bless :)   Etc.


Do we stop getting reputation of 2 points from edits after crossing 2000 rep?

Earlier my edit suggestions when accepted fetched me 2 points. Now I have crossed the 2000 rep, I don't get 2 rep points on edit.  Is this normal?


The following code   \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document}     \begin{tikzpicture}         \draw[blur shadow](-2,0)circle(1);         \draw[blur shadow](0,0)rectangle(3,2);     \end{tikzpicture} \end{document}   leads to    Only XeLaTeX produces this. It is fine with LaTeX and LuaLaTeX. Any idea to fix it?


I have an american friend who tells me that this sentence:  [...] Since their absence results in a relevant market which is defined too broad, the two-sided critical loss analysis cannot be recommended ultimately for actual merger cases.   sounds more natural than this one:  [...] Since their absence results in a relevant market which is defined too broad, the two-sided critical loss analysis ultimately cannot be recommended for actual merger cases.   I'm no native English speaker, but the first one sounds weird to me. I would be very glad if I could have some more opinions on this - thanks!  Edit: I'm aware that there are (a lot) of other questions concerning the positioning of adverbs. However, since this is the last sentence in my abstract, I want the sentence to be perfect and not choose the "ultimately" at a random position. Maybe someone could explain which position would make the most sense / sounds the most natural.


Creating an arbitrary state of the quantum simple harmonic oscillator

Suppose $\mathcal{B}=\{|0\rangle, |1\rangle, |2\rangle, ... \}$ is the energy eigen-basis of a quantum simple harmonic oscillator. I want to create the state \begin{equation} |\Psi\rangle = c_{0}|0\rangle + c_{1}|1\rangle + c_{2}|2\rangle + ... \end{equation} Besides the normalization condition \begin{equation} \langle\Psi|\Psi\rangle = |c_{0}|^2+ |c_{1}|^2+ |c_{2}|^2+...=1, \end{equation} are there any other mathematical constrains on the complex amplitudes $c_0,c_1,c_2,...$?  Also, is there a protocol, perhaps from quantum optics, for creating an arbitrary $|\Psi\rangle$ as defined above?   For example, the complex amplitudes which define the state can be taken as \begin{equation} \{c_n\}=\{ \frac{1}{\sqrt{\zeta\left(3\right)}}\frac{1}{\left(1+n\right)^{3/2}} \}, \end{equation} where $\zeta\left(3\right)\approx 1.202$ is given by the . In this case, the normalization condition holds. Also, we get a nice finite value for the mean energy \begin{equation} \langle\Psi|\hat{n}|\Psi\rangle \approx0.019, \end{equation} where $\hat{n}=\hat{a}^{\dagger}\hat{a}$ is the number operator (i.e. the Hermitian operator corresponding to the eigen-basis $\mathcal{B}$). However,the variance in the energy \begin{equation} \text{Var}[\hat{n}]=\langle\Psi|\hat{n}^2|\Psi\rangle-\langle\Psi|\hat{n}|\Psi\rangle^2  \end{equation} is infinite. Can such a state exist in nature?


Is there any difference between due to and owing to? Are there some specific situations when owing to is to be used rather than due to?


Determine the Largest Number in the Infinite Sequence

Determine the largest number in the infinite sequence $1,\sqrt{2},\sqrt[3]{3},\sqrt[4]{4},....\sqrt[n]{n}$.  I found $3^{\frac{1}{3}}$ is largest. I am confused how to start the question. Please help me


How to create the following symbol? Fractional function


Uxie and Azelf Are Not Appearing in Nameless Cavern

Every time since a few days ago after I caught Mespirit, when I go to the portal in the Nameless Cavern and I press A to interact. All that happens is a short dialog sequence and nothing else. I know the requirements are along the lines of having 3 max happiness Pokemon with you in your party which I do. I have also downloaded the recent update/patch from the eShop if that helps at all. How can I make Uxie and Azelf appear in the cavern?


how to download a .csv file from a web to computer using python

I'm a stock market trader and at the end of every trading session I have some files to download from stock exchange website, how can I write a code in python or in any other language to download a file and perhaps schedule it for downloading..?


alias to make a new directory and go to it

So here I've created, or at least tried to create an alias for a command that accepts a command-line argument, makes a new directory with that name, and goes to it.  alias newfolder='mkdir $2 ; cd "$(history | tail -2 | awk '\''NR == 1'\'' | awk '\''{print $3}'\'')"'   The alias created successfully, but when I want to run the command with a command-line argument, I get this error message.  username:~/workspace (master) $ newfolder a mkdir: missing operand Try 'mkdir --help' for more information. bash: cd: newfolder='mkdir: No such file or directory


Why (in relatively non-technical terms) are Calabi-Yau manifolds favored for compactified dimensions in string theory?

I was hoping for an answer in general terms avoiding things like holonomy, Chern classes, Kahler manifolds, fibre bundles and terms of similar ilk. Simply, what are the compelling reasons for restricting the landscape to admittedly bizarre Calabi-Yau manifolds? I have  but haven't read it yet, nor, obviously,  :)


After my question is downvoted and edited will it still reach users?

Say that I have asked a question on MSE and then it is downvoted, after I edit it to form a better question will my question move up the queue of questions so that people can read it again and upvote it?


I am trying to upgrade from 15.04 to Ubuntu 16.04.01 on a Lenovo ThinkPad T410 and the upgrade has frozen while unpacking libyates 5.2.0 and the terminal screen has a microsoft EULA for configuring ttf-mscorefonts-installer which appears to require acceptance but the  button isn't really there as it is a txt doc. What to do??


how can I upgrade from version 11.04 to a newer one?

I am a new user and I am not a computer expert. I tried to follow the steps on one of the the Ubuntu support pages, but it was not helpful (page did not work). Could some one help me, please? Thanks, Ceci.


How to change Visual Studio whitespace settings?

I have whitespace characters showing in the Visual Studio code editor, and I'd like to remove them.


I am totally new to Linux so I don't know how to do anything :S I was trying to open Software Center ( to install spotify) but I always get this error message:   Please run this software with administrative rights. To do so, run this program with kdesudo.   Hope that somebody can help me with this


How can I get Soviet era arrest documents?

I saw many people having arrest and interrogation transcripts of people arrested in the 1930s in the Soviet Union.  Where can I get such documents? Are they online?


Interstellar -- Black hole manipulation?

Some things have confused me about the black hole in Interstellar. Namely:   How did Cooper ever leave the black hole once he was inside it? How was Cooper able to suspend in the tesseract? Something allowed him to decelerate.  How was the AI machine able to send Cooper messages considering messages are EM waves and a black hole's gravity is such that it will suck EM waves into the singularity?


Showing an integral domain is a field using a function?

Prove that every finite integral domain R is a field.   I am given the following hint: For an element $r\neq 0 $ decide if the function $f : R \to R $ defined by $f(s)=rs $ is injective and/or surjective.   My question is about the hint.   Firstly i am assuming they mean that $ r, s \in R $ ?   If $f$ is an injective function that would seem to imply that $f$ is simply a permutation all the elements in $R$? if $f$ is injective or surjective then it is a bijection.  lastly what does this map have to do with anything? shouldn't it be $f:R \to F $ where $F$ is a field with that many elements then show that $f$ is a homomorphism and a bijection so $R$ (our integral domain) would be isomorphic to $F$ which is the field?


Using a found spellbook as a Sorcerer-Wizard multiclass

I have a Divine Soul Sorcerer 6 (with INT 13) playing in a published adventure.   I just found a spellbook with 11 spells in it of varying levels. All are wizard spells, and some of the spells are also on the sorcerer and cleric spell lists, to which I have access.  The specific spellbook can be found in this adventure and location:      Waterdeep: Dungeon of the Mad Mage, level 1, in the bugbear area.   The specific spells are:      1st level spells (x4): , , ,   2nd level spells (x3): , ,   3rd level spells (x2): ,   4th level spells (x1:    If I were to multiclass into Wizard, what do my options become for using this spellbook?    More precisely, if I were to take 1 level in Wizard,  can I then cast the spells in this book, assuming of course I have the required spell slots/abilities from my Sorcerer levels?  Please note that my question is specifically regarding the found spellbook and how I can go about using it.  is not a duplicate because it is only talking about copying spells into another wizard's book. I'm looking for all options available to me to use the book and I'm not assuming copying is a requirement.


IOS Mobile Application is possible to develop in Windows 7?

I like to develop IOS native mobile application using windows 7. Is it possible ? If it is possible kindly share the information ...


When building and styling forms, is it better to use  tag or  tags?

For example, I wish to make a form look like this (or similar):    In this case, is this a job better suited for  <table> tag, or is it a better practice to use <div> and CSS?  I am aware of the topic that CSS is to be used for styling and tables are for tabular data.  However, form is not quite tabular, so it will make sense to use CSS to style the form (to align the form elements).  But then table tag has clearly assigned tags (td, tr, tbody, thead, etc), and if I use divs insteady, they will somewhat blend in with other divs semantically.  i.e.  is used for container, then  is used for a form, they all become homogeneous and require further inspection to see which is which while table is clearly outlined  I wanted to inquire as to what is currently acceptable practice for building and styling forms.    Note:  Perhaps forms do not have to be aligned as below, but I am not aware of any other reasonable way to present a form.  Also, imagine you have 5 or 6 such forms next to each other, it is not just one.


How can I bring back the proposition for war in Stelaris?

I accidentally closed it without voting, how can I find it? When I suggest declaring war on the target it says there's already a proposition to do so.


Were Grungs created for 5e or did they exist before this edition?

In Volo's Guide To Monsters there is a race in the bestiary called Grungs. Were these created for 5e specifically?


How to get zsh to not recognize the asterisk in apt-get

I am currently on Pop!OS 20.04, and after installing zsh and setting it as my default shell, when installing apps by using apt-get like follows, zsh says no matches found: sudo apt-get install libreoffice* -y  Why does this happen, and is there a way to make this not happen again?


I wish to prove that if $\exists x,y \in Z$ such that $x^2 + 5y^2 = p$ then there cannot exist $a, b \in Z$ such t hat $a^2 + 5b^2 = 2p$. Here p is a prime natural number. I kind of see why this might be true. Here are my ideas so far. Any help in showing why this claim is true will be appreciated.  Assume there exists x,y as stated above. We can assume that they are positive. We see that (x,y) are then the only positive integer solutions to $x^2 + 5y^2 = p$. Assume further that there exists a,b as stated above. Once again, we can assume that they both are positive. Then $a^2 + 5b^2 = 2p$ implies $(\frac{a}{\sqrt{2}})^2 + (\frac{b}{\sqrt{2}})^2 = p$. Now I stuck.


i get "Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference" whenever i click on the button. help please  protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          edt = (EditText) findViewById(R.id.edit);         b1 = (Button) findViewById(R.id.button);          b1.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 Intent i = new Intent(MainActivity.this, Main2Activity.class);                 startActivity(i);             }         })     }      String tt(){         return (edt.getText()+"");     }   public class Main2Activity extends AppCompatActivity {     MainActivity ob = new MainActivity();     private WebView mywebview;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main2);         mywebview=(WebView)findViewById(R.id.abc);         WebSettings webSettings=mywebview.getSettings();         webSettings.setJavaScriptEnabled(true);         mywebview.loadUrl(ob.tt());         mywebview.setWebViewClient(new WebViewClient());     } }


Physical meaning of the Lagrangian function

In Lagrangian mechanics, the function $L=T-V$, called Lagrangian, is introduced, where $T$ is the kinetic energy and $V$ the potential one. I was wondering: is there any reason for this quantity to be introduced? Does it have any physical meaning?  A professor of mine once said its differential $\delta L=dT-dV$ is "the quantity of energy you must pump into the system to move it from a point $(q,\dot q)$ in the phase space to a point $(q+dq,\dot q+d\dot q)$". Is this interpretation correct? I'm not too convinced…


When I read tutorials about uninstalling Ubuntu on dualboot, it always says that I need to fix the bootloader. But, if my Windows Update would overwrite the grub bootloader and it just boots to Windows 10 instantly when launching the computer, do I still need to make all these changes to the bootloader by myself or I just need to remove Ubuntu partitions? Thank you for every answer.


Why so many files in /usr/share/app-install/desktop?

For 14.04, I'm trying out Lubuntu LTS.  If I run ls -l /usr/share/app-install/desktop, I get a list of 3085 .desktop files. All except one are dated Apr 18. The exception is:  -rw-r--r-- 1 root root  6328 Mar 28  2013 applications.menu   From the dates, it's clear that all these are installed by default and not by me.   Doesn't each GUI-based program bring in its own .desktop file at the time it's installed (mostly in /usr/share/applications)? Then why are these thousands of other .desktop files needed? From their names, most of them haven't anything to do with Lubuntu. Their names are different from regular .desktop files (such as those in /usr/share/applications): many, not all, are like name:name.desktop whereas the regular ones are just name.desktop. The ones I looked at all have a line with X-AppInstall-Popcon=nnn where nnn is a string of digits. I know that Popcon "gathers statistics determining which packages are the most popular with Ubuntu users". But why is that part of these .desktop files?


I am comparing $[0,1) \times (0,1)$ and $(0,1) \times (0,1)$. They are pretty clearly homeomorphic intuitively (since you're effectively just adding one more verticle component to infinitely many vertical components). But I'm not too sure how to show it.  Edit: this was actually not clear nor at all intuitive


Why is the Ricci scalar the only independent scalar constructed from products of the metric and its first and second derivatives?

In Sean Carroll's book, last paragraph of page 160, this statement is found:     "The Riemann tensor is of course made from the second derivatives of the metric, and we argued earlier that the only independent scalar we could construct from the Riemann tensor was the Ricci scalar R. What we did not show, but is nevertheless true, is that any nontrivial tensor made from products of the metric and its first and second derivatives can be expressed in terms of the metric and the Riemann tensor. Therefore, the only independent scalar constructed from the metric, which is no higher than second order in its derivatives, is the Ricci scalar."   What is the detailed proof of this statement?


Is it possible to drain all oceans' water to space?

Assuming:   That I have an ideal straw (a very long pipe) from the ocean to space; That the straw (pipe) is ideal (will not break); That i can pump all the air from the pipe creating vacuum inside the tube; That i can pump all the water from inside the tube till I reach the end of the straw;   Would I be able to drain all the oceans' water to space?


Short film about a planet where people age very quickly

I saw a short film online a few years ago that I'd like to watch again. I think the film itself is older - the video looked like it was ripped from VHS, and the special effects and production values were consistent with something made in the 80s or 90s. I don't think there were any computer graphics involved and it was probably shot on film. It was quite long for a short film, perhaps about 40 minutes in length. I'm fairly sure it was posted on , but I can't find the post.   The plot was that some people were stuck on a planet where people are born, grow old, and die within a very short space of time. (I can't remember how long - perhaps days or weeks, although it might be longer given that they could all learn how to speak.) To escape, somebody had to go on some kind of quest, which they'd been training for for generations, presumably because it was hard to complete before reaching the end of one's lifespan.  One scene in particular was a special effects sequence involving a pyramid with a set of moons orbiting a planet behind it - that sequence stuck in my mind.  It seems quite likely that the plot was based on a short story, in which case knowing the title of the short story would be helpful in tracking down the film.


I'm very new to Blender and am having a bit of trouble. After I Shift + A > Mesh > Cylinder, I want to pull up this menu:    How would I do this, please? It doesn't just pop up after I add in the cylinder. Thanks.


I am trying to install Java via the terminal using the guide .  Everything went perfectly fine until "Step 11: Save the /etc/profile file and exit":    I spent maybe 30 minutes figuring out what ^ means (apparently Ctrl), but I cannot understand how that guy called the save command where you can choose yes and no.  I did try ^O, but I didn't get the same result as he did. How can I fix this problem?


Every nontrivial subgroup $H$ of $S_9$ containing some odd permutation contains a transposition.

This is a true or false question. Apparently, it is false, but I don't follow.  Clearly, if it contains an odd permutation, and an even/odd permutation is defined by the number of transpositions it could be broken into, then every permutation is a set of transpositions. At least, that's what I had gotten out of it. Am I wrong? I'm very confused with the answer.


How to reduce the spacing in chemical symbols?

Currently, if want to write a chemical symbol, for example, ${}^{239}Np$, this is what I type in: {}^{239}Np. The result:    But it looks bad, I feel as if the "N" and "p" should be closer, or a different font should have been used.  How could I make better looking chemical symbols? Currently I am using mainly the MathJax of the SE, but sometimes I use other TeX as well.


What is the standard rule for using or not using hyphen and diaeresis on the words like reelect , reexamine, and cooperate?

I found that diaeresis is used on the word, reelection in the following sentence of the article titled “Rational Irrationality” in the New Yorker magazine (April 27).     “This morning’s news that economic growth slowed markedly between January and March is an unmitigated bad for Obama and an unmitigated good for Romney. The President’s reëlection chances largely hinge on being able to point to evidence that the economy is finally improving.”   As I don’t think I’ve come across diaeresises being used in the articles of today's journals so often (Correct me if I’m wrong), I checked dictionaries at hand and online.  Cambridge Dictionary online resisters reelection without hyphen nor diaeresis on ‘ee’, same as Merriam Webster online.  Both Oxford Dictionary online and Oxford Advance English Learners’ Dictionary register ‘re-election’ with the former coming with the notation - Spell ‘re-elect’ with a hyphen after the first e. Other words beginning with re- that have a hyphen are re-educate, re-emerge, re-enact, re-enter.  New Yorker used diaeresis on ‘reelection’ as shown above, and their separate article titled “The Curse of the Diaeresis’ (April 2) stated:     “The special tool we use here at The New Yorker for punching out the two dots that we then center carefully over the second vowel in such words as “naïve” and “Laocoön” will be getting a workout this year, as the Democrats coöperate to reëlect the President.”   I find no consistency of the use and non-use of hyphen and diaeresis among Cambridge Dictionary, Oxford Dictionaries and New Yorker magazine.  What is the standard rule or custom of using, not using a hyphen and a diaeresis on the words including ‘ee’ ‘oo’ letters?


Sugar daddy asked me to send $29 to his account manager's PayPal

This is the first time I've used a sugar daddy site and I have little idea what I'm doing. I was smart enough to set up a PayPal account so he wouldn't have any of my personal information. He set an amount at which he would send, assuming I "passed his tests". Then he asked me to start by sending $29 to his account manager's PayPal so he would have my information. Am I right to think this is a scam?


SQL Server Permissions for Intellisense for an Active Directory User?

I have created an Active Directory Group and created it as a user, we'll call it "AD SQL", in my DB. I can successfully login in using Active Directory Authentication and read/write.  However, Intellisense is not working for any Active Directory users.  If I log in using my Active Directory Admin, "AD ADMIN", Intellisense works fine.  Can anyone tell me what permissions/roles/view/etc are needed for a user to have access to Intellisense?  My "AD SQL" user the following roles/permissions:   db_owner db_datareader db_datawriter GRANT CONNECT (DATABASE) GRANT VIEW DEFINITION (DATABASE)   And I have already tried Refreshing Cache/Restarting SSMS.


Consider the following examples:   "And it is a bottle, too." "And it is a bottle too."   Is there a semantic difference between these two sentences? Or do they mean the same thing, with or without the comma before "too"? If not, what is the correct usage of the comma in context of "too"?


$C([0,1], \mathbb R)$ with supremum norm is not sigma compact

Assume the banach space $C([0,1], \mathbb R)$ with supremum norm. I guess that this banach space is not sigma compact, in the other word $C([0,1], \mathbb R)$ is not union of countable compact subsets of it.  My strategy : I assume it is sigma compact the because $C([0,1], \mathbb R)$ is a complete metric space then I want to use baire theorem to reach contradiction. but I am confused to complete it.


regular expressions / pattern matching on ubuntu command line

I notice a lot of bash utilities like ls, cp, mv, grep use regular expressions and pattern matching. For instance symbols like * [] {} etc.   However, I find this to be different in some regard to other regular expression tutorials I find on the Internet. Is there a specific standard that these utilities follow or a comprehensive list of shortcuts somewhere?   Thank you


Question on SO is labeled as edited by me even though I did not do that

I'd like to report following bug (at least I think so).  I'm looking at questions related to sql-server tag on Stack Overflow. One of them was answered by me, however it displays me as last editor. Is it expected behaviour? Please see screenshots:        And once you open question:


Are moderator tools, specifically flagging or voting to close going to be implemented in the Android app? If we have a dispute, we should at least have the flag option.  What about share option? If we would like to share a question, we could long press on the question title, and the question title, excerpt, and short URL copied to clipboard.


Strange behaviour for combination of \include, \addtocontentsline, and \clearpage

I hope this is not too specific to be worth an answer, since there is a "simple" workaround. But I just noticed this problem and it seems really weird. Maybe someone has an explanation for me.  If I pdflatex this:  \documentclass{scrreprt}  \usepackage{filecontents} \usepackage{tocloft}  \begin{filecontents}{chapterone.tex}     \addcontentsline{toc}{chapter}{Chapter 1}     \section{Section} \end{filecontents}   \begin{document}  \tableofcontents  \clearpage  \addcontentsline{toc}{chapter}{Part A}  \include{chapterone}  \end{document}   I get this table of contents:    where I would actually expect this table of contents:    It seems the order of toc entries is switched in this combination. This only appears when using the \addtocontentsline command and when placing the second entry in an additional .aux file. If I use the \chapter command, or put both \addtocontentsline in the same file, or use \input instead of \include, everything works smoothly. If I leave out the \clearpage before the \include and therefore put the two toc-entries on different pages, they also appear in the correct order. It really is just this single combination that caused me problems.  Now, normally I would not post this since it can easily be fixed by switching out just one of these things. But it just took me almost a day to get to the bottom of the problem in a fairly complex document, and I thought it might help future visitors to see it broken down to a minimal working example. I am also curious as to what the explanation for this might be.  Thanks and greetings,  Floh


I am fairly new to c++ and have not had much experience with headers or templates, and I have not had any experience with them combined.  So, I have run into problems trying to use the class I have created.  My class definitions and headers are as follows: J.h is the header file for the template class J.  #ifndef J_H #define J_H  template<class t> class J {         public:                 void speak(); };  #endif   J.cpp has the function definitions for it's header.  #include "J.h" #include <iostream>  template<class T> void J<T>::speak(){         std::cout << "Hello from j"; }   main.cpp has the main function and tries to use J.  #include "J.h"  int main(){         J<int> j;         j.speak(); }   My problem is that when I compile with g++ J.h J.cpp main.cpp, I get the error undefined reference to J<int>::speak(), but doing g++ J.h J.cpp runs without any error.  I am very new to templates, so any help is appreciated.  Thank you in advance.


'$5 billion was spent' v. '$5 billion were spent'

Which one is correct: '$5 billion was spent' or '$5 billion were spent'? It seems like the former is correct (can you explain it?). But would the answer change if I spelled the sum out (like, 'five billion dollars was/were spent')?


Can the Shield Master feat's bonus-action shove be used to make an improvised weapon attack?

Do the rules allow the bonus action shove (special melee attack) from Shield Master to be "converted" to a regular attack for use as an improvised weapon attack?  Since a shove is a special melee attack that replaces a regular attack (at the choice of the player) when you make an Attack action, could one "convert" a bonus-action shove provided by the Shield Master feat into a regular attack using the shield as an improvised weapon?  This would create value for people discouraged by the recent rules clarification regarding the timing of this feat. The value added would be that a class with Extra Attack could take the Attack action, use their first attack to shove, then attack with the rest of their attacks. Having taken the Attack action, you then generate a bonus-action shove, which ideally could also be converted back to an attack using the shield as an improvised weapon.  (I like the flavor of a shield master using his shield for an attack.)


How did the Tesseract end up in Norway during the events of Captain America?

As :     The film opens with Red Skull breaking into a church and stealing a hidden Tesseract. But why was it there in the first place?    Is there a possibility it was a gift to the vikings by Odin himself?      Surely such a powerful object wouldn't be hidden behind a brick wall in Norway. Why wasn't it kept in Asgard along with all the other powerful items that Odin owns?


Integer squares of the form $x^4+x^3+x^2+x+1$

I want to solve ${y^2}=x^4+x^3+x^2+x+1$ in $\mathbb{Z}$.    I can find four solutions. Is there another solution? I know that there are six solutions. $$(-1, \pm 1)\;,\;(0, \pm 1).$$  My try: \begin{align}   & x^4+x^3+x^2+x+1=0\quad \Rightarrow \underbrace{\left( x+\frac{1}{x} \right)^2}_{t^2}+\underbrace{\left( x+\frac{1}{x} \right)}_{t}-1=0\,\Rightarrow t\notin \mathbb{Z} \\   & x^4+x^3+x^2+x+1={\pm 1}^2\quad\Rightarrow \,x=-1\,\,,\,x=0.\\  \end{align}   Thanks.


Looking for easiest, most simple solution to run a customised DNS Server for my local network on Windows 7.

I need to forward some websites, such as  to an fixed IP address on my local network. I can do this easily on one computer using the hosts file. However, I need this to work for all machines on my network.  I think the best way to do this will be to setup my own DNS Servers and add the custom DNS settings there.  However, I'm looking for the simplest way possible to do this - I really don't want to spend hours setting up Unix Servers and running tricky terminal based scripts just to do this!  My server is a standard Windows 7 machine.  My dream would be a nice simple windows program with a GUI where I could input my ISP's DNS server and it would use those records, unless I had specifically set up my own DNS for a domain to use instead. If it had a web based admin system that was accessible from another computer on the network that would be even better.  Does anyone know of anything that can do this? Many thanks indeed.


How to re-position each chapter at the beginning of the page/

:-) With the following preamble how can I reposition where the chapters start? Meaning each section is defined to start at almost the 2/3 of the page. There is a small space and then goes the "Section 1: blah blah". Can I start each section at the beginning of the page like the other pages?  \documentclass[a4paper,12pt]{book} \setcounter{secnumdepth}{-2}  \titleformat{\chapter}[display]{\normalfont\huge\bfseries}{}{20pt}{\Huge}  \let\cleardoublepage\clearpage \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{blindtext} \usepackage[pdftex]{graphicx} \usepackage[skip=2pt, font=small, labelformat = empty]{caption}  \newcommand{\gr}{\selectlanguage{greek}} \newcommand{\en}{\selectlanguage{english}} \usepackage{wrapfig} \usepackage[paperwidth=17cm, paperheight=24cm]{geometry} \usepackage[onehalfspacing]{setspace} \usepackage{textcomp} \useshorthands{;} \defineshorthand{;}{?} \usepackage{fancyhdr} \fancyhf{} \fancyhead[LE]{\nouppercase{\leftmark}} \fancyhead[RO]{\nouppercase{\rightmark}} \fancyfoot[LE,RO]{\thepage} \pagestyle{fancy}  \renewcommand{\chaptermark}[1]{ \markboth{#1}{} } \renewcommand{\sectionmark}[1]{ \markright{#1}{} }


How to find vendor and model of unknown drivers

I reinstalled windows on a new machine and the drivers are not present for the product network card.   When in device manager all I get is the question mark and I am unable to figure out the actual name of the vendor or model of the card. This is making my search to find the correct driver hard.   Anyone know how I to find out more about the hardware that does not have drivers?


How manageable are connections at Dubai Airport Terminal 3?

I have tickets that have me go via Dubai, giving me with around 2 hours transit time. I will be coming from Frankfurt to Dubai on Emirates EK046 and leaving on Emirates EK570. I don't know either the arrival gate or the next flight's departure gate. I only know that both will be in the same terminal, T3.   How large is this terminal and what is the maximum amount of time that it might take to get from one gate to another? Also, during the transit, is there a possibility that a bus/train needs to be taken?


Heisenberg uncertainty in $L^2([0, 1])$ space

I'm given a system represented by a Hilbert space $L^2([0, 1])$.  In this space, the momentum basis is $\frac{1}{\sqrt{L}} \exp{\frac{2 \pi i nx}{L}}$. It seems like Heisenberg uncertainty would be violated for any particle in a momentum eigenstate. So I reasoned that this is somehow equivalent to the particle in an infinite box. But the problem seems to still exist there:    If we have a particle in an infinite box of width 1. We measure its momentum. Now it's in an eigenstate of momentum, such that $\Delta p$ is 0. And $\Delta x \leq 1$ (since the particle must be inside the box). Obviously something is wrong with this reasoning. What's wrong?


How to write notations of equations in LaTeX. (Text and Mathematical operator together)

I want write the following  sentences in LaTeX.      n_e and n_i are the density of electrons and ions; m_\alpha and Z_\alpha are the mass and charge number of species \alpha;   v_e and v_i are the average (drift) velocity of electron and ion; T_e and T_i are the electron and ion temperatures;   Temperature range (1.5<z<=10).   Please advice me


Computing the integration $\int_0^{+\infty}{\frac{\sin(x)}{\sqrt{x}}}dx$.

For any $A>0$,$|\int_0^A{\sin(x)}|\le2$ and ${\frac{1}{\sqrt{x}}}$ is decreasing to $0$ as $x$ tend to $+\infty$.By Dirichlet's test,the integration $\int_0^{+\infty}{\frac{\sin(x)}{\sqrt{x}}}dx$ makes sense.  Moreover,I know the method of computing $\int_0^{+\infty}{\frac{\sin(x)}{x}}dx$ which is that considering the integration $$I(\beta)=\int_0^{+\infty}f(x,\beta)dx=\int_0^{+\infty}e^{-\beta{x}}{\frac{\sin(x)}{x}}dx$$ and $$I^{'}(\beta)=\int_0^{+\infty}f_\beta(x,\beta)dx=-\int_0^{+\infty}e^{-\beta{x}}{\sin(x)}dx.$$ We can compute $\int_0^{+\infty}e^{-\beta{x}}{\sin(x)}dx$ easily thourgh integral by parts.If we use the same method,we will obtain$$I^{'}(\beta)=-\int_0^{+\infty}e^{-\beta{\sqrt{x}}}{\sin(x)}dx.$$ Integral by parts is out of use since it will produce many $\sqrt{x}$.Can you tell me how to integrate this integration and more general case $\int_0^{+\infty}{\frac{\sin(x)}{x^a}}dx$,where $0<a<1$.Thank you in advance!


Access the USB drive from which Ubuntu boots

How can I access files stored on the USB drive from which Ubuntu boots? (Using Ubuntu 12.10)


Where do I connect a C wire in a Rheem Furnace REAB 1415J?

I'm upgrading the thermostat with a Honeywell wifi one. I found all cables at the thermostat end, but can't figure out where to connect the C wire to the furnace (Rheem REAB 1415J).


On the following Higgs $\rightarrow$ Tau Tau plot, since we are plotting the ratio of $\frac{\sigma}{\sigma_{SM}}$ on the y axis, shouldn't the expected for this be 1? i.e., shouldn't the expected 68% and 95% be centered at a dotted line at 1? Anything else seems to imply we are expecting something other than the Standard Model...


I remember seeing this series back when I was in the early grades of primary school (prep to 3) so this would be between 1996 and 1999  from what I remember it was set in space and the cast was made up from people from these different worlds, one of the characters is from a fire attributed world and I get the impression he was small framed (I think).  at one point in the series this entity appears called the Beast Planet appears, the one scene I do remember is that this Beast Planet attacks the fire planet, the front of the beast planet opens up with this claw and grabs the fire planet from bellow and then the fire planet is slammed into the beast planet dooming the fire planet but I think the beast planet was unharmed.  I also seem to remember that the cast discover the other planets have engines which allows the remaining planets to escape from the Beast Planet rather than them being sitting ducks.  I remember that this beast planet, despite being called a beast is actually more machine. I began remembering this series after playing Galaxy Angel where I saw the  and it reminds me of this beast planet


CMOS inverter: circular reasoning to understand it?

I am confused by a litte detail with CMOS inverter. Note that I am really a beginner in CMOS "theory". Here is the electrical circuit:  At "first view", I understand the principle. If \$V_{in}\$ is high (\$V_{in}=V_{DD}\$), then the PMOS will be open and the NMOS closed. Thus \$V_{out}=0\$. Reciprocally, \$V_{in}=0\$ implies the PMOS closed and NMOS closed thus \$V_{out}=V_{DD}\$ My question I have trouble when I look at the details. Let us consider \$V_{in}\$ high for instance. A PMOS will be closed for \$V_{GS} < V_{Tp}<0\$ (threshold voltage), and \$V_{GS} > V_{Tn}>0\$ for NMOS. But for this I must identify where are source and drain. To identify where is the source and the drain of a transistor, I must find which one has the highest voltage. But as I do not know \$V_{out}\$ how can I find them ? \$V_{out}\$ is what I try to find so I am not supposed to know it (else the reasoning is circular)... Is there an implicit assumption that "by design", for CMOS circuit, any voltage in the circuit will verify \$0 < V < V_{DD}\$. Applying this to \$V_{out}\$ I can deduce source and drain for both transistors and solve my issue ? Because "in principle", I could imagine some negative voltages and because of that identifying what is source and drain is not straightforward here.


Europe to USA: How come a detour within Star Alliance cuts the price in half?

I just found out that going round trip FRA to SFO directly with Lufthansa is 1100 Euro, while Turkish Airlines (layover in IST) will charge only about 600 Euro.  On the flip side, going round trip IST to SFO directly with Turkish Airlines is 1100 Euro, while Lufthansa (layover in FRA) will charge only about 600 Euro.  Moreover, can I book IST-FRA-SFO, but only take the FRA-SFO legs to save time and money while going FRA to SFO?


Fastest way to calculate $e^x$ up to arbitrary number of decimals?

What are other faster methods of calculating $e^x$ up to any number of decimals other than using the Taylor series formula?


True or false: if $f'(c)<0$, then $f$ is concave down at $x=c$?

How can I determine the following statement is true or false?  If $f'(c)<0$, then $f$ is concave down at $x=c$ ?


Determining possible minimal polynomials for a rank one linear operator

I have come across a question about determining possible minimal polynomials for a rank one linear operator and I am wondering if I am using the correct proof method.  I think that the facts needed to solve this problem come from the section on Nilpotent operators from Hoffman and Kunze's "Linear Algebra".     Question: Let $V$ be a vector space of dimension $n$ over the field $F$ and consider a linear operator $T$ on $V$ such that $\mathrm{rank}(T) = 1$.  List all possible minimal polynomials for $T$.   Sketch of Proof:   If $T$ is nilpotent then the minimal polynomial of $T$ is $x^k$ for some $k\leq n$.  So suppose $T$ is not nilpotent, then we can argue that $T$ is diagonalizable based on the fact that $T$ must have one nonzero eigenvalue otherwise it would be nilpotent (I am leaving details of the proof of diagonalization but it is the observation that the characteristic space of the nonzero eigenvalue is the range of T and has dimension $1$).  Thus the minimal polynomial of $T$ is just a linear term $x-c$.    Did I make a mistake assuming that $T$ can have only one nonzero eigenvalue?  Thanks for your help


How can I get google chrome to switch tabs using the mouse wheel?

At home I'm running Fedora 17, and I've grown accustomed to quickly scanning through open tabs by using the mouse wheel while hovering over the tab bar. It's a very natural gesture for me now.  At least once a week at work (usually Mondays), I attempt to use the same technique on chrome running on a MacBook Pro, but the tabs won't budge. This is starting to make me crazy.  Does anyone have a solution which will allow me to use the scroll wheel to change tabs on google chrome for OSX?  (I found the following google code thread, but the suggested fix does not address the issue as far as I can tell -- )


Is there any way to change MAC-address of built-in Bluetooth adapter?

I should change MAC-address of a built-in Bluetooth adapter. Is there any way to do it in Yosemite (10.10.4)?  Please note - the question is about Bluetooth, not about Wi-Fi. ifconfig doesn't see Bluetooth device.  I've already tried to update my bluetooth adapter address in /Library/Preferences/com.apple.Bluetooth.plist (Root\PANInterfaces\Item 0):  # turn bluetooth off cp /Library/Preferences/com.apple.Bluetooth.plist ~/com.apple.Bluetooth.plist cp /Library/Preferences/com.apple.Bluetooth.plist ~/com.apple.Bluetooth.plist.backup # edit ~/com.apple.Bluetooth.plist  sudo cp ~/com.apple.Bluetooth.plist /Library/Preferences/com.apple.Bluetooth.plist cd /Library/Preferences sudo chown root:wheel com.apple.Bluetooth.plist defaults read /Library/Preferences/com.apple.Bluetooth.plist # turn bluetooth on   But it doesn't help.


How can I reduce or increase the number of workspaces in Unity?

I was reading about , however since Compiz is replacing Mutter how do I go about adding and removing workspaces in Compiz version of Unity?


<apex:outputText value="{0, number, ###,###,###,##0}" rendered="{!IF(attr.Name == 'Rate Card Item Price' || attr.Name == 'Sold Unit Price' || attr.Name == 'Price', true, false)}"> <apex:param value="{!attr.value}" /> </apex:outputText>   I want currency formatting and I am using above code but I am getting this error on vf page :     The value attribute on  is not in a valid format. It   must be a positive number, and of type Number, Date, Time, or Choice   Please help on this.


Before installing WUBI, should I defragment the disk?

Is it might help? Is there something else that whould make it better?


how to get group id where match contactid?


Is it ever appropriate to ask new users to mark your answer as correct or ask for an upvote?

This question is related to meta:   I received  telling me not to "beg" for upvotes/mark as correct.  I posted the "offending" comment because the OP was asking his first question, and because he left a comment thanking me for my help and telling me he had found the solution thanks to me.  Generally in that case I remind the user to please mark my answer as correct and/or upvote if they found it helpful.  I do NOT ask for upvotes/accepts unless the user is new and leaves a "thanks" comment instead of upvote/accept.  I don't consider this begging, I consider this reminding new users not to leave answered questions marked as unanswered, and to use the feedback system.  I can see where mentioning an upvote might be considered a different matter than accepts.  Was I in the wrong?  If so, what line did I cross?  Edit:  As one of the commenters pointed out, I do feel the question linked below directly addresses the topic I wanted to bring up.  I'll avoid mentioning upvotes in the future.  Thanks.


Could we fix the dates in the example question in SO tour?

The new top nav-bar helped me navigate to the fancy  again, but the example question caught my eye.  The example shows that the question was answered a year before it was asked.    Minor issue, I know.  But could we fix this, please?


What is the difference between a Singleton pattern and a static class in Java?

How is a singleton different from a class filled with only static fields?


PostGIS ST_Point_Inside_Circle radius unit

I'm trying to use the ST_Point_Inside_Circle function from PostGIS but I'm not sure about the unit the radius is stored.  Let's say I have a table with the following points:     Id | Point     1 | POINT(-60.64855 -32.96482)      2 | POINT (-60.65871 -32.93411)   and I want to query them by doing    st_point_inside_circle(Point,  -32.93690, -60.64343, radius)   Now, I know that distance from (-32.93690, -60.64343) to P1 is of about 1460 m and from (-32.93690, -60.64343) to P2 is of 3117.5 m.  Using a trial-and-error approach I was able to determine that if   radius < 0.02839 and radius > 0.02838 I was able to get the 2 points in my query. However, the value for radius doesn't make much sense. Which units is it expressed in? Since the distance between points is too short, I don't think that not using a spheroid would affect the results. Maybe I am doing something wrong. Should I use ST_Buffer instead?


Is the @reply in a comment to the editor of a post broken?

According to Jeff's answer, :  So you can now @reply to editors of a post even if they haven't commented.  Yet, I just tried to address the editor of a question in a comment and couldn't. No auto-completion of the name. I typed it in anyway, but it doesn't seem to have reached the editor. I tried it at another post where the same user commented and the @reply worked as expected there (auto-completion and everything). Happened with this question:  I haven't changed anything further so I wouldn't contaminate the crime scene. Edit: I ran some tests with OMG_Ponies, and he did get the messages. So, it's only the auto-complete that doesn't work as expected. And the _ in his name helped to fool me at first.


Transit visa for Frankfurt for Indian national on h1b I797A

My change of status from F1 to H1b was recently approved and I have I797A with me. My F1 visa stamped in my passport is still valid and I am going to home country(India) to get the H1b stamping done.  I have Lufthansa flight with 4 hour layover in Frankfurt. Do I need a transit visa for my case? (I do see my flights are arriving and departing in the same terminal)


My mother-in-law put chicken on the counter to thaw for an hour then put the chicken directly into the sunlight still on the counter top! I've done a little Research but have found nothing that clearly states not to eat chicken thawed in the sun, only how to thaw chicken instead of how not to thaw chicken...any help is much needed I have children and don't want to chance them getting any food Bourne illnesses


I wrote "She suggested me to go shopping." Why is it wrong?  Can we say one of the following sentences?   She suggested going shopping. She suggested that we to go shopping.   How would you correct my original sentence?


I tried to get the output of python as   def main():     i=raw_input()     a=input()     print(i*a)     main()   input:hello,       2. output: "hellohello"  but i am getting output as  output:" hello         hello " .how can i get the two strings as output continuously in same line from one print statement.for example:"hellohello "


To get now, I can do:  now = datetime.datetime.now()   How would I get 24 hours ago?  now - 24 hrs. ?


Why does this set of apt commands work when run line by line, but not when run as a script?

I can run this line by line on a fresh Ubuntu 16.04 instance in Digital Ocean but I when I give it executable permissions chmod +x and run it I get failed attempts at running different parts of the script. sudo apt-get -y install nginx git libcurl4-gnutls-dev libxml2-dev libssl-dev  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/' sudo apt-get update sudo apt-get install r-base r-base-dev gdebi-core sudo su - -c "R -e \"install.packages('devtools', repos='http://cran.us.r-project.org')\"" sudo su - -c "R -e \"install.packages('shiny', repos='http://cran.us.r-project.org')\"" sudo su - -c "R -e \"install.packages('XML', repos='http://cran.us.r-project.org')\"" (crontab -l 2>/dev/null; echo "5 0 * * * Rscript /root/transit-tracker/scripts_in_testing/download_gtfs.R ") | crontab - (crontab -l 2>/dev/null; echo "* * * * * Rscript /root/transit-tracker/scripts_in_testing/get_tidy_gps.R ") | crontab - wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.3.838-amd64.deb sudo gdebi -n shiny-server-1.5.3.838-amd64.deb  sudo sed -i 's/  listen 3838;/  listen 80;/' /etc/shiny-server/shiny-server.conf # then reboot   In response I get; Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package Executing: /tmp/tmp.EeBdzAP95F/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 " not a key ID: skipping57CBB651716619E084DAB9 E: Invalid operation update Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package r-base E: Unable to locate package r-base-dev E: Unable to locate package gdebi-core -su: R: command not found -su: R: command not found -su: R: command not found -su: R: command not found -su: R: command not found 'rontab: invalid option -- ' crontab: usage error: unrecognized option usage:  crontab [-u user] file         crontab [ -u user ] [ -i ] { -e | -l | -r }                 (default operation is replace, per 1003.2)         -e      (edit user's crontab)         -l      (list user's crontab)         -r      (delete user's crontab)         -i      (prompt before deleting user's crontab) 'rontab: invalid option -- ' crontab: usage error: unrecognized option usage:  crontab [-u user] file         crontab [ -u user ] [ -i ] { -e | -l | -r }                 (default operation is replace, per 1003.2)         -e      (edit user's crontab)         -l      (list user's crontab)         -r      (delete user's crontab)         -i      (prompt before deleting user's crontab) --2017-05-08 22:39:38--  https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.3.838-amd64.deb%0D Resolving download3.rstudio.org (download3.rstudio.org)... 52.85.90.213, 52.85.90.39, 52.85.90.98, ... Connecting to download3.rstudio.org (download3.rstudio.org)|52.85.90.213|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2017-05-08 22:39:38 ERROR 404: Not Found.  sudo: gdebi: command not found : No such file or directoryserver/shiny-server.conf


Understanding genetic similarity in humans

I was reading "" by Robert Plomin (online preview on webpage) and got stuck when I got to these two sentences in the prologue:  "We are the same as every other human being for more than 99 per cent of these 3 billion DNA steps, which is the blueprint for human nature." (page X)  "familiy members differ a lot genetically - you are 50 per cent similar genetically to your parents and siblings, but this means that you are also 50 per cent different." (page XI)  How does it fit together? Is he talking about different measures of similarity here?


Why does a neon lamp indicator on a power strip switch flicker in the dark?

Neon lamp indicators embedded in power strip switches indicate whether the switch is ON or OFF. When the neon lamp is ON in a dark environment (lights of the room are off), the lamp begins flickering and it sometimes goes off for a few seconds. When I switch the lights of the room on, it stops flickering and remains bright. Even when I unlock my phone in the dark near the lamp, it stops flickering! Is the light-making-mechanism in neon lamps affected by the light intensity of the surrounding environment?  UPDATE: I captured my observations with my iPhone and uploaded it to YouTube. Here is the link of the video:  All the lights of my room were turned off. There were no plugs connected to the power strip. The only source of light was the screen of my MacBook Pro, which was not plugged in.  I increased and decreased the brightness of the computer screen during the video.  I then produced two additional light environments using my phone.


How to export a single Firefox extension as an installable xpi file?

Once upon a time I have installed an extension, that is no longer available: YouTube Smart Pause .  Is there any way to export this extension back into the xpi file, so I can give it to my friends?  There are solutions that allow exporting whole extension collection (FEBE, Firefox sync, etc.). I am asking for a way to export a single extension.


Right hand rule for clockwise and counter clockwise direction

If the conductor 'CD' rotates in clockwise direction in the figure, voltage will be induced on it. What will be the polarity of the voltage on terminal of the conductor 'CD' when the conductor rotates in clockwise direction according to the right hand rule.   If the conductor CD rotates in counterclockwise direction what will be the polarity of the conductor 'CD' on its terminnal? Will it be same like when the conductor was moving in clockwise direction or will be opposite that that according to the Fleming's right hand rule?   ?


How do I find out which process is locking a file using .NET?

I've seen several of answers about using  or , but I would like to be able to find out in my own code (C#) which process is locking a file. I have a nasty feeling that I'm going to have to spelunk around in the win32 API, but if anyone has already done this and can put me on the right track, I'd really appreciate the help. Update Links to similar questions


How do I get this sort of notation in LaTeX?     I'm using TeXmaker.


I've got a problem with my rendering! I'm trying to render some objects:    But, this is how it renders:    Can somebody help me out?


16' Penske box truck - do I need to stop a scale?

I have a 16 foot box truck - do I need to stop at scales?


For loop: How can I pause it after 100 loops for x seconds?

I have the following for loop:  for user_id in new_followers:     try:             t.direct_messages.new(user_id=user_id, text="Thanks for following. Etc etc etc")         print("Sent DM to %d" % (user_id))         followers_old.add(user_id)   To avoid API limitations, I want to pause the loop for 600 seconds each time 100 direct messages are sent.  What's the best way to do it?


Can anyone help with “Malformed entry 9 in list file”

I hate to say it but, I’m extremely new to all of this and looks to me like I’ve hit a simple roadblock but I’m confused as to how I should fix this... so my issue is pretty much any command I run leads to the error listed below, with the first line being an example of an attempted command... Sudo apt-get update E: Malformed entry 9 in list file /etc/apt/sources.list (Component) E:The list of sources could not be read.


Identity novel, short story or book series... slower than light space battles, time dilation and boardings, several planets

Ok. So I read books as a kid, this may have been mid to late 1980s. Definitely before 1993. These details I remember, they might be from the same book or from several:   Slower than light space travel with severe time dilation. There were boardings of space ships, but the fighting odds could be very uneven because a foe could be from your future or your past, depending on when you started your space journey, because of relativistic time dilation. No faster than light travel, no time travel either. Just regular physics. To fight better in melee, soldiers would have (more or less willingly, I think they knew beforehand) false memories or notions implanted of the enemy as horrible human beings so soldiers could kill them more easily without remorse. Towards the end of the story, veterans of the war are described as not quite feeling at home after the war. One planet (home?) or country is described as inhabited entirely of clones, Adams and Eves, I think homosexual, or that sexuality could be switched deliberately. I think the veterans find at the end a refuge somewhere more like the home they are used to. The reason so much has changed is of course the time dilation. They spent maybe decades in the war, while on the planets centuries or millenia passed. I think one moral (there may be many more I missed as a child) of the story was the futility of war. If I recall correctly, the war was resolved in a way that made the efforts of the veterans seem for nothing.


Are two undergraduate degrees better than one master degree?

I have finish my BSc in physics. I want to work in a interdiscipline like biophysics or econophysics. Because these are mainly physics, one can study higher with spending little effort to understand biology or economy concept. However, I think that having a stable knowledge in other discipline would also help you better in researching. Since I have studied physics, mathematics isn't a problem, therefore I can skip it to shorten the study time, which means the amount of time I spend will approximate to the master degree duration (I hope so). Another point is I can be more flexible than one who only know his/her specialization.  The biggest disadvantage is I don't have a master degree, of course.


Do mods or console use disable achievements for Fallout:New Vegas?

I've heard mixed information on this and I'd like to get a straight answer, for two reasons:   The widely reported Quicksave/Autosave bug is annoying and, quite frankly, has terrified me into completely abandoning both features. However, manually saving is, to say the least, extremely cumbersome. In FO3, I used the console 'SAVE' command to create named save files without any menu navigation, and it was awesome. I've been afraid to do so in New Vegas however, for fear that, as reported, it will disable achievements on my save file. Similarly, now that the game has been out for a few days, Mods are beginning to appear, and a few of them look like big QoL improvements. Most notably, stuff like , to fix the horridly large print menus, and , to add Iron Sights to the Laser Pistol. But again, not worth it on my first playthrough if they ruin my hard earned Nerd Points on Steam.   Since I've heard conflicting information on this, I'd love to get a definitive answer, but sadly, having earned the 'low hanging fruit' achievements you can get without a whole fresh playthrough or a lot of grinding with a specific weapon type, I have no easy way to test this.


How can I use variables in the LHS and RHS of a sed substitution?

I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' > new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/'


How to determine whether or not the y-axis of a graph should start at zero?

One common way to "lie with data" is to use a y-axis scale that makes it seem as if changes are more significant than they really are.  When I review scientific publications, or students' lab reports, I am often frustrated by this "data visualization sin" (which I believe the authors commit unintentionally, but still results in a misleading presentation.)  However, "always start the y-axis at zero" is not a hard-and-fast rule. For example, Edward Tufte  that in a time series, the baseline is not necessarily zero:     In general, in a time-series, use a baseline that shows the data not the zero point. If the zero point reasonably occurs in plotting the data, fine. But don't spend a lot of empty vertical space trying to reach down to the zero point at the cost of hiding what is going on in the data line itself. (The book, How to Lie With Statistics, is wrong on this point.)      For examples, all over the place, of absent zero points in time-series, take a look at any major scientific research publication. The scientists want to show their data, not zero.      The urge to contextualize the data is a good one, but context does not come from empty vertical space reaching down to zero, a number which does not even occur in a good many data sets. Instead, for context, show more data horizontally!   I want to point out misleading presentation in papers I review, but I don't want to be a zero-y-axis purist.  Are there any guidelines that address when to start the y-axis at zero, and when this is unnecessary and/or inappropriate? (Especially in the context of academic work.)


A new user completely changed  question after I answered it.  Is this allowed?  I suspect this is because new users cannot post more than 2 questions.  I feel angered by this, as it wasted my hard work.


Install Facebook Messenger on iPhone 3Gs running iOS 6.1.6

I reset my iPhone 3Gs but am unable to install Facebook Messenger back on my iPhone as it requires iOS 7. How can I install Facebook Messenger on my iPhone 3Gs running iOS 6.1.6?


I need to prove that $A ⊂ B$ if and only if $A − B = ∅$. I have the following "proof":  $$ A \subset B \iff A - B = \emptyset$$ proof for $\implies:$  $$\forall x \in A, x \in B$$  Therefore,  $$A - B = \emptyset$$  proof for $\impliedby$:  If $$A - B = \emptyset$$ then $$\forall x \in B, x \in A$$ since $\forall x \in B, x \in A$,   $$ A \subset B $$  However the whole thing seems to be incredibly "fragile" and relies on circular logic (see how I just switched the sets in the for all statements)  Is this a valid proof? Is there a better way to write it?


I have a DataTemplate in a ResourceDictionary. Now I have a GroupBox in the template, on which I want to use the MouseDown event. But the ResourceDictionary has no code behind (as intended) and no link to the code behind of the file where I use the things from the dictionary.  How do I use this event?


Black hole complementarity - absorption of Hawking radiation

I try to understand two principles formulated by Leonard Susskind in his book The Black Hole War:  1, To any observer who remains outside a black hole, the stretched horizon appears to be a hot layer of horizon-atoms that absorb, scramble, and eventually emit (in the form of Hawking radiation) every bit of information that falls onto the black hole.  2, To a freely falling observer, the horizon appears to be absolutely empty space. [...]     Now, in reaction to (an unanswered)  by Nathaniel, let us suppose that a distant observer A sees (according to the principle #1) Hawking radiation from a black hole (with Planck spectrum and say measurable temperature). Now suppose there is a freely falling gas somewhere between the event horizon and the observer. According to the principle #2, to the gas (considered an observer B) the horizon is empty space so there is no light coming from it to absorp.  Would the observer A detect absorption lines in the black hole spectrum? How does it change with distance of the gas (or the observer) from the black hole? Will the distant observer see the lines if he is free falling?


Some content management systems such as WordPress and Drupal have Short URLs by default (if the webserver allows it), but at least one other --- MediaWiki, doesn't. Before I continue with the process of trying to make my MediaWiki website to include short URLs I'd like to ask a general understanding question on the subject (because I find the ). Do short URLs obligate 301 redirects? I do understand that they always require some webserver directives but I'm just not sure if such directives must include 301 redirects or not...


I'm using Blender 2.81. I tried reinstalling the Node Wrangler extension multiple times. Everything works fine, but it only displayed those bendy/curvy connections/links following the first install after a fresh setup of Blender 2.81.  I couldn't find any option to fix this in the preferences.


Prove: $$\frac{1}{\cos^2\alpha}<\frac{\tan\beta-\tan\alpha}{\beta-\alpha}<\frac{1}{\cos^2\beta} \\ \forall 0<\alpha<\beta<\frac\pi2 $$   Well for starters I noticed that this is basically squeeze theorem for derving $\tan x$ since the middle looks like the defintion of deriviation and both left and right sides are the derviation of $\tan x$.  Now to formaly prove it,  $$(\tan\alpha)'<(\tan(\beta-\alpha))'<(\tan\beta)'$$  Then by the next step we get to the given equation and that's it (?).


What is better (more secure) way to handle SQL injections ?  $var = filter_var($_POST['var'], FILTER_SANITIZE_STRING);   or  mysqli_real_escape_string($link, $_POST['var']);


All cumulative distribution function follows a U[0,1]

In my stats lecture, my professor introduced this theorem, however I don't quite understand what the theorem means and how he got from step 3 to 4. Also what does the prime symbol mean? Could someone paraphrase what the theorem means or point me to some online resource where I could learn more about this theorem? Thanks Theorem: If $X$ is a continuous random variable with cumulative distribution function (CDF) $F$, then $Y = F(X) \sim U[0,1]$ Proof: Let CDF of $Y$ = $F_y$ $$F_y=P(Y \leq y)$$ $$=P(F(X) \leq y)$$ $$=P(X \leq F^{-1}(y))$$ $$=F(X^{'})$$ $$=F(F^{-1}(y))=y$$ $$Y \sim U[0,1]$$


chrome disable or change keyboard shortcut ctrl+shift+c developer tools console?

How can I disable the Keyboard Shortcut ctrl+shift+c in Google Chrome to bring up the Developer Tools console?  I find myself trying to copy+paste content from the browser and mistakenly typing ctrl+shift+c when I really want to do ctrl+c instead.  How can I disable the current keyboard binding or change ctrl+shift+c to do the same as ctrl+c in Google Chrome?


I have just imported a few gps coordinates from a csv file and saved it as a shapefile. Moreover, I have got a vector layer with polygons in this project. Both layers are in EPSG: 32632. The first point has the coordinates 49.465550, 8.47273. If I pan over the layer containing the gps data the coordinates given in the status bar are fine. But if I pan over the the other vector layer it gives coordinates eg 457426, 5481718.   Why are the two coordinate systems different if the two layers have both the same CRS and projection?   Is this the reason why the gps points are awfully off?


Are the coins scattered around the castle only useful for health?

There are four coins in the main hallway, and a number of them in the Boos in the yard. Is there anything to gain from them other than health? Do I get anything for collecting them, perhaps in a particular order?


Expressing the sign pattern $+--++--+\cdots$ in a series

I had to find the Taylor series for the function $f(x)=\cos(x)$ centred at $a=\frac{\pi}{4}$.  I found the pattern but the only part I'm missing is the sign. Since the series is centred at $\frac{\pi}{4}$, no value of $f^{\{n\}}(a)$ is equal to zero, and the pattern is $+, -, -, +, +, -, -, +$.  I have checked the answer that my teacher put in the document, but he just wrote      $$f(x) = \sum_{n=0}^{\infty}{\text{sign} \frac{\sqrt{2}}{2(n!)}}\left(x-\frac{\pi}{4}\right)^n$$   here $\text{sign} =+--++--++--+ \cdots$   which I find rather disappointing...      Is there a mathematical way to insert the sign pattern into the series, similarly to $(-1)^n$ for a normal alternating series?


Why beam something dangerous into space?

When the Enterprise crew are dealing with an explosive situation (literally), they sometimes beam the bomb, overloading phasor, maniacal android, etc into space ().  Why do this?  I mean, why rematerialize the item at all? It seems that they would be able to effectively neutralize the threat without releasing all that pent-up energy (or aggression). Maybe they could even do so in a more useful way, using it to power a reactor or steam engine or giant hamster wheel rather than wasting it on empty space. Has this ever been addressed?  Has there been an instance in the series, movies or even novels where something or someone has specifically not been rematerialized in order to neutralize a threat?


Extra number of gold badges appearing in profile

For a dupe clarification: My question is not a dupe of . Instead, my question is like a follow-up of that question. That one mainly reports the re awarding of badges, and not the number, which has not been fixed till now. I am reporting the number, not the re-awarding.    I  of the double rewarding of badges. That even happened to me. I was rewarded the marshal badge twice again. Looks like that has been , but still there is a bug left.  I just viewed my profile today, and here is what I saw:    6 gold badges?? Well I had only 4 of them till yesterday. So I thought it of course must have been because of the double rewarding. But opening my all badges, it looks as if the badges had been reversed, but not the numbers.   I still have only 4 gold badges:    But the number is wrong. I viewed a few more profiles too, and the same problem was there.


partition of an infinite set with copies

Here is my current concern.  Say that a set $E$ has the half-property when there exist sets $F$ and $G$ such that $E$ is the disjoint union of $F$ and $G$, $F$ and $G$ being isomorphic. Trivially, no finite set has the half property, whereas (trivially as well) any countable set or the set of real numbers has the half-property.  It seems to me that any infinite set has the half-property, but I feel that this could be related to some axiomatic system (involving the choice? I don't know). If $E$ is (up to isomorphism) a power set, then take $E'$ such that $E=\mathcal P(E')$, a in $E'$ and take $F$ as the subsets containing a and $G$ as the subsets without a; can this be helpful to solve the problem?  Thanks in advance for your thoughts!


Is it possible to replace (monkeypatch) PHP functions?

You can do this in Python, but is it possible in PHP?  >>> def a(): print 1 ...  >>> def a(): print 2 ...  >>> a() 2   e.g.:  <? function var_dump() {} ?> Fatal error: Cannot redeclare var_dump() in /tmp/- on line 1


Can I have one project in two SVN repositories?

Our I.T. dept doesn't allow connections to the SVN server from outside the physical office. (They're just kind of like that.) I need to work on projects when I'm not at the office.  I could just check out the project and wait until I come in to do a check-in. Maybe that would be best. But I like to check in frequently. I'm wondering if there's some way I can keep a project in two repositories and keep them both up to date. That way I'd always be able to check in somewhere in case my HD dies. I have my own repository on a VPS server that I use for personal projects.  I investigated the svn switch command. With my current project in both repos I tried switching my working copy from personal to work SVN servers...  $ svn switch --relocate svn+ssh://personalvps.com/svn/project/trunk svn://worksvn/project/trunk svn: The repository at 'svn://worksvn/project/trunk' has uuid '2baef97e-42ce-488c-bbba-c2625158c643', but the WC has 'f13e1f32-dc92-4c4a-b84d-34a59fe32063'   Then I tried adding the --username and --password params but got an error saying "no entry found."  Is this even possible or is it totally impractical?    UPDATE  Thanks for the answers. Unfortunately, any solution that involves action from I.T. (slight policy change, change a setting somewhere, install something) is not on the table. I have to find a solution within the current setup, which is no connections from outside except our Web servers.  I'll take a look at distributed version control.


How do I change my username and profile picture?

Can anyone please tell me how to change my name and profile picture on Stack Exchange?


What is the meaning of evaluating the divergence at a _point_?

Reading  first,   Divergence (div) is “flux density”—the amount of flux entering or leaving a point. Think of it as the rate of flux expansion (positive divergence) or flux contraction (negative divergence). If you measure flux in bananas (and c’mon, who doesn’t?), a positive divergence means your location is a source of bananas. You’ve hit the Donkey Kong jackpot.   Wikipedia has:   In physical terms, the divergence of a three dimensional vector field is the extent to which the vector field flow behaves like a source or a sink at a given point. It is a local measure of its "outgoingness"—the extent to which there is more exiting an infinitesimal region of space than entering it.   What puzzles me is, what's the direction?  Doesn't divergence need a direction too?  For example, say you have this 2d vector field  $$ F(x,y) = (x,y) $$  This field is everywhere "spreading" from the origin:    The divergence is:  $$ \nabla \cdot (x,y) = 2 $$  Ie everywhere positive.  Everywhere is a "source".  At every point, if you draw an infinitesimally small circle, as the Wikipedia definition has, no matter how small it is, that circle will see more "stuff" leaving it than entering it -- ie everywhere is a source.  But that only makes sense if you are talking as measured using a vector from the origin.  But nowhere in the definitions of divergence do I see this last bolded comment mentioned, making me uneasy.  Take a vector field with values in the opposite direction:  $$ F(x,y) = (-x,-y) $$    The divergence everywhere is  $$ \nabla \cdot (-x,-y) = -2 $$  Ie everywhere negative.  Everywhere is a "sink".  Ie the field "slows down" at every point.  If you are talking about every point, and the direction of flow is actually towards the origin.  Then and only then, is the function everywhere "slowing down".  So like, what exactly is the divergence at a point?  Does it really make sense?  Am I right about having to consider the direction as towards the origin in order for the "sources/sinks" idea to make sense?  Where is this stated?


Working with multiple workspace in Arcpy

I would like to work with 3 different workspace.  One folder (D:\stegdq\rasters) contains only rasters, this is satellite images folder, I would like to read only; one file geodatabase for the temporaly files (D:\temp.gdb); and one other gdb for the results - arcpy.env.workspace=r'D:\tes\gfrd\ujhateq\result.gdb'.  I would like to write one script containing every different steps in all, but how can I change between 3 workspaces? Now I have to run one by one, and I have to set workspace again. I'm a beginner in ArcPy.  input poligon (from results.gdb) bufferig-"25 Meters" (temp); then ListRasters (from the rasters folder); set env.snapRaster rasters[0]; input elevation_point.shp (from the result.gdb) with env.snapRasters interpolating (temp); sa.ExtractByMask rasters[0] (from satelite image with temp buffer); from these extract image RasterToPoint_conversion shp (temp) and RasterToPolygon_conversion shp (result); with temp_point ExtractMultiValuesToPoints (all satellite images from rasters folder); and extractValueToPoint (from elevation raster-temp) do some calculation in the attribute table (in the temp point table); join temp_point values to the polygon (from result.gdb)  Is it possible to handle this workspace change in one script? (ArcGIS 10.6)


Are there any alternatives for Visual Studio on Ubuntu? I searched on Google and I could not find anything.


Unable to update hostname output for Ubuntu Server (on Digital Ocean)

I recently created a droplet server at Digital Ocean named:  ubuntu-2gb-nyc3-01-2016-03-13   and then did a rename on the server at the Digital Ocean control panel, to exchange.mydomain.com.  Furthermore, I did the following command:  sudo echo "exchange.mydomain.com" > /etc/hostname   And verified it changed by doing nano /etc/hostname  However, when I type in hostname at the command prompt, the value is not reflecting the update.  What is the problem and how do I fix this?


I have Apple M1 MBP and want to use two external display monitors but out the box it is not possible. Is there a workaround them as I need 2 screen?


Square root of whole number number of solutions

Hi The GRE prep test is asking for the square root of a number.. for example $\sqrt{16}$.  It says the answer is $4$.  Couldn't the solution be both $4$ and $-4$?


Get Community involved in the close process

It's been noted that the Stack Overflow close vote queue has a few questions in it. More generally, it appears as though the Stack Overflow community cannot keep up with the volume of questions that need closing. Community  after 30 days if they are negatively voted and have 0 answers. Closed questions that are 9 days old are also deleted if they have a score less than or equal to 0 and no answer with a score greater than 0 (and a whole lot of other minor stuff). I propose adding an automated closing process between these two. A question would be automatically closed by Community if all of the following are true:  There is at least one close vote that is at least 9 days old The question has a score of 0 or less There are no answers with a score greater than 0  There are  (this will be slightly out due to )  Close Votes # Questions -ve Answer 0 Answer No Answer  ----------- ----------- ---------- -------- ---------  1           10130       69         5649     4412       2           5094        50         3135     1909       3           2566        29         1639     898        4           723         13         495      215        5           3           0          2        1         This means that if a question starts to be closed then there's 9 days to either get an upvote, an answer with an upvote or 100 views. Due to the automatic deletion there would then be another 9 days to get some redeeming feature (re-open vote, edit etc) before the question was deleted. I would add similar conditions to closing so if a question with a close vote got edited it would get an additional 9 days grace period. I imagine the main objection to this is that a single person can auto-close and then delete a question. It is already possible for a single person to delete a question and there are currently  where a single person can delete without oversight. This suggestion will actually give those questions a greater chance of survival whilst at the same time helping the site to stay "clean" better. 1. Whether it's time of day or summat this query was really difficult to run so sorry if there are problems.


Sidebar overlaps footer when scrolling down

I am not sure if this was previously reported (if so, please excuse me) or if it is even considered a bug, but i see what is shown in the image below when i go to "New Question" page in Stack Overflow and scroll down.


Can parameter sniffing happen in other RDBMSs, not just SQL Server?

I just found out that when googling for the parameter sniffing, SQL server is also on the recommended search list but not other RDBMS such as Oracle, MySQL, PostgreSQL. Even in this community,  tag almost comes with , but not for the others. Is parameter sniffing just a SQL Server thing? If so, why is that? If not, what is the reason that parameter sniffing is almost only linked with SQL Server?


Cardinality of the set of bijective functions on $\mathbb{N}$?

I learned that the set of all one-to-one mappings of $\mathbb{N}$ onto $\mathbb{N}$ has cardinality $|\mathbb{R}|$.  What about surjective functions and bijective functions?


I'm trying to group a bunch of data by the company name with all unique data for that company after it Example table Company name   Company Address   Order Number Company 1        Address 1         0001 Company 1        Address 1         0002 Company 2        Address 2         0003 Company 2        Address 2         0004 Company 3        Address 3         0005  What i would like is for the output to be like this Company name     Company Address   orders Company 1        Address 1         0001,002 Company 2        Address 3         0003,004 Company 3        Address 3         0005


How do I show that $\frac a{1 - a^2} + \frac b{1 - b^2} + \frac c{1 - c^2} \ge \frac {3 \sqrt 3}2$

For $0 \lt a, b, c \lt 1$, if $ab + bc + ca = 1$, show that $$\frac a{1 - a^2} + \frac b{1 - b^2} + \frac c{1 - c^2} \ge \frac {3 \sqrt 3}2.$$  I want to use trigonometric substitution:  For the angles $A, B, C$ of any acute triangle, $$\tan A + \tan B + \tan C = \tan A \tan B \tan C,$$ $$\frac 1{\tan A \tan B} + \frac 1{\tan B \tan C} + \frac 1{\tan C \tan A} = 1.$$  Also, $\tan A, \tan B, \tan C \gt 0$. So I substitute $a, b, c$ for $\frac 1{\tan A}, \frac 1{\tan B}, \frac 1{\tan C}$ respectively. Then the inequality in question becomes $$\frac {\tan A}{1 - \tan^2 A} + \frac {\tan B}{1 - \tan^2 B} + \frac {\tan C}{1 - \tan^2 C} \le -\frac {3 \sqrt 3}2.$$  Here $A, B, C \not = \frac {\pi}4$ since $a, b, c \not = 1$.  By the trigonometric identity $\tan 2A = \frac {2 \tan A}{1 - \tan^2 A}$, we have  $$\tan 2A + \tan 2B + \tan 2C \le -3 \sqrt 3,$$  where $0 \lt A, B, C \lt \frac {\pi}2$, $A, B, C \not = \frac {\pi}4$, and $A + B + C = \pi$.  How do I proceed?  Edit: The restriction $a, b, c \lt 1$ was added after the question had received some answers, thanks to Michael Rozenberg, who pointed out this mistake.


Proof that $\int_{0}^{1} \frac{f(x)}{f(x) + f(1-x)}dx = 1/2$, where $f:[0,1]\rightarrow \mathbb{R}$ is strictly positive and continuous?

I'm trying to prove this for Riemann integration (not very rigorously, just finding an outline for how the proof should go). The substitution $y=1-x$ seemed handy, as I got  $$\int_0^1 \frac{f(x) - f(1-x)}{f(x) + f(1-x)}dx = 0,$$ but I could not continue after that. Can anybody give me some kind of hint?


How to access a private List object of another object for testing in java

I'm facing to a similar kind of scenario as described below. Since I'm unable to share the actual code I'm using that.  I'm trying to test the addToList() method in the below class.  public class MyClass{      private List<String> nameList = new ArrayList<String>();      public void addToList(String name){         nameList.add(name);     } }   I want to check whether the list get updated by calling the addToList() method. (nameList.size() check is enough)  I'm writing JUnits and can't figure out a way to access that nameList after calling the method.      @Test    public void test() {       MyClass my = new MyClass();       my.addToList("one");       my.addToList("two");        // how to check the 'nameList' to complete the test    }   May be Reflections can be the solution for this, but still it is unclear.  What is the best way to do that (without changing the actual class).


biblatex: printing separate bibliographies

I'm using biblatex and I have it set up like this:  In my bib file I have 3 sorts of entrys, online, booklet, and book.   And in my thesis I want them printed separate like this:  \printbibliography[heading=subbibliography,title={Books},type=book, nottype=url, nottype=booklet, nottype=online] \printbibliography[heading=subbibliography,title={Websites},type=online, nottype=book, nottype=booklet, nottype=url] \printbibliography[heading=subbibliography,title={Misc},type=booklet]   For some reason this won't work, it still puts the websites where the books should be. And vice versa. The booklet thing does work though, it only shows my booklet entries there.  I recently started using biblatex so this might be a stupid question.