This certainly may seem like a duplicate of     However that question is more general and all the answers are from the Avengers: Age of Ultron timeframe and are focused on the idea of 'appearance in film'  I haven't watched Agents of S.H.I.E.L.D., but it seems like, given the all encompassing cast of Endgame, that at least a cameo or an appearance at       Tony Stark's funeral   would be in order.   Unless there's a simple in-universe explanation.  What is Agent Coulson's status as of the end of Endgame?  This does not necessarily have to do with whether he appears on-screen.   It is just that the events of Endgame make his absence all the more conspicuous.


List of Symbols and Abbreviations with location

I have a list of symbols and abbreviations. Please see my code below, at the end of this question.  This code works, but I would like to have my symbols/abbreviations with a LOCATION. By this I mean, to take one of the symbols in the text and mention it for the first time with the appropriate page in the document where it was used and so on...   \chapter*{List of Symbols} \begin{abbrv} \item[$\textbf{A}$]          a square matrix \item[$\textbf{z}$]           a vector \end{abbrv} \chapter*{List of Abbreviations}  \begin{abbrv} \item[CPU]                   Central Processing Unit \item[NYC]                   The New York City \end{abbrv}     Any help will be appreciated.


Ubuntu shell - export to file only executables

I am trying to export to a file the size of only the executable files in my directory (which doesn't ends with .sh).  This is the command I made, which, it seems, export non-executable as well as executable files:  file -x -type  | size * > /home/user/Desktop/userbinfiles.xls   What I want to achieve, if it's possible, is that kind of file exported:  A file with:   size of the file type of the file file name   I understand my command doesn't do that.   And Ideas?


How do you find the transfer function of a controller?

Below is a block diagram of the system. I thought the circle symbol with the plus and minus sign was an op-amp but I'm not sure whether that's the case. I want to find the closed loop transfer function. If there was no feedback (open loop), then I think I could find the output as Y(s) = Vin*G. This would mean that the transfer function is Y(s)/Vin = G.  Any ideas for how to find the closed loop transfer function and what the circle means?


When Ubuntu publishes a new release - say, for example, from 16.04 to 16.10 - do the applications automatically get updated? For example, if as a part of 16.04 it has application ABC at version 1.0, and as part of 16.10 it has the same application ABC but at version 2.0, does going through the upgrade from 16.04 to 16.10 include replacing application ABC from version 1.0 to 2.0?   Does "Ubuntu Software" contain applications of the version that is part of the Ubuntu release that my system is using? For example, if I have 16.10 installed, will the applications in "Ubuntu Software" be at a version that is more current than the versions I'd see for them in "Ubuntu Software" if I were running 16.04 instead?   If I am primarily concerned with stability, I assume the best strategy to follow is to use the version of those applications that come with the release of Ubuntu that I am using; and, if there is some software I want and it is in "Ubuntu Software", I should obtain it from there. However, sometimes I see very large discrepancies between the most current version of an application, and the version of that application available from Ubuntu. For example, in 16.10 the version of Calibre is 2.6; in 17.04 it is 2.75.1; but the current version available is 3.6. So, my questions are: Does this significant lagging in versions provided by Ubuntu ever happen due to people simply not putting in the effort to ensure Ubuntu provides a version somewhat close to the current version? And if that is the case, how would I know that (so that I could possibly decide to uninstall the version provided by Ubuntu, and instead rely on the version and subsequent updates provided by the application's provider)? In other words, how would I know the problem is simply that the developer isn't "sending" updated versions of his application to Ubuntu?


Unit Testing failing with NullPoiterException

Hi i'm new to programming and i started doing unit testing.I have problem with NullPointerException. I think something is broken in my InteliJ when i update it.My teachers type same code but their tests are passing.Here is what i should Test:  @Before public void SetUp() {    this.motorcycle= new UnitMotorcycle("Nissan", 70, 120); }  @Test(expected = NullPointerException.class) public void testShouldThrowNullException() {     UnitRider unitRider = new UnitRider(null, motorcycle); } @Test(expected = NullPointerException.class) public void testNameShouldBeNull() {     UnitRider unitRider = new UnitRider(null, motorcycle);     assertNull(unitRider.getName()); } @Test(expected = NullPointerException.class) public void testNameAndMotorShouldBeNull() {     UnitRider unitRider = new UnitRider("", null);     assertEquals("",unitRider.getName()); }  Here is the method i am testing:  public String addRider(UnitRider rider) {     if (rider == null) {         throw new NullPointerException(RIDER_INVALID);     }  And my testing is failing and give me NullPointerException is expected. Like i did what my teacher.And I think it was from update and i preinstall with diffrent versions of inteliJ but still dont't working.I'm using Java 11, Junit 4.12 and Maven 11


Is "applying similar operations from left to right" a convention or a rule that forces us to mark one answer wrong?

I saw this photo on my social network.  The ambiguous expression $6\div2\times3$ yielded 2 different answers.    The difference is the order of operations. If the division's done first then the answer is 9. If the multiplication was first then the answer would be 1.  What is correct?  There are rules for the  like "BODMAS" for example (I use it) but it doesn't say what is correct in such situation.  Is it possible that both answers are correct unless "brackets" are specified? Or is there one correct answer? Is there a rule for the "direction" in which those must be done? "left to right" for example?  edit: It looks like it's known that it should be done from left to right but the question now is whether:   It's just a convention. It's a definite rule that makes us say that one of the answers is wrong.   tag should be "operator-precedence" for example. Help me with the tag please :)


Do Disillusionment Charms Fail At Very Close Range?

I've been informed by those who know much more about Harry Potter than I that Hogwarts is protected with a Disillusionment Charm so all muggles will see is ruins with a "Danger: Keep out!" sign around them.  (Apparently this was in one of the first three books, but I'm not sure where it was.)  My first thought was, "Well, a danger sign would encourage some muggles to investigate!"  Which leads to what I think is an obvious question: Will a disillusionment charm on a place like that still work when a person is real close to the location?  Will it work from inside the location?  For example, if a curious muggle made it to the gates of Hogwarts and started walking around inside, would they still see it as abandon and in ruins, or once they entered, would they see it as it is?


Is "helpful flag" data accessible via SEDE?

I'm looking to find the top flaggers on a given site, and am trying to do so in SEDE.  I was inclined to write up a SEDE query, but, to my amateur eye, there doesn't seem  to be  that lists helpful flags. Nor are there any  that seem to do this already.  Also, on the post  no SEDE options are given.  Is this data just not available on SEDE? Or am I missing it?  If not, and simply out of curiosity as I learn more about SEDE, is there a specific reason why this field is not captured in SEDE?


How do I remove 1 line of code from PHP files containing a specific string?

By coincidence I noticed that quite some of the PHP files of the sites I host have had malware injected: They all have the following line before the original/correct code:  <?php eval(gzinflate(base64_decode('[malware code]')));?>   What is the best way to do a recursive scan through all my sites, and remove this line (it's always the 1st line) from any files that contain it?  I have full root access to the box. I'm not sure whether this came in through a now-closed hole, or whether the box is still vulnerable therefor I want to do a clean-sweep and closely monitor the files for changes.  regards,    Evert


weird properties of complex exponentials: $e^{i 2 \pi f(x)} = 1$


reverse clip (erase) for spatial point data frame (R)

I am trying to recreate the suggestion from  but instead of using it on a sPolygondf, to do the same for a sPointdf. All is well, but I get an unexpected output - when I do the difference between my one point feature and the other I get a result of X (59104); when I do the same for the attribute information in order to join these and create a sPointdf for later steps I get a result of Y (59488).   Can anyone explain why this is so?   Code:      #------load data cities_nl <- readOGR('/home/iordamo/Documents/GIS_Workload/DutchCities/allcities_dis.shp') imgs <- readOGR('/home/iordamo/Documents/GIS_Workload/DutchAgriculturalParcels/mapillary-public.geojson')  #------selection imgs <- spTransform(imgs, '+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs') imgsdf <- data.frame(imgs)  imgs_in <- imgs[cities_nl,] imgs_indf <- data.frame(imgs_in)  imgs_out <- gDifference(imgs, imgs_in)  imgs_outdf <- setdiff(imgsdf, imgs_indf)      > nrow(imgs_outdf) [1] 59488  > imgs_out class       : SpatialPoints  features    : 59104    So in the case of the spatial operations I am using the gDifference function from the rgeos package and in the other the setdiff from the dplyr package. To my mind these should result in the same number of features in the end.


What is the formula for percent of frame filled at a specific distance and focal length?

I am thinking about buying a new lens specifically to take photos of distant targets (birds, bears, etc). I currently own the Canon 70-300 IS USM, which is a nice lens, but I find that if I want to take a photo of anything further away than about 10 meters, the target does not fill a large amount of the frame (meaning I have to significantly crop in post production).  I am currently looking at the Canon prime 400mm, however I would like to determine at what distance an object will fill a reasonable proportion of the frame.  Is there a formula or rule of thumb I can apply that will help me in this situation? I realise the size of the target I am shooting will play a role here, so if we need to make an assumption about the size of the target please let me know.


Suppose I have this question  How does MySuperSecretLanguage's garbage collection work? I am wondering how the garbage collector in MySuperSecretLanguage works. Can someone please explain?   and these two queries   Would adding the  tag improve my search rank for the first query? Could it decrease my rank for the second query? I don't know much about search engine optimization, but I have a suspicion that adding tags would decrease the "value" of existing ones due to pollution.


is it possible to create a hyperlink in excel from the cell text?

like the title says, i want to see if its even possible to create a hyperlink with a pre-defined string of a url but the page be whatever the text in the sell is. example:  say the A1 cell has TEST TEXT i would like to say, google it. create a hyperlink like it is below but the text of A1 be replaced in the A1 part of the url...  -to-  TEXT  im not familiar with excel so please be kind lol


If $x\cos \theta + y\sin \theta = z$, then what is the value of $(x\sin \theta - y\cos \theta)^2$?

Where $x$, $y$ and $z$ are variables. Answer in terms of these variables only, please.


Proving that there is no ideal $I$ in $\mathbb{Z}[t]$ such that $\mathbb{Z}[t]/I \cong \mathbb{Q}$

I want to prove that there is no ideal $I$ in $\mathbb{Z}[t]$ such that $\mathbb{Z}[t]/I \cong \mathbb{Q}.$    The first part of the question asks us to show that if $\phi$ is a nonzero ring homomorphism from $\mathbb{Z}[t]$ to $\mathbb{Q},$ then $\phi(1)=1.$ Further, letting $\phi(t)=u/v$ in lowest terms, it asks me to show that $m/n\in \mathbb{Q}$ (where $m$ and $n$ are coprime) is in the image of $\phi$ if and only if every prime divisor of $n$ divides $v.$ I proved this, but I'm not sure how this allows me to prove that there is no ideal $I$ in $\mathbb{Z}[t]$ such that $\mathbb{Z}[t]/I \cong \mathbb{Q}.$ Any hints please?


I'm trying to prove that; If any Cauchy sequence is convergent in an ordered field F, every nonempty subset of F that has an upperbound has a sup in F.  Let A be a nonempty subset of F that is not a singleton and has an upperbound in F. Let $a_0 \notin v(A)$ and $b_0 \in v(A)$. It's written in my book that for every $e \in P_F$, there exists $N \in \omega$ such that $N≧(b_0 - a_0)/e$.  I think this is not accurate since it hasn't showed that such F is Archimedean.. Is such F archimedean? Or in such a condition does there exist such N?  -Definition of a Cauchy sequence; For every $e\in P_F$, there exists $N\in \omega$ such that if $i,j≧N$, then $|x(i) - x(j)| < e$. ($x:\omega \to F$ is a sequence)


Pushforward of a degree $d$ map $f: \mathbb{P}^1 \to \mathbb{P}^n$

Consider a rational curve of degree $d$ in the complex projective space $\mathbb{P}^n$, which is given by a map $$f: \mathbb{P}^1 \to \mathbb{P}^n, \quad [x_0,x_1] \mapsto [f_0(x_0,x_1), \dots, f_n(x_0,x_1)],$$ where each $f_i$ is a homogeneous polynomial of degree $d$.   Then we have a pushforward in the second homology groups $$f_*: H_2(\mathbb{P}^1) \to H_2(\mathbb{P}^n).$$  Let $[\mathbb{P}^1]$ denote the fundamental class of $\mathbb{P}^1$ and $[L]$ the homology class of a line in $\mathbb{P}^n$, which generates $H_2(\mathbb{P}^n)$. It's known that   $$f_*[\mathbb{P}^1] = d[L].$$  How to prove the above formula?  Note that $f_*[\mathbb{P}^1]$ is not the homology class of the image curve $f(\mathbb{P}^1)$ in general. For example, consider $f: \mathbb{P}^1 \to \mathbb{P}^1, \ [x_0,x_1] \mapsto [x_0^d, x_1^d]$. Then $f_*[\mathbb{P}^1] = d[\mathbb{P}^1]$, but $[f(\mathbb{P}^1)]=[\mathbb{P}^1]$.


Is there any function continuous only at rationals?

If I define a constant function on domain of rationals, then is it the right chosen function to be continuous at rationals? Also is there any function with Domain of reals which is continuous on rationals?


Salesforce documentation, how to write a test class for below code

I am trying to make a simple test class to get the code coverage. This is the class of the documentation in Salesforce which must be tested. Has anyone a sample for me :) ?  Best regards. Constantin  global class CreateIndividualFromContact implements Database.Batchable<sObject> { global Database.Querylocator start(Database.BatchableContext BC) {    //Query to fetch contacts that don't have Individual created. You may modify the query to add custom fields      //Please add  "IsPersonAccount = false" condition to below query to exclude person accounts    return Database.getQueryLocator('Select FirstName, LastName, Salutation from Contact where IndividualId = NULL'); }  global void execute(Database.BatchableContext BC, List<Contact> contactList) {      Map<Id, Individual> individualRecordsToCreate = new Map<Id, Individual>();     for(Contact con : contactList) {         individualRecordsToCreate.put(con.Id, new Individual(FirstName = con.FirstName, LastName = con.LastName, Salutation=con.Salutation));     }     insert individualRecordsToCreate.values();     for(Contact con : contactList) {         con.IndividualId = individualRecordsToCreate.get(con.Id).Id;     }     update contactList; }  global void finish(Database.BatchableContext BC) {}   This is what I am trying to create. It may be totally wrong..   @isTest public class test class{ static testmethod void test_method1() {  List<Contact> acts = new List<Contacts>(); for (integer i=0;i<200;i++) {  Contact a= new Contact (FirstName=Test contact+i, LastName= Testq, salutation= Sehr geehrter Herr) acts.add(a); }  Test.StartTest(); insert acts;  Test.StopTest(); // List<contact> inserted_acts [select FirstName, LastName, salutation where ID IN :acts]; for (Contact i_a : inserted_acts) {  System.assertEquals()  }  }


lost nigeria passport with valid us visa

I entered USA in June for vacation and misplaced my passport. I need to go back to Nigeria ASAP though am permitted to stay in the USA for six months. Please what step do I need to take for me to replace the lost Visa in Nigeria. I planned to replace the lost passport before going back to my country.


I was working on a document and had a problem with the compilation of it. I updated the MiKTeX library and after that, all the pictures that I include in my document do not work anymore. I'm using \RequirePackage{graphicx} and also included pdftex and other options.  All the pictures send an error of undefined control sequence. What should I do? I'm already changing my TeX distribution to TeX Live to find the error.


Foreign key not working in MySQL: Why can I INSERT a value that's not in the foreign column?

I've created a table in MySQL:  CREATE TABLE actions ( A_id int NOT NULL AUTO_INCREMENT, type ENUM('rate','report','submit','edit','delete') NOT NULL, Q_id int NOT NULL, U_id int NOT NULL, date DATE NOT NULL, time TIME NOT NULL, rate tinyint(1), PRIMARY KEY (A_id), CONSTRAINT fk_Question FOREIGN KEY (Q_id) REFERENCES questions(P_id), CONSTRAINT fk_User FOREIGN KEY (U_id) REFERENCES users(P_id));   This created the table I wanted just fine (although a "DESCRIBE actions;" command showed me that the foreign keys were keys of type MUL, and I'm not sure what this means).  However, when I try to enter a Q_id or a U_id that does not exist in the questions or users tables, MySQL still allows these values.  What did I do wrong?  How can I prevent a table with a foreign key from accepting invalid data?  UPDATE 1  If I add TYPE=InnoDB to the end, I get an error:     ERROR 1005 (HY000): Can't create table './quotes/actions.frm' (errno: 150)   Why might that happen?  UPDATE 2  I'm told that it's important to enforce data integrity with functional foreign keys, but also that InnoDB should not be used with MySQL.  What do you recommend?


Package SVG: the result is missing some parts

I managed to setup the SVG package so it would successfully import an SVG file.  Here is the full config:  \RequirePackage[width=\textwidth]{svg}      % In my custom package \PassOptionsToPackage{svgpath={uml/}}{svg}  % In the file   I then include the SVG file (uml/uml.svg) with:  \includesvg{uml}   This works with no errors or warnings.  However, the original SVG file looked like this: (Sorry this is awful, but you can't upload SVG files directly). Notice the arrows on the top-left.  Here is the resulting file:   I'm fine with that, except that the three arrows on the top-left disappeared from some reason.  When reading the doc I found the lastpage option, however it is to fix a bug in Inkscape 0.91, and I'm running 0.92.1 r15371.  The SVG file was generated with UMLet (but that cannot be the problem, the first picture is after the generation). However, the missing arrows are the first I added when creating the diagram, that seems a bit too big of a coincidence -- however I don't know how SVG works so I don't really know if that has an influence or not.   |  |     Minimal working example:  \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[width=\textwidth]{svg}  \begin{document}  \includesvg{animaux}  \end{document}   You need to add the file uml.svg in the same folder.


If the Wish spell duplicates an Abjuration spell, does it charge the Arcane Ward?

Inspired by the title of ...  An  gains the following feature:     Arcane Ward   Starting at 2nd level, you can weave magic around yourself for protection. When you cast an abjuration spell of 1st level or higher, you can simultaneously use a strand of the spell's magic to create a magical ward on yourself that lasts until you finish a long rest...   While the ward has 0 hit points, it can't absorb damage, but its magic remains. Whenever you cast an abjuration spell of 1st level or higher, the ward regains a number of hit points equal to twice the level of the spell.   The  spell is classified as Conjuration. But it can duplicate any other spell.   If the spell being duplicated is Abjuration, can it start and/or charge up the Arcane Ward? Or it is still considered Conjuration?


How to get enumerate with roman numerals

Like   I. First item Followed by non indented text  II. Second item Followed by non indented text   While having non indented text in it. This is my MWE :  \documentclass{book} \usepackage{enumitem}  \begin{document}  \begin{enumerate}[wide, labelindent=1em, listparindent=0em]  \item first item  \end{enumerate}  \end{document}


When I shop for a direct lender, will the credit checks that they may do be bad for my credit rating?

Is it bad for my credit rating each time a possible lender does a credit check on me?  I need to shop for a direct lender in order to get the best rate for a first mortgage on a property I want to buy, which is a single family home in Placerville, California and we will be the resident.


Is it possible for someone to be of no race?

I apologize if this is not the right forum to ask this question, but I don't know of any better forum to ask it. It is certainly possible for someone to have no religion, but is it possible to be of no race? That is, do "a-racial" people exist?


I was wondering if there are any tools to keep track of the access history of a file. I know of , but as far as I understand, it only returns information about the last time the file was accessed.


When writing large ordinal numbers, does one use commas? Is it 1,234th or 1234th?


make menuconfig error while trying to build kernel

I want to learn Linux Kernel and I've downloaded the latest kernel version. Now I want to configure Linux with make menuconfig and I'm receiving an error:     Arch/x86/Makefile:184  Compiler lacks asm-goto support...   Can somebody help me?


Setting environment variable before program name

I have come across commands like this:  CC=gcc ./configure   What is the effect  of it exactly?  Is it identical with  export CC=gcc  ./configure   ?  Does the variable CC continue to exist after configure is finished?


Would a halfling rogue mounted on a War Dog get to apply sneak attack damage to a melee attack made while mounted?  The Sneak Attack text states "You don't need advantage on the attack roll if another enemy of the target is within 5 feet of it, that enemy isn't incapacitated, and you don't have disadvantage on the attack roll."  But, a controlled mount does not attack, it's only actions are Dash, Disengage, or Dodge.  Does this remove the mount as "...another enemy of the target..."?  I'm inclined to allow Sneak Attack for a rogue mounted on a trained mount, but wanted to know if there is any official ruling on this topic.


Are two different classes’ fighting styles two different class features?

The fighting style feature states that     You can’t take a Fighting Style option more than once, even if you later get to choose again.   However, if you are a Ranger 2/Fighter 1 (for example), can you choose the same fighting style as a Ranger and as a Fighter because it’s two different class features?


I know there is a bijection from $(0,1) $ to $(0,1] $.  Are there functions  $f,g:(0,1) \to (0,1] $  where $f$ is a continuous surjection and $g$ is a continuous bijection?


Consecutive zeros in decimal expansion of $\pi$

Is it known whether or not there exist arbitrarily long sequences of consecutive zeros in the decimal expansion of $\pi$?


Losing georeference when creating PDF maps using QGIS on a new Mac

I have been using QGIS and my PC to make georeferenced maps for Avenza.  I have recently switched to a Mac Platform. It all seems to work same except when exported the PDF is not georeferenced.  All seems to be spatially correct when creating maps.    Is this an issue with how Mac downloads our georeferenced USGS imagery we use, which seems to be the only thing that doesn’t seem the same as the PC, or is there something else going on we don’t have setup correctly ?


$pq\mid pn^q+qn^p+kn$ for some $k,\,$ if $p,q$ are primes

I get some troubles with this problem, could you help me? Given prime numbers $p$ and $q$ prove $\exists k\in\mathbb{Z}$ such that $pn^q+qn^p+kn$ is a multiple of $pq,~\forall n\in\mathbb{Z}$.


I am usig two different systems to write my presentation. on linux I use texmaker and everything works fine. But when I move to mac and use texshop  I encounter the above error in the following part:  where $V \in \mathbb{R}_\textbf{+}^{m \times n}$ ,$W \in \mathbb{R}_\textbf{+}^{m \times k}$, $H \in \mathbb{R}_\textbf{+}^{k \times n}$ and $k <<min\{m,n\}$.   minimal example:  \documentclass{beamer}  % \usepackage{beamerthemesplit} // Activate for custom appearance  \title{Example } \date{\today}  \begin{document}  \begin{frame} \frametitle{Non-negative Matrix Factorization}  where $V \in \mathbb{R}_\textbf{+}^{m \times n}$ ,$W \in \mathbb{R}_\textbf{+}^{m \times k}$, $H \in \mathbb{R}_\textbf{+}^{k \times n}$ and $k <<min\{m,n\}$. \end{frame} \end{document}   The way to fix it is to change _\textbf{+} to simple _+. the only related problem I could find was  post, but it didn't help


How to run a program at login with admin rights (elevated) without having to confirm the UAC prompt

I want to run a program (WhatPulse) when I login to my Win 8 account. The developers recommend to run it with admin privileges because that will "improve input accuracy". The problem running it as admin at startup/login usually requires a manual confirmation that this is OK. So I'm looking for a way to circumvent that.   In brief: the program (WhatPulse) should start automatically with elevated privileges when I login.  Disclaimer: I know that there are many very questions here but non of them quite solved my particular issue which is a combines several issues discussed in other questions (just for clarification):   The program should automatically run with admin rights It should do so when the user logs in It should circumvent the UAC prompt that usually shows up when running a program as admin This is on Win 8.1


How to use output redirection with sudo?

I wish to write text from stdin to a file that is owned by root.  I'm doing this programmatically across an SSH connection - essentially from a script - so using a text editor is out of the question. There is no terminal. The process is entirely automated.  Given that [a] root elevation can be obtained via sudo, and [b] files can be written to using cat with redirection, I assumed the following would work:  ssh user@host sudo cat >the-file   Unfortunately, the redirection is applied to sudo, not to cat. How can I apply redirection to cat in this example?


Can I replace post mount disc brakes calipers with flat mount calipers?

I have post mount TRP Spyre calipers, how can I upgrade to flat mount Ultegra calipers? are there adapters available? I've only seen adapters for flat to post.


Suppose L is a finite dimensional Lie Algebra over an algebraically closed field of characteristic zero. I want to show that $[L,rad(L)]$ is nilpotent.  I was given a hint that all operators of the form $ad_{[L,rad(L)]}(x)$ are nilpotent which proves this result via Engel's Theorem. I am, however, unclear on how one shows this. I assume Lie's Theorem is used, but I can't figure out how.


What is the heat needed for an isothermal expansion of gas and why do physics and chemistry yield different answers?

One mole of a certain ideal gas is contained under a weightless piston of a vertical cylinder at a temperature $T$. The face of the piston opens into the atmosphere. What is the heat supplied in the process to expand the gas from volume $V_1$ to $V_2$ isothermally ? Friction of the piston against the cylindrical wall is negligibly small.   Now thermodynamics is a common topic to both physics and chemistry and as per my understanding of thermodynamics,I am getting different results for the heat that will need to be supplied.  According to physics :$$∆Q =∆U+∆W$$  And here the Work done is the Work done by the gas. That is :  $$W = \int PdV=\int \frac{RT}{V}dV = RT( \ln V_2)-RT( \ln V_1)$$ and as for Isothermal process: $$∆U =0 , ∆Q =RT( \ln V_2)-RT( \ln V_1)$$   Chemistry on the other hand  says: $$∆U =∆Q +∆W $$ and defines it as the Work done on the gas and this will give: $$W = -P_{atm}(V_2-V_1) $$ and as for isothermal process:$$ ∆U =0 , ∆Q =P_{atm}(V_2-V_1)$$  I am also uncertain that maybe neither of these is the correct expression and the network is actually in that work from both these forces and we have to take the sum of these to yield :$$∆Q =RT( \ln V_2)-RT( \ln V_1)-P_{atm}(V_2-V_1)$$  Now the value of $Q$ should be unique because in the real world when we perform an experiment, only one value of $Q$ would be supplied.  So which one of these is correct and where am I lacking in my understanding of thermodynamics from a physics standpoint ??  Now as this question links both physics and chemistry, I want to post it on both sites (I hope it's fine) and the link to it is


If $f$ has no non trivial fixed points and $f\circ f$ is the identity then $f(x)=x^{-1}$ and $G$ is abelian for $f$ an automorphism of $G$

Let $f$ be an automorphism of the finite group $G$ such that $f\circ f=id$ and $f(x)=x\implies x=e$ Prove that $f(x)=x^{-1}~\forall x\in G$  If we can prove that $f(x)$ and $x$ commute for any given $x\in G$ then we're done with the proof because it would imply $$xf(x)=f(x)x$$ $$f(f(x))f(x)=f(x)x$$ Because $f\circ f=id$. And since $f$ is a homomorphism: $$f(f(x)x)=f(x)x\implies f(x)x=e\implies f(x)=x^{-1}$$ I don't know how to proceed The fact that $G$ is abelian can be deduced once we have $f(x)=x^{-1}$ because that function is a homomorphism if and only if $G$ is abelian


Bottom align element in Jumbotron Bootstrap

I want to vertical align an element(arrow) at the bottom of the jumbotron which covers the whole page. I want to be able to do this without using jquery; I want to use only HTML, CSS and if required JavaScript.  The element  needs to be bottom aligned according to the jumbotron  Required Minimal Snippet is given below    .jumbotron {   background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1546448396-6aef80193ceb?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1051&q=80');   background-repeat: no-repeat;   margin-bottom: 0px;   background-position: center;   background-size: cover;   min-height: 100vh; }  #arrow {   margin-left: 50%; } <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

Hello, world!

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

It uses utility classes for typography and spacing to space content out within the larger container.

     Learn more


In Age of Ultron, Thor seems to know something he possibly shouldn't?

Sorry for the cryptic title, but I realise the film has only just been released in the UK and Europe and is yet to be released in the US.  I'll hide all substantial parts of my question, just in case. I don't want to spoil anything.     At the end of Age of Ultron, Thor states that 4 infinity stones have now shown up in the last few years.   So,     By my count we have the Tesseract, from several of the first few films. The Aether, from Thor 2. The Chitauri Scepter, again from several films. And finally, we have The Orb, from Guardians.    Now, to my knowledge     Thor, and indeed none of the Avengers, should know about The Orb. I don't remember Thor visiting the Collector between GoTG and the AoU. So, how did Thor know that The Orb had appeared? Or is he referencing a different infinity stone?   I'm looking for an in universe answer, ideally.


Android Firebase - Getting null value in addChildEvevntListener after adding data to firebase Database

I am having two classes one is for uploading data, and other one is for retrieving data using addChildEventListener in firebase. My problem is when i upload the data its getting stored in database correctly. but as soon as i upload my data my childEventListener throwing null value. But when i manually add data to firebase database (website) am getting correctly.                                   Here is my uploading class                                                            Firebase mref = new Firebase("https://social-a92cf.firebaseio.com/user");   Firebase create;        //name        create = mref.child(user+"_" + key_id).child("firstname");        create.setValue(profile_Name);         //date        create = mref.child(user+"_" + key_id).child("date");        create.setValue(date);         //place        create = mref.child(user+"_" + key_id).child("place");        create.setValue(place);        //description         create=mref.child(user+"_"+key_id).child("description");         create.setValue(description);          //imageurl        create = mref.child(user+"_" + key_id).child("url");        create.setValue(IMG_URL);        Toast.makeText(getApplicationContext(), "Uploaded",Toast.LENGTH_LONG).show();   My addChildEventListener                                                          mref.addChildEventListener(new ChildEventListener() {           @Override         public void onChildAdded(DataSnapshot dataSnapshot, String s) {              if(flag==1) {                  ContactInfo ci = new ContactInfo();                  if(dataSnapshot.child("url").getValue()!=null && dataSnapshot.child("firstname").getValue()!=null && dataSnapshot.child("description").getValue()!=null && dataSnapshot.child("place").getValue()!=null && dataSnapshot.child("date").getValue()!=null) {                       ci.displayName = dataSnapshot.child("firstname").getValue().toString();                     ci.displayDate = dataSnapshot.child("date").getValue().toString();                     ci.description = dataSnapshot.child("description").getValue().toString();                     ci.displayPlace = dataSnapshot.child("place").getValue().toString();                     ci.imgUrl = dataSnapshot.child("url").getValue().toString();                     list.add(ci);                     ca.notifyDataSetChanged();                     recList.smoothScrollToPosition(ca.getItemCount());                  }             }          }         @Override         public void onChildChanged(DataSnapshot dataSnapshot, String s) {          }          @Override         public void onChildRemoved(DataSnapshot dataSnapshot) {          }          @Override         public void onChildMoved(DataSnapshot dataSnapshot, String s) {          }          @Override         public void onCancelled(FirebaseError firebaseError) {             Toast.makeText(getApplicationContext(),"Problem in loading feeds",Toast.LENGTH_LONG).show();         }       });   Can anyone help me how to solve this issue please.


Paper acceptance probability in case of Minor revision after a major revision

I submitted a paper in Physics background journal. At the 1st review, the referees' have written positive statement. One of the referee suggested minor revision, while the other suggested major revision. I have revised the paper according to the referees' comments. Recently. I have received minor comments (only a few text corrections) from the referee who suggested major revision at the 1st review. I have revised again the paper according to the referee comments and submitted to the journal about 2 weeks ago. However, I have received any decision letter yet. Does a minor revision after a major revision lead to acceptance ?


Maximum number of monitors Win 7 Supports?

I want to set up a system with (9) monitors arranged in a 3x3 grid.  Is this configuration possible with Windows 7? Does it max out at a set number of monitors?  Any suggestions about known working hardware combinations would be much appreciated.  Currently considering (3) nVidia Quadro NVS420 cards to drive the array.


Calculating CR of monsters that do not deal calculable damage

How do I calculate the challenge rating of monsters that feature abilities that do not directly do damage?  For example, my homebrew monster has the two following abilities:     The target takes a Constitution saving throw. On a failure, it drops to 0   hit points.   This one could be used on a character with 10 hit points, or 100, which creates drastically different damage results depending on character level.     All creatures within 60ft take a Wisdom saving throw. Each target that fails is stunned for 1 round.   This can be extremely dangerous if this monster is paired with monsters that can make use of the stun condition, but it is virtually useless if the monster is alone.  I'm sure there are infinitely more examples of this type of thing.  How do we calculate CR for monsters that do not rely on standard attacks?


Appending element at specific position in nested list


Build 1.3.1.214 crashes in iOS 9 betas 1 & 2 when tapping a site name

In build 1.3.1.214, the app will crash in iOS 9 betas 1 & 2 once tapping on the menu icon > sites > Stack Overflow (or any other site you're subscribed to).


I am working on a jsp page where i want to redirect to pages according to following condition. only the else part is working even when i type Google in text field. P.S. I am hosting it on localhost Glassfish Server   <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     <title>JSP Page</title> </head> <body> <%     String x = request.getParameter("browse");     if (x == "Google" || x == "google") {         response.sendRedirect("http://www.google.com");     } else if (x == "youtube" || x == "Youtube" || x == "you tube" || x == "Music") {         response.sendRedirect("http://www.youtube.com");     }else {         response.sendRedirect("http://localhost:11146/Project_Julie/" + x + ".jsp");     } %> </body> </html>


I saw this awesome artwork from Mohamed Chahin on instagram. Does anyone know how to make the sun ray?


Animation/position of vertices or faces controlled by another object's position relative to it

So I'm trying to artificially enhance a 3D objects look to look more 2D, by having certain parts of the geometry shift in specific positions when the camera is facing those faces/vertices from specific angles to it.   To explain in an easier to word and grasp way: Think of a random character When the camera is facing from the left, the characters eyes look up and smiles, When camera is facing from the front character has closed eyes and frowns Etc  However when the character is faced from the front, but the head is turned to the side so that the characters face is viewed from the left, the behavior for the face displays the animation/position displacement for "camera on the left" while the body (the parts faced from the front) would display the position displacement/animation behavior for "camera facing the front" If this makes any sense?


Downloaded the newest version, 2.73a, twice.  Each time the download seems to go well, but when i start the program it opens only for a second then closes.  It does this repeatedly.  Using Win8.1.  Had no trouble with v2.72, i used it from when it first appeared until yesterday.  Anyone know what my problem is and how to fix it?  ..thanks,  gmo


My office is going to buy a bulk number of desktop PCs (for developmental purposes).  I encouraged them to buy PCs without a pre-installed OS and then install Linux. My colleagues agree with me but they are not regular users of any Linux-based OS, so they want to choose a Linux OS which is best for our purposes and user-friendly and I suggested Ubuntu.  Now I want some data to support my position, what's so good about Linux and specifically Ubuntu?


Custom Post Type URL Change - (portfolio using portfolio categories)

I wonder if you could help me.  I'm using a theme which has portfolio as a custom post type. The portfolio items can be categorised in a similar way to standard posts.  Currently, theme outputs portfolio URLs in the following format:  mysite.com/portfolio/portfolio-post   ...where portfolio-name is simply the post title. the middle section of the URL remains static.  What I would like to achieve is something like this:  mysite.com/portfolio-category/portfolio-post   ...where the portfolio-category proportion of the URL is taken from the portfolio category.  Each portfolio post will only be assigned to a single portfolio category at any one time.  I can send code examples across if this makes it easier for you to understand what i'm trying to achieve.


Let $R$ be a relation on two countable sets $A$ and $B$, where $R\subset A\times B$, with the following properties:   $\forall a\in A$ the set $\{b\in B: (a,b)\in R\}$ is finite. For any finite set $A_0\subset A$: $$|\{b\in B : \exists a_0\in A_0, \text{such that} \ \ (a_0,b)\in R  \}|\leq n|A_0|$$ where $n\in\mathbb{N}$.   I need to show then, that there exist $n$ disjoint sets, $B_1,B_2,\dots, B_n$, where $B_i\subset B\ \ \ \ \ \ \forall \  \ 1 \leq i\leq n$, and there exists $n$ one to one and onto functions $f_1,f_2,\dots, f_n$ such that $f_i:B_i\to A \ \ \ \ \ \ \ \forall \  \ 1 \leq i\leq n $?  Thank you for your help.


Prove that if $A$ is transitive, then $\mathcal{P}(A)$ is transitive too.

My book on set theory says     Prove that is a set $A$ is transitive, then $\mathcal{P}(A)$ is also transitive, where $\mathcal{P}(A)$ is the power set of $A$.   I don't know understand how. Let $A=\{a,b\}$. Clearly it is transitive. Now $\mathcal{P}(A)=\{\{a\},\{b\},\{a,b\},\emptyset\}$. This is clearly not transitive.


How should I apply for readmission to a graduate program from which I had to withdraw due to misconduct caused by a disability?

A few years ago, I was required to withdraw from a PhD Program at my previous institution because of academic misconduct. However, doctors found it was a result of disability. I have spent a few years publishing papers. I have also addressed the disability. I am interested in re-applying to the same program now. The administrator told me to go through the normal admissions process again to re-apply. I wanted to ask advice about whether this is advised. Can anyone be successful? How should one move forward? Thanks


MathJax rendering in Hot Network Questions sidebar

I've come across this oddity while perusing the Physics stack. The linked question is , being that due to the dollar signs on both sides, MathJax was triggered. I'm not sure if this is intended behavior, hence the post.  Oddly enough, after trying several times (reloading the page, visiting other pages), I was unable to reproduce the issue.  Related:


Why my U.S. B1 Visa got refused under 214 (b)?

I went for B1 U.S. Visa at the U.S. Embassy in Delhi.   Interviewer: *Good Morning*. Me: *Good Morning* Interviewer: *What is your designation?* Me: *I am a Software Engineer.* Interviewer: *What is the name of your company?* Me: *It is XXX (I replied).* Interviewer: *What is the name of your client?* Me: *It is YYY (I replied).* Interviewer: *Have you ever been to U.S. before?* Me: *NO* Interviewer: *Have you ever been abroad before?* Me: *NO*   At this point he rejected my Visa with letter mentioning 214 (b) as the reason. I don't know why he actually rejected it.  But, I have decent 2+ years of experience with my company. And, I was going on a business meeting with the client. I would have come back after 2 weeks.  I don't know if re applying will help.


Did time exist before the Big Bang and the creation of the universe?

Does time stretch all the way back for infinity or was there a point when time appears to start in the universe?  I remember reading long ago somewhere that according to one theory time began shortly before the creation of the universe.  Does time have a starting point of note?


View complete list of ports open and closed

When a port shows up in nmap or netstat I know its open and listening. But thing is, how do I know what other ports are actually open on my server, even though they may not be listening right now?  How can I view a complete list of all ports that are actually enabled even though they may not be listening or being used right now?  I'd like to shut down those, so not one can exploit them.  Right now, there 80 and that's Apache. What others are actually there but not being displayed. I'm on a VPS like AWS.


Rounding the SIGNIFICANT digits in a double, not to decimal places

I need to round significant digits of doubles. Example Round(1.2E-20, 0) should become 1.0E-20  I cannot use Math.Round(1.2E-20, 0), which returns 0, because Math.Round() doesn't round significant digits in a float, but to decimal digits, i.e. doubles where E is 0.  Of course, I could do something like this:  double d = 1.29E-20; d *= 1E+20; d = Math.Round(d, 1); d /= 1E+20;   Which actually works. But this doesn't:  d = 1.29E-10; d *= 1E+10; d = Math.Round(d, 1); d /= 1E+10;   In this case, d is 0.00000000013000000000000002. The problem is that double stores internally fractions of 2, which cannot match exactly fractions of 10. In the first case, it seems C# is dealing just with the exponent for the * and /, but in the second case it makes an actual * or / operation, which then leads to problems.  Of course I need a formula which always gives the proper result, not only sometimes.  Meaning I should not use any double operation after the rounding, because double arithmetic cannot deal exactly with decimal fractions.  Another problem with the calculation above is that there is no double function returning the exponent of a double. Of course one could use the Math library to calculate it, but it might be difficult to guarantee that this has always precisely the same result as the double internal code.  In my desperation, I considered to convert a double to a string, find the significant digits, do the rounding and convert the rounded number back into a string and then finally convert that one to a double. Ugly, right ? Might also not work properly in all case :-(  Is there any library or any suggestion how to round the significant digits of a double properly ?  PS: Before declaring that this is a duplicate question, please make sure that you understand the difference between SIGNIFICANT digits and decimal places


Contain the Georgian Triangle and Southwestern Ontario any 'drive-through' parks or wildlife areas?

'Southwestern Ontario' means , as depicted in the reddened area of  Wikipedia's map below: it includes the , but excludes the  and .    Question: Does Southwestern Ontario contain any parks or wildlife areas that contain roads or trails through which you can drive in a car to explore? .


We already know Euler's candy division problem as follows. How many ways are there to divide $n$ of the same candies among $k$ people so that everyone has at least $1$ candy with $n\geq k$ ? We can refer to the integer equation to solve $$x_1+x_2+\cdots+x_k=n, \text{for } x_1,x_2,\cdots,x_k\geq 1.$$ The answer to this problem is $$C^{k-1}_{n-1}=\dfrac{(n-1)!}{(k-1)!((n-1)-(k-1))!}.$$ However, what if we replace $n$ of the same candies for $n$ other candies (candies are different) ? Please help me. Thanks for all the help.


Do Nigerian citizens need a transit visa for Brazil?

Do I need a transit visa in Brazil on the way to Ecuador. I am a Nigerian national.   I am travelling to ecuador and I was asked to get a Brazilian transit visa as I am to board another airline from Sao Paulo.


Let $V$ be a finite dimensional vector space and $U^0$ and $W^0$ denote the annihilators of subspaces $U$ and $W$, respectively.  Then I need to show that $(U\cap W)^0 = U^0 + W^0$.  I can show that $U^0 + W^0 \subseteq (U\cap W)^0$ like so: Let $f\in U^0$ and $g\in W^0$.  Then, because $U^0, W^0 \subseteq (U\cap W)^0$, we see that if $f\in U^0$ and $g\in W^0$, then for any $v\in U\cap W$ and $a,b \in \Bbb F$, $(af+bg)(v) = af(v) + bg(v) = 0$.  Thus $af+bg\in (U\cap W)^0$.  But because $f$ and $g$ were arbitrary, this implies that any linear combination of elements of $U^0$ and $W^0$ is an element of $(U\cap W)^0$.  I.e. $U^0+W^0 \subseteq (U\cap W)^0$.  But I haven't had any luck proving the other direction.  Obviously I should start with $f\in (U\cap W)^0$.  But then it looks like I need to somehow break that function into two to show its in $U^0 + W^0$.  That's throwing me off.


Re-entry to USA after flying back to the UK for 2 weeks (ESTA)

I'm flying to the US in June for a total of 67 days in order to visit my girlfriend. I would have liked to stay the full 90 days but I've had to book an earlier return flight so I can come back to the UK to take an exam resit at my university. After the two week exam period, however, I have approximately another month before I have to start back at university.  Would flying back home after such a long stay in the US only to return 2 weeks later put me in danger of being denied entry at border control? I thought maybe if I was able to explain the reason for my return home and provide evidence that I'm starting back at university again, I'd be ok, but I don't want to jeopardise future trips to see my girlfriend just for the chance to spend a few extra weeks with her.  To complicate matters further, I've recently applied for the Global Entry program and am hoping to be approved before I leave the US. Would being a Global Entry member guarantee that I'd be able to return after my exam resit or would I still be taking a risk?  Thanks for your help.


Is there an android distribution that presents a stripped-down ereader interface and nothing more?  The reason for this is just a matter of ultimate usability.


Distribution where mean and mean of reciprocal are both 1

Is there a non-trivial distribution for a positive r.v. $X$ such that $\mathbb{E}(X) = \mathbb{E}\left(\frac{1}{X}\right) = 1$? If possible, I'd like the distribution to support (have positive probability for) the range (0, $\infty$).  If I could ask a follow-up, is there a family of distributions such that taking the reciprocal keeps you in that family?


How do you do a negative regex query in Mongodb?   I want to find all documents, where "Name" does not contain the string "james". E.g. filter out "james" or "john james" or "john james peter" or "somethingjames"  This works, but ONLY if the string begins with "james".   db.name.find({"name":/^((?!james).)/i});   What's wrong?


Is $f(x) = 1$ equal to $f(x) = \frac{x}{x}$?

This question must be weird, but:     Is $f(x) = 1$ equal to $f(x) = \frac{x}{x}$ ?   The reason I am asking is:  Since $\frac{x}{x} = 1$, it would be reasonable to conclude $f(x) = 1$ is indeed equal to $f(x) = \frac{x}{x}$. However, it we look at the graphs of these two functions, we can see that $f(x) = 1$ is continuous everywhere, yet $f(x) = \frac{x}{x}$ is undefined at zero.


Bibliography - Spaces between words when using url

As can be seen below, I am trying to figure out how to remove big spaces in the BibTeX based bibliography when URLs are used. I have already checked similar questions on tex.stackexchange but to no avail.  The below example also shows that this issue is evidently caused by the associated URL.  Can anyone provide me with an easy fix for this problem?  Minimal working example:  Document:  \documentclass[11pt,a4paper]{article} \usepackage{a4wide} \usepackage[breaklinks]{hyperref}  \begin{document} \pagenumbering{arabic} \setcounter{page}{1}  \cite{McL10a} \cite{McL10b}  \bibliography{references} \bibliographystyle{alphadin} \end{document}   .BibTeX-File:  % Encoding: UTF-8  @Electronic{McL10a,   author    = {G. Harry McLaughlin},   year      = {2010},   title     = {SMOG - Simple Measure of Gobbledygook},   url       = {https://web.archive.org/web/20100415194430/http://webpages.charter.net/ghal/SMOG.htm},   timestamp = {2010-04-15}, }  @Electronic{McL10b,   author    = {G. Harry McLaughlin},   year      = {2010},   title     = {SMOG - Simple Measure of Gobbledygook},   timestamp = {2010-04-15}, }  @Comment{jabref-meta: databaseType:bibtex;}   Output:    Edit1: @davidpurton - Using \Urlmuskip=0mu plus 4mu fixed the spaces in the title, but created new spaces in the url itself.


Do immature fruits perform photosynthesis? Yes they have chlorophyll bodies. But do they have stomata through which they can absorb carbondioxide like the green leaves? Sincerely Ulrik


I sometimes have questions that are suitable for 2 or more Stack Exchange sites. For example, a question on configuring a development database for a website.   This question could be posted on  or .   Wouldn't it be a good feature if you can post the question on one site, then just register it as a 'cross-site post' so that the question and all its answers can be visible on all the sites that it is marked for.   This will cut down on cross-site posting, and allow the same question to be answered by experts with different expertise.   This will promote cross site collaboration, as different users from different sites will be able to see how other parties are answering or commenting on the same question.


Assignment of singly-linked list in java

We have the following approach to merge two singly-linked list in java  /**  * Definition for singly-linked list.  * public class ListNode {  *     int val;  *     ListNode next;  *     ListNode(int x) { val = x; }  * }  */ public class Solution {     public ListNode mergeTwoLists(ListNode l1, ListNode l2) {         //the next node of dummy will be pointing at the final result so it is easier to return         ListNode dummy = new ListNode(0);         ListNode result = dummy;         while (l1 != null && l2 != null) {             if (l1.val < l2.val) {                 result.next = l1;                 l1 = l1.next;             } else {                 result.next = l2;                 l2 = l2.next;             }             result = result.next;         }          if (l1 != null) {             result.next = l1;         } else {             result.next = l2;         }          return dummy.next;     } }   My question is after assigning dummy to result, dummy changes as result changes. This is intuitively correct because when I access the next of result, I am accessing the next of dummy.   However, for when I have an assignment like int a = 5; and change reassign a = 6, we would not get 5 == 6 apparently.   Or if I do result = ListNode(1), my guess is dummy would not be changed to ListNode(1).   What is the logic behind their distinctions?


Not getting the desired output for echo command

Below is my script.  #!/bin/bash SERVERS="sl20rht00-t" #SERVERS="shcbrht01-t" USR="adm-dt-c" for host in $SERVERS do ssh -tt $USR@$host 'sudo cp /etc/sudoers /Backups/sudoers_11thmarch2015; sudo cp /etc/ssh/sshd_config /Backups/sshd_11thmarch2015; sudo cat /home/adm-dt-c/denyuser >>  sudo /etc/ssh/sshd_config; sudo /etc/init.d/sshd restart;' done exit 0   The problem is I'm not able to append the line in /etc/ssh/sshd_config even after the successful execution of the script.


What does the following declaration means?

I'm new to programming world and i'm studying about pointers and array. and i read this code on a website. what does this line of mean?   int(*ptr)[10];   Is it a pointer or an array of size 10?


Review queue edit posts mouse doesn't work

Basically when reviewing a low quality post, if I choose to edit the item, I cannot move the cursor by clicking in the textarea. The keyboard is working fine, but any mouse interaction appears to be disabled.  The issue only appears if you review one item first, then the next item is loaded in. Editing this item will have disabled mouse input.  I haven't tested other review queues yet but will do so as soon as possible. This seems to only affect low-quality posts.  Browsers I've tested:  Broken   Chrome 33, Win 7 Chrome 34, Win 7 | OSX Mavericks Chrome 36, Win 7 Firefox 28, Win 7 Safari 8, Yosemite   Working   Safari 7 OSX Mavericks (Intermittent)


Is it possible to create a bijection between all pairs of reals and a real?

The title basically says it all.  Is it possible to associate with each pair of reals, another unique real?  I guess you could say I'm looking for functions of two real arguments that return a distinct real number.


What are the rules that govern Deadpool's regenerative powers?

Most of my doubts about his healing ability were answered .   Deadpool has one of the greatest healing factors in the Marvel universe. As mentioned :     Deadpool possesses a superhuman healing factor derived from that of the mutant Wolverine that allows him to regenerate damaged or destroyed areas of his cellular structure at a rate far greater than that of an ordinary human. As such, he can regrow severed limbs or vital organs.   However, I have a slight confusion about Deadpool's regenerative limit. What is the deciding factor which chooses to grow into a complete 'Pool? Hypothetically, for example, if he's blasted into several pieces, will we have multiple 'Pools? (that would be fun though!)


How to remove feeds from WordPress totally?

I want to completely remove feeds from WordPress. I am using this little function from    /** * disable feed */ function fb_disable_feed() { wp_die( __('No feed available,please visit our homepage!') ); } add_action('do_feed', 'fb_disable_feed', 1); add_action('do_feed_rdf', 'fb_disable_feed', 1); add_action('do_feed_rss', 'fb_disable_feed', 1); add_action('do_feed_rss2', 'fb_disable_feed', 1); add_action('do_feed_atom', 'fb_disable_feed', 1);   Still there is tons of transient options.. like _transient_feed_mod or _transient_timeout_feed_mod  How can i completely remove feeds from WordPress?


What does the generic type mean for the below source code for java.lang.Enum abstract class:  public abstract class Enum<E extends Enum<E>>     implements Comparable<E>, Serializable {   I suppose E should extend Enum type since it is abstract but source code says that Enum again should be of type<E>.


If A is a set and A ⊂ A×A, then prove that A = Empty Set

If $A$ is a set and $A\subset A\times A$, then prove that $A=\varnothing$.   In the exercise, it says that I am supposed to use Zermelo-Fraenkel axioms to prove this statement.   I have tried to use Axiom of Regularity to an extent, but couldn't figure out anything from there to precede.       (Axiom  of Regularity):  $\forall x\,(x\neq \varnothing \rightarrow \exists y\in x\,(y\cap x=\varnothing ))$.    EDIT: I realize that a similar question has been asked but the answer I am looking for specifically involves only the Zermelo-Fraenkel axioms. So the other answer is not sufficient for me. Any contribution will be appreciated.


Want to add a small resized logo in the upper left side on every page?

\documentclass[11pt]{article}  \usepackage{pdfpages} \usepackage{eso-pic} \usepackage{lipsum}  \AddToShipoutPictureBG*{%   \AtPageUpperLeft{%     \hspace{\paperwidth}%     \raisebox{-\baselineskip}{%       \makebox[0pt][r]{Number sampe}      }}}%   \begin{document} \includepdf{Plagiarism.pdf}   \title{Lab Report}    \maketitle    \end{document}   I want to know how it is possible to include a small resized logo into every page I create. Thank you in advance.


Will Stack Exchange 2.0 websites stay free of ads for the next 2 years?

StackOverflow, ServerFault, and Superuser have ads. (I only see them when I'm not on my own computer where firefox and chrome AdBlock extension is not installed). The new SE 2.0 websites do not seem to have ads. Will this continue for the next couple of years?  I would like to know because ads could be a factor in decisions on whether to migrate existing SE 1.0 communities to SE 2.0 or to use an alternative Q&A platform. There are free-software clones of Stack Exchange (Shapado, possibly others...). I know 1 community (Cheminformatics) that uses a clone and 1 (Bioinformatics) that is considering switching to a free platform. The clones have all the essential features but Stack Exchange software quality and quantity is in the lead.


Does a photon interfere only with itself?

I sometimes hear statements like:     Quantum-mechanically, an interference pattern occurs due to quantum interference of the wavefunction of a photon. The wavefunction of a single photon only interferes with itself. Different photons (for example from different atoms) do not interfere.   First of all -- is this correct?   If it is correct -- how do we explain basic classical interference, when we don't care about where the plane waves came from?   I heard that there are experiments with interference of two different lasers -- is this considered as a refutation of the statement? If it is -- how should one formally describe such a process of interference of different photons?  Finally -- such statements are usually attributed to Dirac. Did Dirac really say something like that?


I stayed on the Schengen area for 180 days with a visitor's residence permit. Can I leave and re-enter as a tourist within a day?

I entered the Schengen area on March 25 and before the 90-day period expired I applied for a visitor's residenced permit that allowed me 90 extra days. If I go to the UK before August 23 for a week and come back, will they see it as a new 180-day period since I actually entered on March 25 or does the fact that I got those extra 90 days with a visitor residence permit change the 180-day period rule?


Why not to calculate the limit of individual terms when the number of terms approach infinity due to limiting variable?

My instructor was using this example to illustrate his point- $$ \lim_{n\to \infty} \frac{1+2+3+...+n}{n^2}$$ The numerator is an AP and the limit can be easily calculated this way to be a finite number($0.5$ in this case). But, if we use the sum law and separate all the $\frac{r}{n^2}$ terms, the individual limits will be $0$ and so will be the answer. This is what my instructor told me to avoid. My question is-  Why can we not do this? Should we also not do this if the individual limits are finite values? Is this specific to the sum law?


Number of nonempty subsets of a set with $n$ elements

Given a set of whole numbers of size $n$, how many unique combinations of these whole numbers are there?   For example, for the set $\{1,2,3\}$ the unique combinations are   $\{1,2,3\}, \{1,2\}, \{1\}, \{2\}, \{3\}, \{2,3\}, \{1,3\}$   The number of combinations for $\{1,2,3\}$ is $7$.  Does this generalize to the number of unique combinations in a set is $2^n-1$ where $n$ is the number of elements in the set?


When I refer to a table in text, the \ref{<labeloftable>} statement produces the chapter number in which the table resides, instead of the number of the table.  Any help would be welcomed!


Change Gmail account to make in-app purchase?

What is the procedure to change email account which you want to use to make in-app purchase?  Take a look at the image.    Click to enlarge the image  I am using 2 Gmail accounts and only 1 has a credit card attached. The primary account has a credit card, the secondary does not. But my secondary account is always in the payment dialogue. The secondary account is also not the account used in Play Store app.   I found no way to change this email.


How to set default view in lightning experience (maybe in Summer 2016 release)

I'm using lightning experience for all new apps.  Is it possible to set the default list view to not Recent in lightning?   This may be something that is in the Summer 2016 release which is what I'm working in for my prototype.


Preparation of exam or preparation for exam. Which is correct?


How to copy a folder recursively in an idempotent way using cp?

When I use   cp -R inputFolder outputFolder   the result is context-dependent:   if outputFolder does not exist, it will be created, and the cloned folder path will be outputFolder. if outputFolder exists, then the clone created will be outputFolder/inputFolder   This is horrible, because I want to create some installation script, and if the user runs it twice by mistake, he will have outputFolder created the first time, then on the second run all the stuff will be created once again in outputFolder/inputFolder.   I want always the first behavior: create a clone next to the original (as a sibling). I want to use cp to be portable (e.g. MINGW does not have rsync shipped) I checked cp -R --parents but this recreates the path all the way up the directory tree (so the clone will not be outputFolder but some/path/outputFolder) --remove-destination or --update in case 2 do not change anything, still things are copied into outputFolder/inputFolder   Is there a way to do this without first checking for existence of the outputFolder (if folder does not exist then...) or using rm -rf outputFolder?  What is the agreed, portable UNIX way of doing that?


Any ideas why REITS seem to be headed to zero?

Being old I have/had much of my 401 K in REITS for income. I specifically avoided mall and retail.  Most imply that they are mostly residential mortgages. All are down substantially more than market averages. I am hoping they can still pay some, if not all, dividends as an offset to the capital losses. What may happen?


Beamer: show a column in the second slide of a tabu

I need to prepare a tabular where the third and the sixth rows appear only in the second slide, for their elements are the answer of the exercise. I attempted putting a general \onslide<2-> in > but it doesn't work. Can someone fix that for me, please?  \documentclass{beamer} \usepackage{tabu}  \begin{document} \begin{frame} \frametitle{Activity} \begin{center} \renewcommand{\arraystretch}{1.25} \begin{tabu} to \linewidth   {*{3}{>{\bfseries}X[0.2rm]X[lm$]>{\color{Blue}}X[lm$]}} % Exercise 1) & 3x + 6 & 3(x+2) & 2) & 5x+15 & 5(x+3) & 3) & 4x+20 & 4(x+5) \cr \end{tabu} \end{center} \end{frame} \end{document}


Evaluate the limit by using epsilon-M approach.

Can anyone help me please? Don't know where to start since the numerator looks complicated. Thanks!


Where to start learning to become a successful Oracle DBA

I am IT Graduate with good knowledge on SQL and C. I have done most of the SQL programming on Microsoft SQL Server in my academics. But i want to become Oracle DBA. Could you please suggest me a structural way to to start learning.  And also please suggest me what background work is needed before digging into it. Thanks


What power enables Quicksilver to move people at super-speed without killing them?

I just watched X-Men Apocalypse, and there's an awesome scene of quicksilver clearing everyone out of an exploding building, but I want to know why he isn't ripping people's skeletons right out of their skins when he moves them at such amazing velocities.    In the previous movie it was established that he held onto people's heads so they didn't get "whiplash" but that doesn't seem to explain how he can move a person faster than an explosion without them suffering other effects of extreme acceleration (such as death).  Does Quicksilver emit some sort of inertial dampening field when he touches people that enables them to survive moving quickly?


How to undo misclicks while drawing a polygon?

I'm trying to draw some polygons in QGIS 2.2 and I lose it, because everytime I misclick, I don't find a way to undo that point and start drawing again.  I'm sure there's a way. Does anyone know it?


when i rotate a face it rotates the entire thing so like when i want to rote the face it rotates the rest of the mesh, i just want to rotate that singular mesh i am following a tutorial by tech guru () and about the 2:35 mark he rotates a face but when i do it it rotates the entire mesh   but i want it to look like this  entire screen (entire screen)


Proving that the functional $T_x : (C[0,1], \| \cdot \|_1) \rightarrow \mathbb{R}$ is not bounded, where $T_x(f) = f(x)$ and $x \in [0,1]$.

So, I need to show that the functional $T_x : (C[0,1], \| \cdot  \|_1) \rightarrow \mathbb{R}$ is not bounded. That means that I need to show that there is no $M>0$ such that $|T_x(f)| \leq M \|f\|_1 $. Equivalently, I need to prove that there is no $M>0$ such that $ |f(x)| \leq M \int_{0}^{1}|f(t)|dt $.  Any help would be greatly appreciated.


Crystal Report (8.5) on win7/windows 2008 64 bit system

Crystal Report (8.5) is not working on win7/windows 2008 64 bit system   My application is a VB application and I am using Crystal report 8.5. It is working fine on 32 bit system and 64 bit system of Windows 2003 server. When I run the same application either on win7 64 bit or on 2008 64 bit, report does not open. I am using vb script to access the database.  Part of the code written in the VB script file is as follows:  Dim objrsRecordSet                 'As RecordSet Dim strSQL                         'As String  '**** Open Database Connection using the parameters passed from the main program Set dbConnection = CreateObject("ADODB.Connection") dbConnection.ConnectionString = "Provider=SQLOLEDB;Server=" & mstrServer & ";uid=" & mstrUserName _                                 & ";pwd=" & mstrPassword & ";Database=" & mstrDatabase & ";"  dbConnection.Open dbConnection.CommandTimeout = 200  dbConnection.Properties("Enable Fastload").Value = True   When I run my application in debug mode it is working fine on windows 7 also. But when I run the application through the set up by consuming the .dll of crystal report then it is not working, in this case report is not opening.  Please help me out with this issue, i will appreciate for your response.


People deleting their own questions once they have an answer

This has happened to me at least 3 times in the past few weeks. Basically, a user asks a question. I put some time and thought in an answer and reply to their question. I come back a bit later to see if they have commented on my answer and I don't have any notifications. Fine then, I check my list of recent answers but I can't find it in there. Perplexed, I check my browser history and retrace the question   I'm not sure what the purpose of this is, but perhaps someone could clear it up for me? Why do people do that? Is it because they realized what the answer was themselves? In this case, they should probably post an answer and accept it, to help other people who will encounter the same problem? Maybe from the answers they were given, they realized that the question's answer was obvious, and are ashamed of having asked it? Even in this case, I still don't think they should delete the question, but instead accept an answer and thus reward those who gave time answering their question, and maybe help others with the same problem in the future.  Am I the only one seeing this or is this a common problem? I wish I could retrace all the times this has happened to me. Is there something that can be done against this?


Re-entry to UK Resets Length of Stay Period?

Similar to the question here, , I have a similar but different question.   I am an SG passport holder, which allows me to be in the UK for 6 months.   Question 1: If I leave UK and visit somewhere (i.e. France), does the 6 months reset when I return?  E.g. I leave UK on the 100th day. I travel to France for 7 days. When I return to UK, am I left with 80 days or it resets to 180 days?  Question 2:  Schengen area has a limit of 90 days per 180 days. Is there something similar in UK?   Thanks!


Is there any Python/setuptools approach I could take to write a tool to change directory? There's a somewhat complicated path behind the scenes computed from a single parameter.  e.g., here's the closest I could come (in bash, untested):  alias mycd='function _mycd() { cd `myscript $1` };_mycd'  where myscript is something I can make available using console_scripts in setuptools.  I'm wondering if there was any way I could accomplish this in a self-contained manner, where for example, I don't edit a user's .bash_profile or save something in their bin or whatever. e.g., can I define an alias using setuptools?


Subsets of the reals when the Continuum Hypothesis is assumed false

If one assumes that the continuum hypothesis is false then there are subsets of the reals of intermediate cardinality, uncountable but smaller than the continuum. What can be said about the necessary  properties of such a set e.g. topological properties other than that it cannot be closed?


Find all solutions to the diophantine  equation $7^x=3^y+4$ in positive integers. I couldn't have much progress.  Clearly $(x,y)=(1,1)$ is a solution. And there's no solution for $y=2$. Assume $y \ge 3$ and $x \ge 1$. By $\mod 9$, we get $7^x \equiv 4\mod 9 \implies x \equiv 2 \mod 3 $. By $\mod 7$,we get $y \equiv 1 \mod 6$. I also tried $\mod 2$ but it didn't work. Please post hints ( not a solution). Thanks in advance!


Moving wire relative to stationary charged particle

"Now we turn our attention to what happens in $S'$, in which the particle is at rest and the wire is running past (toward the left in the figure) with the speed $v$. The positive charges moving with the wire will make some magnetic field $\ B'$ at the particle. But the particle is now at $rest$, so there is no magnetic force on it! If there is no magnetic force on the particle, it must come from an electric field. It must be that the moving wire has produced an electric field. But it can do that only if it appears $charged$-it must be that a neutral wire with a current appears to be charged when set in motion."  So i got this from Feynman's lectures in physics volume 2 pg 13-7 and 13-8. I find it hard to believe that the particle experiences no magnetic force due to the moving wire although it's stationary. Since this is classical and not quantum electrodynamics if we assume the charged particle to have inertia, then by Newton's second law, the particle will remain at rest until acted upon by an external force, which i assume is the $magnetic$ $wind$ created by the moving wire past the stationary charged particle. Could someone please clarify??


walking randomly in $1D$, $2D$ and $3D$ place

In our math book it is written that if you want to go to a random point in a $1D$ place and you randomly go right and left and also you have unlimited time finally you arrive at that point. Also in a $2D$ place you finally arrive there. But in a $3D$ place the chance to arrive there is 24%. It is really amazing but our book don't bring any proofs for it. How can we know this?


Displaying Person Account's "Last Name" , "Salutation" and "First Name" fields on a Visualforce Page

In my org i have enabled Person Account, and i have a visualforce page where i need to get Salutation,FirstName and LastName field from person account, But when i call it using <apex:inputField value="{!account.lastname}"/> I'm getting only field label here i'm using "account" as a standard controller.  But I have used same line of code i.e <apex:inputField value="{!account.lastname}"/> to get contact's Lastname using "Contact" as standard controller  Here in the below code I'm getting only field label for "Salutation" and "Lastname" but I'm getting both label and field for "Account Name"  can anyone tell me what's problem here ?  <apex:page standardController="Account" extensions="pick_list" > <apex:form > <apex:pageBlock > <apex:pageBlockSection >     <apex:pageBlockSectionItem >          <apex:outputlabel value="First Name"/>          <apex:outputpanel >          <apex:inputfield value="{!account.Salutation}" />          &nbsp;          <apex:inputfield value="{!account.FirstName}" />          </apex:outputpanel>   </apex:pageBlockSectionItem>   <apex:inputfield value="{!account.lastname}"   <apex:inputfield value="{!account.name}" </apex:pageBlockSection> </apex:pageBlock> </apex:form>    </apex:page>   This is what i expected to come    But Here is the screen of what i'm getting    Kindly tell me what's wrong here  Thanks in Advance.


Is it common to preprocess image data before sending it through a deep net?

I'm curious as how convolutional neural network are used in practice for object recognition. Is it common to perform data preprocessing before providing the data to the input layer ? If so, what types of preprocessing are common ?


filename of video downloaded using youtube-dl consists of random characters at the end of filename.name

There has been a consistent problem with downloading videos from youtube using youtube-dl.  The filename has random characters at the end.  e.g, original filename of the video is Scala Monads: Declutter Your Code With Monadic Design  but the filename of video after downloading is Monads - Declutter Your Code With Monadic Design-Mw_Jnn_Y5iA.f136.mp4  here is the warning during download:  WARNING: Requested formats are incompatible for merge and will be merged into mkv.   it will be really helpful if somebody could suggest a solution.


java ArrayList initial capacity performance effect

I have in my java app a loop that adds object arrays into a list  List<Object[]> list = new ArrayList<Object[]>();   I noticed that NOT giving an initial capacity was actually faster than giving the capacity.  I have a 23 seconds  vs 15 seconds difference.  I've created this dummy JUnit test to mock that and go 6 seconds vs 6.7 seconds difference, favoring the NO initial capacity:  @Test public void asdf() {      int rowSize = 20;     int rowCount = 10000000;      // DATA PREP     int[][] matrix = new int[rowCount][];     for (int i=0; i< matrix.length; i++) {          matrix[i] = new int[rowSize];         for (int j=0; j< rowSize; j++) {             matrix[i][j] = (int) (Math.random()*10);         }     }      BiFunction<Integer, Integer, Object> getValue = new BiFunction<Integer, Integer, Object>() {         @Override         public Object apply(Integer row, Integer col) {             return matrix[row][col];         }     };      //END DATA PREP      long start = System.currentTimeMillis();      // THIS IS THE DIFFERENCE!!!!     //List<Object[]> lst = new ArrayList<>(rowCount);     List<Object[]> lst = new ArrayList<>();      for (int i = 0; i < rowCount; i++) {         Object[] row = new Object[rowSize];          for (int j = 0; j < rowSize; j++) {             row[j] = getValue.apply(i, j);         }          lst.add(row);     }      long totalTime = System.currentTimeMillis() - start;      System.out.println(totalTime); }        How does it make any sense?  I know generally this code is crap, It's just trying to mock my real case, reading off a resultset (not the jdbc one).  Thanks!


Constant Strings & Static Final Variables in Lightning Components

When developing in APEX I'm frequently creating utility class where I put my static final strings (like picklist values etc.)  public static final String ATR_TYPE_PICKLIST = 'Picklist';   And then use them in the code like below:  if (type == ATR_TYPE_PICKLIST) {    ...  }   What would be the best approach to use corresponding pattern in Lightning Components? I would want to avoid using hardcoded values in the code like below:  if (attributeParam.name == 'ATR_BLOCATIONDETAILS_') {     ... }


It's well known that X symbol means close (and in some contexts dismiss or hide), but why/where was this symbol initially chosen?   My only thought was that when you want to "cancel" information on printed paper it is crossed-out and that led to X, which is similar to crossing out an item, becoming a symbol for cancel () which was then again re-purposed as close, but I have no evidence of this. Is there a history behind this symbol?


I want to encrypt a file with AES in CTR mode. I have a 256 bit master key and the file. Given these, the encryption must be deterministic, so I can't use a random nonce in the usual way. Fortunately the master key will be unique¹.  My original plan was to simply set the nonce to 0. Assuming no collision happens when deriving the 128 bit AES key from the master key, this should as secure as conventional CTR, where the nonce is prepended to the message.  An alternative plan is to also derive the nonce from the master-key. This seems to offer two advantages:   It makes key-nonce pair reuse more unlikely, since now they have 256 bits and not just 128 It prevents some kinds of known-plaintext attacks, since the attacker now doesn't know the content of the counter-stream, effectively turning the nonce into some kind of secondary key.   Is there a problem with either scheme? Is the second scheme better than the first?    ¹ assuming the 256 bit hashfunction I use is collision free


Why put unconstructive questions on hold instead of voting to closing/deleting them?

Questions such as these should have been voted for closing/deleting instead of putting on hold, when it's seriously unconstructive, e.g.:   So my question is, why put on-hold instead of voting to close/delete them in the first place?  How should moderators decide whether a question should be on-hold or closed/deleted, what is the line?


I'm searching for a list of ALL python exit codes, for learning reasons, and just from interest and curiosity, but it seems I can't find any list that contains all the exit codes... Thanks I know that Zero means a successful exit. I don't have a question about a specific one... just for general knowledge I want to know some (and a list of all) the exit codes  answer: there is no such list.


How do I make an unbalanced binary tree?

How do I draw just a tree with one child using tikzpicture?  As shown in the picture, I want to have a tree like (1).    But I have only been succesful in getting a picture like (2) and (3) using:  \begin{tikzpicture} \node[circle,draw](z){$30$} % comment the below for (3): child{} child{ node[circle,draw]{40}} ; \end{tikzpicture}   So, is there a modifier that I don't know of? I've tried to find it in the manual of 7xx pages, but I failed on finding something useful.


How do I calculate the number of unique permutations in a list with repeated elements?

I know that I can get the number of permutations of items in a list without repetition using   (n!)   How would I calculate the number of unique permutations when a given number of elements in n are repeated.  For example  ABCABD  I want the number of unique permutations of those 6 letters (using all 6 letters).


Google Indexing Stopped at 100,, yet it has over 20,000 pages. Can someone kindly inspect for me this sitemap and robots?

Can someone kindly inspect for me this sitemap and robots? It's over over a month and indexing i just constant, it doesn't change anymore


What is the translation of what's written below?  I think it may be the poem of the One Ring, but I'm not sure.


So, I know there is "glossaries" package which I can use to create abbreviations table.  But, since I'm writing my paper in Croatian I should also have a translation for that abbreviation description.  Something like this:  HTML    Hyper Text Markup Language        Croatian translation of HTML PHP     PHP Hyper Text Processor          Croatian translation of PHP ...   Is there a way to do something like this in automated/semantic manner?  I'd like to define my abbreviations in the following way if possible:  \newacronym{html}{HTML}{Hyper Text Markup Language}{Croatian translation of HTML}


What was the point of testing carbonite-freezing technology on Han Solo?

Darth Vader tested carbonite-freezing technology on Han Solo because he didn't want to kill Luke who was precious to the emperor. But, why was it necessary? Wasn't it already a tested and proven technology? Even Darth Vader (when he was Anakin) himself used it along with others decades ago (Star Wars: The Clone Wars S03E18).


Python's super() , what exactly happens?

I am trying to understand what objects are created when  we instantiate the child class in Python, for example:  class Car():     def __init__(self, make, model, year):         self.make = make         self.model = model         self.year = year  class ElectricCar(Car):      def __init__(self, make, model, year):           super().__init__(make, model, year)  my_tesla = ElectricCar('tesla', 'model s', 2016)   When we create the object my_tesla, we instantiate the class ElectricCar by calling the constructor of this class, which in his turn calls the constructor of the parent. How does it happen? Right now I have two guesses:  1) super() is just the reference to the parent class, so we call the constructor of the parent by "super().init(make, model, year)" instantiating our child class. As a result we have just ONE object of our class ElectricCar().  2) super(), calls the constructor of the parent, create the object of the "Car" class, then we call the constructor of this object, by "super().init(make, model, year)". As a result we have TWO objects: one object of the class Car() and one object of the class ElectiricCar, in our case they are the same though.  Which one is correct? If neither then please explain what exactly happens in the:   super().__init__(make, model, year)


Resistors, what do I need for my 3V LEDS?

I bought some lights off of Amazon in both the "White" and "Warm white" options (). I think they are 3 V and operate at 15 mA, whatever that means. I want to wire the lights in a series/parallel circuit. Key:  Red: Positive Yellow: Negative / Ground Blue: Resistor (Green numbers are for ohms - See below) Green: Switch Grey: Lights with back numbers (Lights #3&4 are "White" and Lights 1,2,5,6,7 are "Warm White"). Purple: 9 V battery   The problem: Only some lights will light up. Some only partially light up, etc. (Note: this is when I had fewer resistors in weird spots, not relevant anymore) The solution: Add a resistor (Blue in diagram) Where I get stuck: What resistors do I need? The resistors that come with the lights (Labeled "5.1V-9V use") power one just fine (Like #5), but don't power the pairs well (Every light but #5). I think I need a 200 Ω (or maybe 180 Ω) resistor on the dual pair. And 390 Ω or 100 Ω on the single one. But I honestly have no clue, and each person I ask says something different. The ones I'm using now for the lights that work are, I believe, 100 MΩ, but that makes no sense.  Also, I have no clue what side goes first...   Can anyone help me figure out what resistor (and 5-band color) would be needed for both the 1 and 2 light combinations? I am not sure if the ones that came with the lights are the best or not. Thanks! I'm also brand new at this, so sorry if the answer is obvious.


run a c++ programme with a specifc number of cores, detect it in the programme

I am working on parallel programming on c++ (with Mac and linux) and I want to know if there is a way to detect the number of cores assigned to this program in c++98. Thank you.


I need a reliable application which will make usb pen drives bootable. Recently, I tried creating a bootable lubuntu-13-04-alternate usb on a ubuntu 12.10 system but ended up with 'boot error' when trying to boot. I tried startup disk creator as well as unetbootin. This is not the first time I am experiencing this, rather the above two utilities have always had high failure rates in my experience. Universal-usb-installer, YUMI, LiLi have worked great whenever I tried them, but all of them are windows only! So I have two questions:   What is the method to reliably create a bootable usb in ubuntu?  Why does windows have some of the best bootable usb creators while linux dosent?


I want to know how I can easily start a server that only me and my girlfriend who lives a few states away can play on.


Are calls to international numbers charged at international rates if the caller is in the same country?

Suppose I take my phone on roaming from one country (say Australia) to another (say Belgium).  How do these plans typically work? Will somebody else in Belgium have to pay international rates to call me, given that they would have to call me using the international prefix? Will I have to pay a roaming fee to receive the call?


I'd like to setup auto download of some Anime using an RSS feed, but only 720p versions. The format never changes and it always looks like below.  [Blahblah] Blahepisode - 12 [720p].mkv  Here is the regex I have come up with but cannot get to work properly.  /.\+[720p]+/g   Any help would be appreciated!


Given the equation for a damped oscillator is $$\ddot{x}+\gamma\dot{x}+\omega_0^2x=0$$  Is the  of the system given by $\omega_0/\gamma$ or $\omega_0/2\gamma$?  I have seen both forms come up and so I do not know which one to use.


Should there be a definite article here?

In the following, should there be a "the" in front of "standard of living"?     Assess the extent to which the improvement of standard of living in Japan is dependent on the openness of the economy.


Quadrilateral problem with midpoints of diagonals

For an arbitrary convex quadrialteral $ABCD$:   $$AF=FC, BE=ED, GI=IH$$  Prove that points $F$, $E$ and $I$ are collinear.  I was able to solve the problem by using vectors and I think that it can be also solved analytically but I wanted some more elegant proof, more in the spirit of Euclid.


Client asked for Yahoo, Bing and Google analytics

I've been tasked with picking up a project where the last developer just quit. One thing said developer was planning to do was add Flurry Analytics (Yahoo) to my client's website.  The site already has Bing and Google analytics. My immediate thought was to remove Bing and tell her how dumb that is (in a nice way) as I've always been happy with ga and having more than one seems redundant.  But I thought I'd ask. Does it ever make sense to have all three of these? Perhaps they help tie into ad campaigns in some way I'm unaware of.  Is it even worthwhile to have more than one, maybe for comparing data?


Holomorphic function such that $\theta\left(z+\omega_j\right)=a_j\theta\left(z\right)$ satisfies $\theta\left(z\right)=ae^{bz}$.

I am trying to solve the following exercise:  Let $\mathbb{Z}\omega_1+\mathbb{Z}\omega_2$ be a lattice in $\mathbb{C}$ and let $\theta$ be an entire function such that there exist $a_1,a_2\in\mathbb{C}$ such that $\theta\left(z+\omega_j\right)=a_j\theta\left(z\right)$ for all $z\in\mathbb{C}$ and $j\in\left\{1,2\right\}$. Prove that $\theta\left(z\right)=ae^{bz}$ for some $a,b\in\mathbb{C}$.  So, if $\theta=0$, there is nothing to prove. Assume $\theta\neq 0$. Observe that $a_1\neq0\neq a_2$ because $\theta\left(z\right)=a_j\theta\left(z-\omega_j\right)$ and $\theta\neq 0$. If $a_1=a_2=1$ then $\theta$ is an entire elliptic function and therefore it is constant, and this proves what we want (take $b=0$). Assume that at least one $a_j$ is not equal to $1$. It follows that $\theta\neq 0$ cannot be constant, since otherwise $a_1=a_2=1$. Since $\theta'$ satisfies the same conditions as $\theta$ does, assume we could prove what we want for $\theta'$. If $\theta'=ae^{bz}$, we cannot have $b\neq 0$ since otherwise $\theta=az+c$ for some $c\in\mathbb{C}$, which shows that $a\neq 0$ (because $\theta$ is not constant) and then, using the hypothesis on $\theta$ and comparing coefficients, we would obtain $a=a_ja$, which implies $a_1=a_2=1$, a contradiction. So $\theta'=ae^{bz}$ where $b\neq 0$ (and $a\neq 0$ because $\theta$ is not constant), and therefore $\theta=\frac{1}{b}\theta'+d$ for some $d\in\mathbb{C}$. Using that both $\theta$ and $\theta'$ satisfy the conditions of the statement, one easily obtains $d=a_jd$, so $d=0$ because at least one $a_j$ is not equal to $1$. So $\theta=\frac{1}{b}ae^{bz}$ also has the desired form. The above paragraph shows that if we prove the problem for $\theta'$ then it is also solved for $\theta$ (assuming that $\theta\neq 0$ and at least one $a_j$ is not equal to $1$). I do not know whether it helps. Another idea I had was the following: keep assuming $\theta\neq 0$ and at least one $a_j$ is not equal to $1$ (the other cases were already handled) and consider the meromorphic function $\psi=\frac{\theta'}{\theta}$. Since both $\theta$ and $\theta'$ satisfy the conditions of the statement and $a_1\neq 0\neq a_2$ (because $\theta\neq 0$), one easily shows that $\psi$ is an elliptic function. So if we could show that it is entire, we would be done: it would be constant and that would give what we want. But of course, $\psi$ may not be holomorphic: $\theta$ may have some zeros. I thought of using the above paragraph and take enough derivatives of $\theta$ to get rid of the possible zeros, but of course it does not work because taking derivatives may introduce new zeros. How would you solve this problem?


Chrome shows two icons in Unity Launcher

I am a new Ubuntu user. I just installed 12.04. To get Chrome on the Launcher, I clicked the BFB and searched for Chrome, then dragged that icon to the Launcher. However, when I run Chrome, it creates a second icon for the running chrome. Creating a second window creates a second triangle under the second Chrome icon, with the first icon not doing anything. It is also apparently not locked to the launcher and I can't remove it. Does anybody know how to remove the first icon? I have locked the second icon to the launcher and it seems to be working fine, but I don't want two icons.


Passing char pointer as argument to function

This porgram prints different permutations of a string.It works correctly if I declare string as char array in main and pass array name in printAnagram function.But if I declare string as char* s = "hello" and pass 's' then it crashes. Why?  #include <stdio.h> #include <conio.h>  void printAnagram(char *str, int b, int e);  int main() {     char *s = "ABC"; // works fine when char s[] = "ABC" is used.     printAnagram(s, 0, 2);     return 0; }  void swap(char *a, char* b) {     char temp = *a;     *a = *b;     *b = temp; } void printAnagram(char *str, int b, int e) {     int i = 0;     if(b==e)         printf("%s\n", str);     else     {         for(i=b;i<=e;i++)         {             swap((str+b),(str+i));             printAnagram(str, b+1, e);             swap((str+b), (str+i));         }     } }


It is necessary to update my Ubuntu 11.10 even though I'm happy.  But now it tells me that my system will be no longer protected according to what I want to do.


Pyxis of Pandemonium and 'enters the battlefield' abilities

My question about  is:  When all of the cards are finally turned face up, what determines the order in which their "when X enters the battlefield..." effects resolve?


My laptop is Thinkpad T400, and running 64 bit Ubuntu 14.04. I wonder if there is no limit of the RAM size that I can use in my laptop?  Now I am running Windows 8.1 in VirtualBox, which takes 2GB RAM, and if I open 80 Chrome tabs, My RAM (8GB, which is two 4GB RAM cards occupying two slots in the laptop, I am not sure if there are extra slots) will be fully used, and my swap (16GB) will be half full, and the speed is slow because of constant swapping.   I am thinking about upgrade my RAM to a bigger size (maybe 32GB or more). But not sure if there is some limitations on the RAM size, how many RAM cards I could buy and insert into the laptop, and other aspects that I should be aware of. So I appreciate your reply!


Multiple passports and the 90 / 180 rule

If I have two passports with different numbers can I stay 90 days in a country, leave for a few days and return for another 90 days with my second passport? Is my information stored in some database or do they just check your passport stamps? I am asking about visiting Ukraine specifically


What is the difference between an infinitive and a gerund as subject of a sentence?

To run is good Running is good  What is the difference in meaning?


Tool to create text files from a template

I have to regularly create 100+ text files from templates. I currently use an overly complicated shell script. I think there is a smarter way to handle this, but I don't know how.  I have a "database" :  # outputfile      template            data1   data2    data3 first.txt         $template_main      $text1  abcd     1234 second.txt        $template_main      $text2  efgh     5678 third.txt         $template_other     $text1  ij       90   And a configuration file :  template_main=main.txt template_other=other.txt text1=whatever text2=blah   The templates are text files with placeholders like %%data2%% (the placeholder form can be changed).  Does someone know a tool to automate this better than with a complicated shell script ?


How to concatenate records based on a GROUP BY?

I have a table with a structure like:  | id | textfield | text_group |  | 1  | yes       | 123        |  | 2  | y         | 123        |  | 3  | no        | abc        |  | 4  | n         | abc        |    I'd like to return all records, but such that I get:  | colA  | text_group |  | yes y | 123        | | no n  | abc        |   Is this possible simply with a query, or will I need to use some programming to format it as such?  I would have done a group by, but then I lose the information in result ColA


How to mix material and texture to single mesh?

I'm making a ceramic plate and on the top surface I want to show a painting of flowers which I have in .png format. The ceramic texture is on top and I added a new texture layer below it. I have selected some faces and assigned it to the vertex group. Then I added a texture to the material, I get the image, but it's showing a black background on it. I added a transparent shader.   Is my method correct? Why am I getting this black background with the .png transparent image?


Where to ask for advice to configure a new PC?

I want to ask for advice for specific computer components (Graphic card, processor, motherboard ...) to build a new PC for my purposes. Is there any Stack Exchange site where I can get help with it? Any help is appreciated!


every Lebesgue measurable set with non-zero measure contains a non-measurable set.what is the proof?


How do I browse through my account history?

How do I browse through my account history on Stack Overflow? I have signed in with a Stack Exchange account. I want to revisit a recent question I visited, but I forgot the title.


How do you downgrade from minecraft 1.9 to 1.8 to play on servers

Please i need  help wanna play on mineplex but 1.9 is messing it up