How to get visa at UK border for non-EU citizen accompanying their EU spouse

My wife has been living and working in the UK since September 2016. I was completed my studies in Poland. I studied in the UK for 3 years but left the country to continue my studies in Poland.  I am a Pakistani national and EU family member. I've had a residence permit card from Poland for 3 years. My wife and I would like to drive from Poland to the UK and I would like to know how I can exercise my freedom of movement rights as I would have to convince the border authorities.  Could you help me with any law? I only saw Article 10 and it is the residence card issued under international EU law.  Can I get a visa at the border if my wife lives in the UK and exercises her treaty rights in the UK? Could you tell me which law applies to my situation as I realise an Article 10 residence card is issued following international EU law and my residence card is national.  I have all the necessary documents to show her employment, funds and our relation.  Please let me know which law reference I can give at the border.


How to Avoid to Display Unicode Characters as Question Mark?

In my Table Creation I using Following Attributes    After Insert a Record It's Display in Phpmyadmin    Fetch Record in Frontend. Unicode Character as display Question Marks. How to solve It?


Blackboard handwritten presentation slides

I found there is a similar question . Forgive me since I don't quite like the answer given there—the font, the format, etc.  What I want is something like the one given . I think it's of the same kind as Michael Hopkins's (one can search YouTube to see Michael Hopkins's slides).  I'm very grateful if anyone can tell how to make that kind of , or better, give a template for the slides as an answer. I even don't know if it is made by LaTeX; so if it is produced by some other thing, please tell me what it is, then I can learn how to use it.  (I also want to know how to make the beautiful pictures like the sphere, torus, higher genus surfaces etc. with various colours and submanifolds etc.)


Features and Patterns for Managing Ordered Lists

I have a common scenario in app design, where I need to store an ordered list, and make the ordering easily accessible and adjustable via an application UI.    The ordering operations are simple and operate on only one item at a time - move to top, move to bottom, move up one position, or down one position.  These positioning operations may be interspersed in with typical add / edit / delete list operations.  For discussion, this is a single-user app and db store.  Because the objects can be highly complex, I'd like to avoid caching the entire list client-side, and tracking newly created objects in memory until a big save operation occurs.    I am using MS-SQL almost exclusively on these projects, and I'm wondering if there are db features, SQL features, or design patterns I should be using to better support the management of ordered lists.    My current approach is to use a DECIMAL column to store the list positions, which become fractional during the item move process.  Then I sort the list and re-generate integer positions to normalize list.  Following this operation, it's ready for another item move.   In an example implementation, I create a column named Seq for position tracking.  Once decimal place is enough for the .5 storage.   [Seq] [decimal](10, 1) NOT NULL   When an item is re-positioned in the app UI,    I UPDATE that record with new Seq value I retrieve the full table, sorted ascending by Seq and regenerate all Seq values in the table from a 1-based integer series   The new Seq value is easily calculated-    Move to top = 0 Move to bottom = MAX(Seq) + 1 Move up = subtract 1.5 from the current Seq value Move down = add 1.5 to the current Seq value   As lists get longer, updates get slower, since I'm doing N UPDATE statements, where N is the number of rows in the table, so it seems only suitable for small tables.    Is there some kind of in-built capability for managing an ordered list in SQL or MS-SQL? Is there a means to update multiple rows in one call?    A far more performant approach would be to allow more decimal places, and then position at the median of the two adjacent items, with no re-sequencing on the list.     Move to top = Min(Seq) - 1 Move to bottom = MAX(Seq) + 1 Move up = median of the 2 previous item Seq values Move down = median of the 2 following item Seq values   This approach only requires one SELECT (containing 2 rows max) and one UPDATE.    However with enough re-positions I imagine the field would run out of decimal places. For example, if I start with items at positions 10 and 11, and keep moving items down the list from position 9, they'd be given sequences of 10.5, then 10.25, then 10.125.  After 10 moves, the positions get lengthy... 10.0009765625.    UPDATE #1 - IMPROVED RE-SEQUENCING OF THE LIST  Regarding re-sequencing, I'm more caught up on row_number(), OVER, and WITH capabilities in MS-SQL.  It's nice to find that there's a much smoother way to re-sequence the list in a single UPDATE operation;  with OrderedItems as  (     select         ItemID,         Seq,         row_number() over (order by Seq asc) NewSeq     from          Items ) update OrderedItems set Seq = NewSeq


"I am hurting" in the meaning of "I am hurt"? Why?

Once in a while I hear someone use the phrase I am hurting.  It appears to mean I am hurt, not I am hurting you.  For example, consider the text on this drawing:    When and why is it correct to say I'm hurting in the meaning of I'm hurt?  Is there any difference in meaning?


On the assumption that the universe is not expanding, but things are shrinking

Although the title gets the gist across, clearly, this is going to run into a lot of contradictions if I don't explain the idea as it resides in my head. Bear with me in the following analogy of a child playing with modelling clay. Suppose they are very creative and very proud. I.e; they are constantly pursuing more novelty in their creation, and do not want to destroy what they have already made. Suppose they start by making two houses using the entirety of their clay, yet they still want to add more complicated features while preserving what they have already. The only way to do so is to proportionally scale down their models, so they have more clay to work with.  In this analogy, the clay is the total amount of fundamental building-block to work with, creativity is entropy, and the proportional scaling-down is the facet required to satisfy higher entropy. As a result the elements of the system become relatively smaller, while distances become relatively larger. To the perspective of one of the models, it does not experience itself getting smaller, but rather experiences the universe expanding and getting more complicated. The analogy isn't perfect, and my idea of assuming entropy as equivalent to intricacy may be conceptually wrong, but I hope you get the main idea. Analogously, galaxies are not getting farther apart from an universally-external perspective. Rather, they are at a more relatively static distance, individually shrinking to satisfy the need of delegating properties of itself to increase intricacy. This model of the universe is going to run into contradictions if we don't specify what and where exactly is being scaled down (e.g; particles, forces, physical constants, etc).  was asked in 2012. The main answer brushed the thought experiment off as an example of "Occam's razer". However, I don't think it's safe to say that a "component-shrinking universe" is a more complicated theory; as it seems to only differ interpretationally.  Could this model be a viable alternative to expansion? Is it mathematically equivalent, just interpretationally distinct?  Furthermore, would this explain redshift not as wavelengths being stretched over through expanding space, but residual unaffected 'bigger' wavelengths from an older universe whence things were less shrunk?


Prove $\lim_{x\to a}\sqrt{x}=\sqrt{a}$ by definition Stewart solution error

Let $a>0$. I want to show $$\lim_{x\to a}\sqrt{x}=\sqrt{a}$$ Purpose of this question was to investigate Stewart's online solution, which turns out to be incorrect.  I don't understand the solution on their website. Are they saying that $1/x  < x $? Seems that way to me by the way they choose delta. My solution : $$|x-a|< a   \implies   \frac{1}{\sqrt{x} + \sqrt{a}} < \frac{1}{\sqrt{a}}$$ and choose delta accordingly. Is that correct? Thanks for the help.


I recently spilled some brake oil on my brake pads and now they barely work, and they squeak (which I believe is normal for contaminated pads.)


A mirror in the sky to look at past Earth

Earth reflects light from Sun into Space; are there any "mirror like" objects which reflect back to Earth this light? Has anyone been able to use this method to recover some information on how was the Earth in the past (how it looked, what was it temperature, etc)?


How can I calculate the value of the infinite sum $$\sum_{x=1}^\infty x^{-x}$$ By comparison to a geometric series, I know that it converges, but I don't know how to calculate an exact value. So far I have tried the following:   I have tried to turn it into a telescoping sum, but have had no luck I tried adding a variable and differentiating it to create an easier sum   Any hints?


limit when $\lim \limits _{n \to \infty} \sum _{i=0} ^{n} \frac{1}{2^i}$

limit when $$\lim \limits _{n \to \infty} \sum _{i=0} ^{n} \frac{1}{2^i}$$ I intuitively know that the limit is 2 and that a series is convergent, but I do not know how to arrive at the result


How to solve the exercise: "Find out if the groups $(\mathbb{Z}_2\times\mathbb{Z}_2,+)$ and $(\mathbb{Z}_4,+)$ can or not form an isomorphism"?

I need to find out if the groups $(\mathbb{Z}_2\times\mathbb{Z}_2,+)$ and $(\mathbb{Z}_4,+)$ can or not form an isomorphism. I know that you need to find a bijective function that is also a morphism, but I do not have any idea how to show if there is or not any function. Can you help me?


How to convert php mail() function to smtp

I make a simple contact form for WordPress using ajax and php mail() but my maximum mail is going to spam folder. what is wrong with my code? or any other solution ? like SMTP.  <?php $errorMSG = ""; // NAME if (empty($_POST["name"])) {     $errorMSG = "Name is required "; } else {     $name = $_POST["name"]; }  // EMAIL if (empty($_POST["email"])) {     $errorMSG .= "Email is required "; } else {     $email = $_POST["email"]; }  // Subject if (empty($_POST["subject"])) {     $errorMSG .= "Subject is required "; } else {     $subject = $_POST["subject"]; }  // MESSAGE if (empty($_POST["message"])) {     $errorMSG .= "Message is required "; } else {     $message = $_POST["message"]; }  //receiver email address $EmailTo = "info@mydomain.com";  $Subject = $subject; $form  =  $name; // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $name; $Body .= "\n"; $Body .= "Email: "; $Body .= $email; $Body .= "\n"; $Body .= "Message: "; $Body .= $message; $Body .= "\n";  // send email $headers  = "From: " .($email) . "\r\n"; $headers .= "Reply-To: ".($email) . "\r\n"; $headers .= "Return-Path: ".($email) . "\r\n";; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-Mailer: PHP". phpversion() ."\r\n"; // send email $success = mail($EmailTo, $Subject, $Body, $headers);   // redirect to success page if ($success && $errorMSG == ""){    echo "success"; }else{     if($errorMSG == ""){         echo "Something went wrong :(";     } else {         echo $errorMSG;     } }


Breeding a Pachirisu with the volt absorb ability

Can I breed volt absorb from one female pokemon in the same egg group as Pachirisu directly to a male Pachirisu lacking the ability? And if so, where can I find pokemon with the hidden ability in pokemon oras/xy?


When someone is very hungry we say he is starving. How to describe someone who is very thirsty?


Want to perform an if statement at a certain time

Im attempting to perform an if statement at a certain time but can't get it to execute when it is that time. I am running the program when it reaches that time and nothing happens.  import os import datetime  now = datetime.datetime.now()  if now.hour == 20 and now.minute == 46:     print ("REBOOTING")     os.system("shutdown -t 0 -r -f")


Circumcenter of 3D triangle without causing integer overflow

Programming side: Trying to implement a calculation for 3D triangle calculation.  Mathematical side: I need a formula for this that does not use cross product. I have found a formula that uses the vectors of the sides and cross products, but the issue is that My triangles are so large, that i get 64bit integer overflow. Cross product gives a vector so long that its square magnitude is larger than 64 bit integer.  For tetrahedron i solved the issue by switching to the Matrix determinant formula, there the values don't get big enough. But for triangle in 3D i didn't find any matrix solution. Is there a way to calculate circumcenter of a 3D triangle with out using cross product?  The solution should use only integers. or rational numbers.


The top bar seems to have disappeared on stackexchange.com ...    The plain text links are still there and the markup looks correct, the CSS just seems to be missing. The nav items still work too but are similarly not styled. This is my inbox:    I've reproduced on a bunch of browsers on a few different devices.  I'd guess it's something to do with  being rolled out.


Google Apps email messages being flanged as "failed fraud detection" on outlook

mx entries for gmail and spf code for gmail is in place on cpanel however every time I try and send an email from my google apps account it gets picked up as fraud on outlook, and spf=softfail (if this means anything) + X-AUTH-Result: FAIL X-SID-Result: FAIL. not sure what to do, can anyone help me explain why its doing so or how to fix it?  Would be much appreciated :)  Email message source  x-store-info:sbevkl2QZR7OXo7WID5ZcdV2tiiWGqTng3IUzOU9+MR74e+pFoKt57tG8IFvufpyUgk5e+E3tMfBNtQSdDXnpfPgCQ+dHO2XB5j3sOmosWXyjc7RwoXTbFuTpyWXoVIqhDMoFjarHWw= Authentication-Results: hotmail.com; spf=softfail (sender IP is 209.85.212.177) smtp.mailfrom=vitor.zanatta@metafourmarketing.com; dkim=none header.d=metafourmarketing.com; x-hmca=fail header.id=vitor.zanatta@metafourmarketing.com X-SID-PRA: vitor.zanatta@metafourmarketing.com X-AUTH-Result: FAIL X-SID-Result: FAIL X-Message-Status: n:n X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0w X-Message-Info: gamVN+8Ez8V+RHg+F+brAcUtnc2tK8YOQqQVLIrAXQR9K2G5wgw4nT1VIYn/KHRnD+IYwuec84K6tcy7Is6Ss2MgJ4PlySgAUqWozo5l+fYqhPiGji5blgvi8kmjBA78Zp4kCzYi+g+7SSQWcN587JOdcyS/LuYczYUNm2rYukbNgPKRyvNlprEiPAR5jmb4Iki9p0J28q2e6qPg79+bjAdXrQi4LeF+JTmMNhKqcLAnqV9qHjFPWw== Received: from mail-wi0-f177.google.com ([209.85.212.177]) by BAY004-MC6F35.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23143);  Tue, 15 Sep 2015 10:49:10 -0700 Received: by mail-wi0-f177.google.com with SMTP id lk2so39741062wic.0     for <vitorrzanatta@hotmail.co.uk>; Tue, 15 Sep 2015 10:49:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;     d=1e100.net; s=20130820;     h=x-gm-message-state:mime-version:date:message-id:subject:from:to      :content-type;     bh=EQXn6mG+rbpwXFk2fVwPSpJMO8OlKhDnaXA0Ylgza+Q=;     b=Sz8d47fqkur8v1T0xrfeN/6b1NL7myZjoufVtVUqyP/N72c1jpGAiOZSYNr/Nj0DOP      SfbEX/iXVxm5TaPvmGS/lQ1aEx6QV+NaU06DcQbEgwmUT4oB4dfyqzbCMZaAs0P0GflK      yDwvd4eDiNNZd6xlpeVRWsbhR993LnZ9kLcOlzVjcIzd8Xc14Mn7Io/MHnSw/sPq6iio      ixLwcJkYQXAh5v8Ok5H0h68qbEr0AV5JdRHiz4DoVZOkUSgaR/iLZU/K/RUuHuP9taMv      3fBDnr5eqjTZpHiNEvWXfaCd0XLwxJWFid5qIaf6usIxB3r5Mtw42tlId2LSemioKxPE      dWrA== X-Gm-Message-State: ALoCoQla+u02xakQLzkYeJIgnbfS3HyNEdWA0qKoUbQ+KMx5NfRkPpvUAx5p+e6t5Sdq1cNGjf4m MIME-Version: 1.0 X-Received: by 10.180.10.101 with SMTP id h5mr9254303wib.22.1442339350540; Tue, 15 Sep 2015 10:49:10 -0700 (PDT) Received: by 10.28.178.80 with HTTP; Tue, 15 Sep 2015 10:49:10 -0700 (PDT) Date: Tue, 15 Sep 2015 18:49:10 +0100 Message-ID: <CACm8JCqPEK0GLF8MhR5ZE6CG5Vh3=mB=D7ahGDxyGBN=ugxugg@mail.gmail.com> Subject: test From: Vitor Zanatta <vitor.zanatta@metafourmarketing.com> To: vitorrzanatta@hotmail.co.uk Content-Type: multipart/alternative; boundary=001a11c26816a28e76051fcccc98 Return-Path: vitor.zanatta@metafourmarketing.com X-OriginalArrivalTime: 15 Sep 2015 17:49:10.0826 (UTC) FILETIME=[D3C278A0:01D0EFDE]


Some very common parts have standard acronyms on schematics: resistors are usually named R#, capacitors C#, and integrated circuits U#.   Is there a typical standard for these names? If I want my BOM to look "normal" at the end of my design (ie: without any symbols that are weird + unfamiliar to other people looking at it), what should I do?


Can I submit the results of a poster to another conference as a full paper?

If I presented a poster at a conference that contained the results of some research, can I then write a paper using those same results and submit it to another conference as a full paper?


Why professional photographers use DSLR?

I just wonder that point and shoot cameras are great, but why professional photographers use DSLR.


Using HashMap in Java to make a morse code

so i am learning how to use the HashMap object. My question is, if I use the scanner object to ask a user for a String and I save that to a String variable. How can I take that String and "compare" it to my HashMap.   For example if a user inputs "abc".   My HashMap has ("a","abra") ("b","blastoise") ("c","charizard")  I want to print to System.out.println the result -- abra blastoise charizard instead of abc.  I will share my code that i have now but i am stuck with the next step and i hope that i am being clear with my question.       public static void main(String[] args) {      Scanner sc = new Scanner(System.in);     String keyboard = "";     HashMap hm = new HashMap();      hm.put("A","Abra");     hm.put("B", "Blastoise");     hm.put("C", "Charizard");     hm.put("D", "Dewgong");      keyboard = sc.nextLine();   Thank you in advanced :)


So, I am running a game of D&D 3.5 and I have a player character in the group whose backstory includes his mother having gone insane at some point in the past.  As she is a marked heir of her house, money shouldn't be a thing for having her madness removed magically (Eberron Dragonmarked house, Lyrander, essentially a mercantile family with wealth to rival nations) yet the player wishes for her madness to be beyond the ken of most readily available spells.  I was wondering if the Lords of Madness book has any rules on this.  I was thinking of a few things here.   her madness is a coping mechanism, something in her past was so horrible that she does not want to confront it. her madness is some sort of unknown curse or ailment. it is the effect of a Daelkyr's direct influence on her (this is my current train of thought).   I don't want it to be as simple as get to level x, cast spell y, done.  I was thinking of perhaps linking her to the Daelkyr in some way and maybe having him battle the ancient evil for the fate of his mother.  Something like that.  What are your thoughts, advice?


What is the maximum value of $|f(z)|$ on the unit disc $D=\{z \in \mathbb C:|z|\leq 1\}$?

I am thinking about the following problem:     Let $f(z)=2z^2-1.$Then what is  the maximum value of $|f(z)|$ on the unit disc $D=\{z \in \mathbb C:|z|\leq 1\}$ ?   I guess i have to use the maximum modulus principle.But  i also notice that $|f(z)|=|2z^2-1|\leq 2|z|^2+1\leq 2+1=3.$  So, is $3$  the maximum value of $|f(z)|?$ Can someone point me in the right direction? Thanks in advance for your time.


How to integrate $\int_0^1 \frac{x^7-1}{\log(x)}dx$?

I'm stuck trying to evaluate the following integral:  $$ \int_0^1 \frac{x^7-1}{\log(x)}dx $$  This is what I have tried. Substituting $u = \log(x)$ gives $x = e^u$ and $dx = x\cdot du = e^u du$, and thus  $$ \int_{-\infty}^0 \frac{e^{7u} - 1}{u}e^udu $$  which simplifies to   $$ \int_{-\infty}^0 \frac{e^{8u}}{u} - \frac{e^u}{u}du. $$  It would suffice to know the antiderivative of $e^x / x$, but unfortunately, it doesn't have a closed form. How can I proceed from here?


Where is the recovery installed on Android phones?

As far as I know, every Android phone has a stock recovery. Where is this recovery usually stored? On a separate partition in internal storage(usually an eMMC memory chip)?


When the first Death Star was destroyed, the Emperor punished Darth Vader by removing his arm (according to the novel "Heir to the Empire"). This was originally said to explain Vader's mechanical arm, but it was later revealed that all of Vader's limbs were mechanical after a near-fatal duel with Kenobi (technical retcon is he removed a prosthetic and Vader got a new one). But how did he do it?   When that info was first revealed, the Emperor wasn't known to wield a lightsaber. Of course now we know he did, but back then we assumed he didn't have one. With that retcon in mind, still by 0 ABY, Palpatine didn't have a lightsaber "anymore" and wouldn't awkwardly get up, activate a lightsaber and chop off Vader's arm. It's not his style. I imagine him forming an "energy blade" out of pure Force energy or something to cut off the limb. Does my theory have any credence with canon, or is there another amputation method?


How does one backup / restore Group Policies on Windows Server 2008 R2?

We're inheriting a Windows Server 2008 R2 server on a network full of Windows 7 machines.  There are already Group Polices in place, and they work.    How can we back them up and restore them in case we make changes and something goes wrong?  Can they be stored in git or some version control system that can store different versions and so we can record what we changed?


I was bored today so i thought i would go back to learning to code in Java. I thought of making a easy math quiz program where you have two random numbers that you need to multiply with each other.  import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Random;  public class Main {   public static void main(String args[]) throws IOException{     Random random = new Random();     int n1 = random.nextInt(30) + 5;     int n2 = random.nextInt(40) + 5;     int realanswer = n1 * n2;     String realanswer2 = Integer.toString(realanswer);     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));     System.out.println("Answer these math questions:");     System.out.println("");     System.out.println(Integer.toString(n1) + " * " + Integer.toString(n2));     String answer = br.readLine();     if(answer == realanswer2){         System.out.println("CORRECT");     }else{         System.out.println("WRONG");         System.out.println("Answer is " + realanswer2);     }  }  }   My problem is that even if i write the right answer it says its wrong. I think the problem lies in the transition from int to String.  Any help appreciated.


Proving that the function $f(x,y)=\frac{x^2y}{x^2 + y^2}$ with $f(0,0)=0$ is continuous at $(0,0)$.

How would you prove or disprove that the function given by $$f(x,y) = \begin{cases} \dfrac{x^2y}{x^2 + y^2} & (x,y) \neq (0,0) \\ 0 & (x,y) = (0,0) \end{cases}$$ is continuous at $(0,0$)?


If $\frac{\sin^4 x}{a}+\frac{\cos^4 x}{b}=\frac{1}{a+b}$, then show that $\frac{\sin^6 x}{a^2}+\frac{\cos^6 x}{b^2}=\frac{1}{(a+b)^2}$     My work: $(\frac{\sin^4 x}{a}+\frac{\cos^4 x}{b})=\frac{1}{a+b}$ By squaring both sides, we get, $\frac{\sin^8 x}{a^2}+\frac{\cos^8 x}{b^2}+2\frac{\sin^4 x \cos^4 x}{ab}=\frac{1}{(a+b)^2}$ $\frac{\sin^6 x}{a^2}+\frac{\cos^6 x}{b^2}-2\frac{\sin^4 x \cos^4 x}{ab}-\frac{\sin^6 x \cos^2 x}{a^2}-\frac{\sin^2 x \cos^6 x}{b^2}=\frac{1}{(a+b)^2}$ So, now, we have to prove that, $-2\frac{\sin^4 x \cos^4 x}{ab}-\frac{\sin^6 x \cos^2 x}{a^2}-\frac{\sin^2 x \cos^6 x}{b^2}=0$ I cannot do this. Please help!


Given an SVG drawing of a building, and 2 GPS-reference points, as well as where north is in the drawing, how can I import a building into QGIS so the 2 GPS-reference-points are at the same coordinates  ?


I want to insert an image immediately below the semicolon in the following:   The sequent calculus proof of this uses contraction and is therefore not derivable in linear logic (unless special modalities are used):   \documentclass[12pt,a4paper]{article}     \begin{document}    The sequent calculus proof of this uses contraction and is therefore not derivable in linear logic (unless special modalities are used): \begin{figure}[t] \includegraphics[width=10cm,scale=18]{prooftreeseqmg2.pdf} \centering \end{figure}  \end{document}   At the moment the image does not appear directly below my text. How can I change this?


Replacing a material found on many objects to another material at once for all of those objects. Possible?


How to interpret odds ratios as probability or chance?

Im working on a panel data set and have difficulties to understand the odds ratio of a fixed effect logit model. I prepared an cross sectional exapmle. I suppose the interpretation is identical:   data(cars)  attach(cars)   fit<-glm(Sound ~ Mileage+Price, family=binomial(link="logit"))   summary(fit)     Coefficients:                 Estimate Std. Error z value Pr(>|z|)       (Intercept)  1.581e+00  2.811e-01   5.623 1.88e-08 ***   Mileage     -1.189e-05  9.428e-06  -1.261 0.207205       Price       -2.734e-05  7.564e-06  -3.614 0.000301 ***     require(MASS)    exp(cbind(coef(fit), confint(fit))) ## for odds ratios                               2.5 %    97.5 %     (Intercept) 4.8578575 2.8174158 8.4927615     Mileage     0.9999881 0.9999695 1.0000065     Price       0.9999727 0.9999577 0.9999874   How can I interpret odds ratios as an increase/decrease in chance or probability?


I understand that everything with mass does have a gravitational pull no matter how small the object, which means even a grain of sand has a gravitational pull. But light is something that exists, which means it must be made out of something, which is Photons. And doesn't that mean that the photons must have at least a small area which contact can be made? And if that's true doesn't that mean it has some sort of mass? Do we just say light has no mass because it's so little that it's completely useless to recognize?


Quoting the page of one my reference document in the title of a figure

I have inserted a figure in my LaTeX document, and this figure comes from a document referenced in my bibliography. The problem is that this latter document has many pages, so I would like to quote in the title of my figure in which page of the document we can find it. I am using \bibliographystyle {acm}. Would that be possible to do?  This is what I have written in LaTex:  \begin{figure}[htb]  \capstart   \centering \includegraphics[width=1\textwidth]{Pictures/blablabla.pdf} \caption{On, based on \cite{as}} \label{fig:On} \end{figure}   And this is what appears in my PDF Document below my figure:     "Figure 2.1: On, based on [4]"   I would like to have this (or something similar):     "Figure 2.1: On, based on [4 p.38]"   Thanks in advance!


Task Manager shows programs that are running - how can I see the ones that have been ended?

How do I find out what programs have been running on my computer even if they have been stopped to the extent that  can't show a thing?  I don't use my computer alone and am sometimes suspicious.


I don't know if this is the correct forum to post this on but I'll just do it. I want to make IOS apps on windows. I know that I could install a VM but my processor is not compatible with OSX. This is a pretty simple question that may have a complex answer. Thanks in advance.


RSA: Fast factorization of N if d and e are known

I stumbled across this paragraph in a paper:     Hence, user b cannot decrypt C   directly. But using e and d , user b   can quickly factor N.   How is  it possible to speedup the prime factorization when knowing e (public key) and d (private key)?  For clarification:  RSA provides us with these equations:  $n = pq$   $\phi = (p-1)(q-1)$   $gcd(e, \phi) = 1$   $de = 1\pmod{\phi}$   In order to determine $p$ and $q$ an attacker has to factor n which is not feasible. However the paper stated that it is easy to reconstruct $p$ and $q$ when a person knows both (his) private and public keys.


For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine...  <%@OutputCache Duration="600" VaryByParam="*" %>   However, if someone posts a comment, I want to clear the cache so that the page is refreshed and the comment can be seen.  How do I do this in ASP.Net C#?


Is there a way to do an "upside down" \widehat?

I've come across this in a book I'm looking through, but I can't find the code for it. I want it to look exactly like the \widehat and go above text like \widehat does...I just want it to be (vertically) flipped!


The command: taskkill.exe /F /IM test.exe /T  Causes: ERROR: The process "test.exe" not found.  taskkill /? seems to offer no option to make it go quiet. In my notes, I have written down that this is supposed to make any command shut up: >NUL However, taskkill.exe /F /IM test.exe /T >NUL outputs the message still. How to make it not output any message? (It's not known beforehand if there are any test.exes running.)


So I'm using a template I've found on latextemplates.com and I'm trying to print the bibliography but nothing seems to be working. Also no error warning appears, it just simply skips it.  \usepackage[backend=biber,style=authoryear,natbib=true]{biblatex}  \addbibresource{library.bib}  \begin{document}   some text bla bla bla \printbibliography[heading=bibintoc] \end{document}   I've changed the backend to every one I've found online: bibtex, biber and bibtex8.  And it seems that every time I compile it creates a *.bib file automatically.   What can I do?


foreach in Java: is having the statement which calculates the iterable object worse than having a variable in the loop?

Working at object mapping with Java and JDBC for SQL Server I wondered myself if I would create a variable to save the value that returns a select sentence or if I could put the sentence in the foreach loop.  I have post the complete function but the question is only about the foreach loop. Both options works good for me, but I wanted to know if there is any difference about efficiency or if exists any case where the first one could fail.  public static List<User> UserList() {     BD miBD = new BD(BD_SERVER,BD_NAME);     ArrayList<User> list = new ArrayList<User>();       for(Object[] tuple: miBD.Select("SELECT name,password FROM tUser;"))     {         String id = (String)tuple[0];         String p = (String)tuple[1];         User u = new User(id,p);         list.add(u);     }      return list; }   or      List<Object[]> tupleList = miBD.Select("SELECT name,password FROM tUser;")      for(Object[] tuple: tupleList)     {         String id = (String)tuple[0];         String p = (String)tuple[1];         User u = new User(id,p);         list.add(u);     }     return lista; }   Which is more advisable to use?


Is there a trick for removing the background from behind a cage in Photoshop?

I need to remove the background from this image. Is there a trick to removing the background from between/behind the cage part without having to go into each section? The floor, wall and cord will be removed, all else needs to stay. Using the latest version of Photoshop.     Thanks.


prove that the sequence given by recurrence converges

Given a: $a_0>0$, and $a_{n+1}=\sin(a_n)$.  I need to prove that the sequence $a_{n=0}^\infty$ converges, then calculate the limit. I have proved that is crescent, then I got stuck.


"XYZ caterers is.." or "XYZ caterers are.."?

In the following statement, which one is grammatically correct?     XYZ caterers is on to something big   OR     XYZ caterers are on to something big   I thought that it should be 'are' as caterers is plural. But it has been suggested that I might be wrong. What do you think?


I had on my rack among other tiles, a black 9, 1 x blue 10, and a black 12.  On the table was a set of 3 x 10s including a Joker(no blue 10), and other sets of tiles including an available black 11.  Can I replace the joker with my blue 10 and then set out :  my black 9, the joker(representing a black 10), a black 11 from the table, and my black 12?


Checking for some small natural numbers $n$, I found out that $2^n-7$ is a perfect square for $n=3,4,5,7,15$. How can we find all of the numbers $n$ for which $2^n-7$ is a perfect square? What I tried: For $n=1,2$ there is no $x$ to satisfy the equality. For $n=3$ we have an answer $x=1$ so suppose $n>3$. If $n>3$ then $8|2^n$ so $2^n\equiv0\bmod8$. We also know that for every $x$, $x^2\equiv0,1,4\bmod 8$. so $x^2+7\equiv 7,0,3\bmod8$ and we had $x^2+7=2^n$ so $x^2+7\equiv0\bmod8$ and this only holds when $x\equiv 3,5\bmod8$. So the answers for $n>3$ should all be on the form of: $x=8m\pm3$. We can also say: $x^2+7=2^n$ so $x^2-1=2^n-8=8(2^{n-3}-1)$ so $(x-1)(x+1)=8(2^{n-3}-1)$. I don't know where to go from here. I would appreciate any help. Edit: Apparently this equation is called the Ramanujan–Nagell equation.  I found  pdf in another question but I can't understand it. I would appreciate a good elementary proof (if there is any).


Can a virus or malware be bundled with a non executable download?  For example, when choosing 'save link as' on an .mp3 or a .pdf file, is it possible for the download to include more than just the file?  Or are virus/malware only distributable through .exe files...


Regular expression for URL validation in javascript

I am having form which takes url as input..I want to validate it using javascript and regular expression..  it should accept   www.google.com google.com http://google.com   Please suggest me a regular expression and total code if possible for validation of url... i tried lotta url given on many forums..but couldn't get appropriate answer.. thanks in advance


Is AES practically unbreakable? Is brute force attack practical on AES?


I am typesetting something that has a lot of Java code listings. Because the Java code has a lot of annotations, and that they are important to the reader, I'd like to have them highlighted, like other keywords such as class, public, etc.  I want the output to be in black and white.  I tried using minted, but the bw output does not highlight the annotations.  How can I arm-twist listings to highlight the annotations?  P.S. Here is the lstset that I am using:  \lstset{   basicstyle=\footnotesize\tt,        % the size of the fonts that are used for the code   breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace   breaklines=true,                 % sets automatic line breaking   captionpos=b,                    % sets the caption-position to bottom   extendedchars=true,              % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8   frame=single,                    % adds a frame around the code   language=Java,                 % the language of the code   keywordstyle=\bf,   showspaces=false,                % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'   showstringspaces=false,          % underline spaces within strings only   showtabs=false,                  % show tabs within strings adding particular underscores   tabsize=2                       % sets default tabsize to 2 spaces }


Why is $e$ the number that it is?  Most of the irrational number that we learn about in school have something to do with geometry, like $\pi$ is the ratio of a circle's diameter to its circumference.  Those numbers can also be derived using maths ($\pi = \lim_{n\to\infty}4\sum_{k = 1}^{n}\frac{(-1)^{k+1}}{2k - 1}$).  On the other hand, $e$ is derived only from math, and finds no other immediate geometric basis.  Why then, is $e$ the number that it is ($2.7182\ldots$) and not some other number?  EDIT: My question is more along the lines of why $e$ is $2.7182\ldots$ On an alien world where there is a different system of numbers, could there be a similar constant that has all the properties of $e$, but is not $2.7182\ldots$?


WIFI not working ubuntu 16.04 in hp 15bs146tu

I owe a HP 15bs-146tu i5 8th gen Laptop and have installed ubuntu on it.!  the network adapter is "Realtek RT8723DE 802.11B/G/N PCLe Adapter".There is no option for wifi connectivity in ubuntu.PLease help ASAP.


Use of hyphens when writing repeated compound words that have common parts

In my native language, Norwegian, one uses hyphens when stating two or more copulated compound words that has common parts (words). In a thesis I'm working on, should I write     test specimens, test setups and test results   or could I write (like in Norwegian)     test specimens, -setups and -results?


Notifications return after hitting back button in browser

This may seem really trivial, but somehow it really annoys me.  I'm somewhat OCD, so I can't bear to have any unread notifications. Sometimes, when I'm reading a post, and I see a notification, I'll click it, see what it is, then quickly return. However, the notification icon is still there, and I have to refresh to get rid of it.  Also, if I write a comment, then click a link on the page, then click the back button, I have to refresh to see the comment I made.  Yup. I know, first world problem... but it really bothers me. Besides, it's all in the details.  Is this due to the way that the browser caches pages, or a bug in stackexchange?


Dropbox sometimes chmod's random updated files to 666

I have the website content on the centos 5 server saved in Dropbox. In that way i can easily access them without having to use ftp. However sometimes it happens that Dropbox chmod's random updated files to 666. This causes the error: "this file is group writeable" Why does it do that and how should i prevent it? Should i maybe create a cron script that looks for chmod 666 files and automatically corrects them? Still that would be a lousy fix though....


$p:(E,e_0) \to (B,b_0)$ be a covering map ; is the induced homomorphism between the first singular homology groups injective?

Let $p:(E,e_0) \to (B,b_0)$ be a covering map ; then I know that the induced homomorphism  between first fundamental groups $\pi_1(p) :\pi_1(E,e_0) \to \pi_1(B,b_0)$ is a monomorphism . My question is , is the induced homomorphism between first singular homology groups $H_1(f) : H_1(E) \to H_1(B)$ a monomorphism i.e. injective ?


So I was trying to mount a drive on boot. I was editing /etc/fstab and then I rebooted to see if my drive would mount on boot. Now I can't do anything. The prompt I see  Give root password for maintenance (or press Control-D to continue):   When I press Control-D this prints: sulogin: cannot read /dev/tty1: Operation not permitted  I've tried all kinds of root passwords but none of them work. I tried to tap shift while it boots and nothing happens.  EDIT: This question is not a duplicate because when I press Control-D at the prompt I get an error message   I'm on a Pine64. Is there any way to salvage the device or save the files?  Bootable USB's do not work


I was using a template for a book in overleaf:   Every time I try to use \[ \] the equation is not centered. It is added onto a new line, but not centered. In order to center it I have to use $$ $$, I would prefer not to as I have used the former for all my previous papers and I keep on having to rewrite it. I can't seem to find what part of the header edited the typical behavior of \[ \] or if it's something with regards to the documentclass (I have only used article up to now, it is my first time using the book class). Any help is greatly appreciated.


I have written the following Java code to get a the first day of a week of year.      Calendar cal = Calendar.getInstance(Locale.GERMAN);     cal.clear();     cal.set(Calendar.DAY_OF_WEEK_IN_MONTH, Calendar.MONDAY);     cal.set(Calendar.YEAR, 2016);     cal.set(Calendar.WEEK_OF_YEAR, weekNumber);      DateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");      System.out.println( sdf.format(cal.getTime()) );   By using the input week of year 53 it should result into an error acutally because this week of year does not exist in 2016. Instead it shows me the next possible first date from next year.  Is there a neat way to correct my code or do I have to check the input week of year by myself?  Thanks for your help.


How can I make a backup of a whole directory of a web site?

There is a guide here  that I would like to back up. All the links that go to * I also need to back up, and on a few of those pages there is pagination that links to still more pages under the same directory. How can I backup this page and all of it's sub pages?


Using a web service is often an excellent architectural approach. And, with the advent of WCF in .Net, it's getting even better.  But, in my experience, some people seem to think that web services should always be used in the data access layer for calls to the database. I don't think that web services are the universal solution.  I am thinking of smaller intranet applications with a few dozen users. The web app and its web service are deployed to one web server, not a web farm. There isn't going to be another web app in the future that can use this particular web service. It seems to me that the cost of calling the web service unnecessarily increases the burden on the web server. There is a performance hit to inter-process calls. Maintaining and debugging the code for the web app and the web service is more complicated. So is deployment. I just don't see the advantages of using a web service here.  One could test this by creating two versions of the web app, with and without the web service, and do stress testing, but I haven't done it.  Do you have an opinion on using web services for small-scale web app's? Any other occasions when web services are not a good architectural choice?


Move all files of type to a new folder in windows 7

Can anyone help on this.   I have mp3 files all over the shop and therefore a lot of duplicates.   What i need is a command line function that will move all files of type mp3 to a new folder. I'm not worried if the files structure on the new folder is retained or not.   I could easily copy using copy c:*.mp3 /s c:\mp3 for example, but due to the amount of files i have i would run out of disk space copying them, hence the need to move.  Thanks


The scissor paradox: can we pass the information faster than light?

Before I start, I want to say that this is not a duplicate of  "Is it possible for information to be transmitted faster than light by using a rigid pole?", Since point A is not a real object, it is possible for A to exceed the speed of light. Notice that I have already taken the bending effect into account and decided that if the widths of the bars are small enough, then it's safe to treat the scissor as if it weren't bending. In other words, when they are thin, then the motion will obey the equation in a small region around point O. Please read to the end and have a look on my analysis in the last part before you explain.  Suppose we have a "scissor", which is composed by two bars with a same width of length "l". Bring them closer to each other, during this process, we have the equation(#):$$v=-\frac l4\frac{cos\frac{\theta}2}{sin^2\frac{\theta}2}\omega$$, where v is the velocity of A, \theta is the angle between BC and BA as shown in the picture.It's also an arbitrary function of time t, or $\theta=\theta(t)$. $\omega$ is the angular velocity of $\theta$, thus $\omega=\frac d{dt}\theta(t)$.Here is the derivation: 1. Draw a line vertical to L from A, intersecting with L at C.    Since $sin\theta=\frac{AC}{AB}$,  $$AB=\frac{AC}{sin{\theta}}$$. Since $cos\frac{\theta}2=\frac{AO}{AB}$, $$AO=AB*cos\frac{{{\theta}}}2$$ from 2 and 3 we have: $$AO=\frac{cos\frac{\theta}2}{sin{\theta}}*AC$$ Since $AC=l$, the equation in 4 becomes: $$AO=\frac{cos\frac{\theta}2}{sin\theta}*l$$or$$AO=\frac l{2sin\frac {\theta}2}$$ Differentiate each side with respect to t, and denote $\frac d{dt}AO$ as "v", getting the equation(#): $$v=-\frac l4\frac{cos\frac{\theta}2}{sin^2\frac{\theta}2}\omega$$ Again, we just look at a small area around point O where our equation is obeyed. Now, at any time $t_0$, $\theta$ and $\omega$ are independent of each other, thus $\omega$ is a free variable. At t= 0, let's set the value of $\omega$ really large and constant, so that the instantaneous speed of A is larger than even the speed of light. Later, since the factor $\frac{cos \frac{\theta}2}{sin^2 \frac {\theta}2}$ in equation(#) is quite large when $\theta$ is close to 0, and since large $\omega$ leads to small $\theta$ during a short period of time, the velocity of A will be increased by this factor. Thus overall, $\omega$ is set to be a large constant, l is a constant, the only changing factor is increasing. Therefore, the velocity of A will increase. Meanwhile, we emit a beam of light. A is in a superluminal motion. And A will arrive at a detector first, causing the bars to touch the detector, and sending the command to the machine. Then the light beam comes later, thus being detected later. Notice that here again, we place the detector close enough to point O, so that our equation is valid.   Remark: Someone may argue that we are not sure if A could attain a speed higher to that of light. So suppose at t=0, the force has already affected the area around point O, and is now traveling further.Meanwhile, ${\theta}_0=\frac{\pi}3$ A is speeded up to 0.999c, then since our formula is valid at t=0 and later period of time, let's apply it and set $l=0.001m, c=3*10^8m/s,{\theta}_0=\frac{\pi}3$. Then plug them in, we get $$\omega=-3.461*10^{11}rad/s $$. Now we want to know its velocity at $t=1*10^{-12}s$, and we get $v=6.89062*10^8m/s$, faster than light.  According to relativity, this shall violate casualty, and therefore could never happen. With which kind of mechanism is this paradox solved? I have taken the bending effect into account, and decided that as long as the widths of the bars are small enough, then it's safe to treat the scissor as if it weren't bending.


Why don't non-Jedi carry lightsabers as tools?

If lightsabers can cut through anything, why don't more people (especially bounty hunters) carry lightsabers as a simple cutting tool?  It has been  why non-Jedi don't carry lightsabers as weapons.  However,  whether there are non-weapon items based on lightsaber technology.  But my question is different: If a non-Jedi can get ahold of a lightsaber, such as Boba-Fett, Grievous or Cad-Bane (the latter two who have used them as weapons, in fact), for example, why doesn't he keep one handy?  It doesn't take Jedi training to use one safely in order to cut things.  Han Solo has done it on occasion (on Hoth, for example, when he opened the TaunTaun) and didn't think twice about it.  And in The Force Awakens, Finn easily used a lightsaber without any training whatsoever, so it's not a matter of possessing the Force that makes the item able to be used.  [reasons why this is not a duplicate]  This question was marked as a duplicate of this: Are there non-weapon items in the Star Wars universe based on lightsaber technology?  However, just from the title you can see the scope is different.  Perhaps there are non-weapon tools based on lightsaber technology, but my question is whether non-Jedi carry lightsabers, it has nothing to do with non-weapon, non-lightsaber tools.  [later]  Some of the replies below maintain that non-Jedi people cannot carry a lightsaber because of various reasons.  It seems to me that Jedi would certainly be more skilled with a lightsaber on account of their affinity with the force and the relation of the force to the kyber crystal, but other people could definitely use a lightsaber as a tool.  .


Crackling sound when using headphones - 16.04

I'm experiencing an extremely unpleasant crackling noise whenever I try to use headphones. Even when I simply perform a sound test and "front left/right" is announced there is a great amount of crackling on the side that isn't being tested.  This has meant that my headphone jack is practically rendered useless because it is very uncomfortable to use headphones at any volume.  System: HP OMEN (15-ax003na) Card: HDA Intel PCH Chip: Realtek ALC295   Anyone else have this hardware or similar and experience this?  I've tried both of the solutions offered on  thread for 12.04 and it didn't make a difference.


Prove by induction: $2^n = C(n,0) + C(n,1) + \cdots + C(n,n)$

This is a question I came across in an old midterm and I'm not sure how to do it. Any help is appreciated.  $$2^n = C(n,0) + C(n,1) + \cdots + C(n,n).$$ Prove this statement is true for all $n \ge 0$ by induction.


I have eight pages using this same webform. My webform have two fields: email and "get current URL". My Thank you page (when submitted webform) URL link state sid = "88". I DO NOT want "thank you page" same design, so I decide to get URL sid and search for "get current URL" through database. From the result will base on my design.  Here is my question: I do not know how to retrieve data from database? OR Is there anybetter way to achieve what I want?


One sentence with both "could" and "should"

The envoy could potentially seek Chinese commitment for future support   should North Korea’s talks with rivals fall through.       In this sentence, what does the "should" mean for?  Here's


No DNS resolution after upgrade from ubuntu 14.04 to 16.04

I upgraded ubuntu 14.04 to ubuntu 16.04 and I have a problem with the internet connection. Specifically, DNS after update stopped working. For debugging purposes I set the only DNS 8.8.8.8, but name resolution still doesn't work. The output of nmcli device show wlan1 | grep IP4 is:  pc@pc:~$ nmcli device show wlan1 | grep IP4 IP4.ADDRESS[1]: 192.168.1.3/24 IP4.GATEWAY: 192.168.1.1 IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000 IP4.DNS[1]: 8.8.8.8 The output from dig @8.8.8.8 google.com and dig google.com:  dig @8.8.8.8 google.com ; <<>> DiG 9.10.3-P4-Ubuntu <<>> @8.8.8.8 google.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60075 ;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;google.com.            IN  A  ;; ANSWER SECTION: google.com.     27  IN  A   62.75.23.245 google.com.     27  IN  A   62.75.23.230 google.com.     27  IN  A   62.75.23.216 google.com.     27  IN  A   62.75.23.238 google.com.     27  IN  A   62.75.23.224 google.com.     27  IN  A   62.75.23.223 google.com.     27  IN  A   62.75.23.237 google.com.     27  IN  A   62.75.23.210 google.com.     27  IN  A   62.75.23.217 google.com.     27  IN  A   62.75.23.231 google.com.     27  IN  A   62.75.23.244 google.com.     27  IN  A   62.75.23.251  ;; Query time: 89 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Sat Apr 30 19:39:24 EEST 2016 ;; MSG SIZE  rcvd: 231 pc@pc:~$ dig google.com ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com ;; global options: +cmd ;; connection timed out; no servers could be reached pc@pc:~$ route -n Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlan1 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan1 192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlan1


After typing "apt-get update" terminal says Could not open lock file

i am a beginner in Ubuntu and currently using Ubuntu 19.10 in terminal i used   apt-get update   and this error showed up  Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)   how to solve this issue? i am using Ubuntu 19.10 on VMware Workstation 15 Pro and updated it at first lunch by using the "Software Update"


For a square matrix $A$ presence of $n$ linearly independent eigenvectors implies full rank, thereby invertible?

For any matrix $A$, $AA^T$ is symmetric, and thereby diagonalizable (Spectral Theorem). This implies that $AA^T$ has n linearly independent eigenvectors and therefore full rank.  Does this imply that for any matrix $A$, $AA^T$ is always invertible ? I know there is something wrong here because from the above chain we can conclude that a symmetric matrix is always invertible, which is definitely not true.  Could someone please point out where I am going wrong?


Is 1 Joule the work done to lift ~100g through a distance of 1m?

I am seeing many videos saying that 1 Joule is the work done to lift ~100g through a distance of 1m (like this one ). The idea is that 100g has a gravitational force downward of 1 Newton. So lifting it means applying 1 Newton over 1m, and therefore is 1 Joule.  But if I apply 1 Newton upward, and gravitational force is 1 Newton downward, the object shouldn't move.  So I believe you need to apply a force greater that 1 Newton in order to lift it.  Or am I missing something?  Would it be more accurate to say that 1 Joule is the work done by gravity to make fall 100g by 1 meter?


I'm trying to execute the following command on my CentOS 6.3 x64 server:  nohup "/usr/local/bin/php -v"   The result is:  nohup: ignoring input and appending output to `nohup.out' nohup: failed to run command `/usr/local/bin/php -v': No such file or directory   This works on CentOS 5 no problem. Any idea what I'm doing wrong?


I was watching the 1989 movie "Bill and Ted's excellent adventure" a couple of weeks back and in one scene Bill replies to some statement (I forgot whom he is replying to) with just "Word."  What does the word "word" mean when used like this? Is it like saying "amen"?


Convert ArrayList to ArrayList with for loop

Why do I get a NullPointerException when I try this:  ArrayList<String> longsToStrings() throws IOException {     LinkedList<Long> longNumbers = populateArrayWithLongs();     ArrayList<String> strings = null;     for (Long l : longNumbers) {         strings.add(l.toString());     }     return strings; }   When I try to print the results to console, I get NullPointerException. populateArrayWithLongs() function returns array with longs: [1488758722000, 1488773070000, 1488787530000, 1488801890000]


Find the angle ADE of the given triangle.

Given :  Angle ABE = 50, Angle DAC = 20, Angle BAD = 60, Angle ACB = 20 and Side CD = Side DA.Unit of angle values given is degree.  Find : Angle ADE.    I'm stuck and I need help here.


How to retrieve/recover commands that I ran on windows command prompt before the last restart?

I was debugging an issue via command prompt and was trying many scripts/commands and somehow one of them worked. So in excitement, I restarted my machine.  Now I don't really remember which command did actually worked for me. How do I recover all the commands that I ran before the restart? Is there any way to find out that in Windows 10?


Every natural number $n$ can be written as $n=s-t$ with $\omega(s)=\omega(t)$

Can we prove the following statement ?  Let $\omega(m)$ denote the number of all distinct prime factors of a positive integer $m$. Prove that every  natural  number $n$ can  be  written  as $n=s-t$, where $s$ and $t$ are positive integers with $\omega(s)=\omega(t)$, in other words, as the difference of two positive integers with the same number of distinct prime factors.   If $n=1$ , we can choose $\ s=3\ $ and $\ t=2$.  If $n$ is even , we can choose $\ s=2n\ $ and $\ t=n$.


Why does speed of light have to be constant?

My question is not about why speed of light has a particular constant value which has been sufficiently addressed in other questions on SE already. I want to know whether the fact that speed of light has to be constant is a consequence of other fundamental laws of Universe, or is it just a fundamental law itself.  My motivation for asking this question is thinking about Special Theory of Relativity. One way of understanding why time dilation and length contraction happen is to look at it from the perspective of constancy of speed of light. Alice who is on the moving source of light and Bob, a fixed observer see the speed of light as constant. In order for Alice to see the speed of light as a constant value, time slows down and length expands (in forward direction) thus keeping the speed constant.   In the  I'm doing, the Professor tells that this constancy of speed of light could be more generally referred to as, "Principle of wave constancy". That is, the speed of any wave is a property of the medium (and thus it remains constant). So, the speed of a wave in water, for example, remains constant even if the source of the waves (say a paddle keeps moving). Frequency and wavelength may change but the speed remains constant. In a similar fashion, light is an electromagnetic wave and thus its speed is constant. And the constant speed is defined by the medium (which happens to be vaccum i.e., no medium for light).   My questions are twofold now -    Is the above reasoning correct to explain why speed of light is constant? (i.e., thinking of it as constancy of any wave in general) Theoretically, could there be other waves that could travel through vaccum at a different speed? If yes, time dilation and length contraction will have to be different.   I'd appreciate it if the answer is kept non-technical (essential math is okay). More importantly, I request you to try and explain without using General Theory of Relativity. Because I'm thinking how the scientific understanding by 1905 had already knew that speed of light has to be constant.


Existence of biholomorphic function for two fixed points with $f(z_1) = z_2$

Let $U \subset C$ be a simply connected open subspace and $z_1, z_2 \in U$. I want to show that then there exists a biholomorphic function $f: U \rightarrow U$ with $f(z_1) = z_2$, but I have no idea how to do so.


I read in some places on the 'net that the dipthong/digraph æ is pronounced like the "a" in "cat." But all the words I know that contain that word pronounce with the tongue more forward, closer to  a short "e." "Aesthetic," Encyclopaedia," "archaeology." I would go so far as to say it is not so far from the long "a" as in "day."  Can someone clear this up, using language for a non-linguist (someone who would generally not know a digraph from a dipthong, which I had to look up)? I am hoping it is a little more cool and "European" than just "cat."


Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX

The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate:   Multiple roots & Nodes with multiple parents   in a tree in LaTeX?


My calculator suggests that the limit of this series is 0.75. $$\sum_{k=2}^{\infty} \frac{1}{k^2-1}$$ How can this be proved. I was thinking about a telescop sum but that didn't help me I appreciate any help you could provide


jquery, adding and removing event handlers

I have 2 buttons    $(".button1").on("click", function(event){  $(".button2").on("click", function(event){   What I would like to do is start with button1 as clicked and have no event listener, when button2 is clicked the event listener is removed and the event listener for button 1 is activated.   This is a fairly common technique is in actionscript 3 with the method removeEventListener() and would like to use a similar method or technique in jquery.


Is it possible to get a PhD position in the USA without applying to a PhD program?

I came across this , where an industrial scientist wonders whether they'd have a chance to get into a PhD program in the US.   In my experience (Europe, biochemistry), they'd have a very large chance to get a position. You've already shown you can work, are productive, scientifically literate, and you might even bring some interesting industrial contacts. If you make a good impression someone might even create a job opening for you.   I understand that in the US you don't apply for a position with one professor, but you apply for a PhD program at an institute. You send a statement, recommendation letters, transcripts and GRE and hope for the best.  If I would be a professor in the US, what would be my options to hire such a person if they contact me? Would I have to convince a committee to let them in or do you usually have no influence? Could I just give them a position if I have funds available? I'm interested in the unofficial process in the US.  For a European perspective:   In my field, many positions are filled by hiring people that applied to a research group, even when there's no advertised or available PhD position. If there's funding available, professors check who applied in the previous months, and maybe put out a message to relevant research groups to get more candidates. People are almost always hired directly after completing their Master's, and they did one or two projects on a closely related topic.


When one does a rollback, please make it more obvious how to include a comment

Edit history  links . There are ways to leave a comment while reverting a post, but they're not obvious. Please make it more obvious how to comment while reverting.  has suggested  to do this:  Clicking rollback should definitely have an rollback-reason or comment input, same as editing does. [...] I guess a slightly more drastic solution would be to remove the rollback button, and rename the "edit" button on the revisions page to "revert to this revision". Not only would it inherently prompt for a reason when "rolling back", it better describes what the edit button does. Plus, it gives a nice preview of what the rolled-back post will look like.


The original one is:  $$\sin z - \cos z = 3$$  by defenition:  $$\left(\frac{e^{iz}-e^{-iz}}{2i}-\frac{e^{iz}+e^{-iz}}{2}\right) = 3$$  $$\left(\frac{e^{iz}-e^{-iz}}{i} - e^{iz}+e^{-iz}\right) = 6$$  $$\left( \frac{e^{iz}-ie^{iz}-ie^{-iz}}{i} \right) = 6$$  What am I suposed to do next? I am not sure that it is right direction at all, i wass thinking of represention of $e$ via eulur's formula but it seems it makes the proccess even more complicated...


java.sql.PreparedStatement.setArray() : Unsupported cross conversion

I'm getting the exception shown below, when I run the following query with jdbc. This is a simplified example, the other parts of the preparedStatementSetter with setString and setInt, etc. ran successfully.  public List<EmployeeMonitoringResultTo> searchEmployeesForEmployerInRange(final GetEmployeesForEmployerInRangeCriteria criteria) {     final StringBuilder sql =      new StringBuilder(  "select * from CODES c ")                 .append("    where c.TYPE in ( ? )  "); // TYPE has DATA_TYPE 12, TYPE_NAME VARCHAR      return jdbcTemplate.query(         sql.toString(),         new PreparedStatementSetter() {             @Override             public void setValues(PreparedStatement ps) throws SQLException {                 ps.setArray(1, searchTypes());             }         },         new SpecificRowMapper<SpecType>()         );       }  private Array searchTypes() {     final Collection<String> collection = fetchStrings();      Array resultArray = null;;     try {         resultArray = jdbcTemplate.getDataSource().getConnection().createArrayOf("VARCHAR", collection.toArray());     } catch (SQLException e) {         log.error("Problem with created java.sql.Array", e);         throw e;     }      return resultArray; }      Caused by: com.ibm.db2.jcc.am.SqlSyntaxErrorException:   [jcc][10349][11717][4.13.80] Unsupported cross conversion from source   type Object;. ERRORCODE=-4461, SQLSTATE=42815     at   com.ibm.db2.jcc.am.id.a(id.java:677)  at   com.ibm.db2.jcc.am.id.a(id.java:60)   at   com.ibm.db2.jcc.am.id.a(id.java:103)  at   com.ibm.db2.jcc.am.ic.a(ic.java:289)  at   com.ibm.db2.jcc.am.ic.a(ic.java:191)  at   com.ibm.db2.jcc.am.kc.a(kc.java:1943)     at   com.ibm.db2.jcc.am.go.a(go.java:2289)     at   com.ibm.db2.jcc.am.go.setArray(go.java:2254)  at   com.jolbox.bonecp.PreparedStatementHandle.setArray(PreparedStatementHandle.java:261)     at   net.sf.log4jdbc.PreparedStatementSpy.setArray(PreparedStatementSpy.java:349)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:597)     at   org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)     ... 93 more


Is it possible to set a section counter in beamer? For example, when using the Frankfurt theme it displays a counter in each section you are in.  This is problematic if you have multiple sections or long titles. Is it possible to just have a counter at the bottom of the slide?


listings keywords highlighting with underscore

I have a function named log_prior(...) and I don't want the 'log_' highlighted, here's what I tried  \documentclass{article} \usepackage{listings} \usepackage{color}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb, language=R, keywordstyle=\color{blue}, numberstyle=\tiny\color{gray}, commentstyle=\color{dkgreen}, stringstyle=\color{mauve}, alsoletter ={_}, otherkeywords = {!,!=,~,\$,*,\&,\%/\%,\%*\%,\%\%,<<-}, breaklines=true, breakatwhitespace=true, tabsize=3 }  \begin{document}  \begin{lstlisting}[language=R]  log_prior <- function(th){ .... }  \end{lstlisting}  \end{document}


How to update from 15.10 to 16.04 without losing the data?

I want to update from 15.10 to 16.04 . I am new to ubuntu so please i need your help . Also , i don't want to lose my data .


If n is a positive integer , find the sum of $ S_n = 1+2+\cdots+n$

$$ S_n = 1+2+\cdots+n=\frac{n(n+1)}{2}.$$ How do I go about solving this ? I tried to search for a solution, but I didn't find anything ( well I didn't know what this was called to even look for it in the first place).


What conditions prevent Geralt from meditating?

First of all I would like to tell you that I know how to meditate but I tried doing that and the game prompts : "You cannot do that now." Why is it so?  Hint : I have been trying for long hours I'm not on a horse or during combat


Streamlined flattened worm identification

These streamline shaped tiny shells are sticking around on dark untouched corners, hanging by one end .Or one of their flat sides is touching a wall. Some are reddish brown in color, others are pale grey.  I have seen a little worm like thing peep out of the two openings on the tips and start crawling very slowly .If disturbed ,they go right back in ,like a tortoise. They can even poke their head out from the opposite hole and reverse their direction of crawling. Otherwise ,they are almost inert. I live in South India.


Where does a worthy person get Thor's power from?

We learned in Thor: Ragnarok that Mjolnir is only a focus for Thor's power, not the source. If so, when a worthy being lifts Mjolnir and gains "the power of Thor", where are they getting the power from?


I have just created a bibliography style file using makebst, but I am unhappy with the style of one of the fields that was created. Here is what I mean:   Problem: The Publisher field and the Year are not separated by a space. How do I make it such that I have Cambridge University Press 2006? Preferable solutions would include:    Pointing out which option in makebst I should change / choose differently, or Adding / Modifying a few lines in the bst file    If it helps, these are the options I used with makebst:     seq-no,nm-init,ed-au,mcite,mct-1,mct-x2,yr-par,xmth,tit-it,jttl-rm,vol-2bf,volp-com,jpg-1,jwdpg,num-xser,pub-date,edpar,bkedcap,blk-com,blknt,pp,ed,xedn,jabr,and-xcom,etal-xc,etal-it,nfss   A MWE:  \documentclass[a4paper,11pt,twoside]{scrreprt} \usepackage{cite}  \begin{document}  Some text here\cite{test1}  \bibliographystyle{mystdbst_v2} \bibliography{mybibfile}  \end{document}   Here is my bib entry:  @book{test1,      title={Geometrical Frustration},     author={Sadoc, J.-F.S. and Mosseri, R.},     publisher={Cambridge University Press},     year={2006} }   I could upload the bst code, but it's a little long, and would prefer not to clog up my post if possible. If it is required though, let me know in the comments. Thank you very much!  EDIT  So I still have not solved my problem, just thought I could share a bit more information. I think I can narrow it down to the format.publisher.address and format.date strings, together with the book string.  FUNCTION {format.publisher.address} { publisher "publisher" bibinfo.warn format.org.or.pub }   %  FUNCTION {format.date} {   ""   duplicate$ empty$   year  "year"  bibinfo.check duplicate$ empty$     { swap$ 'skip$         { "there's a month but no year in " cite$ * warning$ }       if$       *     }     { swap$ 'skip$         {           swap$           " " * swap$         }       if$       *     }   if$   duplicate$ empty$     'skip$     {       before.all 'output.state :=     " ("  swap$ * ")" *     }   if$ }   %  FUNCTION {book} { output.bibitem   author empty$     { format.editors "author and editor" output.check     }     { format.authors output.nonnull       crossref missing$         { "author and editor" editor either.or.check }         'skip$       if$     }   if$   format.btitle "title" output.check   crossref missing$     { format.bvolume output       format.number.series output       format.publisher.address output     }     {       format.book.crossref output.nonnull       format.date "year" output.check     }   if$   format.edition output   new.sentence   format.note output   fin.entry }   Still hope someone will be kind enough to assist, as I would prefer not to attach a { } at the end of every publisher field in my bib entries to force a space between the publisher and the year.


The question is from the following problem:     Let $R$ be a ring with a multiplicative identity. If $U$ is an additive subgroup of $R$ such that $ur\in U$ for all $u\in U$ and for all $r\in R$, then $U$ is said to be a right ideal of $R$. If $R$ has exactly two right ideals, which of the following  must be true?   I. $R$ is commutative. II. $R$ is a division ring. III. $R$ is infinite.    I know the definition of every concept here. But I have no idea what is supposed to be tested here.    Why is the ring $R$ which has exactly two right ideals special? What theorem does one need to solve the problem above?   Edit. According to the answers, II must be true. For III, $R$ can be a finite field according to mt_. What is the counterexample for I then?


Where is Windows 10 "credentials" stored?

I have a laptop that came with Windows 7 originally. It was then (1) upgraded to Windows 10 during the period in which Windows 10 was free and (2) and clean-installed with Ubuntu. As such my system at the moment only has Ubuntu installed.  During (1), there was no step to enter the Windows 10 CD key and between (1) and (2), I created a Macrium Reflect backup of my Windows partition. That backup is now misplaced.  I'm contemplating reinstalling Windows 10 on this laptop using an unmodified ISO. Will I be prompted for a CD key this time? Is there a chance that the Win 10 copy in (1) stored a copy of its credentials somewhere so that the system will remember those when I reinstall Windows?


I just need some clarification. I have a question stating that G is a group and x and y are elements of that group, both of which are order 2. So being that the order of G is finite, what would be the order of xy? It can be assumed that x and y are not inverses of each other. I think x^2 is the identity and y^2 is also the identity being as both of them are of order two. Am I thinking about this correctly?


Apex REST Web Service: Unexpected parameter encountered during deserialization

Any thoughts on why the REST web service below does not properly deserialize the input argument?  Unit test passes. CURL request (below) returns error.   @RestResource(urlMapping='/test/*') global with sharing class TestService {      @HttpPost     global static string doPost(TestRequest req){         return req.testArg;     }      private static testMethod void tests(){         TestRequest req = new TestRequest();         req.testArg = 'hello';         String result = TestService.doPost(req);         System.assertEquals('hello', result);     }      global class TestRequest{         global string testArg;     } }   Test Request   curl -X POST -H 'Authorization: Bearer sessionID'  -H 'Content-Type: application/json'  -d '{"testArg": "testValue"}'  'https://power-site-5184.database.com/services/apexrest/test'   Response   [{"message":"Unexpected parameter encountered during deserialization: testArg  at [line:1, column:14]","errorCode":"JSON_PARSER_ERROR"}]   Update (resolved)  The correct JSON data structure should be   -d '{"req": {"testArg": "testValue"}}'


Can anyone confirm Titanfall language change?

Now can anyone confirm that Battlefield 4 solution to cahnge the language by copying native GDFBinary_en_US(64).dll to installation (from beta etc) and changing registry keys asociated with origin from ru_RU to en_US? Until the game is not released ofitialy i can't confirm but internet sources confirm that the game perloader does include all the audio files for 11 languages and that is what packed into the 35gb of audio data. So i'm holding my fingers crossed and hoping that dll from beta will work ok. Hoping someone with english version of Titanfall can share RTM version of the DLL.


Well, i jumped over to Lubuntu, and I'm on a fresh install of it... but I wanted to go ahead and install elementary to a flash drive and check it out, but cant because when I use terminal to install mkusb, I get this error:  dps@chris-pc:~$ sudo apt-get install mkusb mkusb-nox usb-pack-efi [sudo] password for dps:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   Also, when I try to install anything via the software center (discovery) it says:       PolicyKit Error    Incorrect permissions on /usr/lib/policykit-1/polkit-agent-helper-1 (needs to be setuid root)   Any ideas?


Glossy object looks different in rendered view (Cycles)

A glossy  object looks perfect in material preview ,but when I come to render mode (I try to use cycle), everything looks completely different.


How can I remove all empty values when I explode a string using PHP?

I was wondering how can I remove all empty values when I explode a string using PHP for example, lets say a user enters ",jay,john,,,bill,glenn,,,"?  Thanks in advance for the help.  Here is part of the code that explodes user submitted values.  $tags = explode(",", $_POST['tag']);


can't execute my old file, same user, only rw

(use , and didn't work's)  After reinstall my ubuntu from 16.04 to 14.04. My C program can't be executed. My username is the same.  I have used:    chmod +x ./hello  chmod -R 775 hello   I am still getting:  bash: ./hello: Permission denied   I use GUI, to tick execute or change permission group or kind, it suddenly back after few second. But I can read and write every file inside it, when I compile it again, then execute, it's always didn't works.    How can I solve it?  (read many other question, but still didn't works for me..)  $ ls -l total 160 -rw------- 1 reigin reigin  1323 Agu 31 07:14 bentuk.class -rw------- 1 reigin reigin  2438 Agu 31 07:14 bentuk.java -rw------- 1 reigin reigin  1290 Sep  1 04:16 bentukq.class -rw------- 1 reigin reigin  2183 Sep  1 04:16 bentukq.java -rw------- 1 reigin reigin   644 Agu 29 05:09 deret.class -rw------- 1 reigin reigin   841 Agu 29 05:09 deret.java -rw------- 1 reigin reigin  1471 Agu 27 04:30 Fkonversi.class -rw------- 1 reigin reigin  8519 Sep 20 14:44 hello -rw------- 1 reigin reigin   264 Sep 20 09:06 hello.c -rw------- 1 reigin reigin   262 Agu 25 23:52 hello.c~ -rw------- 1 reigin reigin   417 Agu 26 00:00 hello.class -rw------- 1 reigin reigin   281 Agu 26 00:00 hello.java -rw------- 1 reigin reigin   182 Sep  1 18:13 HelloWorld.java -rw------- 1 reigin reigin  8612 Agu 26 01:20 jumlah -rw------- 1 reigin reigin   484 Agu 26 01:20 jumlah.c -rw------- 1 reigin reigin   557 Agu 27 05:43 jumlah.class -rw------- 1 reigin reigin   645 Agu 26 00:22 jumlah.java drwx------ 1 reigin reigin  4096 Sep 17 12:46 lat2 drwx------ 1 reigin reigin  4096 Sep 17 12:46 lat3 -rw------- 1 reigin reigin  8517 Sep 20 09:23 new -rw------- 1 reigin reigin   250 Sep 20 09:23 new.c -rw------- 1 reigin reigin 25424 Agu 31 07:18 noted.txt drwx------ 1 reigin reigin  4096 Sep 20 11:42 ong -rw------- 1 reigin reigin  1006 Agu 31 06:16 suhu.class -rw------- 1 reigin reigin  1354 Agu 31 06:15 suhu.java drwx------ 1 reigin reigin     0 Sep 17 12:46 suhuu -rw------- 1 reigin reigin   645 Agu 26 10:17 terbesar.class -rw------- 1 reigin reigin   865 Agu 26 01:29 terbesar.java -rw------- 1 reigin reigin  8664 Sep  1 11:24 test -rw------- 1 reigin reigin   266 Sep  1 11:24 test.c -rw------- 1 reigin reigin  8758 Agu 29 03:36 tigainteger -rw------- 1 reigin reigin  2343 Agu 29 03:30 tigainteger_.c -rw------- 1 reigin reigin  2345 Agu 29 03:34 tigainteger.c -rw------- 1 reigin reigin  1184 Agu 27 13:46 tigainteger.class -rw------- 1 reigin reigin  2776 Agu 27 13:09 tigainteger.java   grep result :  # mount | grep 'on /media /dev/sda7 on /media/reigin/data type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)


How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items.  I use this code for get current user :  function Initialize() {     context = new SP.ClientContext.get_current();     web = context.get_web();    var currentUser = web.get_currentUser();    alert(currentUser);     currentUser.retrieve();     context.load(web);     context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),           Function.createDelegate(this, this.onFailureMethod)); }  function onSuccessMethod(sender, args) {     var userObject = web.get_currentUser();     alert('User name:' + userObject.get_title() + '\n Login Name:' +               userObject.get_loginName()); } function onQueryFailed(sender, args) {     alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace()); }   But don't get current user.  and use this code for get items of list.   function Initialize() {     clientContext = new SP.ClientContext.get_current();     web = clientContext.get_web();      var list = web.get_lists().getByTitle("Sends");     var camlQuery = new SP.CamlQuery();     var q = "<Where><Eq><FieldRef Name='CreatedUser' /><Value Type='User'>CurrentUser</Value></Eq></Where>";     camlQuery.set_viewXml(q);     this.listItems = list.getItems(camlQuery);      clientContext.load(listItems, 'Include(ID)');      clientContext.executeQueryAsync(Function.createDelegate(this, this.onListItemsLoadSuccess),      Function.createDelegate(this, this.onQueryFailed)); } function onListItemsLoadSuccess(sender, args) {     var count = 0;       count = this.listItems.get_count();             }  function onQueryFailed(sender, args) {     alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace()); }


Proof that laplace's equation is rotationally invariant using chain rule

Suppose $(x, y)$ and $(p, q)$ are coordinates in the plane related by rotation around a fixed point $(a, b)$, as follows: $$\begin{bmatrix} p\\ q\end{bmatrix} = \begin{bmatrix} \cos(t) & -\sin(t) \\ \sin(t) & \cos(t) \end{bmatrix} \begin{bmatrix} x-a \\ y-b \end{bmatrix}$$ where $t$ is the rotation angle. Applying the chain rule show that $u(p(x,y), q(x,y)) $ satisfies $u_{xx}+u_{yy}=0$ iff $u_{pp}+u_{qq}= 0$.  Where would I use chain rule in this problem? I am kind of confused because $u$, $p$, and $q$ are all functions of two variables.


unexpected network loopback device on linux

executing ifconfig I found network loopback device which was not expected to show (maybe some linux packages created it on it's own?) but I would like to analyze it what it does - any ideas how to track which process uses it and what it does, if it uses any files to keep some log etc? one of ideas is that it's malicious creation of some 3rd party so I would like to know what it does, other is to be able to access local Ipython notebook but I would like to be sure what is the purpose of this device on my machine  below ifconfig result  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu [[some_mtu]]         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1000  (Local Loopback)         RX packets 787  bytes 46448 (45.3 KiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 787  bytes 46448 (45.3 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


What book has the main alien antagonist as a "Blue poppet"?

I can't remember the title or the author. Ugh! Centers around a soldier that now kills for the conquering alien race that took over Earth. They don't know much about the aliens that control them, except they are described as blue poppets. Once back on earth the main character's friends start a rebellion. Any ideas?    Thank you so much if you know this!


Which version is correct: "I didn't know" or "I didn't knew"?

Is it right to use this word when referring to the past:      I didn't knew he was the antecedent of my problem.


Saving routes from ArcGIS Network Analyst between set of points as shapefile in ArcGIS?

Does anybody know how to  save the routes from ArcGIS Network Analyst between set of points as a shapefile in ArcGIS?


How to delete all my photos in Google Photos?

Any advise on how I can delete all my photos in Google Photos?  I accidentally synced all the pictures from my iPhone, and now they consume all my 15gb capacity.  I highly appreciate any advise or workaround for this.


Specify additional include directories within a tex file

I want my document to use class files, style files or bibliography style files located in some subdirectory of my TeX document's directory. Sometimes I can sorta-kinda- use, say, \documentclass{include/myclass}  and just get a warning. But often even this . What I would really like to do is specify additional include directories - preferably from within the TeX file itself. Is this possible?


Every compact subset of Baire Space (ω^ω) has empty interior

Here is the Well known proposition. I assumed that K is the compact subset of ω^ω and it contains an open set Ns, so I thought if K is compact so Ns is because Ns is clopen set, If I can not find a finitely many subcover of Ns, solution is done. But I could not construct and don’t know how to start


How to write a greek letter as bold and not italic?

How to write the letter θ as bold and not italic?  I have tried the following but it gives me the θ as italics and not bold:  \textbf{$\theta$}


Why OpenOffice is not available in Ubuntu Software Center

I was wondering, why is it that OpenOffice is not available in Ubuntu.Even if Ubuntu choose LibreOffice over OpenOffice, that does not mean that OpenOffice should be removed or not available as an option. Isn't having options is one of the great things about Linux.   Beside having problems coexisting with LibreOffice, a warning or a statement should be issued when installing OpenOffice from the Software Center, such as 'You can't install OpenOffice and LibreOffice at the same time, please remove LibreOffice'.


A cube has numbers ±1 placed at each vertex and each center of cube’s six faces (so 14 numbers altogether). Moreover, it is known that each number in the center of a square face equals to the product of the 4 numbers at the vertices of this face. Can the sum of all 14 numbers be equal to zero? My first thoughts were test out some combinations and look for a pattern, but I was not able to notice anything major about it. So, the only progress I was able to really make was breaking it down into $V_1*V_2*V_3*V_4$, and so on for each face. Any help is greatly appreciated.


Can Special Relativity hold even without motion?

I am having a bit of confusion, let us say there are two observers observing two simultaneous lightning strikes with a finite distance between them. Now one observer is located such that he is in between the two lightning strikes, while the other is near to one strike and away from the other. In this scenario, the observer situated in between will perceive the lightning strikes to be simultaneous while the other will perceive them differently, since he is close to one and far from the other. Does this mean the Principle of Relativity holds even without actual motion?


SQL return multiple values in rows into columns

I have a table with a few columns, but only two are relevant to this search:  ITEMNMBR and ALTITEM1  Right now data appears as follows  ITEMNMBR    ALTITEM1 A0001       ABCDEF A0001       GBESJF A0001       SDFJLK B0001       JKHKJF C0001       KLJSDF C0001       MSXNCV   I would like to display the data so only one instance of each ITEMNMBR appears in the column with the corresponding ALTITEM1 values appearing in new columns.  ITEMNMBR    ALTITEM_1    ALTITEM_2    ALTITEM_3 A0001       ABCDEF       GBESJF       SDFJLK B0001       JKHKJF C0001       KLJSDF       MSXNCV   Each ITEMNMBR may have up to 20 ALTITEM1 values. If possible to add these columns dynamically that's great, but I figure that they need to be provisioned in the code...  SQL server 2008 R2


The model presented or the presented model?

For example, when referencing the model we presented in the paper,     The presented model is helpful to many other related   researches.   or      The model presented is helpful to many other related   researches.   If it is proposed, I think both is OK, and proposed model might be slightly better in academic writing? What about presented?  I also see sentences like      The model presented in this section gives a brief introduction on the   use of the COMSOL ECRE Version.


Why would one use entityfieldquery over views? Is there any benefit to using EntityFieldQuery over using views? Is it the performance benefit? Is it the ease of use of a API? Does it provide you more granularity?


Change the old style numerals of mathpazo (via tufte-latex) to lining numerals

I am using tufte-latex package, which uses mathpazo with old style numerals. To make figures (plots) I would like to use lining numbers.  The problem is that the figures are converted from svg to pdf using inkscape and the numbers are not in mathmode (In math mode the numbers are lining numerals by default).  I think of two possible solutions:  a) Is there any command similar to \oldstylenums that does the opposite work?  b) inkscape put the text of the figure in \smash{-22.22} commands. Is any way,  using sed, awk, perl,... to change that to \smash{$-22.22}?


How to insert text before the first line of a file?

I've been looking around sed command to add text into a file in a specific line. This works adding text after line 1:  sed '1 a\   But I want to add it before line 1. It would be:  sed '0 a\   but I get this error: invalid usage of line address 0.  Any suggestion?


Trouble Installing Ubuntu on an old PC with USB stick

So far I have:   downloaded Ubuntu 12.04.4 LTS from the site. Converted the ISO file to IMG. (I used Unetbootin, I'm not completely sure I did this right.) I selected disk image, ISO, and browsed to find my Ubuntu ISO file. I saved it to a 4 GB flash drive. I put the flash drive in my parents' old HP Pavilion. I rebooted, and hit escape to get to the boot menu. I could see my flash drive as an option. I selected it and hit enter.   --And then Windows XP just starts up like always.--  Even though I select my flash drive from the boot menu, Windows XP loads up. I'm not a computer wiz, and this is my first attempt to play around with Linux. I heard using a cd is easier, but the cd drive on this pc is toast.


I am having trouble proving this inequality: $2ab\leq a^2+b^2$  I can transpose the equation and change around signs. But I am not sure If I need to use k+1 here or just prove the inequality. In discrete math what would my professor be looking for as a proper answer?


How to delete empty fields from a Shapefile with QGIS or ogr2ogr?

I have a Shapefile with a lot of empty columns but many of them are empty. Using QGIS or ogr2ogr, how do I remove all attribute columns where everything is NULL?


Multi-line indentation using description

I'm having trouble using description. I would like the separation between my label and my description to be the same distance for each item, and have each additional line also be properly indented to the same distance, like so:    So far all I seem to be able to get is:    Using the following code:  \documentclass{article} \usepackage{enumitem}  \begin{document} \begin{description} [leftmargin=*,labelindent=16pt] \item [To:] blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah \end{description} \end{document}   The same code produces itemized lists when description is changed to enumeration, which is not exactly the desired effect. Any help would be greatly appreciated.


C++20 - Compile Time Check for Template Function

I have a simple template class that:  Is instantiated based on another class that receives callbacks. Calls an external function that takes quite a few CPU cycles. Calls into the class that receives the callbacks.  In code: template <class T>  class Caller { public:     T & destination_;     Caller( T & destination ) : destination_{ destination } {}      void DoSomethingExpensive() {         if ( ExpensiveExternalFunction() )             destination_.ExternalFunctionDone();     } };  If the ExternalFunctionDone() in the destination class doesn't do anything then we will have wasted a lot of compute time in ExpensiveExternalFunction().  Because this is an external function, the compiler can't just optimize all of this away. Would there be a way in C++20, perhaps using some SFINAE magic, that we could allow the class T to simply not implement ExternalFunctionDone()? This seems close (), but you have to know the name of the type to check it.  In my example, I just know that the type is "T". Also, I am hoping that there's something nice and clean in C++20 that wraps all of this up in something like: if constextpr( std::method_exists( T::ExternalFunctionDone ) )


Object is not showing Wires in wireframe mode and turns into invisible type black in Material preview mode

I just downloaded Blender 2.83 LTS version and Blender 2.91 and encountered a very weird problem. When I open Blender and add any object, whether it is any mesh or I import any file, it doesn't show the Wireframe in wireframe mode, and also it doesn't show anything in material preview mode. It shows the object in rendered mode and that is also only if I switch my render mode from Eevee to Cycles. Everything is visible only in the solid mode in every render setting. When I am using Blender on my laptop with some old 2 core Intel processor and 2GB Nvidia Graphics card, everything is working perfectly fine but my laptop is not powerful enough to work on. I checked everywhere on the internet for similar problems but no one posted the solution related to this. This is how it looks like . I changed and tried all systems setting in preferences and switched Blender versions but nothing worked. Moreover, it doesn't show the vertices in vertex paint mode also. Please help My configuration is:  1950X processor RX 580 graphics and Windows 10 Pro


Workaround for Windows Magma Memory Limit

I found  which said that Magma for Windows has a strict memory limit of 1.3 GB as a consequence of something weird with long ints.   Is there any known workaround for this on a Windows machine? Would running in an Ubuntu subsystem or a virtual machine solve the problem, even though such subsystems would still be overlaid onto Windows? Should I expect a large performance hit?


Where do unanswered questions go to die?

I was checking back and my original unanswered question "Scrub PDF Malware Files to XPS Format" seems to have been removed from Stack Overflow/Stack Exchange (as in I've searched everywhere and can't find it) and is also not listed in my user account.  An exact duplicate of my original question is now located at and a few others.  Does the Stack Exchange network discard or delete old unanswered questions?  Why is my question missing from the site and now located at a clone site under a different author?


VT-x/AMD-V hardware acceleration is not available on your system

I am trying to find out if my system has VT-x with the CPU-G tool but I am not able to see what I expect. It is because my virtualbox gave a message  .I run Ubuntu 16.04LTS. Please help. Thanks.


Add a search option within our own profile

It would be nice if we have one more search bar within our profile or at least in favorite questions so that we can search within our activity. For Ex: i have marked many questions as my favorite so when i want to come back and search for a specific question among my own favorite questions this feature will be useful instead of searching all the questions in the site.


Ubuntu 16.04 nvidia lib32gcc1 unmet dependencies and broken packages after upgrade

After upgrading my install from 14.04 to 16.04 on a notebook which has Nvidia GT 740M, I want to change GPU driver from Software & Updates > Additional Drivers. System identifies my graphic card, no problem but when I select a proprietary driver and apply changes after a few seconds, change bar stops and nouveau selected by default again.  I  ran this command:  sudo apt-get install nvidia-370   but output says you have held broken packages  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  nvidia-370 : Depends: lib32gcc1 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I also tried:  sudo apt-get install lib32gcc1   But it says:   Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies: lib32gcc1 : Depends: gcc-6-base (= 6.0.1-0ubuntu1)               but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I've tried using main server, but that didn't solve my problem. I also tried to fix broken packages with the following commands:  sudo dpkg --configure -a sudo apt-get purge sudo apt-get clean   Results of running: apt policy lib32stdc++6 gcc-6-base lib32gcc1   lib32stdc++6:   Instalados: (ninguno)   Candidato:  5.4.0-6ubuntu1~16.04.2   Tabla de versión:      5.4.0-6ubuntu1~16.04.2 500         500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages         500 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages      5.3.1-14ubuntu2 500         500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages gcc-6-base:   Instalados: 6.2.0-3ubuntu11~14.04   Candidato:  6.2.0-3ubuntu11~14.04   Tabla de versión:  *** 6.2.0-3ubuntu11~14.04 100         100 /var/lib/dpkg/status      6.0.1-0ubuntu1 500         500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages lib32gcc1:   Instalados: (ninguno)   Candidato:  1:6.0.1-0ubuntu1   Tabla de versión:      1:6.0.1-0ubuntu1 500         500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages   It seems that gcc-6-base refers to 14.04 still.


Gifting in iTunes to people in other countries

Christmas is coming up, and I'm currently living in a country (UK) that's a completely different iTunes store from my family (US).  So I'm wondering if I can gift things in the iTunes store if I'm in a different country than the recipient.  If I gift something from the UK store, can someone in the US download the items?  I'm not even sure if there's a way for me to go to the US version, let alone try to gift an item from there.


Why does $(1 + x)^{1/x} $ approach $e$ as $x$ approaches $0$?

For smaller and smaller values of x in the expression $(1 + x)^{1/x} $, its value seems to approach the constant $e$,  $(1 + 1E-10)^{1E10} = 2.71828182832313114395...   $ $(1 + 1E-20)^{1E20} = 2.718281828459045235347$  but how can it be proven that: $$\lim_{x\to 0}(1 + x)^{1/x}  = e$$ I was first introduced to e with this definition $$\frac{d(e^x)}{dx}=e^x$$


How can my regression coefficients be so far from the underlying model?

I'm performing regression on data derived from a known underlying model with normally distributed errors, and I don't understand how the fitted regression coefficients can be as far as they are from the underlying model (coefficients 0, 1, -2 in underlying model, with coefficients -1.6, 6.2, and -23.9 in resulting regression). See below.  I'm seeking help in understanding this phenomenon. By the way, the phenomenon is insensitive to random seed (although the exact coefficients do vary in that circumstance).  The data is generated in R as follows:     set.seed(1)   x=rnorm(100)   y = x - 2*x^2 + rnorm(100)   The regression is simply:     lm2=lm(y~poly(x,2))   summary(lm2)      Residuals:       Min              1Q        Median          3Q          Max   -1.9650   -0.6254   -0.1288    0.5803    2.2700       Coefficients:                      Estimate  Std. Error   t value   Pr(>|t|)   (Intercept)   -1.5500      0.0958   -16.18   < 2e-16   poly(x, 2)1    6.1888       0.9580        6.46  4.18e-09   poly(x, 2)2  -23.9483      0.9580   -25.00   < 2e-16   Residual standard error: 0.958 on 97 degrees of freedom Multiple R-squared:  0.873, Adjusted R-squared:  0.8704  F-statistic: 333.3 on 2 and 97 DF,  p-value: < 2.2e-16