Please Help me writing Test class for below given Apex Class

No compulsory Fields in Attendance object,  public class showAttendance {   public List<WrapperAttendance> PastAttendance { get; set; }   public List<Attendance__c> PastList {get;set;}   public List<Employee__c> EmployeeList {get;set;}    public showAttendance()   {         PastAttendance= new List<WrapperAttendance>();        PastList = new List<Attendance__c>();        EmployeeList = [select id,Employee_Name__c from Employee__c where User__c =:UserInfo.getUserId()]; //to get the current user ---Login User                   PastList = [select id ,Attendance_Date__c, Present__c from Attendance__c where  Employee__c=:EmployeeList[0].id ORDER BY Attendance_Date__c desc];        for(Attendance__c tmp : PastList)       {            PastAttendance.add(new WrapperAttendance(tmp));                           }                 }     public class WrapperAttendance   {     public Attendance__c  AWrapper {get;set;}      WrapperAttendance()     {       AWrapper = new Attendance__c();         }          WrapperAttendance(Attendance__c h)    {      AWrapper = h;    }  } }   Test CLASS  @isTest private class showAttendance_TestClass {     static TestMethod void showAttendanceMethod()     {         public List<Attendance__c> PList;          Employee__c eobj=new Employee__c();         Attendance__c aobj =new Attendance__c();          eobj.Employee_Name__C = 'Nilesh';         eobj.Job_Role__c = 'JF-0014';         eobj.Email_ID__c='nileshmendhe2011@gmail.com';         eobj.Mobile_Number__c='9878787878';          insert eobj;          aobj.Attendance_Date__c = '4/17/2014';         aobj.Present__c='true';         aobj.Employee__c='Emp-0015';          insert aobj;          PList = new List<Attendnace__c>();                     PList.add(aobj);      } }


I was wondering what would be the right pronoun to use in this sentence:     a person sees something that ... really likes   he, they, s/he ?


How to know if someone is accessing my computer remotly?

Lately I noticed wired stuff in my computer like files disappearing, a restart without a reason no warning or notification just restarted suddenly, so I thought maybe someone is assessing my computer remotely than I checked the event log it haven't been logged the file disappearence and the restart, also when I opened the task manager the cpu usage is high after 1 second at most the usage drops and the application list change, so how do I make sure that my computer is being accessed remotely and how I prevent it from happening again and if is possible I want to know who is accessing it.  Note I have kaspersky installed but before I install it I used the computer With out anti virus.


What is the difference between inductive and abductive reasoning?

I would deeply appreciate it if you would answer this question, since I do not know or understand exactly the difference between inductive reasoning and abductive reasoning, which is a problem for me in my next philosophy evaluations.


Does an Arcane Trickster's Invisible Mage Hand Conceal Objects It Carries?

I've been playing D&D 5e since it came out but this is my first time playing an Arcane Trickster. While thinking about some creative ways to use my invisible mage hand, I encountered something that seems ambiguous to me: if my invisible mage hand picks up a pebble, does the pebble vanish within the mage hand (as if the object were enveloped in an invisibility cloak), or would the object simply appear to be floating suspiciously mid-air? Wanting to plan and roleplay correctly, I asked my DM. Together, we haven't been able to find anything that suggests one interpretation over another. My DM is relatively new (her third session is coming up, but it's her first non-one-shot) and she seems fine with just making an arbitrary ruling, but she would like her ruling to be more firmly based in the rules in the interest of being fair. According to the rules, does the invisible mage hand conceal objects (palmable things like a single coin that I'm swiping out of somebody's purse or a pebble) that it carries, or do the carried objects appear to float mid-air? Or, are the rules (PHB, DMG, MM) silent on this?


The Axiom of Choice and the Cartesian Product.

I understand that the axiom of choice, given the axioms of ZF set theory, is equivalent to the statement that "the Cartesian product of any family of nonempty sets is nonempty." I've been unable to find this proof. Could someone sketch it for me? Or provide me with a source at least?


Selecting the answer - I'm sure this must have been asked

Quite soon, I'm going to select the answer to a question I've posted. I appreciate the way the current system works means I can only choose a single answer. What really struck me about this particular exchange was that every response was expert in its content and drew attention to different aspects of my question. I could not have hoped for a better set of replies (this is not, however, a preface to me saying that I just cannot select an answer).  Here's my question: let's say I pick response X as the answer. Is there any mechanism that would allow me to announce to all those who engaged with this question that their collective contribution was outstanding and will be of great use going forward. Simply put, I want to send a positive response to the 'micro-community' that constituted the people who engaged with my question.  Also, I recently read this on the site but am having trouble refinding it: what does not selecting an answer imply to those who wrote responses and commented?


32-bit compatability environment in Linux Mint 19?

I am trying to run Secondlife in Linux Mint 19. However it's a 32-bit program and I'm running a 64-bit system. How do I install a 32-bit compatibility environment in Linux Mint 19?


The Download for SWTOR stopped at 99.95%?

So, I've reached the end of my "quests" and stuff on the planet, but because the game isn't "fully downloaded" it's not letting me leave. It's been stuck at 99.95% for downloading for about two or three weeks now, and it's kind of pissing me off because I would like to move on in my gameplay.  How can I make the game download the rest of the update?


Sent wrong payment to right IBAN but wrong SWIFT. What will happen now?

I sent a payment to the incorrect SWIFT but right account number. The money hasn't been received at the other end. What will happen now?


Is is possible to get references from a paper?(e.g., given paper A cites paper B, C and D, i wanna to extract Bibtex of B, C and D from A)

Is is possible to get references from a paper? For example, given that paper A cites paper B, C and D, i wanna to extract Bibtex of B, C and D from A. Is is possible to do this conveniently? Thank you for any help!  EDIT: A more concrete example: I have paper A which cites many other papers such as B, C and D. I wanna some ways to directly get bibtex of all these cited papers in paper A.


How to understand moments for a random variable?

Wikipedia says that the name of concept comes from physics, but I cannot find any similarity between these two concepts.


As a non root user, I'm able to delete a file made by root with 0444 permissions?

I want to place a file in an FTP users directory (a readme) and make it so they cannot delete it.  I've got /home/user/iso/readme.txt uploaded as root, permissions set to 0444 - (r--r--r--) Yet when I log in as a normal user I can delete it.  How can I prevent this?


Intuitive understanding of the elements in the stress-energy tensor

There is an image in the Wikipedia about the :    I have a rough understanding of the stress tensor: you imagine cutting out a tiny cube from the fluid and form a matrix out of the forces on each side of it: it's not hard to see that the forces that push the faces outwards so the x direction of the force on the x side, the y direction of the force on the y side, etc. is the pressure, while other forces directions are the shear stress (these can be non-zero is some jelly-like substance).  Now the first question: Why is the lower half of the spatial part is the momentum flux, while only the upper one is the shear stress on the image? Is the image wrong? Isn't the spatial part describe the classical stress tensor?   The second question is: what's the intuition behind the temporal part?  So if I have a Minkowski spacetime and cut out a cube of it, then it's quite hard to see why "pressure" on the temporal face means density, also why "shear stresses" on the temporal face translate to momentum density, not speaking of the "temporal force components" the spatial faces...  Also stresses are measured in Pascals, mass density is measured in $kg/m^3$ while momentum density is in the units of $Ns/m^3$. These units doesn't seem to be compatible, but still they are in the same matrix, why?  EDIT: It has been pointed out that momentum flux refer to the entire blue part, it indeed have a lighter frame I didn't notice. Then yet another subquestion: what's the difference between the momentum density and momentum flux?


I have 2 objects Case & Level agreement ( Don't have any relationship between both objects) I want to compare Task Category value for both objects ...When I write below query on Apex class getting the error:     An Apex error occurred: System.QueryException: List has more than 1   row for assignment to SObject   Queries in Apex class:  Case c = [select id,Task_Category__c,CaseNumber from Case where id IN:CaseId];  Level_Agreement__c sla = [select id,Task_Category__c,Process_Approver_email__c from Level_Agreement__c where Task_Category__c =:c.Task_Category__c];     pls, let me know is there anything missing from my side... Thanks Ram


As you can see in the following code, the "\n" at the beginning of the string matches the pattern.  In [103]: print(re.match("\n", "\ndfss")) <_sre.SRE_Match object at 0x03904FA8>   However, if you look at the next code example:  In [102]: print(re.match("\n", "3\ndfss")) None   you can see that this time there is no match. The difference is that '\n' is not at the beginning of the string.   Do you have any idea why there is no match in the second example?


This Exercise $12$ page $27$ from Hoffman and Kunze's book Linear Algebra.     The result o Example $16$ suggests that perhaps the matrix      $$A = \begin{bmatrix} 1 & \frac{1}{2} & \ldots & \frac{1}{n}\\  \frac{1}{2} & \frac{1}{3} & \ldots & \frac{1}{n+1}\\ \vdots & \vdots &  & \vdots \\ \frac{1}{n} &\frac{1}{n+1} &\ldots &\frac{1}{2n-1} \end{bmatrix}$$      is invertible and $A^{-1}$ has integer entries. Can you prove that?   I will copy their words before that example:      Some people find it less awkward to carry along two sequences of   matrices, one describing the reduction of $A$ to the identity and the   other recording the effect of the same sequence of operations starting   from the identity.   In this , Adrián Barquero says:      If your linear algebra textbook is Kenneth Hoffmann and Ray Kunze's   Linear Algebra book then I was in the same situation you're right now   a few years ago, but I was adviced at the moment that this particular   exercise wasn't as easy as one might expect at first.      The matrix you have is called the Hilbert matrix and the question you   have was already asked a couple of times in math overflow  and   . They have excellent answers so I will just point you to them.   My question: Is it possible answer the question made by the authors without using high techniques?  I am not allowed to use determinants here.  PS: Those answers in MO don't answer the question above. I apologise if this question is unappropriated or if I was unable to understand their answers.


I have a recipe that calls for 2 cloves of garlic, but all I have is minced garlic. How much minced garlic do I use per clove?


Convergent sequences transformed into convergent sequences

Problem. Find all the $f: \mathbb{R} \to \mathbb{R}$ (not supposed continuous) such that for every real sequence $(a_n)$ we have : $$\sum  a_k \; \text{is convergent} \Longrightarrow \sum  f(a_k) \; \text{is convergent}$$  I'm trying to prove that the only functions are linear in a neighborhood of $0$. It is clear that those functions work but for the reciprocal it is much harder since $f$ is not supposed of any regularity. I have proven that :    $f(0)=0$ $f$ is continuous in $0$ : if it's not the case we can set $ \varepsilon >0$ and a sequence $(a_n)$ such that $|a_n|  \leqslant 2^{-n}$ and $|f(a_n)| \geqslant \varepsilon$ which is absurd.    Any ideas to show that $f(x+y)=f(x)+f(y)$ near $0$ ? (which would be sufficient to prove the result)  Thanks !


propagate object manipulations across multiple similar objects

I'm working on a model as I'm learning Blender for educational purposes. I have a collection of objects that together make up the "pillar" collection. I'm going to duplicate this collection multiple times (in the below screenshot I did it once already, for testing purposes).  However, I will continue to manipulate all objects within this base collection going forward, and I want all manipulations to propagate to all the duplicate collections.  I've read about – and played around with – linking and child-parent relationships, but I have yet to find a solution that allows me to pick one whole collection as the base model, and then see any changes made to that collection applied to all other relevant collections.  Is this possible? If it is, can I do it within a single .blend file, or does it require me linking another blend file into this one?


My if statement is disregarded. How do I make the program recognize it?

I'm currently making a project that finds percentage and so on on numbers. However, when I made the if statement to determine what processes to carry out based on the user input, it skips over to the final else statement even if the input matches the if statement. Here is my code.  public class Percentage { public static void main (String[] args){     Scanner input = new Scanner(System.in);     System.out.println("Enter 'a' if you want to find a percentage of a given number.");     System.out.println("Enter 'b' if you want to find how much percent of a given number is a certain number.");     String choice = input.nextLine();       if (choice == "a"){         System.out.println("Enter the number.");         float numA = input.nextFloat();         System.out.println("Enter what percentage of the number you want to find.");         float perA = input.nextFloat();         float decA = perA * 0.01F;         float outA = numA * decA;         System.out.println(perA + "% of" + numA + "is: " + outA);     } else if (choice == "b"){         System.out.println("Enter the main number.");         float mainB = input.nextFloat();         System.out.println("Enter the number whose percentage of the main number you want to find.");         float minB = input.nextFloat();         float quoB = minB/mainB;         float perB = quoB * 100;         System.out.println(minB + "is" + perB + "% of " + mainB);     } else {         System.out.println("Invalid answer.");     }      input.close(); }  }   When I run the program and input either a or b, it goes straight to the else statement outputting "Invalid answer." What's wrong in my code?


A map $T$ is said to be transitive for every pair of non-empty open sets $U, V$ there exists an integer n such that $T^n(U) \cap V \neq \emptyset$. Can anybody please give me an example of a transitive map $T: \mathbb{R} \rightarrow \mathbb{R}$.


How can I save arrays of values in the database?

I am trying to save multiple values from a textarea to a database table.  I use the following code, but I feel it is the wrong way.   foreach ($user_emails as $key => $value) {   $insert_banned_emails = db_insert('banned_users');   $insert_banned_emails     ->fields(array(       'email' => $value,     ))     ->execute(); }   Is there a different way for achieving the same result?


Proving an alternating Euler sum: $\sum_{k=1}^{\infty} \frac{(-1)^{k+1} H_k}{k} = \frac{1}{2} \zeta(2) - \frac{1}{2} \log^2 2$

Let $$A(p,q) = \sum_{k=1}^{\infty} \frac{(-1)^{k+1}H^{(p)}_k}{k^q},$$ where $H^{(p)}_n = \sum_{i=1}^n i^{-p}$, the $n$th $p$-harmonic number.  The $A(p,q)$'s are known as alternating .     Can someone provide a nice proof that    $$A(1,1) = \sum_{k=1}^{\infty} \frac{(-1)^{k+1} H_k}{k} = \frac{1}{2} \zeta(2) - \frac{1}{2} \log^2 2?$$   I worked for a while on this today but was unsuccessful.  Summation by parts, swapping the order of summation, and approximating $H_k$ by $\log k$ were my best ideas, but I could not get any of them to work.  (Perhaps someone else can?)  I would like a nice proof in order to complete .  Bonus points for proving $A(1,2) = \frac{5}{8} \zeta(3)$ and $A(2,1) =  \zeta(3) - \frac{1}{2}\zeta(2) \log 2$, as those are the other two alternating Euler sums needed to complete my answer.   Added: I'm going to change the accepted answer to robjohn's $A(1,1)$ calculation as a proxy for the three answers he gave here.  Notwithstanding the other great answers (especially the currently most-upvoted one, the one I first accepted), robjohn's approach is the one I was originally trying.  I am pleased to see that it can be used to do the $A(1,1)$, $A(1,2)$, and $A(2,1)$ derivations.


I'm trying to simulate a rope (that later might get pulled on the ends*) that interacts with some obstacles. So far I created a plane as the floor and a cube as an obstacle, and activated "collision" in the physics menu for both of them.   *(In the end the goal is simulating a .)  For modelling the rope, I tried using a long cylinder with enough subdivisions, and activate "cloth" in the physics menu. This resulted in the cylinder collapsing like a sleeve of a sweater, but I would like the cross section to remain roughly circular. Is there a way to directly avoid this?   Another approach I tried now was just using a a line made up of vertices and edges (with the idea of later adding modifiers to give it a thickness), but this just fell through all the collision objects as it has no faces. Is there good way to do this?


Gluing Lemma for Closed Sets: Infinite Cover Counter-Example

The gluing lemma for closed sets states:     Given a finite closed cover $\{A_i\}$ of a topological space $X$, together with continuous maps $\{f_i : A_i \to Y\}$ into some other topological space $Y$, there exists a unique continuous map $f : X \to Y$ whose restriction to each $A_i$ is equal to $f_i$.   Question: What is a good and simple counter-example when the gluing lemma fails in the case that $\{A_i\}$ is infinite, but countably so.  My attempt: I have only been able find a silly counter-example: let $\{A_\alpha\}$ be the collection of all points of $X = [0,1] \subset \mathbb{R}$, and let $f_\alpha = 0$ for all $\alpha$ except for $\alpha = \alpha_0$, for which $A_{\alpha_0} = \{0\}$ and $f_{\alpha_0} = 1$.


Can I apply for a masters' if I already have one? (USA/Canada)

I am planning to apply for another Masters' degree in CS in USA or Canada. But, the thing is I already have one masters' degree. Well, the reason I want to apply for another Masters' degree is because the one I have now is pretty...useless. I didn't learn any advanced courses like AI, Machine Learning, Distributed Systems, HCI, etc etc. Anyway, the list of reasons is very long so I will just skip it.   I worked for two years after my graduation and now I feel I want to go back to school to actually LEARN these CS courses.  I heard that if you already have a Masters' degree, you cannot apply to universities in USA or Canada? So, I wanted to know if this was true?   If yes, how can I find which universities will allow me to apply? I could go to each school website and look, but if someone already has a list, that would be very helpful.


I have recently been reading Intro to Lie algebras and representation theory by Humphreys, and when I am finished I am interested in reading about Lie groups and Lie algebras and their applications to particle physics.     Is there a book that assumes basic knowledge of Lie algebras, and no knowledge of lie groups and particle physics/quantum mechanics?   I have seen Howard Georgi's book, but it assumes good knowledge of particle physics.   In addition, I do not know differential geometry.


Does $a^2+b^2=1$ have infinitely many solutions for $a,b\in\mathbb{Q}$?  I'm fairly certain it does, but I'm hoping to see a rigorous proof of this statement. Thanks.    Here is my motivation. I'm working on a strange little problem. I'm working in a geometry over an ordered field. Suppose I have a circle $\Gamma$ with center $A$ passing through a point $B$. I want to prove that there are infinitely many points on $\Gamma$. Up to a change of variable, I'm considering the unit circle centered on the origin over $\mathbb{Q}$. To show there are an infinite number of points on $\Gamma$, it suffices to show there are an infinite number of solutions to $a^2+b^2=1$ for $a,b\in\mathbb{Q}$. I could then extend this to showing there are infinite number of solutions to $a^2+b^2=r^2$ for some $r$, which proves that any circle over $\mathbb{Q}$ has an infinite number of points. Then since any ordered field has a subfield isomorphic to $\mathbb{Q}$, I would be finished.


What kinds of compensation can I get from Deutsche Bahn for canceled and late trains?

I recently traveled from the Basel area to Stuttgart for a weekend.  I had round-trip tickets including (paid) bicycle reservations.  At our first station change, we found that our EC train was canceled.  Information gave us a replacement train schedule, using slow RE trains which don't require reservations for bicycles.  As we continued our trip, every single train we boarded arrived late, eventually causing us to reach Stuttgart roughly 2 hours later than our initial itinerary.  What monetary compensation am I justified in requesting from Deutsche Bahn in this case?  In particular:   It seems clear I should get back the bicycle reservation money, since the train we reserved on was canceled. I know DB offers compensation for late travels.  I'm not sure whether we were 2 hours late or more, or just shy of 2 hours.  But does this apply if we weren't traveling by our original trains? If we had originally scheduled our journey with RE trains and other local transport, we could have bought a Baden-Württemberg ticket for much cheaper than our tickets including an EC cost.  Can I ask them to refund the difference? Am I entitled to any other type of compensation?


Accessing a local variable of a function from another function

Using the following code how can I access a from inside log2?     (function() {      function log() {        var a = "string";      }      log()       function log2() {        console.log(log.a);      }       console.log(log);      log2();    })()


Why doesn't Stack Exchange recognize Shift+Enter for new line?

Every time I want to write on a new line I press Shift+Enter. In the Editor it goes to new line, but on the Preview it stays on the same line.  So I have to make 2 new lines in order to get some separation.  Why can't I just make a new line without having a whole other blank line in between?


I'm trying to figure out the name of this effect and how to achieve it in Lightroom or Photoshop.


Allowing users to compile / run PLSQL and SQL

As a DBA - assuming my users are knowledgeable with PLSQL and SQL - why would I not grant my users privileges to compile and run their own PLSQL code. We have an MI database environment where the data has undergone ETL. The tables contain a large numbers of rows but not necessarily large rows in size. The analysis - will be - I assume of calculus in nature. The users are wanting to run their own code on the data for the purposes of ad-hoc analysis - within their own schemas. They come from a SAS background which from my understanding has allowed them to write and run their own analysis of data. Albeit, SAS runs on its own dataset - extracted from Oracle or elsewhere.  In my opinion this is a dangerous set-up - but without answering my own question - what are the pitfalls?


Where should i put my php script for ajax implementation in wordpress?

I want to implement ajax on a page .  i create a folder under plugins and put php page there and it works(when i gave the correct path in jquery). But when i try to call any WordPress functions it gives me error .  I want to do some database fetching in that file . How and where should i put the php file for simple ajax implementation ?


Why does the subtraction symbol go away? $-(-x)= x$

$+(+x) = +x$ but why is $-(-x) = +x$??? What's the reason behind the rule, it's really basic and "obvious" because a no turns a no to a yes But I don't want to reason like that, lol. So how would you explain it? Do I just say on a real number line $-x$ makes a turnaround and $-(-x)$ would turn it positive again? Also if I say for example: $-x = 5$ then I do have $-(-x) = -5$ Is it correct? It wouldn't matter, right? (Btw: I don't know if the tag "elementary-number-theory" is correct) **The question is different to $(-x)*(-x)=x$


Why does SE want to get my friends list when I try to use Facebook's OpenID?

I'm sick of Google and want to change my openID, so since I  for the Stack Exchange OpenID, I figured I'd use the Facebook one.  Then after signing in, it gives me this message before letting me through (note: imgur wouldn't load this):    So the question is why does Stack Exchange want my friends list?  I always turn down Facebooks apps that ask for that, do we really need to suck out that much informaation?  Note: I already know that it's all public in some way, and the rest of the info I've allowed to be public, but there's no reason to grab for Facebook to share that list.


How do you monitor the health of a mirrored disk in Windows?

I have a Mirrored Dynamic disk on my Windows 2003 Server. How do you monitor the health of the volume?  Is there a way to have the server send an email when there is an issue with the volume? Is there a way to have the server run S.M.A.R.T. tests?  EDIT: Nothing says WTF like logging into a client server, running DISKPART LIST VOLUME and seeing this.  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info ----------  ---  -----------  -----  ----------  -------  ---------  -------- Volume 0     X   xDrive       NTFS   Mirror       233 GB  Failed Rd Volume 1     C                NTFS   Simple        57 GB  Healthy    System Volume 2     D                       DVD-ROM         0 B  Healthy Volume 3     F                RAW    Partition    466 GB  Healthy Volume 4     E   New Volume   NTFS   Partition    932 GB  Healthy


How to display two similars fields with possibly identical content?

I currently work on a subcontracting tool in which I have to register a direct client (billing) and a final client (work) with the address of the final client (work place).  The direct client is just here in case we don't work directly with the final client (it's only a remimder).    What is the best way to display this fields in my form?  I've already thought to:   Ask the user to enter the client twice if the direct and final client are the same Leave the direct client field empty if the direct and final client are the same   But I have no idea how to do this to be clear for the user.  EDIT: After reading the "possible duplicate", the way suggest to solve my problem is to add a "Set a different direct client" checkbox to toggle the "direct client" field display. But I have only one field ("direct client") to work with, so I am not sure that a checkbox is appropriate to toggle only one field.


Is there any python equivalent of haskell's "it" , to get last successful command in REPL

In haskell ghci, "it" means last successful command, which can be used in next command arbitrarily as per need. Is some thing like this exist in python, not asking for history (reverse-i-search)


I.e. "There ain't no maybe".  The "ain't" can be converted into "is no". So the result is "There is no no maybe". How to understand this?


301 redirect from new page to old to keep PageRank?

I need to change a URL of an interior page that has a Google PageRank of 4. It was recommended by a coworker that I create the new URL but have it redirect to the old one, thus allowing a buildup of PR for the new URL, and the existing page continues to maintain a PR of 4.  Does anyone have any insight as to whether this will actually work?


Referencing bib files with spaces in the filename

I am using a Mac with TeX Live and Mendeley for automatically generating .bib files, some of which have spaces in the file names. I would like to know how to reference such files from LaTeX as using "" or \ doesn't seem to work.


How can I install Gimp 2.8's help documentation on Ubuntu 12.04?

Ubuntu 12.04 comes with Gimp 2.6, so I installed Gimp 2.8 using the instructions below:   sudo apt-get purge gimp*   sudo add-apt-repository ppa:otto-kesselgulasch/gimp   sudo apt-get update   sudo apt-get install gimp    When try to open help, I get the message below. How do I install and configure the help for 2.8 on Ubuntu?


How can I avoid a preposition at the end of a clause

I want to say:  Thank you to all of you who have supported me and to whom I have had the pleasure to learn so much from.  Is the correct version:  Thank you to all of you who have supported me and from whom I have had the pleasure to learn so much.  Thank you.


This rectangular hole is extruded to the inside, then I tried beveling it to maintain shape, but after I add the subdivision it becomes an ellipse. How do I keep the rectangular shape?


Configuring HUAWEI E3531 Permission Denied in Ubuntu 16.04?

I tried to follow this method () with no luck. When I put my modem, it always show Mass Storage Mode, here's my lsusb result:  denny@GIGABYTE-PC ~ $ lsusb Bus 001 Device 009: ID 12d1:15ca Huawei Technologies Co., Ltd. E3131 3G/UMTS/HSPA+ Modem (Mass Storage Mode)   Note here that vid:pid value should be 12d1:1506 then I try modprobe -v option and followed by   sudo echo "12d1 1506" >/sys/bus/usb-serial/drivers/option1/new_id bash: /sys/bus/usb-serial/drivers/option1/new_id: Permission denied   No matter what vid:pid that I supplied, system always spouts permission denied. So what's wrong ? and is there easier way to use my USB modem with Ubuntu ?


Force inversely proportional to the squared distance

Newton's law of universal gravitation: "Newton's law of universal gravitation states that every point mass in the universe attracts every other point mass with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between them."  Coulomb's law: "The magnitude of the Electrostatics force of interaction between two point charges is directly proportional to the scalar multiplication of the magnitudes of charges and inversely proportional to the square of the distances between them."  How did Sir Isaac Newton and Sir Charles Augustine De Coulomb come to know that the force, gravitational or coulomb's,  is inversely proportional to the square of the distance between two point masses or charges, why didn't they just say that the force is inversely proportional to the distance of two bodies from each other or two charges? There must have been something that made them formulate these inverse-square laws.


I want to create a document class based on a KOMA-Script class. If myclass.cls contains the following  \ProvidesClass{myclass}[2011/08/31] \LoadClass[paper=a5]{scrartcl}   then compiling a document whose first line is \documentclass{myclass} generates the warning   LaTeX Warning: Unused global option(s):     [paper=a5].   The same problem occurs with scrbook and scrreprt. What am I doing wrong?


What are the odds of SE implementing an old feature request and what can be done to improve those odds?

I am full of great ideas. Well, OK, full of ideas, some of which might be great.  If you squint hard enough. I frequently think up feature requests for SE, because I'm a frequent user.  Sometimes, I decide to stop being lazy and actually come to Meta.SE to post the feature I thought up as a request.  9 times out of 10 (or more often), I discover that someone already thought up the same feature before, and there's an older request for the same thing posted. With no sign of  or  or response from SE team.  Now, there are ways to get extra attention to existing SE (including Meta) posts, but my working assumption here is, that's a fool's work. No amount of effort I can put into an old request will likely make a difference in its chances to be implemented - if SE wanted to do it, they'd have done so already.  But how accurate is that assumption?   How likely is an old feature request to get completed in general? How likely is an old feature request to get completed after being given extra work/attention by someone else? If the answer to #2 isn't "almost never", what are the most effective approaches to succeed in getting SE team to love an old request a bit more? Bounty? Better examples/business case? Hand-drawn pictures of chocolate covered unicorns?


I am using PHPMAILER and I am fairly new in it.   I have used the following code but for some reason the email is being sent to spam. Please have a look at the code and tell me what I need to fix. (I am new to using email  <?php require 'php-mailer-master/PHPMailerAutoload.php';  $mail = new PHPMailer;  //$mail->SMTPDebug = 3;                               // Enable verbose debug output  $mail->isMail();                                     // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com';  // Specify main and backup SMTP servers $mail->SMTPAuth = true;                               // Enable SMTP authentication $mail->Username = 'kfhcareer@gmail.com.com';                 // SMTP username $mail->Password = 'password12345';                           // SMTP password $mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted $mail->Port = 587;                                    // TCP port to connect to  $mail->setFrom('kfhcareer@gmail.com', 'KFH Bahrain'); $mail->addAddress('kfhcareer@gmail.com', 'Joe User');     // Add a recipient  $mail->AddReplyTo( 'mailer@blah.com', 'Contact BLah' );   $mail->isHTML(true);                                  // Set email format to HTML  $mail->Subject = 'KFH house bahrain'; $mail->Body    = 'This is tthe message <b>in bold!</b>';  if(!$mail->send()) {     echo 'Message could not be sent.';     echo 'Mailer Error: ' . $mail->ErrorInfo; } else {     echo 'Message has been sent'; }


I've got an "XS" Pokémon. Is it special?

Whilst checking my Pokémon, I saw one Pidgey with very small CP value in comparison to his brethren. I noticed his weight is smaller, and he has an "XS" mark (see the screenshot).   Is this special? Can I do something with it? Is it more valuable?


Attempt to invoke virtual method '.isPlaying()' on a null object reference

I tried to create a MediaPlayer which starts and stops on the same button, like this:  public void song1(View view){         if(mp.isPlaying() == true){         mp.pause();     }else{         mp = MediaPlayer.create(this, R.raw.song1);         mp.start();     } }   But my app crashes if I try to click on the Button, so I souroundet it with try and Catch like this:  public void song1(View view){         try{            if(mp.isPlaying() == true){             mp.pause();         }else{             mp = MediaPlayer.create(this, R.raw.song1);             mp.start();         }     }catch (Exception e){             e.printStackTrace();         }     }   Here is the Logcat:   W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.media.MediaPlayer.isPlaying()' on a null object reference  W/System.err:     at com.example.exampleapp.MainActivity.sound1(MainActivity.java:129)  W/System.err:     at java.lang.reflect.Method.invoke(Native Method)  W/System.err:     at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:284)  W/System.err:     at android.view.View.performClick(View.java:5264)  W/System.err:     at android.view.View$PerformClick.run(View.java:21297)  W/System.err:     at android.os.Handler.handleCallback(Handler.java:743)  W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)  W/System.err:     at android.os.Looper.loop(Looper.java:150)  W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5621)  W/System.err:     at java.lang.reflect.Method.invoke(Native Method)  W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)  W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)  I/HwSecImmHelper: mSecurityInputMethodService is null   What does this error mean? And how can I solve it?


i do have a class CheckPrograminstallation(which is part of a eclipse plugin), with a method check, which checks whether a program is installed. It return true when installed and false otherwise.  public class CheckPrograminstallation{     public static boolean check(String programname, String OsName)             throws Exception {          // Get installation path of programname         String foundpath = "";         String dirName = "";         String line;         String programpath = null;         Process process = null;         boolean IsInstalled = false;          if (OsName.equals("Windows")) {             try {                 // get Windows Directory first                 process = Runtime.getRuntime().exec("cmd /c echo %windir%");                 BufferedReader reader = new BufferedReader(                         new InputStreamReader(process.getInputStream()));                 // read from stream                  if ((line = reader.readLine()) != null) {                     foundpath = line.toString();                      // cut off "\Windows" from the found path                     int last = foundpath.lastIndexOf("\\");                     dirName = foundpath.subSequence(0, last).toString();                     process = null;                      // get program installation path                     process = Runtime.getRuntime().exec(                             "cmd /c where /R " + dirName + " " + programname);                      reader = new BufferedReader(new InputStreamReader(                             process.getInputStream()));                     if ((line = reader.readLine()) != null) {                         programpath = line.toString();                         System.out.println(programpath);                         IsInstalled = true;                      }                 }             } catch (Exception e) {                 DO SOMETHING);             }         }   When i call the method from a test class, it works. But when i call the same method while running the Plugin:  ...boolean isInstalledPscp;    boolean IsWindows; ...         if (IsWindows == true) {             // for Windows: check if pscp is installed             isInstalledPscp = CheckIfInstalled.check("pscp", "Windows");         if (isInstalledPscp == false) {             do something }         }   ...it always returns false.  How can that be?  This has been driving me crazy for a whole day. Using .equals for String comparison, and still getting false as result. So this is not a string comparison problem IMHO.


<img class="tile-image clp-hover-img"              src="${product.images.medium[0].url}"              itemprop="image" data-src="${product.images.medium[0].hoverImageUrl}"/>     I am having issue with the image hover. Currently it is working fine but after ajax call, hover image won't work as expected.  After page load, when I hover on the image, new hover image loads. When I select a new product using the swatch (AJAX), then it normally shows the new image. When I hover on it, it shows the old hover image itself.  Once I hover image on the container, hover image shows. After I select a new product (color but same product), image changes normally but the hover image will be showing the same of first product color.    var tempSrc = '';  $(".clp-hover-img").hover(function(){  tempSrc = $(this).attr('src');  $(this).attr("src", $(this).data("src"));  }, function(){  $(this).attr("src",tempSrc); });


using CURL to transmit binary data over POST parameter

How can i use CURL to send binary data through a specific post parameter? E.g in:  curl 'http://www.example.com' -H 'hi:hi' --data 'utf8=%E2%9C%93&_method=put&file=binarydatahere&submit=confirm'   I want to send the binary data through the file parameter, I've heard of the --data-binary @myfile.bin method, but i fail to see how i can specify to which parameter the binary data goes through.


How can I unsign files from the [Files] section in Inno Setup?

I've been experimenting with certificates and added the sign flag for my files in the [Files] section. Now all the files are signed with the test certificate. Is there a way to unsign those files?


Pokemon keep running away- is there any way to stop them?

I have been playing Pokemon for a few weeks, and yesterday I tried to do a GPS/location spoof and removed all the software, however, I can no longer catch Pokemon without them running away.   Is there any way this will stop (or I can stop them)?


Average Length of Random Number Generation with Decreasing Range of Numbers

Consider a game where one would roll a random integer between $1$ and $N_0$ where $N_0 \ge 1$. The newly randomly generated number is now the new "upper limit" of the game, the game continues by rolling a random number between $1$ and the randomly generated number. This game continues until the randomly generated number is 1. Here is an example of how it can look like. Consider $N_0 = 1000$ $$N_1 = Random(1, N_0) = Random(1, 1000) = 623$$ $$N_2 = Random(1, N_1) = Random(1, 623) = 366$$ $$N_3 = Random(1, N_2) = Random(1, 366) = 303$$ $$N_4 = Random(1, N_3) = Random(1, 303) = 190$$ $$N_5 = Random(1, N_4) = Random(1, 190) = 52$$ $$N_6 = Random(1, N_5) = Random(1, 52) = 13$$ $$N_7 = Random(1, N_6) = Random(1, 13) = 1$$ $$END$$ The Length of the example game was 7, it took 7 rolls to reach 1. Given the Starting Upper Limit $N_0$, what is the average amount of rolls needed to reach 1? I have tried to write Python code to help with this problem and it seems this follows a Logarithmic Pattern with the function to approximate the amount is $f(N_0) = 1.0168287465013466\ln(N_0) + 1.4731706151125865$


Why does Google Search Results differ when logged in and logged out?

I have noticed when I am logged into my Google account and type my domain into Google search the results differ from than when I'm not logged in. For example when I'm logged in my site is 1st and when I'm logged out... it's 5th...  Why do search results differ when logged in?


If $a$, $b$, $c$, $\frac{a}{b}+\frac{b}{c}+\frac{c}{a}$, and $\frac{a}{c}+\frac{b}{a}+\frac{c}{b}$ are all integers, then $|a|=|b|=|c|$

Prove that if $a,b,c$ are integers and both $\frac{a}{b} + \frac{b}{c} + \frac{c}{a}$ and $\frac{a}{c} + \frac{b}{a} + \frac{c}{b}$ are integers, then $|a|=|b|=|c|$.   Well this is what I have done so far:  From the fact that $\frac{a}{b} + \frac{b}{c} + \frac{c}{a}$ is an integer, we get  $$abc \mid ab^2 + bc^2 + ca^2 \tag{1}$$  In the same way, we also have  $$abc \mid a^2b + b^2c + c^2a \tag{2}$$  so  $$\begin{align} abc \mid a(ab^2 + bc^2 + ca^2) - b(a^2b + b^2c + c^2a) &\Rightarrow abc \mid c(a^3-b^3) \tag{3}\\ &\Rightarrow ab \mid a^3-b^3 \tag{4}\\ &\Rightarrow ab \mid b^3(a^3-b^3) \tag{5} \end{align}$$ and so $a \mid b^6$. In the same way, we can also get $b \mid c^6$ and $c \mid a^6$.      But what should I do after this?   Any help is surely appreciated! Thanks!


I have a small server that I've been using for stuff internal to our house - running Plex for the TV, mostly. I'd like to make some of the documents on it available for my friends to download over the internet, but I'm wary of installing something like Apache and running a full-on web server if I don't need to.  Would it be a better idea to try to set up an FTP server instead? Or another option? Is there a 'correct' way to do this?  (For the purpose of this question, my friends are capable of following technical instruction to the level of being able to connect to an FTP server, but not much further. They are running a mix of OSes and are in various locations around the country.)


i want to make a levitating device with magnets. now i have some ideas but i don't know the math to work the numbers out. here is what is want to do :    so the idea is basically to lift a device (about 50 grams) to 5 cm above the base. but the lifting must be smooth and stable. in other words it must be easy to place the device on top of the base and it must not move off the base with small flick. problem is i don't know what magnets to use inside base magnet or the top magnet. i did some reading about magnetic fields and lenz's law and came up with this plan which seems to provide a stable field but i don't know if it is possible in a 20*20 cm base :    what method will provide my needs and also is possible ? and info about magnet dimensions would be appreciated.  sorry for my bad English. thanks


How do you tell if caps lock is on using JavaScript?  One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was, then check if shift was also held down. If it wasn't, therefore caps lock must be on. This feels really dirty and just... wasteful - surely there's a better way than this?


I have installed gtkmm using apt-get install libgtkmm-3.0-dev. When I try to compile using g++ test.cpp  'pkg-config gtkmm-3.0 --cflags  --libs', I get error saying g++: error: pkg-config gtkmm-3.0 --cflags  --libs: No such file or directory. I already searched about this none of them helped me. Ubuntu version:20.04


What about officially adopting a gender-neutral singular pronoun?

It's inconvenient that English doesn't have a gender-neutral pronoun, especially when a person's gender is unknown. It seems inappropriate to call the person as "he" or "she" at such situations.  I suggest adopting the "shi/hir" pronoun, which is commonly used in furry fandom.  e.g. "Shi refused to confess." "Hir real purpose is unknown." "I am searching for hir." "All the base are hirs." "Shi loves hirself."


Set theory: difference between belong/contained and includes/subset?

This is a total noob question.  I am reading , and I'm having difficulty to understand something which seems to be trivial.  In the first chapter he writes:     If $x$ belongs to $A$ ($x$ is an element of $A$, $x$ is contained in $A$), we shall write      $x\in A$   I understand this.  Then, he write:     If $A$ and $B$ are sets and if every element of $A$ is an element of $B$, we say that $A$ is a subset of $B$, or $B$ includes $A$, and we write:      $A \subset B$   I understand this too.  Then he says:     The working of the definition implies that each set must be considered to be included in itself ($A \subset A$); this fact is described by saying that set inclusion is reflexive.   I understand this too.  But then:     Observe that belonging ($\in$) and inclusion ($\subset$) are conceptually very different things indeed. One important difference has already manifested itself above: inclusion is always reflexive, whereas it is not at all clear that belonging is ever reflexive. That is: $A \subset A$ is always true;  is $A\in A$ ever true? It is certainly not true of any reasonable set that anyone has ever seen.   And this is where I don't think I understand anything.  There is not more elaboration on this point in the text.  I tried to skip this but it seems it is quite fundamental for understanding what follows in the book.  Could someone explain what is meant here?


Can someone help me create a spiral (helix) similar to the one shown in the image? How might this be done except from drawing the curves perfectly by hand?    I achieved the desired result, but very painstakingly by drawing everything from hand. See the pictures below. To specify my question: Is there a simpler way to draw a shape similar to this?


Gravitational waves detection, any news?

Is the detection of  a reality with nowadays technology?  Are there recent news?


Just started with Blender.  I made a shape ( picture 1) Now I want to make a circle on this face and sink it into the shape.  What I do is create a circle, place it onto the original shape, press F  to give it a face, make an inset (picture 2), and then when I try to extrude (picture 3), it does not create a hole.  Probably because I have two faces on top of each other. How would you go about this?


For Photons, their 'waves' are oscillating electromagnetic fields. From what I've heard, electrons are also some kind of wave. So what 'field' is exactly oscillating for electrons, which makes them a wave? It can't be the electromagnetic field, I think?  Sorry if the question is stupid.


Cantor's diagonalization argument and rational numbers

Why is the argument not applicable in proving rational numbers are uncountable?  The way I see it is-  Every rational number has a repeating decimal expansion. Now, let us say the number described in Cantor's argument repeats after 'n' digits. Any number in the list that doesn't have one of the first 'n' digits common with this number will not be the same as this number. But now, the Cantor argument breaks down for the (n+1)th place as this number cannot be different from any other rational number with the first n digits being common. So, as long as this number is not present in the list, the Cantor number will not be in the list. But if we map one of the natural numbers to a number with the first n digits common, then this cantor number will be in the list too, by nature of it being rational. Hence, we cannot use this to prove the rational numbers are uncountable. As it turns out, they are countable anyway.  Is this correct?


I have the following expression:   <bean class="java.net.InetAddress" id="inetAddress" />  <bean id="dataSource"       class="org.apache.tomcat.jdbc.pool.DataSource"       p:driverClassName="org.postgresql.Driver"       p:url="#{'jdbc:postgresql://' + inetAddress.getLocalHost().getHostName()=='alex-HP-290-G1-SFF-Business-PC'?'localhost':'172.18.0.2' + ':5432/infostock'}"/>   This expression    inetAddress.getLocalHost().getHostName()=='alex-HP-290-G1-SFF-Business-PC'?'localhost':'172.18.0.2'   must compare hostname-value (retrieved from getHostName) with 'alex-HP-290-G1-SFF-Business-PC'. If true, it returns 'localhost', otherwise '172.18.0.2'.  Actual value of hostname is 'alex-HP-290-G1-SFF-Business-PC'. I get this from:   System.out.println(InetAddress.getLocalHost().getHostName());   So, ternary operator must return 'localhost'  But it returns  '172.18.0.2'.


Proving that the quotient manifold is orientable if and only if the group action is orientation-preserving

I'm trying to solve the following exercise in Lee's book.  Suppose M is a connected, oriented smooth manifold and Γ is a discrete group acting freely and properly on M. We say the action is orientation-preserving if for each γ ∈ Γ, the diﬀeomorphism $x\rightarrow γx$ is orientation-preserving. Show that M/Γ is orientable if and only if Γ is orientation-preserving.  Assuming $\Gamma $ to be orientation-preserving, I tried taking a commutative diagram taking an orientation of M to one of M$/\Gamma$ and vice-versa and tried using local diffeomorphism arguments to prove the orientability of M$/\Gamma$. However, I can't make this proof explicit. Nor can I proceed for the other direction.   Can someone please provide a proof for both if and only if parts? Thanks in advance.


Can't Boot Ubuntu after Windows 10 Anniversary Update

After Windows 10 Anniversary update the grub OS choice menu no longer shows, I just get the grub prompt. From the grub prompt I can use ls on only one of the partitions, which has three folders: ubuntu, boot and windows but I'm not sure what to do from the grub command line.  I've tried using the boot-repair tool but it didn't work.  I tried the bcdedit approach mentioned here  but it didn't change anything.  I fear for the worst because the partition that had ubuntu on it is not recognized properly by gParted (it says file system unknown), and fdisk -l /dev/sda6 says "Disk /dev/sda6 doesn't contain a valid partition table" I've not much experience with partitioning or grub, and maybe it's a wrong assumption, but since I have only two partitions with more than 100GB, and gParted says sda4 has the Windows label I've assumed that sda6 is my old Ubuntu partition.  I tried the accepted answer from here:  but immediately hit problems because I couldn't mount my ubuntu partition. Without type (or with -t auto) mount says I must specify type, but with type I get:  sudo mount -t ext4 /dev/sda6 /mnt mount: wrong fs type, bad option, bad superblock on /dev/sda6,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so   Here is the output from sudo parted -l  Model: ATA Crucial_CT250MX2 (scsi) Disk /dev/sda: 250GB Sector size (logical/physical): 512B/4096B Partition Table: gpt  Number  Start   End     Size    File system     Name                          Flags  1      1049kB  735MB   734MB   ntfs            Basic data partition          hidden, diag  2      735MB   1008MB  273MB   fat32           EFI system partition          boot  3      1008MB  1142MB  134MB                   Microsoft reserved partition  msftres  4      1142MB  103GB   102GB   ntfs            Basic data partition          msftdata  5      103GB   104GB   855MB   ntfs                                          hidden, diag  6      104GB   230GB   125GB  7      230GB   238GB   8468MB  linux-swap(v1)  8      239GB   250GB   11.5GB  ntfs            Basic data partition          hidden, diag   Here is the output from the recovery tool:   I haven't tried TestDisk yet because I'm not sure if it can fix it (and I don't want to break the windows partition) but if anyone thinks it's worth trying I can do that.  Overall it's been a very sad anniversary for Windows for me. When I saw the Windows "Hi.. We've updated your PC" on screen I wanted to put my fist through it.  Update: I tried TestDisk and now windows isn't booting either after just doing the basic "scan" and write partition table.


How to print out a random number between a range?

I've the following but it doesn't work:  <%= (5..30).sample %>


I can't make the cleaver with paper tool rod, paper large plate and a manyullyn large blade....Why?


Do I need to separate bug reports for a same issue in Android app and iOS app?

If I see a bug in Android app and the same bug is in iOS app, is it recommended to create two separate bug reports for  and ?   Or can I create a bug report just for  and add some note in the post that states the same issue is in iOS app too?  Note: I got this question after seeing the comments of this


Set max_fails and fail_timeout for all servers in upstream in nginx

All of the examples I've seen of using upstream (for load balancing) in nginx look like this:  upstream  backend  {   server   backend1.example.com:8080          max_fails=3  fail_timeout=30s;   server   backend2.example.com:8080          max_fails=3  fail_timeout=30s;   server   backend3.example.com:8080          max_fails=3  fail_timeout=30s; }   It seems repetitive to re-set max_fails and fail_timeout for each backend, when typically they are always the same. Is it possible to set max_fails and fail_timeout for all of the backend servers at once?


Unable to query fields from Related List of Custom Object - getting query exception?

I have a Custom Object Rule__c, And I have added another Custom object Rule_Set__c as Related list in page layout for Rule__c and when I try to query like below:  @AuraEnabled(cacheable=true)     public static List<Rule__c> getRules(String objId) {         String query;         query = 'SELECT Id, Name, Formula__c';         query += ' ,(SELECT Name' + ' FROM Rule_Sets__r)';         query += ' From Rule__c WHERE Active__c = true AND Parent_Obj__c = :objId';         return Database.query(String.escapeSingleQuotes(query));     }  I am getting Exception like: Error: Didn't understand relationship 'Rule_Sets __r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. Note: When I query for fields for another Custom object which is related to the Rule__c Object the above query is returning results properly, I am getting the Query Exception only when I query for fields in object Rule_Set__c


Why do we need in RSA the modulus to be product of 2 primes?

I think I roughly understand how the RSA alorithm is working.  However, I don't understand why we need the $N$, which we use as a modulus, to be $pq$ for some large primes $p, q$.  I vaguely know it has something to do with factorization, but I am kind of lost. So, hypothetical questions.   What would happen if the $N$ was not $pq$, but just a big prime? What if $N$ would be some random composite (that's easy to factor)?   The other parts of RSA would stay the same.


The following conditional is not working; when I use \def\Assignment{Examples}, the file  \input{\code/Assessment/#1/#2/#2} is not read.   \ifx\Assignment Examples  \qformat{\underline{\textbf{#5 \thequestion } }}          \loop       \input{\code/Assessment/#1/#2/#2}     \addtocounter{int}{1}\ifnum\value{int}<#4  \repeat   \else     \if\Assignment Quiz   \scriptsize{\textbf{This assessment instrument assesses the following Course Learning Outcomes (CLO) and grading scheme: }} \vspace{-0.25em} \qformat{\underline{\textbf{#5 \thequestion } }\droptotalpoints}         \loop        \input{\code/Assessment/#1/#2/CLO} \input{\code/Assessment/#1/#2/#2}     \addtocounter{int}{1}\ifnum\value{int}<#4  \repeat   \fi \fi   } \rmfamily}{\medskip}


My reading of the rules concerning  and  in 5e work it out to be something along the lines of "the caster picks a point in space, and when the spell goes off (or after some delay/trigger in the case of Delayed Blast Fireball) suddenly there's magical fire in a 20 ft. radius around that point."  Notwithstanding the pitfalls of questioning the physical properties of magical effects (personally I like systems where everything makes a reasonable amount of sense), I wonder about how this would interact with small, confined spaces. Supposed a Delayed Blast Fireball was placed in a very small metal case, which was subsequently welded/sealed shut. What would happen when the spell is triggered?  I can think of three reasonable options at first:   We've created a grenade (albeit an extremely unstable one). This requires that force/pressure was generated by the Fireball, which creates implications for other applications. The vessel contains the explosion, and since no force or heat was generated (only "magic fire"), the vessel is afterwards unharmed. The vessel isn't blown apart (no force), but depending on its makeup might melt from the focused heat of the Fireball, leading perhaps to partial leakage.   Which scenario would apply? Or would something completely different happen?


apt-get build-dep is unable to find a source package for emacs24

I am trying to follow  to install the latest released version of emacs (24.5) from  on Linux Mint (which has 24.3 installed)  Doing the second step sudo apt-get build-dep emacs24 i get:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to find a source package for emacs24   Answers to this  did not help.   I tried ./configure ignoring that step (one can hope), but it gives errors. What do I need to do to get apt-get build-dep emacs24 to work?


ArrayList to Array not displaying the way I want to

ArrayList<String> nameList = new ArrayList<String>();     nameList.add("James");     nameList.add("Joe");     nameList.add("Josh");     nameList.add("Bob");     nameList.add("Billy");     System.out.println("The names are:\n " + nameList);      nameList.remove(1);     System.out.println("Find the index 1 and remove their name from the list:\n "+ nameList);      nameList.size();     System.out.println("Currently the ArrayList holds " + nameList.size() +                         " names after removing the name of index 1" );      String[] tempArray= new String[nameList.size()];     tempArray = nameList.toArray(tempArray);      System.out.println(tempArray); // I want it to display the values of the ArrayList      }    }   The output I'm getting is [Ljava.lang.String;@4554617c when I want it to look like this [James, Josh, Bob, Billy]. New to programming would appreciate the help.


Diff$(S^1)$ is deformation retracts to $O(2)$

I have proved the following  Now I want to prove it is deformation retracts to $O(2)$.   What I tried is the following:  I define an onto homomorphism $$ f:\text{Diff}^{+}(\mathbb{D}^2)\to \text{Diff}^{+}(S^1) $$ by $$ \phi\mapsto \phi|_{\partial \mathbb{D}^2=S^1}$$ This is onto because any diffeomorphism of $S^1$ can be extended to a diffeomorphism of $\mathbb{D^2}$. The kernel of this homomorphism is $\text{Diff}^+(\mathbb{D}^2\text{rel } \partial)$. After that I don't know what to do.


Books to learn physics, being a math major

What books would you recommend to learn physics, being a a Math major, from classical mechanics, electricity, etc. to modern physics?


What increases your chances of finding shiny pokemon?

Does it have chain combo like in Pokemon Let's Go where the more you battle the same Pokemon in a row the higher the chance of spawning a shiny?  Does the Masuda method work?


Wrong character encoding from form 2-3% of the time

I have a form in PHP that submits data to MySQL.  Looking at the data in the database, I can see that around 2-3% of the rows contain international characters that are encoded incorrectly, e.g. "Guðrún" displays as "GuÃ°rÃºn".  But, another user might submit the same characters just a few minutes later, and in that case, the characters are encoded correctly  So it seems the encoding is dependent on the computer that is used or some other factor that I am unaware of.  In the head of the HTML, I have this:  <meta charset="ISO-8859-1">   The form has this:  <form autocomplete="on" method="post" action="index.php" id="form1" accept-charset="ISO-8859-1">   The MySQL columns are set to latin1_swedish_ci.  Is there something else I should be doing to make this work for everybody?  Edit: since it was marked as duplicate I can't find an answer to this question anywhere else. I've read through lots of info on character encoding, which led me to having the setup I currently have, but that doesn't explain why 2-3% of the data is behaving differently from the rest.


When I take a picture through a window, I often see a reflection on the glass. I have noticed that this occurs mostly when it is dark or overcast outside or it is especially bright on my side of the glass. How can I stop this?


Setting an expiry date or a maximum age in the HTTP headers

I just finished a website that I designed and submitted it to  for performance reviews, and this is the results I got:    It says I need to set expiry date or a maximum age in the the HTTP headers, but I don't know how it is possible to set the expiry date for anything other than cookies/sessions, so I have no clue what this means or how to do it.


Is super zoom lens the best option for travel photography?

I'm a beginner photographer — mostly interested in travel photography.  Recently I've seen some posters advertising a Tamron 18-400mm lens, so I checked the reviews and it does not seem to be a bad lens or to have so many disadvantages.  Is this better for a travel photographer to use such a super zoom lens (like 18-400mm) instead of couple of lenses?  I'm interested in advantages and disadvantages of having a setup with multiple lenses.< I currently own one 35mm, one 17-50mm and one 70-300mm and I wonder if there are other benefits (or drawbacks) of switching to one super zoom lens (beside of course this that only one lens is much lighter)


How to prove that $a^2+ab+b^2\ge 0$?  Obviously the squares are positive, but how can I be sure that $ab$ doesn't become too negative with a certain combination of $a$ and $b$?


Why did Lily's enchantments work for Voldemort?

Lily Potter chose to die instead of sacrificing her son Harry to Voldemort. In doing so, protective enchantments were created that protected Harry and made him less vulnerable to Voldemort and Voldemort's attempts to kill Harry.   Yet, I don't understand how Lily's enchantments, when Voldemort stole Harry's blood in the graveyard scene in Goblet of Fire (chapter 33, The Death Eaters), were helpful to Voldemort at all.     ‘He took my blood,’ said Harry.   ‘Precisely!’ said Dumbledore. ‘He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!’   Deathly Hallows - page 568 - Bloomsbury - chapter 35, Kings Cross   Yet I wonder about the following canon information:    Lily's enchantment was contingent upon Petunia Dursley giving Harry a home, which Petunia     grudgingly did¹. It was the blood bond between Harry and Petunia, plus the fact that Petunia gave Harry a home, where he could return to once per year, that sealed Lily's   protective enchantments and made them strong. Voldemort was never granted a home at the Dursleys, and in fact never stepped foot into the Dursleys' home at any point in canon. Never having been given a home at the Dursleys, how, then, did Lily, Petunia, and Harry's blood bond exist within Voldemort? Or did it? If it did, would it be because ? Lily's enchantments broke the moment Harry turned 17 and could not protect Harry any more². According to the 's page on Voldemort, Voldemort was 69 years old when he stole Harry's blood. If Lily's enchantment broke for Harry at age 17, why would the enchantments work for Voldemort when he was 69? Dumbledore tells Harry in Order of the Phoenix that Voldemort would not possess Harry because the love that fills Harry -- Lily's love -- is a force that Voldemort detests so greatly that he cannot bear to come into contact with it³. Yet the love Lily infused into Harry runs in his veins; Voldemort took Harry's blood, the blood that is imbued with Lily's love. How can he bear to be in contact with the love given to Harry in his own veins?   Given this canon information, why did Lily's enchantments work for Voldemort?  ¹Half-Blood Prince - chapter 3, Will and Won't and Order of the Phoenix - chapter 37, The Lost Prophecy ²Half-Blood Prince - chapter 3, Will and Won't ³Order of the Phoenix - chapter 37, The Lost Prophecy


When shooting deep sky objects such as Andromeda or the Orion nebula, I find that I'm between a rock and a hard place. I can get passable results by running 3600 ISO and four second exposure. Any longer exposures will show star trails that wont work in DeepSkyStacker. I'm pretty sure my focusing is as tight as can be. I'd like to get more detail and stars but without a motor drive for my equatorial mount, I'm not sure it's doable. Also I find that using a barlow lens really makes the star trails much more noticeable. With just telescope and no barlow the star trails are still there but less apparent.  Any ideas on how I can get nice crisp photos? Maybe many short exposures stacked will yield the same result? Even though the short exposures have much fewer stars and details, will they still work in DeepSkyStacker? Are there other editing programs that might work a bit better for me?


Revealing one's original ideas in job applications?

Job applications typically require the applicant to describe their research interests (research statements). Would it be a worry that an applicant's work-in-progress/current interests would inspire similar works from the reviewer's side? If so, is it wise to describe these ideas, or better avoid doing so?


Why do travelling waves continue after amplitude sum = 0?

My professor asked an interesting question at the end of the last class, but I can't figure out the answer. The question is this (recalled from memory):  There are two travelling wave pulses moving in opposite directions along a rope with equal and opposite amplitudes.  Then when the two wave pulses meet they destructively interfere and for that instant the rope is flat.  Why do the waves continue after that point?  Here's a picture I found that illustrates the scenario    I know it's got to have something to do with the conservation laws, but I haven't been able to reason it out.  So from what I understand waves propogate because the front of the wave is pulling the part of the rope in front of it upward and the back of the wave is pulling downward and the net effect is a pulse that propogates forward in the rope (is that right?).  But then, to me, that means that if the rope is ever flat then nothing is pulling on anything else so the wave shouldn't start up again.  From a conservation perspective, I guess there's excess energy in the system and that's what keeps the waves moving, but then where's that extra energy when the waves cancel out?  Is it just converted to some sort of potential energy?  This question is really vexing! :\


A construction that I have been seeing a lot lately that seems surprising to me is "The  8-foot-long bridge ...," with two hyphens.   It seems surprising to me (or maybe I'm just noticing it) that there is a second hyphen between "feet" and "long".   Is this considered a common construction or is it more of an accepted though less common use?


Windows 7 compressing doesn't reduce space

I used the compression method by windows 7 from the properties of a file but it doesn't seem to work. The folder that was around 42,6 Gb is now 42,5 Gb which means it only saved me 100 MB? Is there any other way to compress the files that i don't use (but i still want to keep)?


I have two models, one lm(y ~ x1 + x2 + 0) which gives me a close to 0.90 something $R^2$ and another model lm(y ~ x1 + x2) which gives me a close to 0.0003 ish $R^2$. Based on $R^2$ one might choose the first model. I have domain (prior) knowledge that a 0 value of $x_1$ and a 0 value of $x_2$ should produce a 0 value of $y$. So, is my explicit setting of 0 a fair thing? Based on this knowledge and the obtained value of $R^2$ can I go with the first model?   Edit: From the threads  and  I have learned that it is okay to do it as long as the domain knowledge above holds true. From  I learned that $R^2$ alone is insufficient to make a decision about how good the model is. I need to look at AIC and BIC to make further decisions. However, because I my background is not in statistics, I am having trouble understanding the following in the first link:   Why does the first equality occur only when intercept is included? why does $\bar{y}$ become 0 when intercept disappears? Why in the second case, $R_0^2$ uses a reference model corresponding to noise only? What is the $\bar{y_1}$ in the notation? Why is $\|\ y \|_2^2 = \| y - \bar{y_1}\|_2^2 + n \bar y^2$ true?


Does the series $\sum\limits_{n=1}^\infty \sin \frac{1}{n}$ converge?

Does the series $\sum\limits_{n=1}^\infty \sin \dfrac{1}{n}$ converge or diverge?


How raster data can be converted to KML? I have searched but could not find any answer. Are there any tools in Arc toolbox for such process ?


Leaving France without having gotten OFII stamp

US passport. I have a long stay visitor visa in France for one year. I never got the OFII stamp/vingette. I know other people who have left France having never gotten OFII and had no problem. The customs people didn't even check their passport, simply opened it and stamped.  Can I avoid any potential problems by traveling by train or car for a short trip to another Schengen country (eg Spain, Netherlands), where I can enter as US citizen, and flying home from there?


What to choose: Xubuntu or Xfce Session?

When logging in I can choose to use Xubuntu or Xfce. Besides the font (it's a little blurry in Xfce) and Xfce seemingly using a little bit less memory than Xubuntu (which is not an issue) they look exactly the same to me. What's the difference? And which one is faster?


I want to change my computer's password. Right now my password is abc123. I run this command:  sudo passwd   I entered my current password and then a new one but the change does not take effect. How can I resolve this problem ?


How to create a circular black gradient mask

Last year I hired someone to do some work for our website but accidentally lost the PSD files since then. It's a fairly basic concept but I am fairly inexperienced with using masks.  How can I create the black circular gradient area as shown in this image below? I need to get as close as possible where it matches existing images on the site, why I am hoping its not too hard.  Thank you!


Is it possible to pin a process to a core which has no other processes pinned to it?

In a parallel programming library, we pin each process to a different core. However, we overlooked the fact that a given core might already be busy and have another CPU-intensive process already pinned to it. Is it possible to ask the Linux (and OS X) kernel to list all the cores which don't have a process pinned? I know how to pin a process to a core (sched_setaffinity on Linux). But, in a multi-user system, I'd like the kernel to tell me if it is a good idea to pin to that core. Or, even better, let the kernel decide to which core this process should be pinned to. Thanks!


Problems with \pgfplotstableread and relative paths

I have this folder structure in my project:   main.tex mystyle.sty tex  mytex.tex  img  myimg.tex  dat  mydat.dat     And the following files:  main.tex:  \documentclass{scrartcl} \usepackage{mystyle}  \begin{document}   \input{tex/mytex} \end{document}   mytex.tex:  \begin{figure}[ht]   \centering   \input{img/myimg.tex} \end{figure}   myimg.tex:  \documentclass[tikz]{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \IfStandalone{   \newcommand{\fromRoot}[1]{../dat/#1} }{   \newcommand{\fromRoot}[1]{./dat/#1} } \pgfplotstableread{\fromRoot{mydat.dat}}\datatable \begin{document}   \begin{tikzpicture}     \begin{axis}[width=10cm, height=6cm]       \addplot table[x=0,y=1]{\datatable};     \end{axis}   \end{tikzpicture} \end{document}   mydat.dat:  1 0.4032 2 0.40241 3 0.38704   mystyle.sty:  \ProvidesPackage{mystyle}  \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable}   In my understanding should the path to the mydat.dat file be ./dat when I'm compiling the main file main.tex. But I always get the error message:  (./img/myimg.tex ! Undefined control sequence. \pgfplotstableread@filename ^^@-\datatable


How can I inspect Scene Render settings in a .blend file from Python externally?

I'd like to be able to use an external instance of Python (ie. not Blender's internal python) to read a blend file and inspect it for Render Settings (ie. Start Frame, etc.).  Is this possible without firing up the Blender app itself? I don't want to have to depend on a Blender app, or to import the bpy module because the main project is in Python 2.7.  Also, I'd like to avoid any cli calls to blender to get this information.


Definite article when referring to named works

If I've watched a named film, let's say "Ice Age". Is it incorrect to say:  "I was watching Ice Age film"  Without a definite article? As opposed to:  "I was watching the Ice Age film".  If you have to include "the" - why is that?


Ubuntu install and dual Boot with Windows 8 UEFI

i have Ubuntu 12.04 x64 ISO, i load it on a Fat32 USB. My notebook has a hdd with GPT where i installed Official Win 8 Pro x64 (final versión), I partitioned the whole hdd, previously of win 8 install, and bios is set with UEFI boot. My BIOS notebook doesn't support SECURE UEFI BOOT.  So I boot the notebook from USB and the Grub runs OK showing whether to run Ubuntu live or to install, but neither one neither two works, when I choose then the screen shows black and nothing happen, it doesn't start/loads the install program.  I've try whether to prepare the usb with unetbootin, or just direct copy/paste the files onto the USB. I also have try WUBI, but neither with success, it launch an error when ending.


Maven pom.xml argument that will install different dependencies depending on the value

I would like to have a property/argument on Maven that will install a different dependency depending on the argument.  That is, when a user specifies -DgpuCuda=True, the dependency on the pom.xml will change accordingly.  So mvn -gpuCuda=True install will install DL4J-GPU instead of DL4J-CPU.  If -gpuCuda=True is specified, then this will be installed:  <dependency>  <groupId>org.nd4j</groupId>  <artifactId>nd4j-cuda-10.1</artifactId>  <version>1.0.0-beta4</version> </dependency>   If -gpuCuda=False, this will be installed:  <dependency>  <groupId>org.nd4j</groupId>  <artifactId>nd4j-native</artifactId>  <version>1.0.0-beta4</version> </dependency>   Is this possible? What would a workaround be? Thanks!!


How to set up Windows on VM using Powershell (Hyper-V)

I know how to create a VM and I know how to start that VM on Hyper-V using the script of Powershell but it's the first use of the VM so I need to set up Windows and I don't know how using the Powershell.


Determining which US zipcodes map to more than one state or more than one city?

I'm using a zip code listing, and I am curious to know how many (or which) zip codes map to more than one US state or US city?  For instance I know that Zip Code 42223 resolves to US Army, Fort Campbell which straddles the KY-TN state line. Oddly, the google API only returns TN for that state corresponding to that zip.


Linear independence is somehow preserved by approximate unit multiplication?

I am reading a book on Operator Algebras and at a point the authors seem to make the following implication:     Let $A$ be a $C^*$-algebra and $\{a_i\}_{i=1}^n$ a linearly independent subset. If $(u_\lambda)_{\lambda\in\Lambda}$ is an approximate unit for $A$, there exists a $\lambda_0\in\Lambda$ such that $\{a_iu_{\lambda_0}\}_{i=1}^n$ is also linearly independent.   I have doubt about the validity of this, or at least that it is immediate. My work is the following:  There is an elementary lemma in functional analysis (mostly used to show that all norms over finite dimensions are equivalent) that says that "whenever $\{a_i\}_{i=1}^n\subset X$ are linearly independent in a normed space, then there is a constant $C>0$ such that for all $(x_i)_{i=1}^n\subset\mathbb{C}$ it is $\|\sum_{i=1}^nx_ia_i\|\geq C\cdot\sum_{i=1}^n|x_i|$.  Let $C>0$ be the constant for $\{a_i\}_{i=1}^n$. Suppose that for each $\lambda\in\Lambda$ we have complex numbers $\{x_i^\lambda\}_{i=1}^n$ such that $\sum_{i=1}^nx_i^\lambda a_iu_\lambda=0$. Suppose furthermore that $\{x_i^\lambda\}_{i,\lambda}$ is bounded, say by a constant $M>0$.   Let $\varepsilon>0$ and pick $\lambda_0\in\Lambda$ such that for all $\lambda\geq\lambda_0$ it is $\|\sum_{i=1}^na_iu_\lambda-\sum_{i=1}^na_i\|<\varepsilon C/M$. Then for such $\lambda$ it is $$\sum_{i=1}^n|x_i^\lambda|\leq \frac{1}{C}\|\sum_{i=1}^nx_i^\lambda a_i\|=\frac{1}{C}\|\sum_{i=1}^nx_i^\lambda a_i-\sum_{i=1}^nx_i^\lambda a_iu_\lambda\|\leq \frac{M}{C}\|\sum_{i=1}^na_i-\sum_{i=1}^na_iu_\lambda\|<\varepsilon.$$ So we obtain that for all $i$ it is $x_i^\lambda\xrightarrow[\lambda\in\Lambda]{}0$. But that's the best I can get, and, don't forget I have added a hypothesis (the boundedness of the coefficients).  Am I missing out the obvious?  refers to the same thing (the same book too). OP answers to himself, but It doesn't make any sense to me, they pick an index large enough such that an approximation holds for all scalars? This seems wrong to me.


How to get RecordType.Name from a lookup relationship - SOQL

I have a custom object called Employee and another object called Device  Device is a lookup relationship to Employee object  I'm trying to pull the Device RecordType.Name something like this:  SELECT id, Name, device__r.RecordType.Name from Employee__c   in the Developer Console I see its pulling the data but the column is displaying like this [Object Object] What do I need to show the actual data?


How to set line spacing Graphics.DrawString

I arrive to output a string on multiple lines inside a retangle but haven't find a way to reduce or enlarge the line spacing. How to do that?


I'm a little confused on when and when not to capitalize academic titles.   For example do you say     "I am a Finance major."   or     "I am a finance major."   Also does it change if it is     "I am majoring in Finance."   or      "I am majoring in finance."


Allow owner of message to delete them in chat

I have been using chat quite a lot recently and when posting some code blocks I sometimes get them wrong and it has gone past the threshold  to edit it and I try to delete it but all I can do is flag it for a moderator.  This in my opinion is very counter productive and annoying for the moderators, I think the users should be able to delete their own messages in chat regardless of age.  I don't see any drawbacks of this implementation if it were to be implemented?  Thanks!


I am unable to start Firefox. Whenever I click on the icon the mouse pointer just changed the state to indicate its busy and the after 2 seconds it would change back to a pointer.   I ran the 'firefox' command in the Terminal and here's the output.  vostro-1320:~$ firefox  (process:19047): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed  (firefox:19047): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (firefox:19047): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (firefox:19047): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (firefox:19047): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised  Could not create gnome accelerators directory `/home/bharath/.gnome2/accels': Permission denied   Any pointers on what could be wrong?


Evaluate $$\sum_{n=1}^{\infty}\frac{(-1)^n}{(2n+1)3^n}.$$  -A solution related to converting it into power series and then applying integration will be appreciated! I cant seem to express it as a power series.


How to play with friends who don't want to read the rules?

I want to play an RPG with my friends. However, they are a bit impatient, and I'd have to wait forever before they'd read the rule-book. I've read it all, because I found it interesting. They kind of like the idea, but just want to play. This brings two problems:   How much of the mechanics do I have to teach? Do I need to teach at all? I'm feeling insecure about them not knowing the mechanics, because later on they might have a problems because of that ("I thought that grenades work differently!", "I didn't know worshiping this god implies X", etc.). How much lore should I teach? The players inevitably live in the world, so - unless they lived under a rock - they must know something about the world. Their lack of knowledge about the lore results in their characters lacking common sense and basic knowledge. How should I help them create character, and do it quickly? They need to know the options they have, and creating a character can be lengthy process. Moreover, creation of warrior might be simple(he is just big, strong, and probably stupid); creating a mage or priest in a foreign world, where there are many different spells to be considered or gods to be worshiped might take some time before you know the options.   How should I deal with these issues? I thought that 2. could be introduced by making a scenarios that involve the lore, so they learn while they play, but what about other points?  The games I have in mind are mostly Neuroshima (primary target), Wolsung, D&D, maybe World of Darkness.


$P(x)=x^n+a_1x^{n−1}+\dots+a_n$ is a polynomial with real coefficients. If $a_1^2<a_2$ Prove that all roots of P(x) cannot be real. I tried solving it with contradiction assuming real roots and working out coefficients $a_1$ and $a_2$ but nothing seems to work. I tried using calculus too differentiating it n-2 times but I couldn't find any substantial result.


I am working on an image on the adobe photoshop. The opacity and fill value of it on the photoshop are 100%(opacity) and 57%(fill). I am wondering how can we convert these values in CSS ?


Domestic to international luggage allowance

I have a SFO to Bangkok flight via LAX that was booked as one online. My first leg is SFO to LAX, so I have to check-in first on a domestic carrier, United Airlines.   I will be flying economy class. Official carrier is All-nippon airways except for the first leg, which is United Airlines.  Will my luggage will be charged based on domestic weight limits since I will be checking in on a domestic flight first onward to LAX? I am worried because I believe international travelers are allowed more than domestic passengers.


Number of reflexive relations, symmetric relations, reflexive and symmetric relations using digraph approach

Given set A has n elements. Find  1) Number of all reflexive relations?  2) Number of all symmetric relations?  3) Number of all reflexive and symmetric relations? Why is enumeration of transitive relations difficult?  1) Relation could be viewed as a digraph hence after the self loop edge for each vertices. There are ${n \choose 2}$ edges hence two choices for each i.e either a relation or not Hence answer:$ 2 ^ {n \choose 2} $  2) Here another choice of self loop. There are ${n \choose 2}$ + 1  edges hence two choices for each i.e either a relation or not Hence answer:$ 2 ^ {{n \choose 2}+1} $   Is this correct? Third one I am very confused how to approach.


Ubuntu in VirtualBox does not start after restart and shows weird pixelated screen

I installed  on VirtualBox. I logged in, installed VirtualBox additions and restarted the system. The system did not load again, instead I see this:    The aspect ratio of the image is preserved in this screenshot and it doesn't make much sense to me - no screen has such dimensions. I did not do anything else special that I could mention. This is the only thing I see before the screenshot above:


In bash you can repeat the last command by entering !!, or the third last command !-3 for example.  Is there a quick way to repeat the last 3 commands, without having to type out !-1; !-2; !-3 explicitly?


Find the remainder by using Fermat's little theorem

Fermat's little theorem states that if $p$ is a prime number and $\operatorname{gcd}(a,p)=1$, then $a^{p-1} -1$ s a multiple of $p$. Here's my attempt to find the remainder when $5^{99999}$ is divided by 53. $5^{99999} = 5^{52}\equiv 1\pmod{53} \implies 5^{99999}\equiv5^{99999\bmod52}=5^{3}.$ Is this the correct approach? How do I proceed from here?


How can I get a "divide by" symbol with \usepackage{physics}?

I usually use \div to generate a divide-by symbol, but when using the physics package, \div gives a nabla followed by a dot ("period") instead.


The stress tensor can be written as: $$\sigma_{ij}=-p \delta_{ij}+\sigma'_{ij}\label{1}\tag{1}$$ where $\sigma_{ij}'$ is called the extra stress tensor.   From what I understand pressure is pressure is force per unit area, so that the force acting on the surface $d\vec A$ is given by:  $$\vec F=-p d\vec A\label{2}\tag{2}$$ (This has the effect that the force on an infinitesimally thin surface due to a continuous pressure is zero). However, $\sigma_{ij}$ represent the force in the $i$ direction on a surface with normal in the $\hat e_j$ direction. So the force acting on a surface $d \vec A$ must be: $$F_i=\sigma_{ij}dA_j\label{3}\tag{3}$$ Equations (2) and (3) clearly do not agree (even if we look soley at the force in the $d\vec A$ direction they don't agree). So my question is what is the exact meaning of pressure in expression (1) and why do we not have: $$\sigma_{ii}=-p$$


Using itertools to generate combinations from 2 lists

I have two lists [1,2,3] and [4,5,6]. I'd like to generate a list of all combinations as follows using itertools  ResultingList = [[1,4],[1,5],[1,6],[2,4],[2,5],[2,6],[3,4],[3,5],[3,6]]  So far I've only investigated the itertools.combinations function which seems that it can only handle something like this:  list(itertools.combinations([1,2,3,4,5,6],2))   Which outputs an incorrect result. How can I generate ResultingList above?  Thanks


Remove plane while keeping shadows intact

I have watched BlenderGuru's camera tracking tutorial and tried to do the same with cycles but i want to remove the base plane which is used for shadows while keep the shadows intact. How can I do it?


How can I check if my laptop's 3.5mm audio port works with a microphone?

I am ordering a Logitech headset that has separate audio and mic connectors. My laptop only has one 3.5mm audio port.  How can I tell if my laptop audio port works with a microphone? I am in the process of purchasing an audio adapter to convert 2 inputs to 1 input for the laptop, but I need to check if the one on my laptop works with a mic.


In Breaking Bad S5 E14, Jack not only lets Walt go, but also leaves a barrel of money to him after killing Hank. I don't understand why he would do this. Jack says that, with 7 barrels of money, he doesn't need to cook meth any more, so there is no reason to keep Walt (the witness of the killing) alive, let alone to give him so much money. What's the rationale behind this? Or it's just mercy or respect?


Is there a way to turn a jar file into an executable (on windows) that can run independently?

I've tried GCJ but that was giving me problems and it's apparently not supported anymore, so what can I use? I don't want something that just wraps the jar file, but something that actually recompiles it into an independent exe. Is that possible?


Does speed enhancement software actually work?

Here on the Internet, we see many ads promoting software products which can enhance your Internet speed.  I wonder, how could this be?  Imagine that you are using a 1 Mbps Internet connection, and the highest speed speed you can get from it is nothing above the limit.  The Internet services are programmed to transmit certain-sized data packets at a certain rate.  So when we can't do anything physically (like manipulating the line and such), how come those software developers claim that their products could enhance the Internet speed?  Edit :   Thanks to all people.I have got my answer.


Everytime I Try To Quicksave My Fallout 4 Gamesave Corrupts

So basically yesterday I was exploring the wasteland and decided to quick save so when I went on earlier today I found out the save was corrupt. So I went to test if it was the quick save and I quick saved again then quit and went to see if it was still there and it was corrupt as well as my other save how can I prevent this happening?


Existence of minimal prime ideal contained in given prime ideal and containing a given subset

Let $R$ be a unital commutative ring, $P$ $\subseteq$ $R$ a prime ideal, $X\subseteq P$ a subset. Show there exists a minimal (inclusion minimal) prime ideal contained in $P$ which contains $X$.   My approach: Let $\langle X\rangle$ be the ideal generated by $X$. $P^c$ is a multiplicative set, as $P$ is prime. $\langle X\rangle\subseteq P\subseteq R$ and $P^c\cap\langle X\rangle=\emptyset $ so by Zorn's lemma there exist prime ideal $I_1$ satisfying $\langle X\rangle\subseteq I_1\subseteq P$. As $I_1$ is prime, it's complement is a multiplicative subset which does not intersect $\langle X\rangle$, hence I can find prime ideal $I_2$ satisfying $\langle X\rangle\subseteq I_2 \subseteq I_1$ and so on... I've got an infinite descending chain of prime ideals and I can't be sure that the process will stop.  Hints will be appreciated, thank you.   Edit: Can I conclude that every prime ideal contains a minimal prime ideal?


I came across a discussion of atomic Rydberg states, which appear to be defined as having their outer electron in a highly excited state. In the same text, it mentioned that these excited electrons could be modeled rather well by the Bohr model.  I don't see why this should be the case. The Bohr model treats the electron as a circularly orbiting body around the nucleus, whereas the electron cloud model seems to produce orbits which are highly anisotropic. In my understanding, the Bohr model also proposes electron orbits with fixed radii.  I don't see how this can be deduced from taking the limit of large $n$. How is Bohr's model related to electron cloud models via the correspondence principle?  On a further side note, I am curious why the different orbital energy splitting as a result of atomic effects (Fine structure, Hyperfine etc) which causes non-degenerate orbitals wrt $\ell$ is ignored for high $n$, where orbital energies are only dependent on the principal quantum number.  References:   Randall G. Hulet and Daniel Kleppner, Rydberg Atoms in "Circular" States, Phys. Rev. Lett. 51 (1983) 1430  R.J. Brecha, G. Raithel, C. Wagner, H. Walther,  Circular Rydberg states with very large n,


Blender image output is greyish and not white

I already searched the internet but could not find a solution to this. Maybe it is the same question as  but there was no answer.  I want to render a video with tracking, but the output "loses" color information and gets kind of greyish. I first thought that it is related to the renderer, but it happens in Cycles and Eevee. Therefore i made a sample image, added it to the image sequence editor and rendered it as 1 frame. Resulting in the same problem.  I placed the original image beside blenders output so that you can see the difference. The only idea I came up with is that something with the lighting is not correct but I can't find a setting for that.  I am using Blender 2.80 with the default settings. Only set the output resolution to match the input resolution.


Can a person with bad vision see a blurry picture clearly?

I was just thinking to myself how weird it must be to have bad vision. Then I thought, I wonder if you could print a picture that would appear clear to someone with bad vision. That seemed unlikely to me, so I changed the question. Could one use a lens to blur an image so the bad eyes see the image clearly. That's a novel idea... Oh crap that's what glasses are...  So that leaves me wondering all the more, since glasses clearly work, is it possible to print a picture, or more interestingly, maybe create a computer monitor which displays images so that a person with bad vision sees those things clearly?  Based on my understanding of optics and light this seems possible.  Could it also be that this hypothetical computer monitor would only display clear images to the person with bad vision if they were sitting a very specific distance from the screen?


$\tan(\alpha)=\alpha$ has not complex roots?

By the Strum theory it is easy to see that the equation $\tan(\alpha)=\alpha$ has not complex roots and it's real roots occur at zero and near $(2n+1)\pi/2,\ n\in Z^{+}$.  I am interesting to know that is there any other way to see that the above equation has not complex roots?


Is there a standard POSIX way of doing `tac`

Looks like at least IBM AIX and HP-UX don't have the tac command by default.  Is there a way to do this using just basic posix standard shell utilities available on all UNIX systems?  Furthermore, is SMCcoreu package on Solaris (which provides tac on SunOS, installed by default?


How did Rutherford's gold foil disprove the plum pudding model?

What stops one of the two following scenarios from happening, consistent with the plum pudding model?   The $\alpha$ particle, attracted by the electrons on the outer shell of the pudding, orbits nearly parabolically around the atom, causing the near-180 degree deflection angle seen. The $\alpha$ particle hits a plum pudding atom directly, and because the atom consists largely of positive charge, it is deflected by nearly 180 degrees.    Followup: did they know anything about the spacing of these plum-pudding atoms? Did they expect them to be lined up in a grid-like way; difficult to penetrate?  I am a physics undergraduate, I've only taken an intro QM class, it would be nice if that were kept in mind while answering.


Suppose there is a paper by author A and B. B alone later publishes another paper, citing the first paper. Does this count or not as a self-citation to author A?


No continuous injective map $f: \mathbb{S}^1 \to \mathbb{R}$

A friend asked me if there could be a continuous injective map   $$f: \mathbb{S}^1 \to \mathbb{R}.$$    My intuition tells me no. Endow $\mathbb{S}^1$ with a topology $\mathscr{T}$ and fix a pole $x \in \mathbb{S}^1$, consider $f(x)$ and take $B_\epsilon (f(x))$. Since $f$ is continuous,  $f^{-1}(B_\epsilon (f(x)))$ is open so take $N(x) \in \mathcal{N}(x)$ so that $N(x) \subset f^{-1}(B_\epsilon (f(x)))$.    Now I don't know enough topology to formalize my intuition. Namely, if $x_1$ is close on one "side" of $x$ and $x_2$ is close on the other side, then $f(x_1)$ is at most $\epsilon$ away from $f(x)$ and likewise with $f(x_2)$. So, either $f$ is constant or $f(x_2)$ approaches $f(x)$ as $x_2 \to x$, so that clearly there must be a point that is not injective.  So, how do I express this formally as a topological proof?


How can I prevent Latex from doing something "bad" to my computer?

More precisely, I want to run PDFLatex on a server and let it accept arbitrary .tex source files from users, returning the compiled pdf to them. However, obviously this introduces a security threat (most importantly in terms of write access to the server's file system).  I have read this very similar question where the answers hint at performing some changes to texmf.cnf:   But first of all, I am using Miktex (2.9), and it doesn't seem to use a texmf.cnf config file. Where would I perform the described changes in Miktex?  And second of all, I am running a Windows server. Is there anything special to consider in this case?  I am aware that this is a quite open-ended question, and I'm not looking for a definitive answer. I'd just like to avoid the most obvoious risks. So any "creative" ideas (from a hacker's point of view) will be appreciated!


Let $(X, \Sigma, \mu)$ be a measure space and $f$ be a measurable function.  For each $1\le p<+\infty$, setting $$\|f\|_{p}:=\left(\int\limits_{X}|f|^{p}\, \mathrm{d}\mu\right)^{\frac{1}{p}} \text{(not necessary finite)}.$$  The question is that $$\|f\|_{p}\to \|f\|_{p_{0}}\, \text{ as }\, p\to p_{0}?$$