Pre-1985 anime - boy romance with robot girl - she turns human

I have a vague recollection of seeing before 1985 a sci-fi animated movie, with a boy and a robot girl; I saw it in a theater, this is not a series.  I remember that in the end they were on a beach or an open space and she turns human. As a robot she was wearing some sort of headset with a metal band on her forehead and round things at her temples.


Why can't I get code coverage for my trigger, even though I wrote a complete unit test?

I need help to create a test class for my trigger below: trigger UpdateLeadLastMQLDate on Event (before update) {   Map<Id, Lead> leads = new Map<Id, Lead>();      for(Event record: Trigger.new) {         if(record.WhoId?.getSObjectType() == Lead.sObjectType) {             leads.put(record.WhoId, null);         }     }     leads.putAll([SELECT Last_MQL_Date_Time__c FROM Lead WHERE Id = :leads.keySet()]);     for(Event record: Trigger.new) {         record.Lead_Last_MQL_Date_Time__c= leads.get(record.WhoId)?.Last_MQL_Date_Time__c;     } }  Here the test class: @isTest (seeAllData=false) private class TestUpdateLeadLastMQLDate {     static testMethod void testEventTrigger() {         // set up leads         List<Lead> testLeads = new List<Lead>();         Lead lead1 = new Lead();         lead1.Company = 'Test 1 New Company';         lead1.LastName = 'Brian';         lead1.LeadSource = 'Website';         lead1.Status = 'MQL';         lead1.Email = 'test@test.com';         lead1.Country = 'USA';         lead1.Last_MQL_Date_Time__c = DateTime.parse('17/06/2020 13:00');         //lead1.Business_Type__c = 'App/Business';         //lead1.Lead_Role__c = 'Product';         testLeads.add(lead1);                  Lead lead2 = new Lead();         lead2.Company = 'Test 12';         lead2.LastName = 'Jordan';         lead2.LeadSource = 'Personal';         lead2.Status = 'New';         lead2.Email = 'test23@test.com';         lead2.Country = 'France';         lead2.Last_MQL_Date_Time__c = DateTime.parse('17/06/2020 13:00');         //lead2.Business_Type__c = 'App/Business';         //lead2.Lead_Role__c = 'Product';         testLeads.add(lead2);         insert testLeads;                  // set up Events         List<Event> events = new List<Event>();         Event event1 = new Event();         event1.WhoId=testLeads[0].Id;          event1.Subject= 'Test0';         event1.Type='New';         event1.STARTDATETIME=System.today();         event1.ENDDATETIME=System.today();         event1.Sales_Rep__c = '0052o000009lZyVAAU';         event1.Description = 'bla';         events.add(event1);                           Event event2 = new Event();         event2.WhoId=testLeads[1].Id;          event2.Subject= 'Test1';         event2.Type='Other';         event2.STARTDATETIME=System.today();         event2.ENDDATETIME=System.today();         event2.Sales_Rep__c = '0052o000009lZyVAAU';         event2.Description = 'bla';         events.add(event2);              Test.startTest();         insert events;         Test.stopTest();                  /*List<Lead> leadResults = [SELECT Last_MQL_Date_Time__c FROM Lead WHERE Id IN :testLeads];*/         List<Event> eventResults = [SELECT Lead_Last_MQL_Date_Time__c FROM Event WHERE Id IN :events];         for (Event e : eventResults) {             //System.assertEquals(true, l.SQL_Scheduled__c);             System.assertEquals(e.Lead_Last_MQL_Date_Time__c, DateTime.parse('17/06/2020 13:00'));         }     } }


I have a model (v2.69) that renders smoke in the viewport. However while the model appears in the jpg output the smoke does not.  Every thing is in the same blender layer.  I have recently re-built the machine to Ubuntu 14.04 and the problem persists.  6mths ago it was fine, the hardware has not changed and the example files are in   GIMP works fine, the machine works fine and so this is looking like a Blender setting and something that is stopping the smoke from getting to the output file.  Stuart


I downloaded Chrome deb package from official website. Whet I open using software center and click install, the button shows "installing" and reverts in a few seconds. Running 16.04


inequality involving mean, median and variance

I'm looking to show $|{\rm med}(x)-\bar{x}|\le{\rm sd}(x)$. I did a bunch of simulations and the statement seems right to me. $$ {\rm Var}(x)=\frac{1}{n}\sum\left(x_i-\bar{x}\right)^2=\frac{1}{n}\sum\left((x_i-{\rm med}(x))+({\rm med}(x)-\bar{x})\right)^2\\ =\frac{1}{n}\sum(x_i-{\rm med}(x))^2+\frac{1}{n}2\sum(x_i-{\rm med}(x))({\rm med}(x)-\bar{x})+({\rm med}(x)-\bar{x})^2. $$ So I hope to show $$ \frac{1}{n}\sum(x_i-{\rm med}(x))^2+\frac{1}{n}2\sum(x_i-{\rm med}(x))({\rm med}(x)-\bar{x})\le0. $$ That is $$ \frac{1}{n}\sum(x_i-{\rm med}(x))(x_i-\bar{x}+{\rm med}(x)-\bar{x})\le0. $$ But it does not seem right because $(x_i-{\rm med}(x))(x_i-\bar{x})$ is only negative when $x_i$ is between ${\rm med}(x)$ and $\bar{x}$. Is $|{\rm med}(x)-\bar{x}|\le{\rm sd}(x)$ even correct?


What Pokémon from generations already introduced are currently obtainable in Pokemon Go?

I've noticed Pokémon from new generations are introduced in small batches, with more coming after the initial release of a new generation. Which ones should I be looking out for in Pokémon Go?


Proof of arithmetic mean of a sequence given the limit of the sequence

Prove that if $\lim_{n\to \infty}a_n=c$ then $\lim_{n\to \infty}A_n=c$ where $A_n$ is the arithmetic mean of the first $n$ of $a_n$. I was only able to prove that is true for a sequence of $1$.


how to connect nodes with a figure created in tikz?

I have created a sort of 'implies' sign (as well as a 'not implies' sign). How can I make them both connect two nodes?   \begin{document} \begin{tikzpicture}[rotate=45, transform shape]     \draw (-0.5,0)-- ++(+0.5,0);     \coordinate (B) at (0,0);     \draw ++(-0.5,0.15) -- ++(+0.5,0);     \draw (-0.15,-0.15)-- (0,0);     \draw ++(0,0.15)--+(-0.15,+0.15);     \draw (0,0) .. controls (+0.075,+0.075) .. (0,0.15);     \coordinate (A) at (-0.5,0.15);     \node [strike out,draw,anchor=text] (X) at ++($ (A)!.5!(B) $) {};     \end{tikzpicture}  \end{document}


How can I generate the ~ symbol in LaTeX?


Half my breaker panel went out and the other half when turned on has AFCI light

I got home last night and about half the lights and appliances were out.  The breakers were not tripped and turning them on didn't help. Some breaker circuits had electricity, and some didn't. The distribution seemed pretty random. For the breakers that did have electricity, the AFCI light was on in the breaker panel.  Unplugging almost everything also didn't help.  What might be wrong? Do I need an electrician?


Why does polynomial factorization generalize to matrices

I'm reading about linear algebra and I came across with the following theorem where I have a problem convincing myself:      Theorem 2.1 $\,$ Every linear operator on a finite-dimensional complex vector space has an eigenvalue.      Proof:       To show that $T$ (our linear operator on $V$) has an   eigenvalue, fix any nonzero vector $v \in V$. The vectors $v, Tv,  T^2v,..., T^nv$ cannot be linearly independent, because $V$ has   dimension $n$ and we have $n + 1$ vectors. Thus there exist complex   numbers $a_0,...,a_n$, not all $0$, such that      $$a_0v + a_1Tv + ··· + a_nT^nv = 0.$$ Make the $a$’s the coefficients   of a polynomial, which can be written in factored form as $$a_0 + a_1z  + ··· + a_nz^n = c(z − r_1)\cdots(z − r_m),$$ where $c$ is a non-zero complex number, each $r_j$ is complex, and the equation holds for all   complex $z$. We then have      $${\color{red}{ 0=(a_0I + a_1T + ··· + a_nT^n)v= c(T − r_1I)\cdots(T −  r_mI)v}},$$ which means that $T − r_j$ I is not injective for at least   one $j$. In other words, $T$ has an eigenvalue.$\;\blacksquare$   I'm having trouble with the factorized form of the matrix polynomial (in red). I understood that the factorization holds for a polynomial by the fundamental theorem of algebra but why does this also hold for matrices?  In other words, why is the the part I highlighted true? Does such an factorization always exist?    Could I have some help to see this? Thank you =)   P.S.  is my reference (page 3).  UPDATE:   Someone else also has asked the  before it seems.


Just the other day I got a push notification message that asked if I wanted to upload certain photos I took at a certain place to Google Maps for that place.  It kind of shocked me since I never remember allowing Google Maps access to my photos (must have tapped too quick sometime I guess) and I wonder if they have been uploading my photos like other applications upload your contacts as soon as you allow them access?  They could have analyzed it locally since there's geo information in my images but still the push notification came when I wasn't engaged with the app so that means it came from a server.  I wonder if my images are now in Google's cloud and linked to my account or it was just a suggestion made by analyzing my local data.


CSS Flexbox Center Items with Positioning

I'm trying to position 3 elements in a specific position with flexbox, all while being centered horizontally and vertically.  Like this:    This is what I have so far, what am I doing wrong here?    .container {   width: 100%;   max-width: 800px;   height: auto;   margin: 0 auto;   background: pink;   display: flex;   flex-wrap: wrap;   flex-direction: column;    .first  {      background: green;      height: 50px;     align-self: stretch;   }    .second {      background: blue;      height: 100px;   }    .third  {      background: crimson;      height: 100px;   } }

           Have a look at this fiddle:


Would time speed up near a large body of negative mass relative to observers in micro gravity?

Time tends to slow down near objects with large amounts of positive mass relative to observers in micro gravity.  Considering that negative mass is the opposite of normal mass and would time tend to speed up near a body of negative mass relative to observers in micro gravity?


Grant access on Secondary but not on primary in SQL Server logshipping

I have a strange situation wherein users need permission on log shipped DB  on secondary server but not on primary. The problem is, the login has access on many other DBs on primary server apart from log shipped DB and that needs to be maintained. My environment is SQL Server 2012 EE.  Is it possible to achieve this?  As a workaround what I have tried is granting temporary access on my primary DB just before the backup log-shipping starts and once the backup completes I have added a step to remove it. But the issue with this workaround is, the users can still access the primary log shipped DB when I try to grant them access just before the log backup. Any help would greatly be appreciated.


What is managed or unmanaged code in programming?

I am using a specific command in in my C# code, which works well. However, it is said to misbehave in "unmanaged" code.  What is managed or unmanaged code?


If $H \leq G$ and $[G:H]! \leq |G|$ then $G$ is not simple

I'm looking for verification:  My claim: If $G$ is a finite group and $H$ is a (proper)subgroup of index $k>1$, where $k! \leq |G|$, then $G$ is not simple.  Proof: Consider the set of left cosets of $G$ by $H$:  $$G/H = \{H,g_1H,\dots,g_kH\}$$  Then $\phi: G \rightarrow S_{G/H}$ is a homomorphism where we define:  $$\phi(g)[g_iH] = g g_iH$$  ($S_{G/H}$ is the group of permutations on elements of $G/H$ and of course $S_{G/H} \cong S_k$.)  Also $\ker \phi \neq G$ because $\phi(g_1)$ is clearly not the identity in $S_{G/H}$.  Because $\phi$ is a homomorphism,  $$ G/\ker\phi \cong \text{im}\phi$$  Then $|\text{im} \phi| \leq |S_k| = k!$ and if $k! \leq |G|$ then $|\ker\phi| > 1$ and $\ker\phi$ is a non-trivial normal subgroup of $G$.  Example: If a group of order $36$ has a subgroup of index $3$ or $4$ then the group is not simple.


Prove $n=m^3-3m^2+2m$, for any integer $m$, then $n$ is a multiple of $6$.  So far I have that $n=m(m-3)(m+3)$, which are $3$ consecutive integers so at least one must be a multiple of 2. I am not sure how to get any further? Maybe use 2 cases?   Thank you!


Computing gravitational acceleration with General Relativity

As seen , gravitational acceleration as a Newtonian concept can be considered in General Relativity as an artifact of the selected frame of reference for measurements. But can one compute the same value that Newton's inverse square law would give from the mass of a considered massive body and a distance to said body, however using mathematical objects introduced by GR? I'm thinking about a Schwarzschild metric tensor that would be constructed with a given mass and distance. Is there an explicit way of computing gravitational acceleration relative to the massive body from such a tensor, and if there is, what is it?


Can't execute my .jar JavaFX application

I'm trying to make the JavaFX application I made on Windows work for Ubuntu. I've made the .jar file and it works fine on Windows 10, but won't work on Ubuntu. Whether I double click it from the desktop (with running as executable enabled) or run it from the terminal, I keep getting some form of the error that it can't find my Main class. Javac also doesn't work, getting the same kind of error there. This is my MANIFEST file:  Manifest-Version: 1.0 Implementation-Title:  Implementation-Version:  Permissions: sandbox JavaFX-Version: 8.0 Class-Path:  Created-By: JavaFX Packager Implementation-Vendor:  Main-Class: Main   I have installed Java using the apt install default-jre command. Any ideas?  This is the error I get on running java -jar myApp.jar:  Could not find or load main class Main Caused by: java.lang.NoClassDefFoundError: javarx/application/Application   After installing javafx, which is necessary as some people pointed out, it still doesn't work. Running the java command gives the same (see above). Here are some examples of running the javac command:  javac myApp.jar or javac myApp  error: Class names, 'myApp.jar', are only accepted if annotation processing is explicitly requested   javac -cp myApp.jar or javac -cp myApp  javac: no source files


I am asked to prove the second mean value theorem:  Let $f$ and $g$ be defined on $[a,b]$ with $g$ continuous, $f\ge 0$, and $f$ integrable. Then there is a point $x_0 \in (a,b)$ such that $$ \int_{a}^{b}f(x)g(x)dx = g(x_0) \int_{a}^{b}f(x)dx. $$  My (incomplete) proof goes as follows:  Since $ [a,b] $ is compact and $ g $ is continuous, we know there exist $ x_1, x_2 \in [a,b] $ such that $ g(x_1) \le g(x) \le g(x_2) $ for any $ x \in [a,b] $. Thus, we have the following string of inequalities $$ f(x)g(x_1) \le f(x)g(x) \le f(x)g(x_2), \, \, \forall x \in [a,b], $$ $$ \Rightarrow g(x_1)\int_{a}^{b} f(x)dx \,\le \, \int_{a}^{b} f(x)g(x) dx \, \le  \, g(x_2)\int_{a}^{b}f(x)dx. $$  My problem now is to show the final equality. It seems to me the intermediate value theorem is somehow involved, but I cannot see how to use it. Furthermore, how do I make use of the $f\ge 0$ condition in the hypothesis?


JavaScript detect in which element an object is created

Note: This question is marked as a duplicate but I'm not looking to get the script element but the div element as seen in my code where the script is in. Whereas the "duplicate" is looking to get the script tag. this is not the case with my script.  I am using JavaScript for my current project and was wondering if there is a way to detect which HTML element an object was created in.  Consider the following code.  Editable.js  function Editable(elem, form1, form2) {      this._edit_form;     this._value_form;     this._current_form;      //Getters     this.getEditForm        = function() { return this._form1; };     this.getValueForm       = function() { return this._form2; };     this.getCurrentForm     = function() { return this._current_form; };      //Setters     this.setCurrentForm = function(current_form) { this._current_form = current_form; };      this.switch = function() {          if(_current_form == _edit_form)             _current_form = _value_form;         else             _current_form = edit_form;      };      var __construct = function() {          $(this.elem).html(this._value_form);      }();  }   -  <html> <head>     <script src='Editable.js'></script> </head>    <body>       <div>       <script>new Editable(this, "Company Name", "<input type='text' placeholder='enter a company name' />");</script>       </div>    </body> </html>   The point of an editable is that it has a value form and an edit form. I want to be able to switch between those by removing the text from the element and placing an HTML Input field. This change is supposed to happen when clicking the element.  The problem now is that "this" logs as  Window {top: Window, window: Window, location: Location, external: Object, chrome: Object…}   While the object would need to know what element it is in so it may edit it's contents. So I would need the DIV HTML element for that.  Thank you very much.


Viewing the exact timestamp of a question on Stack Exchange

Is there any way to view the exact timestamp of a question asked on Stack Exchange? (ideally second precision)


Did Thanos exclude certain alien races from the snap?

As far as I know, Thanos killed half of a number of alien species before he got the six Infinity Stones and did the rest. The races include:   Gamora's species Nebula's species The other children of Thanos's species   We know Thanos can exclude certain beings from the lottery (see ).  Is there any evidence for whether these particular races were excluded from the snap, or did those races end up being cut in half again?


Is MVT for integral true without the condition, $g>0$ or $ g<0$?

The mean value theorem tells  " If $f:[a,b]\rightarrow \mathbb R$ is continuous and $g$ is an integrable function that does not change sign on $[a, b]$, then there exists $c$ in $(a, b)$ such that  $\int_a^b f(x)g(x)dx=f(c)\int_a^b g(x)dx$."  If $g$ changes its sign, is this theorem still true?


I'm running Ubuntu 14.04 LTS within a VMware workstation virtual machine and I have managed to setup a network by changing the samba.conf file to the WORKGROUP of my choice. Doing so gave me access to the User folder on the host machine (Win8.1) after providing the proper Username and Password (although I setup a WORKGROUP, here that WORKGROUP was renamed as a Domain for some reason). The problem is that there are several other folder setup on the host machine to be shared (according to windows 8.1) and these folders are displayed in the guest OS (Ubuntu) as expected, however the username and password will be accepted and I cannot gain access to them. In addition, there are other folders in the directory that I have no clue about. They seem to be folders from the host that show up, but I never set up sharing for them to begin with from within Win8.1. Also they have weird syntax that I assume comes from Linux (I am new to Linux) that places a "$" at the end of the folder name, like this:  smb://hostpc/folderA$ smb://hostpc/folderB$   I messed around with the smb.conf file and some features from the Software Center like tools for mounting and manipulating filesystems, but that just ended up mounting another drive in the virtual guest machine.   The bottom line is that a key folder I am trying to access is seen in the network directory, such as smb://hostpc/folderKEY , but the gives the following error on opening.    unable to access location - failed to mount Windows share: Invalid argument   The folder belongs to an exFAT partition on an external USB drive attached to the host Machine OS (Win8.1). I can access it no problem from Win8.1, but not Ubuntu in the VM. The other folders belong to the host machine. I would get rid of all passwords to gain access to them, but I do not know how to do that.  Any pointers?


From axiom of regularity, how can I prove $x \notin y \lor y \notin x$

From axiom of regularity, how can I prove following statement? $$x \notin y \lor y \notin x$$  I’ve been reading about ZF theory.  So far, I understood the axiom of regularity as follows:  $$\forall x (x \neq \phi \Rightarrow  \exists z. z \in x \land z \cap x = \phi)$$  From this, (and with other axioms in ZF), I should be able to derive the first statement, but have not managed to do so.  Question:   How can I derive the statement within ZF?


Prove $2^{(A \cup B)}=\left\{ X\cup Y| X\in 2^A, Y\in 2^B\right\}$ for sets $A,B$.

Please help me prove $2^{A\cup B}=\left\{ X\cup Y| X\in 2^A, Y\in 2^B\right\}$


Can the referees self-evaluate during the breaks/intervals?

During football matches intervals, between halves or before overtime, are the referees able to take a look at the dubious episodes of the first half?  Should they be able to?


Now before you all call me a retard Let me just state that I know nothing about the electrical world at all.  But I need someone help me answer my question   So I have a TV that says on the back 'Input; DC 12v 3000aH' and I have a power supply that says 'Output; DC 12v 2A'  Will that work? Or burn down my house? (I assume 'aH' and 'A' means the same thing) My common sense tells me that the power supply should say 'Output; DC 12v 3A' (Fyi i lost the original power supply for the TV)  So I need to buy a new one  Much appreciate anyone who answers this


Story identification: Old man has hacker neighbor who mysteriously dies

Does anyone know this story? It was a novelette published with another one (I don't remember what it was) in . The premise was that the narrator is an old man whose neighbor, a hacker, dies under mysterious circumstances. A younger woman who is an expert in computer security is hired by the police to investigate what happened, and she has a fling with the narrator. After a while she dies as well, and the narrator realizes that it is an evil force that comes through electric lines is responsible for the killings. The title has interesting formatting in that it ends with a square (much like a command prompt cursor: [_] )


With a list like so:  int[] numbers = {1,2,2,3,3,4,4,5};   I can remove the duplicates using the Distinct() function so the list will read: 1,2,3,4,5  however, I want the inverse. I want it to remove all of the numbers that are duplicated leaving me with the unique ones.  So the list will read: 1,5.  How would this be done?


Hukuhara and Generalized Hukuhara Diffrentiability

I know this question has no relevance to the analysis, but it seems some friends about all the information they contain mathematical topics. So please forgive me I have a question about fuzzy differential which i say it.My professor says that my solution is wrong,but i believe it is right.According to papers and books related to this problem,which i read,my solution is right. If you can, please send the correct answer for me. Let $f:\mathbb R \to \mathbb R_f$ with $f(t)=(1,2,3)t$ be a function. We're investigating whether or not the existing Hukuhara  derivative and generalized  Hukuhara derivative at $t_0 =0$ . According to definition:  \begin{align*}f'(x)&=\lim_{h\to 0}\dfrac{f(x+h) \ominus_H f(x)}{h}\\  &=\lim_{h\to 0}\dfrac{[(1+\alpha)(x+h),(3-\alpha)(x+h)] \ominus_H [(1+\alpha)(x),(3-\alpha)(x)]}{h}\\ &=\lim_{h\to 0}\dfrac{[(1+\alpha)(x+h-x),(3-\alpha)(x+h-x)]}{h}\\ &=[(1+\alpha),(3-\alpha)]\\ &=(1,2,3)\end{align*}  And generalized  Hukuhara derivative is equal with  Hukuhara derivative.Can you tell me what is wrong? If writing answer was too hard take a picture and send me the photo.so Thanks.  ganhard1372@gmail.com


Choosing web mapping API to use with MySQL for making map of one country?

I hope this question isn't too general, but I'm new to using maps, I'd like to make a map of one country on which I can plot points according to their geocodes from my mysql database, and to have the administrative districts outlined, like on google maps api, except I have read that google maps doesn't allow you to show just one country, and also, I'd like to use a free api if possible.    Would anyone be able to point me in the right direction?


Javascript not setting property of undefined in prototyped object

I have an object I'm trying to set a property to.  However, I'm getting the type error Uncaught TypeError: Cannot set property 'meh' of undefined.  I'm trying to set this property using prototype.  greenify = {     color: function(){         console.log("Turned green");     } };  greenify.prototype.meh = function(){     console.log("Off"); }  console.log(greenify);   Can anyone explain why it's claiming the greenify object is undefined and how to fix it?


Does $1+x+x^2 ... x^{p -1}$ being a prime number imply p is prime?

Let $p$ and $x$ be two positive integers greater than 2. If it is given that the sum : $$1+x+x^2+x^3... x^{p -1}$$  is a prime, is it possible to prove or disprove that $p$ is prime? If so, what would this proof be?


Why the singleton initialization failed (link error)

I have defined a singleton as below:  struct Conditions {     bool bMonolithic;     bool bKeepVersion;     bool bToc;      static Conditions& initialize() {         if (instance == nullptr)             instance = new Conditions;         return *instance;     } private:      Conditions():bMonolithic(false), bKeepVersion(false), bToc(false) {}     static Conditions* instance; };   When I try to use it, I call the initialize() function:  Conditions& kcondition = Conditions::initialize();   However, the compiler gives me this error:  error LNK2001: unresolved external symbol "private: static struct Conditions * Conditions::instance" (?instance@Conditions@@0PEAU1@EA)   What is the correct way to use the singleton?


I think I found a bug in the filesystem and Windows doesn't seem to have a place to report bugs, so I will post it here in case anyone can enlighten me. First you should note that Windows File Explorer doesn't allow files to end with a . (dot).  Create a random file, say a.txt Use cmd utility ren to rename file, you can do ren "a.txt" "a.txt../"  Now you have an inaccessible file a.txt.. I also reproduced it programmatically using MoveFile API function .


Why Op amp amplifier's voltage difference zero?

In studying the OpAmp amplifier, the derivations always take the voltage difference between the inverting- and non-inverting input to be approximately zero. But I can't find any explanation "why". This consideration is always taken for both the inverting- and non-inverting amplifier.   Why is this voltage difference always approximately zero? Any explanation?   I found a lecture of my senior professor, where he said that "as the ideal op-amp's input impedance is infinite, its positive- and negative terminal are virtually short. I mean very little voltage drop which can be neglected."   I can't understand why a very high (practical case) input impedance may cause a very little voltage drop.


I am trying to display the fraction of two integrals as follows:  \begin{equation} E_{sym} = \frac{\iint\displaylimits_{A_{sym}}\sqrt{(u + u_r)^2 + (v + v_r)^2 + (w - w_r)^2}dA}{{\iint\displaylimits_{A_{sym}}\sqrt{u^2 + v^2 + w^2} dA}}, \end{equation}     The problem is that in the frac command the lower limit on the double integrals appear next to the double integral signs, instead of below them. Outside the frac command this does not seem to be a problem:  \begin{equation} E_{sym} = \iint\displaylimits_{A_{sym}}\sqrt{(u + u_r)^2 + (v + v_r)^2 + (w - w_r)^2}dA/{\iint\displaylimits_{A_{sym}}\sqrt{u^2 + v^2 + w^2} dA}, \end{equation}     Any ideas how this could be fixed?  Any advice would be much appreciated.  Thanks very much,  Louis


Trying to upgrade to a new release version, having trouble with /etc/apt/sources.list

I am trying to upgrade to a new release version following the instructions of the accepted answer .   Someone mentioned in the comments section of the OP's question that you should change http://old-releases.ubuntu.com/ubuntu/ to http://us.archive.ubuntu.com/ubuntu/ so that's what I did. The current state of my sources.list file is as shown below.      When I try to run sudo apt-get update && sudo apt-get dist-upgrade, I get   Ign:1 http://us.archive.ubuntu.com/ubuntu disco InRelease Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease                                                             Ign:3 http://us.archive.ubuntu.com/ubuntu disco-updates InRelease                                                             Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease                               Hit:5 https://repo.skype.com/deb stable InRelease                                          Ign:6 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease                        Hit:7 http://ppa.launchpad.net/bit-team/stable/ubuntu disco InRelease Ign:8 http://us.archive.ubuntu.com/ubuntu disco-security InRelease Err:9 http://us.archive.ubuntu.com/ubuntu disco Release                               404  Not Found [IP: 91.189.91.39 80] Err:10 http://us.archive.ubuntu.com/ubuntu disco-updates Release                      404  Not Found [IP: 91.189.91.39 80] Err:11 http://us.archive.ubuntu.com/ubuntu disco-backports Release   404  Not Found [IP: 91.189.91.39 80] Err:12 http://us.archive.ubuntu.com/ubuntu disco-security Release   404  Not Found [IP: 91.189.91.39 80] Ign:13 http://ppa.launchpad.net/pmcenery/ppa/ubuntu disco InRelease Err:14 http://ppa.launchpad.net/pmcenery/ppa/ubuntu disco Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done E: The repository 'http://us.archive.ubuntu.com/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu disco-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/pmcenery/ppa/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   What should I do?


WiFi connecting problem in 5GHz networks

I have a 2017 13” MacBook Pro Retina, model A1407,  which doesn't even show my 5GHz WiFi connection. I tried so may times but failed. Other devices at home is working just fine with 5GHz network on WiFi,  But my MacBook Pro doesn't.   How can I make it work?


Using tee to get realtime print statements from python

I have a python script that looks something like this:  for item in collection:     print "what up"     #do complicated stuff that takes a long time.   In bash, I run this script by doing the following:  $ python my.py | tee my_file.txt   However, all I see in bash is a blank line until the program finishes. Then, all of the print statements come all at one.  Is this the expected operation of tee? Can I use tee to see the output in real-time?


What does ${!#} mean in Shell scripting?

Found this in an obfuscated malicious shell script, beginning with:  ${!#}${*^} <<<...  Could not find any reference to ${!#}, but when echo'd, it outputs -bash. Is this a secret referene to the running shell? Why there is an extra dash then?  Thanks!


What is the difference between 'What are you?' and 'What do you do?' in the job meaning?  How to sense this difference if I need to ask about profession?


How can I get the command-line output of a DOS tool using Perl?

I want to meassure the throughput of a link using Windows build-in FTP tool inside a Perl script. Therefore the script creates the following command script:  open <ip> <username> <password> hash get 500k.txt quit   Afterwards I run the command script using the following Perl code:  system(@args); @args = ("ftp", "-s:c:\\ftp_dl.txt"); system(@args);   If I run the command inside a DOS-box the output looks like this:  ftp> open <ip> Connected to <ip> 220 "Welcome to the fast and fabulous DUFTP005 ftp-server :-) " User (<ip>:(none)): 331 Please specify the password.  230 Login successful. ftp> hash Hash mark printing On  ftp: (2048 bytes/hash mark) . ftp> get 500k.txt 200 PORT command successful. Consider using PASV. 150 Opening BINARY mode data connection for 500k.txt (14336 bytes). ####### 226 File send OK. ftp: 14336 bytes received in 0.00Seconds 14336000.00Kbytes/sec. ftp> quit 221 Goodbye.   To be able to get the throughput I need the extract that line:   ftp: 14336 bytes received in 0.00Seconds 14336000.00Kbytes/sec.   I'm not very familiar with Perl. Does anybody have an idea how to get that line?


Keras - no prediction probability for multiple output models?

I have built the following model:  def create_model(conv_kernels = 32, dense_nodes = 512):      model_input=Input(shape=(img_channels, img_rows, img_cols))     x = Convolution2D(conv_kernels, (3, 3), padding ='same', kernel_initializer='he_normal')(model_input)     x = Activation('relu')(x)     x = MaxPooling2D(pool_size=(2, 2))(x)     x = Convolution2D(conv_kernels, (3, 3), kernel_initializer='he_normal')(x)     x = Activation('relu')(x)     x = MaxPooling2D(pool_size=(2, 2))(x)     x = Dropout(0.25)(x)     x = Flatten()(x)      conv_out = (Dense(dense_nodes, activation='relu', kernel_constraint=maxnorm(3)))(x)      x1 = Dense(nb_classes, activation='softmax')(conv_out)     x2 = Dense(nb_classes, activation='softmax')(conv_out)     x3 = Dense(nb_classes, activation='softmax')(conv_out)     x4 = Dense(nb_classes, activation='softmax')(conv_out)      lst = [x1, x2, x3, x4]      model = Model(inputs=model_input, outputs=lst)     sgd = SGD(lr=lrate, momentum=0.9, decay=lrate/nb_epoch, nesterov=False)     model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy'])      return model   When I do a prediction:  model.predict(X_test)   it works properly. However, when I want to get prediction probability like this:  model.predict_proba(X_test)   my model has no predict_proba function. Why not? Is it because of the multiple-output nature of the model?


Does the speed of light change in a gravitational field?

We know that even light follows a parabolic path in uniform gravitational field. In that case does it change its speed ? Or does it move with constant speed unlike regular objects?


Visa-free entry into Japan and passport expiration date

I recently went on holiday to Japan for 3 weeks. I knew my passport was getting close to expiry, but my trip was entirely within the validity period, and I read that Japan didn't have minimum validity requirements ().  I got through immigration with no worries. I looked at my landing permission sticker and was mildly interested to note that the 90-day period of stay ended exactly when my passport expired - clearly they'd just cut down the period to match my passport validity. Except they didn't. I checked my partner's sticker and it had exactly the same period as mine, and she has years left on her passport. By sheer luck, I had exactly 90 days left on my passport.  Not that I ever intend on doing this again, but I was wondering what would have happened if I had less than 90 days on my passport? Would the period match my passport validity, or would something else happen?


Installing 16.04.01.  I have installed Ubuntu with my own user details, james.  I have then created two other users, hacker, for being able to adjust my own account and toor, to have an account I can log into with root privileges.  I edited /etc/passwd and /etc/group to change the uid/gid of hacker from 1001 to 502 and of toor from 1002 to 0.  I also changed uid and gid on the /home/xxx directories to match, and changed the home directory for toor to /root.  When I did this, the two accounts disappeared from the list of Users under Settings.  I subsequently ran usermod on the hacker account and was told that nothing was changed.  I have now run find / -uid 1001 -exec chown 502 {} + and a similar command for gid.  Still no sign of the two accounts when I log in.  I know the users exist in the system as I tried to create a new hacker account and was told that it already existed.  Any ideas what I have missed and how to reinstate the accounts in a) Settings and b) the login screen?


Have a question on keyboard inputs. Currently I am using this method to read my input, Gdx.input.isKeyPressed(Input.Keys.A), it is working fine. But I do realized at times there are multiple instances of A being pressed when I only press once. And I understand that the method had to be placed in the render() method for it to work. Is the problem due to the refreshing?   My question is, how can I only detect 1 instance of "A", when A is pressed for once.


How do I put a tilde directly underneath an inequality (i.e. directly beneath < or >)?


Screw Drive garage door opener motor won't open but motor runs for 1-2 seconds

My garage door motor which opens and closes on a screw drive system has stopped opening my door. When I press the remote or button in the garage it attempts to open for just a second or 2 than quits. What is my issue? Do I need a new motor or can it be fixed....   So I recent had a Garage door "professional" come out to my house and look at my garage. I originally thought I was having a motor problem because it would only lift the door sporadically. After performing a 25 point inspection he believed he located the problem, which was the spring system from my Wayne Dalton garage door (torquemaster). He told me how horrible of a system they are and they don't fix them; because of that, they only replace the entire system and that would cost me $700 or more. So now I'm left trying to figure out what I need: torquemaster springs, bracket assembly, both, or if I need something completely different. I need some Wayne Dalton experience.


Affine algebraic subset of $\mathbb{A}_k^4$

How do I go about proving the subset $V = \{(s^3, s^2t, st^2, t^3)\mid s, t \in k\}$ is an affine algebraic subset of $\mathbb{A}_k^4$ and find $\mathbb{I}(V) \subset k[x_0, x_1, x_2, x_3]$?


What is correct method to declare using statements (inside namespace or outside namespace)

I am running StyleCop over my C# code and it keeps reporting that my using statements should be inside the namespace.  Is this correct? Where i should keep this?  Both code is working fine, but i want to know what is correct way?


Let a function f be continuous. Assume $\int_a^b f=0$ Prove $f(x)=0$ for all $x\in [a, b]$

Let $f:[a, b]\to \mathbb{R}$ be continuous. Assume $f(x)\geq 0$ for all $x\in[a, b]$, and that $$\int_a^b f\text{ }\mathrm{ d}x=0$$ Prove that $f(x)=0$ for all $x\in[a, b]$.  Would you recommend using a direct proof or a proof by contradiction by assuming there exists $y\in[a, b]$ such that $f(y)\geq 0$?


I have a python app and java app. The python app generates input for the java app and invokes it on the command line.  I'm sure there must be a more elegant solution to this; just like using JNI to invoke C code from Java.  Any pointers? (FYI I'm v. new to Python)    Clarification (at the cost of a long question: apologies) The py app (which I don't own) takes user input in the form of a number of configuration files. It then interprits these and farms work off to a number of (hidden) tools via a plugin mechanism. I'm looking to add support for the functionality provided by the legacy Java app.  So it doesn't make sense to call the python app from the java app and I can't run the py app in a jython environment (on the JVM).  Since there is no obvious mechanism for this I think the simple CL invocation is the best solution.


Expected Expression before ... In Switch Statement

I am getting a compilation error in this block of code:  switch(event) {     case kCFStreamEventHasBytesAvailable:         UInt8 buf[BUFSIZE];         CFIndex bytesRead = CFReadStreamRead(stream, buf, BUFSIZE);         if (bytesRead > 0) {             handleBytes(buf, bytesRead);         }         break;     case kCFStreamEventErrorOccurred:         NSLog(@"A Read Stream Error Has Occurred!");     case kCFStreamEventEndEncountered:         NSLog(@"A Read Stream Event End!");     default:         break; }   The line UInt8 buf[BUFSIZE]; is causing the compiler to complain "Expected expression before UInt8" Why?  Thanks!


Finding the limit of $\sqrt[n]{{kn \choose n}}$

As part of homework I'm trying to find the limit of $\sqrt[n]{{kn \choose n}}$ (with $k\in\mathbb{N}$ a given parameter).  I've seen , on which the only answer suggests using Stirling's approximation, which I've never learned and I can't seem to understand.  Trying to solve this myself, I first tried finding the ratio directly, which gave me $$\frac{{kn+k \choose n+1}}{{kn \choose n}}=\frac{\frac{\left(kn+k\right)!}{\left(n+1\right)!\left(kn+k-n-1\right)!}}{\frac{kn!}{n!\left(kn-n\right)!}}=\frac{\left(kn+k\right)!n!\left(kn-n\right)!}{\left(n+1\right)!\left(kn+k-n-1\right)!kn!}  =\frac{\left(kn+k-n\right)\left(kn+k-n+1\right)\cdots\left(kn+k\right)}{\left(n+1\right)\left(kn-n+1\right)\cdots\left(kn-n\right)} $$ That I'm not really sure how to use.  So instead I tried finding something that I might be able to say is bigger and smaller to use squeeze on, which gave me: $${kn \choose n}=\frac{kn!}{n!\left(kn-n\right)!}=\frac{\left(kn-n+1\right)\cdots\left(kn\right)}{n!}\leq k^{n}\frac{n^{n}}{n!}$$ And then showing that  $$ \frac{\frac{\left(n+1\right)^{n+1}}{\left(n+1\right)!}}{\frac{n^{n}}{n!}}=\frac{\left(n+1\right)^{n+1}n!}{n^{n}\left(n+1\right)!}=\frac{\left(n+1\right)^{n}\left(n+1\right)}{n^{n}\left(n+1\right)}=\left(1+\frac{1}{n}\right)^{n}\to\epsilon$$ gives the larger limit of   $$\sqrt[n]{{kn \choose n}}\leq\sqrt[n]{k^{n}\frac{n^{n}}{n!}}=\sqrt[n]{k^{n}}\sqrt[n]{\frac{n^{n}}{n!}}=k\cdot\sqrt[n]{\frac{n^{n}}{n!}}\to k\cdot e  $$  But it's obviously not the limit itself since for i.e. $k=1$ the limit is 1 and $k=2$ the limit is 4.  So I'm pretty much stuck, any hints on how I might be able to solve it?


I need to calculate the following limit $$ L=\lim_{n\rightarrow\infty}\sum_{i=1}^n\frac{n}{n^2+i^2} $$  I get that $\frac{1}{2}\leq L\leq1$ and I think that $L=\frac{1}{2}$ but I can't prove it.  Can someone give me a hint?


Can you have quantum gravity without gravitons?

I was thinking about whether quantum gravity needs gravitons. One can do a sum over histories of curved spaces perhaps without having to have gravitons. But the term "quantization" implies that you are taking classical gravity and writing it in terms of quanta of the fields. Yet a sum over histories is part of quantum field theory and yet doesn't necessarily have to include quanta. Yes, the electromagnetic field has a description in terms of fields or particles. On the other hand, one can formally write down a 'fermion field' but this is merely a shorthand for the collection of fermion particles. (ie. there is no such thing a fermion field in the sense that it has a value for every point in space). So is there anything wrong with treating gravity purely in terms of sum over histories of curved surfaces (as Hawking was inclinded to do), or is there some necessity to write it in terms of 'quanta' like gravitons as in string theory. After all, gravitons might not exist, or be unable to be detected by any means. The only thing I can see that might be inconsistent is to decide how to treat feynman graphs of fermions entering a black hole and then the black hole evaporating. But Feynman tells us we must add up all paths including those travelling faster than light, so there would be no problem including fermion lines that entered a black hole and came out again. So you would have feynman graphs that were overlayed on curved space which included black holes. And summed over them. That seems to cover most of what can happen in the Universe... What am I missing?


Counting occournces of specific regular expression in a string in python

I have a list of  three string like:   text_list=['I think, ] + {F uh, } I wonder ] if that worked + {F uh, } say. /','You might try, {F uh, }  /','I dont know' ]   I want to count {F uh, } using regular expression and count its frequency for each string in text_list. Here is my code:  filler_dic=dict() pattern = re.compile('\{F\s.+\}') for line in text_list:       if(pattern.search(line)):             res=sum(1 for m in re.finditer(pattern, line))             filler_dic[line]=res       else:            filler_dic[line]=0   For first string in list there are two {F uh,} so  it should give two but its giving 1.  Can anyone help and suggest some solution.


What is "join" in MySQL without anything in front?

SELECT ID, Name, Marks, Grade  FROM Students AS s  JOIN Grades AS g ON s.Marks BETWEEN g.Min_Mark AND g.Max_Mark;   I browsed numbers of resources about left join, right join, inner join and full outer join, but I have no idea what is this "join" means. Is this some shortcut? if not, what is this?  Thanks.


Possible to see total reputation from one post?

Wondering if it's possible to see total amount of reputation over time generated by one post for a given user.  Note that it's not simple upvotes * 10 - downvotes * 2 math - there is a cap of 200 daily reputation.


Stop my computer from charging when the battery is full?

I've read online before that if you charge your laptop when it is full, it will eventually "wear out" the battery.  Is there a way to stop my laptop from accepting any charge when its battery is over 95% full?


Is "$a + 0i$" in every way equal to just "$a$"?

I'm having a little argument with my friend. He says that "$a + 0i$" is, in every way, absolutely equal to "$a$" (e.g.: $2 + 0i = 2$).  I say this is practically the case, so in every calculation you just assume that "$a + 0i$" is equal to the real number "$a$" and you always get the right results (this might not even be true, but I am no expert and as far as I can see this is the case). But then again, I believe that just cutting away "$+ 0i$" makes this number is not the same kind of number anymore, it's changed its structure and is not totally equivalent anymore. This is where he says I am absolutely wrong.  So, is it mathematically (strictly speaking!) perfectly fine to say that every complex number with an imaginary part of $0$ is just a real number? Or does this change the mathematical structure so much that it cannot be mathematically-valid but just something that happens to work (which is what I believe)?  I must say that I believe a complex number is one entity, whilst he believes that it is just a conglomerate of other entitites. So, as one said here, "$(a + bi) - bi = a$", I believe is barely a good argument. But then again: is it correct to view $a + bi$ as a single entity (like "$5$" or "$2$", just consisting of multiple symbols)? I'm (as a non-mathematician) not sure there either.


Two transits in Europe do I need a transit visa? Or any kind of visa?

I'm travel from Cairo to Rome and from Rome to Amsterdam to Canada two transits in Europe is that need a transit visa? Or any kind of Visa for just to be inside the two airports? I'm a permanent Resident of Canada and I travel with my Egyptian passport.


Do not display the posting time/user card in review; it makes audits easily detectable

When getting audited in the review queues, it's often extremely obvious. If the date that a question or answer was posted is more than 20-25 minutes ago it's not going to be a new First Post or Late Answer.  This enables the wily user to be extra careful when reviewing these posts and pass audits easily.  For instance, this is obviously a real review:        This one is a fake:        Removing the time/user card completely would almost completely stop people being able to dodge audits. They'd have to click on every question and open it in a new tab, which would be unbelievably tedious; surely no one will do that 1,000 times?  I added the user card as an option because it might be easier, and the reputation of the poster shouldn't really be a factor in the outcome of a review.


What is the lexical class of the word 'worth' when used in a sentence like "Is this apple worth $3?"

The question  got me thinking about what part of speech, or lexical class, the word 'worth' takes?  A comment in  advises to treat 'worth' as an adjective, but I'm not sure that's right. 'Worthy' is an adjective, but that's not the same as 'worth'.  In the title question you could replace 'worth' with the phrase 'of comparable value to'; what part of speech would that phrase be considered?  Are the word and the phrase in the same lexical class?  Edit:  Just to throw another option out, after a stimulating discourse under the answer provided by @Henry:   mentions that used in the context of this question, 'worth' is considered an adjective, but it also notes that      The modern adjectival senses of worth compare two noun phrases, prompting some sources to classify the word as a preposition. Most, however, list it an adjective, some with notes like "governing a noun with prepositional force."   It also notes that      Joan Maling (1983) shows that worth is best analyzed as a preposition rather than an adjective.   If viewed as a preposition, then it is easy to replace 'worth' with another preposition of somewhat equal meaning, such as "Is this apple about $3", "Is this apple under $3", or "Is this apple over $3".  Adjective, infinitive, or preposition?  ...or is this a rare case of an old language usage that straddles multiple lexical classes in modern language?


tcolorbox listing error using beamers begin{frame}

I've just started using the tcolorbox package for slides for a LaTeX course. It works nicely to box LaTeX code, interacting with the listings package. However, I ran into trouble when I tried to make a box of example code for a beamer frame, it fails.  \documentclass{beamer} \usepackage[listings]{tcolorbox}  \begin{document} \begin{frame}[fragile]{Example}  \begin{tcblisting}{listing only}  \begin{frame}{equation} $a =  b$ \end{frame} \end{tcblisting}  \end{frame} \end{document}   I get errors "undefined control sequence \end{tcblisting}" and other errors  Commenting the \end{frame} before the \end{tcblisting} outputs ok. Also, running the code inside an article documentclass instead of a beamer class is also ok.  Can anyone point out what I'm doing wrong here?  thanks


Is the ideal $\langle x^2,x+1 \rangle$ of $\mathbb{Z}[X]$ a principal ideal ?

I computed the gcd of the 2 polynomials in the ideal and their gcd is equal to 1 ,using euclid algorithm.  I want to know if the ideal in the title is a principal ideal and why ?   I know a principal ideal is the ideal generated by only one element.So $\langle  x^2,x+1 \rangle = \langle 1 \rangle$ but if that was a principal ideal then any ideal generated by 2 or more ideals would be principal because he could be generated by $1$ or some gcd of those polynomials. I think the same for non polynomial rings .. since the gcd can be 1 or any number , any ideal can be generated by one element so any ideal would be principal.What am I missing ?


Paste a multi-line Java String in Eclipse

Unfortunately, Java has no syntax for multi-line string literals. No problem if the IDE makes it easy to work with constructs like     String x = "CREATE TABLE TEST ( \n"              + "A INTEGER NOT NULL PRIMARY KEY, \n"             ...   What is the fastest way to paste a multi-line String from the clipboard into Java source using Eclipse (in a way that it automatically creates code like the above).


Rhyming in the 17th and 18th centuries. e.g. "eye" and "symmetry"

I first ran across this problem in reading William Blake's the Tiger many years ago.  In the first stanza "eye" is obviously meant to rhyme with "symmetry."  Recently I ran across the same jarring rhyme in Andrew Marvell's To His Coy Mistress, the word "try" (line 27) is meant to rhyme with "virginity."  In both cases, in modern American English this is like reconciling a long "i" with a long "e".  I don't buy the explanation that this was just poetic license on the party of either of these poets. I'm sure that in their time they would have not have accepted such a rattling dissonance.  When I learn a poem I read it aloud, but I'm at a loss how to pronounce this. I doubt the answer is either/or, but rather somewhere in between.  Can anybody come up with a likely way of reconciling these two vowels, with an example of how to pronounce it?


With Apa6 Class and Biblatex: Undefined Control Sequence \end

I've been attempting to get BiblaTeX to work with the Apa6 Document class. However, when I run pdflatex, biber, and pdflatex again, I get two errors:   Undefined Control Sequence. testtesttest \cite{Example01} Undefined Control Sequence. \end   Here is my tex file:  \documentclass[doc,12pt,biblatex]{apa6}  \usepackage{csquotes} \usepackage[american]{babel}  \addbibresource{bibliography.bib}  \shorttitle{Short APA title}  \begin{document}   testtesttest \cite{Example01}   \printbibliography \end{document}   Here is my bibliography file:  @misc { Example01,   author = "Bob Smith",   title = "A Million Random Stories with 100,000 Normal Characters",   publisher = "Bob's Publishing",   year = "2017" } @book { Example02,   author = "John Doe",   title = "Lorem Ipsum 2: The Lipsuming",   publisher = "Doe Books",   year = "2016" }   Notes   I'm using pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) I'm using biber 2.7 (beta) I only need to remove the \cite{Example01} phrase, and it compiles completely The pdflatex appears to compile an incomplete version of the citations, eg. the citation looks like "Smith, labelyearlabelmonthlabelday" and the bibliography is similar. I'm using the texlive-full and texlive-publishers packages on Ubuntu  17.10.


I'm tring to install jdk 8 for weeks, but it fails.Following are some outputs,  sudo update-alternatives --config java  There is only one alternative in link group java (providing /usr/bin/java): /opt/java-oracle/jdk1.8.0/bin/java Nothing to configure.   which java     /usr/bin/java   java   bash: /usr/local/java/jdk1.7.0_51/bin/java: No such file or directory   ls -l /usr/bin/java   /usr/bin/java -> /etc/alternatives/java   ls -l /etc/alternatives/java  /etc/alternatives/java -> /opt/java-oracle/jdk1.8.0/bin/java   sudo update-alternatives --config javac     /opt/java-oracle/jdk1.8.0/bin/javac   1         manual mode   javac     Error: could not find libjava.so   Error: Could not find Java SE Runtime Environment.   If you can please give me a help to slove this problem.  Thank You


How can I '\input' a file without getting the implicit newline?

Intro  I'm working on a lightweight package that allows you to put any content (typically LaTeX code) in an environment, then use that content multiple times, each time scanned separately, so you can use it both as verbatim output and interpreted as LaTeX.  Its main purpose is to typeset LaTeX code and its 'result' side-by-side; useful for documenting TeX packages without having to copy/paste code. But it has other purposes as well.  After experimenting with \scantokens until I gave up in tears, I arrived at the filecontents environment, which almost solved my problem singlehandedly!  The Problem  The problem is, when reintroducing filecontented code through \input, LaTeX adds an implicit newline at the end, which translates to whitespace that I can't seem to get rid of.  I've seen many semi-related questions floating around, with answers employing techniques like:   reading a file line-by-line, using \everyeof in some clever way, playing with \endlinechar or using packages such as catchfile   but none of them provides a clear answer to the following question:  The Question  How can I \input a file without getting the implicit newline?  Minimal Working Example  \documentclass[margin=1mm]{standalone}  \usepackage{filecontents}  \begin{filecontents*}{tmp.tex}     \LaTeX{}\end{filecontents*}  \begin{document}     \fbox{\input{tmp.tex}} \end{document}     Note the extra whitespace to the right of the box.  Note also that I'm definitely not adding any explicit whitespace. Even a manually produced file (so, not using filecontents) with no newlines at all exhibits the same problem.


How do I find the solutions of tanx = x upto any number of decimals?   (Of course, there is the graphical method but it just helps in finding the approximate value...)


How is the derivative of $\textrm{Trace}\left\{ X^T A X B\right\}$ with respect to $X$ equal to $AXB + A^TXB^T$?

How is the derivative of $\mbox{Trace}\left\{ X^T A X B\right\}$ with respect to matrix $X$ equal to $AXB + A^TXB^T$?  \begin{align}   \nabla_X \ \textrm{Trace}\left\{ X^T A X B\right\} = AXB + A^TXB^T \end{align}  where $A$ and $B$ matrices are given.


I am running an Ubuntu guest on a Mac host using Virtualbox.  I ran out of space so I doubled the size of the disk from 8G to 16G using VBoxManage modifyhd /path/to/my.vdi --resize 16384  and extended the partition using a GParted live CD.  As you can see, the partition is now 16GB.  $ sudo parted /dev/sda p Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 17.2GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type      File system  Flags  1      1049kB  512MB   511MB   primary   ext2         boot  2      513MB   17.2GB  16.7GB  extended  5      513MB   17.2GB  16.7GB  logical   However, the extended space is not automatically being recognized by /dev/mapper/nanu64--vg-root:  $ df -h Filesystem                   Size  Used Avail Use% Mounted on udev                         477M     0  477M   0% /dev tmpfs                        100M  3.2M   97M   4% /run /dev/mapper/nanu64--vg-root  6.3G  3.9G  2.1G  66% / tmpfs                        497M  4.0K  497M   1% /dev/shm tmpfs                        5.0M     0  5.0M   0% /run/lock tmpfs                        497M     0  497M   0% /sys/fs/cgroup /dev/sda1                    472M  105M  343M  24% /boot tmpfs                        100M     0  100M   0% /run/user/501 /home/stephen/.Private       6.3G  3.9G  2.1G  66% /home/stephen   I tried to extend the volume but it is unaware of this extra space:  $ sudo lvextend -L +8G /dev/mapper/nanu64--vg-root   Insufficient free space: 2048 extents needed, but only 0 available   I also tried the lvresize command with similar results:  $ sudo lvresize -L +8G /dev/mapper/nanu64--vg-root    Insufficient free space: 2048 extents needed, but only 0 available $ sudo lvresize -l +100%PVS /dev/mapper/nanu64--vg-root   Insufficient free space: 1924 extents needed, but only 0 available   I need more room in my home directory.  Is there a way to add extents to /dev/mapper/nanu64--vg-root?  Is there another way to use the extended partition size to increase the free space in /home?  Running resize2fs seems unnecessary:  $ sudo resize2fs /dev/mapper/nanu64--vg-root  resize2fs 1.42.13 (17-May-2015) The filesystem is already 1708032 (4k) blocks long.  Nothing to do!   Running pvdisplay gives the following:  $ sudo pvdisplay   --- Physical volume ---   PV Name               /dev/mapper/sda5_crypt   VG Name               nanu64-vg   PV Size               7.52 GiB / not usable 4.00 MiB   Allocatable           yes (but full)   PE Size               4.00 MiB   Total PE              1924   Free PE               0   Allocated PE          1924   PV UUID               EiMXHd-Kwql-bpFF-Wafc-Beit-o72B-nU8M23


I have a form with some labels and two buttons, buttons are Yes and No.  For some reason I cannot get whether the user has pressed y or n keys on the form. If I use the same event for a textbox for example it works just fine.  private void Form2_KeyDown(object sender, KeyEventArgs e)         {             if (e.KeyCode == Keys.Y)             {                 btnYes.PerformClick();             }         }   Seems like that event never fires. Why is that?


How to scale out screen size on Windows 10

I use Win 10 with scaling 100%...    My monitor is LCD Lenovo. I feel that the LCD display is so big. Maybe larger than 15" I like to scale out my screen size maybe 80% or 70%  I can do this on Win 7, but I can not do it in Win 10.  I need a suggestion what program/application is needed to scale out my screen size at 80%


Boot screen doesnt show ubuntu purple screen again

I installed my ubuntu  few days ago and everything was great until this morning when i started the computer instead of the ubuntu boot screen (with ubuntu and the dots ) i now get a black back ground with loads of writing moving down ...i want my normal boot screen back help! its not just a black background it has writings on it ... with green 'ok' starting each line


Activate windows 10 after re-installing (I have lost my product key)

I own a Lenovo T430 laptop. In 2017, I installed Windows 10 using my original Windows 7 product key. Unfortunately, I cannot find that product key anymore. I need to re-install windows 10. Will it be automatically activated after the installation, if I skip the step of asking the product key during the installation?   In my opinion, I believe that my laptop will have a digital entitlement stored on the Microsoft Activation Servers and this will not be a problem. Is that true?  If not, please suggest me a solution or a workaround.


When to use Meta on Stack Exchange and when on Stack Overflow?

There are two meta sites that contains content related to the main Stack Overflow site:  and   If I have a question about Stack Overflow (privileges, bans, suggestions) which meta site is more adequate to ask it on and why?  Maybe more general question is what is difference between those two meta sites (except of that  is also for other Stack Exchange sites)? I had a look on  are on-topic on Meta Stack Exchange and  are on Meta Stack Overflow. But the second one shows info about the main Stack Overflow site, not just meta.


I have two passports/nationalities. How do I use them when I travel? Clarification Question

An excellent  on this topic outlined the various different cases for how to travel on two passports.  One question relating to their Case 4: Different Names, Dual Citizenship Not OK.  (background note: this case involves traveller having Country A passport, and Country B passport, where Country A does not allow dual citizenship. Country C is a neutral third country where the traveller has the right to enter either visa free or with visa.)  When booking ticket A-C-A in Country A name, and C-B-C in Country B name, how do you manage to check into the C-B flight leg?  I.e. is it generally possible to book into the C-B flight leg without having to clear immigration in Country C, say at a transfer desk ? Or could you do this checkin online, and carry a printed boarding pass that gets validated at the transfer desk ?  I plan to travel through Changi airport in the near future, and am not clear if it will be possible to check into this second leg without having to go through immigration.


I am familiar with c but new to c++.  What is the difference between below two functions? How the both the programs functionally same? How actually the address is passed in scenario 1 and values are modified without de-referencing the variables.  Scenario 1      void duplicate (int& a, int& b, int& c)     {     a*=2;      b*=2;     c*=2;     }      int main ()     {     int x=1, y=3, z=7;     duplicate (x, y, z);      cout << "x=" << x << ", y=" << y << ", z=" << z;     return 0;     }   Scenario 2      #include <iostream>     using namespace std;      void duplicate (int *a, int *b, int *c)      {     *a*=2;     *b*=2;     *c*=2;     }      int main ()     {     int x=1, y=3, z=7;     duplicate (&x, &y, &z);     cout << "x=" << x << ", y=" << y << ", z=" << z << endl;     return 0;     }


Checking-in bags to different destinations when flying with a layover

I am flying with an overnight layover with Swiss tomorrow. I am wondering, is it possible to check in one bag to Zurich only (so I have stuff for the night), and check another bag to the target destination directly?


Let $f:X\to X $ be continuous. Does $f $ have a fixed point when $X=[0,1)$ or $X=(0,1) $?

Let $f:X\to X $ be continuous. Show that if $X=[0,1] $, $f $ has a   fixed point(i.e. there exists  $x$ such that $f (x)=x$). What happens   if $X $ equals  $[0,1) $ or $(0,1) $?   First part of the question is an immediate consequence of intermediate value theorem(for a proof, see ). I think $f (x)=x^2$ is a counterexample when $X=(0,1) $, since $x^2\lt x $ for all $x\in (0,1) $. But to be honest, I don't understand what causes breakdown of the fixed point theorem on $(0,1)$, since IVT only requires connectedness of domain. Is this related to the non-compactness of $(0,1)$?  Also I can't think of any counterexample for the case $X=[0,1)$(assuming fixed point is somehow related to compactness).  Any help is appreciated.   Thank you.


I want to use GPG for local encryption only, and after reading the man file, I'm doing the following in order to encrypt a whole directory:  I zip the directory with a password "zip -r -e foo foo", then I encrypt it with "gpg -c foo.zip" using a passphrase. Is this an elegant and secure way of encrypting directories? Am I using GPG's full cryptographic power? Are there better alternatives?  So there's no a way to encrypt a whole directory without zip it or tar it?


I am finishing my first paper. I am unaware of how I should treat a certain situation, and have come  here for advice.  The paper is about 30 pages long. I have written 26 of those pages. On the pages I wrote, the other person helped with how thoughts are to be expressed, but all the theorems and proofs were done by me. The ideas of the paper are mine, and their execution.  How is the authorship to be divided in such an example? Should I be the first author or the corresponding author? Both? Should he be the second author, or the co-author?  I read this answer , saying in math and computer science all authors are considered to have contributed equally. How should the ranking be notated than?  EDIT:  Question in partially answered in the linking answer (duplicate), at the comments bellow.


Why are the normals of this primitive circle pointing upwards, and how to reset them?

Using Blender 2.8, when creating a primitive circle using the API like this: import bpy from mathutils import Vector, Euler bpy.ops.mesh.primitive_circle_add(vertices=8, enter_editmode=False, location=(0, 0, 0.03), rotation=Euler((0,0,0.3927)), radius=0.05) bpy.ops.object.transform_apply()  It ends up with normals like this, pointing upwards a bit:  I noticed when not setting the location of the circle, like so, it does not happen. import bpy from mathutils import Vector, Euler bpy.ops.mesh.primitive_circle_add(vertices=8, enter_editmode=False, location=(0, 0, 0), rotation=Euler((0,0,0.3927)), radius=0.05) bpy.ops.object.transform_apply()  I have failed thus far to understand why. In any case, I would like the normals to be pointing outwards, like so:  Is this possible? If yes, how? Thanks.


why it so important do disable THP ( transparent huge pages ) on database servers?

We have hadoop cluster  We notice that on many DB servers, that the THPs are disabled ( include HDFS servers )  Can you explain why it is so important to disable THP on DB servers?  what could be if THP is enabled?, on DB servers.


this code worked fine in the Oracle live sql but when i put it on the server im getting a SQL command not properly ended was wondering if its because its different oracle versions, the server is in oracle11g SELECT g.GID, g.Name, COUNT(*) as cnt FROM VisitN v JOIN      GuestN g      ON v.GID = g.GID GROUP BY g.GID, g.Name ORDER BY cnt DESC FETCH FIRST 1 ROWS ONLY;   thank you


WiFi on 2.4GHz is slow, but 5GHz is very fast

I've been having an ongoing problem with my home WiFi network. As stated in the title, my 2.4GHz network is slow but 5GHz is perfectly fine. I've checked with a WiFi analyzer and there aren't too many other 2.4 networks around, and I'm using the recommended channel. The connection is generally spotty, sometimes seeming fine and other times dropping to a crawl.  In an attempt to combat the problem I bought a new router, and split off some of the traffic to my old router. So my network setup is:   main router: Netgear Nighthawk X10 R9000, on 192.168.0.1 child router (downstairs): TP Link Archer C3200, on 192.168.1.1   The child router is hardwired in to the main router on a cat5 cable, and broadcasts its own 2.4 and 5GHz networks, and both routers have the same problem. The main router does have other electronics nearby (AV receiver, home wireless phone, cable box, modem), but the child router has nothing nearby.  I've switched from 2.4 to 5GHz and run speed tests while 2.4 is going slow, and 5GHz is always fine.  For the most part this isn't a major problem, I'm just using 5GHz whenever I can. But I have a home security system, and those cameras only run on 2.4GHz. So whenever I connect to one of them, it complains that the network is slow, and it's difficult for me to review saved clips. Also, maybe one day in the future I'll decide to save money and switch to a cheaper internet plan, losing 5GHz entirely.  So my questions are:   how can this be? how can I troubleshoot it / fix it? could it be my ISP? (optimum online) is there a way to monitor all 2.4GHz traffic and see if some massive amount of data is passing through it all the time, indicating maybe a virus on a local machine or something?


Kubuntu boot into earlier kernel - set it to default?

I have Kubuntu installed in a VirtualBox (Windows host), but as of the latest updgrades it won't boot anymore.  I found an earlier kernel that works, though, and I want to set it to default.  -  What I do  When I boot, I press shift so as to see this:    I go to Advanced options for Ubuntu, to see:    and I wrote which one I want to boot.  It is the 6th, counting the first at 0.  --  On Kubuntu, I go to /etc/default, open grub, change GRUB_DEFAULT from 0 to 6, then run update-grub.  But it still does not work when I reboot the virtual machine.


In the proof it says that 'choose for each $x$ an element of $B_x$ ...' and I think that this means infinite number(If $U$ is infinite) of arbitrary choice because normally $B_x$ doesn't exist uniquely for a given $x$. But the book doesn't mention anything about this. Is it true that this proof requires axiom of choice?


Ubuntu 18.04 "Files" application automatic searching

In Ubuntu 18.04, the "files" application behaves in - what to me anyway - is a very annoying way.  Scenario: I am viewing a directory containing some files. I want to access a particular file, lets say "readme.txt", so I hit the "r" key.  I would expect it highlight the first file beginning with the name "r". But no, instead it starts performing a global search. To me this is an illogical and counter-intuitive behavior: if I am in the context of a specific directory, why would you suddenly take that view away, and start doing a global search??  I prefer to use keyboard over mouse as much as possible, but the Files app in particular seems to be not very keyboard-friendly.  I looked in the settings, can't see an obvious way to change this behavior. Any suggestions?  Edit: There is an option to "only search in the current folder", but this doesn't work properly (often searches globally despite this settings), and it still has the annoying effect of changing the current view.


Possible Duplicate:          Field with $2^{15}$ elements  How many subfields? Including trivial one and the whole thing I guess $15$. Right or not my guess? I think every subfield gives a subspace of dimension dividing $2^{15}$. Hence 15 of them?


How do I get the 'On A Rail' achievement?

I'm a little confused by the On A Rail achievement in minecraft. Do I need to go to a point 1km manhattan/euclidean distance from where I started. Or If I went down 500m of track went back 500m of different track and ended up 2-3 meters from where I started would that count?


How to Solve a Divisibility Problem : Prove or disprove

**For all integers a,b,c, prove or disprove each of the following: i.  If a | c and b | c, then ab | c^2. ii. If a | (b+c), then a | b and a | c.**   Note : "If true prove without using numbers as an example otherwise you can use them if false" That's What My Prof. says.  Unfortunately, The first one I couldn't solve it but the second one i solve it but i want to ensure that my answers are right  Thank you in advance


Can this search script be SQL injectable

This site has me all paranoid about SQL injection as far as I can notice this search has prepared statements and is MSQLI but could still be injectable  thanks  <?php  $searchTerm = trim($_GET['keyname']);  if($searchTerm == "") {     echo "Enter name you are searching for.";     exit(); }  $host = "localhost"; $db = "DB"; $user = "user"; $pwd = "pass";  $link = mysqli_connect($host, $user, $pwd, $db);  $query = "SELECT * FROM TABLE WHERE Name LIKE '%$searchTerm%'";  $results = mysqli_query($link, $query);   if(mysqli_num_rows($results) >= 1) {     $output = "";     while($row = mysqli_fetch_array($results))     {  echo "" . "" ."	";     }     echo $output; } else     echo "There was no matching record for the name " . $searchTerm; ?>


'90s film where someone stand in front of massive high speed train

Looking for a name of a film I saw long ago. Feels like late 90s ish.  All I remember ... these people need to get to a fortress complex far across a desert. There are these massive automated uber high speed black vehicles that go there, a train maybe. On a hunch and unknown risk, some one stands in front of one coming. It stops dead in front of him and they are able to hop on and stow away in.  Any ideas?


How do I get such a notation for vectors in LaTeX?


How do I change the extension of multiple files?

I would like to change a file extension from *.txt to *.text. I tried using the basename command, but I'm having trouble on changing more than one file.  Here's my code:  files=`ls -1 *.txt`  for x in $files do     mv $x "`basename $files .txt`.text" done   I'm getting this error:  basename: too many arguments Try basename --help' for more information


Is there a straight-forward means of determining dependencies between packages

I was reading about creating coordinate systems in the pgfmanual and was surprised to see the use of \define@key in one of the examples  \makeatletter \define@key{cylindricalkeys}{angle}{\def\myangle{#1}} \define@key{cylindricalkeys}{radius}{\def\myradius{#1}} \define@key{cylindricalkeys}{z}{\def\myz{#1}} \tikzdeclarecoordinatesystem{cylindrical}% {% \setkeys{cylindricalkeys}{#1}% \pgfpointadd{\pgfpointxyz{0}{0}{\myz}}{\pgfpointpolarxy{\myangle}{\myradius}} } \begin{tikzpicture}[z=0.2pt] \draw [->] (0,0,0) -- (0,0,350); \foreach \num in {0,10,...,350} \fill (cylindrical cs:angle=\num,radius=1,z=\num) circle (1pt); \end{tikzpicture}   I copied and pasted this into a document whose class was article and only loaded one package, tikz.  Everything compiled fine.  So I added a line to list the files:  \documentclass{article} \usepackage{tikz} \listfiles \begin{document}  \makeatletter \define@key{cylindricalkeys}{angle}{\def\myangle{#1}} \define@key{cylindricalkeys}{radius}{\def\myradius{#1}} \define@key{cylindricalkeys}{z}{\def\myz{#1}} \tikzdeclarecoordinatesystem{cylindrical}% {% \setkeys{cylindricalkeys}{#1}% \pgfpointadd{\pgfpointxyz{0}{0}{\myz}}{\pgfpointpolarxy{\myangle}{\myradius}} } \begin{tikzpicture}[z=0.2pt] \draw [->] (0,0,0) -- (0,0,350); \foreach \num in {0,10,...,350} \fill (cylindrical cs:angle=\num,radius=1,z=\num) circle (1pt); \end{tikzpicture}  \end{document}   I discovered that the following key value packages loaded:    keyval.sty    1999/03/16 v1.13 key=value parser (DPC)  pgfkeys.sty      pgfkeys.code.tex kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO) kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)   I assumed (rather incorrectly, apparently) that it was the pgfkeys package loading these dependencies.  But, when I made a document which only used pgfkeys, the listed files were only:   *File List*  article.cls    2007/10/19 v1.4h Standard LaTeX document class   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)  pgfkeys.sty      pgfkeys.code.tex  ***********   I could continue in this manner of loading only one package at a time and listing its package dependencies.  But that's rather tedious.  Is there in general a less tedious way to better discover how the various packages are depending upon one another?  Note:  I'm not asking just about tikz or pgf.  It was only via playing with those two packages that this question arose.  Update  It looks like  provides something of a solution.  Though the answer provided @HeikoOberdiek only seems to list the dependencies the first time they're encountered.  If a subsequent packages requires a package that has already been required, then it's not printed out a second time.


I can't upgrade anything at all. I can't even open the software updater or the software center. And if I try to upgrade through the terminal I only get messages about error and failing.  I want to upgrade to a newer version of xubuntu and I am at a loss, what to do?


$\sqrt {3} $ is irrational (proof verification)

$\sqrt {3} \in Q$. Then, $\sqrt{3} = \frac ab$ with the lowest term for $a,b \in Z$.   Then, $3b^2=a^2$, which implies that $a^2$ is divisible by 3.   That is, $a$ is also divisible by 3 (by fundamental theorem of arithmetic).   I don't understand here $a^2$ divisible by 3 implies $a$ divisible by 3.   Could you explain it?


Why is "gravitational" red-shift neglected in galaxy and galaxy cluster scales?

The red-shift of the light of a star in a galaxy or that of a galaxy in a cluster of galaxies is generally interpreted as how fast the star or the galaxy is moving, i.e. it is interpreted in a purely special-relativistic way. However, general relativity predicts that a light produced in a gravitational field gets red-shifted when comes out of the field. I wonder why the excess red-shift (over the Hubble red-shift) of stars and galaxies is only interpreted as how fast the object moves, not that how strong the ambient gravitational field is.


What is $\lim_{x \to \infty} \frac{\sin x}{\sin x}?$

As the title suggests, I am interested in computing $$\lim_{x \to \infty} \frac{\sin x}{\sin x}.$$ Some of my friends say that the limit is $1$ because the domain of function is $\mathbb{R} \setminus \{n \pi : n \text{ is an integer}\},$ whereas others say that this limit is undefined. Which opinion is correct?


I'm trying to consume the rest of an input on cin. Currently my function does this ...  void foo() {     // Input "514 G Alex Thornton     std::cin >> INT >> STD::STRING >> STD::STRING }   So far the int variable consumes 514, and the first string variable consumes G; however, that leaves the name remaining, which can be an infinite amount of words. Is there a way to consume the rest of the line?


Punctuation: We promise [that] it's a big deal

I'm editing a marketing campaign. Out loud, one might say, "We promise it's a big deal." I believe there's an unspoken "that" in there: "We promise [that] it's a big deal." Would you punctuate the sentence differently with the missing word? My first instinct was no punctuation: "We promise it's a big deal." But on subsequent passes, it started to look more and more incorrect. It's very possible that I've gotten way too close to the words and can't see the logical, simple answer in front of me! Thanks for your help.


Integral of the inverse of a CDF is the mean of the PDF?

While doing some calculations, I got this interesting result. Consider the CDF of the log-normal:  $$ y(x) = \dfrac{1}{2}\left[1+erf\left(\dfrac{\ln\left(x\right)-\mu}{\sigma\sqrt{2}}\right)\right] $$  It's inverse is:  $$ x(y) = exp\left[\mu_{} + \sigma_{}\sqrt{2}{erf}^{-1}\left(2y-1\right) \right] $$  If you take the integral of this function over the domain of $y$, $[0,1]$, you get:  $$ \int_0^1 x(y)dy = exp\left(\mu + \frac{\sigma^2}{2}\right) $$  which is the mean of the log-normal!  I have not been able to formalise the proof. Does this property/theorem (if) have a name? Does it hold in general? Or is it a mere coincidence?


problem with setvalue to label in JAVA fx

I have a function:      public static void printOnLable(String str){     try {         labelAkcja.textProperty().setValue(str);     } catch(Throwable e) {         System.err.println(e);         System.err.println("Cause = " + e.getCause());     } }   but when i want to call it   Controller.printOnLable("server started");   I get always an error


Creating an executable bash script, WITHOUT the user having to invoke chmod commands

I need to create a file (in my java source code) that will be able to execute a bash script without having to have the user type chmod 755...in their terminal. I tried command files, but it still asked me to give the file permission. Thanks  I have tried command files, exe files, jar files, etc  import java.io.*; import java.util.*; public class twint2 {     public static void main (String [] args)throws FileNotFoundException{                  File bash = new File ("/Users/garrettpartenza/Desktop/myScriptss.command");                     PrintStream out = new PrintStream (new FileOutputStream(bash));                         out.println("#!/bin/bash");                         out.println("twint -u realDonaldTrump -s china -o /Users/garrettpartenza/Desktop/file.csv");          }     }   It downloads the command file, but it still needs permission to execute.


dropout: forward prop VS back prop in machine learning Neural Network

Regarding dropout, we know that in the forward propagation some neurons are put to "zero" (i.e., turned off). How about back propagation ?   Are these dropped out neurons also zeros (turned off) during back-prop ?  Thank  Refer to this link, which seems to be not very clear ... :


Can I specify certain files for Dropbox to ignore?

I'd like to sync configuration folders for specific applications on my Linux machines, namely configuration for  (a text-expansion and keyboard-macro automation suite), which lives at ~/.config/autokey/.  Though I know that it's relatively simple to just symlink ~/Dropbox/Apps/AutoKey to ~/.config/autokey/, I'd specifically like to ignore certain files in the folder if possible. There are notably a log file and a PID file that I'd prefer to ignore.   Is there a way to specify configuration  for Dropbox which will make it ignore these files, or even better, glob patterns? (e.g. Apps/AutoKey/*.log, Apps/AutoKey/*.pid, etc.)


How to replace a character is a string in Objective-C?


Show that the set of points $x$ where $(f_{n}(x))$ is convergent is a Borel subset of $\mathbb{R}$

given: $(f_{n})$ are continuous functions from $\mathbb{R}$ to $\mathbb{R}$  my work: Let $A=\left \{ x\in \mathbb{R}|\lim_{n\rightarrow +\infty }f_{n}(x)=L<\infty  \right \}$  let $x\in A$  and $B(x,r)$ be given for some $r>0$  $y\in B(x,r)\Rightarrow d(x,y)<r\Rightarrow d(f_{n}(x),f_{n}(y))<\varepsilon _{r}$ (since $f_{n}$ is continuous)  then as $n\rightarrow \infty $, $f_{n}(y)\rightarrow f_{n}(x)\rightarrow L\Rightarrow y\in A$  so $A$ is open then it's a borel subset  Anything wrong ?


The difference between "talk to" or "talk with "

Could please help me to figure out the difference between talk to or talk with someone?  Thanks a lot for help))


how to install Wifi and Bluetooth drivers in ubuntu 12.04 lts

I am using HP Pavilion 15 -no11tu which has been awarded the status of Enabled for Ubuntu.  When Ubuntu was shipped with my hp laptop,Everything worked fine including WiFi,webcam and Bluetooth.  Some days ago I formatted my System and reinstalled Ubuntu 12.04.3 LTS which I downloaded for Ubuntu website. But Instead of connecting my system to internet and after doing all update and upgrade Ubuntu didn't detected my system WiFi and Bluetooth.  HP does not provide driver support for Linux.  My Configuuration::  htcoders@ubuntu:~$ sudo ifconfig  eth0      Link encap:Ethernet  HWaddr a4:5d:36:7b:f2:d7             inet addr:172.16.232.178  Bcast:172.16.232.255  Mask:255.255.255.0           inet6 addr: fe80::a65d:36ff:fe7b:f2d7/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:888333 errors:0 dropped:112 overruns:0 frame:0           TX packets:715296 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:1156686828 (1.1 GB)  TX bytes:51009168 (51.0 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:12787 errors:0 dropped:0 overruns:0 frame:0           TX packets:12787 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:800669 (800.6 KB)  TX bytes:800669 (800.6 KB)  htcoders@ubuntu:~$ lspci  00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) 00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09) 00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04) 00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04) 00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4) 00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 2 (rev e4) 00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4) 00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4) 00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04) 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5227 (rev 01) 08:00.0 Network controller: MEDIATEK Corp. Device 7630 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 08)   Please Help.  Thanks


In my spring application context file, I have something like:  <util:map id="someMap" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.String">     <entry key="some_key" value="some value" />     <entry key="some_key_2" value="some value" />    </util:map>   In java class, the implementation looks like:  private Map<String, String> someMap = new HashMap<String, String>(); someMap = (HashMap<String, String>)getApplicationContext().getBean("someMap");   In Eclipse, I see a warning that says:  Type safety: Unchecked cast from Object to HashMap  What did I do wrong? How do I resolve the issue?


I have the code once I am running it it just gave me error  error while validatingjava.lang.NullPointerException     public Login() {       setTitle("Appoinment Booking System :: Login");     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     setBounds(100, 100, 450, 300);     contentPane = new JPanel();     contentPane.setBackground(new Color(250, 250, 210));     contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));     setContentPane(contentPane);      JLabel userLabel = new JLabel("Username");      JLabel passwordLabel = new JLabel("Password");      userText = new JTextField();     userText.setColumns(10);      passwordText = new JPasswordField();      JLabel lblLogin = new JLabel("Login ");      JLabel lblNewLabel = new JLabel("Appoinment Booking Sytem");     lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 25));     lblNewLabel.setForeground(new Color(32, 178, 170));      JButton btnLogin = new JButton("Login");     btnLogin.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {              System.out.println("a");             dao = new AppDao();             //System.out.println("b");             char[] tempPass = passwordText.getPassword();             //System.out.println("c");             String password=null;             //System.out.println("D");             password = String.copyValueOf(tempPass);             //System.out.println("e");             if(dao.verifyUser(userText.getText(), password))             {                 dispose();                 System.out.println("f");                  //JOptionPane.showMessageDialog(null, "You have logged in successfully","Success",                  //        JOptionPane.INFORMATION_MESSAGE);                  new Dashboard(userText.getText());                  System.out.println("g");                 //this.setContentPane(dashboard);              }             else              {                  JOptionPane.showMessageDialog(null, "You not  logged in successfully","Success",                          JOptionPane.INFORMATION_MESSAGE);                          System.out.println("h");             }         }     });   Now I have the connector in other class in other class, I really stock to hot to solve this problem it , I have add two three different type of the connector it did not work < I have made some other tips as well to solve this problem as well but it does not work so I need any programmer attention to solve this problem    Connection con;   PreparedStatement pst;   ResultSet rs;   AppDao() {     try {         System.out.println("a");         //MAKE SURE YOU KEEP THE mysql_connector.jar file in java/lib folder         //ALSO SET THE CLASSPATH         String MYSQL_DRIVER_CLASS_NAME = ("com.mysql.jdbc.Driver");         System.out.println("b");         String MYSQL_DB_CONNECTION_PATH = ("jdbc:mysql://localhost:90/booking_appointment");         System.out.println("f");         String MYSQL_DB_USERNAME = "root";         System.out.println("f");         String MYSQL_DB_PASSWORD = "cnwl";         System.out.println("c");     } catch (Exception e) {         System.out.println(e);     }   }   public Connection getConnection() {     try {         Class.forName("com.mysql.jdbc.Driver");         con = DriverManager.getConnection("jdbc:mysql://localhost:90/booking_appointment", "root", "cnwl");         return con;     } catch (Exception e) {         // TODO: handle exception         e.printStackTrace();         return null;     }   }


Let G be a group. Prove that the function: $G→G, x→x^2$ is a group  homomorphism if and only if G is an abelian group.   Is this the same as if $f:G→G$ is defined by $f(x) = x^2$ ?


Custom Post Type + 20k posts = blank/404 within Admin edit.php

I have registered a custom Post Type via register_post_type(), and about 45 Custom Fields via add_meta_box() function, within the theme.  Custom Post Type Args:      'labels'             => $labels,     'description'        => __( 'Custom Post Type', 'hg' ),     'public'             => true,     'publicly_queryable' => true,     'show_ui'            => true,     'show_in_menu'       => true,     'query_var'          => true,     'rewrite'            => array( 'slug' => 'testtype' ),     'capability_type'    => 'post',     'has_archive'        => false,     'hierarchical'       => true,     'menu_position'      => null,     'supports'           => array( 'title', 'editor', 'thumbnail' )   Everything works fine there, and a few tests by manually creating posts via the Admin Editor for this post type proves such.  I written a script to batch import about 20,000 or more into this custom post type and the registered custom fields. Before I go on, I wish to point out that I first ran this script with just 50 or so of the entries, and it imported and everything worked fine.  So, once the 20k posts of the custom post type were imported, I return to my admin and hit on the Custom Post Type via admin (Auto-generated Custom Post Type UX) - and I receive a blank page!  I have researched, and as a result increased PHP memory limit, WP memory limit, WP Max memory limit, and PHP execution time. After which, I now receive the generic WordPress 404 instead of just a blank page.  Here's what I added to wp-config.php:  define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '2560M' ); set_time_limit(120);   I have also concluded it is nothing to do with the theme or plugins. Once I manually remove all 20k posts from the database via phpMyAdmin, the edit.php page is back in working order. Is this a query overload?  Please help!  Thanks in advance!


Situation :  $ mkdir foo && touch foo/.test $ cp foo/* . zsh: no matches found: foo/* (or bash : cp: cannot stat ‘foo/*’: No such file or directory)   I have a directory full of hidden folders and files. What is happening and what is the solution?


Example of a closed subspace of a Banach space which is not complemented?

In this post, all vector spaces are assumed to be real or complex.  Let $(X, ||\cdot||)$ be a Banach space, $Y \subset X$ a closed subspace. $Y$ is called $\underline{\mathrm{complemented}}$, if there is a closed subspace $Z \subset X$ such that $X =Y \oplus Z$ as topological vector spaces.  If $H$ is a Hilbert space every closed subspace $Y$ is complemented; the orthogonal complement $Y^{\bot}$ is a closed subspace of $H$ and we have $H=Y \oplus Y^{\bot}$. A famous theorem of Lindenstrauß and Tzafriri (which can be found in their article "On the complemented subspaces problem", Isreal Journal of Mathematics, Vol. 9, No.2, pp. 263-269) asserts that the converse is true as well. More precisely, if $(X, ||\cdot||)$ is a Banach space such that every closed subspace is complemented then $||\cdot||$ is induced by a scalarproduct, i.e. $(X,||\cdot||)$ is a Hilbert space.  Now to my question. Can you give me an example of a Banach space $(X,||\cdot||)$, which is not a Hilbert space, and of a closed subspace $Y \subset X$ which is not complemented? It is easily seen that $Y$ must be both infinite-dimensional and infinite-codimensional, for every finite-dimensional and every (closed) finite-codimensional subspace is complemented.  I thought about something like $c_{0} \subset (\ell^{\infty}, ||\cdot||_{\infty})$ the closed subspace of null sequences in the Banach space of bounded sequences but couldn't produce a proof that no closed complement exists in that case. Can you help me either proving that $c_{0}$ is not complemented (if that's true at all) or by giving me a different example?


How to see an embedded image's dpi (ppi) in a pdf in Acrobat Pro?

The following situation baffled me slightly: after preparing a pdf in a different program I wanted to make sure that an embeded image in the pdf file had the right dpi, yet I found no way in adobe acrobat pro to inspect the file/image dpi.   Can that be, or am I missing where this feature is hidden?


Android - NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

I am getting this error at runtime.     java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference           at com.example.smartagriculture.User.PlanActivity$2$1.onResponse(PlanActivity.java:113)           at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70)           at android.os.Handler.handleCallback(Handler.java:891)   this is the code   private void DialogForm() {     dialog = new AlertDialog.Builder(PlanActivity.this);     inflater = getLayoutInflater();     dialogView = inflater.inflate(R.layout.insert_serial,null);     dialog.setView(dialogView);     dialog.setCancelable(true);     dialog.setTitle("Insert Serial Number");      final EditText etSN = dialogView.findViewById(R.id.etSN);      dialog.setPositiveButton("Submit", new DialogInterface.OnClickListener() {         @Override         public void onClick(DialogInterface dialog, int which) {             dialog.dismiss();             String SN = etSN.getText().toString();              Retrofit retrofit = new Retrofit.Builder()                     .baseUrl(URL)                     .addConverterFactory(GsonConverterFactory.create())                     .build();             ApiService api = retrofit.create(ApiService.class);             Call<Value> call = api.InsertSerial(SN,sharedPrefManager.getUsername());             call.enqueue(new Callback<Value>() {                 @Override                 public void onResponse(Call<Value> call, Response<Value> response) {                     String value = response.body().getValue();                     String message = response.body().getMessage();                     if (value.equals("1")) {                         Toast.makeText(PlanActivity.this, message, Toast.LENGTH_SHORT).show();                     } else {                         Toast.makeText(PlanActivity.this, message, Toast.LENGTH_SHORT).show();                     }                 }                  @Override                 public void onFailure(Call<Value> call, Throwable t) {                     Toast.makeText(PlanActivity.this, "Jaringan Error!", Toast.LENGTH_SHORT).show();                 }             });          }     });       dialog.show(); }   how to solve it?


How to know a mac address for a Node knowing its IP on local network?

Is there a way to ping an IP , and know the PC mac address of this IP ?  For exapmle in my network there is a printer which has the ip 192.168.1.99 (dynamic) , i need to   its mac address to give it a reservation in  dhcp .