Proof exercise that the cardinal number of a set in $\mathbb R^2$ is $\frak c$

let $S \subseteq \mathbb R^2$ be a countable set.  and $a \in \mathbb R^2 \setminus S$  Show that the Cardinal number of the set of lines ($y=mx+n$) in $\mathbb R^2$ that passes through point $a$ but don't cross S is $\frak c$.  What I did so far:I called the set of lines  in $\mathbb R^2$ that passes through point $a$ and crosses S, with M, and the set of lines that does not with P. and L the set of all the lines in R that passes through a.  and so $P \cup M = L$ , and by my previous exercise I already proved that for sets such as L it's cardinal number is $\frak c$. And I know from a sentence proved in class that the cardinal number of the union of a set with a cardinal number of $\frak c$ is also $\frak c$. And from this point on I don't have an idea on how to prove that set M's cardinal number is $\frak c$. If anyone has a better idea of how to prove this, I'd be happy to hear. Thanks a lot.


How can I use Event Viewer to confirm login times filtered by User?

I'm required to log my start and finish times at work. Occasionally I forget to do this and had a bright idea that checking the Security events log would allow me to retrospectively ascertain my times.   Unfortunately, the logs are much bigger than I thought and take a while even to display in Event Viewer. Also, I tried filtering the logs by date and userid but so far this has yielded no results.  Assuming my idea is feasible, can anyone step-through what I'd need to do to retrieve the information I need?  UPDATE:  I followed @surfasb 's instructions and got the to point where I can see only the logins, however some of these are System-level (i.e. non-human) logins. I would like to see only my 'physical' logins (there would only be two or three such events on weekdays) and not all the other stuff.  I've tried putting my Windows username in the field as shown below using both domain\username and just username but this just filters out everything. Can you assist?


"Here comes the Queen" versus "Here the Queen comes"

What's the correct one of the following sentences?        Here they come.      or        Here come they.      Consider for example:        Here comes the sun.      This is the title of a famous Beatles song.  Also consider:        Here the post office is.   Here is the post office.      Number (5) seems more natural than number (4). So which is better, or more natural,  (1) or (2)— and why?


How do I logout from a non-registered account?

I have a registered StackOverflow account which I normally log into using OpenID.  Recently I logged out in order to post a question anonymously (supplying a fake name and of my secondary email addresses).  The problem now is that I'm logged in to StackOverflow as this "dummy" user, unable to see a way to log out.  The top menu normally has a "logout" link, but when you aren't fully registered this link is replaced with "register".  There is no "logout" link for me. :(  So..   When logged out there is a "login" link. When logged in there is a "logout" link. When "logged in" with an unregistered account, there is only a "register" link (no "logout").


Integrating both sides of an equation with respect to different variables

So im reading a book called "Ordinary Differential Equations" (Tenenbaum & Pollard) and in the introduction(ish) they are doing an example using a carbon dating problem, represented as:  $\frac{dx}{dt} = -kx$  Which they change to  $\frac{dx}{x} = -k dt$  And then integrate to   $ \log x = -kt + c$  But doesn't that imply integrating with respect to x in the left side and integrating with respect to t on the right? Is there a proof that says that is okay? I would imagine it is related to the Fundamental Theorem of Calculus, but i didnt see anything.


Is there a standard way to refer to a range of equations?

I have occasionally wanted to refer to a range of equations in my document.  So far, I've been using Equations~\eqref{firstEquation}~--~\eqref{lastEquation}, which produces something like "Equations (5) - (12)".  I recognize that this could make it harder to maintain the document if equations get shifted around, but I still prefer it to something like "Equations (5), (6), (7), (8), (9), (10), (11), and (12)".  Is there a standard or accepted way to refer to a range of equations like this?  Or should I just keep doing whatever looks best to me?


Python IndentationError unindent does not match any outer indentation level

I'm a beginner in python,   I have this error :  Error :  def on_data(self,data):                       ^ IdentationError : unindent does not match any outer indentation level   I code with notepad++ in windows 8.1. I don't understand why I have this error, I have paid attention about tabs and space.  I want to save data in self.file  Here is my code :  from tweepy import OAuthHandler from tweepy.streaming import StreamListener from tweepy import Stream import tweepy import time    class StdOutListener(StreamListener):      def __init__(self,file):         self.file = file      def on_data(self, data):          print data         self.file.write(data)         return True      def on_error(self, status):         print status   def main() :     file = open('work.txt','w')     listn = StdOutListener(file)     consumer_key=""     consumer_secret=""      access_token=""     access_token_secret=""      auth = tweepy.OAuthHandler(consumer_key, consumer_secret)     auth.set_access_token(access_token, access_token_secret)     #api = tweepy.API(auth)      #filename=open('helloworld.txt','r')     #f=filename.readlines()     #filename.close()      #for line in f:     #   api.update_status(line)      stream = Stream(auth, listn)     stream.filter(track=['lol'])     file.close()


I am really new to programming and I am trying to get a student inventory set up and validate the input by checking each field.   It contains attendance for 10 days and I need to validate each field that its either Yes/No. And I am assigning them to class fields using getter/setter methods. Since Attendance is series of 10 inputs, I am assigning them as a list and passing them as a parameter to the set method and assign them to Class array.   Though the list is not empty, assigning it to array is throwing 'Null pointer exception' and unable to figure out why.   import java.util.*;   public class Studentdetail {  String studentName; String studentId; String classCode; String[] attendence;//={"no"," yes", "yes"," no", "yes"," yes", "yes", "yes"," no"," yes"};  String test1; String test2; String tutorial; String exams;  public String getStudentName() {     return studentName; }  public void setStudentName(String studentName) {     this.studentName = studentName; }  public String getStudentId() {     return studentId; }  public void setStudentId(String studentId) {     this.studentId = studentId; }  public String getClassCode() {     return classCode; }  public void setClassCode(String classCode) {     this.classCode = classCode; }  public String[] getAttendence() {      return attendence; }  private void setAttendence(List<String> studentList) {          int j=1;           for(String attList: studentList){              if(attList != null){                 attendence[j]= attList;             }             j++;      }    }  public String getTest1() {     return test1; }  public void setTest1(String test1) {     this.test1 = test1; }  public String getTest2() {     return test2; }  public void setTest2(String test2) {     this.test2 = test2; }  public String getTutorial() {     return tutorial; }  public void setTutorial(String tutorial) {     this.tutorial = tutorial; }  public String getExams() {     return exams; }  public void setExams(String exams) {     this.exams = exams; }    public static void main(String[] args) {      String sampleInput = "S0032124, Tan ah cat, ICT310-FT02, no, yes, yes, no, yes, yes, yes, yes, no, yes, 43, 55, 12, 53";      ArrayList<String> studentList = new ArrayList<String>();      for (String s : sampleInput.split(",")) {         studentList.add(s);     }     Studentdetail newStudent = new Studentdetail();      newStudent.setStudentId(studentList.get(0));      newStudent.setStudentName(studentList.get(1));      newStudent.setClassCode(studentList.get(2));      newStudent.setAttendence(studentList.subList(3, 12));       newStudent.setTest1(studentList.get(13));      newStudent.setTest2(studentList.get(14));      newStudent.setTutorial(studentList.get(15));      newStudent.setExams(studentList.get(16));      boolean value;       value = classCodeValidator(newStudent.getClassCode());      value = stuAttValidator(newStudent.getAttendence());      if (value == true)         System.out.println("Class code verified "                 + newStudent.getClassCode());     else         System.out.println("Class code invalid "                 + newStudent.getClassCode().trim().substring(6,7));  }   public boolean stuIdValidator(String stuId) {     if (stuId.length() == 8) {         if (stuId.substring(0, 1) == "S")             return true;     }      return false; }  public static boolean classCodeValidator(String classCode) {     // ICT303-FT07      if (classCode.trim().length() == 11)         if (classCode.trim().substring(6,7).equals("-"))             if (classCode.trim().substring(1,7).length() == 6)                 if (classCode.trim().substring(7, 11).length() == 4)                     return true;     return false;  }  public static boolean stuAttValidator (String[] stuAtten){      for(String attMarker: stuAtten){          if(attMarker.equalsIgnoreCase("YES") || attMarker.equalsIgnoreCase("NO"))             return true;      }      return false; }   }


He was devastated when he learnt that his best friend was migrating.   I would like to find out if devastated in this use case is a verb or an adjective.


Restore Windows bootloader on Virtual Machine

I recently p2v'ed my old Computer into a virtual machine. Since it had a dual-boot and I only copied the Windows partition this broke GRUB. I can still boot Windows with Rescatux though. So my question is if I can restore the original Windows Bootloader so I don't have to select "find any operating system" in Rescatux when i boot the VM.


Prove or Disprove that if $f_x(x_0,y_0)$ and $f_y(x_0,y_0)$ both exist, then f is continuous at $(x_0,y_0)$

I have to either prove or disprove the fact that if $f_x(x_0,y_0)$ and $f_y(x_0,y_0)$ both exist, then f is continuous at $(x_0,y_0)$.  What I thought:  I thought that the best way to approach this is to use a function that does what we want to prove or disprove. So my attempt to finding a function is:  $$f(x,y)=\left\{\begin{array}{cl} \frac{xy}{x^2+y^2} & \text{if } (x,y) \neq (0,0)\\ 0 & \text{ } \text{otherwise}\end{array}\right.$$  Is this correct to use? What do I do next?


Find a function f(x) such that g(f(x)) = x for some g(x), but such that there is no function h(x) with f(h(x)) = x. I think I've got something backwards in my head because I can easily find the reverse case and this case seems provably impossible. I start with Spivak's definition of a function as a set of ordered pairs: Suppose f(x) = { (1,2) , (3,4) } I.e: f(1) = 2 and f(3) = 4 and undefined for everything else. Clearly you can find h(x) such that f(h(x)) = x, just take the set of the pairs switched around. h(x) = { (2,1) , (4,3) } I.e: h(2) = 1 and h(4) = 3 and undefined for everything else. The only way I can see to get around this problem is to choose order pairs that have the same last term: Suppose f(x) = { (1,3) , (2,3) } I.e: f(1) = 3 and f(2) = 3 and undefined for everything else. Now you can't find just flip the pairs because then h(x) wouldn't be a function: If h(x) = { (3,1) , (3,2) } Then does h(3) = 1 or 2? It's ambiguous! But you can still find h(x), just pick one of the pairs and exclude the other(s). h(x) = { (3,1) } f(h(x)) = x still holds? Furthermore, the same logic can seemingly be applied to g(x) to prove g(x) doesn't exist! Suppose f(x) = { (1,3) , (2,3) } We need to find g(x) such that g(f(x)) = x So g(f(1)) = 1 and g(f(2)) = 2 But f(1) = f(2) = 3 !!! So 1 = g(f(1)) = g(3) = g(f(2)) = 2 1 = 2 !!! What have I done?


The question we need to prove is $$1.222\le 1+3^{-2}+5^{-2}+\cdots\le 1.252.$$ I know how to prove the first part $$1+3^{-2}+...+43^{-2}\ge 1.222.$$ But I do not know how to prove the second part.  If I upper bound it using $1.222 + 45^{-2} + \text{integration from $45$ to $\infty$}$, I found that it is about $1.277777$ which is too large.  How should I do this question? Thank you very much.


Real analysis derivate problem. How can I prove this?

Let $f$ be differentiable in $[a,b]$ and $f(a)=0$. If $\exists M \in R$ such that $\vert f'(x) \vert \leq M \vert f(x)\vert \ $,  $\forall x \in [a,b]$, then $f(x)=0, \ \forall x \in [a,b]$.  $\\$ I have an idea, but I can´t see it clear. I have arrived to the inequality $\vert f(x)\vert \leq  K\vert f(y)\vert $ for $y \in (a,x)$, supposing $k>0$ and repeating the process $\vert f(x)\vert \leq  K^n\vert f(z)\vert$ for $a<z<y<x$. If $K<1$, then if $n \rightarrow \infty \ $, $f(x)=0$. That´s a sort of intuitive idea.


Ratios. In how much time could they complete the work?

If 20 students can clean 5 classrooms in 4 hours, so in how many hours can 40 students clean 40 classrooms?


How to prove $\int_{-\pi}^\pi (f(x))^2dx\le \int_{-\pi}^\pi (f'(x))^2dx$

Let $f$ be $C^1$ in $[-\pi, \pi]$ and satisfies $\int_{-\pi}^\pi f(x)dx=0$, periodic boundary condition.  Then, prove that $\int_{-\pi}^\pi (f(x))^2dx\le \int_{-\pi}^\pi (f'(x))^2dx$.  I try to prove it by Parseval's equality(with $X_n=\sin nx$) and Schwartz inequality,   but then some constants come out. Also why condition $\int_{-\pi}^\pi f(x)dx=0$ needs?  Give some advice.


"A Math Club has 12 members. They have to choose euclid contest team   of 3 members and a National Math Competition team with 4 members. Students can be on both teams, but James agrees to   only be on at most one team. In how many ways can both teams be chosen?"   Here's what I thought should be the answer but doesn't make much sense:  Case 1: James is in Euclid team:   $\therefore $  $11\choose2$ for Euclid Team  This would be because James is in team Euclid assumed so we only have to get 2 other players and we have 11 students left.  Also : $11\choose4$ for Math team  so total ways would be  $11\choose2$ . $11\choose4$ (Product Rule)  Case 2: James is in Math team:   $\therefore $  $11\choose3$ for Math team  This would be because james is in team Math assumed so we only have to get 3 other players and we have 11 students left.  Also : $11\choose3$ for Euclid team , as the 11 students can form a team of 3 for Euclid competition here.  so total ways would be  $11\choose3$ . $11\choose3$ (Product Rule)  Case 3: James in no team  $\therefore $  $11\choose3$ . $11\choose4$ (Product Rule)  as James is in no team so we are left with 11 people for both teams  Now the question is did I do it correctly? Because I have never seen cases being used in a permutation questions?  Therfore, The total number of ways would be to add all the cases meaning  Case 1 + Case 2 + Case 3 :  ($11\choose2$ . $11\choose4$) + ($11\choose3$ . $11\choose3$) +($11\choose3$ . $11\choose4$)  Is that correct?


Can I sync my Ubuntu system like chromeOS?

I make various changes to my settings in Ubuntu. I install a few apps and set my personal preferences. How can I sync the same settings to a different PC where I use Ubuntu. Is there a sync settings utility available to restore apps and settings?   I want to store all this data in the cloud somewhere, so that I can restore my all apps and settings with a click/command line.


If $A=\left\{1,2,3,4,5\right\}$ Then     Find Number of functions $f : A \to A$ such that $f(f(x))=f(x)$   Case $1.$ if $f$ is injective then $f(f(x))=f(x)$ $\implies$ $f(x)=x$, hence there is only one injective function which is an identity function.  Case $2.$ When $f$ is many to one function  Let us assume that $f(1)=f(2)=f(3)=f(4)=f(5)=k$ Then clearly for any $k$ from the set $A$, $f(f(x))=f(x)$  hence there are five such functions.  Are there any other possibilities?


I am making an app that gets weather info from the web.  I am getting the whole JSONObject at once, instead of piece by piece. As a result of that, I can't call .getDouble for temperature, I call getString.  This returns a String, which I can't use the Math.round method on. I tried the .split(".") and it returns an array out of bounds exception, when I try to instert the sting into a text view.  If I call .toString() it gives me "[Ljava.lang.String;@7353879" in the textview.


Given a random int generator [0-5], generate [0-7]

So this was an interview question.  You are provided with a function rand5() which generates a random integer in the range [0-5] i.e. {0,1,2,3,4,5}  a) Can you use that function to generate a random integer in the range [0-7]?  b) Can you use that function to generate a random integer in the range [0-7] with each number having equal probability?  You may use the function multiple times.  One of the solution for part a, ((rand5() +rand5())*7)//10 where // represents integer division would give you the range [0-7] however the probabilities are not equal.  Would love to see your answers and thought process on this.


Authentication to Upgrade from 14.04 to 16.04

Running 14.04. Prompted to upgrade to 16.04, when I agree it asks for an Authentication password. What's this, and where is it?


I'm running Kubuntu 17.10, upgraded from 17.04 in-place.  I have a 2GB swap file on my SSD that was created by the installer when I first installed 17.04. Here's the contents of /proc/swaps (fresh after a reboot from running out of memory):  Filename                                Type            Size    Used    Priority /swapfile                               file            2097148 0       -1   How can I expand this swapfile to 4GB? I've found plenty of answers about resizing swap partitions and adding new swap files, but nothing about resizing existing ones.


Outlook Preview Pane Not Working - Neither is Opening the Email

When I opened my Outlook today, the preview pane isn't working correctly (it previews nothing). I have logged out, logged in, reinstalled the program and still it isn't working correctly. Even when I open the email it isn't displaying the body of the email...nothing. Help!!


I am modeling a architecture environment in blender and everything was working fine but must have accidently hit a hot key that I was not aware of. Now when I go to manipulate an object whether it be just moving it around, extruding or grabbing a vertex(face or edge) it now jumps to a full blender unit before moving and so on and so forth. I was wondering if anyone knew how I could change it back to the smooth fluid motion of before?


I have a script that creates triggers, I would like to run it multiple times and if a trigger already exist it needs to skip the creation part.   Is there a "create if not exist" in mysql triggers?  I tried :      IF NOT EXISTS ((SELECT TRIGGER_NAME         FROM information_schema.triggers         WHERE TRIGGER_SCHEMA = 'xxx_admin' AND TRIGGER_NAME = 'test_AFTER_UPDATE'))          THEN     CREATE DEFINER=`root`@`localhost` TRIGGER `xxx_admin`.`test_AFTER_UPDATE` AFTER UPDATE ON `test` FOR EACH ROW         BEGIN         INSERT INTO auditTest          select *, now() from test where id = NEW.id;         END;   END IF;   I get : syntex error " 'IF' is not valid input at this location


I am writing a small Bash script to do some automatic commands. In particular, I would like to save the current directory path in a variable called my pwd and then use mypwd to change directory.  I have tried the following lines with no success:  mypwd=${PWD} cd mypwd/other/ cd $mypwd/other/   How can I perform this operation in Bash?


Can OP now accept their own answer quickly?

This user self answered :    How did he accept it so quickly? I thought there was a 48 hour delay between posting and accepting?


I would like to move windows with ctrl+alt+numpad like before on ubuntu 18.04

I used to use a lot ctrl+alt+numpad to move windows, how can I use this feature on ubuntu 18 like it was default before?  Thank you in advance


What is the relation between Langevin and Fokker planck equation?

What is corresponding fokker planck equation for,  $\frac{df(t)}{dt}=-kf(t)+\zeta(t)$  where, $\zeta(t)$ is random noise.  In particular, how will the fokker planck equation will look like if $\zeta(t)$ is exponentially correlated instead of delta correlated?  Nitin


How to find a function in $ L_{2}(0,\infty)$ but not $L_{q}(0,\infty)$, $q\neq 2 $

How to find $x\in L_{2}(0,\infty)$ \ $L_{q}(0,\infty)$  ,  $q\neq 2 $  i tried $\frac{1}{t.lnt}$ with various degrees on $t$ and $ln(t)$  Could you please help me with this question


How to achieve this kind of custom brush in Blender?

I am trying to create a brush that allows for seamless alpha textures that can be drawn curved. The result should be similar to what is found in .  This is what I am currently getting.    Does anyone have any ideas?  Thanks for your time!


Generate a list of Abbreviations which occur in the text?

Currently I track my abbreviations manually and put them in a page like below. I'd like to be able to define the abbreviations inside the text of my paper and then have a list of them automatically printed on a page like this:  Is that possible and if yes, how?    \clearpage  \setstretch{1.5}  \lhead{\emph{Abbreviations}}  \listofsymbols{ll} % Include a list of Abbreviations (a table of two columns) { \textbf{AHRS} & \textbf{A}ttitude and \textbf{H}eading \textbf{R}eference \textbf{S}ystem \\ \textbf{API} & \textbf{A}pplication \textbf{P}rogramming \textbf{I}nterface \\ \textbf{IMU} & \textbf{I}nertial \textbf{M}easurements \textbf{U}nit \\ \textbf{JSON} & \textbf{J}ava\textbf{S}cript \textbf{O}bject \textbf{N}otation \\ \textbf{VGA} & \textbf{V}ideo \textbf{G}raphics \textbf{A}rray  ($640\times480$ px)\\ \textbf{WPF} & \textbf{W}indows \textbf{P}resentation \textbf{F}oundation \\ \textbf{XAML} & E\textbf{x}tended \textbf{A}pplication \textbf{M}arkup \textbf{L}anguage \\ }


JSoup displays java.lang.NullPointerException when trying to extract text

For some reason, when I run the code below with eBay sold listings, I got java.lang.NullPointerException:   Elements Listings = (Elements) document.getElementsByClass("s-item__details clearfix"); // Each box contains the deal info     for (Element e : Listings) { // Within each box we would like to extract the listing' names and sold prices         String listingName = e.select("h3.s-item__title s-item__title--has-tags").first().text();         System.out.println(listingName);   If I remove the for loop, I will be able to display Listings. What I am trying to do is to extract the listings' names and sold prices. May I know what I am doing wrong please?


Increasing the size of tyres on a hybrid

We are planning on doing some mountain biking in a few weeks time and we'd like to get some wider tyres for my wife's hybrid. I know there are similar questions and answers out there on this topic, but I need some specific help to make sure I buy the right tyres.  The bike is a Ladies Scott Sportster 50 2015, the best website I could find with a fairly accurate spec is     It's currently got Kenda K-180 700 x 38c / 30TPI tyres on it, which are fairly good all rounders and capable of running on clean forest paths but I don't think they would handle anything heavier.  It's got disk brakes so there isn't a clearance issue there, but I have noticed the frame is generally narrower than true MTBs, here are some photos i took of it.    Has anyone put larger, knobblier tyres on this kind of hybrid? whats the largest I can get away with? - I'm also slightly confused by all the tyre sizing, I'm sure someone told me this is a 27.5" tyre, but 700 seems to mean 29" on a lot of websites.  Any advice is very much appreciated, Thanks.


Best Professional Video editor for Linux equivalent to Sony Vegas Pro?

I have recently moved onto Linux especially Ubuntu, and I'm a video freak, I love editing videos for my youtube channel, Vimeo, Plex, etc and since I'm new to this Open Source World, I cannot decide which one should I choose?  I had done a search on Google which presented me with Pitvi, Open Shot and such editors but is there any video editor in Linux World equivalent to Sony Vegas video editor? (For Professional Use)


is "I've never said that nor thought it" correct?

"I've never said that nor thought it"  I don't think so, but I don't know how I can say it.


A string contains a combination of numbers, characters, and symbols. What is the optimal way to sort it, based on number?

I have an example string: "60 seconds,1;120 seconds,2;180 seconds,3;15 seconds,15;20 seconds,20;30 seconds,30"  I'd like to sort it by the first number only. So after sorting, it'll look like: "15 seconds,15;20 seconds,20;30 seconds,30;60 seconds,1;120 seconds,2;180 seconds,3"  Some limitations: I can't hard code anything. I've created example code to demonstrate my solution so far. Basically, I create 2 string arrays and 1 int array. The first string array takes the string and splits it by the semicolon. The second string array is a middle man array. The int array is the middle man array converted to int. I use the int array as a reference to sort my first string array using Array.sort Here is my example code: using System; using System.Linq;               using System.Text.RegularExpressions;  public class Program {     public static void Main()     {         string myExampleString = "60 seconds,1;120 seconds,2;180 seconds,3;15 seconds,15;20 seconds,20;30 seconds,30";         string mySortedString = "";                  // Count the number of semicolons and + 1 to get arraySize         int arraySize = myExampleString.Count(f => (f == ';')) + 1;          // To hold our original string, split by the ';'         String[] stringArray = new String[arraySize];                  // Our middle man array to make sorting easier         String[] organizedStringArray = new String[arraySize];                  // Our middle man array converted to int         int[] intArray = new int[arraySize];                  // Create the stringArray without the semicolons         stringArray = myExampleString.Split(';');                  for(int i=0; i<arraySize; i++)         {             // Our stringArray elements:              /*                 60 seconds,1                 120 seconds,2                 180 seconds,3                 15 seconds,15                 20 seconds,20                 30 seconds,30             */                          // Let's make our organizedStringArray elements:             /*                 60                 120                 180                 15                 20                 30             */             Regex regex = new Regex(" .*");             organizedStringArray[i] = regex.Replace(stringArray[i], "");             }                  // Convert the middleman array to ints         intArray = Array.ConvertAll(organizedStringArray, s => int.Parse(s));                  // Use the sort function to sort our orignal stringArray, using intArray as the reference         Array.Sort(intArray, stringArray);                  // Append the results into mySortedString         for(int i=0; i<arraySize; i++)         {             if(i < arraySize - 1 )             {                 mySortedString += stringArray[i] + ";";             }             else             {                 mySortedString += stringArray[i];             }         }                  Console.WriteLine(mySortedString);     } }


\section{Introduction}   gives something like  1. Introduction  How can I rather obtain the following header?  Section 1. Introduction


Are we aiming for a single answer that covers everything about a question on Stack Exchange?

So I was thinking about why only one answer can be accepted to any particular question on Stack Exchange. I was thinking, most likely, so there would develop one answer that covers "everything" about a question which would become "accepted."  But this implies repeating a lot of information from existing answers, which can be annoying to users seeking answers to such questions and can generate a lot of downvotes if it's very redundant for the sake of "completion!" Plus there's the matter of, if the asker wanted to change the "accepted" answer to one recently "overtaking" the existing one, the consequent loss of 15 reputation to that answerer, which I really don't like the idea of doing this to in this case.  So should I, in fact, be "redundant" to form a singular, coherent, complete answer to a question despite the information being present in other answers already? I do have a preference to only add what I know in addition to what's there, if with a little basic background with the other answers, to questions with existing "decent" or better answers. This does make me prefer that either multiple answers could be "accepted" or there was some other system of the asker saying "nice answer" to more than one answer, without having to choose only one of answers that ultimately cover it which themselves are incomplete!  Though if Stack Exchange really prefers to consolidate ALL essential information into one answer, I can cover the basics on everything and then add my own information in my answers.


Selecting one polygon for one point using ArcGIS Pro

I have a points shapefile and a polygon shapefile. I work in ArcGIS Pro. I would like to select all the polygons which have one or more points in them, however, one condition should be considered, that if one point lies in two or more polygons which overlays, only one polygon is selected. Please see picture for example. There are 3 polygons highlighted with orange circle with only one point in them. As the polygons overlay, the result I obtained from ArcGIS Summarize Within tool showed that each of these polygons consist of one point, which is wrong, cause there are not 3 points, but 1. There should be only one polygon with one point, the other one stays empty.  The result should look something like this. Orange points are selected polygons with one or more points. And pay attention to black line - these are polygons which overlays and shares a point, but only one of them are selected. Of course this could be done manually, but it's too time consuming and it gets hard when there are to many overlaying polygons, so I try to find a fast way to do this.  Here is a very similar question  about at least one and more points in polygon, but the solution selects all polygons with intersection, even if they overlay and share a common point. I couldn't find the solution with "Join attributes by location" or "Select attributes by location". I'm probably missing something and this should be done easily. Is there some fast and effective way to do this?


Java problems with Variables and Methods

I am new to this website and to java so please forgive the messy code. import javax.swing.JOptionPane;  public class MusterTest {      public static void main(String[]args)   {         String zeichen = null;         int laenge = 0;         int hoehe = 0;         Muster.rechteck(zeichen, laenge, hoehe);         System.out.print(zeichen +laenge+ +hoehe);     } }  class  Muster {      public static int zeile(String zeichen, int laenge)  {         zeichen = JOptionPane.showInputDialog(null, "Which Symbol?");         String wLaenge = JOptionPane.showInputDialog(null, "Length?");         laenge = Integer.parseInt(wLaenge);         return laenge;     }     public static int rechteck(String zeichen, int laenge, int hoehe)    {         zeile(zeichen, laenge);         String wHoehe = JOptionPane.showInputDialog(null, "Height?");         hoehe = Integer.parseInt(wHoehe);         return hoehe;     } }  What I'm trying to achieve here, the user inputs the a Symbol (in the String zeichen) and then two values (in hoehe and laenge) inside the methods. After that, I'm supposed to use the method in void main. My problem is, when I print the variables it does not print the values that the user inputs. Instead it just prints: null,00 (so the values did not change). Any advice on how I could fix this? (Note: This is an assignment, it specifically must be done with the use of these two methods, so please keep that in mind for those who give advice.)


Let $(a_{ij})$ be a skew-symmetric $3 \times 3$ matrix (i.e., $a_{ij}=-a_{ji}$  for all $i, j$).   Let $v_1$, $v_2$ and $v_3$ be smooth functions of a parameter $s$ satisfying the differential equations $$v'_i= \sum_{j=1}^3 a_{ij} v_j$$  for i = $1, 2$ and $3$, and suppose that for some parameter value $s_0$ the vectors $v_1(s_0)$, $v_2(s_0)$ and $v_3(s_0)$ are orthonormal. Show that the vectors $v_1(s), v_2(s)$ and $v_3(s)$ are orthonormal for all values of $s$.  I am facing difficulties. Any hints how to show that  the vectors $v_1(s), v_2(s)$ and $v_3(s)$ are orthonormal for all values of $s$?  EDIT Nr.1:  $\frac{d}{ds}(\left< v_i(s), v_j(s) \right>) = \frac{d}{ds}(v_i(s)^t v_j(s)   )=(v_i(s)^t)' v_j(s)+v_i(s)^t (v_j(s))' \\= \sum_{k=1}^3 a_{ik} v_k(s)^t v_j(s)+v_i(s)^t \sum_{k=1}^3 a_{jk}v_k(s) $  Any ideas how I can continue?   $$$$   EDIT Nr.2:   We have $$\frac{d}{ds}(\left< v_i(s), v_j(s) \right>) = \frac{d}{ds}(v_i(s)^t v_j(s)   )=(v_i(s)^t)' v_j(s)+v_i(s)^t (v_j(s))' \\= \sum_{k=1}^3 a_{ik} v_k(s)^t v_j(s)+v_i(s)^t \sum_{k=1}^3 a_{jk}v_k(s) =\sum_{k=1}^3 a_{ik} v_k(s)^t v_j(s)-v_i(s)^t \sum_{k=1}^3 a_{kj}v_k(s)$$   It is $$v_k(s)^tv_j(s)=v_k(s)v_j(s)^t$$ right?    Therefore we have $$\frac{d}{ds}(\left< v_i(s), v_j(s) \right>) =\sum_{k=1}^3 a_{ik} v_k(s)^t v_j(s)-v_i(s)^t \sum_{k=1}^3 a_{kj}v_k(s)=\sum_{k=1}^3 [a_{ik} v_k(s) v_j(s)^t-a_{kj} v_i(s)^t v_k(s)]=\sum_{k=1}^3 v_k(s)[a_{ik} v_j(s)^t-a_{kj} v_i(s)^t]$$   What can we do next?


How can I thank Stack Overflow / Stack Exchange?

Is there a way to send a thanks message to Stack Overflow or any of the individual Stack Exchange sites, aside from sending an email? I want to thank Stack Overflow for being an awesome live QA site. It helps people a lot.


Can I use my swap memory to increase storage for Ubuntu 20.04?

I have accidentally (well actually carelessly) provided 11gb swap memory for my dual boot Ubuntu 20.04 installation with Windows 10. I have allocated 25gb to the root partition, which I would like to expand. Can I convert my swap memory to root storage in Ubuntu? If so, how? If not, any alternatives? I'm a complete Linux noob, so sorry if this is a dumb question! Edit: It is a swap partition that I'm talking about Edit 2: The following is what I see in Gparted. /ext4 is my root partition, and the one below unallocated is the linux-swap. Can I do the resizing then?


Stripping whitespaces in string before adding to select box

I need your help,  I can't seem to be able to strip away the whitespaces in my data string before adding them to my select box.  (BTW the spaces in between the data string are deliberate as I am working with an old dataset and slowly converting it to a non-space string)  How do you accomplish this? I thought that I had the logic all right:  <!DOCTYPE html>  <html>  <head>  <script type="text/javascript"> function parseData() {      var data = "1234567, 8910111, 9632587,6541237,9631478, 1010232"      var options = data.split(",");      var select = document.getElementById('list')     select.innerHTML = ""      for(var i=0; i<options.length; i++)       select.options[i] = new Option(options[i], i); } </script>  </head>  <body> <input type="button" value="load list" onclick="parseData()"/> <br> <select id="list"></select> </body>  </html>


I've got a PDF that is automatically generated from a certain piece of software, that I want to include in the report I'm writing. I'm using pdfpages which gets the job done elegantly, but the problem is, the PDF has a lot of white space around the actual content (which is a graphics) and I always have to do some tedious post-processing of the automatically generated document so that it fits well in my report. Changing the output of the software to eliminate the white space is not an option (or at least, would be much more trouble than it's worth).  I checked the pdfpages , but wasn't able to find an option that does that. Ideally, I'd like to be able to set margins from each direction, and the PDF is then cropped accordingly and included.  What other options do I have to control what portion of the included PDF is visible in the final document?


I have my WinForm (Form1) and another class (Class1). Form1 has a textbox with the name of TextBox and I'm wanting to change the text inside TextBox within Class1. How can I do this? I've already checked everywhere and tried all the methods on Stackoverflow and other sources but they all seem to not be working.  EDIT: I've tried making the TextBox public, but that didn't work. Then I tried using the following code:  private readonly Form1 form;  public Class1(Form1 form) {     this.fom = form; }  private void EditText() {     form.TextBox.Text = .... (TextBox seems to not be an object, even though it is) }   Which also ended up not working.  Finally once I set the TextBox component modifiers to public inside the visual studio editor it gave me no errors until I ran the program in which it said:     Error 1   Inconsistent accessibility: field type 'NSTextBox' is less accessible than field 'OverloadBot_Panel.Form1.ConsoleTextBox'   D:\Users\goff-laptop\Desktop\OverloadBotNet\OverloadBot_Panel\OverloadBot_Panel\Form1.Designer.cs   364 26  OverloadBot_Panel   I am using a Theme if that matters at all.


Mixed IP and Name based vHosts with SSL issue

Apache proxy with one physical IP = 10.2.2.1 and a logical IP = 10.2.2.2  Configuration is similar to below  <VirtualHost *:80>    ServerName example.com    <Location />            ProxyPass http://server:8080/            ProxyPassReverse http://server:8080/    </Location> </VirtualHost>  <VirtualHost *:80>    ServerName example2.com    <Location />            ProxyPass http://server:8081/            ProxyPassReverse http://server:8081/    </Location> </VirtualHost>  <VirtualHost 10.2.2.2:443> ServerName example3.com SSLEngine on SSLCertificateFile /example3.com.cer SSLCertificateKeyFile /example3.com.key SSLCertificateChainFile /example3chain.com.cer                                               Redirect / https://example3.com <Location />         ProxyPass http://server:8082/         ProxyPassReverse http://server:8082/     </Location>  </VirtualHost>  <VirtualHost 10.2.2.1:443> ServerName example4.com SSLEngine on SSLCertificateFile /example4.com.cer SSLCertificateKeyFile /example4.com.key SSLCertificateChainFile /example4chain.com.cer                                               Redirect / https://example4.com <Location />         ProxyPass http://server:8083/         ProxyPassReverse http://server:8083/     </Location>  </VirtualHost>  <VirtualHost *:80>     ServerName example4.com     Redirect / https://example4.com </VirtualHost>   What is happening is the URL  site is not hitting the correct virtual host it is going to the non-SSL redirect and just staying there and serving an SSL error page. I have been assured the DNS and firewalls are correct.  Is there a restriction when using mixed IP and Name based vhosts that the SSL sites have to be on separate IP's from each other and the non-SSL sites? Need some help here.


I have to find the solution of the equation $x=\cos(x)$, $x$ is real. I solved it graphically but is there any other way to solve this except numerical approximation?  I have seen the Dottie number question asked on  but I am curious about other equations like $x=\sin(x)$. [I know the solution is $x=0$], $x=\sec(x)$ etc., and also when a function $x-f(x)$ has a zero?


The time(1) command allows you to time any command, by passing it as arguments to time.  I know it's possible to redirect stderr and stdout to a file via 2>&1, and there's also tee(1) which allows one to copy its input to both the screen and a file.  However, I do not know how to add timestamps to logs.   Is there a tool to redirect stderr and stdout to a file, AND append timestamps to it for logging purposes?


Number of $\sigma$  -Algebra on the finite set

Let $X$ is a nonempty set with $m$ members . How many $\sigma$ -algebra can we make on this set?


Removing an uploaded and unreferenced image

NOTE: I saw a couple similar questions, but I didn't see the answer I was looking for.   I was uploading images to question I had in a Stack Exchange community, and one of them I uploaded without cropping out a part I didn't want. For Personal/Privacy reasons I want it removed. I fixed the image and the question I made now has the fixed image, however the one with privacy concern was still uploaded on the stack.imgur, and I'd like it removed.   I've sent a couple requests to imgur, and one support form to the Stack Exchange community in questions support.   Will the image be removed for good? I have not referenced the link on any webpage. What are the chances of it appearing in Google searches?


Problem I Faced  I installed something that crashed my Wifi drivers that I compiled earlier. Un-installing the same package doesn't helped. Finally, I re-compiled my wifi drivers and things are good.  My Question But, is there anything like System Restore or System Rollback in Ubuntu/LinuxMint?  Is there anything that can undo an apt-get install package command?


So in jQuery you have $variable and in Javascript you have variable without the $  Why do you use the $ if you can just simply declare something as var variable? Why do you need to have jQuery $variables at all?


I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)


Why are "barely more than a link to an external site" answers deleted?

I just had an answer deleted by @Flexo that meets the criteria "barely more than a link to an external site".  Those with sufficient privileges can see it here:   All of the questions posed are answered completely, and much more, in the tutorial that I linked to.  In my opinion, that is an excellent and complete answer, and it is very useful for others looking at those sorts of questions to be directed to that tutorial.  In fact the questioner said exactly that: "Thanks for the link. It is very useful. I didnt find any good links like this."  So basically, I disagree with the criteria: "barely more than a link to an external site" being applied without thought or inspection.  Such answers should be permitted when they are in fact answers and useful to others.  There is no value in repeating the tutorial or parts of the tutorial in the answer.  Other opinions?


How to find the large directory which is reserving the biggest disk space?

How to find (as grouped) the directory who is taking all the disk spaces?  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        60G   54G  6.4G  90% / devtmpfs        1.4G     0  1.4G   0% /dev tmpfs           1.4G     0  1.4G   0% /dev/shm tmpfs           1.4G  161M  1.3G  12% /run tmpfs           1.4G     0  1.4G   0% /sys/fs/cgroup tmpfs           285M     0  285M   0% /run/user/0   It does not help to see /dev/vda1 is 90%, how to check which directories having the largest disk reserve?  example:  /var/log/httpd    20GB /var/log/pluto    10GB /var/log/syslog    5GB /var/log/tcpdump   1GB /...              restGB


Where do I get HM02 Fly in Pokemon X and Y?

I am getting tired of running from city to city, so now I am on the quest for HM02. Do I get it through the main story, or is there somewhere I must go non-quest specific?


why do I have red dots all over the foreground of my stars long exposure shot

I have a 60D and have never had this problem before although I have never set the exposure for 30 minutes I am so disappointed its a great shot


Salesforce Users are getting this error quite frequently: "To protect all customers from excessive usage and Denial of Service attack..."

Salesforce users are getting the following error message:     To protect all customers from excessive usage and Denial of Service attacks, we limit the number of long-running requests that are processed at the same time by an organization. Your request has been denied because this limit has been exceeded by your organization. Please try your request again later.   What could be caused by?  Many thanks, AlbertoB


From :  Modern humans and Neanderthals share 99.7% of their DNA  and  1–4% of the DNA of living non-African humans are found by the Max Planck Institute to likely come from Neanderthals, a result confirmed in 2012, and refined to 1.5–2.1% in 2014  What do they mean? If it is similar for 99.7, how it could be that 1.5%-2% is unique genes from Neanderthals? The Africans do not have them, so African different from European in 1.5-2% ? But that's not true.


Prove $a^n+1$ is divisible by $a + 1$ if $n$ is odd:  We know $a$ cannot be $-1$ and the $n \in \mathbb{N}$. Since $n$ must be odd, we can rewrite $n$ as $2k+1$. Now we assume it holds for prove that it holds for the next term.  $$a^{2(k+1)+1}+1$$ $$=a^{2k+3}+1$$ $$=a^3\cdot a^{2k}+1$$ $$=(a^3+1)\cdot a^{2k} -a^{2k}+1$$  Im not sure on what to do next. Since $a^{2k}$ means that the exponential term will be even and thus you cant use the fact that $a^n+1$ is divisible by $a + 1$ if $n$ is odd.


"If not for his wide, thin lips, perpetually drawn in a single disapproving line, she would have liked him too."

I am not sure about the grammatical correctness of the above sentence. I am writing a fictional short story and this sentence is part of the narrative.   My friend says it should be "If not for his wide, thin lips, which were perpetually drawn in a single disapproving line, she would have been attracted to him too."  But even that sounds a bit odd to me. Can anyone confirm which one is correct, and if neither, then how can it be framed using the same structure.


Step in the Stein's proof of Plancherel Theorem

I am reading Stein's Fourier Analysis, and I am confused by the proof of Plancherel's theorem.      If $f \in \mathcal S(\mathbb R)$, then $||f|| = ||\hat{f}||$.    The norm here is defined in the $L^2$ sense. The proof goes like this.     If $f \in \mathcal S(\mathbb R)$, define $g(x) = \overline{f(-x)}$.    Then $\hat g(\xi) = \overline{\hat f(\xi)}$.   Let $h = f*g$.   Then $\hat h = \hat f \hat g = |\hat f|^2$, and $\displaystyle h(0) = \int f(-t)g(t) dt = \int f(-t)\overline{f(-t)} dt = \int|f|^2$.    Apply Fourier inversion formula, and get $\displaystyle h(0) = \int \hat h(\xi) d\xi$. Thus $\displaystyle\int |\hat f|^2 = \int \hat h = h(0) = \int |f|^2$.   I understand every step in this proof except for the setence $\hat g(\xi) = \overline{\hat f(\xi)}$.  I try to expand this thing, and get  $\displaystyle \hat g(\xi) = \int g(x)e^{-2i\pi x\xi} dx = \int \overline{f(-x)}e^{-2i\pi x\xi} dx = -\int \overline{f(u)}e^{2i\pi u\xi}du = -\overline{\hat f(\xi)}$,  which would make everything after this off by a minus sign. Could someone tell me what went wrong with my argument here?


biblatex not displaying author (only sometimes)

My bibliography is not showing the author of some of my references. Which ones it shows seems to be affected by the order in which i cite them, and I have no idea whats going on. The actual document has 20+ references and seems to be completely random which ones work and which don't. I am using overleaf if that matters. \documentclass[11pt, a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel} %referencing package \usepackage{csquotes} %references/quotes  \usepackage[style=ieee]{biblatex} \addbibresource{sample.bib}  \begin{document}  \tableofcontents \thispagestyle{empty}  \chapter{Introduction} %\cite{MATLAB:docs:max}  \cite{MATLAB:2020}  \section{Next Section} \cite{MATLAB:docs:find} \cite{MATLAB:docs:max} \cite{MATLAB:docs:for}  \printbibliography[title={References}, heading=bibintoc]  \end{document}  results in:  and if i uncomment the first "\cite{MATLAB:docs:max}" \begin{document}  \tableofcontents \thispagestyle{empty}  \chapter{Introduction} \cite{MATLAB:docs:max}  \cite{MATLAB:2020}  \section{Next Section} \cite{MATLAB:docs:find} \cite{MATLAB:docs:max} \cite{MATLAB:docs:for}  \printbibliography[title={References}, heading=bibintoc]  \end{document}  it changes which authors it does/doesnt show correctly:  Full code for references "sample.bib" @book{MATLAB:2020, year = {2020}, author = {MATLAB}, title = {9.8.0.1417392 (R2020a)}, publisher = {The MathWorks Inc.}, address = {Natick, Massachusetts} }   @online{MATLAB:docs:find,     author = "Mathworks ",     title = "Find",     year = "2021",     url  = "https://au.mathworks.com/help/matlab/ref/find.html",     addendum = "(accessed: \today)",     keywords = "MATLAB,documentation, Mathworks, function" }  @online{MATLAB:docs:max,     author = "Mathworks ",     title = "Max",     year = "2021",     url  = "https://au.mathworks.com/help/matlab/ref/max.html",     addendum = "(accessed: \today)",     keywords = "MATLAB,documentation, Mathworks, function" }  @online{MATLAB:docs:for,     author = "Mathworks",     title = "For",     year = "2021",     url  = "https://au.mathworks.com/help/matlab/ref/for.html",     addendum = "(accessed: \today)",     keywords = "MATLAB,documentation, Mathworks, function" }


Is there an online resource for searching Italian census records

From ancestry.co.uk I know I have an Italian Great-Great Grandmother, name Maude Angelina Georgina Antonio, born 1880 Milano, Italy, father Thomas Antonio, married William Elias Barnett in 1899, Greenhill England.   I would like to find more about her parents, likely to both be Italian. For Uk research Ive found census records invaluable. I know they did censues in Italy but are they publicably available (online)


Accent error in PHP x MYSQL, using UTF8_encode() and UTF8_decode()?

I am having problems with accentuation in a project that I am giving maintenance.          Table MYQL using utf8_unicode_ci       String Error   $text = 'SÃ£o Josï¿½'; #correct São José echo utf8_decode($text); #print São Jos� echo utf8_encode($text); #print SÃÂ£o JosÃ¯Â¿Â½   How to solve using php 5.6?


i am learning on TextSuggestion leson with AndroidStudio. Here's my code :  activity_main.xml  <?xml version="1.0" encoding="utf-8"?> <LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     tools:context="com.zihadrizkyef.belajar_textsuggestion.MainActivity"     android:id="@+id/activity_main"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     android:padding="16dp">      <EditText         android:id="@+id/etText"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_marginBottom="30dp"         android:hint="Enter Text"/>      <TextView         android:id="@+id/tvSuggestion"         android:layout_height="wrap_content"         android:layout_width="match_parent"         android:layout_marginBottom="5dp"         android:hint="Suggestion"/>      <Button         android:id="@+id/btSuggestion"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:hint="Suggestion"/>  </LinearLayout>   MainActivity.java  package com.zihadrizkyef.belajar_textsuggestion;  import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.textservice.SentenceSuggestionsInfo; import android.view.textservice.SpellCheckerSession; import android.view.textservice.SuggestionsInfo; import android.view.textservice.TextInfo; import android.view.textservice.TextServicesManager; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast;  public class MainActivity extends AppCompatActivity implements SpellCheckerSession.SpellCheckerSessionListener {     EditText etText;     TextView tvSuggestion;     Button btSuggestion;     SpellCheckerSession scs;      @Override     protected void onCreate(@Nullable Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          TextServicesManager tsm = (TextServicesManager)getSystemService(TEXT_SERVICES_MANAGER_SERVICE);         scs = tsm.newSpellCheckerSession(null, null, this, true);          etText = (EditText)findViewById(R.id.etText);         tvSuggestion = (TextView)findViewById(R.id.tvSuggestion);         btSuggestion = (Button)findViewById(R.id.btSuggestion);          btSuggestion.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 TextInfo[] ti = new TextInfo[1];                 ti[0] = new TextInfo(etText.getText().toString());                  scs.getSentenceSuggestions(ti, 3);             }         });     }      @Override     public void onGetSuggestions(SuggestionsInfo[] results) {      }      @Override     public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] results) {         System.out.println(results.length);     } }   I tried to put "A" on edit text then clicked the suggestion button. But it always throws null pointer exception. I've try search about it on google and here but not found any article talking about this problem  ---EDIT---  Of course my post different with  question. Mine asking about SpellCheckerSession.getSentenceSuggestion that throws null, and  question asking about "what is null exception pointer".


I am looking for social network datasets (twitter, friendfeed, facebook, lastfm, etc.) for classification tasks, preferably in arff format.   My searches via UCI and Google weren't successful so far... any suggestions?


One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having...   using namespace xyzzy   ...statements in them, which impact on my code when I least want or expect it.  Is there a way I can somehow cancel/override a previous "using" statement to avoid this.  Maybe...  unusing namespace xyzzy;


Maximum number of edges in a simple graph?

I found that the maximum number of edges in a simple graph is equal to $$\sum\limits_{i=1}^{n-1} i$$  Where $n =$ number of vertices.  For example in a simple graph with $6$ vertices, there can be at most $15$ edges.  If there were any more edges then $2$ edges would connect the same pair of vertices and thus would not be a simple graph.  Is this a known theorem?


Task: $\frac{du}{dt} = u(1-\frac uA)$ with $u(0) = u_{0}, 0 < u_{0} < A$   I know that this is a variable separation type, however, I have no idea to solve it.  what should be the next step?


I have 2 operating systems on my computer: Windows and Linux. I had to reinstall Windows for a long complicated issue after I had Linux installed on my computer which deleted or at least hid the grub boot loader. Is there any way I can boot into Linux without it? I know there are already questions on this, but every answer assumes I can access Linux. I can't, which is the entire reason I'm asking this. And downloading another boot loader or something won't work because the entire reason I want to get into Linux is to help fix an issue with my Windows that is preventing it from connecting to the internet.


Distance of a test point from the center of an ellipsoid

I'm trying to learn about  and I'm pretty close to getting the idea. I've learned that the distance has got a lot to do with the properties of an . I have understood so far that:  The Mahalanobis distance is simply the distance of the test point $\textbf{x}$ from the center of mass $\textbf{y}$ divided by the width of the ellipsoid in the direction of the test point and is given by the formula:  $$D(\textbf{x},\textbf{y})=\sqrt{ (\textbf{x}-\textbf{y})^TC^{-1}(\textbf{x}-\textbf{y})} $$  Now my question is: "Why does this formula give us the distance of a point $\textbf{x}$ from the center of mass $\textbf{y}$ divided by the width of the ellipsoid in the direction of the test point?" =)   I don't understand or see how this formula describes that distance, could someone help explaining this distance more? How is the plain distance of a point $\textbf{x}$ from the ellipsoid's center of mass $\textbf{y}$ in the direction of the test point found and why? =)  I hope my question is clear enough. My question could be analogous with for example "Why does $c^2 = a^2 + b^2$" Then you would prove this to me with a geometric proof or something =)  Thank you for any help =)   P.S. $C$ is the covariance matrix of vector $\textbf{x} = (x_1, ..., x_n)$


Travelling to Romania on a short stay Schengen visa issued by France?

I am Tunisian and I have single entry short stay Schengen visa issued by the French embassy. I live in United Arab Emirates, is it OK to go from United Arab Emirates to Romania and stay there for 5 days and come back to United Arab Emirates? If not, what would I have to do?


I have a used DelL latitude 2120 laptop with Ubuntu o/s I do not have administrator password and can not get past the screen that says this computer is protected by password authentication system?


What's the difference between IN TIME and ON TIME?

Consider a situation where a meeting is scheduled to start at 12:00 pm but one of the participants happens to appear at 12:15.   Did that individual come "in time" or "on time"? What's the difference between "in time" and "on time" as applied to this situation?


The Banach-Mazur distance is not reached

Let $X,Y$ be isomorphic Banach spaces.  The Banach-Mazur distance:   $$ d(X,Y)=\inf\{\|T\| \cdot \|T^{-1}\|: T:X\longrightarrow Y \ \text{is an isomorphism} \}$$  can be rewritten as:  $$ d(X,Y)=\inf\{\|T^{-1}\|: T:X\longrightarrow Y \ \text{is an isomorphism}, \|T\|=1\} $$  If $X,Y$ are finite dimensional spaces the infimum is reached.   But if $X,Y$ are infinite dimensional spaces the infimum is reached ?  Any hints would be appreciated.


My father was born in Spain and all his family are Spanish from as many generations back as we can find, my mother was born in Ireland and her Irish family history has been traced back to the times of vikings. I was born in New Zealand, and am unsure what my correct 'race' is. I always mark myself down as Caucasian but could it be that I am part Hispanic too?


Probability that an integer number having Poisson distribution is even

The probability $P(X=n)$ that an event X takes place $n$ times in a fixed period of time follows the Poisson distribution with parameter $\lambda$ i.e.  $$ P(X = n) = e^{-\lambda} \frac{\lambda ^ n}{n!}$$  I have to evaluate the probability that the event $X$ takes place an even number of times. I know that:   $$ P(X \text{ is even} ) = e^{-\lambda} \cdot \sum_{k=0}^{+\infty} \frac{\lambda^{2k}}{(2k)!}$$  but I can't solve the series.  I guess that I have to use the fact that $e^\lambda = \sum_{n = 0}^{+\infty} \lambda^n/n!$, but I got stuck.  How can I evaluate $P(X \text{ is even})$ (alternative solutions appreciated).


I know that symlinks have a separated inode from the original file and that they only point for the inode containing the data. My question is, where is the hardlink name stored if there's no field in the inode structure refering to "name". I know that this could be a a relatively easy question, but as all hardlinks have the same inode number i assume that no inode is created when creating a hard link.


Editting en_US.dic file with custom words

I want to manually add words to the en_US.dic library. When I open the file in a text editor I can add words as needed, but I do not understand what some of the syntax or attributes are. I spent an hour looking for the answers but was unable to find what I was looking for.  Here is an example of what I am trying to understand.  logarithm/MS   logbook/MS   loge/SMNX   logged/U   loggerhead/SM   logger/SM   loggia/SM   logging/MS   logicality/MS   logicalness/M   logical/SPY   logician/SM   logic/SM   login/S     After each of the above words is an "/" followed by one or more capital letters, '/SM' or '/U' or '/SPY' etc. and I don't know what they mean and if I need to use them when I add words manually myself.


I'm trying to boot into Gparted with a USB stick I have, but when I turn the computer on, it brings me to the GRUB menu.  I have a dual boot Ubuntu/Windows computer and am trying to shrink the Windows partition and grow the Ubuntu partition.  I'm not great at this kind of stuff, and hoping for fairly clear instructions how to go about doing this. I tried following , but I got stuck at the step "chainloader /efi/boot/bootx64.efi".  I have a feeling that command isn't exactly the same for my situation, but not sure what else I'm supposed to put.  Otherwise though, the commands I entered showed good signs, like saying something like it being a gparted fat-formatted partition, or something like that.  But also not sure if that is the best route to go to boot gparted. Also, I'm pretty sure my USB stick is properly formatted, I followed  to be specific. Edit:  seems to be related to getting a bootable USB drive w/ GParted, but I have one already, and am having troubles with booting it


I created a page that has three tables. The second table is inside a div with overflow: auto. My problem is precisely in this table. I need the entire page has never more than 100% in height. - The first table should always be visible at the top of the page; - The third table should always be visible at the bottom of the page; - The second table should have their height varied according to the space remaining to complete 100% of the browser. Does anyone know how to solve my dilemma? Here is a demonstration of the code:


Put small numbers outside of a pgf-pie chart

I have a pgf-pie chart and some of the values are so small that the number does not display correctly. Therefore I would like to put them outside of the chart, as seen on the second picture I found on the internet. MWE of my chart \documentclass[tikz, 12pt, a4paper]{report} \usepackage[T1]{fontenc} \usepackage{caption} \usepackage{subcaption} \usepackage[usenames, dvipsnames, rgb]{xcolor} \usepackage{tikz} \usepackage{pgf-pie} \usetikzlibrary{arrows, positioning, shadows} \begin{document} \begin{figure}[!htbp] \centering \begin{tikzpicture} \pie[sum=auto,text=legend]{10/A, 1/B, 29/C, 43/D, 16/E} \end{tikzpicture} \caption{Pie} \end{figure} \end{document}  This is what my chart looks like  This is the picture of how I imagine my the numbers outside could look like I found but obviously, I'd like to keep the legend and all other formatting.  How can that be done?


I am having problems displaying Unicode like "★", it wont insert into the database, it just shows up as "â˜… ", however when I do it directly in PHPMyAdmin it works fine, so I don't think its the MySQL database I think its something to do with PHP. Wondering if anyone knows the cause and a way to fix it?


Can the passage of time be measured in the absence of motion?

All of the ways I have heard of to measure the passage of time involve measuring some sort of motion (e.g. vibrations of a cesium atom, movement of the hands on a clock, etc.).  Can the passage of time be measured without reference to any motion?


Discrete non archimedean valued field with infinite residue field

Let $\mathbb{K}$ a field with a discrete non archimedean absolute value and $A$ its ring of integers. Then $A$ is Noetherian, every ideal is generated by a power of $\pi\in A$, a uniformizer, and its unique maximal ideal is $\mathfrak{M}=\pi A$.  For instance, $\mathbb{Q}_p$ is such a field. Its residue field is $A/\mathfrak{M}\cong\mathbb{Z}/p\mathbb{Z}=\mathbb{F}_p$, the finite field of $p$ elements.   Is there any field $\mathbb{K}$ whose residue field is not finite?


How does the current limiting resistor for an LED affect current and voltage drops?

I'm having a bit of trouble understanding currrent limiting resistors in simple LED circuits. I know that I can determine the optimal resistor like so:  \$\displaystyle R=\frac{V_{s}-V_{f}}{I_{f}}\$  But I'm having a hard time understanding how this one value modifies the voltage and the current to the correct values for the LED. For example, if my calcuations for a super bright blue LED (with \$V_{f}\$ being 3.0-3.4 V and \$I_{f}\$ being 80 mA, and a voltage source of 5 V) gives me 25 ohms (using the lower bound of the forward voltage), that's fine. So the current throughout should be 80 mA and the voltage drop for the resistor and LED should be 2 and 3 volts, respectively.  But what if I used a 100 ohm resistor instead? Or any other value—how would I calculate the voltage drops and current? Would I assume one of them stays the same?


I came from here and already fixed my sudoers:   That allowed me to get sudo working. However, whenever I use sudo, I get a warning:   sudo: /var/db/sudo/ts is owned by uid 501, should be 0   how do I fix this?


What is the style used for visited hyperlink in MS Word?

I can change the color of hyperlink in my files by updating the "Hyperlink" style but when it is a visited hyperlink, it turns purple and underlined. I wanna change this but cannot find the Visited Hyperlink style or something similar.


What are the different signal indicators avalable on the notification bar?

The signal indicator on my phone often shows "3G" or "H+" in the signal indicator. When there's no connectivity it doesn't show anything.  I'm referring to the icons in the status bar like these:      What are the different signal icons that are shown in android? I've never used an LTE/4G handset or even been on one of those networks so I'm also curious to see what indicators are used for those.


Is always passing by reference a bad practice?

First, I would like to clarify my question here. During my coding development, I found myself passing by reference in my class member functions except for those built-in types. But I have an idea in my mind why wouldn't I use a pointer to pass in an argument (passing by pointers).   Is it a bad practice to pass by reference not passing by pointers?


I want to link my domain name with Odoo, i.e. once I enter my domain name on Mozila/Chrome Odoo installed on vps which is linked with my domain should run in my browser.  Domain name : www.testing.com  Installed module on vps : Inventory  I configured on local but attached Apache page is showing. I follow below links and too much material on Internet but still not able to solve my issue.  domain is active on cloudflare and domain taken from name.com is it required cloudflare nameserver update on name.com or name.com nameserver need to update on cloudflare. Do I need to install ngnix?


The system is running in low graphics mode after changing root password

My ubuntu was working ( it was having a working graphics driver), but I changed my root password then immediately the power was gone ( forced shutdown).    Then next time I restart my ubuntu I get this error:     The system is running in low graphics mode   I have seen this  but it talks about installing and updating drivers and I dont think I need that.   I am looking for explanation that relates root password change and the error message I get  update: when I hit ctrl+alt+F1 on recovery mode boot it gets stuck after printing:    Loading extension GLX       Thanks,


Example of a domain where all irreducibles are primes and that is not a GCD domain

One has the following relations for a domain $R$:  $R$ GCD domain $\Rightarrow$ All irreducible elements are prime  $R$ PID $\Rightarrow$ $(R$ GCD domain $\land$ $R$ statisfies ACCP$)$  $R$ UFD $\Leftrightarrow$ $(R$ GCD domain $\land$ $R$ satisfies ACCP$)$  $R$ satisfies ACCP $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ All irreducible elements are prime$)$  $R$ GCD domain $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ $R$ atomic domain$)$  So what is the difference between a GCD domain and a domain where all irreducible elements are prime? What is the "weakest" predicate $P$ such that  $R$ GCD domain $\Leftrightarrow$ $($All irreducible elements are prime $\land$ $P(R))$ ?


How to test that the regression coefficient = 1

I'm doing a market model calculation with OLS and I'm using R. I have a sample date with variable Rm and Ri. Its a market model off asset returns as $$    R_i = \alpha + \beta R_m $$ I have fitted a linear model, and now I have to run a Market Adjusted return model for $\beta = 1$, using t test statistics with hypothesis as H0: $\beta$ =1 ; H1: $\beta$ <>1 Please help how to perform a test that $\beta$ =1


Examples of manifolds that are not boundaries

What are some examples of manifolds that do not have boundaries and are not boundaries of higher dimensional manifolds?  Is any $n$-dimensional closed manifold a boundary of some $(n+1)$-dimensional manifold?


I'm having trouble with a simple AND gate, using two 2N2222 NPN transistors:   For some reason, the base of the second transistor is high at 2.9V and I don't know what's causing this. I have verified that it isn't shorted to 3V and cut off the input to B so it seems the transistor is outputting the current. What could be causing this?


Feature Request : Combined Flair (not Network flair)

At present, there are 2 options for flairs.  Either the site specific flair (OR) The network Flair.  That is if I choose it from StackOverflow,  I can either use this    Or I can use this    So My feature request is Can We have a flair containing only Selected sites?  That is  If I want to only include Stack Overflow and Travel.se,  Then I may put something like this  https://stackexchange.com/users/flair/2824081.png?theme=clean&site=stackoverflow&site=travel   Another Case  If I want to show only Android SE and Meta SE,  I can use  https://stackexchange.com/users/flair/2824081.png?theme=clean&site=android&site=meta.se


Can we fully simulate molecular physics?

Is our knowledge of physics complete enough to achieve fully natural simulations of molecular interactions in a computer simulation? How far off are we?   Reason for question: I wonder how far we are from simulating cells in a computer. I assume that this would be possible once we have complete models for physical and chemical interactions. Once we can simulate cells in a computer and run hundreds of experiments simultaneously, our knowledge of cell biology could start to increase very rapidly, allowing us to for example discover medical cures faster.


Is copying a sentence considered plagiarism?

In writing a phd thesis, if a sentence is copied as it is and given proper references, then will it be considered as plagiarism?


In Java, when should I create a checked exception, and when should it be a runtime exception?

Possible Duplicate:          When should I create a checked exception, and when should I make a runtime exception?  For example, suppose I created the following class:  public class Account {     private float balance;      /* ... constructor, getter, and other fields and methods */      public void transferTo(Account other, float amount) {         if (amount > balance)             throw new NotEnoughBalanceException();         /* ... */     } }   How should I create my NotEnoughBalanceException? Should it extend Exception or RuntimeException? Or should I just use IllegalArgumentException instead?


Human evolution mutants secret school story

Looking for short story probably golden age about a father that enrolls his child in a school for psychic genius mutants.  He is a latent mutant so he is able to see the secret writing the school uses.  The school is part of an effort to fast track evolution in the human race because of fears of an alien invasion that is also evolving quickly.


I would like to use same name from intranet AND Internet?

I host two websites that are accessable from the Internet by podcast.example.com. They are one-to-one NAT on an internal network. On the internal network, I would like to have the hosts type podcast.example.com into there browser and the request go to 192.168.168.240 instead of the public IP. I have 30-50 hosts on the network so going to everyone and modifying the host file is not really an option.


I would like to define a command that does this:  \command word1 word2 ... n-word --> Word1 Word2 ... n-Word   with first letter bold and capital. I wrote this:  \makeatletter % we need to use kernel commands \newcommand{\boldAcr}{%          \@boldAcrOne     } \newcommand\@boldAcrOne{         \@ifnextchar\stopbold{\@boldSend}{\@boldAcrTwo}     }  \newcommand\@boldAcrTwo[1]{%         \@boldAcrThree{#1}          \@boldAcrOne % restart the recursion     } \newcommand\@boldAcrThree[1]{%         \fb{#1}         } \newcommand\@boldSend[1]{% The argument is \stopbold  } \makeatother \newcommand{\fb}[1]{\dofb#1} \newcommand{\dofb}[1]{\MakeTextUppercase{\textbf{#1}}}   and then in the document  \boldAcr {hello}{hi} \stopbold   The result is:  Hello  Hi  but i would like the output to be in the same line. Is there a way to do that?


Questions with mathjax don't fit in the box

This bug is intermittent, only showing up on some answers, but not others.  Sometimes, posts that have mathjax equations expand the math, but don't resize the text box, cutting off some text on the bottom.  Note that this is on the IOS public beta, so that may partially have caused the problem.     App Version: 1.5.3.5 Device: iPhone 5s (GSM) OS Version: Version 10.0 (Build 14A5322e)


I have a big pot full of chicken necks and backs on the stove which I need to separate into (a) stock and (b) everything else.  I'm wondering the best way to go about doing this. I've previously laid cheesecloth into a fine-mesh strainer and poured it through that, but the cheesecloth always seems to kind of clog up, making straining 4 litres of stock a very lengthy process. I also tried a coffee filter laid inside a strainer and got more-or-less the same results.   Alternatively, I ditched the cheesecloth and just used the fine-mesh strainer by itself, but, unsurprisingly, this method leaves some bits I'd rather not have.   I'm wondering: is there a better way? Or should I stick with the cheesecloth and work on being more patient?


How to change culture to a DateTimepicker or calendar control in .Net

How to set internationalization to a DateTimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed in the PC?


Basically I want to start learning Blender so I have some question regarding that. So please give me reply for these questions.  If I have fbx file then can I import that file in Blender?  If importing of fbx file is possible in Blender then modification related to that model is possible?


Best Approach When Using Trial Subscriptions

In terms of UX what do you guys think is the best approach when integrating a trial period for subscriptions?  My application offers a 15 day trial, at the minute the user can sign up without providing any payment information (Paypal Subscription). The account is then set to trial status and after 15 days the user will be redirected to an upgrade page.  Do you think this is the best approach? I am unsure whether or not to let Paypal manage the trial, this however means that the user will need to go through the Paypal payment system during signup. I think this may put some people off signing up.  On the other hand this approach may increase the number of conversions to a full account.


Why does Wine installation fail saying it can't install other versions of it?

I tried various versions to install Wine, but I am getting the below error:  sudo apt-get install wine1.5  The following packages have unmet dependencies:  wine1.5 : Depends: wine1.6 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  sudo apt-get install wine1.6  The following packages have unmet dependencies:  wine1.6 : Depends: wine1.6-i386 (= 1:1.6.1-0ubuntu1~ppa1~precise1) E: Unable to correct problems, you have held broken packages.  sudo apt-get install wine1.7  The following packages have unmet dependencies:  wine1.7 : Depends: wine1.7-i386 (= 1:1.7.18-0ubuntu1) E: Unable to correct problems, you have held broken packages.   I also followed , but steps 5, 6, and 7 are unsuccessful.


Number of all finite sequences from a set?

Given a set $\Sigma$ of letters, apply the Kleene star operation to it, and we get $\Sigma^*$, the set of all finite-length sequences from $\Sigma$, called strings (allowing a letter appearing more than once in a string).  If $\Sigma$ is empty, then $\Sigma^*$ consists only one string, the empty string.  If $\Sigma$ is not empty, then $\Sigma^*$ has an infinite cardinality.  I wonder if $\Sigma^*$ can be countably infinite? When will that be true? When $\Sigma$ is finite?  When will its cardinality is uncountably infinite?  Thanks!


I'm encrypting some files using AES in CBC mode.    I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so I need to store it with file).  Is it safe to use this digest as AES's IV and store it in the header of file? Or it has security issue?


I'm trying to install some software on Kali 2019.1 (VMware Workstation 12) following instructions ,  but nothing is working. I've downloaded the ISO from the official Kali website.  Attempting to install Ubuntu Software Centre with apt-get install software-center results in      E: Package 'software-center' has no installation candidate   The GPK-Application GUI which is supposedly available from Applications > System Tools > Add/Remove Software does not exist. In fact, the Add/Remove Software menu item does not exist.  When I open the Software application, which in Ubuntu functions like the AppStore, the only thing I get under categories is 'Add-ons'.  What is wrong? It seems I cannot install anything.


How to connect XBOX 360 Wireless on Ubuntu 16.04

I'm asking this because of my paranoia. I already know about this question: , but I want someone to confirm that this is working on 16.04 too.  I want to buy 2 Xbox 360 Controllers, and they come with a Wireless adapter from a site like eBay. The problem is that I want to use them on my Ubuntu 16.04 Laptop, and I want to be sure that this configuration will work. What do I need to install and do?


Images in blockquotes in lists are protruding

The two red lines at either side of the below image delineate the boundary of the area containing the contents of the post. Observe that the right side of the nested image extends beyond the red line.  ()           Here's a high-contrast version, in case your eyes aren't sharp enough to spot that (mine nearly aren't):            That optical difficulty would not be replicated with an image that was not substantially white (as no doubt many images used on SE are).   Note that the offending images are within a blockquote in a list item - excessive nesting could be the cause.


How can I set a daily limit on a specific user's login time?

I need to restrict the use of a machine to two hours per day (total, across multiple sessions of being physically logged in at the console). Is there any way I can do that?  Edit: I suppose I could do something with pam_exec, but before I go that route and accidentally lock myself out of my machine (like I did with my Pi :( )....


How to prove that exponential grows faster than polynomial?

In other words, how to prove:  For all real constants $a$ and $b$ such that $a > 1$, $$\lim_{n\to\infty}\frac{n^b}{a^n} = 0$$  I know the definition of limit but I feel that it's not enough to prove this theorem.


Does $dist(x, \partial A) \leq dist(x, \partial B)$ if $x \in A \subset B$?

Let $(M,d)$ be a metric space, let $A \subset B \subset M$, and let $x \in A$. Does the inequality below hold?  $$ dist(x, \partial A) \leq dist(x, \partial B) $$  Follow-up question: if not, does it hold if we add either/both of the following restrictions:    $A$ and $B$ are open $(M,d)$ is $\mathbb{R}^n$ with the usual distance   NOTE: for any set $E \subset M$, we define $dist(x, E) = \inf \{ d(x,z) : z \in E \}$


Tochange the look and feel Site settings and Visual upgrade options is not available after migrating 2007 to 2010

After migrating 2007 to 2010, the 2007 site has been displayed in the sharepoint 2010. But when i am trying to upgrade, the visual upgrade is not available and site settings is also not available.  Please help,  Thanks


java.lang.NullPointerException in json error

At First run everthing is good it's running with no error but when i try to refresh it using swiperefreshlayout boom! it crash :( i got this error.   java.lang.NullPointerException         at parse.FeedDataParser.getFeed(FeedDataParser.java:25)         at better.business.solution.feedssample.SampleGraph$1.onCompleted(SampleGraph.java:57)         at com.facebook.GraphRequest$5.run(GraphRequest.java:1243)         at android.os.Handler.handleCallback(Handler.java:615)         at android.os.Handler.dispatchMessage(Handler.java:92)         at android.os.Looper.loop(Looper.java:137)         at android.app.ActivityThread.main(ActivityThread.java:4745)         at java.lang.reflect.Method.invokeNative(Native Method)         at java.lang.reflect.Method.invoke(Method.java:511)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)         at dalvik.system.NativeStart.main(Native Method)   this is my code in FeedDataParser      public List<ResultFeed> getFeed(){      try {         List<ResultFeed> result = new ArrayList<ResultFeed>();         JSONObject jsonObject = mFeedJson.getJSONObject("feed");         JSONArray jsonArray = jsonObject.getJSONArray("data");         for(int ctr=0; ctr<jsonArray.length();ctr++){              ResultFeed resultFeed = new ResultFeed(jsonArray.getJSONObject(ctr));              result.add(resultFeed);         }         return result;       } catch (JSONException e) {         e.printStackTrace();     }     return null; }   and my asynctask which call everytime i refresh my app.      private List<ResultFeed> feedItemList;     private MyAdapter myAdapter;     private SwipeRefreshLayout mSwipeRefreshLayout;    public InitializeApplicationsTask(Context context,AccessToken accessToken,OnDataFullFeedListener dataFullFeedListener,List<ResultFeed> feedItemList,MyAdapter myAdapter,RecyclerView mRecyclerView,SwipeRefreshLayout mSwipeRefreshLayout) {          this.feedItemList = feedItemList;         this.myAdapter = myAdapter;         this.mSwipeRefreshLayout = mSwipeRefreshLayout;          GraphRequestFeeds graphRequestFeeds = new GraphRequestFeeds(dataFullFeedListener,context);         graphRequestFeeds.resultInBatchReq(accessToken);          Log.e("constructor",""+accessToken);      }      @Override     protected void onPreExecute() {          super.onPreExecute();         Log.e("onPre", "jac");     }      @Override     protected List<ResultFeed> doInBackground(Void... params) {           Log.e("doinBack", "jac");         Log.e("feeditemlist1",""+feedItemList);         return null;     }      @Override     protected void onPostExecute(List<ResultFeed> resultFeeds) {         super.onPostExecute(resultFeeds);            mSwipeRefreshLayout.setRefreshing(false);      }   Plsss help me :((((


How do I double each line of piped output?

How do I double each line of input piped in?  Example:  echo "foobar" | MYSTERY_COMMAND foobar foobar


How to print a Variable value once time inside the loop

I have This code For Example and I want to print the result once time number = [1, 2, 3, 4, 5] for i in number:     print(f'The Number Is => {i}')   EX: The Number Is => 0 Then 0 become 1 and 2 etc..


Show that $\dfrac{\phi (n)}{n}=\sum\limits_{d|n} \dfrac{\mu (d)}{d}$

This problem is from Ram Murtys book Problems in analytic number theory. In his solutions it only says that this is an immediate result when combining the Möbius inversion formula: $$f(n)=\sum\limits_{d|n}g(d) \ \ \ \forall n\in \mathbb{N} \Leftrightarrow g(n)=\sum\limits_{d|n}\mu (d)f(n/d) \ \ \ \forall n\in \mathbb{N}$$ and gauss theorem: $$\sum\limits_{d|n}\phi (d)=n.$$ I cant get it right though... Here is one thing that I have tried thus far: Let $f(n)=\phi (n)$ in Möbius inversion formula. We wish to show that $g(d)\stackrel{?}{=}\dfrac{\mu (d)}{d}$. We have that $$g(n)=\sum\limits_{d|n}\mu (d)f(n/d)=\sum\limits_{d|n}\mu (d)\phi (n/d).$$ From here I have tried a bunch of things which seemed unjustified and did not actually get me anywhere. Can someone give me a hint on how to solve this problem?


How to UV unwrap MULTIPLE image textures on top of one another?

I have a package label with a background illustration that I'm trying to emboss so I decided UV unwrapping the label design into separate layers and onto the bottle "panel" would be the best option only problem is up until right now I only know how to uvwrap ONE image onto ONE surface at a time.  I've tried creating a new UV map in the data panel and adding the second image texture to it's material but that hasn't worked.    The top left image is the first image text and the bottom right is the one I'm trying to unwrap on top of it.


In the following MWE:  \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{document}     \begin{tikzpicture}       \begin{axis}[ymode=log, ymin=0.005, ymax=0.1]         \addplot [mark=diamond]         plot [error bars/.cd, y dir=both, y explicit]         table [x=x, y=y, y error=y-err]{%           x y y-err           0 0.070 0.003           1 0.026 0.001           2 0.018 0.001           3 0.012 0.02         };       \end{axis}     \end{tikzpicture} \end{document}   The error of the last point is too large so that the error bar should span from -0.008 to 0.022. However, because I am plotting in log-scale, the lower bound is completely gone, as shown below. In standard plotting libraries (like MATLAB or matplotlib), the lower error bar usually extends until below as far as ymin.  I know that one way to fix this is to to use y error minus=y-min, y error plus=y-max and choose an appropriate y-min. However, I am wondering if there is a better way, since this requires modifying all the points even though only one is problematic. Better yet, is there a way to fix the behavior of error bars?    Example Python code that produces the correct plot (MATLAB is similar):  import matplotlib.pylab as plt x = np.arange(0,4) y = [0.070, 0.026, 0.018, 0.012] yerr= [0.003, 0.001, 0.001, 0.02] plt.yscale('log')  plt.errorbar(x,y,yerr=yerr, fmt='-o') plt.xlim([-1, 4]); plt.ylim([0.005, 0.1]) plt.show()


Trying to overwrite a variable in a method

I got a problem I am currently stuck on. Essentially what I want to do is I want to have a variable array, have that be overwritten, saying it to a different variable, then having the initial variable be overwritten again, saving it to yet again a different variable and comparing the two saved variables.  The code in mind goes as follows:  int[] Item1 = {1,1} int[] SavedItem1; int[] SavedItem2;  Program1(); SavedItem1 = Item1;  Program2(); SavedItem2 = Item1;  player.sm("The value is: " + SavedItem1[0] + " and " + SavedItem2[0] + ".");  public static void Program1() { Item1 = {2,2,2,2,2};} public static void Program2() { Item1 = {3,4,4,5,5};}   but what this returns ingame is: The value is 1 and 1, clearly it does not overwrite the value in the programs, I don't understand why not and I don't know how to solve this problem, what would be the correct way to do what I am trying to do here? (The correct output is: The value is 2 and 3.)  Thank you all  -Antoine


How much time passes between the first episode of Fear the Walking Dead and Rick waking up in the hospital?


Short Story: Explorer crash–lands on uncharted planet, is stripped of technology and observed by alien?

Another story I read a few years ago that is likely to be from the 70s or 80s.    This one involves a pilot crashing his ship on an unknown planet. The crash was caused by an alien creature who resides in a metal pyramid on the planet's surface. After the impact, a message is played back to the pilot, constructed from his own audio logs. It tells him that all technology has been taken from him and challenges him to survive. With each passing day, the once civilized man more closely resembles an animal, driven by instinct. However, he is able to retain his sense of reason and begins formulating a plan to penetrate the force-field surrounding the pyramid and to infiltrate the structure itself. When he first catches a glimpse of the alien (referred to as "the Other"), he becomes frightened and runs. Later, he conquers his fear and resolves to return to the pyramid to confront the Other. The Other, although physically more powerful, is terrified by the vicious animal that has somehow bypassed the pyramid's defenses. In the end, the pilot is repeatedly smashing the Other's skull in with a rock, long after the alien's demise.


NER CRF, Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

I have downloaded the latest version for NER from this . Then after extracting it, I have run this command.  java -cp stanford-ner.jar edu.stanford.nlp.ie.crf.CRFClassifier -prop austen.prop   This is not working and getting following exception.  CRFClassifier invoked on Mon Jul 25 06:56:22 EDT 2016 with arguments:    -prop austen.prop Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory     at edu.stanford.nlp.io.IOUtils.<clinit>(IOUtils.java:42)     at edu.stanford.nlp.util.StringUtils.argsToProperties(StringUtils.java:942)     at edu.stanford.nlp.util.StringUtils.argsToProperties(StringUtils.java:891)     at edu.stanford.nlp.ie.crf.CRFClassifier.main(CRFClassifier.java:2994) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)     ... 4 more   In the folder, stanford-ner-2015-12-09 there is another folder lib, it already contains slf4j libraries but still it is not executing above command. I just downloaded and then extracted files and run that command to make a model but this exception is coming. I will be thankful to you if you can help me.


Why does Wolverine say these words when burying this person?

In Logan (2017), Wolverine say these words to himself when burying Professor X:     It's got water, and... It's got water.   Why does he say that?


\printbibliography results in error: ! Argument of \UTFviii@three@octets has an extra }

I have been dealing with this problem some days. Maybe you can help me? When running pdflatex I get this error:  ! Argument of \UTFviii@three@octets has an extra }. <inserted text> \par l.15 I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. Runaway argument?   Minimal Working Example  \documentclass[12pt,twoside]{report} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} % no recuerdo para que era fancy \usepackage{csquotes}  \usepackage[backend=biber]{biblatex} \addbibresource{bibtex.bib}  \begin{document} \cite{klamt1993cosmo} \cite{quantum-continuum-tomasi2005}  \cite{tomasi-PCM1981}. \printbibliography  \end{document}   The bib file i am using is:  % This file was created with JabRef 2.10. % Encoding: UTF-8  @Article{klamt1993cosmo,   Title                    = {COSMO: a new approach to dielectric screening in solvents with explicit expressions for the screening energy and its gradient},   Author                   = {Klamt, Andreas and Sch{\"u}{\"u}rmann, GJGJ},   Journal                  = {Journal of the Chemical Society, Perkin Transactions 2},   Year                     = {1993},   Number                   = {5},   Pages                    = {799--805},    __markedentry            = {},   Publisher                = {Royal Society of Chemistry} }  @Article{tomasi-PCM1981,   Title                    = {Electrostatic interaction of a solute with a continuum. A direct utilizaion of AB initio molecular potentials for the prevision of solvent effects},   Author                   = {Miertu{\v{s}}, S and Scrocco, E and Tomasi, J},   Journal                  = {Chemical Physics},   Year                     = {1981},   Number                   = {1},   Pages                    = {117--129},   Volume                   = {55},    Publisher                = {Elsevier} }  @Article{quantum-continuum-tomasi2005,   Title                    = {Quantum mechanical continuum solvation models},   Author                   = {Tomasi, Jacopo and Mennucci, Benedetta and Cammi, Roberto},   Journal                  = {Chemical reviews},   Year                     = {2005},   Number                   = {8},   Pages                    = {2999--3094},   Volume                   = {105},    Publisher                = {ACS Publications} }   I can not change this file, any change I make jabRef return them in this way again.  Only for it helps, I have download all packages (texlive, biber 1.9, texmaker) from promt, and I am using Debian.  When I remove \printbibliography errors are gone (but I need to print it)  Any idea of what is going on?  EDIT i do not know if it is an answer but changing to biblatex it works.


I'm reading Aluffi's "Algebra: Chapter 0", and have some difficulties with exercise II.1.8:  Let G be a finite group with exactly one element f with order 2. Prove that $П_{g\in G}(g)=f$  I've proved it for abelian groups, is it really true for all groups?


How to integrate JS / CSS only on specified Pages / custom content types

I would like embed my module JS / CSS files only in specified cases. Like on a /url/ or if a custom content type is rendered?


I have a laptop that came with preinstalled windows and everything, it used to work through VPN to connect remote servers. Laptop was not in our ownership until now. But we needed to reinstall OS. But there is problem. Laptop have a bios password. Reset CMOS is NOT WORKING!  There is no way to reset password with standard methods. What i think is that bios was flashed with this password already set as it was part of a communication with goverment software. Company that used to maintain this, refused to give us bios password.  So now we have Laptop that can't be used because there is no way to change booting settings so we can install new bought WIN10. Maybe you will have idea what do to?  EDIT1: Model of laptop is HP Probook 455 G2  EDIT2: one more time, i already tried all the basic methods, as website that can calculate master password, or removing CMOS battery for 2 days! THESE METHODS ARE NOT WORKING!


"Starts with" jquery selector not picking up elements

I'm a bit stumped as to why this code is failing and have used numerous examples, but with no success.  This  is the exact issue I'm stuck on. You will notice that you can create a new row by clicking on the '+' icon, but when you attempt to remove a row by clicking on the trash can icon, presently, it should popup an alert just affirming that we made it into the function. This never happens and henceforth, is the reason for this post.  $("[id^=removeitem]").click(function() {   var elmId = $(this).attr('id');   alert(elmId); });   Any help would be so very appreciated!


I want to use arial font, but it doesn't generate any document. I'm using Texpad software. I tried with helvet package, but it doesn't work. Here's my code, maybe I'm not right. Can you help me?  \documentclass[10pt, a4paper]{article}  \usepackage{fontspec} \setmainfont{Arial} \usepackage{lipsum} \usepackage[ampersand]{easylist}  \begin{document}  \tableofcontents \newpage \section{TITLE} \section{TITLE} \subsection{Subtitle} \subsection{Subtitle} \section{TITLE} \lipsum \subsection{Subtitle} \subsection{Subtitle} \subsubsection{Title} \begin{easylist} & Title & Title && Subtitle &&& Title & Title \end{easylist} \subsubsection{Title} \subsection{Subtitle} \section{TITLE} \subsection{Subtitle} \subsubsection{Title}  \end{document}


How to recover a Picasa account username

Don’t ask me how, but I forgot my Picasa username and password. I don’t have the details on my Gmail either. I have searched high and low to check if there is any way of recovering my username of Picasa.  Any one here know of a way, ANY WAY, to recover a Picasa account?


Are there infinite primes of the form n!+1?

Are there infinite primes of the form n!+1 ? I searched the internet but couldn't find the answer.


How to hold Python console open after execution another script?

I want to execute the following Python script by doubleclicking: exec(open('helloworld.py').read())  The script helloworld.py is just: print('Hello, World!') input()  The result is a short flash of console window. I've tried to paste input() everywhere into both scripts, but it doesn't help. What can be done to hold the console open? Edit: subprocess.Popen('python helloworld.py') allows to execute the script by doubleclicking.


By placing 27 squares with an area of 1 meter inside of a circle with the radius of 2 meters, prove that exist such a point that belongs to 3 different squares. (each one of the squares $\subseteq$ in the circle completely)   now I know that the combined area of the squares is 27 and 2 combined area of the circles is only $8\pi<27$ so the point that I need to prove that exist is indeed exist but I can't figure out how to do it formally with the Pigeonhole principle.  thanks in advance and sorry about the english  edited: I need a solution that involves the Pigeonhole principle