I have a ReadyNAS 104 with a two disks already installed. I have a third disk I want to add to it but the disk has been formatted for Windows. ReadyNAS has a process for re- (un-) formatting disks so that it can use them but it looks awkward. I would like to know if there is a simple way I can return the formatted disk to its original unformatted-straight-out-of-box state using an external usb enclosure connected to a Windows 10 PC?


unable to detect wireless after installing ubuntu 16.10: Broadcom bcm43212

Can anyone help me in fixing my wireless adapter after i have installed ubuntu 16.10. I tried lspci and got the following details:  My network controller is: Broadcom Limited BCM43142 802.11b  Am i supposed to use kdiswrapper can get the wireless driver installed? Did anyone face this issue and has solved it?


Does Ubuntu carry over Windows filenames (png, exe, ect.) or does it have its own?

If they do I'd love to learn the names of them and what they do.


how long time to get approve for Apple Developer Program enrollment?

I have registered my program with individual type from India and it's already 6 days delay but still now i haven't got any email yet. So how long it will take for the activation.


How to add event listeners to elements that are dynamically generated in Jquery

I am dynamically generating HTML code and it works fine and I am sure that it contains the ID's that I am using.   However, I wrote some event listeners for these 2 dynamically generated ID's.  $("#dynamicID2").click(functionX); $("#dynamicID3").click(functionX);   However, It doesn't work. Why is this? and how do I fix this?


How to get correct 'nameinlink' in 'cleveref' when using 'newtheoremstyle' and custom numbering for lemmas and similar environments?

I am using slightly customized theorem styles and have defined the theorem environment to follow the section numbering and lemmas, propositions, and conjectures environments to follow the theorem numbering as shown in the minimal code example and in the picture below. My problem is that then \cref does not quote the correct environment name, but only 'Theorem' instead. My guess is that it has to do with the way I have set up the numbering for the additional theorem environments, but I don't know how to fix the issue.  Minimal code example:  \documentclass[10pt,a4paper]{report}  \usepackage{xcolor}  \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsthm}   \newtheoremstyle{italic}{3pt}{3pt}{\itshape}{}{\bfseries}{:}{3pt}{} \newtheoremstyle{normal}{3pt}{3pt}{}{}{\bfseries}{:}{3pt}{}  \theoremstyle{italic} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition}  \newtheorem{lemma}[theorem]{Lemma}  \theoremstyle{normal} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem*{remark}{Remark}  \usepackage[ bookmarksopen=false, bookmarksnumbered, colorlinks=true, urlcolor=teal, linkcolor=violet, citecolor=green, frenchlinks=false ]{hyperref} \usepackage[capitalize,nameinlink]{cleveref} % always after hyperref     \usepackage{hypcap} \usepackage{bookmark}  \begin{document} \chapter{Chapter1} \section{Section1} \begin{theorem}\label{abc} $a + b = c$ \end{theorem}  \begin{lemma}\label{pqr} $p+q+r=0$ \end{lemma}  \chapter{Chapter2} \section{Section2}   \cref{pqr} is not even wrong.        \end{document}   This produces:       But it should be: "Lemma 1.1.2 is not even wrong". How do I get the correct environment name using \cref?   Feel free to add more appropriate tags.


Recurring Billing with Dynamic Amounts month to month

Is there a billing system that exists where I can have recurring billing every month, and change the amount the client is charged each month using code? For example, one month a user uses our service for one week and is charged $10, but the next week they use the service for 3 weeks and are charged $30, then the following month they use it for  weeks and are charged $20. Every system I've looked at you must manually change this value, and I was wondering if there was a system that allowed you to automate this process. Any help would be greatly appreciated, thanks!


NullPointerException on a mouseListener method

I am trying to write a code that makes a dot with one click, line with two, triangle with three, and restarts on 4, but I keep getting a nullpointerexception on my first click. Here is my code:  import java.awt.Color; import java.awt.Graphics; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener;  import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel;  public class TriangleClicker extends JFrame {     private final int width = 700;     private final int height = 800;     private JPanel panel;     private MouseListener listener;     private int p1x;     private int p1y;     private int p2x;     private int p2y;     private int p3x;     private int p3y;     private int count = 0;     private JComponent tri;  public TriangleClicker() {     this.setSize(width, height);     this.add(createPanel());     this.tri = new MousePressListener();     this.add(this.tri);     listener = new MousePressListener();     this.addMouseListener(listener); }  public JPanel createPanel() {     panel = new JPanel();     panel.setSize(width, height);     return panel; }  class MousePressListener extends JComponent implements MouseListener  {     public Graphics g;     public void drawLine1(Graphics g) {         g.setColor(Color.BLACK);         g.drawLine(p1x, p1y, p1x, p1y);     }      public void drawLine2(Graphics g) {         g.drawLine(p1x, p1y, p2x, p2y);     }      public void drawLine3(Graphics g) {         g.drawLine(p3x, p3y, p1x, p1y);         g.drawLine(p3x, p3y, p2x, p2y);     }     @Override     public void mouseClicked(MouseEvent e) {     }     @Override     public void mouseEntered(MouseEvent e) {     }     @Override     public void mouseExited(MouseEvent e) {     }     public void mousePressed(MouseEvent e) {         if (count == 0) {             System.out.println("1");             p1x = e.getX();             p1y = e.getY();             drawLine1(g);             count++;         }         else if (count == 1) {             p2x = e.getX();             p2y = e.getY();             drawLine2(g);             count++;         }         else if(count == 2) {             p3x = e.getX();             p3y = e.getY();             drawLine3(g);             count++;         }         else if(count == 4) {             g.clearRect(0, 0, WIDTH, HEIGHT);             p1x = e.getX();             p1y = e.getY();             p2x = 0;             p2y = 0;             p3x = 0;             p3y = 0;             drawLine1(g);             count = 1;         }     }     @Override     public void mouseReleased(MouseEvent e) {     } } }   My errors are in the makeLine1() method trying to set the color to black, and in the mousePressed() method trying to call makeLine1().  Thanks.


How do I tackle my problem as I have mentioned in the title?  I tried to check many times but I could not install Google Play Store.  I have a Micromax a77 Canvas.


How Strings in Java is passed to a method

I am new to the Java programming. And I have the following doubt. See the below code. public class Main {     public static void main(String[] args) {         String s = "jithin";         changeFunction(s);         System.out.println(s);     }      public static void changeFunction(String s){         s = null;     } }  I know in java. Everything is call by value. But when we pass objects. It's reference is being passed to the method. So here we passed a String and dereferenced it to NULL. But in main it is  still printing "jithin". Why it is not printing null?


What is the English verb for completing the missing exam?

My friend had an exam but he didn't come because he was sick. Then he needs to pass the exam even he wasn't there. What is the verb or phrase which describes what he needs to do?  ("making-up" the missing works here?)  In addition, in Europe, in some of the universities if you didn't come then you have to pay to the university on the missing class and then you have to go with the receipt to the professor of the missed class and you have to represent the topic that you missed and show him that you studied by yourself, and he asks question about the topic in order to ensure that this student controls in the topic. Is it called "making up" classes or it is something else?


How do they express the time, in American and British English?

I don't know if this is a good question. But as far as I know, and as I do it, American English also say "after" other than "past" in expressing times.   For example, a quarter after six instead of, a quarter past six as in British English.  The other difference I know, so far, is that the British use dots to separate "hour" and "minute" in digital times like "08.35" while Americans use a colon e.g; "08:35".  So is what I know, so far, correct? Or are there any other differences that I don't know about?


Can I assign myself any external IP address that I want?

I have a static external IP address that I got from my ISP. They told me I needed to enter it into my router settings which I did and it worked. But I don't understand how it works exactly.  Does it mean I can go into my router and change the external IP address to any IP that I want and it will work? Without ISP having to assign it to my first? Why does the ISP have to assign me an IP address? How does this work?  From a technical point of view, what will happen if I assign myself a new static external IP address an then try to go online? Why will it not work?


addEventListener vs onclick when callback function changes

My HTML code is below: My question is, why does it show "before" dialog when clicking Button 1, but show "after" dialog when clicking Button 2?  <html>     <body>         <button id="b1">Button 1</button>         <button id="b2" onclick="OnClick();">Button 2</button>          <script>             var OnClick = function(){alert("before");};             document.getElementById("b1").addEventListener("click", OnClick);             var OnClick = function(){alert("after");};         </script>     </body> </html>   JSFiddle link:


In "It is raining", what does "It" refer to?

If "it" is a noun, what is it? If instead, "it is" is the 3rd person present verb to-be, what is the subject of the sentence? (How is it grammatical to have a sentence consisting only of two verbs in that case?)


I am JSP beginner. My JSP code is:       <%@page contentType="text/html" pageEncoding="UTF-8" %>     <%@page language="java" import="java.io.*, java.util.*, java.lang.*, java.math.*, javax.servlet.*, java.*" %>     <%         String subs=null;         subs=request.getParameter("submit");         out.println(subs);         if(subs=="Login")         {             out.print(request.getParameter("usertxt"));             out.print(request.getParameter("passtxt"));         }         else         {             out.print("Not Sign In");         }     %>              <title>Testing - Login</title>         <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">
             <form action="" name="form1" id="form1" method="post">             Username: <input type="text" name="usertxt" id="usertxt" />

             Password: <input type="password" name="passtxt" id="passtxt" />

             <input type="submit" name="submit" value="Login" />             </form>
         The problem is when I submit my form, the if condition results in false and going to else condition. So, everytime when I submit the output is -Not Sign In. When after submit it should print the values of usertxt and passtxt. Although the in the above line out.print(subs) it is printing output - Login. So why does it sending false on if(subs=="Login"). I have also used equals() and still NOT working.  When I use equals(). It is this showing Error.


How come there's no option to send a Read Receipt from a G Suite account?

clearly states:     This feature is only available if you use Gmail for work or school set   up by an administrator. If you use a gmail.com account, read receipts   won’t work.   Alas, using Gmail for work, I get no such option.  How is it possible? Is Google's FAQ untrue? Did they remove the feature? Alternatively, is it only for certain G Suite editions, which their FAQ fails to mention?


Calculating a limit with Harmonic number

I am trying to prove that   $\lim_{n\to\infty} (\frac{\sum^n_{k=1} \frac{1}{k}} { \ln(n) })^{ \ln(n) } = e^γ$ where $γ$ the Euler-Mascheroni constant. We know that that:  $\lim_{n\to\infty} \frac{\sum^n_{k=1} \frac{1}{k}}{ \ln(n) } = 1$  By approximating the sum with integrals $$ \ln(n+1)=\int_1^{n+1}\frac1x\mathrm dx\le\sum_{k=1}^n\frac1k\le 1+\int_1^n\frac1x\mathrm dx=1+\ln n $$ since $1/k$ is decreasing for $k\ge 1$. We have that $$ \frac{\ln(n+1)}{\ln n}=\frac{\ln n+\ln(1+\frac1n)}{\ln n}\to1 $$ as $n\to\infty$ and we obtain the result. But I can't calculate $\lim_{n\to\infty} (\frac{\sum^n_{k=1} \frac{1}{k}} { \ln(n) })^{ \ln(n) } = e^γ.$ Any help?


Unused global option in KOMAscript wrapper class

I want to write several classes, most of them will use KOMA classes as base class.  However I stumbled upon the problem that some options (mainly concerned with layout) are not processed if given in the wrapper class:    \begin{filecontents}{test.cls}     \ProvidesClass{test}[2015/01/01]     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}     \ProcessOptions\relax     \LoadClass[paper=a5]{scrartcl}   \end{filecontents}  \documentclass{test}  \usepackage{blindtext}  \begin{document}   \section{Test}   \blindtext \end{document}   This results in   LaTeX Warning: Unused global option(s):     [paper=a5]  If i give the option as \documentclass[paper=a5]{test} it is used correctly, because I pass the options to scrartcl. However I want to change the defaults for the layout.   How can I achieve this?


I am working on a project for school and I am having a little issue with an IF statement i have made.  it uses a Scanner input and looks for the answer to what the person typed. It doesn't seem to be working however.  public static void remove(){     System.out.println("Would you like to remove a student? (y/n)");     input = new Scanner(System.in);     String answer=input.nextLine();     if(answer == "y"){         Scanner idInput = input;         System.out.println("Please enter a student ID");         for(int i=idInput.nextInt();i<=studentlist.size();i++){             if(studentlist.get(i).getId().equals(i)){                 studentlist.remove(i);                 return;             }         }     }     return; }   When I enter 'y' (without quotes) into the console it just skips my if logic and returns to the main method.      Would you like to remove a student? (y/n) y Student ID  Recent Grades   Name        E-Mail          Age 1       [88, 79, 59]    John Smith  John1989@gmail.com  0 2       [91, 72, 85]    Suzan Erickson  Erickson_1990@gmailcom  0 3       [85, 84, 87]    Jack Napoli The_lawyer99yahoo.com   0 4       [91, 98, 82]    Erin Black  Erin.black@comcast.net  0 5       [79, 88, 91]    Joshua Selvidge jselvidge@wgu.edu   0


I have been looking around to turn off "CMD + , (comma)" opening password manager in Safari but there appears to be no option to do so (maybe I missed it). The same shortcut is used as subscript shortcut in Google Docs and it is really annoying during essays. Does anyone knows how to do such thing? Thank you beforehand! -It is marked as duplicate but the answer is not relevant.


Windows 10 cannot start from GRUB after Ubuntu 17.10 installation

So, let me explain my setup a bit.  I have a MacBook Pro (Early 2011) which I dual booted (Windows 10 and Mac OS). Then I decided I also needed Ubuntu, which I installed on an external disk.  And here's where things turned messy.  When the mac boots up, after pressing the Option button, I can see two options:   One to load Mac OS (which works fine) "EFI Boot"   Selecting "EFI Boot" brings up GRUB, with the following options:   Ubuntu Windows 10 (at /dev/sda1)   If I select Ubuntu it works fine. If I select Windows 10, after a while, it throws me the message File /efi/microsoft/boot/bootmgfw.efi not found  I've read a few posts on the subject, and many suggested running grub-update from Ubuntu.  However, the weird thing is, grub-update seems to recognize Windows. It just doesn't work when selected from the boot menu.  Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.13.0-21-generic Found initrd image: /boot/initrd.img-4.13.0-21-generic Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi done   What's going on? Any ideas?


When a VirtualBox VM's Adapter is set to NAT can a VM access the Host computer?

In a VMs network settings:   Right click settings,  then in the resulting Settings dialog select Network from the side bar  And click any Adapter N tab,  If I set the Attached to: drop down to NAT   Will the VM be able to access the host machine?  Does it get a specific IP with NAT?


Evaluate the surface area of the cone delimited by the plane

Surface is the cone $z^2=x^2+y^2$ delimited by the plane $z=0$ and   $x+2z=3$.   Well, the first thing I thought is to devide it in two parts, the one that is a simple cone and the other part. But I'm a bit lost of how do I find the proper parametrization for this surface.


Can't change Opportunity owner from Trigger because Error record is 'read-only'

This is supposed to be a simple trigger that changes the Opportunity Owner to the the Account Owner upon insert or update of the opportunity. However, I keep getting the error, cannot update the Opportunity because the record is read only.   How should I modify this?  trigger ChangeOwner on Opportunity (after insert, after update) {  for(Opportunity op : Trigger.New) {     Account account = [SELECT OwnerId FROM Account Where Id = :op.AccountId];     op.OwnerId = account.OwnerId;     update op;     } }


When I open an image in the blender, (reference, background, UV-editing, image texture) It always opens as pink colour. I also tried to find missing files option, but it didn't worked. I am desperate and can't do anything related to image in the blender.


While walking, the work done by friction is zero. But who does the work, actually? How someone is getting displaced? This situation also arises when someone climbs without slipping or is climbing a ladder.


Why does this ssh command not work? (cat ./file | ssh  "cat | sudo -t -t 'cat > /root/location/file'")

I'm trying to do the following but it's not quite right.  cat ~/Desktop/blah.png | ssh -t -t trusktr@50.116.4.56 "cat | sudo -i 'cat | /path/to/blah.png'"   I have my public ssh key in the trusktr@50.116.4.56 user's .ssh folder, so no initial password is needed. When the sudo -i command finally starts, it prompts me for the root password, but immediately fails as if I had pressed enter but I didn't even touch the keyboard. I have a feeling maybe the cat command is being catted into the password prompt. The output looks like this:  trusktr@LENOVO-PC ~ $ cat ~/Desktop/win-8.1-missing-lockscreen-setting.png | ssh -t -t trusktr@50.116.4.56 "cat | sudo -i 'cat > /srv/http/default/htdocs/~/img/win-8.1-missing-lockscreen-setting.png'" tcgetattr: Not a character device [sudo] password for root: You type like i drive. [sudo] password for root: Your mind just hasn't been the same since the electro-shock, has it? [sudo] password for root: Maybe if you used more than just two fingers... sudo: 3 incorrect password attempts Connection to 50.116.4.56 closed.   I don't have direct ssh access through the root user, only through a normal user with access to sudo using the root password.  How might I cat the image through ssh, through the non-root user, into the root location all in a single command?


Calculating the expected values of the min/max of 2 random variables

Consider two fair $k$-sided dice with the numbers 1 through $k$ on their faces, obtaining values $X_1$ and $X_2$. What is $\mathbb{E}[\max(X_1, X_2)]$ and what is $\mathbb{E}[\min(X_1, X_2)]$.


Sci-fi animated TV-series about a post asteroid impact on Earth

I watched this cartoon in the '90s or early 2000s and believe that it is American. I remember that the story was about the world after an asteroid impact. An important detail is that uranium/plutonium somehow stops working, thus no nuclear power. Therefore, there was always a struggle for energy.  There was a kind of world government with strong governors (maybe on continental level). However, some evil warlord with its rebels (in red, maybe) ruled in a forbidden zone. The last thing I remember is that the protagonist (I forgot about him) discovered that another impact might occur soon.  Sorry for the few details but I looked in all blogs, wikis and IMDb lists and cannot find it.


Integral of a square compared to the square of an integral

What can be said about a complex valued, continuous function $f$, defined on $[0,1]$, such that: $$ \int_0^1{|f|^2}=\left|\int_0^1{f}\right|^2  $$ I encountered this form as part of an exercise. Obviously, the above holds for any constant $f$, and it seems intuitive that the converse also holds (i.e. that if the above equality is true, then $f$ is constant), but I could not prove it.  Any help will be appreciated.


Calculate modulo solution of a number with a high exponent

I need some help calculating the solution for the following equation:  $ 4^{217} = x \text{ (mod 391)} $  Using power rules ($4^{217} = 2^{434}$) and Eulers theorem ($\phi(391) = 352$) I was able to reduce the term to:  $ 2^{82} = x \text{ (mod 391)} $  This is where my search for a solution comes to a halt. I have been able to further reduce this term to  $ (3^6 * (31^2)^3 * 2^4) = x \text { mod (391)} $  but that is where I got stuck, because I feel like there should be a far more elegant way than the brute force attempt I took from $2^{82}$.  What other tricks can I use to find the correct solution for this equation?


Converting number to number with two decimals

Sorry if this question has already been asked I just can't find how to do it in my problem.  I imported a file with a list of numbers from 1-20 into a listbox and then displayed the total amount of values and average into textboxes. I'm getting the right calculations it's just I have no clue how to convert them.  My code is:  int i = 0; int result = 0; while (i < lstbxDisplayInfo.Items.Count) {    result += Convert.ToInt32(lstbxDisplayInfo.Items[i++]); } //Displays average. txtAverage.Text = Convert.ToString((double)result / i); //Displays Amount. txtAmount.Text = Convert.ToString((double) i);   my output is:  Average: 10.5 Total Amount: 20   I need the output to be:  Average: 10.50 Total Amount: 20.00


When I execute a grassgis alogrithm in Qgis I always get following error:     'ascii' codec can't encode character u'\xfc' in position 23: ordinal   not in range(128) See log for more details   and      This algorithm cannot be run :-(  It seems that GRASS GIS 7 is not   correctly installed and configured in your system. Please install it   before running GRASS GIS 7 algorithms.   In processing opitions I set the path for grassgis to  C:\OSGeo4W64\apps\grass\grass-7.2.0, same for grassgis docs.  There is no option for setting the path to msys.  I reinstalled whole OSGeo4W with coustom options and installed all available options. No result.


I already know how to expand the distance with a normal camera view. But how do I expand it, with the work camera? Or whatever it's called.


I am currently trying to create a wordpress search function that shows live results underneath the search bar. There is an example on the  website (screens below). I'm not looking for an autofill like you would find on Google.com which completes words you type, rather I want it to find actual posts on the site.   I tried doing a scrub through Wordpress Answers and other similar resources but have only run into implementing a Google type search which is not what I am looking for. Any help or points in the right direction would be greatly appreciated.


Irreducible closed subsets of an open set

I'm an undergrad trying to read Algebraic Geometry Part I by Wedhorn and Gortz. They mention that if $X$ is a topological space and $U$ is open, then there are mutually inverses maps: $ \varphi:\{Y\subseteq U \text{ closed irreducible }\} \rightarrow \{ Z\subseteq X \text{ closed irreducible},  Z\cap U\neq \varnothing\}$ $Y\mapsto \overline{Y}^X$ (denoting closure on X) $\psi: \{ Z\subseteq X \text{ closed irreducible},  Z\cap U\neq \varnothing\}\rightarrow \{Y\subseteq U \text{ closed irreducible }\} $ $Z\mapsto Z\cap U$ I understand why both maps are well defined but I don't see why given $Z$ irreducible and closed in $X$ with $Z\cap U\neq \varnothing$, $\overline{Z\cap U}^X=Z$, i.e., why $(\varphi\circ \psi)(Z)=Z$. I would appreacite any help since I don't know much topology. Also is this part of a bigger picture?


I'm trying to find a simple proof that $n!^{1/n}$ is a divergent sequence. I have proved it using a lower bound you can get from an integral (or Stirling's approximation) that $n!^{1/n}>\ln(n)$, but I get the impression from the other questions I've done that it shouldn't need all that machinery.    Hints would be preferred to full solutions, please


Easy to bypass "Are You paying Attention" test by viewing question in detail

I think many of us already aware, still I wanted to let you know that First Post and Late Answers review posts are generated on specific time interval. When time comes for post generation I follow some tricks   Click and till a Post appears for review Then right-click and select Open in new tab 5-8 time. Then in every page follow the below steps   Open the Question of post appeared in review in New tab If Page/Question not exists then simply downvote since post was deleted because of -ve response. Else if page exists then   Check the review post's Net Reputation If reputation is -ve then simply downvote the post came in review Else one may select No Action needed.    This way if in any case a post comes for "Are you paying attention" can be handled easily.  I think if a post comes in review should not allow to view post.


var foo1 = new SomeClass(); SomeClass foo2 = new SomeClass();   Does those two lines of code translate into the same IL, and how does the dynamic differ from them ? I know that dynamic uses some kind of technique called late binding but how does that work ?


What makes a Feynman diagram real or virtual?

Simple question: as the title says, what makes a real Feynman diagram real, and what makes a virtual diagram virtual? Or in other words, how do I tell whether any given diagram is real or virtual? I've never gotten a really satisfying explanation of this. I would imagine it has something to do with virtual particles, but all internal propagators are virtual particles and I know for a fact that having internal lines doesn't make a diagram virtual.


Why do we chose exponential function as a trial solution for second order linear differential equation with constant coefficient?

Why do we chose exponential function as a trial solution for second order linear differential equation with constant coefficient ? Can any other function be taken as a trial solution ?


Restrict access to hdd or partition in windows 8 to admin only

I have extra internal and external hard drives in my computer.  One I use to keep some unused files, and the other I use for backup of my C: drive.  How can I limit anyone that uses my pc under the guest account to even be able to see this HDD?  Furthermore, I actually would like to give guest access to a media folder in one of the hard drives, so I would like to know:   Can I hide a drive from a guest user? How? Can I only make folders unavailable (not hide them) and still share a folder? How?


Instantiated object throws null pointer exception

I am pretty new to programming and as a hobby project, I am working on a card game and I have two classes; one for Card objects:  public class Card {  public enum Suit  {     CLUBS, DIAMONDS, HEARTS, SPADES } //enum type for suit  public enum Rank {     ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN,     EIGHT, NINE, TEN, JACK, QUEEN, KING } //enum type for rank  public Suit suit; public Rank rank; public int value; public String name;  public Card(int suitNo, int rankNo)  {     this.value = rankNo;      switch (suitNo)      {         case 0:         suit = Suit.CLUBS;         break;          case 1:         suit = Suit.DIAMONDS;         break;          case 2:         suit = Suit.HEARTS;         break;          case 3:         suit = Suit.SPADES;         break;      } // switch SUIT      switch (rankNo)      {         case 0:         rank = Rank.TWO;         break;          case 1:         rank = Rank.THREE;         break;          case 2:         rank = Rank.FOUR;         break;          case 3:         rank = Rank.FIVE;         break;          case 5:         rank = Rank.SIX;         break;          case 4:         rank = Rank.SEVEN;         break;          case 6:         rank = Rank.EIGHT;         break;          case 7:         rank = Rank.NINE;         break;          case 8:         rank = Rank.TEN;         break;          case 9:         rank = Rank.JACK;         break;          case 10:         rank = Rank.QUEEN;         break;          case 11:         rank = Rank.KING;         break;          case 12:         rank = Rank.ACE;         break;      } //switch RANK      name = rank.toString() + " OF " + suit.toString();  }  }   And the other class is deck:  public class Deck  {  Card[] cards; //declaring an array of cards  public void Deck ()  { cards = new Card[52]; //declaring an array of cards with array size int count = 0;  for (int i = 0; i < 13; i++)  {     for (int j = 0; j < 4; j++)     {          cards[count] = new Card(j, i); //instantiating the cards         count++;      } }  }   However, when I instantiate a deck object with its constructor, I have an empty deck object. I assumed that the Deck constructor should instantiate Card objects into the array via the loop, but it doesn't happening, and I can't see the reason why.  I would appreciate any hints and helpful comments!  Thank you kindly!


How does one get another torch once it runs out?

Stumbled into the gutter via the well in Majula and my torch ran out. Where and how can I get another torch to light?


Would the One Ring even work for anyone but Sauron?

The temptation of the One Ring, we quickly learn, is always tied up with power: each character's fantasies of possessing it seem to be about what they would do with great power. Even Sam, as I recall, imagines the power to create great huge sweeping gardens. Boromir wants the power to save Gondor, etc.  But does the One Ring actually convey power to anyone but Sauron? It actually seems to diminish its bearers: Bilbo feels "thin" and "stretched", Sméagol becomes the wretched Gollum, Frodo is never quite the same even after it is destroyed. None of them seem more "powerful," even in the abstract way that magic-users in Tolkien operate. No mention is made, that I can recall, of a Ringbearer having greater stature or authority, or of people naturally following them or obeying their commands, while they possess the Ring.  The accepted answer to  implies that a being as powerful as Gandalf could dominate the Ring and break Sauron's hold over it, but even then Tolkien says that "It would have been the master in the end", and his descriptions of a Ringbearing Gandalf sound pretty much like Gandalf is using his own powers, not terribly augmented by the Ring:     [Gandalf] would have remained 'righteous', but self-righteous. He would have continued to rule and order things for 'good', and the benefit of his subjects according to his wisdom (which was and would have remained great).   Now that sounds out of character for a being as humble as Gandalf, but it doesn't actually sound like something he would have been unable to do before. It's a twisted motive, but not really an enhanced power.  Pretty much everyone in Middle-earth agrees that the One Ring will corrupt you, but they all seem to agree that it DOES convey great power even so. Why? Do we ever see any actual, "positive" effects from possessing the One Ring?


How to run a command in linux and use its output in another command?

I want to subtract from the output of the nproc command and run another command using the calculated value.  The following doesn't work in linux:  somecommand --set_cpus = (nproc - 1)


Bibliography not in ToC when using biblatex/biber

I just managed to switch from using BibTeX to biblatex with the biber backend. My references now appear how I want. However I have two new issues.  1) How do I change "Bibliography" to references? The old \renewcommand{\bibname}{References} does nothing.  2) How do I make the Bibliography appear in my Table of Contents because it now doesn't when using \printbibliography as per biblatex. Is it just a case of doing the \addcontentsline{toc}{chapter}{References}? Or is there a more subtle method?


Proving that $\left(1+\lambda/n\right)^n\to e^\lambda$

I wish to show that $\lim_{n\to\infty}\left(1+\frac{\lambda}{n}\right)^n=e^\lambda$ as part of the proof of the Poisson limit theorem. My first avenue of attack was to take the log of both sides and then use L'Hopital's rule, but the result was of the form $0\cdot \infty$, so that didn't work.  I also noticed that the proof would follow from the proof that $\left(1+\frac{1}{n}\right)^\lambda = \left(1+\frac{\lambda}{n}\right)$ for large $n$, but I wasn't able to prove this either.  Any hints?


How to find  line startwith and replace in linux.   file:/usr/test.pl  startswith:   "abc.xyz" => "0"  replace:   "abc.xyz" => "1"    Note before: "abc.xyz" three spaces  I achieved using python script    newlines = [] with open ('/usr/test.pl', 'r') as f:     for line in f:         if "\"abc.xyz\" => \"0\"" in line         newlines.append("   \"abc.xyz\" => \"1\",\n")     else:             newlines.append(line) with open ('/usr/test.pl', 'w') as f:     for line in newlines:         f.write(line)   Same how to achieve in bashscript or sed command.


My logo goes blurry when I try and upload it to instagram

I've made a logo in photoshop, it's high quality. When I then export and try to upload as my instagram profile picture, it becomes blurry. Is anyone able to help.


automating entering username and password on terminal using bash

Actually, the command I'm running is sudo openvpn nl-free-01.protonvpn.com.udp.ovpn   So this asks for username and password every time I run the command Enter Auth Username: Enter Auth Password:  I want to automate this using bash script... Is it possible?


Covariance between $X_i-\overline{X}$ and $\overline{X}$

Let $n>2$ and $\sigma^2>0$. A math exam was held with $n$ participants. The score follows the normal distribution with the mean $\mu_X$ the variance $\sigma^2$. Scores of the math exam are $X_1,...,X_n$. $$\overline{ X }=\frac{1}{n}\displaystyle \sum_{i=1}^n X_i$$ For each $i = 1,...,n$, what is the value of covariance between $X_i-\overline{X}$ and $\overline{X}$?  (What I have tried) $\operatorname{Cov}[X_i-X,\overline{X}]$ $ = E[(X_i-X)\overline{X}]-E[X_i-X]E[\overline{X}]$ $=E[X_i\overline{X}] - E[\overline{X}^2] - (E[X_i]-E[\overline{X}])E[\overline{X}]$ $=E[X_i\overline{X}] - E[\overline{X}^2] - (E[X_i]-\mu)\mu$ and I don't know how to deal with the rest of term with $E[]$. Can anyone help me?


How to get this symbol about normal group?

General input  normal group use $\unlhd$ or $\trianglelefteq$,     I want to get the two symbols in LaTeX:    (I see it at P.Grillet. "Abstract Algebra". 2nd ed, GTM242)  It's like another symbol $\leqq$ and $\lneqq$, and I hope know that how to get I hope them seem like adding a vertical line to $\leqq$ or $\lneqq$, so that the size is relatively close to $\leqq$ or $\lneqq$.  I want to know how to get these two symbols in a simple way.


Nikon 50mm f/1.8 even on manual gives fEE error with D3300?

The camera functions fine from f/1.8 all the way to f/22 when I lock the aperture ring at f/22. Whenever I try to use the aperture ring, however, it gives an fEE error and that is even on manual mode and aperture priority. I have checked the lens and can make sure that the aperture ring in fact does correctly change the aperture when it is disconnected from the camera.  Do I have a faulty lens or do I need to change a setting to allow control of the aperture from the lens instead of the camera? As far as I have read, it seems like the D3300 should allow manual control of the aperture from an aperture ring. Am I mistaken?


Windows 1803 and still auto restarting for updates

It was my understanding that with the Creators Update 1703, Windows 10 would no longer be auto restarting on its own. Currently running 1803 and am still experiencing forced restarts. Are these editions unrelated? Should I still be having this problem? Forced updates are still occurring despite changing the Scheduling Task name and disabling the service. I don't care why, but to imagine someone would design a system that pseudo-randomly restarts itself is beyond me.  UPDATE  I'm thinking a possible culprit is a service named 'Windows Update Medic Service', but can't find a way to disable it on any forums and admin rights are not sufficient. Links point to a utility called Windows Update Blocker but I'd prefer to do this manually.  UPDATE 2  Does nobody have a suggestion regarding this? Even a confirmation that this can't be solved would be validating. It's restarted three times this month on its own and destroyed everything I had in RAM. Unfortunately I only have this copy of windows that came with the computer, I really don't want to go and buy a new copy in hopes it will be a different 'version' of this pos. It keeps taunting me with its smirk message 'Heads up we're going to make windows better soon...' right before it does whatever it wants.  UPDATE 3:  Had it automatically restart 3 friggin' times this week. Once after Patch Tuesday, and then another 2 times without any notice or warning. Cannot leave the computer running safely overnight... great job Microsoft. Plus it automatically re-starts services that were running when it shutdown which causes more problems. Worse yet, under Services, Windows Update and Windows Update Medic Service is listed as 'Stopped' and 'Manual' startup... this is after all the restarts.


I'm trying to read binary data using C#. I have all the information about the layout of the data in the files I want to read. I'm able to read the data "chunk by chunk", i.e. getting the first 40 bytes of data converting it to a string, get the next 40 bytes.  Since there are at least three slightly different version of the data, I would like to read the data directly into a struct. It just feels so much more right than by reading it "line by line".  I have tried the following approach but to no avail:  StructType aStruct; int count = Marshal.SizeOf(typeof(StructType)); byte[] readBuffer = new byte[count]; BinaryReader reader = new BinaryReader(stream); readBuffer = reader.ReadBytes(count); GCHandle handle = GCHandle.Alloc(readBuffer, GCHandleType.Pinned); aStruct = (StructType) Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(StructType)); handle.Free();   The stream is an opened FileStream from which I have began to read from. I get an AccessViolationException when using Marshal.PtrToStructure.  The stream contains more information than I'm trying to read since I'm not interested in data at the end of the file.  The struct is defined like:  [StructLayout(LayoutKind.Explicit)] struct StructType {     [FieldOffset(0)]     public string FileDate;     [FieldOffset(8)]     public string FileTime;     [FieldOffset(16)]     public int Id1;     [FieldOffset(20)]     public string Id2; }   The examples code is changed from original to make this question shorter.  How would I read binary data from a file into a struct?


Prove $\mu(X) = 1$, and $E_1, \dots, E_n$ are measurable and $\mu(E_1) + \dots + \mu(E_n) > n - 1$, then $E_1 \cap \dots \cap E_n \neq \emptyset$

Using integrals prove that if $\mu(X) = 1$, and $E_1, \dots, E_n$ are measurable such that $\mu(E_1) + \dots + \mu(E_n) > n - 1$, then $E_1 \cap \dots \cap E_n \neq \emptyset$.  I did a similar proof but without integrals:  If $\mu(A) + \mu(B) > 1$ and $\mu(X) = 1$ then $A \cap B$ can not be empty, because if it were, we'd have $\mu(A) + \mu(B) > 1 = \mu(X)$, but since $A \cup B \subset X$ then $\mu(A \cup B) = \mu(A) + \mu(B) - \mu(A \cup B) < 1 = \mu(X)$ which gives a contradiction.   I know that integral over a set $E \in \mathcal{F}$ such that $\mu(E) = 0$ is 0, but that leads me nowhere.


Installing Terminator changes default terminal. How to set it back to GNOME terminal?

I installed terminator and it changed my default terminal. I want to reset it to GNOME terminal. How can I do it?


Using customized Coordinate System in ArcGIS Desktop?

I don't know so much about coordinate systems...  In my office we use to deal with spatial data coming from archaeological sites. Each site has its own x-y-z coordinate system (GCS). Three simple ortogonal cartesian axis. In the last years we have been managing this spatial data through GIS software (ArcGIS), without using specific coordinate system (just leave it as "undefined")  I'd like to know if there exisits any GCS designed to deal with such datasets using simple cartesian orthogonal axis, without grid distortions of the typical GCS. In addition, I'd like to know if this system is suitable for using it in an online mapping application.  By the way, we manage 2D (ArcMap) and 3D (ArcScene) environments and work with "mm" as length base unit.   If such a thing doesn't exists, maybe someone knows how to create it.


how to get user input and do telnet to it in shell scripting

I am trying to write a shell script for the first time.  My aim is to check the login prompt for any device when I run the shell script through telnet.I need to give only the ip address as input.Username and passwords are same for all routers.  So once i give ./scriptname "ip address",it should automatically login with username and password which will be defined in script.  I tried a piece of code but didn't work well.  Can someone kindly help me on this?  Code:  #!/usr/bin/expect   read -s "Enter the ip address" ip  spawn telnet "$ip"  set timeout 20  expect -re "OS10 login:"  send "admin\n"  expect -re "Password:"  send "admin\n"  interact   Error:  wrong # args: should be "read channelId ?numChars?" or "read ?-nonewline? channelId"     while executing "read -s "Enter the ip address" ip"     (file "./telnet" line 3)


Getting an IllegalArgumentException Null. Crashes after launch when i click on signup button

MainActivity.java code The main activity loads a startup animation then launches to a login screen which has a login button and a signup button that animates to the signup screen. But the app restarts and then crashes when i click on signup button.         public void run() {              //Call next screen             Intent intent = new Intent(MainActivity.this, Login.class);              // Attach all the elements those you want to animate in design             Pair[] pairs = new Pair[2];             pairs[0] = new Pair<View, String>(image, "logo_image");             pairs[1] = new Pair<View, String>(logo, "logo_text");                  //wrap the call in API level 21 or higher             if(android.os.Build.VERSION.SDK_INT>=android.os.Build.VERSION_CODES.LOLLIPOP)             {                 ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(MainActivity.this, pairs);                 startActivity(intent, options.toBundle());             }         }, SPLASH_SCREEN);  Login.java code             Pair[] pairs = new Pair[7];             pairs[0] = new Pair<View, String>(image, "logo_image");             pairs[1] = new Pair<View, String>(logoText, "logo_text");             pairs[2] = new Pair<View, String>(sloganText, "logo_desc");             pairs[3] = new Pair<View, String>(username, "username_tran");             pairs[4] = new Pair<View, String>(password, "password_tran");             pairs[5] = new Pair<View, String>(login_btn, "button_tran");             pairs[6] = new Pair<View, String>(callSignUp, "login_signup_tran");              if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)             {                 ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Login.this, pairs);                 startActivity(intent, options.toBundle());             }  Stacktrace java.lang.IllegalArgumentException: Shared element must not be null     at android.app.ActivityOptions.makeSceneTransitionAnimation(ActivityOptions.java:833)     at android.app.ActivityOptions.makeSceneTransitionAnimation(ActivityOptions.java:753)     at com.chijid1.medlabtuts.Login$1.onClick(Login.java:58)     at android.view.View.performClick(View.java:7161)     at android.view.View.performClickInternal(View.java:7138)     at android.view.View.access$3500(View.java:811)     at android.view.View$PerformClick.run(View.java:27419)     at android.os.Handler.handleCallback(Handler.java:883)     at android.os.Handler.dispatchMessage(Handler.java:100)     at android.os.Looper.loop(Looper.java:221)     at android.app.ActivityThread.main(ActivityThread.java:7520)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)  Does anyone know what causes this behavior? Any proposed fix for this?


What is the condition for $Var(\sqrt{n}(\hat\theta-\theta))\to V$ as $n\to \infty$ where $V$ is the asymptotic variance

What is the condition for $Var(\sqrt{n}(\hat\theta-\theta))\to V$ as $n\to \infty$, where $V$ is the asymptotic variance of $\sqrt{n}(\hat\theta-\theta)$. That is $\sqrt{n}(\hat\theta-\theta))\to^D N(0,V)$.  I ask this since in general convergence in distribution does not imply convergence in moments.


Run laptop off AC power without charging battery

It's true that keeping lithium batteries fully charged degrades them quicker than at half charge (). I bring my laptop with me in the day, but run it on the charger in the evenings.  Besides removing the battery (not possible on many new laptops), is there a way to run the laptop off the AC adapter without the battery charging?


continuous and Periodic function is Uniformly continuous

Given continuous and Periodic function, How can I prove that it is Uniformly continuous?  Thank you!


Stepwise regression in R – Critical p-value

What is the critical p-value used by the step() function in R for stepwise regression? I assume it is 0.15, but is my assumption correct? How can I change the critical p-value?


My camera view is not right. i'm new in blender so i dunno how to fix it, i have tried everything but can make it right the camera view on the right seems to have like a lens that makes it look that way, Thanks


How to get selected text from textbox control with javascript

I have a textbox and a link button.  When I write some text, then select some of them and then click the link button, selected text from textbox must be show with a messagebox.   How can I do it?    When I click the submit button for textbox below, message box must show Lorem ipsum. Because "Lorem ipsum" is selected in the area.    If I select any text from the page and click the submit button it is working, but if I write a text to textbox and make it, it's not. Because when i click to another space, selection of textbox is canceled.   Now problem is that, when i select a text from textbox and click any other control or space, text which is selected is must be still selected.   How it is be done?


I'm trying to figure out how to change which version of PHP the php alias uses...  I want it to use: /opt/plesk/php/5.6/bin/php  But it currently uses: /usr/bin/php (I think)  How can I ensure that when typing php through SSH, that it's using the updated plesk version?


iOS app crashes when attempting to edit a post with excessive code

I have attempted to edit . In this case, it contained code within a single block. As soon as the editor comes up, the app stops responding and crashes after a few seconds. I have tested this several times and it has occurred each time.  However, this does not occur in the browser (the Chrome app, at least).   iOS version: 8.1.3 (latest) App version: 1.2.2 (latest)


I have read in several sources that in agreement with a negative statement one can use either, for instance:     I am not a child, and my cousin isn't either.   At the same time, there is the word neither that can be used here:     I am not a child, neither is my cousin.   From the sentences aforementioned, which one sounds more natural? Which is more formal/informal? Is there any difference at all?


Writing the formula for maximum likelihood

I'm new to latex and i would like to write in latex code the formula for maximum likelihood with the L and lambda in parenthesis. I thought I would find it easily on the internet but no luck. It is the two formulas written below especially the 1 with the contour.


Measuring accuracy of latitude and longitude?

I have latitude and longitude as 19.0649070739746 and 73.1308670043945 respectively.   In this case both coordinates are 13 decimal places long, but sometimes I also get coordinates which are 6 decimal places long.   Do fewer decimal points affect accuracy, and what does every digit after the decimal place signify?


Trying to add multiples of 5 elements into a list

Basically what i'm trying to do is take every 5 elements from an existing list and then add those elements as a string into another list. For example the below list would output ['12345', '54321']... My attempts so far are below i'm new to coding and would appreciate help best regards Jake  string = ['1', '2', '3', '4', '5', '5', '4', '3', '2', '1'] counter = len(string) holder = '' final = []  while counter > 0:     for i in string:         if len(holder) >= 5:             final.append(holder)             holder = ''             counter -= 1         else:             holder += i             counter -= 1   Current output gives me this ['12345'] with holder containing '4321' and counter equaling 0 i guess the fact that the '5' is missing has caused the if statement not to trigger but where has the missing '5' Gone


Find the condition on $a$ and $b$ so that the two tangents drawn to the parabola $y^2=4ax$ from a point are normals to the parabola $x^2=4by$

Find the condition on $a$ and $b$ so that the two tangents drawn to the parabola $y^2=4ax$ from a point are normals to the parabola $x^2=4by.$  The required condition is $a^2>8b^2$.I dont know how to prove it.I tried.  Let $(h,k)$ be the point from where tangents are drawn to the parabola $y^2=4ax$.Let $m_1,m_2$ be the slopes of the tangents.Equations of tangents are $y=m_1x+\frac{a}{m_1}$ and $y=m_2x+\frac{a}{m_2}$ and equations of normal to the parabola $x^2=4by$ is $y=m_1x-2bm_1-bm^3_1$ and $y=m_2x-2bm_2-bm^3_2$.  As $y=m_1x+\frac{a}{m_1}$ and $y=m_1x-2bm_1-bm^3_1$  are the same lines.Therefore,$\frac{a}{m_1}=-2bm_1-bm^3_1$  $bm^4+2bm^2+a=0$  And I am stuck.I cannot get the desired condition.Please help me.


I am trying to get to grips with es6 classes and I seem to be unable to pass a boolean value to a constructor.  In the following code  export default class site_alert {   constructor(options) {     this.message = options.message || 'default cookie message';     this.autoDisplay = options.autoDisplay || true;     console.log(this.autoDisplay);   } }  var sitemessage = new site_alert({   message:"Some string",   autoDisplay: false });   autoDisplay is always true, it takes the default value regardless of whats being passed to it when I create an instance of the class.  If I change autoDisplay to be a string it works fine.  Are you unable to pass booleans to the constructor like this?


apache force if url has specific pattern redirect to https

How can I force Apache if URI start with "admin-" pattern or contain "admin/user/login" redirect to https of the same uri.  For example:  If the URI is :   http://examplesite.com/admin-2dns24dw    Redirect to :  https://examplesite.com/admin-2dns24dw    And if the URI is :  http://examplesite.com/en/admin/user/login/msg   redirect to :  https://examplesite.com/en/admin/user/login/msg   And if any https URI that hasn't any of this patterns should be redirect to http of same URL.  For example:  If the URI is :   https://examplesite.com/fa/dashboard   Redirect to :  http://examplesite.com/fa/dashboard   **  UPDATE **  I tried:   RewriteCond %{HTTPS} !=on  RewriteCond %{THE_REQUEST} admin-|admin/users/login [NC]  RewriteRule ^(my) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]   but it didn't worked.  whats the problem?


I'm using Leaflet JS with a modified GeoJSON file of world contries to display a choropleth, like this:    Is there any way to display the far-eastern part of Russia as a contiguous entity? Rather than it being split to due to its coordinates.


I have two lists:   A =  ["a", "b", "c"] B = ["H", "N"]   How to append values from second list to first, if I need to get this:  C = [["a","H"], ["a","N"], ["b", "H"], ["b", "N"], ["c", "H"], ["c", "N"]]


What exactly is the fixed field of the map $t\mapsto t+1$ in $k(t)$?

Suppose $k$ is a field, and $k(t)$ is the rational function field. If $f(t)=P(t)/Q(t)$ for some polynomials $P(t)$ and $Q(t)\neq 0$, then the map $t\mapsto t+1$ sends $f(t)$ to $f(t+1)$.   So the fixed field for this map the set of rational functions $P(t)/Q(t)$ such that $$ \frac{P(t)}{Q(t)}=\frac{P(t+1)}{Q(t+1)}\text{ or }P(t)Q(t+1)=P(t+1)Q(t). $$ This does not seem awfully descriptive. Is there a more explicit description of what the fixed field looks like, (perhaps in terms of the form of $P$ and $Q$?), in order to get a better handle on it?   Later: With the wonderful help of Professor Suárez-Alvarez, I understand that the $\sigma$-invariant polynomials in $k[t]$ have all factors of form $\phi_\alpha$ where $\phi_\alpha=\prod_{i=1}^{p-1} (t-\alpha-i)$ for $\alpha$ a root of $f$ in $k$ when $k$ is algebraically closed.  What happens when $k$ is not algebraically closed? I think you can still factor out polynomials of form $\phi_\alpha$ for $\alpha$ roots of $f$ in $k$. But if $f$ does not split completely then there will be some $\sigma$-invariant factor with not roots in $k$ in the factorization of $f$. Is there anything more one can say to describe this remaining part? Or is that about the best we can do? Thank you for your time.


Why does two objects with different weights fall at the same time, taking air resistance to be negligible?

For instance, since weight is given by mass x gravitational field strength and assuming both objects have the same gravitational field strength and the only changing variable is its mass, why do they fall at the same rate?


Lubuntu 16.10: How to make login through greeter without typing password work

How to allow an account to login at the greeter without typing the password in Lubuntu 16.10?  I think I remember that worked in Ubuntu but I have not found a way to make that work in Lubuntu  GUI Try 1  I tried the gui way: "user & groups" -> change password -> [check] "don't ask password on login". And then reboot computer.  That doesn't work. The lightdm gtk greeter surely doesn't ask for a password for the user (let's say it is called user2), but then after I click ok, then the hard disk run for a while and then I go back to the login in screen again.  Original Config  /etc/lightdm/lightdm.conf:  [SeatDefaults] # Check https://bugs.launchpad.net/lightdm/+bug/854261 before setting a timeout user-session=Lubuntu greeter-session=lightdm-gtk-greeter allow-guest=false   Config File Try 1  I undo the gui try. Added the following lines to /etc/lightdm/lightdm.conf.d/20-lubuntu.conf, which was empty before I added these lines.  [SeatDefaults] user-session=Lubuntu autologin-user=user2 autologin-user-timeout=delay   I reboot the computer, and find that I still need to password to login at lightgreeter.  Config File Try 2  I undo other changes to the configuration files. Undo the gui try. I followed   Add the following lines to /etc/lightdm/lightdm.conf  [Seat:*] pam-service=lightdm pam-autologin-service=lightdm-autologin autologin-user=user2 autologin-user-timeout=0   After that I reboot the computer. Still need password to login.  Config File Try 3  I undo other changes to the configuration files. Undo the gui try. I followed   add the following lines under the existing section [SeatDefaults] to  /etc/lightdm/lightdm.conf,  autologin-user=user2 autologin-user-timeout=0 user-session=Lubuntu greeter-session=lightdm-gtk-greeter   After that , I reboot the computer. Still need password for login.  Config File Try 4  I undo config file try 3, and didn't use the gui try. I back up /etc/lightdm/lightdm.conf to /etc/lightdm/lightdm.conf.orig and then replace /etc/lightdm/lightdm.conf with 's config file:  [Seat:*] autologin-guest = false autologin-user = user2 autologin-user-timeout = 0  [SeatDefaults] allow-guest = false   After that, I reboot the computer. Still need password to log in as user2 at the greeter.  New Account (Workaround 1)  I create a new account called user3. When I create it I choose not to encrypt homefolder, I also choose to login automatically before I actually log into the account. After that, automatic login on the account seems to work, so far.  I can try to replicate everything I did for user2 at the user3 account. But ideally, I should just click the checkbox for user2, and make autologin work for the existing account...  Summary  I don't know why only the gui way changes the behavior of the greeter (it makes the greeter doesn't ask for a password, but it also doesn't let me login. I certain hear some hard-disk noise for a few seconds though.).


Does League of Legends have a tournament that is recognized as the 'Most Important'?

Is there a tournament that is comparable to the Super Bowl, World Series, Stanley Cup Playoffs, FIFA World Cup, Daytona 500, etc.? Or does LoL not have seasons in the traditional sense of other sports. I ask this because it says that the game is in Season 2 so I'm curious.  Is there an all-defining championship for LoL?


Why and when should I use "this" to access methods from base class during inheritance in c#?

Noobie here, but I was wondering why and when would I need to use "this" keyword to access the Promote method in GoldenCustomer when I can already access it since GoldenCustomer is derived from the base class Customer which already has this method? Saw "this" being used in an online course but could't help but wonder.  Edit: No my question isnt a duplicate because the other question doesnt answer when and if it is necessary to use "this" during inheritance.      class Program     {         static void Main(string[] args)         {             Customer customer = new Customer();             customer.Promote();               GoldCustomer goldCustomer = new GoldCustomer();             goldCustomer.OfferVoucher();         }     }     public class GoldCustomer : Customer{         public void OfferVoucher(){             this.Promote();   //why is this used here?         }     }     public class Customer{         public int Id { get; set; }         public string Name { get; set; }         public void Promote(){             int rating = CalculateRating(excludeOrders: true);             if (rating == 0)                 System.Console.WriteLine("Promoted to level 1");             else             System.Console.WriteLine("Promoted to level 2");         }         private int CalculateRating(bool excludeOrders){             return 0;         }      }


Will Installing KDE Desktop block me from getting UBUNTU security updates and newer versions of UBUNTU?

I want to install KDE desktop.If i install KDE then will i get  UBUNTU security updates and newer versions of UBUNTU? OR, Will be blocked from getting  getting them?


How to make text file created in Ubuntu compatible with Windows Notepad?

Sometime I have to use the text files created in Ubuntu, using editors, in Windows editors. So basically when ever I create a text file in Ubuntu I append the extension .txt, and it does make the file open in Windows very easily.  But the actual problem is the text files created in Ubuntu are so difficult to understand (read) when opened in Windows' Notepad. No matter how many lines have been used, all the lines appear in the same one line.  Is there a easy way to save the text files in Ubuntu's basic editors so that it can be seen exactly the same in Windows' notepad?


Does anyone know how logs were calculated before calculus?

I am curious as to how the original log tables were generated. How did they determine that log base 10 of 7 were approximately 0.845...  I've seen various hand calculations of square roots and sine and come up with my own and I have found they help me understand the nature of those functions. I was wondering if I could strength my intuitions of logs beyond the simple notion of what exponent raises the number to the correct value.


I have 33h:38m:06s of music that I am trying to combine (for a project) into one large .midi file. So far, I have 632 .MP3 files in one folder, and I am trying to combine them into one file.  What is the best approach to achieving this? Obviously, cloud-based merging software is out of the question since I have too much data to merge. Is there a way to accomplish this through a terminal (I'm on mac) command?


How can I disable the red Software Update notification bubble on the System Preferences app in MacOS Mojave (not App Store)?

I keep the "System Preferences" app icon in my dock in Mojave. I recently checked for updates, and found one, but I'm not ready to install it just yet and the red notification dot over the settings app is really bothering my obsessive-compulsive self.  To make things worse, there's no way to disable the notification for the settings app, from the settings app.  How can I banish the notification icon until I'm ready to deal with doing updates?  (Note: this a the red notification badge/dot over the System Preferences app, not the App Store one. It is also not the big textual one that will appear in the upper right corner of the screen. And, unlike all the other questions I found while searching for this, I am in Mac OS rather than iOS.)  The closest thing I found was , which was about iCloud security problems rather than software updates. My question isn't why, but how to ignore a software update for a while.


Method of second activity to change the textview not getting called from main activity

I have made two activities. Main activity and  a second activity having a textview. My main activity is having a button and on button click i switch from this activity to other activity and just after that i call the method from main activity below the Intent part method named show() which changes the text of textview which is in second activity but as soon as i do so the application crashes.  03-23 01:33:44.791  26520-26520/com.dubey.abhishek.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: main     Process: com.dubey.abhishek.myapplication, PID: 26520     java.lang.NullPointerException             at com.dubey.abhishek.myapplication.Recipe.Showdetails(Recipe.java:43)             at com.dubey.abhishek.myapplication.MainActivity$1.onClick(MainActivity.java:54)             at android.view.View.performClick(View.java:4467)             at android.view.View$PerformClick.run(View.java:18776)             at android.os.Handler.handleCallback(Handler.java:808)             at android.os.Handler.dispatchMessage(Handler.java:103)             at android.os.Looper.loop(Looper.java:193)             at android.app.ActivityThread.main(ActivityThread.java:5292)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)             at dalvik.system.NativeStart.main(Native Method)


I have a DVI female to VGA male adapter cable and want to know if it is reversible.    I ordered this with the intent of plugging the VGA end into the video card and the DVI end into my monitor.  That didn't work.    I contacted the seller and he said that its only for DVI to VGA.  I want to know if there is a reason why the cable would not be reversible.


This is where I'm at:  I know $$ \cos(z) = \frac{e^{iz} + e^{-iz}}{2} , \hspace{2mm} \sin(z) = \frac{e^{iz} - e^{-iz}}{2i}, $$ where $$ \tan(z) = \frac{\sin(z)}{\cos(z)}. $$ Applying the above, with a little manipulation, gives me: $$ \tan(z) = \frac{i\left(e^{-iz} - e^{iz}\right)}{e^{iz} + e^{-iz}}.$$  My thoughts are that I could use $e^{z} = e^{x+iy} = e^x\left(\cos(y) + i\sin(y) \right)$ to express both the numerator and denominator in trig form. Then I could times both by the denominator's complex conjugate as to get a real denominator, which would then, in turn, allow me to express the function in its real and imaginary parts.   However, as I'm sure you'd agree, this is messy, and it's hard to shake the idea that I'm missing something far more elegant.


Prove that G is abelian if (G:H) is prime, where H is in Z(G)

I'm attempting to prove this, but am quite frankly stuck and haven't made any progress.   I know that $\frac{|G|}{|H|}=p$, and I know by Cauchy's thm, that $\exists x \in G$ such that $x^p$ = e, and that any group of prime order is cyclic which implies Abelian, but that's as many relevant details I can think of. Any hints or tips would be appreciated.  Thanks!


I want to change some of the linux files, how to recompile the linux and reinstall it

I want to make changes to the kernel files /linux/net/ipv4/ip_output.c in my case. I want to add a script to be run that changes the payload of the data whenever a packet passes through the IP_LOCAL_OUTPUT hook. Now when I add that script, how do I recompile the kernel that make the changes operable.


Geometry/ Sequence contradiction problem!

The perimeter of the original square is $4$ (where each side is $1$). The perimeter of each subsequent shape is also $4$ by observation. Yet the limiting shape, a right angled triangle of base $1$ and height $1$ has perimeter $2+\sqrt2$. How can this be?


How to add meters to EPSG:4326 coordinates?

I've some lat/long in EPSG:4326 coordinate system like Eiffel Tower position : ["lat" : 48.858274,"lon" : 2.2944]  For automated tests I would like to get, for every points of my dataset, the x and y coordinate of the location 100 meters Eastern of my dataset's point.  How can I calulate it?  PS : it'll be implemented in Java


$\sum_1^n 2\sqrt{n} - \sqrt{n-1} - \sqrt{n+1} $ converge or not?

how to check if this converge? $$\sum_{n=1}^\infty a_n$$  $$a_n = 2\sqrt{n} - \sqrt{n-1} - \sqrt{n+1}$$  what i did is to show that:   $$a_n =2\sqrt{n} - \sqrt{n-1} - \sqrt{n+1} > 2\sqrt{n} - \sqrt{n+1} - \sqrt{n+1} = 2\sqrt{n}  - 2\sqrt{n+1} = -2({\sqrt{n+1} - \sqrt{n}}) = -2(({\sqrt{n+1} - \sqrt{n}})\frac{\sqrt{n+1} + \sqrt{n}}{\sqrt{n+1} + \sqrt{n}}) = -2\frac{1}{\sqrt{n+1} + \sqrt{n}} > -2\frac{1}{2\sqrt{n+1}} = \frac{-1}{\sqrt{n+1}} = b_n $$   and we know that: $$\sum_{n=1}^\infty b_n$$ doesnt converge cause  $$\sum_{n=1}^\infty \frac{1}{\sqrt{n}}$$ doesnt converge  so from here my conclusion is that $\sum_{n=1}^\infty a_n$ doesnt converge  but i know the final answer is that it does converge  so what am i doing wrong?


package com.sm.mongo;      import com.mongodb.MongoClient;     import com.mongodb.MongoClientURI;     import com.mongodb.client.MongoCollection;     import com.mongodb.client.MongoDatabase;     import org.bson.types.ObjectId;      public class JavaMongoConnection {      public static void main(String[] args) {          //System.setProperty("jdk.tls.trustNameService", "true");          MongoClientURI uri = new MongoClientURI(                 "mongodb+srv://admin:admin123@cluster0-bkruu.mongodb.net/test?retryWrites=true&w=majority");              MongoClient mongoClient = new MongoClient(uri);             MongoDatabase database = mongoClient.getDatabase("test");      } }   This is my code, and whenever I run this code, I get the error:  Exception in thread "main" java.lang.NoClassDefFoundError: com/mongodb/MongoClientURI   I looked at  and I tried their solution where I went to Run Configurations --> Dependencies and looked under Classpath Entries to make sure that I have bson-xxx.jar, mongodb-driver-xxx.jar, and mongodb-driver-core-xxx.jar listed. I have these listed and despite this, I keep getting the same error as in that stackoverflow post.   Any help would be appreciated.


Will leaving my computer in the car ruin it?

I will be going on vacation in a couple of days to the beach. I plan to leave my computer (a mid 2012 Mac) in the car, which will possibly be exposed to the sun.   It will be exposed between 14:00 and 20:00 and during this time temperatures can get as high as 38 degrees Celsius (100 Fahrenheit). Will this be a problem? Will I risk ruining the battery / computer?   What precautions can I take? For example, is it better to leave in the trunk or in the back seats? Should I turn it off? (usually I just close the lid)   Thank you in advance!


What type of data is available at the "census block" level?

I'm curious what is available at the 'Census Block' level,  the finest scale.  I found this dataset:        It contains HOUSING10 and POP10,  but I would like to get Vacant vs. Occupied Housing and income if possible.      In spite of the fact that it says this is answered elsewhere, it is not.   Only # of houses and total population are addressed in the other post.   The question here is...  What addtional attributes are available at the 'census block' level?  How do you obtain these additional attributes?


What's the main reason to prefer List(interface) over Linkedist etc(implementations)

Suppose we wanna define and use a LinkedList in our code. I would define it this way:  LinkedList<String> list= new LinkedList<>();    Why some people use the interface List   List<String> list = new LinkedList<>();   to define a LinkedList? What are the advantages?


Extra Backslash Required in First Appended Newline in sed

While appending some text after a matched pattern, I wanted to add an empty line with a comment to isolate my additions from the rest. However, I have noticed that for the very first \n, I need to escape the \ with an additional \ (makes it \\n) but this is apparently not required for rest of the appended text. Why is this so?  An example that I produced on a SUSE 11 server (bash v3.2.57(2) and GNU sed version 4.1.5) is:  edwdev@hdpedge1:/edw> sed '/test/a \\nNot a test\nJust Playing' <<< test test  Not a test Just Playing   If I do not escape the first \n (right after the a sed command, I get an n printed instead of a newline.  edwdev@hdpedge1:/edw> sed '/test/a \nNot a test\nJust Playing' <<< test test nNot a test Just Playing   Notice that I have intentionally added a space after a command so that it doesn't conflict accidentally with alternate syntax.  Same behavior is observed if I replace \n with \t.Number of spaces after a command do not seem to matter; the first backslash needs to be escaped to print the special character even after multiple spaces.    Same is the case on another environment, where I originally observed this; a Centos 7 x64 VM, bash version is 4.2.46(2) and sed version is GNU sed 4.2.2  sed -i '/\[mysqld\]/a \\n# <<INSERTED MANUALLY>>\ntransaction-isolation=READ-COMMITTED\ninnodb_flush_method=O_DIRECT\nmax_connections=550\n# <<END OF MANUAL INSERTIONS >>\n' /etc/my.cnf   Output:  ... [mysqld]  # <<INSERTED MANUALLY>> transaction-isolation=READ-COMMITTED innodb_flush_method=O_DIRECT max_connections=550 # <<END OF MANUAL INSERTIONS >>  ...   Output Without Escaping first \n:  [mysqld] n# <<INSERTED MANUALLY>> transaction-isolation=READ-COMMITTED innodb_flush_method=O_DIRECT max_connections=550 # <<END OF MANUAL INSERTIONS >>   Is there any particular reason for this behavior? I am unable to find any details while skimming through the docs (), through, admittedly, I haven't read the entire documentation thoroughly.


I have gcc 7.3.0 on Ubuntu 18.04. But I am working on a project where I need gcc less than version 6. When I tried to install gcc 5.4 using sudo apt install gcc-5.4, I got this error:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package gcc-5.4 E: Couldn't find any package by glob 'gcc-5.4' E: Couldn't find any package by regex 'gcc-5.4'     What is the appropriate way to install gcc 5.4?


Intersection of kernels and linear dependence of functionals

I am trying to prove the following. I have seen it alluded to in other places of the internet (this site included) but without proof.  Let $L,L_1\ldots L_n$ be linear functionals on a vector space $X$. If $\bigcap_{i=1}^n ker(L_i) \subset ker(L)$ then there exists $t_i$ for  $i=1\ldots n \in \mathbb{R}$ such that $L = \sum_{i=1}^n t_i L_i$.   In other words, if the intersection of kernels of linear functionals is contained by the kernel of another linear functional then they are linearly dependent.  Related:


Beamer : remove the number page of the first slide

l set page numbering as follow :  \setbeamertemplate{footline}[frame number]   However l don't want to page the first slide which containts title name ....


How to compare today's date against an array of dates

I want to create an array of dates and compare it to today's date if it matches then execute test.sh file otherwise exit the loop in bash script. I have this so far:  #!/bin/bash now=$(date +%Y-%m-%d) array=['2016-03-02','2015-01-02'] for i in "${array[@]}" do     if [ $now -eq $i ]; then         bash test.sh     else         echo "error"     fi done   please write the correct way to do this..


difference between usage of should and must

I used to get confused when speaking I don't know whether put should or must


Strange behavior of the explorer.exe process

Something happened, and now the explorer.exe is acting strange. For example, I have a mirc.exe startup when the system boots. Window with this program immediately freezes. Also icons in the tray do not change their state.    P.S. I tried to reboot my PC and shutdown him.  P.S.S. It's interesting that the safest mode looks good.  P.S.S.S. Problem solved. Thank you all for your help.


MWE  \documentclass[a4paper,11pt]{article}  \usepackage{tikz} \usepackage{tipa}  \usetikzlibrary{positioning} \usepackage{pgflibraryshapes}  \newcommand*\chiuan[1]{% \tikz[baseline=(x.base)] \node[draw,ellipse,very thick,fill=white,inner sep=2pt](x){$\displaystyle#1$};\!}  \begin{document} \textramshorns \textbabygamma $\uparrow\chiuan{A}$ \end{document}   Output Missing } inserted. How fix it?


Which font has been used in the attached picture of the resume?

I am trying to compile a perfect cv with latex and I liked the CV format in the picture which I found on the internet. Can someone guess what the font style is and which compiler would be the best option?


I've been banging my head against for wall for a while with this one.  I want to SSH into a set of machines and check whether they are available (accepting connections and not being used). I have created a small script, tssh, which does just that:  #!/bin/bash  host=$1 timeout=${2:-1}  ssh -qo "ConnectTimeout $timeout" $host "[ \`who | cut -f1 | wc -l \` -eq 0 ] && exit 0 || exit 1"   This script works correctly. Returning 255 if there was a connection problem, 1 if the machine is busy and 0 if everything is good. If anyone knows a better way to do this please let me know.  So next I try and call tssh on my set of machines using a while read loop, and this is where it all goes wrong. The loop exits as soon as tssh returns 0 and never completes the full set.   while read nu ; do tssh "MYBOXES$nu" ; done < <(ruby -e '(0..20).each { |i| puts i }')   At first I thought this was a subshell problem but apparently not. Any help, along with comments on style/content, would be much appreciated! I know I'm going to kick myself when I find out why...


Should I restart after a pacman upgrade?

after running  sudo pacman -Syyu   or   sudo pacman -S [something to install]   should I restart just to be safe?


If the displacement is in the direction of the force, then work is positive. If the displacement is in the opposite direction of the force, then work is negative. If the displacement is perpendicular to the direction of the force then work is zero.  So, the work done depends on direction. So work should be a vector quantity. Then how is work a scalar quantity?


Given $\int_{0}^{\pi} f(\theta)\cos\theta \,d\theta=\int_{0}^{\pi} f(\theta)\sin\theta \,d\theta ,$ prove at least two zero points.

Given that $f=C[0,\pi]$, $$\int_{0}^{\pi} f(\theta)\cos\theta \,d\theta=\int_{0}^{\pi} f(\theta)\sin\theta \,d\theta=0 $$ prove that $f$ has at least two zero points at the interval$ (0,\pi)$.   This problem has already been asked by others,but there is only by contradiction. Can it be solved in a direct way?  if $\int_{0}^{x} f(x)\, dx$ has at least two extreme values then its derivative has at least two zero points naturally. But I can't prove that. I also thought that if the $\int_{0}^{x} f(x) \, dx$ has two pairs of equal values then its derivative has two zero points.  So how to prove it? Thank you.


I've just got done watching a sub-20 minute run of The Legend of Zelda, Ocarina Of Time and I need to be explained something.  How in the hell can you Warp form the first boss to the last boss. Happens at about 10 minutes in the video below.    I watched the Cosmo Run, but still, can't really understand how that glitch works.  How does it effect the game code in such a way that it warps you from the first boss to a dead Ganon.  Basically, I need an Explain Me Like I'm 5 here.


New blender update doesn't let me render in MP4

After Blender 2.79 dropped, I can't seem to render in MP4. I have attempted to use the FFmpeg video option they added, but no matter what I choose in the encoding tab, even presets, the render always ends with a useless unreadable file.  Does anyone know what I have to do to fix this?


Title edit plus minor/no body edit return 'too short' error

While editing  to include a better title, I noticed that the body of the text had a stray lowercase i, and went to change it.  The error came back that my edit was too short (less than 6 characters). I was momentarily confused, because the title was all-new and plenty long, and then figured out it meant in the body. Could/should we either count title changes toward the minimum character change count or just mention that the error refers to the body of the question?


Can't get footer to stay at the bottom of the page (Have researched the answer but can't find solution)

I'm trying to get my footer to stay at the bottom of the page and I feel like I have tried everything. If a page lacks content then the footer pushes right up underneath the body. My current css for my footer is:   width: 100%;  height: 50px;  border-top: 1px solid #fff;    The div before the footer is a container with this css:   padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;   I have tried absolute positioning the footer with bottom: 0 but that doesn't give the desired result. I have tried clear: both on the footer and container with a position of relative. I have tried fixed positioning but that doesn't give the desired result either. Does anyone have any solution I could use?


There is scifi.stakexchange.com.  I was wondering if we can have one on crime fiction and mystery with detective fiction so that we can discuss and answer questions more on Sherlock Holmes, Hercule Poirot and similar stuff.  It could be called      crifi.stackexchange.com   based on crime fiction and mystery. This is based purely on human intelligence and within the world of human reality. It is quite different from fantasy, magic and thus away from SciFi or Movies & TV or Books. I hope somebody comes up with better activity.  I hope I have asked the right question on the right platform. If not suggest improvisation.


I'm having some problems with my user authentication system, what am I doing wrong?  I'm trying to query the database for a password stored on there, check if the password on the database is the same as the one entered on the login page and then I'll add functionality from there.  But it just doesn't work. It repeatedly fails and prints out "Sorry, try again."  login.php  $email = $_POST['email']; $userpass = $_POST['password'];  // Create connection $conn = new mysqli($servername, $username, $password, $dbname);  // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $getpass = "SELECT password FROM users WHERE email = $email"; $hash = mysqli_query($conn, $getpass);   if(password_verify($userpass, $hash)) {     echo "You're in."; } else {     echo "Sorry, try again."; }   register.php   // Create connection $conn = new mysqli($servername, $username, $password, $dbname);  // Check connection if ($conn->connect_error)  {     die("Connection failed: " . $conn->connect_error); } echo "Connected successfully
";  $email = $_POST['email']; $userpass = $_POST['password'];  $options = [     'cost' => 12, ];  $hash = password_hash($userpass, PASSWORD_BCRYPT, $options);  $register = "INSERT INTO users (registered_on, email, password) VALUES (CURRENT_TIMESTAMP, '$email','$hash')";  if ($conn->query($register) === TRUE) {     echo "New record created successfully"; } else  {     echo "Error: " . $register . "
" . $conn->error; }  // Closes connection $conn->close();   I have a hunch it is to do with how I am querying the database.  note from comment: The  function is a built-in PHP function


If the roots of the equation $x^3-x+1=0$ are $a$, $b$ and $c$, then find the value of $a^5+b^5+c^5$. My attempt: I found out $a^2+b^2+c^2$ and a$^3+b^3+c^3$ but it is turning out to be extremely lengthy to find the sum of the roots raised to the $5^{th}$ power.


Let $n \ge 6$. Prove that it is not possible to partition the edges of $K_n$ into floor($\frac{n}{6}$) planar subgraphs.

Any hints will be appreciated.  Here are some things I thought about:   Since $K_n$ is a complete graph, it must be $(n - 1)$ regular The sum of the degree of all its vertices is $n(n - 1)$ There are $n$ choose $2$ or $\frac{n(n-1)}{2}$ edges in $K_n$   I also thought maybe we can somehow use Kuratowski's Theorem. I just wonder how can I show that if we partitioned the graph into floor(n/6) subgraphs that at least one of its subgraphs must be an edge subdvision of K5 or K3,3, therefore, is nonplanar.  Or maybe if I could prove that at least one of the subgraphs with m vertices will have more than $(3m - 6)$ edges then that would work too. But I don't quite know how to start.  I also don't know if this question is related to the Ramsey' problem.


In QGIS, how to get an angle of a polygon / get longest line in polygon and angle of that line?

I am using QGIS to output data to a game engine, I use polygon centroids to find center points of polygons of houses to output to the game engine for house placement - now I'd like to take it one step further and get a correct(-ish) orientation of the house.   So my basic idea is to either straight up use the polygons to somehow get the angle relative to true north - or just find the longest side of a polygon house shape and then determine the azimuth/angle of that line - and preferably add this data as a new field to my polygon centroids.  I am still quite new to QGIS and GIS data in general but have been able to make a lot of use out of the GIS data I have.


For a real valued function $f(x,y)$ on $\mathbb{R}^2$ which is in $L_2$, show that $f(x+ε,y+ε) → f(x,y)$ in $L_2$ when $ε → 0.$  Not sure how to go about this problem.  I tried Fubini.  But that didn't seem to work well.  I tried doing t straight from the definition.  It seems the point is that it epsilon is changing the $x$ and $y$ coordinate at the same speed.


My files app is not on my home screen and don't know how to find it because I am sure it was there and don't know how or why it disappeared so I really hope someone can help me please. Thanks Sue


In ZFC, is the Axiom of Power Sets implied by the principle of restricted comprehension?

Can we consider an instance of the principle of restricted comprehension in which the property of the elements of a given set A is that of being a subset of a set B? (i.e. A is P(B))


Remote control a computer using another computer

I've got a main desktop computer at home, I'd like watch movies using it but able to control it afar.   For example, I would like to lay on my bed and control the desktop using my own laptop via wireless.   I've been looking for solutions to my question. I tried to use remote desktop, I can pause the movie but I then have to go to the pc to log in the OS again. I also tried to bind my desktop to my mobile phone over bluetooth, this works as I can control the mouse etc. but I found I can barely see the mouse pointer when at long distance.  I still wish I can use my laptop as a remote control, is this possible?


Show if there is an analytic function $f \in \mathbb{C}$ such that $f\left(\frac{1}{n}\right)=\frac{n}{1+n}$

That's it. I don't really know what to do. I've tried to used analytic continuation with the function $g(z)=\frac{1}{1+z}$ but of course, such a function is not analytic in $\mathbb{C}$ so i can't use the theorem. And i can't find the contradiction


How does the third derivative visually affect its function?

I find the lack of information on the internet about the third derivative astounding.  When the first derivative of a function touches or crosses the x-axis, it is a critical point and possibly an extrema. If $f'(x)\gt0$, the slope of $f$ is increasing; if $f'(x)<0$, the slope of $f$ is decreasing.  When the second derivative of a function crosses the x-axis there is an inflection point, and the concavity reverses. If $f''(x)>0$, $f$ is concave up; if $f''(x)<0$, $f$ is concave down.  What visual effects does the third derivative have on its function? Do higher order derivatives have any clearly visible effects?


I want to export all the variables located in a .conf. So I followed this  answer.   setenv.sh  #!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"  set -a . "$DIR/settings.conf" set +a   settings.conf  DB_ENV_USER="root" DB_ENV_PASS="avi" DB_ENV_NAME="s2s" TEST_DB_ENV_NAME="testdb"   What I have tried is,  avi:~/project/_backend$ bash local/setenv.sh avi:~/project/_backend$ echo $DB_ENV_USER  avi:~/project/_backend$   So it failed to show $DB_ENV_USER value root.


Automounting partitions on 1TB external hard disk

I am on Kubuntu 12.04.  I have five labelled ext4 partitions on an external removable 1 TB external USB hard drive.  When the drive is plugged in, a box pops up, asking me what I want to do for each partition. If I elect to use the dolphin file manager, it mounts the relevant partition on /media/LABEL where LABEL is the label of that partition. Interestingly, the directories on /media disappear after the external drive is ejected.  To enable automated backups, I want to find out if the mounting can be done automatically without having to click on the popup box to select the dolphin file manager? Essentially, I wish to:   automount each partition on USB plugin on /media/LABEL as before where the directories under /media are created automatically on the fly; and On ejection, automatically unmount partitions and remove the directories under /media.   Thanks.


O365 site throwing HTTPS Security errors

I have an O365 publishing site that is mostly out-of-box except that it uses a custom master page which implements a little custom CSS. However when looking at the console in IE every time the site loads I see the following errors:  SEC7111: HTTPS security is compromised by res://ieframe.dll/forbidframing.htm SEC7111: HTTPS security is compromised by res://ieframe.dll/errorPageStrings.js SEC7111: HTTPS security is compromised by res://ieframe.dll/httpErrorPagesScripts.js SEC7111: HTTPS security is compromised by res://ieframe.dll/red_x.png SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png SEC7111: HTTPS security is compromised by res://ieframe.dll/background_gradient.jpg   I've looked around online and found people discussing iframes and ajax queries but none of those are included in this site outside of what O365 does by default. Why would this environment be throwing these errors?


Forget about the $\sin$ and $\cos$ functions, are there possibly some brilliant way to show that  $$\left(x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}+\cdots\right)^2+ \left(1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+\cdots\right)^2=1$$  ?  I've thought for a long time, without making much progress. Can someone help me? Thanks.


Query regarding possibilities of editor's reply

I have submitted my paper in an Elsevier math journal. For almost one year the status of my submission is "under review". Recently I have communicated with the handling editor. The editor informed me that he has received referee report and sent his decision to the editorial board for final decision (it would take another few weeks). I am very confused because the editor has not asked me for any revision of my manuscript. I would like to know what could be the possible outcome of the above situation. Does this automatically imply that the paper has been rejected or there is any possibility of the paper of getting accepted?


Python saying 2 equal lists are not equal

I have a very strange thing happening where two lists which are clearly equal are not being considered equal by Python. From here you can see the IPython console output of an element of a dictionary I am working with:  In [251]: saveDict['data']['hpSH']['manifold_type'] Out[251]: ['duct', 'pipe']  Then when I go to check if this same dictionary element is equal to the list ['duct', 'pipe'], it says it is not:  In [252]: ['duct', 'pipe'] is saveDict['data']['hpSH']['manifold_type'] Out[252]: False  However, using "==" instead of "is" results in a True output in the console.  I discovered this because it is messing up other parts of my code and not doing the same calculations with saveDict['data']['hpSH']['manifold_type'] as it is with ['duct', 'pipe']. To give you more backstory, saveDict is coming from a saved file made by cPickle. Here is more on the environment I am working with:  Windows 10,  Python 2.7.12 :: Anaconda 4.1.1 (32-bit),  Spyder 2 IDE


In Cocoa, there is a method () on NSAttributedString to find appropriate line breaks in a piece of text.  Since NSAttributedString does not exist on the iPhone, does anyone have any suggestions for similar functionality?  Edit: Realized that I'm really looking for a word-wrap algorithm. For example, I want the text to wrap at 80 characters; where do I place line breaks so that words are not split over two lines?  Edit: An example will probably help. Say I have the following lines: Here is line 1 that probably won't even be 80 characters long. Here is another line with different text that is longer but not by much.    I would like to turn that into something like: Here is line 1 that probably won't even be 80 characters long. Here is another line with different text that is longer but not by much.  Edit: I'm looking to place this text in a UITextView so that additional edits can be made (very similar to a quoted reply with emails)


I am writing a shell script, using any general UNIX commands. I have to retrieve the line that has the least characters (whitespace included). There can be up to around 20 lines.  I know I can use head -$L | tail -1 | wc -m to find the character count of line L. The problem is, the only method I can think of, using that, would be to manually write a mess of if statements, comparing the values.  Example data:  seven/7 4for 8 eight? five!   Would return 4for since that line had the least characters.  In my case, if multiple lines have the shortest length, a single one should be returned. It does not matter which one is selected, as long as it is of the minimum length. But I don't see the harm in showing both ways for other users with other situations.


Is it possible for information to be transmitted faster than light by using a rigid pole?

Is it possible for information (like 1 and 0s) to be transmitted faster than light?   For instance, take a rigid pole of several AU in length. Now say you have a person on each end, and one of them starts pulling and pushing on his/her end.   The person on the opposite end should receive the pushes and pulls instantaneously as no particle is making the full journey.  Would this actually work?


Reduce the quadratic form to a canonical form and find the rank index and signature. Write down the corresponding equations of transformation:  $$ 4x_1^2 + 3x_2^2 - x_3^2 + 2x_2 x_3 - 4x_3 x_1 + 4x_1 x_2 $$  The given solution says: $(w1)^2 + (w2)^2 - (w3)^2 ;$ $r=3, p=2, s=1;$ $x_1 = (1/2)(w_1) - (\sqrt 2/4)(w_2) + (1/2)(w_3),$ $x_2 = (\sqrt 2/2)(w_2) - (1/2)(w_3),$ $x_3 = (1/2)(w_3)$    Can anyone provide with detailed ans,how they come up with this?


Ubuntu 18.04 drag-and-drop icons to sidebar fails to bring window to foreground

I've noticed another useful feature that used to exist in Ubuntu, but seems to have disappeared in the 18.04 upgrade.  If you drag an icon (e.g. a file or a web link) to the sidebar, so that the pointer is hovering over an open application, that application used to immediately pop into the foreground.   This allowed you to easily drag-and-drop to a window that is not currently visible, in one smooth action, and was particularly useful when you have another app filling the screen.   Can I re-enable this useful feature in 18.04?


How did Barzini not know of what was about to come?

One question keeps bothering me. Tessio was a traitor. It is also well seen even before the Don died. It was his crew that was supposed to guard the hospital where Don was lying. Barzini also knew upfront that Luca is trying to infiltrate the family. So, then why didn't Tessio rat the whole plan out? He was in the room when Michael suggested killing Sollozzo and the policeman. He didn't rat Michael out even when they found out where the restaurant is located. Or did he, and Barzini closed his eyes on that because it was what he wanted to happen? Or perhaps I'm wrong and Tessio became a traitor only after Don has died.


Just wondering what is the purpose of the other file that is created with blender. It takes up the same disk space. Is it ok to delete it? Is it like an autosave file similar to ones Nuke produces?


Deleted Ubuntu partition and can't access Windows any more

I'm a Linux newbie.  I partitioned my HDD and managed to install Ubuntu 15.04 along with my pre-installed Windows 8.1, but when I tried it, it kept crashing and restarting by itself, so I decided to uninstall it to try a different distribution.   I basically deleted the partitions required for Ubuntu (home, swap and root) from Windows, but when I restarted the computer I couldn't boot Windows any more. All I can see is the GRUB2 prompt, and I have no idea how to boot Windows.   Is there something I can do to use my laptop once again? Do I have to reinstall Windows, or can I boot the old OS and access the partition?


What is a polite substitute for badass (used as a noun)?

Badass and BAMF are both modern words with approximately the same meaning: "Someone who is awesome to an extreme level, thereby leveraging unquestionable authority." Is there another noun or title that would convey the same level of awe, admiration and toughness that calling someone a badass does, without the vulgarity?  Thanks for any help. :)


Free disk space from a JBoss log file which is still being written to

Is there any locking on the content, imposed by the process if at all the process is using the file.  We host a JBoss app server on a RHEL 6.4 OS and due to the disk space constraints we have decided to remove the log files it generated till date.  However, if we delete the log file which is being used there could be few issues with the logging in jboss which eventually leads to the restart of Jboss App Server instance.  We we have decided to nullify the server.log which is being dynamically written by the JBoss app server process (checked with the fuser command) by using the below commands:  -- > server.log -- echo "" > server.log   None of the above commands worked. The size of the files still shows 500+ MB  How do I remove the contents of the file without deleting the file?


Why am getting segfault while I am still able to access those location?

I am trying to reverse a string in-place using two pointers to the same string. First one(char *p) points to the starting location of the string and second one(char *q) points to the ending location of the string. So when I tried to debug using gdb, I get am getting segmentation fault at line 16.  When I tried to print the values of *p and *q, it works fine. Why am I getting segfault while I'm still able to access those location?  Breakpoint 1, main () at reverse.c:16 16          *q = *p; (gdb) print p $1 = 0x5555555547e4 "hello" (gdb) print q $2 = 0x5555555547e8 "o" (gdb) step  Program received signal SIGSEGV, Segmentation fault. 0x00005555555546db in main () at reverse.c:16 16          *q = *p;   The actual code of the program is  #include<stdio.h>  int main() {     char *array = "hello";      char *p=&array[0];// pointer to the first element      // Make q point to last value of the array     char *q = &array[0];     while(*q) q++;       char temp;     q--; // move left so that we don't point to `\0`     while(p<q){          temp = *p;         *q = *p;         *p = temp;          p++;q--;         }      printf(" Done reversing \n"); }


What's the limit on the no. of partitions I can have?

I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?     Update  : If there is a limit to the number of partitions, why is that the limit?


How to select top 10 records from each category

I have a table with fields  Hour, PathId, Duration, Event, CellId, Channel   I have 50+ CellId. Each CellId has four PathId (i.e. 0, 1, 2, 3). Each PathId has many Events and Durations. Now I want to display the top 10 records (each PathId) for each CellId.  Sample Table    Sample Output


Oracle: how to add minutes to a timestamp?

I need to add 30 minutes to values in a Oracle date column.  I do this in my SELECT statement by specifying   to_char(date_and_time + (.000694 * 31)  which works fine most of the time.  But not when the time is on the AM/PM border.  For example, adding 30 minutes to 12:30 [which is  PM] returns 1:00 which is AM. The answer I expect is 13:00.  What's the correct way to do this?