I have always found prepositions to be a fishy part of grammar in English.  Suppose we have a train, a bus, a car, a plane, a ship, a boat.  We can either say:   To get in the train (bus, car, plane, ship, boat). To get into the train (bus, car, plane, ship, boat). To get on the train (bus, car, plane, ship, boat).   But what is the big difference between them.  As I feel it:   "in" shows location and firstly means to get inside of them. "into" shows motion rather than the location. "on" means to board. But you cannot board "a car" for instance, so it doesn't always work.


I just got a failed audit by voting to close  as "too broad"; it has 15 upvotes, but it's very clearly a matter of preference, and both the linked MS documentation and all the answers given amount to "it depends".  I understand the need for automated selection of audit questions, but are we ever going to see a mechanism for when the auditbot clearly gets it wrong?


In some contexts, I see the \text command used as follows: $ A_\text B $ , which renders correctly as italics A subscripted by a roman B. However, I recall that I "read somewhere" that the proper usage is $A_\text{B}$ or even $A_{\text{B}}$. In particular, I note that importing packages like breqn introduces errors in the first and second cases. What is correct, and why?


elementary row operation change the eigenvalue of a matrix

I know that elementary row operations may change the eigenvalues of a matrix, but if these operations don't change the determinant, why should change the eigenvalues??  Thanks


I just want the skeleton of the sphere that you see in 'edit' mode. I need that in normal object mode. This below is what I am roughly trying to create.


Proof by induction of the formula for $2^0+2^1+2^2+...+2^n$?

$2^0+2^1+2^2+...+2^n$ for $n ∈ \mathbb{N} \cup \{0\}$.  I made a conjecture that this is $2^{n+1} - 1$. Now I have to prove it by induction.    I tested the base case where it's equal to zero, and it worked.  Then I did "assume $k∈ \mathbb{N} \cup \{0\}$ and $2^0+2^1+2^2+...+2^k$". I got marked down for saying "Let $n=k+1$", and did a bunch of math for it to become $2^{k+2} -1$ and I was apparently wrong >_>?


"Would have" in texts describing history

I have noted that in books/articles dealing with history, "would have" is often used. E.g.:     Many of the tools used by Woodland people would have been familiar to   their Archaic ancestors.      Such spears (made of yew or spruce) would have been thrusting weapons   not javelins, due to their poor piercing power as a projectile so   would have required the hunters to ambush their prey.   Is this usage related to likelihood/uncertainty? Would it change the meaning if I rephrase the first sentence and used "by Woodland people were likely familiar.."?  Or what if I use simply "past simple" tense in the other example?


If $x_n\leq y_n$ then $\lim x_n\leq \lim y_n$

Let $(x_n)$ and $(y_n)$ convergent sequence. Is there an easier way to prove that if $x_n\leq y_n$ for all $n$, then $\lim_{n\to\infty }x_n\leq \lim_{n\to\infty }y_n$ ?  This is how I do:  Let $\ell=\lim_{n\to\infty }x_n$ and $\ell'=\lim_{n\to\infty }y_n$. Suppose $\ell'<\ell$. Let $\varepsilon=\frac{\ell-\ell'}{2}$. In particular, there is a $N$ such that $y_N\in]\ell'-\varepsilon,\ell'+\varepsilon[$ and $x_N\in]\ell-\varepsilon,\ell+\varepsilon[$ and thus $y_N<x_N$ which is a contradiction with the fact that $x_n\leq y_n$ for all $n$.   I would like to know if there is another proof that doesn't use contradiction.


Lecturer with anxiety. How to survive in academia?

I've been a long time member of academia.SE but I created this alt account because the question is a bit embarrassing. I finished my PhD 4 years ago and after a 2 year postdoc at a different university secured a contractual lecturership. During my PhD I never realised I had fear of public speaking, because I always felt secure presenting in front of my supervisor. Even at conferences, his presence in the audience was enough to keep me relaxed.  Fast forward to my postdoc, I was mostly working and publishing by myself. So, even if I had to present something it was to my coauthors, with which I am okay. But as a lecturer doing research part of my time, I am involved in projects and seminars where I am expected to present my latest work. Being on my own has brought out my inner anxiety, so much so that I choked during a presentation, had to drink water to calm my nerves and apologise for my breathlessness and slurred speech. That was the most embarrasing thing in my life. Please note that the anxiety is not the result of me not publishing or doing research. I have published more than most in my department. Knowing that hasn't helped with the anxiety though. I am constantly making excuses to get out of project presentations and seminar talks. Fortunately, the anxiety is less intense in teaching and I am able to manage.   How do I survive as an academic? Now even conference presentations seem daunting. I can publish exclusively in journals, but how do I get out of giving project and departmental presentations? How can I politely refuse to present without revealing my situation? Or better yet, how do I fix the whole thing? That one bad presentation has really messed me up.


I have Gigabyte b75m-d3h rev1.1(1155) with Corei3 2340(3.4ghz). How do i get some video driver working? this is how it looks like.


im new to java swing and im building an application which creates a resume based on user inputs and then displays the resumes created.  i have a label which ask the user whether theyre part of a STEM course or not. so i have two radio buttons which accomplish that task with names : 1.STEM 2.Non STEM  ive added them to a buttongroup so only one is selected.  public void groupButton(){     bg1 = new ButtonGroup();     bg1.add(stemRadioButton);     bg1.add(nonStemRadioButton); }   Each time i try to get the value of the radio button selected it keeps returning a null value.  Im new to this and i think it might have been answered and any help would be of great help ! thanks in advance !  EDIT :: i try retrieving the value by bg1.getSelected().getActionCommand; ive also tried using the getText method too.


Cannot delete a file: System cannot find the file specified

I want to delete a file but it shows an error: "System cannot find the file specified"  what's the problem?  the file which I want to delete:    when I delete the file:      the file name is :  down2\548530.NetBeans_IDE_7.3_Final_rasekhoon.net


I am using GT-I8262 (Galaxy Core) android 4.1 does it support OTG?


MS Outlook: How to specify a different mail check interval? Every 5 minutes for Exchange and every 30 minutes for Gmail IMAP?

Outlook from time to time makes an operation 'Send and Receive.' This can sometimes be quite slow and Outlook hangs while this is done.    Is is possible to set different intervals for different mail accounts (if user has multiple accounts configured within Outlook, e.g., main Exchange account and one or more IMAP accounts) If yes (or even if only for some [e.g., IMAP accounts], where in the settings it can be configured?  (e.g., Outlook 2007)


How to disable JDWP interface on linux server?

I've seen this question on stackoverflow, but without a clear answer. How do you disable JDWP on linux server? We had a security team recommend to disable JDWP due to RCE.  Ref:   Thank you.


Why is $f^n(\xi(x))$ continuous over $x$?

Why is this function continuous over $x$? $$f^{n}(\xi(x))=\frac{-(n!\left(-f(x)+f(x_{0})+f(x_0)(x-x_0)+\ldots+\frac{f^{n-1}(x_0)*(x-x0)^{n-1}}{(n-1)!}\right)}{(x-x_0)^n}$$  I tried solving it via the Heine sequence criteria, but to no avail. I need someone help me with the explanation for this, please! Could the answer be, that since the left side of the equation is the final remainder of a Taylor series and a Taylor series converges to a certain function, then that remainder would ideally converge to zero?


Geometry dash lite to Geometry dash full version

I currently have the Geometry Dash lite version and I want to buy the full version. Can I login with my account of Geometry Dash lite and keep everything I already had? It would suck if I had to redo everything.


How close do two objects have to be to considered 'in contact'?

On a large scale, normal reaction force is supposed to occur when two objects come into contact. But how is contact defined here? If you have a book sitting on a table, how close do the particles that make up the book have to be to the table's particle in order to be considered 'in contact'?


Allowed transformations in General Relativity

So in Special Relativity we have: $$ \Lambda \eta \Lambda^T=\eta $$  Is there an analagous formula for the metric in General Relativity?


Why can't I get the size of a List that is the value of a Map key

I receive this error:  Incorrect parameter type for subscript. Expected Number, received Text  when I try to access the size of a List like this:  <apex:outputText value="{!accountsMap[key].size}" />   with a Map declared in the controller like this:  public Map<Id, Account[]> accountsMap {get; set;}   Does this just not work or am I missing something?


I have to proof that every retraction is a quotient map.. I have no idea where to start or what to use! A retraction $r:X \rightarrow A$  is a continuous map s.t. $r(a)=a$ for every $a\in A$.


How can i fix this error when i run sudo apt-get update command?

W: Failed to fetch http://ppa.launchpad.net/docky-core/stable/ubuntu/dists/raring/main/source/Sources  404  Not Found W: Failed to fetch http://ppa.launchpad.net/docky-core/stable/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.


I need a tutorial on how to install World of Warcraft for Ubuntu.


Is there a collection in C# working like dictionary with multiple keys allowing bidirectional access? For example:  Collection<int, string> a = new Collection<int, string>(); a.Add(1, "a"); a.Add(1, "b"); a.Add(2, "a"); a.Get(1);//returns ["a", "b"] a.InverseGet("a"); //returns [1, 2]


Does any example of a function continuous at rationals and discontinuous at irrationals exist?

Does any example of this particular type of function, stated below exist?          f:$R\to R$ is continuous at every rational numbers and discontinuous at every irrational points. I can't find any example. If there does not exist any such function then why?


I keep getting spotting in my render preview on a lightbulb I'm making, it doesn't seem to be anything to do with my hardware as I've rendered far more complex scenes than this more of something I'm missing either in the lighting or the object settings, can anyone help?


Java- Default constructor with one initialized variable of type array and calling it in main

I have this program which has a class Ant where:  The default constructor initialises the instance variables queens to only 1 queen named “Beth” and colonySize to 100,000.  The defined constructor takes in two parameters and initialises the corresponding instance variables.  The method display, shows the information about an ant in the format below:  This ant colony has the following queens: Queen 1: Beth The colour of the ants: black The approximate colony size: 100000   Here is what I have done:  public class Ant {  private String[] queens; private String colour= "black"; private int colonySize;   public Ant(){     queens[0]= "Beth";     colonySize= 100000; }  public Ant(String[] queens, int colonySize){     this.queens[0]= queens[0];     this.colonySize= colonySize; }  public void display(){     System.out.println("Queen 1: "+ this.queens[0]);     System.out.println("Colour of the ants: "+colour);     System.out.println("The size of the colony: "+ this.colonySize);    } }   The prob is arising when I am calling it in the main.  Main Class  public class MainAnts {      public static void main(String[] args) {         // TODO Auto-generated method stub         Ant obj= new Ant();        obj.display();      }  }   I am getting a Null Pointer Exception (because I suppose that's not the right way to call the display method in the main since it has an array variable).


Which FLOSS Python CMS for video sharing in a school?

I have an university project in which we develop a video sharing system for schools. Our central use cases are as follows:   The system has to manage videos (and associated arbitrary metadata) Where management includes uploading, transcoding, browsing (by metadata) and playing The system has to implement a 3-tier release process:  pupils may add videos to the system teachers may approve added videos, publishing them to other pupils administrators may revoke the approval of published videos    The system needs to be developed in an agile fashion, oriented on Extreme Programming. As a result, the system needs to be implemented in a programming language, the developers are familiar with. The biggest overlap in competences of the developers is Python, so with additional functional requirements to be expected:   The system needs to be implemented and extensible in Python.   The system needs to be released to the general public, so   The system and all components need to be licensed as open source.   Which extensible open source Python CMS, supports video content and a role-based workflow?


Should I just paste the code in the main template file, or is there any other recommended way of attaching new Jquery plugins in Drupal 7?


$\gcd(a,b)=1, x^a = y^b\Rightarrow x = n^b$, $ y = n^a$ for an integer $n$.

If $ a$, $ b$, $ x$, $ y$ are integers greater than $1$ such that $ a$ and $ b$ have no common factor except $1$ and $ x^a = y^b$ show that $ x = n^b$, $ y = n^a$ for some integer $ n$ greater than $1$.  I started this way: $x^a=y^b$ $=>$ $x=y^{b/a}=(y^{1/a})^b$. Thus $x$ is an integer, and so is $y^{1/a}$, so $y=n^a$ for some integer $n$ greater than $1$. Then from the given relation, we get $x=n^b$.   I am not very convinced with my solution, as I feel I did some mistake. Can anyone point out where the mistake is? Any other solution is also welcome :)


Why float, double and long double gives the same output?

It might seem a dumb question but I am very confused about it. I wrote a simple program as follow: #include<iostream> using namespace std;  int main()  {  float a = 12.555555555555; double b = 12.555555555555; long double c = 12.555555555555;  cout <<a<<endl;  cout <<b<<endl; cout <<c<<endl; return 0;  }  Although I am using different data type with each variable but the result of output is same for all these variables and that is 12.5556. I was expecting different precision for double and long double as compared to float. I am using DevC++ IDE.


Using "Neither am I" to introduce an additional comment

I was wondering whether I can use "neither am I" to add an other comment to a statement. For example,     I am not ignorant to the shortcomings ..., neither am I blind to the   negative consequences ....   In my opinion, it is somehow different to     but I could be wrong. Can at least someone tell me whether it sounds weird?


ssh error: connection closed by remote host

When trying to SSH into a particular Mac machine it gives me the following error :  ssh_exchange_identification: Connection closed by remote host   I have done some google searches on the issue but I haven't seem to find a definite answer. I did notice that on the machine that I am trying to SSH into, it does not have the ~/.ssh file even on there so I went ahead and created it and gave it correct permissions but that didn't help. Here is the verbose of when attempting to SSH into it:  penSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: Connecting to <ComputerName> [xxx.xxx.xxx.xxx] port 22. debug1: Connection established. debug1: identity file /Users/<UserName>/.ssh/id_rsa type 1 debug1: identity file /Users/<UserName>/.ssh/id_rsa-cert type -1 debug1: identity file /Users/<UserName>/.ssh/id_dsa type -1 debug1: identity file /Users/<UserName>/.ssh/id_dsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2 ssh_exchange_identification: Connection closed by remote host   Any ideas on how to get SSH working?


$a^b > b^a$ or $a^b b$ where $a,b$ are positive real numbers

I was trying to find a simple relationship between mutual exponentiation of two positive real values, if one of them is greater/smaller to another.


Free software for starting graphic design

I'm starting out in graphic design. What is the best free software available? Also, are there any recommendations for PC equipment and tips for getting the best outcome?


If I have a column with entries like 0,0,red,0,green,0,0,0,brown,0,0,0,...,  why does this not work: postproc cell content/.code={ \ifnum##1=0 \else   @cell content={cellcolor{##1}{##1}}       \fi},  What do I have to do?  \documentclass[border=5mm, varwidth]{standalone} \usepackage{colortbl} \usepackage{pgfplotstable}  \pgfplotsset{compat=1.17}  \pgfplotstableread[]{ No  Color 0    0 1    brown 2    0 3    0 4    red  5    0 6    green 7    green 8    0 }\mytable  \begin{document} \pgfplotstabletypeset[string type, columns/Color/.style={ %% Does not work! %postproc cell content/.code={ %\ifnum##1=0 \else %  @cell content={cellcolor{##1}{##1}}       \fi}, }, ]{\mytable} \end{document}


New to Ubuntu Is it possible to install Ubuntu on my Compaq 420 windows 7 pc?

my DXDIAG file info:    Machine name: HP-PC    Operating System: Windows 7 Ultimate 32-bit    Language: English (Regional Setting: English) System Manufacturer: Hewlett-Packard   System Model: Compaq 420   BIOS: Default System BIOS   Processor: Intel(R) Core(TM)2 Duo CPU     T6570  @ 2.10GHz (2 CPUs),   Memory: 2048MB RAM Available OS Memory: 1976MB RAM   Page File: 1294MB used, 2657MB available   Windows Dir: C:\Windows    DirectX Version: DirectX 11 DX Setup Parameters: Not found    User DPI Setting: Using System DPI  System DPI Setting: 96 DPI (100    percent)    DWM DPI Scaling: Disabled   DxDiag Version: 6.01.7601.17514 32bit Unicode


The Weblogic servers we are using have been configured to allow JNDI datasource names like "appds".  For development (localhost), we might be running Tomcat and when declared in the <context> section of server.xml, Tomcat will hang JNDI datasources on "java:comp/env/jdbc/*" in the JNDI tree.  Problem: in Weblogic, the JNDI lookup is "appds" whilst in Tomcat, it seems that that I must provide the formal "java:comp/env/jdbc/appds". I'm afraid the Tomcat version is an implicit standard but unfortunately, I can't change Weblogic's config ... so that means we end up with two different spring config files (we're using spring 2.5) to facilitate the different environments.  Is there an elegant way to address this. Can I look JNDI names up directly in Tomcat? Can Spring take a name and look in both places? Google searches or suggestions would be great.


Since the weapon is built in a planet, where it's aiming depends on the planet's rotation.    Say I wanted to destroy a planet that was above[*] me (I'm evil like that!), how would I manage that?    [*] e.g. a planet from a star system that is directly above the base's North pole


Can I get $$...$$ to behave like \[...\]?

Is it possible to modify LaTeX so that good old $$...$$ behaves like \[...\] (and by this I mean that it should be synonymous to it).  If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! (Not that I really believe you will actually do this.)  MWE (even if I don't really see its use in this case):  \documentclass{article}  \begin{document}  I've forgotten we're not in the plain \TeX\ world anymore: $$ x = 3\alpha^2 + \beta   = \int f\, d\mu. $$  \end{document}


Matrix rank and linear independence of functions

The following proposition is easy to verify:  Given $n$ functions $f_1,...,f_n$, they are linearly independent in an interval $I$ if there exists a set of $n$ points in $I$, namely $x_1,...,x_n$, such that the matrix \begin{pmatrix} f_1(x_1) & \cdots & f_n(x_1) \\ \vdots & \ddots & \vdots \\ f_1(x_n) & \cdots & f_n(x_n) \end{pmatrix}  has full rank.  My question is: can I replace the if by if and only if? That is, if  $n$ functions are linearly independent, is it true that there exists a set of $n$ points such that the above matrix has full rank? I am pretty convinced so, but I am not being able to prove it.


How safe is stinky tofu since it does smell like feces? Is there risk of bad prep when making it or coming out of places with questionable food safety practice?


ubuntu 14.04 wont boot after installation

I just installed Ubuntu 14.04  After the installation it won´t boot and I done the boot-repair in Ubuntu and I Think I have the right boot-setting in BOIS. It will directly go to the windows OS.  After the boot-repair it send me this:  What should I do?


Why doesn't Princess Leia go straight to Yavin IV?

At the beginning of A New Hope, Princess Leia has just received the stolen plans for the Death Star. Yet rather than take these plans directly to the Rebel base on Yavin IV, she first stops off to pick up Obi-Wan Kenobi. From dialogue in the movie we also learn that, after picking-up Kenobi, she is supposed to go to Alderaan to meet-up with her adoptive father Bail Organa. Presumably then everybody would proceed to Yavin IV from there.  If we take into account the events of Rogue One, Bail Organa told Leia (offscreen) to go to Tatooine to get Kenobi, however this was done before Leia ended-up with the Death Star plans. You would have thought, given the change in circumstances, she would determine that it's more important to get the plans to Rebel command than stop off at Tatooine first. Especially as, at this point, she would have known about the Death Star's destruction of Jedha.  Have I missed any movie dialogue that describes or implies why Leia thought it more important to go to Tatooine, then on to Alderaan, before taking the Death Star plans to Yavin IV? Or is there anything in any of the books or supplementary material to explain it?  Of course if she had gone straight to Yavin IV with the plans then the original movie would have been very different!


Is exFAT now the best choice for an external hard drive that will be used for Windows, Mac, and Linux?

I'm running a Windows, Mac, Linux tripleboot off of a single SSD, and am now, unsurprisingly, in need of additional storage space in the form of an external hard drive. I want to format my hard drive so that files that can be read and written from all three operating systems.  According to this  from 2009, NTFS can be used on Windows, Mac, and Linux, after installing some drivers.  However, it looks like the , and , so NTFS is no longer a viable solution for Mac OSX.  So the question is, what is the best file system to use today for an external hard drive connected to Windows, Mac, and Linux?  I'm thinking exFAT, since Windows and Mac support it natively, and (Ubuntu) Linux supports it after running sudo apt-get install fuse-exfat.  Are there any limitations I need to consider?


Prove that $g(z)=\overline{f(z)}$ is complex diﬀerentiable at $a$ if and only if $f'(a) = 0$.

Suppose that $f$ is holomorphic in $\Omega$, and let $g : \Omega → > \mathbb{C}$ be given by $g(z) = \overline{f(z)}$. Prove that $g$ is   complex diﬀerentiable at $a$ if and only if $f'(a) = 0$.     I have tried the basic limit definition for derivatives but couldn't come up with a proper solution.  Also I know that for a complex valued function $f=u+iv$, If $u$ and $v$ have continuous first derivatives, then $f$ should be analytic on $\Omega$. But I'm not exactly sure whether it will be useful here.   Hep would be appreciated


grep on windows-created txt file doesn't match strings on mac - why?

A colleague created a build tree (via gradle :dependencies > dependencies.txt) and emailed it to me. I grepped for a library I wanted to know the version of so I executed: grep log4j dependencies.txt  but got zero matches and my shell just printed a new prompt. Since it was a long file and I trusted grep, I didn't open it and check. Then after a lot of back-and-forth discussion I was told that the file was created on a Windows machine. Even then I was surprised that grep wouldn't work - the search string isn't interrupted by newlines. But after executing: dos2unix dependencies.txt  Grep started showing the matches I wanted. Obviously my understanding of how grep works was incorrect. Why would grep not behave the same way on file contents on different operating systems when the search term occurs without any newlines in between? Further info  file dependencies.txt returns dependencies.txt: Little-endian UTF-16 Unicode text, with CRLF, CR line terminators LC_ALL=C  grep  log4j dependencies.txt returns nothing grep o dependencies.txt returned Binary file depdencies.txt matches grep --text  dependencies.txt returned nothing


Don’t open new window when mounting USB key

Every time I plug in a USB device or SD card, Nautilus brings up a new window at that path. I know that there used to be a configuration option to determine whether or not you want this to happen, but I can’t find it any more. So where can I deactivate this? I only want the device to be mounted, not brought up front.


How did Newton explain the effect we now call Newton's Rings?

I'm trying to understand how Newton formulated his corpuscular theory of light when he was surrounded by evidence of light's wave-light properties. Specifically, the effect that we now call , which he discusses in Optiks.  Newton discusses the Rings in Part 1, Book 2 of Optiks (page 160 of ), but having read it, and various other parts, I can't figure out how he jumps from the observation of refraction to the conclusion that light must be made out of corpuscles, and not a wave-like phenomena.


Is Site Traffic Data Gone for Good After Fixing Previous Bug?

There was a previous bug affecting site traffic statistics showing -zero- for months (). This has been fixed in that it is now graphing the data.  It appears that previous data may be lost? The graphs below are from . I don't have access to any other sites' graphs to see if they are showing similar results.


How to reinstall Windows 7 using in-place upgrade when the system is unbootable?

I've experienced some freaky data loss in Windows 7 & tried to recover the files. (.) The work data is safe but I also decided to copy everything missing back into Windows directory & rebooted thinking that the recovery mode would be a better option for rolling back to a restore point. Shockingly, the only options System Restore gave me were from November 2010 (2.5 years old) despite many updates & installs since. I thought that only the dates were corrupted but when I scanned for software to be affected by the roll-back, the list included everything installed since then. On top of that, something got screwed up in the OS and I can't boot even into Safe Mode - the system BSODs supposedly on compbatt.sys (which I've already tried to copy from the original distro).  Since I have many settings not saved, I don't want to perform a clean install of the OS. The problem is that the install disc keeps on telling me that upgrade can be performed only from the fully-booted system and not from the recovery mode. This is very annoying because all previous versions of Windows could be upgraded from DOS or PE.  Thus, the question is: how can I fix my OS without formatting the drive if it's not bootable & System Restore is broken?


What percentage of devices have each of the Android versions?

We're starting out with some Android development in our company, and I'm working out which  Android versions we should support.    In one of Google's videos from  (22:34 minutes in) there is a pie chart showing roughly a third of users each for Android 1.5, 1.6 and 2.1.    Does anyone have a more up-to-date source for the percentages of active Android devices with each version of the platform?


Broken package after update: linux-headers, error: BrokenCount >0

Ubuntu 12.04.  After an update, I get a red warning icon in the system tray, warning about an error: broken count >0  Opening Update manager, I see that the broken package is linux-headers-3.2.0-33-generic-pae (new install)  Specificaly I have my ubuntu on an AspireOne with 8gb internal storage.  I tried apt-get clean as suggested in another question on this site, and tried reinstalling the package in Synaptic.  I have tried to reboot but to no avail.  I have also tried apt-get install --fix-broken and I get the following:  sudo apt-get install --fix-broken [sudo] password for elina:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   linux-headers-3.2.0-33-generic-pae The following NEW packages will be installed:   linux-headers-3.2.0-33-generic-pae 0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded. 1 not fully installed or removed. Need to get 0 B/977 kB of archives. After this operation 11,3 MB of additional disk space will be used. Do you want to continue [Y/n]; y (Reading database ... 437051 files and directories currently installed.) Unpacking linux-headers-3.2.0-33-generic-pae (from .../linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb (--unpack):  unable to create `/usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h'): No space left on device No apport report written because the error message indicates a disk full error                                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried all suggestions I could find:  sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove sudo apt-get update sudo apt-get upgrade sudo apt-get -f install sudo apt-get install --fix-broken   Then I saw that on the error there was a mention about free space. So I did a df -h and the result was:  Filesystem      Size  Used Avail Use% Mounted on /dev/sda1       7,0G  5,5G  1,1G  84% / udev            235M  4,0K  235M   1% /dev tmpfs            97M  816K   96M   1% /run none            5,0M     0  5,0M   0% /run/lock none            242M  352K  242M   1% /run/shm   I see that on my root folder I have 1.1Gb free. The broken package is   linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb   which only takes up 11.3Mb on my hard drive.  I'm soooo lost. I really hope there is something I'm missing here. I don't want to go about reformatting this bucket. It's really not worth the time. Any help for fixing this would be hot.


How to show that a sequence does not converge if it is not bounded above

I am trying to show that this sequence $\{a_n\}$ = (2n+1)/(3n+5) does not converge to $42$ if it is not bounded above. I have already showed that it converges to $2/3$. For this I want to use a proof by contradiction,i.e, I assume that the sequence does converge to $42$, which will lead to a contradiction to the initial assumption that is the sequence will be bounded above. Any ideas or theorems that can help me solve this question?


Why $(x^3-8)/(x-2)$ is not defined at $x=2$??

The problem:  $$g(x) = \frac{x^3-8}{x-2}$$ Explain why $g$ is not defined at $x=2$.  My solution: $$g(x) = \frac{x^3-8}{x-2} = \frac{(x-2)(x^2+2x+4)}{x-2}$$ The two $(x-2)$ get canceled $\implies x^2 + 2x + 4$. --> This should be undefined at $x=2$, not really. But if we don't change the function it is of course not defined at $x = 2$, because it would give us a $0$ (zero) at the denominator. That gives us infinity. Please help, not if sure if I am on the right track. Thank you very much


When should I consider a dedicated server instead of cloud VPS?

Currently I have a web app running where I have 9 VPS servers connected to a Load Balancer. As my web app has been getting traffic, I've been purchasing new VPSs to handle the load. Managing so many of them is pretty annoying and I don't really have time to learn Puppet/Chef.   I am wondering, would I get more output if I purchase say 2 high end dedicated servers assuming that my Ubuntu/Apache config would be cloned over to them? Is there any way to estimate the gains/loses in hit/sec that I would get? Right now most of my VPSs are 8GB ram with low CPU priority.   This is my level of volume right now:   Often times I have spikes of up to 2k/sec. My VPS system seems to cap at around ~850/sec.  Would going dedicated by the next logical step?


Having difficulty solving ODE: $y' = \frac{1}{2} a y^2 + b y - 1$ with $y(0)=0$

I am studying for an exam about ODEs and I am struggling with one of the past exam questions. The past exam shows one exercise which asks us to solve: $$y' = \frac{1}{2} a y^2 + b y - 1$$with $y(0)=0$  The solution is given as $$y(x) = \frac{2 \left( e^{\Gamma x} - 1 \right)}{(b + \Gamma)(e^{\Gamma x} - 1) + 2\Gamma},$$ with $\Gamma = \sqrt{b^2 + 2a}$  I have tried numerous approaches, among other Bernoulli differential equations and variable separable methods. I keep on getting stuck on solving the integral that I encounter, and if I am able to solve it it looks nowhere near the solution as provided by the professor. If someone could show me the steps I would be very thankfull! I have invested too many hours of my time on this question now and giving up is no more option!


Physical position eigenfunction normalisation

We know that the Dirac function $$\delta(a)=\lim_{a \rightarrow 0} \delta_{a}(x)$$ can be written as an infinitesimally narrow Gaussian: $$  \delta_{a}(x) := \frac{1}{\sqrt{2\pi a^2}}e^{-x^2/2a^2}$$  Our professor told us that for any value $a>0$, the physical position eigenfunction is $$\psi_{x_0}(x)\cong N_1\delta_a(x-x_0).$$  How can I show that $\psi_{x_0}$ is a physical position eigenfunction?


I'm trying to load data from different tables using left outer joins into a QgsVectorLayer. The approach I'm following so far is the one from the developers cookbook . The underlying database is postgres. The query returns correct data, including a geometry column, however I can't figure out how to get the join inside the query to work with . As the table the data come from needs to be specified, is it even possible to do so?  Would approaching the problem using psycopg2 be more suited, and if so, is there a way to create a layer from the result set? The only way I can think of is creating an empty layer and adding each feature individually by looping over the result set. But possibly there is an easier way?  Sadly, using the builtin DB Manager is not an option. The layer has to be added programmatically.


Do you know an elegant way to align multiline nodes according to first line, e.g. for use in a legend?  Compare this example:  \documentclass{article} \usepackage[%   paperwidth=7.5cm,%   paperheight=5.5cm,%   margin=0.25cm,%   marginparwidth=0cm,%   centering,% ]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \pagestyle{empty} %%%%%%%%%%%%%%%% \begin{document} \sffamily %--------------------------------------% \newlength{\tikztwo} \settowidth{\tikztwo}{\,two (2) lines\,} \newlength{\tikzthree} \settowidth{\tikzthree}{\ three (3)\,} %--------------------------------------% \begin{tikzpicture}[very thick,every node/.style={node distance=0.2cm}]   % The grid:   \draw[step=0.1cm,very thin, lightgray] (0,0) grid (6,4.5);   \draw[step=0.5cm,thin, gray] (0,0) grid (6,4.5);   %------------------------------------------------%   % Only for comparison:     \draw[blue,text=black] (0.25,3.5) -- (1,3.5)       node[anchor=west]{one line entry};   %------------------------------------------------%     % No positioning at all, "anchor=north west" is even worse:     \draw[magenta,text=black] (3.25,3.5) -- (4,3.5)       node[anchor=west,text width=\tikztwo]{two lines entry 0};   %------------------------------------------------%     % First attempt, node (A) only for positioning:     \draw[green] (0.25,2.5) -- (1,2.5) node[anchor=west](A){two};     \draw (2.12,2.285) node[text width=\tikztwo]{two (2) lines entry 1};     % Second attempt, node (posA) only for positioning:     \draw[green] (3.25,2.5) -- (4,2.5) node[anchor=west](nodeA){} node[anchor=west](posA){two}       node[below right=-0.439cm and -0.276cm of nodeA,text=black,text width=\tikztwo]       {two (2) lines entry 2};   %------------------------------------------------%     % First attempt, node (B) only for positioning:     \draw[red] (0.25,1.5) -- (1,1.5) node[anchor=west](B){three};     \draw (1.88,1.048) node[text width=\tikzthree] {three (3) lines entry 1};     % Second attempt, node (posB) only for positioning:     \draw[red] (3.25,1.5) -- (4,1.5) node[anchor=west](nodeB){} node[anchor=west](posB){three}       node[below right=-0.411cm and -0.276cm of nodeB,text=black,text width=\tikzthree]       {three (3) lines entry 2}; \end{tikzpicture} \end{document}   You can see first a two line node without positioning. After that I show the two attempts to manage what I want. Both have drawbacks, though: With both the positioning is done manually. With he first one you have to change the coordinates of the nodes, if you change the coordinates of the path. With the second this one does not happen, but you have to change the coordinates, if you change the text, exactly if a sign with uppercase length is added or removed (remove the number with the brackets for a test). Also it is not intuitive, that there I have to change the second coordinate to have an effect in the x-axis and vice versa.  BTW: The nodes that I marked “only for positioning” can be removed or commented out after the work is done.


Get list of required libraries when installing something from source

When installing something from source (say, Ruby 1.9.2), what command can I run to get a complete list of all the dependencies needed to install that application? Is this possible?


Let matrix $A_{n\times n}$, be such that there exists a matrix $B$ for which $$AB-BA=A$$  Prove or disprove that there exists $m\in \mathbb N^{+}$such  $$A^m=0,$$  I know $$tr(A)=tr(AB)-tr(BA)=0$$ then I can't.Thank you


German tv-seriers about paranoid man believing he is not in the real world

This is a tv-series made in the 70's in West Germany.  The plot is a man that senses that everything is not as it seems, he feels like everything is a computer simulation. There are people after him trying to prevent him from discovering the truth. A woman is helping him.  Spoiler tags might not be needed but the ending is:      It turns out he is right. His mind has been projected into a simulation while  he is beeing cured of a disease. They try to prevent him of discovering the  truth to prevent his mind from harming itself.


I've followed the instructions from this question   I tried all the possible repositories but It keeps installing the 2.18 version.  Can anyone explain me how to install qgis3 on ubuntu 16.04 please?


How to know if the system console is open?

Can we know, with python, if the system console of blender is open? I know that we can open or close it with this function:  bpy.ops.wm.console_toggle()   But it doesn't return the 'state' of the system console like open or closed (True,False).  I want to be sure that the console is open when i execute one of my script.


Product of factorials divided by factorial to produce perfect square

Let $ S = 1! ~2!~\dotsm ~100! $. Prove that there exists a unique positive integer $k$ such that $S/k!$ is a perfect square.   I thought this was a cute, fun problem and I did solve it, but any alternative methods that you guys would use?


What is the difference between "Green" and "Gold" Open Access?

What is the difference between Green Open Access and Gold Open Access?  Are there other "flavors" of Open Access?


Is there a way to do proportional editing only on specific vertices?

I have split several chains of vertices into groups in an attempt to access only one chain at a time for modeling, and it seemed to work yesterday. Today I can't isolate them when I use proportional editing. Is there something I need to do differently? Here is the situation: I am building a model of the mountain below (it's on the Moon, so there aren't any files out there with its topographic information, and only one high-resolution photo exists). I have to figure out the relative height of its ridges by judging what the lighting means. So I drag parts of the vertex chains marking the ridges up and down using proportional editing, in right ortho view. The other vertex chains I don't want to move remain visible, otherwise I can't judge their relative position, but I don't want to move them.  Edit - I see now why it sometimes works - the circle marking the edge of the proportional effect is actually a sphere. If it doesn't touch adjacent vertex chains, then it works the way I want.


Anyone know how to get this font with standard Tex?

The math font looks spectacular here, and I want to use it for my thesis (LaTeX):   A sample:   An ideal answer would involve a few lines that could be placed in a preamble without downloading extra stuff (I'm using Latexian).


How would I use apostrophe for nonplurals?

When you have a plural, it usually ends with an 's'. For example, girls, boys, chickens, bicycles. If you would like to show possession, you add an apostrophe to the end, with no extra 's'. So, we get The girls', boys', chickens' and bicycles' food is iron. However, if you had a singular noun ending with an 's', like Jesus or watercress, would write the possessive form like this "Jesus', watercress'" or like this "Jesus's, watercress's"?


Say that $S$ contains binary strings of length $n$ s.t. no two strings in $S$ differ in exactly one position.  How would I prove that $S$ contains no more than $2^{n-1}$ strings (Note $n$ can be any positive integer)  I can't seem to find a way to do even start this problem.


Is it “what movie did you watch?” Or “ which movie did you watch?”

I’m confused about the right way of saying it. Please tell me the correct answer and why it is correct.


Let me preface this by saying that I’m aware of how this all sounds, and ultimately I’m probably an idiot.   Without getting into a long back story, I recently found myself on a website seeking a sugar daddy (I already know what you’re thinking). Finally find a potential candidate. We start talking about an arrangement. Offering $500 a week allowance. I created a separate bank account with a separate bank that I don’t use for protection. He wants the debit card number, not the account number, to load the account. He paid my phone bill, but then ordered 3 new iPhones (sirens start blaring). One is supposed to be for me. They are being sent to my address, so I’m hoping if this really is a scam, I can intercept them and send them back.


Windows 7 (home) - How to select text in hypertext links

I have seen many duplicate questions like ,  and on the , but none of them have a satisfactory and perfect solution. Here's my problem:  I was reading ; in the article there is a link mentioned like below:        I want to select  the word leniency from the link and copy it somewhere, but I have to select all the link text and then remove anything I don't need, or open the web site and then copy it from the destination once loaded. I guess there's a better way to do this.  Once, a friend of mine suggested some sort of F1 - F9 combination along with another key to do this, but I forgot that combination.  Any ideas how to do this?


Why can't we feel acceleration under free fall?

It's a common experience when we are in some vehicle like a car being accelerated we can feel the "invisible push/pull" or acceleration caused due to the change in velocity I assume we can always trust this ability of ours to decide if we are being accelerated whether in car/bus/train/rocket whenever our velocity changes we can feel it. In physics lectures you often hear professors saying that when a body say a closed box is freely falling (ff) say towards the earth, the man (or whatever) inside can never tell if he is in ff or somewhere in quiet space away from all matter with no gravity around.  But now you can see the problem in former the man's velocity is increasing by $9.8~\mathrm{m/s}$ every second now if I give a super-car and you put on the accelerator definitely your friend sitting besides, even if blind and deaf can tell if he is indeed accelerating or not. So now here is my question why the man inside the ff box can't feel the acceleration and (his velocity is changing wildly) and how is his state identical to that of a man standing still in deep space with no gravitational pull around.  I was seeking a intuitive answer which doesn't involve relativity theory as I don't understand it yet and which could be explained by classical mechanics.


ApachePOI Nullpointer Exception for cell.getCell()

The problem I am facing arises whenever I am trying to obtain a cell. The funny part is that this function works fine till it reaches this part of the code.          for (i = 1; i < 555; i++)          {                        try             {                 cell = sheet2.getRow(i).getCell(columnNo);                           }             catch (NullPointerException e)             {                                cell = sheet2.getRow(i).createCell(columnNo);             }             value = "NOT(ISERROR(MATCH(C" + (i + 1) + ",$N$2:$N$710,0)))";             cell.setCellFormula(value);         }   Because of try catch i get the error for createCell, but i believe that the problem lies at the line where i use getCell. I get the following error : Exception in thread "main" java.lang.NullPointerException  Just before this part, i have a for loop(pasted below) which works just fine.          for (i = 1; i <= incorrect.size(); i++) {             cell = sheet2.getRow(i).getCell(columnNo);             if (cell == null)                 cell = sheet2.getRow(i).createCell(columnNo);             value = incorrect.get(i - 1);             cell.setCellValue(value);         }


Finding the optimal number of hidden nodes and training epochs for function approximation

In an attempt to find the optimal number of hidden nodes and number of training epochs (to obtain optimal performance while not over-fitting) in a single-hidden layer neural network, I generated the following figure.    The application is function approximation of temperature data and the error measure displayed in the figure is therefore mean square error (MSE) in degree Celsius squared. I used the Levenberg-Marquardt training algorithm and split the dataset into training(70%)-validation(15%)-test(15%) subsets. The neural network has 5 inputs and 1 output.  In Fig. a) the MSE falls to approximately 0.129 (training) and 0.144 (validation) at n=5 and remains there, meaning the network weights and biases have converged. However, in other applications, the validation error typically starts to increase at a given training epoch n (see for example Fig.1 in ). In such cases training should stop before this value of n. Why doesn't Fig. a) show this trend? Is there a neural network theorem or guideline stating what behaviour can be expected for different types of applications?  Similarly, in Fig. b) it seems that all errors continue to decrease. How should the optimal number of hidden nodes be selected given such a graph? Should I evaluate the number of hidden neurons at much higher values? (beyond $N_h$=98 I run into memory problems...).


What is the default resolution of a wallpaper that fits the homescreen exactly in an Android phone?

On an Android phone the wallpaper spans across all of the home screens.  So what size should pictures be to fit properly as custom wallpapers?


Make a Launcher for a Privileged Terminal Command

I want to make a Launcher that will do privileged (requires root) commands, but I don't want to see the terminal or have to type my password into the terminal. So I found the command, gksudo that allows me to enter my password so that I can escalate my privilege level. Now I want to couple this, so that I can change the partition priority using this command cgpt add -i 6 -P 0 -S 0 /dev/sda (this command is privileged) and have it automatically reboot from this one launcher.  I setup a Luncher like this:  Name: ChromeOS  Description:  Command: gksudo gnome-terminal -e "cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot"  Comment:  But it does not work. Any tips?


DPKG is showing "trying to overwrite '/etc/xdg/xfce4/whiskermenu/defaults.rc', which is also in package xfce4-whiskermenu-linuxlite 2.1.4-1"

Correcting dependencies... Done The following additional packages will be installed:   xfce4-whiskermenu-plugin The following NEW packages will be installed:   xfce4-whiskermenu-plugin 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 8 not fully installed or removed. Need to get 0 B/143 kB of archives. After this operation, 721 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 342996 files and directories currently installed.) Preparing to unpack .../xfce4-whiskermenu-plugin_2.1.5-0ubuntu1_amd64.deb ... Unpacking xfce4-whiskermenu-plugin (2.1.5-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/xfce4-whiskermenu-plugin_2.1.5-0ubuntu1_amd64.deb (--unpack):  trying to overwrite '/etc/xdg/xfce4/whiskermenu/defaults.rc', which is also in package xfce4-whiskermenu-linuxlite 2.1.4-1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/xfce4-whiskermenu-plugin_2.1.5-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


What is the difference between "Country of Issue" and "Country of Citizenship" of a passport?

On multiple occasions I have seen forms where it needs to be stated what the Country of Issue and what the Country of Citizenship is. What is the difference between the two, if your passport is issued by a consulate in a foreign country. Technically the soil of a consulate belongs to its own country. So both the country of issue and citizenship should be the same. At least that is what I would say. But if this is the case, why do some forms require to fill in both?


Adding page numbers in QGIS Layouts can be done with the [% @layout_page %] expression. In Reports, however, the [% @layout_page %] expression always remains "1"  How do we insert the page number in a Report?


Can't pass null for argument 'pathString' in child() in Firebase Database

This is my fire base data structure:   I am retrieving the data from database using the following method  private DatabaseReference mFirebaseDatabase=FirebaseDatabase.getInstance().getReference();;     private FirebaseDatabase mFirebaseInstance;  mFirebaseDatabase.child("users").child(userId).child(time).addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(DataSnapshot dataSnapshot) {                 String value = dataSnapshot.getValue(String.class);                 Log.d("Tag", "Value is: " + value);                 System.out.println("Values is :::::::::::::::::::::::::::::::::::: "+value);               }              @Override             public void onCancelled(DatabaseError databaseError) {                 // Failed to read value                 Log.w("Tag", "Failed to read value.", databaseError.toException());               }         });   i am getting the below error   Caused by: java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()   please help  userID part, this is where i create a new entry to store data to the table   private void createUser(String name, String time, String lat, String lon) {         // In real apps this userId should be fetched         // by implementing firebase auth         if (TextUtils.isEmpty(userId)) {             userId = mFirebaseDatabase.push().getKey();             System.out.println("Userid is ------------------------------> "+userId);         }          User user = new User(name, time,lat,lon);          mFirebaseDatabase.child(userId).setValue(user);          addUserChangeListener();     }      /**      * User data change listener      */     private void addUserChangeListener() {         // User data change listener         mFirebaseDatabase.child(userId).addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(DataSnapshot dataSnapshot) {                 User user = dataSnapshot.getValue(User.class);                  // Check for null                 if (user == null) {                     Log.e(TAG, "User data is null!");                     return;                 }                  Log.e(TAG, "User data is changed!" + user.name + ", " + user.time);                 System.out.println("User data is changed!" + user.name + ", " + user.time);               }              @Override             public void onCancelled(DatabaseError error) {                 // Failed to read value                 Log.e(TAG, "Failed to read user", error.toException());             }         });     }   The above code is used for userId generation,userId is dynamically created every time when a insert function is called


Why -16 reputation in my Stack Overflow account?

This morning I logged into my Stack Overflow account and then it displayed my account reputation like this:        But after some time I lost 16 reputation (see below). Why? I don't know.


This is a repost of a closed previous question to provide more details. I'm working on an alternative to iframes because WP.org balks at them and tends to reject plugins that have them (I know this from experience)  So, here's the code I have to try to replace an iframe: add_action('wp_ajax_myAction', array($this, 'myAction_ajax_handler'));  public function myAction_ajax_handler() {    echo time();    wp_die(); }  When the admin page is displayed, I have this:    echo '';    echo '

';    ?>               <?php  It works. Here's my questions. Is this the proper way to do this? Is there a better way to do this instead of polling with setTimeout? EDIT  Clarification: The purpose is to have PHP provide the time, not JS.  Reason being, if this is the proper method to do a wp_ajax call to a PHP function and provide the time then other things can be substituted for time(), like querying a database and outputting the results. This then gives me a template to get near real-time PHP results onto an admin page without the user constantly clicking the refresh button. I've seen examples that use XMLHttpRequest.onload = function () {   // Do something with the retrieved data ( found in xmlhttp.response ) };  instead of onreadystatechange.  Does it matter which I use? I realize the downside of polling is that it's hitting the /wp-admin/wp-ajax.php roughly every second in this example.  And yes, a push notification method would be much nicer and I've even looked at server-sent events (Content-Type: text/event-stream"). So far, I've seen nothing that I'd be able to comprehend and integrate into WP admin pages. WebSockets was suggested in a previous post.  While I've played with WebSockets and I could likely get it to work, not all shared hosting sites have Node.JS installed by default or even allow WebSockets.  As a plugin, this would need to work basic WP installs on cheap shared hosting. Thanks!


My question is :     It is true that $\mathbb{C}[X]/(x-c)$ and $\mathbb{C}[X]/(x-d)$ are isomorphic $\mathbb{C}[X]$-modules if and only if $c=d$?   I have the feeling that the answer is simple but I haven't found it.


User Mapping on a DB that's part of an AG. DB is READ only?

I'm a sys admin being tossed in to a DBA role. I currently have two SQL Server boxes, 2016 Enterprise, in an AG. The DB has synchronized without any issues.   A third party vendor needs to have an identical user on both servers with the same User Mapping. But when I try to adjust the mappings on the secondary I get an error stating that the DB is in READ ONLY mode. How can I create this user with the correct mappings?


If $f \in L^{\infty}$ and $\exists r < \infty$ so that $\|f\|_r < \infty$, show $\lim_{p \rightarrow \infty} \|f\|_p = \|f\|_{\infty}$

Question: This is the last part of a 5 part question I am working on. Let $(X,\mu)$ be a possibly infinite measure space. Assume $\exists r < \infty$ with $\|f\|_r < \infty$ and that $\|f \|_{\infty} < \infty$. Show that $\lim_{p \rightarrow \infty} \|f_p\| = \|f\|_{\infty}$.   This is from Real and Complex by Rudin, chapter 3 exercise 14.  Progress: I have shown that $\|f\|_{\infty} \le \lim_{p \rightarrow \infty} \|f\|_p$ as follows,  Fix $\epsilon > 0$. Let $E = \{x : |f(x)| > \|f\|_{\infty} - \epsilon \}$. Then observe $$ \|f\|_p \ge \left( \int_{E} |f|^p d\mu \right)^{1/p} > \left( \int_{E}(\| f \|_{\infty} - \epsilon)^{p} d\mu \right)^{1/p} = \left( \|f\|_{\infty} - \epsilon \right) \mu(E)^{1/p}, $$ thus, $\lim_{p \rightarrow \infty} \|f\|_p \ge \|f\|_{\infty} - \epsilon$ since $\mu(E) < \infty$.   I attempted something similar for the other direction, but could not say the measure of a set was finite like (I think) I need for this argument to work. Here is what I tried:  Since $\|f\|_r < \infty, \exists R$ so that $|x| > R \implies f(x) < \frac{1}{2}$. Let $A = \{ x : |x| \le R \}$ and $B = \{x : |x| > R \}$. Then, $$\|f\|_{p} \le \left( \int_{A} |f|^p d \mu + \int_{B} \frac{1}{2^p} d\mu\right)^{1/p} = \left( \int_{A} |f|^p d\mu + \frac{1}{2^p} \mu( B ) \right)^{1/p}.$$  If $\mu(B) < \infty$ this can easily show the desired result. Moreover, if I could show that there is a family of sets $\{B_p\}$ that act similarly so that $\mu(B_p)$ grows slower than $e^p$, then I can also complete the proof.  Thoughts?


Boy and girl paradox is driving me crazy

I know this question is asked over and over, but I still can't understand anything.  Say I'm introduced to a random father of two and I want to know what's the probability that both his children are boys. Currently:   BB BG GB GG ⇢ 1/4   Where the first letter represents the younger sibling and the second letter represents the older sibling. So far so good.  (1) Now the father tells me that his youngest child is boy:   BB BG GB GG ⇢ 1/2   (2) If, instead, he told me that at least one of his children is a boy:   BB BG GB GG ⇢ 1/3   Makes sense, kind of.  (3) But if the father brought one of his children with him without telling whether he's the younger child or the older child and that child happened to be a boy, I think I could have still honestly arrived to the 50/50 probability:   BB BG GB GG ⇢ 1/2   Where the first letter represents the boy I've just seen and the second letter represents his sibling.  Now, say, the father first told me that he has at least 1 boy. That's the case (2).  Then the father called (one of) the boy(s) here, and somehow the situation turned into the case (3)!  What exactly has changed? What kind of new information did I just get? OK, I've seen (one of) the boy(s), but the only thing it tells me is that one of the children is a boy, which I already knew from the father's own words.  It seems to me that anything he could bring that has some kind of relationship to (one of) the boy(s) so as to allow me to uniquely identify him would work: a photo, a footprint on a beach, etc. Even if he simply told me that he has just thought about one of his children who is a boy, I think I could still have done this:   BB BG GB GG ⇢ 1/2   Where the first letter represents the boy the father has thought about at XX/XX/XXXX XX:XX:XX UTC, and the second letter represents his other child.  Is this magic? Or am I just stupid?  Can't I simply construct such a way of identification myself? For example, let the first letter represent the youngest boy (the only boy if there's just one), and let the other letter represent the other child. Since the father is not an abstract entity, this would uniquely identify some child.    I don't see how changing the representation changes things.  Say I saw one of the father's on a photo behind a thick blurry glass that doesn't let me see whether it's a girl or a boy. Therefore:   BB BG GB GG ⇢ 1/4   Where the first letter represents the child on the photo and the second letter represents the other child.  Now the glass is removed and I can see the photo clearly and it's indeed a boy:   BB BG GB GG ⇢ 1/2


Do "who" questions not get auxiliary verb?

Normally, if I want to build a question about someone's verb, then I know the following formula.    building of statement.  Adding auxiliary verb in the beginning of the sentence and make it question.  adding WH question word before the auxiliary verb   For example:      It makes him happy > Does it make him happy? > What does make   him happy?   Now my question is why do when we use the verb "weights" then we don't use the auxiliary verb in the 3rd stage (wh question word):      He weights 80 kg > Does he weights 80 kg? > Who weights 80 kg?   I found just a few results for: "who does weights" and a pretty much of them are not relevant. Maybe it's not about the word "weights" but it's about the wh question "who" that behaves as exceptional for the mentioned formula, and I see it a lot in the spoken language, but I don't have enough knowledge to say it confidently.


Should I use IIS or my DNS provider to redirect my naked domain to its www version?

How do I get the naked domain for my site that is typed into a browser (example.com) to automatically redirect to www.mywebsite.com. Would this be done on the internal IIS web server or through the registration service DNS settings?   I use Register.com and I tried asking their technical support, but they did not answer my question with a usable solution.


Build your first unlock package- Salesforce DX Badge

I am trying to complete my "Build your first Unlocked package" step in the "unlocked Packages for Customers" Badge  while doing this i am getting this error  The error is following:  ERROR running force:package:version:create:  AccountController: SELECT Id,Name,Active__c FROM Account WHERE Active__c                ^ ERROR at Row:1:Column:16 No such column 'Active__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.  I fail to understand whats causing this error.  Can somebody please help me through this? would be much appreciated


After drag & dropping by accident a .xpm file on the top bar, the right-hand side is now totally missing (see attached example of missing pieces) :(  How can I get this back, please? Update: It seems I am using gnome (flashback) Metacity (and no I don't want to switch to Unity just in case somebody's asking :) Update2: Running dconf reset -f /org/gnome/gnome-panel/ solved my problem!


declaration of a local array of size 10^6 in c

I can declare an array of size 10^6 globally in c, but when I declared it inside the main() function it doesn't work.Why is it so? this statement causes runtime error:  int main() {     long long arr[1000001];     return 1; }   but this runs perfectly:  static long long arr[1000001]; int main() {     return 1; }


Unsure of the understanding of in list2=i[:4] Python 3++

I've stumbled upon this for loop. In the for loop, I can't understand i[:4] operation. The i variable will receive all the values from the 'cast' while the j variable will receive the corresponding index value. However, when I move down to the list2=i[:4], I can't get it. Does it mean to transfer the first four values in i? So i can contain ['A','B','C','D','E'], but it will only pass on the values from A to D to list2? Am I right?      for i,j in zip(movies['cast'],movies.index):      list2=[]      list2=i[:4]      movies.loc[j,'cast']=str(list2)


Term for words like Snowmageddon, Nipplegate and even cheeseburger?

Is there a term for words like Snowmageddon, Nipplegate and even cheeseburger?  I know they're portmanteaus (or portmanteaux), but they seem to belong to a special class of portmanteau.  In the title examples, Armageddon, Watergate and hamburger seem to be the "mother" terms respectively (more so than snow, nipple, and cheese), and the derived terms Snowmageddon, Nipplegate and cheeseburger seem to be child terms in the sense that each clearly alludes to its mother term and could conceivably have sibling terms like Floodmageddon, Lewinskygate, and chiliburger.  Actually, the more I thought about examples of this phenomenon, the more I came up with examples that fit the description but weren't strictly portmanteaus. One might be "Rat Pack", which gets referenced by "Brat Pack" and "Frat Pack". Idk, maybe I'm getting too inclusive.  Is anyone familiar with a term for this or has seen a list of them? I love lists.


Badge notifications from other sites should not use the icons from the current site

Badge notification from other sites (here, meta.SE) should use their resp. badge icons (here, the default), not the ones from the site I'm currently on.  Failing that (because, do we really want to load all the icons?), use the default icons in notifications.


I have a valid US greencard, is transit visa necessary

I am a Russian citizen with a valiid green card, and I am flying from Miami To Saint Petersburg Russia with 2 layovers in Shengen countries. A 6 hour in London, and 2 hours in Finland. Will I require a transit visa? I will not be leaving the airport, just going to my connecting flight.


I have a 80Gb HDD with one partition for Ubuntu and want to partition it into two partitions 60G/20G.   How can I do this?


How can I connect my Clash of Clans village to my Google Play account on a Nokia XL?

When I try to connect to Google Play, it would say "download Google play service". After I downloaded it, it says that it is "not supported by your device, please contact the manufacturer".


How I can have an object in the foreground with a transparent background? I do not want to have a background that is just keyed out because that always leaves halos even when I do the correct lighting. So how would I go about having a background that is transparent alpha channel and all? Also what video file do I have to use to preserve the alpha channel?


Why those latex editors with real-time preview are so slow in rendering previews?

Merely adding two letters will take a few seconds for editors such as OVerleaf/Sharelatex to render a preview. How could this be the case? I just need a draft preview.  Are there any latex editors that run faster in previewing?    PS: high-end core i7


So everything was fine until i used katoolin to install kali scripts on ubuntu, now when i sudo apt-get install, i get the error message telling me  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   However when i run the apt-get -f install command, i get another error message,  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/gconf-service_3.2.6-3_amd64.deb   Im still relatively new to linux, and im hoping this is a simple fix, can anyone give me a heads up on how to fix this?


Python regex findall works but match does not

I'm testing this in IPython.  The variable t is being set from text in a dictionary and returns:   u'http://www.amazon.com/dp/B003T0G9GM/ref=wl_it_dp_v_nS_ttl/177-5611794-0982247?_encoding=UTF8&colid=SBGZJRGMR8TA&coliid=I205LCXDIRSLL3'   using this code:  r = r'amazon\.com/dp/(\w{10})'  m = re.findall(r,t)   matches correctly and m returns [u'B003T0G9GM']  Using this code,  p = re.compile(r) m = p.match(t)   m returns None  This appears correct to me after reading this documentation.   I also tested here to verify the regex before trying this in IPython   What am I missing?


Find a bijective function that maps integers to rationals $f: \Bbb Z\rightarrow \Bbb Q$

How would you go about creating a function that maps these sets? I understand that it exists and why it exists but I can't think of a way to accurately represent the function. Any help is appreciated.


Over a dozen close recommendations are needed?

This review  seems to need at least a dozen close recommendations:


Cancer a method for early Earth Evolution?

Something I have been wondering for a while is looking at cancer from an evolutionary standpoint.  It's easy to conclude (from observations today) that cancer is something we would rather avoid. However I kept asking myself what would be the purpose of cancer existing in the first place? In my experience of studying biology if a organism or mechanism in nature exists it is because there was a pressure to create it.  It has led me to think that perhaps early on, when cells were just beginning to clump together forming very very primitive organisms, that cancer was a way for a cell to proliferate very quickly and make their particular genomic sequence more common within what would have been organisms made of a lump of cells. Perhaps the different organs we have today exist not just because there was environmental pressure to have a specific organ with a specific function. Perhaps the cells descended from a "cancer" that proliferated faster over other cells in a primitive ancestor of that organism.  The answer that "cancer exists because our bodies make mistakes" doesn't satisfy me when everything else around us evolved and formed due to a multitude of different pressures.  In an effort to make this question less broad my question is basically this:  Is it plausible that cancer is a phenomenon that began to occur relatively early in Earth's evolutionary history as a form of survival for cells in primitive organisms or am I applying evolutionary theory incorrectly?  (I know there is a better word for "pressure" to describe the variables that guide evolution but right now my brain can't come up with anything better).


How can I achieve shadows only at the corners of a rectangle?

I'm looking to recreate this effect in Photoshop by giving a shadow only to the corners of the rectangle (in this case a sticky note):


Booting A Pendrive On Lubuntu for windows

I have recently installed Lubuntu on my acer aspire 4720z and wanted to switch back to windows but the main problem is that i cannot get the iso over the USB by rufus( as it is not recognising my pendrive, i have installed rufus-3.13.exe from the rufus website and ran it from the Lx terminal by the command - wine rufus-3.13.exe but it is not recognizing my USB) I tried to write my USB via an app ( i think it is disk) but when i start my system and tried to USB boot via the pendrive, it says that there is no operating system. PLZ HELP ME OUT. I am trying to install win 8.1 or 10 or 7 but plz get me out of Lubuntu............PLZZZZZZZZ


I am on a conference in Paris and I have free time after 7 pm. What can I see at this time? Last time I went up the Eiffel tower, this was great at night and still open. What else can I do?   Which sights have long opening hours?


When can I use "while" instead of "when"?

I have been learning English for a long time, but still don't understand about the when/while difference and their usage.  When can I use "while"?


Deleted Ubuntu 20 alongside windows 10 and unable to install again

I have installed Ubuntu 20 alongside Windows 10, then removed Ubuntu and grub issues were also solved, now I am unable to install Ubuntu 20 again. I am installing through USB and a black screen comes with some lines.  It is when I am booting the installer. Ubuntu is not installed on my system.


What is the main reason that reset nets are low true? Is this so that any noise on the GND doesn't reset your system? If it was high true than couldn't you save the little leakage current that is always wasted in the pull-up?


How long should I cook a 10lb chuck roast on low in the crock pot?

How long do I cook a 10 lb chuck roast in my crock pot?


Set different blank screen timeouts when on battery or ac

is it possible to set different blank screen timeouts in Ubuntu 18.04 with Gnome when on battery or ac? The power settings menu provides only one field which is applied always, no matter of the current mode.  This question was already asked for the Unity desktop a while ago () and they did not find a solution but I had the hope that that might have changed with Gnome now.


Is the electromagnetic force responsible for contact forces?

It is commonly stated that there are four fundamental forces, or interactions, in nature. It is natural to consider which of those is responsible for the normal force we meet in elementary physics. What is the nature of the force exerted on a body by the floor on which it rests?  Of the four forces, the only one that seems relevant is the electromagnetic force, and I always assumed the repelling force in question is ultimately the EM one. The Wikipedia article on  seems to agree:     Molecular and quantum physics show that the electromagnetic force is the fundamental interaction responsible for contact forces.    An alternative explanation is that the force results from Pauli's Exclusion Principle; however, reasonable as it may seem, it doesn't seem to answer the question of what force is actually at play here. The exclusion principle isn't a force, or at least it's not normally described as such.  I've recently come across a rather forcefully presented argument that states that the normal force is a macroscopic force that is not directly reducible to the EM force, or to any of the other forces; rather, it does indeed result from Pauli's Exclusion Principle by way of interaction of electron wave functions. The argument further claims that attempts to correct the Wikipedia article have met with the usual "source needed" objections, and that this topic is either misunderstood by or poorly covered in the standard texts.  (The argument can be found ).   Which way is it?


Python: Iterate over unique combinations in a list

I have a list that contains 16 unique numbers:  list = [1, 2, 3, 4, 5, 6, 7,...,16]   I want to iterate over all possible combinations of 4 of the numbers, eg:  iterate1 = [1, 2, 3, 4] iterate2 = [1, 2, 3, 5] iterate3 = [1, 2, 3, 6] . . .   Numbers in the list cannot repeat.


Can I delete unnecessary device simulators of Xcode?

I found that Xcode on my laptop consumes much of its storage, so I am trying to delete unnecessary files in Xcode.  There are four directories under Application/Xcode.app/Contents/Developer/Platforms/. I feel that WatchSimulator.platform and AppleTVSimulator.platform are not necessary, because I use Xcode almost only for basic iOS development.  I would like to know if I can delete those platforms directories directly?


Word to describe person who is rich in wealth, but is poor in class?

Looking for a word to describe a person who is rich in wealth, but is poor in class.  I've heard of words to describe poor people who have no class or manners, words to describe rich people who have class and manners, but I've not heard of a word to describe people who are rich in terms of wealth but lack manners and class.  Is there a specific word for that? I'm looking to describe a few men in politics who clearly best exemplify this but I don't have a word to describe them besides "poor in class but filthy rich"?  The sentence I wanted to use is:  "Some men in politics, such as Donald Trump and Ted Cruz, have very contrasting attributes. Because they are both filthy rich, yet class is nowhere to be seen, I like to call these two _________"


What is the name for a word that contains other words?

Is there a technical name for a word that contains other words? I'm thinking about the contained words having all the letters in the order they appear in the original word. For example, "spawn" contains spa, pawn, paw. I'm also hoping to find a more technical word than "Kangaroo words" or "Matryoshka words" if there is one--something like "paraprosdokian" or "palindrome" etc.


Money proof for getting Canadian visa for Iraqi citizen

For getting Canadian Visa How much money is generally required in order to be sure we are eligible?


What age group did Tolkien write The Hobbit for?

Tolkien wrote The Hobbit as a story for children. However, I've never seen a specific age mentioned. Did Tolkien intend the story for young children or for teens?   What reading level should a child be at to understand and enjoy The Hobbit?


java.lang.ClassNotFoundException for SQLite when JDBC dependency included in maven (NetBeans 12.3)

I'm new to Maven and NetBeans. I can run my project just fine from within NetBeans. My problems are currently starting after I "Clean and Build" to distribute test versions of my application. I was under the impression that if the jdbc was declared in the Dependencies section of the POM.xml, that would translate to the built version of the application, but when I run java -jar <application>.jar  I get a java.lang.ClassNotFoundException  Basically, I want this to go away. I've tried moving a manually downloaded version of the sqlite-jdbc-3.7.2.jar to various different places within the project files, then doing a Clean and Build, with no luck. I've also experimented with "addClasspath" and "additionalClasspathElements" tags in the POM, again to no avail. I have also yet to find clear enough answers to how classpath in java even really works, as well as how it works with maven. If I was to copy my source from this project to a non-maven project and import the .jar's as I need them, would this be easier?


Load alternative source after External JavaScript code failed to load

Because the GFW of china ban google service, It is hard to use stackoverflow. Currently, I am using a chrome extension to replace google js lib. But today, I meet a big problem - Human Verification. I don't know why stackoverflow see me as a bot.But the bot checker is using google recaptcha:  http://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=en&_=1438579013137  Failed to load resource: net::ERR_CONNECTION_TIMED_OUT   which that chrome extension do not contain...so I can not see captcha, can't pass bot checker, can't post a question.... stackoverflow maybe add more External JavaScript in future, load alternative source would cover more user, make site more strong.  Above is why I make this feature request.


If $A$ countable then $\Bbb{R}^2\setminus A$ is path connected

Let $A\subset\Bbb{R}^2$ be countable. I need to prove that   $\Bbb{R}^2\setminus A$ is path connected.   I know that through each of $\Bbb{R}^2\setminus A$, there pare uncountably many straight lines, and as there are only countably many points in $A$, uncountably many of these lines will not contain any point of $A$. But why do I construct a path between any two points.  Also can this result be generalised, so that:     If $X$ is uncountable and $A$ is a countable subset of $X^2$, then   should $X^2\setminus A$ be path connected.? (where $X$ and $X^2$ are   path connected of course)


While trying to fix an  I think I found a possible bug in adjustbox: It seems to reset the text color in the node. In the following picture all words in the first line should be red, but the content of \maxsizebox and everything following it is colored in the current color (i.e. black).    \documentclass{article}  \usepackage{adjustbox} \usepackage{tikz}  \begin{document} \begin{tikzpicture}    \node [text=red] {       NODE:       Before       \maxsizebox{!}{1.8ex}{Box}       After    }; \end{tikzpicture}  \bigskip \color{blue} NORMAL TEXT: Before \maxsizebox{!}{1.8ex}{Box} After \end{document}


Optimization Calculus - Largest rectangle that can be inscribed in an ellipse

A geometry student wants to draw a triangle inscribed in the ellipse $x^2+4y^2=16$. What is the area of the largest rectangle that the student can draw?  I know the final solution is $16$, but I am not sure of how to get that answer.


How do I get rid of these weird light reflections on the floors and walls?

Hello, I am currently working on a 3D scene and this has happened to me several times by now and I still haven't found a solution. Increasing light bounces or samples doest seem to work. This rendder has 215 samples and MIN 4 light bounces, max 4 light bounces.


Given $a,b,c,d$ such that $a + b + c + d = 4$ show that $$(a^2 + 3)(b^2 + 3)(c^2 + 3)(d^2 + 3) \geq 256$$   What I have tried so far is using CBS:  $(a^2 + 3)(b^2 + 3) \geq (a\sqrt{3} + b\sqrt{3})^2 = 3(a + b)^2$  $(c^2 + 3)(d^2 + 3) \geq 3(c + d)^2$  $(a^2 + b^2)(c^2 + d^2) \geq (ac + bd)^2$  Then, we have:  $(a^2 + 3)(b^2 + 3)(c^2 + 3)(d^2 + 3) \geq 9(a + b)^2(c + d)^2$.   Thus, we have to prove that $9(a + b)^2(c + d)^2 \geq 256$.  Then, I used the following substitution:  $c + d = t$ and $a + b = 4 - t$.  We assume wlog that $a \leq b \leq c \leq d$.  Then, $4 = a + b + c + d \leq 2(c + d) = 2t$. Thus, $t \geq 2$.  Then, what we have to prove is:  $9t^2(4 - t)^2 \geq 256$.  We can rewrite this as:  $(3t(4 - t) - 16)(3t(4 - t) + 16) \geq 0$, or $(3t^2 + 2t + 16)(3t^2 - 12t - 16) \geq 0$,  at which point I got stuck.


HTML from advertisement not rendered correctly

I have many times found CSS written on my screen besides images from Stack OverFlow.   It is associated with the advert from Rackspace  Here is a screenshot:


umask (octal form) and umask -S (symbolic form) outputs are different. why?

Related to file and directory permissions and umask: Why the command umask (shows the octal form) and umask -S (shows the symbolic form) show different (actually the option -S shows the bits negations of the octal form)? I was expecting the umask in symbolic form for umask 024 to be u=---,g=w,o=r but it shows like this: [user1@server-base ~]$ umask 0024 [user1@server-base ~]$ umask -S u=rwx,g=rx,o=wx


Is product of two square roots of two integers square root of their products?

Suppose      $a,b\in \mathbb{Z}$. Is it true        $\sqrt{a}\sqrt{b}=\sqrt{ab}$. If so, then     $\sqrt{-1}\sqrt{-1}=\sqrt{(-1)(-1)}=\sqrt{1}=1$  But we know      $\sqrt{-1}=i$ and so $i^2=-1.$ Finally we get     $i^2=-1=1.$  Which is not true. What is the logic behind it?     Thank you in advance.


How strong is Trunks in Dragon Ball Super?

One of the last episodes of Dragon Ball Super raised me this question.  Trunks fights alongside Goku against Black and Zamazu in Super Saiyan 2 state. But how strong he really is? In the fight Goku is Super Saiyan Blue and black Super Saiyan Rose, but he is able to score some succesful punches/attacks to Black and Zamazu, even though it doesn't hurt them. At the beginning of his appearance in Dragon Ball Super he is shown to fight Dabura. Later he is knocked in a training match against Goku Super Saiyan 3 (did he have a zenkai boost there?), and later he is knocked by Vegeta when training with him in Super Saiyan Blue (did he have another zenkai boost there?). And I've heard that in the manga he's a match for Goku in Super Saiyan 3, plus some mental training he has made since his appearance. Is Trunks now stronger than a Super Saiyan 2, may be at the level of a Super Saiyan 3? Or is he fighting alongside Blue and Rose super saiyajins just a plot-hole?  We've seen a super saiyan 2 can be at the level of a super saiyan 3 already when Beerus tell to Vegeta that he made he uses more of his power in his fight (1% he says) than Goku in Super Saiyan 3.


I'm confused about a   1 vCore 2,4 GHz 2 Go RAM SSD 10 Go Local Raid 10   vps capabilities!! Can i use this vps for hosting 4 websites with no problem. To be more specific one of the websites will have at least 1000 visit per day. Thank you.


CogSci is now Psychology.SE but SEDE isn't aware of it

SEDE seems to be unaware of the name change on Cognitive Sciences (to ).  The site icon is a broken image and the text of the site name still reads "Cognitive Sciences" instead of "Psychology & Neuroscience".        This image is from the list of all sites and is representative of both the main site and meta site list items. The "visit site" link URL is also still "cogsci.se.com" but that is valid because it's a redirect, though the "correct" link "psychology.se.com" would probably be preferred.


I modified sudoers. All users can not use sudo now. How should I fix this?

I was trying to save times to type password for sudo because one of my scripts had to be randomly repeated quite often.  I googled some information about how to bypass typing password and applied to my server.  Now the sudo account is corrupted and all the users on server cant not use sudo.  How can I fix this?  What I did:   I created mysudoers in /etc/sudoers.d/  sudo vim /etc/sudoers.d/mysudoers Added my account in mysudoers  rna ALL = NOPASSWD: ~/scripts/getLog save & exit chmod  sudo chmod 0440 /etc/sudoers.d/mysudoers   Error log when I type sudo :  rna@rna-P580:/etc/sudoers.d$ sudo                                                                sudo: >>> /etc/sudoers.d/mysudoers: syntax error near line 0 <<< sudo: parse error in /etc/sudoers.d/mysudoers near line 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin


How did the Millenium Falcon get so close to Starkiller at light speed?

I was watching The Force Awakens the other day and I wondered something. The novelization of A New Hope and countless other books in the EU say that its impossible to go to lightspeed in the presence of a strong gravitational field, in other words, a planet. Also, I read that a planet can pull a ship out of lightspeed.   So how is that Han got so close to Starkiller at lightspeed?


Trying to overload operator<< in template class

(this is an old exam for my current course) I'm trying to overload operator<< in a template class but when I compile the code and run the program i get this message: /usr/bin/ld: /tmp/cc2BvB2u.o: in function `main': /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:30: undefined reference to `operator<<(std::ostream&, Wrapper<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&)' /usr/bin/ld: /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:31: undefined reference to `operator<<(std::ostream&, Wrapper<int> const&)' /usr/bin/ld: /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:32: undefined reference to `operator<<(std::ostream&, Wrapper<int> const&)' collect2: error: ld returned 1 exit status  All the other tests (my cout:s) are acting as I would expect. Down below here I've put all my code for this program. When I have used friend for overload of operator<< this hasn't been a problem. Anyone knows what wrong I'm doing and how to solve it? //wrapper.h #ifndef WRAPPER_H #define WRAPPER_H  #include <ostream>  template<typename T> class Wrapper { public:      Wrapper();     Wrapper(T const&);     Wrapper(Wrapper const&);      T get_value() const;     void set_value(T const& v);      Wrapper& operator=(T const& rhs);          friend std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w); private:     T value; };  template<typename T> std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w);   #include "wrapper.tcc"  #endif  //wrapper.tcc #ifndef WRAPPER_TCC #define WRAPPER_TCC  #include "wrapper.h"  template<typename T> Wrapper<T>::Wrapper()     :  value{}     {}  template<typename T> Wrapper<T>::Wrapper(T const& t)     :   value{t}     {}  template<typename T> Wrapper<T>::Wrapper(Wrapper const& w) {     *this = w; }  template<typename T> T Wrapper<T>::get_value() const {     return value; }  template<typename T> void Wrapper<T>::set_value(T const& v)  {     value = v; }  template<typename T> typename Wrapper<T>::Wrapper& Wrapper<T>::operator=(T const& rhs) {     value = rhs;     return *this; }  template<typename T> std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w) {     os << w.get_value();     return os; }  #endif  //main.cpp #include "wrapper.h" #include <stream> #include <string>  int main() {     //test     Wrapper<std::string> w1{"hej"};     Wrapper<int> w2{3};     Wrapper<int> w3{w2};     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w1.set_value("nej");     w2.set_value(10);     w3.set_value(20);     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w3 = w2;     w1 = "men...";     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w1 = "jo..";     w2 = 42;     std::cout << w1;     std::cout << w2;     std::cout << w3;     //         return 0; }  Thanks if you spent your time on this problem!


How many "Recommend Close" votes is too many?

Consider this Low Quality review:    Based on the answer in , it appears that:     Since questions with close flags are sent to the Close Queue, "Recommend Close" basically ends up punting the question from one queue to another.    In the time since I voted to close the question with a binding vote, six people voted to "Recommend Close", then there was one more binding close vote, then three more Recommend Close votes, before it was finally closed.  All told, it took 14 people to close one question.    After a certain number of "Recommend Close" votes, shouldn't that have some sort of extra effect?  Maybe 3-5 "Recommend Close" counts as one close vote?    Or if "Recommend Close" votes after the first vote aren't going to do anything additional, should people with less than 3000 reputation even see questions with a "Recommend Close" vote in the Low Quality Review Queue?  I guess I'm just confounded by how many people had to review the blasted thing.


Assuming  $$e^{x}=\sum_{i=0}^{\infty}\frac{x^i}{i!},$$  show that $e^{x}e^{y}$ = $e^{x+y}$.  I have expanded both but am not sure if I need to multiply the two summations and show that product or if there is a simpler way of showing this.


with declarative style, how to add new key/value pair in existing dict?

need to add new key/value pair in existing dictionary.  I beleive there should be the way of doing it with declarative style something like       new_data = [x['new_key']=1 for x in simplejson.loads(data)]   (gives syntax error)  how to do something similar ?   EDIT: I need not to merge, but edit existed dict or create or duplicate


Physical dimensions for the Coulomb force in SI and CGS

The Coulomb force in SI units reads $\displaystyle  F = \frac{1}{4\pi\varepsilon  }\frac{Q_1\times Q_2}{R^{2}} $. On the other hand, in CGS this reads $\displaystyle F = \frac{Q_1\times Q_2}{R^{2}} $. Why is this? I mean, doesn't it make any difference in dimension? Particularly since $  \varepsilon $ itself has dimension. An identical question holds for the magnetic force.


Did anyone in the Rebel Alliance connect Luke Skywalker to Anakin Skywalker?

When a whiny farm boy (Luke) shows up at the secret base of the Rebel Alliance, a group of high profile exiles and crack veteran warriors, he is instantly included in their fighting force, even taking a . In movies 4-6, no one (apart from Obi-Wan) on the Rebel side ever comments about Luke's last name or makes any connection to Anakin Skywalker, who presumably was a famous heroic figure among the former Republic Illuminati running the Alliance (remembering that it  that Anakin became Vader, he was presumed killed along with the rest of the Jedi). Did they realise Luke was Anakin's kid? Maybe that helped in getting Luke involved in the fight and promoted so quickly. Or did they not know, or simply not think to connect the names? Maybe 'Skywalker' is like 'Smith' on Tatooine (although it seems pretty grandiose, Anakin's slave mother bore the name)? Maybe there's lots of teenage 'Skywalkers' running around having been named in honour of the famous celebrity from the Clone Wars, so the Alliance honchos just assume Luke's parents were just another couple of hillbillies giving their kid a stupid fashionable name?


How to get Excel to graph multiple series where series are "mixed" in a table?

I've got a table that contains multiple data series - and they aren't uniformly distributed either.  Example below.  As you can see there are multiple series here: Income, Short-Term Capital Gain, and Long-Term Capital Gain.  They don't have the same number of entries (i.e., rows) and the dates at which they occur aren't at uniform intervals in the table.  I'd like to get, for this table, an Excel chart with 3 data series lines, where X axis is a timeline and Y axis is the $/share column.  There are three things I don't know how to do:   Display, given a single time series with non-uniform time intervals, a graph over a uniform timeline.  (E.g., if I have a series with monthly dates but some months are missing I don't know how to chart that with "gaps" for the missing months.) Display multiple series from a table like this where the series are distinguished by a value in a column. Whether Excel is the right tool for the job or if there's something else I should be using.   .  Type                      $/share   Payable date ------------------------- --------- -------------- Income                        0.5   9/24/2018 Income                        0.5   6/18/2018        Short-Term Capital Gain      0.06   12/19/2017    Long-Term Capital Gain       0.69   12/19/2017      Income                       0.48   9/22/2017       Short-Term Capital Gain      0.02   12/27/2016      Long-Term Capital Gain       0.63   12/27/2016     Income                       0.44   9/19/2016      Income                       0.47   6/17/2016      Income                        0.4   3/17/2016     Income                       0.55   12/17/2015      Short-Term Capital Gain      0.04   12/17/2015     Long-Term Capital Gain       1.44   12/17/2015     Income                       0.47   9/21/2015     ...


Python: 2 Index Location Brackets for a List

list1 = [1, 2, 3, 4]   element = list1[1:][1]    print(element)   Why does it print 3?   How is this evaluated? Does it first take the elements of list1 that are from index 1: then it takes the 1 index of that?


What happened to rest of 6 barrels of money?

In the finale of Breaking Bad, Walt killed Uncle Jack and his companions who took 6 barrels of Walt's money. After that what happened to that 6 barrel? Who got that money?


Iterating in a points geodataframe and then check if point is inside polygon

I'm trying to make a spatial verification. I have a geodataframe with 245 points, and I'm having a bad time trying to check if they're inside a polygon or not. I've been attempting this code, but I just won't work. As far as I understood, geodataframes are slightly different from dataframes when in a for loop. for x in event_log_c.geometry:     i = event_log_c.iloc[x].within(hexa)     print(i)  After running this, it brings me this error: TypeError: Cannot index by location index with a non-integer key  hexa is the polygon geodataframe, and event_log_c is the 245 points geodataframe. How can I make a spatial verification iterating a geodataframe? Are there any way of doing this?


I am making a game and all the game runs in a while loop. Because you can't use two while loop, how can I do an action UNTIL something.


pass custom type obtained from string to function with generic type

In my application, I'm using a package that reads a specific type of file (let's say .custom) that describes a house. It has custom types to describe objects (t_doors and t_windows to keep it simple)  This package has a function Reader.GetAll<t_type>() that gives me all the objects of said type in the file, and a Reader.GetItem<t_type>(int itemId) that gives me a specific t_type object with itemId ID.  Now i'm reading a list of required updates from a user-provided file that includes the type, the id and the changes in the form of a List<List<string>>. This part is outside my control.  I need to be able to read the type from the string and pass it to my generic function.  So far I've tried :  var r = new List<string>(){ "t_door", "1", "Color:Red" }; Type T = Type.GetType(r[0]); ModifyProperties<T>(r[1], r[2]);  'T' is a variable but is used like a type.   Same error with:  ModifyProperties<typeof(T)>(r[1], r[2]);   And :  ModifyProperties<T.GetType()>(r[1], r[2]);  Operator '<' cannot be applied to operands of type 'method groups' and 'Type'    Here is the signature of the ModifyProperties function :  public static void ModifyProperties<ObjectTypeToEdit>(string id, string modification) where ObjectTypeToEdit : t_object   So far my workaround has been to use a switch on the type and call the method with the correct type :   switch (r[0]) {     case "t_door":         ModifyProperties<t_door>(r[1], r[2]);         break;     case "t_window":         ModifyProperties<t_window>(r[1], r[2]);         break;     ... }   Which is far from ideal considering there are hundreds of types of objects that could possibly be required.  Also i read something about an Activator class but i'm not sure how it would help.  Same with reflections :  object obj = System.Reflection.Assembly.GetExecutingAssembly().CreateInstance(r[0]);


I'm a non-native speaker, wondering whether the following construction is correct:     It had been a bad day followed by an awful night where he found himself in the most inconvenient circumstances.   If not, would it be correct to use when, instead? Are there any alternatives that would sound more natural to a native ear?


Let $V=\{f : S \to \mathbb{R} \}$ be the set of all the functions $f : S \to \mathbb{R}$. Let $S=\{ 1,2,...,n$}, now my train of thought was that the basis of V must be a linearly independent set that Span V so somehow show that there is a set of functions on S that can compose as a linear combination and map to any number in $\mathbb{R}$. Any idea how to get a general answer for basis for dimension of V?


Two identical files; Apache says one is forbidden

I've got this one file, favicon.ico. It's actually a large group of nested files, but purely for example, just this one.  If I do cp favicon.ico favicon2.ico, Apache can read the second one just fine.  If I do mv favicon.ico favicon3.ico, Apache throws a 403 on favicon3.ico.  If I su apache, I can read the file as apache.  stat says both files are identical, except for the inode number.  Is there some hidden flag somewhere or something that I'm missing? I've never seen anything like this.  error_log says (13)Permission denied: access to /favicon3.ico denied