I know that Einstein's understanding of how gravity works (and what it is) have been observed to be much more accurate than Newton's, to the point of being considered the truth. Still, what would be some differences in physics (and reality itself) should Newton be right? What things would work differently due to how different the concept of gravity would be and what other mechanics would be affected by this?

In the Wikipedia article , it says     After Newtonian gravitation was found to be inconsistent with special relativity, . . .   I don't see how Newtonian gravitation itself is inconsistent with special relativity.  After all, Newton's Universal Law of Gravitation is completley analogous to Coulomb's Law, so it would seem that, if there were an analogous "gravitational magnetic field", one could formulate a theory of gravitation in exact analogy with Maxwell's Theory of Electromagnetism, and of course, this would automatically be consistent with Special Relativity.  What about this approach to gravitation does not work?  The only problem I could see with this is the lack of evidence for a "gravitational magnetic field".  That being said, gravity is "weak" as it is, and my guess is that it would be extremely difficult to set up an experiment in which a massive body were moving fast enough for this "magnetic field effect" to be obsevable.  EDIT:  As has been pointed out to me in the answers, Newton itself is inconsistent with SR.  Similarly, however, so is Coulomb's Law, yet, electromagnetism is still consistent with SR.  Thus, how do we know that it is not the case that Newton's Law is the special "static" case of a more general gravitomagnetic theory exactly analogous to Maxwell's Theory:  Let $\mathbf{G}$ be the gravitation field, let $\rho$ be the mass density, and $\mathbf{J}$ be the mass current density, let $\gamma _0$ be defined so that $\frac{1}{4\pi \gamma _0}=G$, the Universal Gravitation Constant, let $\nu _0$ be defined so that $\frac{1}{\sqrt{\gamma _0\nu _0}}=c$, and suppose there exists a field $\mathbf{M}$, the gravitomagnetic field, so that the following equations hold: $$ \vec{\nabla}\cdot \mathbf{G}=-\frac{\rho}{\gamma _0} $$ $$ \vec{\nabla}\cdot \mathbf{M}=0 $$ $$ \vec{\nabla}\times \mathbf{G}=-\frac{\partial \mathbf{M}}{\partial t} $$ $$ \vec{\nabla}\times \mathbf{M}=\nu _0\mathbf{J}+\gamma _0\nu _0\frac{\partial \mathbf{G}}{\partial t} $$ where theses fields would produce on a mass $m$ moving with velocity $\mathbf{v}$ in our inertial frame the Lorentz force $\mathbf{F}=m\left( \mathbf{G}+\mathbf{v}\times \mathbf{M}\right)$.  This theory would automatically be consistent with SR and would reduce to Newton's Law of Gravitation for the case of gravitostatics:  $\frac{\partial \mathbf{G}}{\partial t}=\frac{\partial \mathbf{M}}{\partial t}=\mathbf{J}=0$.  (To be clear, you can't just set the time derivatives equal to $\mathbf{0}$ as it seems I have done.  Upon doing so, you obtain the corresponding static theory, which is technically incorrect (as you can easily see because it won't be relativistically invariant), but is nevertheless often a useful approximation.)  My question can thus be phrased as:  without appealing directly to GR, what is wrong with this theory?


I'm quite new to making games in Java, and this is my first project making a game. For some reason, my code is causing a NullPointerException that I couldn't find the cause of it.  Edit: Was a very dumb mistake that caused a chain reaction it's solved now

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


After updating to the new version I can no longer dig when I click and hold left Mouse button. I have made sure I am in creative mod. When I click my left mouse button I just get a \.

I'm playing on a Survival world with cheats on, "easy" difficulty, and at night in-game. I didn't have a sword or anything to make a sword with, and I was starving, so I switched to Creative to give myself a stack of food and a bed to set my spawn point. When I switched back to Survival, I couldn't destroy or place blocks. I'm on single player, and my Internet is fine, and I can destroy blocks still if I switch to creative. I've tried resetting the button one, and reloading the map, and it still doesn't work. I've even tried deleting everything I gave myself in Creative. This happened before on a different world and I ended up deleting it.  This only happens on this world. How do I fix it?  If I know I'm in the correct game mode, what else can cause this?  Are there different causes in multiplayer?


Curious if this textbook example is correct. According to the textbook, "are" is incorrect and "is" should be used instead. Why is this?     After days of testimony, the jury, including its two alternative members, are in deliberations and expected to deliver a verdict this afternoon.   (not naming the textbook so it makes cheating harder)  I would understand if the sentence lacked the including its two alternative members phrase, but I think that the inclusion of the plural phrase would require a verb which agrees with a plural subject. In this special case, how does the rule apply? Why?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


My laptop is Acer Aspire1 A111-31, 4GB DDR4 RAM, Operating System: Windows 10 Home 64-bit,  Processor: Intel(R) Celeron(R) N4000 CPU @ 1.10GHz (2 CPUs), ~1.1GHz,  Card name: Intel(R) UHD Graphics 600

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I've an url like this: "", and I need to get the url and retreive token_id from it.  I was using something like this to get all the path and then split it:  app.get('/get/token', function (req, res) {      var fullURL = req.protocol + "://" + req.get('host') + req.url;     console.log(fullURL); });   But the result is:  http://domain.com/get/token   Any suggestion in how to retreive the token_id or the possibility to match the url and then split it?

I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.


Hi I have been wondering for years what was the correct way to use "between" with more than two things to compare.  I am currently working on my thesis so I think I should finally ask what the rule is. So far this is what I have:  "I am using the results to develop mathematical relationships between characteristics and efficiencies and capacity."  What I would like to express is that I am using the results to develop mathematical relationships between characteristics and efficiencies, as well as between characteristics and capacity.  Can I do that without repeating "between characteristics" ?  Thank you

Consider the following two versions of a question:1   Version 1: What is the difference in meaning between "[to be] not invited" and similar negation forms?  Version 2: What is the difference in meaning among "[to be] not invited" and similar negated forms?    Personally, I think Version 1 might subtly suggest a Star Topology (see below) with the target sentence "[to be] not invited"at the center.  And Version 2 might subtly suggest a more free-form comparison like the Mesh or Fully Connected, with the target sentence simply "one among many":   Between approx equal "Star" and among approx equal "Fully Connected"?  Don't get me wrong: I do think this is quite subtle, not always applicable, and I don't think anyone would intuit such a "network topology" meaning without further explanation.   So the main question is, are both grammatically correct?  If yes, is there a semantic difference to choose one over another, perhaps as I suggested?  Or does the plurality aspect of between and among trump other semantic and stylistic issues?    1. In my question , another user provided a very helpful edit. However, the change of the word between to among prompted this question.


I'm a little lost on how I can read a local text file constantly. Nothing is going to a webserver, everything is done locally and its just something basic. Essentially I have a text file that is getting updated constantly (A different program is writing to the text file), and I want to be able to read that text file. I just want to do something basic where a div gets auto updated with text file content without refreshing the page.

Can anybody give some sample code to read and write a file using JavaScript?


So the code is supposed to continually give fibonacci values for any given number until you enter "q", but for some reason instead of stopping, I get an error, anyone know why? I know that if you try to parse a string, it will cause the error but I have "if(input != "q")" to stop that so why is it still happening?  Tester class:  import java.util.Scanner; public class FibonacciTester {     public static void main(String[] args)     {         String input = "1";         System.out.println("Input a positive integer that you want to find the fibonacci number for");         System.out.println("Type 'q' to quit");         Scanner in = new Scanner(System.in);         while (input != "q"){             System.out.print("Type in the positive integer");             input = in.next();             if(input != "q"){                 int number = Integer.parseInt(input);                 FibonacciV fibonacci = new FibonacciV(number);                 number = FibonacciV.fibonacci(number);                 System.out.println("The Fibonacci number: " + number);               }         }     } }   Class  public class FibonacciV  {     FibonacciV(int x)            {     }     public static int fibonacci(int x)     {         if (x == 0)            //Base case         {             return 0;         }         else if (x == 1)       //Second base case         {             return 1;         }         else          {             return fibonacci(x-1)+ fibonacci(x-2);   // recursive call         }      } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am planning to do fresh install of ArcGIS 10.4.1 on win 10 machine and i am keep getting same error 1325- is not a valid short name.  Also i saw the solution in other post ()  suggesting to remove ESRI from below location but  in my registry this not exists HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI so that option is not working for me.  Also I made changes to registry HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders and  I reset the data to %USERPROFILE%\My Pictures but still no luck.  Any other solution to try please?

I am trying to uninstall ArcGIS 10.3.1 for Desktop from Windows 7 SP1 using Uninstall a program and I am receiving an error message (pictured below):     Error 1325. EsriPyFldr is not a valid short file name.   The error message dialog appears just after:     Computing space requirements   seems to complete.  If anyone else has encountered this, then have you been able to find a way to get past it and uninstall ArcGIS 10.3.1 for Desktop?  My machine has what I would call a vanilla install of ArcGIS 10.3.1 for Desktop and ArcGIS Pro 1.1.1 so there are Python versions 2.7.8 and 3.4.1 as a result. ArcGIS Earth Beta is also on the machine.     I have made a posting on the same issue to   After running this utility () unsuccessfully (it hung for two hours before I killed it) the error message when trying to uninstall shifted to:     This action is only valid for products that are currently installed     ArcMap 10.3.1 continues to start fine and doing  wmic product where "Vendor like '%Environmental Systems Research Institute%'" get Name, Version, InstallDate, InstallLocation in a DOS window (at the suggestion of @MattWilkie) reports only the presence of Python 3.4.1 for ArcGIS Pro, ArcGIS Pro and ArcGIS Earth on my machine.


I have the following presentation that I compile with XeLaTeX: \documentclass[aspectratio=169, svgnames]{beamer}  \usetheme{Madrid}  \begin{document} \begin{frame}[c]     \frametitle{Learning Outcomes}     \begin{enum}         \item Mathematical in nature         \item Many abstract concepts $\rightarrow$ Requires abstract thinking $\rightarrow$ Formal logic         \item Programming requires remembering syntax and semantics of programming statements     \end{enum} \end{frame} \end{document}  When I compile it the bullets are missing. All I see is this:  Removing \usetheme{Madrid} works fine and pdflatex works without any issues as well. Any solutions?

Beamer item balls go missing while compiling in XeLateX since yesterday's TeXlive update, however, the same code works with pdfLaTeX. Any solution, please. Here is my MWE: \documentclass{beamer}  \setbeamertemplate{itemize item}[ball] \setbeamertemplate{enumerate item}[ball]  \begin{document}  \begin{frame} \frametitle{A tested title} text \begin{enumerate}     \item this is an item \end{enumerate} text3 \begin{itemize}     \item this is an item \end{itemize} \end{frame} \end{document}


Let $L/K$ be a finite extension and let $\beta \in L$. If $p$ is the minimal polynomial of $\beta$ then is it true that $[L:K] = \deg(p)$? If not, give a counterexample.  Can someone help me figure out if this is true or not?

I was reading through some field theory, and was wondering whether the minimal polynomial of a general element in a field extension L/K has degree less than or equal to the degree of the field extension? i.e.  $deg$(m$_{a}$) $\leq$   $[L:K]$    $\forall$ a $\in$ $L$   If it is true, then could anyone give me an idea as to how to prove this please?


I'm using the following code to search sub string in a string mystring.search(new RegExp(substring, 'i'))  Reason why I am using new RegExp is, I want to search case insensitive. However, when there is a string like var mystring = '10" stick'; and I want to search 10", the code above does not return any result. It's clearly because of new RegExp and double quote. Is there any particular flag that needs to be passed in new RegExp? I googled a lot but couldn't find any solution. What am I missing?

How can I do case insensitive string comparison in Python?  I would like to encapsulate comparison of a regular strings to a repository string using in a very simple and Pythonic way. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.


Which of the following is (more) correct or are they both acceptable?     I apologise for your receiving emails.   or     I apologise for you receiving emails.   I think I read somewhere (but can't find the reference) that the first one is more correct.

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


I installed the latest version of Dropbox from the official site but when it starts the icon on the indicator appears corrupted:    I don't have any way to set preferences or watch progress, however it seems that Dropbox is correctly syncing my documents. zI already tried a lot of other  but none of them worked, my OS is Xubuntu 15.10.    Thanks!    EDIT 02/15/2016    I already tried stopping and restarting the service but it didn't help. My question is not a duplicate of  for the following reasons:   I am using Xubuntu, not Ubuntu In Xubuntu the icon is in the "Indicator Plugin" panel item and I can't edit its properties directly The answer seems quite old (more than one year ago)

Affects:  14.04 / 14.10 / 15.04 / 15.10 / 16.04 / 16.10  I started my dropbox deamon today, with the following result in the panel:     The icon with the warning/failed symbol should be my Dropbox icon. I cannot right-click or left-click it, so no interaction.  I am running Xubuntu 15.10 on 4.2.0-27-generic x64. I also tried to re-install Dropbox, reinstall nautilus-dropbox, recursively delete ./cache/sessions/ as well as set other themes and icon sets.  Apparently nothing helped and similar problems described here and on other boards are similar, not the same and do not work in my case.


In most Latin languages (Spanish, Portuguese, Russian...), "R" is pronounced in a "rolling" way. For example, "relájate" pronounces like "llle-la-ya-tee", "русский" pronounces like "lllus-kia". This pronunciation does not apply to English, and it's obvious that it hasn't applied to English since a long time ago. It looks like the non-rolling pronunciation in English is actually the minority. So why is this happening? And when did the change take place?

Most linguists agree that the letter R in middle English was trilled, but why and when did people replace it with untrilled one like ⟨ɹ⟩ in "red", or even become "almost" silent like in "her (British accent)"? Also, why is modern R rounded? For example, rain and "rwain" are pronounced the same, proving that modern R actually has an invisible w after it.


I want to class up my desktop with various widgets that tell me network bandwidth hdd usage during r/w and real time memory usage just to name a few.  What a good way to go about that?

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .     I installed Ubuntu 11.04 on one of my systems and I am using the Unity interface. Unity is working quite well so far but I really miss panel applets for net speed, cpu temp, and system monitor.   These applets are useful for viewing quick info. Unlike 10.10, there is no other way to get this info onto the panel or unity launcher. There are solutions like screenlets and conky but they don't feel appropriate for a clean desktop look.  If you know one then please list out any third party indicators with links so that they can be found.


In JavaScript I encode part of uri:  var imageName = "test space in name of image.jpg" var sentWithAjaxVariable = encodeURIComponent(imageName); //sentWithAjaxVariable in console is "test%20space%20in%20name%20of%20image.jpeg"   On server side, in handler I want to decode this variable like this:  var imageName = context.Request.Params["sentWithAjaxVariable"]; var decodedImageName = context.Server.UrlDecode(imageName); //decodedImageName in watch => "test%20space%20in%20name%20of%20image.jpeg"   why not decode?

In JavaScript:  encodeURIComponent("©√") == "%C2%A9%E2%88%9A"   Is there an equivalent for C# applications? For escaping HTML characters I used:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m => @"&#" + ((int)m.Value[0]).ToString() + ";");   But I'm not sure how to convert the match to the correct hexadecimal format that JS uses. For example this code:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m => @"%" + String.Format("{0:x}", ((int)m.Value[0])));   Returns "%a9%221a" for "©√" instead of "%C2%A9%E2%88%9A". It looks like I need to split the string up into bytes or something.  Edit: This is for a windows app, the only items available in System.Web are: AspNetHostingPermission, AspNetHostingPermissionAttribute, and AspNetHostingPermissionLevel.


I am a beginner and have managed to create "Star Wars Crawl" in version 2.79 on Fedora 27,  but cannot see any FFmpeg output option.  I have gstreamer and VLC installed and can properly play MP4 sample files in it.  As a last resort I reinstalled Blender.  What do I need to do to render my animation in MPEG format?

I'm trying to render a video using blender, it have some images and sound, if I render it using just the default options I get no sound.  Searching on internet I found that I need to use other format than AVI JPEG to set some codecs options, I just have "AVI JPEG", "AVI RAW" and "FRAME SERVER". I'm keep looking but I can't found any information to solve my problem.  Im using fedora and actually I have  xvidcore-1.3.2-5.fc20.x86_64 ffmpeg-2.1.7-1.fc20.x86_64 packages installed.  EDIT: When I had the problem I had the last version of blender installed from , I also tried installing blender from dnf, also tried with , so  didn't solved my problem.


I have divided my data into training and testing, and I am outputting the error metrics on the testing data. This is what I get:   R^2: 0.999 Adj R^2: 0.99 RMSE: 0.003 MSE: 0.000 MAE: 0.003 MAPE: 0.001 Correlation between actual and predicted: 1.000   I am using panda's correlation coefficient (pearson) to identify the correlation between the actual values and the predicted ones by the model. As I am inserting the predicted values as columns into my dataset, I am using pandas' correlation coefficient to determine the correlation between two columns.  My question is that how do I get a correlation of 1 while RMSE being greater than 0, and R^2 being less than 1?

I am running k-fold cross validation on my training data, and then choosing the best set of hyper parameters, re-training on the training data and testing on a new (unseen) testing data. I am getting the following testing results (results on the unseen data):  R^2: 1.000 Adj R^2: 1.000 RMSE: 0.081 MSE: 0.007 MAE: 0.045 MAPE: 0.058   Can $R^2$ have a value of 1.00 but RMSE have a  value of 0.081? Doesn't an $R^2$ of value 1 indicate no errors at all?


How to use multiple whatsapp, paytm, hike and more accounts in an Android phone? Or any other android app which uses authenticated single user login apps.

On iPhone it's very easy to clone an app (running multiple copies of the app on the same device); e.g.:    Is it possible to do this on Android?


I am looking at the answer on this thread:   Here as I understand that the likelihood function is given by:  $$ L(\theta) = \frac{1}{\theta} \quad \mathrm{in\ range}\ [0, \theta] $$  First, I am confused by the notation in the reply in the thread I posted. So the likelihood is defined as $U(0, \theta)$. I am confused as to why the parameter $\theta$ appears in the support of the uniform distribution. Should the support not be just constants like $U(0, +\infty)$?  [EDIT]: As pointed out below $U(0, +\infty)$ is not possible but I was still expecting something like $U(0, 1)$ for standard uniform distribution or something of the form $U(a, b)$. In any setting, $\theta$ is unknown so how can it be the parameter of the uniform distribution?  Second, when we observe $Y=1$, why does the likelihood become  $$ L(\theta) = \frac{1}{\theta} \quad \mathrm{for}\ \theta > 1 $$  Why now $\theta > 1$ instead of $\theta > 0$

The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice.


There is a requirement to check the link "Show All" on page. If It is displayed on page click on that link to expand all the sites on page, then search and click on "Edit Site" button that is starting with eCommerce text and If the link "Show All" is not displayed on the page, just look for "Edit Site" button that is starting with eCommerce text and click on it.   I wrote below code for it but It is not working as expected. The if else clause causes org.openqa.selenium.NoSuchElementException exception. I am sure that I am making some mistake in if else statement. I am new on selenium, Please help me. Thank you.   if (GetData.ShowAll.isDisplayed()) {          System.out.println("Show All button is displayed");          Click("Please click Show All button",GetData.ShowAll);          Click("Please click Edit Site button for eCommerce Platinium",GetData.EditSite1);       }  else if  (!GetData.ShowAll.isDisplayed())      System.out.println("Show All button is not displayed");      Click("Please click Edit Site button for eCommerce Platinium",GetData.EditSite1); }

Let's say I want to verify that an upload button is not present in a page. I cannot use any locator here since I don't know the object locator value. So how do I assert in my test that it is never present?


I have the a spring boot method app, and one method has the following singature:  @GetMapping("{accountId}/component/{id}") public Component getComponent(@PathVariable("accountId") String accountId, @PathVariable("id") String id, Authentication auth) throws Exception {     // }   I understand all parameters except the last parameter : Authentication auth. Where/how does it get passed into the method?

I have a Spring MVC web app which uses Spring Security.  I want to know the username of the currently logged in user.  I'm using the code snippet given below .  Is this the accepted way?    I don't like having a call to a static method inside this controller - that defeats the whole purpose of Spring, IMHO.  Is there a way to configure the app to have the current SecurityContext, or current Authentication, injected instead?      @RequestMapping(method = RequestMethod.GET)   public ModelAndView showResults(final HttpServletRequest request...) {     final String currentUser = SecurityContextHolder.getContext().getAuthentication().getName();     ...   }


For example, I can get the same results by the following two ways.
red color

greencolor
      They both can give me a colored text. But where is the difference between them? Thanks for your answer.

What's the difference between
 and
 when it comes to CSS? Is it alright to use
?  I see different developers doing this in both ways, and since I'm self taught, I've never really figured it out.


A new project I'm working has to be highly modular. All the electronics will be hidden in a case, so I was wondering if there's any way to use magnets and pass current through them for the project?  It's well known that neodymium magnets could lose their magnetic capabilities in extreme heat, so simply soldering wires to the magnets is out of the question. Is there anything I could do to solve this problem?  Also the magnets might need to run close to 4 Amps of current, which shouldn't be a problem if the metal coating on the magnet is good.

After reading , I learned it is not advisable to solder a wire to neodymium magnets.  After more reading I found  post describing the use of conductive epoxy to bond electrical wires to neodymium magnets, a very messy process which takes several hours of waiting.  I want to ask this community if they have or suggest better methods to bond/connect a wire to a neodymium magnet to act as a conductive connection?


My accountCreation trigger is as follows:- trigger accountCreation on Account (before insert, before update) {     //Store all Zip Codes in a SET     SET<String> zipCodes = new SET<STRING>();     if(Trigger.isInsert) {         if(Trigger.isBefore) {             for(Account newAccount : Trigger.new) {               zipCodes.add(newAccount.BillingPostalCode);               }          }     }     //Find changed Zip Codes     LIST<ACCOUNT> updateAccount = new LIST<ACCOUNT>();     if(Trigger.isUpdate) {         if(Trigger.isBefore) {                         //SET<ID> changedAccount = new SET<ID>();             for(Account changedAcc : Trigger.new) {                 String oldZip = Trigger.oldMap.get(changedAcc.Id).BillingPostalCode;                 String newZip = changedAcc.BillingPostalCode;                     if(newZip != oldZip) {                     zipCodes.add(newZip);                     //changedAccount.add(changedAcc.Id);                      updateAccount.add(changedAcc);                                      }                }             }      //Query for Territory__c records matching the set of Zip Codes     //and storing the query results in a MAP     MAP<String, Territory__c> terrMap = new MAP<String, Territory__c>();     LIST<Territory__c> zipMatch = [SELECT Id, Name, OwnerID, Zip_Code__c                                    FROM Territory__c                                    WHERE Zip_Code__c IN:zipCodes];     for(Territory__c terr : zipMatch) {         terrMap.put(terr.Zip_Code__c, terr);     }     //Iterate over the Account again for those Accounts     //with changed Zip Codes and look for associated     //Territory via Zip and assign the Account's OwnerId     //field to the value of that Territory's Owner__c field     for(Account iterAccount : updateAccount) {         Territory__c lookTerr = terrMap.get(iterAccount.BillingPostalCode);         if(lookTerr != NULL) {              iterAccount.OwnerId = lookTerr.Owner__c;          }     }   }  }  When I update an account I am getting following error:  BeforeUpdate caused by: System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Territory__c.Owner__c: Trigger.accountCreation:

I am getting this error:     SObject row was retrieved via SOQL without querying the requested   field: Contact.Account   Controller:  public class WrapperAccountCtrl {      public List<Account> acclist{get;set;}     public List<Contact> conlist{get;set;}      public List<MyWrapper> wap{get;set;}      public WrapperAccountCtrl()      {         acclist=[Select id,name from Account];          conlist=[Select id,name,AccountID  from contact where AccountID IN:acclist];          system.debug('Size----'+conlist.size());           wap=new List<MyWrapper>();           for(integer i=0;i<acclist.size();i++)          {              wap.add(new MyWrapper(conlist,acclist[i]));          }     }      public class MyWrapper     {          public Account accn{get;set;}          public List<Contact>conrec{get;set;}          public MyWrapper(List<Contact> con,Account acc)         {             accn=acc;             conrec=con;             }     } }   VF Page:  <apex:page controller="WrapperAccountCtrl" sidebar="false">       <apex:form >          <apex:pageBlock >              <apex:pageBlockTable value="{!conlist}" var="c">                  <apex:column value="{!c.account.Name}"/>              </apex:pageBlockTable>          </apex:pageBlock>      </apex:form>  </apex:page>


Can I carry power bank in carry-on on Lufthansa airplane? I have RavPower Model: RP-PB19, Capacity: 55.5Wh.

I am travelling from the US to India on Lufthansa. I have five spare Lithium-ion batteries, each 850mAh.  Can I bring them back safely?


I began a new map with cheats enabled, and tried to use the keepInventory command, but it's not working, i.e. I still drop items after death.  I typed the command right, as I copied it directly from the wiki and pasted it in-game. I also tried it on a server, but its still not working.  Does anyone know what I'm doing wrong?

I once played a vanilla Minecraft adventure map (called "Herobrine's Mansion") that prevented the player from losing their items on death. Which commands can be used to prevent the player from losing their items on death (in vanilla Minecraft)?


Let $f(x)$ be a real-valued function that is thrice differentiable on $[a,b]$, prove there exists a $\xi \in (a,b)$ such that $$f(b)=f(a)+\frac{1}{2}(b-a)(f'(a)+f'(b))-\frac{1}{12}(b-a)^3f'''(\xi)$$ I failed to establish a fine auxiliary function and the Taylor formula seems useless here. Please help me with your fabulous auxiliary function :)

How can I prove that the max error of the trapezoid rule for the integral $\int_{a}^{b}{f(x)\, \mathrm{d}x} $ is: $$\Delta=-\frac{1}{12n^2}f''(c)(b-a)^3 \text{for } c \in (a,b) \ ?$$  I know that to obtain that result first you have to prove that $$\exists \;c \in (a,b); \int_{a}^{b}f(x)\,dx = \frac{b - a}{2}\{f(a) + f(b)\} - \frac{1}{12}f''(c)(b-a)^3$$ But I'm stuck here, I tried using the mean value theorem but got nowhere. Anyone got any ideas?  If it helps: $\forall x_0 \in (a,b) \;\exists\;\xi_0 \in (a,b);\; f(x_0) - p(x_0) = f''(\xi_0)\frac{(x_0 - a)(x_0 - b)}{2}$, where p(x) is the linear function that interpolates f(x) in the points a and b ($p(x) = f(a) + \frac{f(b) - f(a)}{b-a}(x-a)$)


I have multiple section is asp.net that submits data in chunk and i want to use jquery validation plugin, but issue is that asp.net wraps everything in form and child forms not wokring right and technically incorrect.  So only alternative is forget about form and implement validation for divs. But all sames i see are using form. As not being not good at jquery i can't figure out how to use this validator on section of page(On div).  Is it possible? or any other good alternative?   Source:

How can I validate some inputs that are not inside a form tag?  All the samples I found have a form tag, but I want to validate some inputs that are not inside a form.


I have already returned to Vilkas after killing the witches; it then went into forever mourning mode. I did not realise this was a glitch at first, and now have far too much play time after to throw away in order to go back to before the bug. I have tried running through the silver hand place and got the helm of Winterhold (without killing anyone), which I then returned, however the bug remains. Is there any way around it?

I just finished the quest, "Blood's Honor" for Kodlak Grey-Mane, but there is an attack on the Companions before I can hand in the quest. Now, all the Companions NPCs are sitting and mourning all the time ("Forever Mourning" bug) and I can't get any new quests or anything.  How do I fix this and move forward in the quest line?


So whenever my friend saves his file as mp4, it keeps saving the video as "file" and it doesn't play on any player but the windows media player. And another problem is that it glitches or it's distorted whenever he plays it in windows media player.  He tried to render the video a bunch of times already, but it always came out like that from what he said. Whenever he tries to open it like just double clicking it, it wanted him to find apps that could play it...

I'm having an issue with blender where whenever I try to render as any sort of video, instead of showing up as an mp4 or whatever file type I chose, it will show up as a mystery file that cannot be opened. This issue started recently and randomly: I was always able to render perfectly fine before and I used the exact same settings now that I did then.   not sure exactly what I'm doing wrong. Here are the export settings I am using:


I understand how to use the C++11 delete keyword to create classes that can't be copied or moved, but in Bjarne Stroustrup's The C++ Programming Language 4th edition, in section 3.3.4 Suppressing Operations, it says (emphasis mine):     Using the default copy or move for a class in a hierarchy is typically   a disaster: given only a pointer to a base, we simply don't know what   members the derived class has, so we can't know how to copy them.   Could anyone please provide a small example of this? Shouldn't the copy/move already be implemented if we are working with a pointer only to a base class?  Edit:   After I read the link provided by Igor Tandetmik, I found  (look at the "treacherous case") which gives a very clear answer to my question, on a different question about Object Slicing.

Someone mentioned it in the IRC as the slicing problem.


I tried calculating the sum:  $$ \lim_{n\rightarrow ∞}\:( \frac{1}{n+1} +  \frac{1}{n+2} + \frac{1}{n+3}+.......+ \frac{1}{n+n}) $$  using the Sandwich Theorem, however only got that the limit is between $0.5$ and $1$, and was unable to go further with it...? Are there other approaches here?

For each positive integer $n$, let $x_n=1/(n+1)+1/(n+2)+\cdots+1/(2n)$. Prove that the sequence $(x_n)$ converges.   This is what I have so far..  Let $\epsilon > 0$ be given to us. We must show that there exists an $N \in \mathbb{N}$  such that $n\ge N \implies \left|\frac{1}{2n} - 1\right| < \epsilon$. Choose $N$ to be any positive integer which is larger than $\frac{1}{\epsilon}$. (So $N>\frac{1}{\epsilon}$.) Then $n\ge N \implies \left|\frac{1}{2n} - 1\right| = |\frac{1-2n}{2n}|$


I use this code in order to remove layers that are out of the data frame of the map:  import arcpy,os,sys,string import arcpy.mapping from arcpy import env  env.overwriteOutput = True   env.workspace = r"G:\PROJECTS\kohav_yair_west\gis\aa" for mxdname in arcpy.ListFiles('*.mxd'):         print '---' ,mxdname, '---'           mxd = arcpy.mapping.MapDocument(os.path.join(env.workspace, mxdname))           df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]         print 'REMOVED LYR'         for lyr in arcpy.mapping.ListLayers(mxd, "" ,df):                 if lyr.isGroupLayer == True: continue                 if lyr.isRasterLayer == True: continue                 arcpy.MakeFeatureLayer_management(lyr.dataSource, "lyr")                 frameLyr = r"G:\PROJECTS\kohav_yair_west\gis\layers\frame.shp"             arcpy.SelectLayerByLocation_management("lyr", "INTERSECT", frameLyr)                 if int(arcpy.GetCount_management("lyr").getOutput(0)) == 0:                         arcpy.mapping.RemoveLayer(df, lyr)                         print u'Removed '+unicode(lyr) + ' lyr'         print '---REMAIN LYR---'         for lyr in arcpy.mapping.ListLayers(mxd, "" , df):                 print lyr.name         mxd.save()         del mxd   but i get this error and i don't understand what is the problem?  --- ttl.mxd --- REMOVED LYR  Traceback (most recent call last):   File "G:\desktop\y\yaron\Private\shonot\software\---gis---\tools\YARON_SCRIPTS\SelectLayerByLocation3.py", line 21, in <module> arcpy.MakeFeatureLayer_management(lyr.dataSource, "lyr")   File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 6520, in MakeFeatureLayer raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset F:\GIS\Updating_2014\ttl\arcview\ttl_all_blue_lines_07.05.shp does not exist or is not supported Failed to execute (MakeFeatureLayer).   This route : F:\GIS\Updating_2014\ttl\arcview\ttl_all_blue_lines_07.05.shp exist but the name of the layer is :"ttl_all_blue_lines_07.05.14.shp" and in the error it mention as ttl_all_blue_lines_07.05.shp

The only thing I need is an exact copy of an existing shapefile in the same directory with a different name.  I have tried:   arcpy.CopyFeatures_management (ORLinks, MyLinks) #ORLinks: old links, MyLinks: new links   but for some reason, I cant make it a feature layer using:  arcpy.MakeFeatureLayer_management(MyLinks, 'MyLinks')   Error Encountered:  Error: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset  M:\RAIL\Rail2.0.shp does not exist or is not supported Failed to execute (MakeFeatureLayer).


My wife's computer has suddenly popped up with a notification saying her hard may fail soon. Shortly after a program called Intel matrix storage console asked permission to download. My question is; is this some sort of elaborate virus. Only reason i ask is the attempt of a program we did not download to install itself.

I have windows 7 and this is running in the background.  Using process explorer, I can see most of the DLLs are named, but two are unsigned called locale.nls an SortDefault.nls. One has no description OLEAUT32.DLL.  What are these files, what do they mean, and should I be concerned if they are lacking descriptions?  I have never heard of an .nls file.   The Intel homepage is no help.   I would imagine this is part of the whole RAID setup, but I do not even know if I need to be running RAID if I am running WAMP or not.   Is this something I can uninstall, or would it be recommended to keep this? (I have an Intel Atom N450.)


I'm writing a command to prepend some text to a bunch of files which match a certain pattern:  for file in $(find . -name "*.txt"); do sed "1s/^/hello/" $file; done    If I write to stdout or a different file (e.g. "$file.bak"), everything works according to plan, but when I try to have the command write back to the same file, the content of the files gets wiped out:  for file in $(find . -name "*.txt");do sed "1s/^/hello/" $file > $file; done   I find the behavior surprising, could someone explain why this happens, conceptually? I'm on macOS and I've tried this in bash and zsh to the same effect.  (Note that I'm aware of sed -i "" for in-place writing, but I'd like to pipe the result to a different command before writing in-place.)

cat package.yaml > package.yaml   The above will truncate package.yaml, and hence the file will be empty - cat will have empty output.  How can I avoid truncating the file? Is there an alternative to using a temporary file? A variable maybe?


I was doing math and I came across this series     $$\sum_{n=1}^\infty\sin n\cdot\sin\left(\dfrac1n\right)$$   I managed to prove that this series is convergent, but I was wondering what value the series converges to $?$ I've put it on Scientific workplace and got a value of around $0.92 $ But I have no idea how to get there.


I was looking up info for a  and found the exact same question OP had, but in French on .  The OP of the post I was trying to answer did not post this question elsewhere, nor in French.  Looking around there, it looks like the Movies SE questions are being (automatically?) translated in to French and someone's posting over there.   also has a French "clone"   Is this a "bot site"? I assume there's no affiliation, but they're grabbing questions so I'm just curious what's going on. Is it just bots doing that, and I guess ad revenue is the goal?    Edit: In fact, here's a post with a screenshot !

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


I have using an iPhone 5 upgraded to iOS 7. Is it possible to turn off vibrations for alarms? I am currently using a song as alarm sound, the vibration is annoying.

How do I set the vibrate to not fire for alarms but still fire for calls, texts, emails, reminders, etc?  I have looked at third party alarms but they all seem quite fallible, many do not work when you press the home button. Those that do use push notifications to get around this but this feature obeys the silent switch on the phone which means you have to remember to switch the sound on each night. And I have had two of them just randomly not work on me.  Is there a way of turning the vibrate off for just the alarm?  I'm willing to jailbreak for this.


What I'm doing is pretty new to me, or at least I think it is, so I'm not really sure of what I'm looking for. Hopefully someone here knows =-)  Using a grid of hexes I generate, I can hover over any tile and it will highlight just fine. Now what I'm trying to figure out is how to allow for a radial selection of tiles around that hovered tile (brush size, basically), eventually allowing for a somewhat radial soft-selection gradient to allow falloff.  Each hex already knows about their neighbors, so currently I am hard-coding logic to handle a radius of 1, 2 or 3. I could duplicate that logic over and over to handle bigger radii but this is definitely not going to work for much longer, so I am trying to figure out a more efficient and cleaner way using loops/recursion/whatever.  Can anyone offer any pseudo-code or possibly a link that explains how to do this? Below is a (probably bad) attempt at what I think it would look like.  OnMouseOver(){     // This would select a radius of x hex tiles including center tile     this.SelectTile(3);  }  SelectTile(selectionRadius){     if(!this.alreadySelected){         this.Select();     }     for(int i = 0; i <= selectionRadius; ++i){         if(i < selectionRadius){             foreach(HexTile tile in thisTile.neighbors){                 tile.SelectTile(selectionRadius - i);             }         }     } }   Edit: I'm using this fantastic resource to help with hexes -  - so might there be a section on this page that may explain what I need and I'm just missing?

Here is the situation.  I have hexagonal board,and a unit on it,with speed or move value 4.Diffrent terrain has a diffrent cost.When i click on the unit,game should show me a move range.  My solution was to check each  hex in range of 4,with A* pathfinding,and if path cost was less than 4 then this hex was in range.Finally game nicely show me range of that unit.  My question is:   Is there other solution to search for range on hex grids or square grid,because even if i am really proud of what i did in my solution,i think,it is a little to exaggerated?:))  What make me ask this question?I noticed that when unit speed is 4 or 6 or even 8,time to computing range for my computer was really good,but when speed was 10 and more i noticed that i needed to wait few second to compute.Well in real games i rather dont see something like this and my A* pathfinding is rather well optimized,so im thinking that my solution is wrong.  Thanks for any replies.


Anyone know the most efficient way of displaying the first 100 numbers in the Fibonacci Sequence in Python please?  Here is my current code:  fib1,fib2,fib3= 0,0,1    while fib3< 100:      print(fib3)      fib1=fib2      fib2=fib3     fib3=fib1 + fib2

I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 & 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening.  startNumber = int(raw_input("Enter the start number here ")) endNumber = int(raw_input("Enter the end number here "))  def fib(n):     if n < 2:         return n     return fib(n-2) + fib(n-1)  print map(fib, range(startNumber, endNumber))   Someone pointed out in my Part II (which was closed for being a duplicate - ) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome.    I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?).  What I have so far is no actual coding but rather:   Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence.   I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well.


I'm trying to download my SSH keys so that I can use Filezilla to connect to my webserver. This SHOULD be pretty straightforward - but everything I've tried has failed.  I currently have access to the etc/ssh directory through an SSH connection. I can see the files the folder - but I'm unclear which one is the correct key file.  Secondly, how do I download a file through terminal from SSH?  Thanks in advance!

New to the cloud so pardon this question as I'm certain it's relatively simple!  I've setup my Google Cloud Instance and I'm now trying to connect to it using FileZilla. I have a good understanding of how to do this... but I've been completely unable to download my .ppk file, public key, and private keys. The documentation clearly gives the folder that the files are located in.... but I'm unable to navigate to these folders (it's as if they don't exist) furthermore I'm not really sure how to download something to my computer through the SSH terminal.  Also somewhat infuriating is that I've found the keys in the web portal on Google Cloud however there is no option to download them. I can only view them in clear text.  Any help would be greatly appreciated!


I have an interview where one of the areas I was told I might brush up on is "dynamic programming languages".  So I figured I might spend this weekend writing one to bring as sample code.  :-)  Of course, given the time constraints, I plan on writing something very basic and preferably using a language and/or toolset that will make it extremely easy to do.  Most of my experience is in Python, but I'm willing to spend a little time learning something new if it will make the task easier (and won't take too long).  Does anyone have any advice for me in terms of tools or languages that will make this easier?

I've been wanting to play around with writing my own language for a while now (ostensibly for the learning experience) and as such need to be relatively grounded in the construction of Parsers, Interpreters, and Compilers. So:   Does anyone know of any good resources on constructing Parsers, Interpreters, and Compilers?   EDIT: I'm not looking for compiler-compilers/parser-compilers such as Lex, Yacc and Bison...


I have a simple question, looking at the following code:  letters = [hand[i]][:1] for i in range(5)]  What does the argument before 'for I in range(5)' do?? I can't seem to figure it out.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I have a form of the format:             <form ...>                 <div>                     <input currencyMask ngModel #el (click)="moveCaret(el)" value="Hello">                 </div>                 ...             </form>  How can I make it so that the first time a user clicks on the input, it will move the cursor to the end? I thought about using some logic of: moveCaret(el) { //Note: the 'el' object is of NgModel I believe    if(!el.dirty) { //move the caret } }  But I don't know how to write the actual code to move the caret. Also, this input is using a currency mask from this Angular library. I am not sure exactly how it works, but I think it prevents the method of removing, and then re-inserting the value of the input element to move the caret. The library is called ngx-currency:

Does anybody know how to move the keyboard caret in a textbox to a particular position?  For example, if a text-box (e.g. input element, not text-area) has 50 characters in it and I want to position the caret before character 20, how would I go about it?  This is in differentiation from this question:  , which requires jQuery.


What is difference between following two syntax's in JQuery. Some people follow syntax 1 and some syntax 2  Syntax 1 $('#element_id')    OR  Syntax 2 $("#element_id")

console.log("double"); vs. console.log('single'); I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other? I thought they're pretty much interchangeable.


I wasn't sure how to give a title for this problem, but basically this is part of my blackjack program. Also, since I did not know how to title this, I wasn't sure how to look it up, which is why I am asking here. So I am saying that when the user enters either 1 or 11 for the ace value, if they enter something other than 1 or 11, it asks the user again to put in 1 or 11. In my program everything works fine except when the user enters 1, then it just asks the question again. The program should only asks again if the input is not equal to 1 or 11. Here is my code as I made sure it always gives an ace for testing purposes:  String card1="A"; int total=0; Scanner input_var=new Scanner(System.in); if (card1=="A"){     System.out.println("Do you want a 1 or 11 for the Ace?: ");     int player_ace_selection=input_var.nextInt();     if ((1|11)!=(player_ace_selection)){         System.out.println("Please enter a 1 or 11: ");         int new_selection=input_var.nextInt();         total=total + new_selection;     }     else {         total=total + player_ace_selection;     } } System.out.println(total);   Thanks in advance.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am generating the random string to change the password of users by shell scripting. I am using the below command to generate the random string   </dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 13  ; echo   I am not able to put this on a variable.

I want to assign the result of an expression (i.e., the output from a command) to a variable and then manipulate it – for example, concatenate it with a string, then echo it.  Here's what I've got: #!/bin/bash cd ~/Desktop; thefile= ls -t -U | grep -m 1 "Screen Shot"; echo "Most recent screenshot is: "$thefile;  But that outputs: Screen Shot 2011-07-03 at 1.55.43 PM.png Most recent screenshot is:   So, it looks like that isn't getting assigned to $thefile, and is being printed as it's executed. What am I missing?


I've found a phrase "an additional $30,000 in income" in a government document. Is the article an correct there and why?

The indefinite article a(n), derives from the old English word an meaning "one". Generally this word only occurs in determiner function before noun phrases which are singular. However, there seem to be some cases where this determiner occurs before plural noun phrases. I say that, but actually these noun phrase seem so bizarre to me, in terms of their structure, that I'm not sure they're definitely noun phrases at all. Here are some examples:   a full three months before we left an amazing two days an awkward ten minutes   Ignoring the article here for a moment, these noun phrases are odd because the adjective is occurring before the numeral. We would normally expect to see:   three full months two amazing days ten awkward minutes   Even given the oddness of the word order in the original phrases, I can see no reason why the normally singular indefinite article is licensed here.   Can anybody give an account of the syntactic structure of these phrases, and/or explain why the semantically singular article is able to be used with such phrases - even if they compulsorily trigger plural verb agreement?  Here is an example of one of these instances which seems to demand a plural verb:   An amazing two million people attend every year. *An amazing two million people attends every year. (ungrammatical)


In the context of linear regression, I don't understand why you need to perform an F-test for the H0 that all parameters are zero, instead of just looking at all the t-tests for each parameter.  I understand that they are not the same, but I don't understand why. I sense that it has something to do with the covariance between the ols estimators (because the covariances are not used for the t-tests but all the estimated variance-covariance matrix is used for the F-test).

Why can't we  separately test each variable(using t-test), whether or not it is equal to 0? Why should we use the F-test for checking if all coefficients combined are equal to 0?


As suggested from:         It's not obvious what it's measuring eg: top listed user on WB.SE has a reputation of 101 (unable to down-vote), has never asked or answered, and over their three plus years has roughly similar flag and vote-count to myself (11.7k user) - yet I'm not listed in the first seven pages of results. Could we establish what it measures before requesting a tab?   There is a hidden tab on all sites, showing participation. It can be accessed by going to the SE site and adding this to the end: users?tab=Participation. This then sorts users into the amount they have participated on that site.  I am guessing this is calculated by:   reputation posts edits votes flags?   What exactly does this tab measure?

On per-site metas, users are given a rank based on meta participation, and this ranking is seen on the default tab of the users page on each per-site meta. How is this participation numerically calculated to give a ranking? Is it by votes? Something else? Are community wiki posts included in this?


I fail to see how natural selection can build any kind of new functionality.  New functionality in a design requires sacrificing a complex series of meanwhile useless steps before the new functionality works and becomes advantageous.  For example, if I want to upgrade a stationary chair to a wheelchair, there are many intermediate steps that must be done (which are not advantageous) before the added functionality becomes advantageous.  If a human being sits there and tries to intelligently assemble the wheelchair in such a way that it will be advantageous at each step, he will not be able to do it. it just doesn't work like this.  Can someone fill me in as to how this works and whether there have been experiments that demonstrate this, for example, having someone assemble a simple functional design with the limitation that every few step adds advantageous functionality.

In order to build an intelligent design such as a bridge or a mechanical watch, you need a series of non useful steps.  As far as I understand, in random evolution theory, the "intelligence" involved is the process of natural selection.  The problem with this is that natural selection requires that each step be advantageous right away. If I want to build a bridge, I need many steps which would be disadvantageous until the final product which would be advantageous. This would be like trying to write a computer program where each line of code must be advantageous to the program. An intelligent design just cannot be done like this.  How does modern biology deal with this problem? To say it all happened at once, is not possible since the probabilities against this are simply outside the capabilities of a random system. Furthermore even if by some freak monumental event it happened, it would need to happen again many times since there is a huge diversity of intelligent designs in life forms such as lungs in birds vs gills in fish, or sexless reproduction in bacteria versus male/female reproduction in animals (which are fundamentally different).  (Also, as side question has there been ANY experiment demonstrating that such a thing is even possible? I mean for example, to have a computer simulation of random self-replicating molecules, then having an intelligent human being picking out the best version and eliminating the others, then repeating, etc. until you have an intelligent design.)


Sometimes curved or fluid connector lines are tiring to work with in a complex node setup. Is there a way to change the shape to a more straight line?

Unitl now I haven't found the option to enable the curved representation of connectors between nodes. The  doesn't mention such an  option. Is there a keyboard shortcut?


I had a working file with a natbib setup, but I encoutered difficulties citing in a footnote and it seemed more broadly that biblatex was better for my field. So I switched, and now my .tex file just can't seem to find my .bib file. I have also floated back and forth between certain Biber and Bibtex settings. After four hours of googling I am waving my white flag and crawling desperately for your help.  Here is my preamble:  \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage{graphicx} \usepackage{setspace} \usepackage{fullpage} \usepackage{amsmath} \usepackage[style=authoryear]{biblatex} \addbibresource{bibston.bib} \usepackage{url} \usepackage{textcomp}   As for my errors, it tells me that all of my citations are undefined, and at the end it says:  Package biblatex Warning: Please (re)run Biber on the file: (biblatex) "International RBC" (biblatex) and rerun LaTeX afterwards. Package logreq Info: Writing requests to '"International RBC".run.xml'. \openout1 = `"International RBC.run.xml"'   Thank you so much for your help.  George

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


I'm analyzing data in R, I'm trying to see how some variables affect test scores (Value) of different countries. In the data, since there is different time periods for different countries I need to use a panel technique to regress this data. I'm using a fixed-effect model, more specifically a constant-free model, where you include dummy variables for every particular country. In the equation I took off the intercept to eliminate collinearity. When I ran the regression, I could see the statistical information for all variables except one. I get "NA" for this variable in R. I think my model still suffers from collinearity and I think the solution to fix this problem is just to drop one dummy variable from the equation. I did do that and I'm no longer getting "(1 not defined because of singularities)". I just wanted to double check with someone else if I did the right thing? This is my code: library(stats) library(lmtest) library(dplyr) library(plm)  # running fixed effects with country dummies  Data_we_using2$LOCATION = as.factor(Data_we_using2$LOCATION)  dummyregress = lm(Value ~ Boysdummy + RGDPCapita+Graduation_rates + MissingGraDummy + Mortality_rate + GovtExpen + MissingGovt + Private + LOCATION-1, data = Data_we_using2)  summary(dummyregress)  LOCATION is the dummy variables of the countries. The pictures I included is the output I got for R.

I have an independent variable called "quality"; this variable has 3 modalities of response (bad quality; medium quality; high quality). I want to introduce this independent variable into my multiple linear regression. When I have a binary independent variable (dummy variable, I can code 0 / 1) it is easy to introduce it into a multiple linear regression model.  But with 3 modalities of response, I have tried to code this variable like this :  Bad quality      Medium quality      High quality       0                1                  0      1                0                  0      0                0                  1      0                1                  0   But there is a problem when I try to do my multiple linear regression: the modality Medium quality gives me NA:    Coefficients: (1 not defined because of singularities)    How can I code this variable "quality" with 3 modalities? Do I have to create a variable as a factor (factor in R) but then can I introduce this factor in a multiple linear regression?


I have multiple instances of an app open, e.g. of Terminal. Indicated by the orange dots next to the icon.    Can I configure a shortcut to restore/ show all of those windows with a single click/ command, e.g. double click on the launcher?

I am talking about when you click on the icons in the dock This command gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true  which works for Unity Launcher, (obviously) does not work.  Related to:


I've heard of zero G flights, but why exactly do we feel weightless when we are in them?

Note: For the purposes of my question, when I refer to free fall assume it takes place in a vacuum.   From my (admittedly weak) understanding of the equivalence principle, falling in a gravitational field is physically indistinguishable from floating in interstellar space. This would make sense to me if gravity simply caused an object to move at a constant velocity. Moving at a constant speed, or floating in space, are just two different ways of describing an inertial frame, and are fundamentally no different. But free falling in a gravitational field means accelerating continuously, and doesn't an accelerating body experience a force? Then isn't free falling fundamentally different from floating in space?


Joule's Law Of Heating states that for a conductor Heat loss is given by $$H=i^2Rt$$ Couldn't we substitute $$V=iR$$ and show that $H=(V^2/R)t$ ?  If this is so, when transmitting power across large distances, we should keep voltage low which seems to contradict reality. Where am I going wrong?

This is a question which I seem to have tackled multiple times, solved each time after reading a dodgy internet explanation, then partially forgotten about and retackled half a year later. It is time to put an end to this.  So first, at the power plant, a set power is produced. Let's call this $P_g$. Then there is a transformer that can say hypothetically transform this power into any voltage, and therefore following the equation $V = IR$, any current desired. Cool so far.    Consider the case where you simply condense all the power lines into a single resistance, R. Now we can relate the power lost from the resistance $P_l$ as $P_l = I^2R$. By inspection, as the resistance is a constant, lowering the current drastically lowers the power lost. This is great, as lowering the current means raising the voltage, which seems all handy dandy.  But wait: here's my problem. Can't the Equation for power loss be translated as thus:  $P_l = I^2R$  $P_l = IV$  $P_l = \dfrac{V^2}{R}$  BAM. Now the power seems to depend upon the voltage alone, as the resistance does not change, so it seems pretty logical that REDUCING the voltage reduces the power lost. Nuts. Evidently I have done something wrong. Lets take a simple case, $P_g = 10$. Lets say I set the voltage to 10, and the current to 1, and the resistance to 1 as well. That seems ok, as $P = VI$. Now lets use the two equations we have to determine the loss of power.  $P_l = I^2R = 1$  Seems logical, the current is 1 definitely, and the resistance is 1 definitely, so the power loss is one. Makes sense too.  $P_l = \dfrac{V^2}{R} = 100$  WHAT IS LIFE!! But this seems pretty logical to me too, the voltage across the resistance is 10 (is it not? I might be forgetting something fundamental here? not sure), and the resistance is 1.   Any help is helpful, I'm probably just being silly at one step or another.  EDIT  Well I was right, I WAS being silly i think. I pretty much completely ignored the fact that $V = IR$, so in the case where $P_g$ is 10, and the resistance was 1. I seem to have run into a complication now. If I set the voltage to 10, according to $P = VI$ the current should be one, but according to $V = IR$ the current should be 10. I run into a conundrum? I am now thoroughly confused. Any help is helpful.


This might be a terribly simple question, but I cannot convince myself whether the answer is yes or no. Maybe I am missing something simple. I am not well-versed in the area of elementary set theory so excuse the simplicity of the question. Note within a world where $\mathsf{GCH}$ is true we clearly have a yes; but with $\mathsf{GCH}$ false the answer is no longer obvious to me.  Exclude the triviality of finite sets. If $|X|<|Y|$ then $|X|<|Y\setminus X|$ so say $|X|=\kappa$, then $|Y|=\kappa+\lambda$ with $\kappa<\lambda$. But then proving $2^{\kappa}<2^{\lambda}$ is equivalent to the initial problem.  Am I being silly or is it consistent with $\mathsf{ZFC}$ that this implication is false?

Is it true that if $X$ and $Y$ are sets and there is a bijection between $\mathcal{P}(X)$ and $\mathcal{P}(Y)$ then there is a bijection from $X$ to $Y$ ?. I believe this should be obvious, but I can't see why this is so. A proof or a counter example would be highly appreciated.   Thanks.


For example, let's say you have a code like the one below, and you want to take the repeatings from column 2 and make a new file out of it.   Dog     121        234 Cat     121        222 Rate    123        256 Mouse   122        233 Hat     121        230   So you want everything from column 2 that has "121" and make a new file of it

How can I separate specific numbers from a column and add it to a new file? For example, take all numbers that are "134" from column 3, I tried using   awk '$3 == 134" file.txt   but it didn't work, also tried using   awk -F, '{print $3 == 134 }' file.txt    didn't work.  Pink          132           134 Blue          189           167 Yellow        2000          134 Green         678           145 Black         789           145 White         780           135   So the new file will contain just the following   Pink          132           134 Yellow        2000          134


I've got a few functions in JQuery that stop working after I perform an Ajax request (to a PHP file) to add elements to the DOM.   This is the ajax function:  function paginacion(pagina){   $.ajax({     method: "GET",     url: "paginacion.php",     data: {pag: pagina}   })     .done(function(msg) {     $(".bt_container").remove();     $(".contenido").append(msg);   }); }   Here I call it:  $(".button").on("click", function(){    var pag = parseInt($(this).attr("data-pag"));   pag++;    paginacion(pag);  });   When I click the button, it works correctly the first time. But the elements I retrieve, should work with another function, and they don't, while the previous elements do work without any problem. Also, the old button gets removed and another one gets added at the end of the file, being retrieved by the same function as above. That button doesn't work either.  I'm sure that I'm having some problem with JQuery, making it to not work with these new DOM element's I'm retrieving. What can I do to make it work?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


When I open Firefox from the launcher there is no icon.    When I run firefox from the terminal the icon appears. So far I have tried , but the issue still remains.   This is my firefox_dev.desktop file:   [Desktop Entry] Version=1.0 Name=Firefox Developer Edition GenericName=Web Browser Exec=/opt/firefox/firefox Terminal=false Icon=/opt/firefox/browser/icons/mozicon128.png Type=Application Categories=Network;WebBrowser;Favorites; MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp; X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito   I have tried uninstalling and then installing again, but the issue is still the same.

I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.  I can change the theme but that's not what I want.   I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.


I've seen effect used by a number of photographers and although I'm not sure I like it, I'm interested in understanding how it was achieved.

Inspired by the question  by , and the response to the subsequent . I would like to ask how to achieve a specific photo effect.  There may be more photographers that pull this off, but I know of two specific ones. The first is the wonderful photographer, . I know that he does lots of post processing, and his talent goes beyond a short list of tips that I can learn from a website, but I think there is something that I can hope to understand.     What is the Dave Hill effect? I have heard people talk about it, but what is it actually and how does one achieve it?   and     On his webpage, the "Nerd ad", "Allen Robinson", and "Jon Heder" shots give the subjects a specific skin tone/saturation. In general, his portrait shots are amazing. The detail and texture mystifies me. How can I pull this eerie feeling off?   Now the second photographer is  from flikr. His shots are also extremely impressive.      Again, he is using some black magic to make skin tone amazing. His subjects look beyond real, and I love it. Three specific examples are , , . Looking at energy, beyond the absolutely phenomenal idea for the shot and execution, and just focusing on the subject, he has this plaster/grey look, and his skin looks wonderful. Similar things are true for those other shots I linked.   Some ideas I have had that might contribute to this are HDR or possibly just phenomenal lighting setups. I have watched the videos on Dave Hill's website, but they just make me think more-so that he sold his soul to Mephistopheles.   I would appreciate any suggestions on how to achieve these results, or even some direction to go in this direction.   Thanks so much!


When I roll a rigged cube over its edge (for instance this example which has no bones on all its edges but anyway -> ), some bones stay behind outside my mesh. So I'm not able to animate a next turn/tumble. Does someone have a solution? It is possible to transfer the bones to a new position in one frame after the first rotation? How does this work?

I have a default Blender cylinder positioned upright atop a ground plane:    How can I rig the cylinder so that can be animated to wiggle/jitter (perhaps procedurally with noise f-curve modifiers on two of its rotation axis) without penetrating the floor?    A simple parent-child relationship as in the image above is sufficient to rotate (and translate) the cylinder on 1 axis in either a positive OR negative direction.   I'm looking for a setup that would allow me easily to rotate the cylinder on two or even three axis in both a positive and negative direction.  I imagine this would be possible with some drivers applied to the XYZ coordinates using trigonometric equations but the math escapes me. It might also be possible using a particular bone setup with the correct constraints but my attempts to find something that works so far have not succeeded.  Thanks for your assistance.


In Harry Potter and the Sorcerer's Stone there is following tirade from Petunia Dursley:     "Knew!" shrieked Aunt Petunia suddenly. "Knew! Of course we knew! How   could you not be, my dratted sister being what she was? Oh, she got a   letter just like that and disappeared off to that - that school- and   came home every vacation with her pockets full of frog spawn, turning   teacups into rats. I was the only one who saw her for what she was - a   freak! But for my mother and father, oh no, it was Lily this and Lily   that, they were proud of having a witch in the family!"   Why would Lily do this? Didn't she have the Trace at that point? Or was the Trace and the restriction for underage magic introduced later (unlikely since everyone knew about it)?

At the very start of the movie adaptation of Prisoner of Azkaban, Harry attempts the spell Lumos Maxima in his bedroom. He then inflates his Aunt Marge and makes her float in the air.  How come he is doing this outside of Hogwarts as an underage wizard? The Trace is clearly still on him!  I understand the quote by the Minister for Magic, Cornelius Fudge, "Oh, come now, Harry. The Ministry does not send people to Azkaban for blowing up their aunts." But isn't that pretty much saying that casting any smaller spell is something that an underage wizard or witch can get away with?


I asked a recent, separate Ask Ubuntu question with the following in the body:  W: An error occurred during the signature verification.  The repository is not updated and the previous index files will be used.  GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease:  The following signatures couldn't be verified  because the public key is not available: NO_PUBKEY 76F1A20FF987672F   As you can see part of my error message exposes PUBKEY 76F1A20FF987672F. Was this the public key of WINE, or is this my own public key?  Most importantly, is this PUBKEY 76F1A20FF987672F information I should NOT be posting on a public forum (this one)?  I assume a private key is the only thing I would never want to divulge. I'm reading  page now, but it's a little overwhelming.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


I installed python3-selenium apt package on Ubuntu 16.04. While installing, got a message:  Suggested packages: chromedriver firefoxdriver The following NEW packages will be installed: python3-selenium   When I try to run the following python code,  #! /usr/bin/python3.5 from selenium import webdriver import time  def get_profile():     profile = webdriver.FirefoxProfile()     profile.set_preference("browser.privatebrowsing.autostart", True)     return profile  def main():     browser = webdriver.Firefox(firefox_profile=getProfile())      #browser shall call the URL     browser.get("http://www.google.com")     time.sleep(5)     browser.quit()  if __name__ == "__main__":     main()   I get the following error:  Traceback (most recent call last):     File "./test.py", line 19, in <module>         main()     File "./test.py", line 11, in main         browser = webdriver.Firefox(firefox_profile=getProfile())     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox      /webdriver.py", line 77, in __init__ self.binary, timeout),     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__ self.profile.add_extension()     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 91, in add_extension self._install_extension(extension)     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 251, in _install_extension compressed_file = zipfile.ZipFile(addon, 'r')    File "/usr/lib/python3.5/zipfile.py", line 1009, in __init__ self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib /firefoxdriver/webdriver.xpi'   I did searching for packages name firefoxdriver in Ubuntu repositories but none exist.  Any help with installing the webdrivers appreciated.

When I install Selenium I get the following error:  Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo apt-get update     Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]     Hit:2 https://repo.skype.com/deb stable InRelease                            Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease                          Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]     Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]       Fetched 323 kB in 8s (38.6 kB/s)                                                    Reading package lists... Done     Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo pip install selenium     Traceback (most recent call last):       File "/usr/bin/pip", line 9, in <module>         from pip import main     ImportError: cannot import name main   How should I proceed?


I am unsure how to gather different dataframes under "the same roof". I thought it might be a good idea to create a list, in which each element is a dataframe (if there is a more convenient way, please enlighten me). To give an example of how I created this list:  import requests import pandas as pd tic_in = ['AAPL', 'AMZN']          # list for feeding url   list_test = [] for ticker in tic_in:    url = 'https://www.stocksplithistory.com/?symbol=' + str(ticker)     html = requests.get(url).content    df_list = pd.read_html(html)    df = df_list[7]                       # 7th table is what I want                        list_test.append(df)                  # append new dataframe to list   Now my problem: If I want to access any of these dataframes, I have to work with the n-th element. Speaking: If I e.g. want to retrieve the dataframe of 'AAPL', I have to:  list_test[0].head()   Is there a possibility to somehow give a position of a list a name? So I could avoid working with the n-th element, and instead work with the more direct way:  list_test['AAPL']   (Im new to this forum, thank you very much)

In PHP I can name my array indices so that I may have something like:  $shows = Array(0 => Array('id' => 1, 'name' => 'Sesame Street'),                 1 => Array('id' => 2, 'name' => 'Dora The Explorer'));   Is this possible in Python?


I am trying to remove entries from a Hashmap, if i have already used them. Sadly, I'm not familier with Java 8 lambda expressions, so I'm not sure how to remove the entries correctly. Could somebody help me or explain what I have to do?  Here is the way I've tried doing it:  ArrayList<Integer> range10 = new ArrayList<Integer>();     ArrayList<Integer> range15 = new ArrayList<Integer>();     ArrayList<Integer> rangeMax = new ArrayList<Integer>();  for (int age = 16; age <= 100; age++){         for (Entry<Integer, Partner> entry : dbMap.entrySet()){             int key = entry.getKey();             Partner person = entry.getValue();             if (person.getAge() == alter && person.getAgeRange() == 10){                 range10.add(key);                 entry.setValue(null);             }             else if (person.getAge() == alter && person.getAgeRange() == 15){                 range15.add(key);                 entry.setValue(null);                 }             else if (person.getAge() == age){                 rangeMax.add(key);                 entry.setValue(null);                 }             dbMap.entrySet().removeIf(entries->entries.getValue().equals(null));          }   And I get a java.lang.NullPointerException for it. I don't think this is a duplicate to asking what a NullPointerexception is, since I'm primarily asking how to use the removeif-function.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Some old questions on SE have 1M+ views, and many of them have 30+ answers. See  for the ~1000 most viewed questions. From just the first page of results:     35 answers  (in Javascript)  96 answers   50 answers   Correct me if I am wrong, but such questions:   Are likely to be the first answer a new user sees on the SE sites Are viewed a lot by users having beginner level questions Are a pain to read to find the best solution, because each answer/comment might contain an important update to the originally accepted answer have many more answers than actually different solutions   Also SE wants to be more beginner friendly (and that includes a lot of people who are beginners in the topic of an SE site like SO).  I believe these questions are not the most helpful to those users that are most likely to see them. There is a lot of meaningful activity on these questions, but the result is quite messy. How can anyone know whether the most useful answer will be on page 3 of all results?  Now imagine those questions were wikipedia pages on the topic. And all answerers who added one more answer instead cooperated on writing a single article summarizing all answers in the most useful way, uopdating as technology evolved. Would this not be a much more useful way of answering those questions, and a much better impression for first-time visitors to SE?  Of course the authors of these questions and accepted answers could voluntarily turn those into community wikis if they were so inclined, and some such questions are. But it seems to me there is some potential of making such highly visible pages much more useful to those most likely to visit them (the beginners), by being more easily editable by the community without waiting for askers and answerers to switch to community wiki. (Also I believe the reputation gains from such questions are a bad measure of what reputation should be measuring, but that's a different topic).  Now I am wary of suggesting any single change, because most change suggestions get downvoted on meta, so I'll just ask if there is any great idea in meta on making those pages better ambassadors for SE, and wasting less time of the community writing duplicate answers and readers finding information across all answers.  EDIT:    not sure how as a User I am supposed to use those locks on those questions, in any case the question seems from 2013, and not have much effect on the 1M most viewed questions. Locks in general seem to be applied to questions with conflicts like edit wars, or questions that are slightly off-topic, none of which is what I refer to in my question.  seems to be close enough to close this question as duplicate, though I accepted one from meta-SE instead.

Yesterday,  was closed and locked, which spurred  here on Meta.  The  for the lock was that it was aggregating answers and this had to be cut off at a certain point.  If this is to be the policy going forward, should there be a system-imposed cap of X answers for a given question so that this is codified somewhere and is not a per-question judgment call?    At a certain point, a question could just drop the "Add an answer" option, which would avoid the stigma of having the question locked (and potentially closed).  The text below the question could indicate that no more answers were being accepted for this question, but that the users were free to submit edits to existing answers in order to improve them or add more information.


I have the following piece of code:  String week = this.getIntent().getStringExtra("weekNumber"); String correctWeek = Integer.toString(Calendar.WEEK_OF_YEAR);  if (week == correctWeek) {     correct(); }  else incorrect();   They are both "3", but the comparation result is false and I don't know why:    Where is the error?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Some of my users are having issues sending emails with attachments from iOS devices but the same works fein from desktop versions. There seems to be a link to the size of the attachment, as an example 8mb files are causing an issue where 1mb files are fine.  I have checked maxRequestLengths in config files and they look to be well over the 8mb size. I'm just looking for a little guidance to point me in the right direction.  Any help is much appreciated.  Environment is Exchange 2013 SP1 running on Windows Server 2012 R2.

We have an on premise Exchange 2013 server. When sending email with large attachments from ActiveSync accounts on IOS devices, the email gets stuck in the outbox and won't send. It keeps trying to resend and can cause our users to blow their data allowance and start costing hundreds in data fees. It does not do this when sending from a Gmail account linked on the phone, or from a windows 8 phone.  I've narrowed down an attachment size of about 7660870 bytes before the issue starts occurring. For a few bytes over this limit, the email will have a failure message, but will still be sent through without the attachment. If you add a few more bytes on, we get the failure message but no email goes through and it gets stuck in the outbox. These sizes are under our allowed size limits for internal and external mail. Additionally, I'm guessing the behavior of this issue depends on the total size of the message including header, body, etc., not just the attachments.  Has anyone seen this happen before, or have any idea what could be causing this?


I have been trying for days now to get Ubuntu to dual boot with Windows 10, I have it installed but won't show at all looks like it's invisible.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I have the following simple inheritance example in C++.  #include<bits/stdc++.h>  using namespace std;  class Animal{     public:     string mName;      Animal(string pName){         mName=pName;     }      virtual void printAnimal(){         cout<<"Animal "<<this->mName<<endl;     }  };  class Dog: public Animal{      public:      Dog(string pName): Animal(pName){}      void printAnimal(){         cout<<"Dog "<<this->mName<<endl;     } };  class Cat: public Animal{     public:      Cat(string pName): Animal(pName){}       void printAnimal(){         cout<<"Cat "<<this->mName<<endl;     } };  Animal getCat(){     return Cat("Tom"); }  Animal getDog(){     return Dog("Scooby"); }  int main(){     getCat().printAnimal();     getDog().printAnimal(); }   To my understanding, if we override a virtual function given in the base class, then no matter whether the reference is to the base class or the derived class, when the overridden function is called, it should call the function defined in the derived class and not the base class.    So one would expect the output of the above program to be,  Cat Tom Dog Scooby   But I get,  Animal Tom Animal Scooby   Why is this happening? What is the correct way to do this?

Someone mentioned it in the IRC as the slicing problem.


What I seem to remember is that the Martian is stranded by the destruction of his civilization. Also, there is an odd detail that sticks in my brain: the Martian drops a bracelet (or a watch?) in a river, where the implication is that it could be found centuries later. The Martian may have intended to influence the development of humans. Quite poignant at the end.

If I recall it correctly, this book has two main characters, both male, one of them big and well muscled. During the novel, they found evidence that the current human race descends from ancient Martian astronauts who traveled to Earth in prehistory, causing the extinction of prehistoric Earth humans, (which explains the Missing Link in human evolution).  Later in the novel the big guy travels back in time (no idea of how or why) to Prehistory.  And near the end of the book, the other main character, during an archaeological field research, finds remains of a human being who lived thousand of years ago, a human with large bones, and who holds an item that could not be made in that era (a gold plaque? A metal rod?)  That's all I can remember. I know it is not from the ABC, Asimov, Bradbury or Clarke.  Thanks in advance.


This situation is the PC was upgraded from Windows 7 to Windows 10.  Then Ubuntu was installed.  When I installed it the prompt asked if I wanted to install it along side Windows 7 even though the upgrade to 10 was complete.  I proceeded with the installation and it appeared to complete without errors.  However, it still boots directly to Windows 10 without a dual boot option.    At this point I am not sure how to boot to Ubuntu to fix grub.  I have read some solutions for grub but I need to get into Ubuntu first.  The option to "try Ubuntu" works but that is only running off the thumb-drive.  Any suggestions?  Thank you very much.

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


Some while back I set up a postfix server. I set the MX record for my domain name and sent a test message to one of my addresses on gmail.com. However, as the MX record change was not propagated by the time, the test mail bounced and I received a message from my postfix, containing the following:     This is the mail system at host mypostfix.      I'm sorry to have to inform you that your message could not   be delivered to one or more recipients. It's attached below.      For further assistance, please send mail to postmaster.      If you do so, please include this problem report. You can   delete your own text from the attached returned message.                The mail system       : host gmail-smtp-in.l.google.com[2a00:1450:4013:c00::1a]       said: 550-5.7.1 [2a01:238:42e0:b900:831d:f7fa:815c:8d16] Our system has       detected that 550-5.7.1 this message does not meet IPv6 sending guidelines       regarding PTR 550-5.7.1 records and authentication. Please review 550-5.7.1        for more 550       5.7.1 information. y5si10216561eee.102 - gsmtp (in reply to end of DATA       command)      Reporting-MTA: dns; xxx   X-Postfix-Queue-ID: 24665363A430   X-Postfix-Sender: rfc822; xxx   Arrival-Date: Fri,  7 Feb 2014 21:00:20 +0100 (CET)      Final-Recipient: rfc822; xxx@gmail.com   Action: failed   Status: 5.7.1   Remote-MTA: dns; gmail-smtp-in.l.google.com   Diagnostic-Code: smtp; 550-5.7.1 [2a01:238:42e0:b900:831d:f7fa:815c:8d16] Our       system has detected that 550-5.7.1 this message does not meet IPv6 sending       guidelines regarding PTR 550-5.7.1 records and authentication. Please       review 550-5.7.1        for more 550       5.7.1 information. y5si10216561eee.102 - gsmtp   I receive this mail every hour and it's kind of freaking me out, as everything works as it should by now (I can send emails to gmail.com without any error).  Can I fix that somehow without telling my postfix to turn off notifications like these completely?  Thanks!

I am setting up a new server and discovered that Gmail does not accept emails from this server.  I checked Exim logfiles and found the following:  Our system has detected that this\n550-5.7.1 message does not meet IPv6 sending guidelines regarding PTR records\n550-5.7.1 and authentication. Please review\n550 5.7.1 https://support.google.com/mail/answer/81126 for more information. om7si10023450wjc.42 - gsmtp   My server has IP4 and IPv6 ip addresses. I have added SPF records for both IP4 and IPv6 IP addresses. The only thing is that I don't have PTR records yet (my data center does not allow to add PTR records if A record does not point to the same server). So, I will PTR records later when I move websites to the new server.  My question: is it possible that Gmail does not accept emails just because I don't have PTR records? All email providers in similar situations just put emails in Spam or Bulk mail folders. Gmail does not accept mails at all?


Can I use a charger with the following values:  Input 100-240V 1.5A Output 19V 2.40A  To replace   Input 100-240V 1.6A Output 19V 3.42A

I have a laptop that says it needs a 19V 3.42A power supply. I have a Dell 20V 4.51A power supply.  Can I use this power supply with my laptop, or will it destroy the machine?


I want to display the webform submission data along with some other information in the below mentioned table format (like multiple rows for a particular column inside of a table).  Is it possible with , or can anybody suggest a module, if there is such or any other way of getting it? I tried searching but found no module that meets my requirements.

I want to view webform submissions in table view. I created a view of webform submissions but it shows a link for the data submitted. I dont want to use link, I want only simple table view.