There is something wrong (2D car sprite changes after moving right or left)

this is car controller      using UnityEngine;     using System.Collections;     using System.Collections.Generic;      public class CarController : MonoBehaviour     {         public float acceleration;         public float steering;         private Rigidbody2D rb;          void Start()         {             rb = GetComponent<Rigidbody2D>();         }          void FixedUpdate()         {             float h = -Input.GetAxis("Horizontal");             float v = Input.GetAxis("Vertical");              Vector2 speed = transform.up * (v * acceleration);             rb.AddForce(speed);              float direction = Vector2.Dot(rb.velocity, rb.GetRelativeVector(Vector2.up));             if (direction >= 0.0f)             {                 rb.rotation += h * steering * (rb.velocity.magnitude / 5.0f);                 //rb.AddTorque((h * steering) * (rb.velocity.magnitude / 10.0f));             }             else             {                 rb.rotation -= h * steering * (rb.velocity.magnitude / 5.0f);                 //rb.AddTorque((-h * steering) * (rb.velocity.magnitude / 10.0f));             }              Vector2 forward = new Vector2(0.0f, 0.5f);             float steeringRightAngle;             if (rb.angularVelocity > 0)             {                 steeringRightAngle = -90;             }             else             {                 steeringRightAngle = 90;             }              Vector2 rightAngleFromForward = Quaternion.AngleAxis(steeringRightAngle, Vector3.forward) * forward;             Debug.DrawLine((Vector3)rb.position, (Vector3)rb.GetRelativePoint(rightAngleFromForward), Color.green);              float driftForce = Vector2.Dot(rb.velocity, rb.GetRelativeVector(rightAngleFromForward.normalized));              Vector2 relativeForce = (rightAngleFromForward.normalized * -1.0f) * (driftForce * 10.0f);               Debug.DrawLine((Vector3)rb.position, (Vector3)rb.GetRelativePoint(relativeForce), Color.red);              rb.AddForce(rb.GetRelativeVector(relativeForce));         }      }   and this is camera controller  using UnityEngine;  public class CameraController : MonoBehaviour {      public Transform player;     public Vector3 offset;      void Update()     {         transform.position = new Vector3(offset.x + offset.x, player.position.y + offset.y, offset.z); // Camera follows the player with specified offset position     } }


How does a shadow appear to break the speed of light?

Take the image below for example:  For the shadow to travel from point A to B would be extremly fast on the surface on the moon but probably not breaking the speed of light. But if the moon were 20 times larger then it would appear that the shadow would be travelling 20 times faster appearing to break the speed of light on the surface of the moon.  So in essence the bigger an object is the quicker that shadow would appear to move on the surface of that object.  So what does this mean in terms of breaking the speed of light?  Also for interesting purposes, what is the speed of dark (if it even has a speed?)


Unix software to continuously monitor packet loss

I'm looking for some software to monitor packet loss or packet retries.  Preferably something that continuously monitors vs. a testing approach  and preferably free.   My server's OS is debian. I'm not sure if wireshark can do this since I don't have access to a graphical interface on my server, only text/SSH.  Any suggestion please ?


Short story: Mindset of believing something is possible (even if not true) influences the outcome

Trying to find what I think was a short story, probably written 30 or more years ago.  Synopsis, to the best of my recollection:  Organization (military?/government?/corporate?) shows film of an inventor demonstrating successful flight of an "anti-gravity" device.  Film ends with the device totally destroyed and the inventor dying in the disaster.  The film is shown to a group of sceptical scientists who are convinced by its provenance that the film is genuine.  The scientists are then given access to the inventor's home and lab which contain papers, books, articles, etc. relating to a melange of documented levitation occurrences, UFO sightings, paranormal occurrences, etc. - but no details of the inventor's solution except very general miscellaneous piecemeal notes, calculations and drawings.  Because the scientists are convinced that a solution does exist - as demonstrated by the film they have been shown - they work to duplicate the inventor's route to solving "anti-gravity".  They are successful ... but are then told that the original film was a hoax.


How do I prove an equality by constructing a bijection

I know how to do the problem conceptually, and proving the equality by computing isn't hard, but we are required to use a bijection to prove this, any ideas please?


What's the significance of the boat rides?

In Harry Potter and the Sorcerer's Stone, we see Harry and the rest of the first-years riding boats up to Hogwarts when we're first introduced to it. According to the  (emphasis mine):  The Hogwarts boats are traditionally used to transport the first year students, accompanied by Hogwarts gamekeeper Hagrid across the Black Lake from Hogsmeade Station to the castle at the start of the school year. At the end of the school year, first years take the boats back across the lake to Hogsmeade Station. During the Hogwarts graduation ceremony, the seventh-years ride the boats back across the lake as they leave the school for the last time.  So Harry and Co would take a ride both to and from Hogwarts at the beginning and end of their first year, and the graduating class gets one last go as well before leaving. What is the significance or meaning of these boat trips? Who started this tradition and why?


With the announcement of the detection of gravitational waves, questions about the implications proliferate.  Some relate to the possible existence of gravitons.  The analogous relationship between gravitons/gravitational waves and photons/electromagnetic waves is frequently mentioned.  The detection of individual photons required experiments of very low intensity light, yet their existence was inferred (prior to their actual detection) by Planck and Einstein (among others) using the properties of experimental black body radiation and the photo-electric effect.  If the prospects for detection of gravitons requires similar study of very low intensity gravitational waves, then those prospects are very dim indeed. My question: are there similar indirect "experimental" methods for inferring the existence of gravitons?


Conditional probability of $E[X_{1}\mid X_1+X_2+\cdots+X_{n}]$

Find conditional probability of $E[X_{1}|X_1+X_2+...+X_{n}]$ given the   fact that $X_{k}$ for all $k$ have finite expected value and all the   variables are independent and have the same distribution.   I guess the solution should follow quickly from one of the properties of the conditional probability. But I don't see any that would be helpful. So is applying the definition the right way?


Let $ I_0 \subseteq I_1 \subseteq I_2 \subseteq I_3...$ be a sequence of ideals of a integral domain, $R$. Let $R$ also be a principal ideal domain. In other words for every $k \in \mathbb{N}$  assume $I_k$ is an ideal of $R$ and that $I_k \subseteq I_{k+1}$ for every $k \ge 0$. Prove there exists a natural number, $N$ such that $I_k=I_N$ for some $k \ge N$.  I can prove that the union of the sequence of ideals is also an ideal of $R$. I am having trouble formulating the proof for the rest of the statement.   I have been given the hint: Show $I_N=I$ for some $N \in \mathbb{N}$, because I is a PID, but do not know how or where to use it.


Graphical modeler in QGIS. I can't find a model

I'm a doing a tutorial for QGIS and at one point I have to use 'Join attributes by location' model but I do not find it in the Graphical modeler.   Does it have to be there?   I have to download it from somewhere?  I am using QGIS 2.8.1.


If voltage is same in two points why does electron move?

We know that at point A and B there is same voltage.Then why electron moves from one point to the another one?


If N is a subgroup normal of the group G such that $N \cap G'=\{e_{G}\}$, show that $N \subset Z(G).$ Where $G'$ is the subgroup commutator.  I did like this: Let $g \in G $ and $ x \in N$ arbitrary, as N is normal subgroup then $ x ^{ - 1} \in N $ Now let us consider the element $xgx^{-1}g^{-1}$. On the other hand, $ xgx^{-1}g^{-1}\in N $. In fact, because of the hypothesis of N being normal subgroup of G, we have that $ x (gx^{-1} g^{-1}) \in N $. Therefore  \begin{eqnarray*} xgx^{- 1}g^{- 1} \in N \quad \text{and} \quad xgx^{-1} g^{- 1} \in G' & \Rightarrow & xgx^{-1}g^{- 1} \in N\cap G' \\ &\Rightarrow & xgx^{-1} g^{-1}= e_{G} \\  &\Rightarrow & xg=gx \Rightarrow x\in Z(G). \end{eqnarray*}


Take to hospital or take to the hospital?

Which is correct:   He was taken to hospital? He was taken to the hospital?


bash completion is not working with a vnc connection. I works if I login with ssh, but not with xterm/bash in a vnc connection. I tried with different display managers and with different machines, no solution. I checked .bashrc - it is enabled. I have no idea where to look now.


Package [listings]: Specify start/end line of code without line numbers

I often use the \lstinputlisting command from the  package to import whole or portions of standalone <codingLanguage> code files into my documents.  Problem  When I want to insert an except from the whole <codingLanguage> script, I use:  \lstinputlisting[caption     = {Caption},                   label       = COD:script,                   firstline   = 7740,                   firstnumber = 7740,                   lastline    = 7766                 ]                 {\main/Scripts/script.m}   in which case, I am specifying by line number.  The problem is that edits to that code shift the line numbers, making the document latex code obsolete and requiring manual fixing.  I read through the listings package manual, but did not find anything. I admit that I may have read the answer and not known it was the answer.  Desired Resolution:  How can I start and stop excepts with less volatile parameters?  I would much prefer to place some form of marker in the <codingLanguage> code for which the latex code \lstinputlistings could search, (and I'd need to be able to have multiple unique markers).


rsync ESXI 5.5 out of memory in receive_sums

I statically compiled the latest rsync (3.1.1) & can successfully execute the command on my ESXI server. I am getting the following error from rsync however:  ERROR: out of memory in receive_sums [sender] rsync error: error allocating core memory buffers (code 22) at util2.c(102) [sender=3.1.1] rsync: [generator] write error: Broken pipe (32)   Do you know how I could go about making this work? The command I am using is:     rsync -vrltH --delete -pgo --stats -S -D --numeric-ids --bwlimit=50 -A   -X --exclude-from=/home/files/porchefiles/2014.08.03-08.58.10/exclude --link-dest=/home/files/porchefiles/2014.08.02-21.48.13/tree hq.porchecars.com:/home/   /home/files/porchefiles/2014.08.03-08.58.10/tree   Both sender & receiver are on 3.1.1.  Thanks


Creating separate dxf file for each ArcSDE featureclass with FME 2017?

I am having problems creating separate dxf files for my sde Featureclasses with fme2017. I am not a CAD user but have to export over 200 featureclasses out of my 10.3.1 SDE Database. I have created the sde reader which splits the database into the featureclasses and would now like to create a separate dxf for each individual featureclass. Because I have over 200 I want to do this automatically. I have already tried using a featureclassfilter but the output is always a single dxf. If I have tried using a generic writer or  fan-out with featuretype as parameter it still routes all to the same single dxf.   How can I create one dxf for each Featureclass?


Compilation error /usr/bin/ld: cannot find -lz

I encountered with this error while attempted compiling fasta36 on my Ubuntu 12.04.3 64 bit machine:  /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [fasta36] Error 1   I used following command:  make -f ../make/Makefile.linux64_sse2   I guessed it could be due to absence or broken symbolic link so tried to find the correct file. I could see in my /usr/lib directory following files:  lrwxrwxrwx 1 root root     16 Nov 18  2011 libzbar.so.0 -> libzbar.so.0.2.0 -rw-r--r-- 1 root root 187480 Nov 18  2011 libzbar.so.0.2.0 lrwxrwxrwx 1 root root     25 Nov 12 18:54 libzeitgeist-1.0.so.1 -> libzeitgeist-1.0.so.1.1.4 -rw-r--r-- 1 root root 122048 May  4  2012 libzeitgeist-1.0.so.1.1.4 lrwxrwxrwx 1 root root     18 Nov 12 18:54 libzephyr.so.4 -> libzephyr.so.4.0.0 -rw-r--r-- 1 root root  55672 Apr 30  2011 libzephyr.so.4.0.0 lrwxrwxrwx 1 root root     23 Nov 26  2010 libzvbi-chains.so.0 -> libzvbi-chains.so.0.0.0 -rw-r--r-- 1 root root  60112 Nov 26  2010 libzvbi-chains.so.0.0.0 lrwxrwxrwx 1 root root     17 Nov 26  2010 libzvbi.so.0 -> libzvbi.so.0.13.1 -rw-r--r-- 1 root root 546768 Nov 26  2010 libzvbi.so.0.13.1   I have no idea which one of these represent the -lz?  Could someone help me sort this one out here? I appreciate your time and help.


How would you program a C/C++ application that could run without opening a window or console?


cannot input password after input username and press enter in tty1 of ubuntu 16.04

The version of my Ubuntu is 16.04 LTS. After Ctrl+Alt+F1, I enter the tty1. The first thing to do is to login. But when I input my username and press the enter, I cannot input the password. And it repeatedly print login incorrect.


What are the pros and cons of well compensated STEM graduate students joining a union?

Recently, my state has declared graduate students as employees giving them the right to unionize. The students in the Engineering School are very well compensated. The benefits that we get are   Minimum stipend of 29k$ (which was increased ~3 years ago).  Top tier health insurance plan fully paid for by the University and Engineering School Deans that largely respect student needs and actively address current issues Plethora of funding for student lead activities  Free services like legal council, psychiatrist, campus clinique, campus shuttle buses, etc. TA opportunities are always available for those that need them.    Additionally, my department has a very high standard set forth for us. We have nice offices, the Chair actively addresses our concerns and complaints, funds for student activities and community building, computational resources, and more. The quality of life for students in my department (Applied Math) is quite high.   Lately, we've had outside people dropping by to advise us to join a union. The humanities students are largely in support of this movement since they are not compensated as well as the engineering students. In my point of view, there are very few reasons why I can see joining a union will benefit the Applied Math graduate students. Given how well we, the graduate students in my department, are currently treated, what are the advantages and disadvantages of unionization?   Edit: There is a similar question , however, does not specifically address STEM students.   I am a naive graduate student and will like to be better informed about the advantages and repercussions of joining a union. Whenever administrative University personnel have approached us to dissuade the effort, their tone has been extremely diplomatic and ambiguous about why they are advising against unionizing.  A brief summary of the responses is as follows.   Advantages of unionizing   Security of current benefits Bargaining power to timely address current, new, and growing needs of the entire bargaining unit  Guaranteed minimum pay  Improving circumstances of students in other schools who are not as well compensated Human resources like representation for students facing abuse, harassment, or other adversities from their advisors  Disadvantages of unionizing    Partisan representation  Clarifying the distinction between student and employee (though some may argue that this is an advantage) Paying dues (though contracts usually negotiate higher stipends to offset this amount) Deterioration of student/administrative relationship    Additional STEM specific points that I'd like to add are   Advantages   Incentives to address issues such as a single student having to monitor experiments running for 8+ hours For international students, alleviating fears of not being able to find an advisor which prevents them for settling to the 1st person that says yes regardless of their interest  Some departments in the Engineering school offer things like funds for all students in their 3rd year to purchase a new laptop. Adapting this or similar policies universally would be appreciated. Guaranteed funding beyond X years as set forth by the School, especially when the average is just slightly below X.   Disadvantages    As funds are rerouted into increased stipends, there may be    Decreased support for professional development (conferences, workshops, etc.) Decreased supplemental resources (rented compute nodes and hours, new lab equipment, etc.) Fewer graduate student and postdoc hires     Thank you all for your comments; it is all very much insightful. I'll continue to look out for new responses.


Can I use this third party charger for my Asus laptop?

I recently bought Asus X53E a few weeks ago and I have a third party charger which I bought a few months ago.  Can I use the third party charger on my laptop?  My Asus charger says  100-240V 1.5A INPUT 19V 3.42A OUTPUT  And then the third party does say the exact same words,  and I can plug the third party charger onto my laptop perfectly as well.  Here is the photo of the two chargers.


Does $$\sum_{n≥2}\frac{1}{n (\ln(\ln n))^a}$$ converge if a>1 ?  I already know that $$\sum_{n≥2}\frac{1}{n (\ln n)^a}$$ and $$\sum_{n≥2}\frac{1}{n \ln n  (\ln(\ln n))^a}$$ converge if a > 1.


I need help nesting this matrix list (debug)

def ones_in_corners(n):     '''     Creates an nxn matrix full of 0s, except the corners of the matrix     will have 1s in it.     eg. ones_in_corners(3) would give us     1 0 1     0 0 0     1 0 1     :param n: the size of the square matrix     :return:     '''     # setup a single row of n ' ' (space) chars     row = ['0'] * n     # now we will make the mat have n rows     mat = [row] * n     # the following four lines make it so only     # the corners of the matrix has 1s     mat[0][0] = '1'     mat[0][n-1] ='1'     mat[n-1][0] = '1'     mat[n-1][n-1] = '1'     return mat  print(ones_in_corners(3)) ''' output is [['1', '0', '1'], ['1', '0', '1'], ['1', '0', '1']] but I want it to be [['1', '0', '1'], ['0', '0', '0'], ['1', '0', '1']] '''


Can you control existing margins (inherent within the image file) of an image in LaTeX?

I inherited a lot of plots loaded into a LaTeX file. These plots are saved in .eps files with a lot of white margin on the top and bottom of the plot.  I would prefer not to have to manually go into all these figures and crop out all the white space.   Is it possible to remove (partially) the top and bottom margins of the image files using LaTeX?


Aperture and the understanding of how it works

So over black friday I bought this , which is the Nikon D3500 two kit lenses.  I was wondering, I keep hearing people talk about aperture and using F11-F16 but on those lenses that I have, all I can go up too is like F2.4-F6.3.  If I want to be able to get F16 aperture, do I need to purchase a better lens? Are there some recommended ones that won't break the bank on a amateur photographer?


String comparison failing when using "=="?

I am an extreme coding noob and I've just started. I designed a rock paper scissors game and can't figure out why it won't work. For some reason the user input isn't working in the if statement. Please take a look.      package com.youtube.njillatactics;      import javax.swing.JOptionPane;      public class RPS { public static void main(String args[]){     //start message     JOptionPane.showMessageDialog(null, "Welcome to Nick's rock paper scissors game!");     //get user input and convert to lower case     String userInput = JOptionPane.showInputDialog("Choose rock, paper, or scissors.").toLowerCase();     //generate random computer input     double computerInput = Math.random();     //match user input to converted computer input     JOptionPane.showMessageDialog(null, match(userInput, convert(computerInput))); } //convert random computer input into choice public static String convert(double x){     if(x < 0.33){         return "rock";     }else if(x < 0.66){         return "paper";     }else         return "scissors"; } //check to see who wins public static String match(String x,String y){     if(x == y){         return "Tie!";     }else     if(x == "rock"){         if(y == "paper"){             return "Computer wins!";         }else             return "User wins!";     }      if(x == "paper"){         if(y == "scissors"){             return "Computer wins!";         }else             return "User wins!";     }     if(x == "scissors"){         if(y == "rock"){             return "Computer wins!";         }else             return "User wins!";     }else         return x + ", " + y; } }


Getting "java.lang.NullPointerException" error which trying to call the a function to take screenshot in a test method on Selenium

I am new to the selenium automation world, Getting java.lang.NullPointerException error which trying to call the function to take a screenshot in a test method on Selenium. I am pretty sure I have missed initialize or return the driver somewhere. below is the code.  baseTest class where I am initializing the webdriver  public class baseTest {     public Properties objProp = new Properties();     FileInputStream readProp;         {         try {             readProp = new FileInputStream("C:\\Users\\kiran\\IdeaProjects\\SelProject2\\src\\test\\java\\appDetails.properties");             objProp.load(readProp);         } catch (FileNotFoundException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }     }      protected WebDriver driver;      @BeforeClass     public void beforeSuite()     {         System.setProperty(objProp.getProperty("browser"),objProp.getProperty("driverPath"));         driver = new ChromeDriver();         driver.manage().window().maximize();         driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);         driver.get(objProp.getProperty("URL"));     }      @AfterSuite     public void afterSuite()     {         if(null != driver)         {             driver.close();             driver.quit();         }     }      public WebDriver getDriver()     {         return driver;     } }   All my tests extends the baseTest function link shown below  public class loginFunction extends baseTest {      guruLoginPage objLogin;     guruHomePage objHome;     takeScreenshot objSS = new takeScreenshot(driver);     //readExcel readObj;       @Test     public void performLogin() throws IOException, InterruptedException {         objLogin = new guruLoginPage(driver);         String loginPageTitle = objLogin.getTitle();         Assert.assertTrue(loginPageTitle.contains("Demo Site"));          objSS.screenshot();          objLogin.loginAction(objProp.getProperty("appUsername"), objProp.getProperty("appPassword"));         Thread.sleep(2000);          objHome = new guruHomePage(driver);          Assert.assertTrue(objHome.validateLogin().contains("Manger Id : mngr242657"));         Thread.sleep(2000);         objSS.screenshot();     } }   when i write this piece of code in the loginfunction, it works fine, but when i am trying to optimize and put it in a separate class and call the method I am getting java.lang.NullPointerException error  public class takeScreenshot{      WebDriver driver;       public takeScreenshot(WebDriver driver)     {             this.driver=driver;             PageFactory.initElements(driver,this);     }      public void screenshot() throws IOException {         String fileSuffix = DateTime.now().toString("yyyy-dd-MM-HH-mm-ss");         TakesScreenshot ss = ((TakesScreenshot)this.driver);         File srcFile = ss.getScreenshotAs(OutputType.FILE);         FileUtils.copyFile(srcFile,new File("C:\\Users\\kiran\\IdeaProjects\\SelProject2\\src\\test\\java\\Screenshots\\"+fileSuffix+".jpg"));     } }


how to solve $ {\partial u \over \partial t} - k {\partial ^2 u \over \partial x^2} =0$

How do I solve the following PDE for it's general solution? $$ {\partial u \over \partial t} - k {\partial ^2 u \over \partial x^2} =0$$ How do I determine the general the solution of this equation will be $u(x, t) = X(x)T(t) $? I tried  but couldn't get it. My textbook only deals with particular solution using boundary condition.


Move and rotate one object to another C++ [3D]

I have two object, need attach 'TWO OBJECT' to 'ONE OBJECT'.  I have vectors 'angle' 'origin' of ONE and TWO objects.  I tried do "TWOOBJECT.origin += ONE.origin - ONE.oldorigin", this just attach coordinates, but not rotate with one object....


Sequence limit with complex numbers, where $ u_n=\Re(({\frac{1+i\sqrt{7}}{2}})^n) $

How do you prove :   $ \forall n \in \mathbb{N}$  if $ u_n=\Re(({\frac{1+i\sqrt{7}}{2}})^n) $  where  $\Re$  mean the real part of a complex number, that $$ \lim_{n\rightarrow +\infty}\left | u_n \right |=+\infty$$  $\left | u_n \right |$ is the modulus of $u_n$


Basic Java > can byte array function parameter by modified in a function call

According to my understanding, Java does not have pointer, so any function parameter can not be modified in a function call, say even a parameter value is modified inside a function call, but after the function call the parameter's value still keeps the previous value  Am I right?


Please help me with resolving HDD mounting error code

Error mounting /dev/sda5 at /media/highpana/OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda5" "/media/highpana/OS"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option. (udisks-error-quark, 0)


What is the difference between "retired out" and "retired not out" in cricket?

I have seen the terms on scoreboard like: "retired out" or "retired not out". What does it mean and what is the different between there?  Reference:   Mohammad Hafeez was retired out in ICC Champions Trophy Warm-up Matches, 2013 vs  Gordon Greenidge was retired not out in 5th Test vs .   Also I have seen "retired out" only on practice matches. Is there any case of "retired out" in international matches?


I have a PC with Ubuntu 20.04. This PC is behind a Squid proxy. I want to update it. I tried both graphic and cli commands but it is impossible. If I add proxy parameters to Network I can browse the Internet. The proxy is installed in a pfSense firewall. Thanks for help.


Which driver for AMD Radeon 530 graphics card

I have a notebook with an AMD Radeon 530 graphics card. I was trying to install a driver but I none of the drivers (amdgpu or AMD-GPU pro) seemed to support that graphics card. Anyhow on the AMD  it says it has Ubuntu support. Which driver should I install?


namedParameterjdbcTemplate giving nullpointer exception

I have been making a simple a program to add a row in the data base using jdbc and spring in a maven project I have made the project watching videos as I am new to spring and database.     * To change this license header, choose License Headers in Project  Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mariam.employee; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.springframework.jdbc.core.namedparam.SqlParameterSource; import org.springframework.stereotype.Repository; /**  * * @author shoaib kiani */ @Repository public class EmployeeDaoImpl implements EmployeeDao{  NamedParameterJdbcTemplate namedPJT; JdbcTemplate jt;  public SqlParameterSource getSqlP(Employee e) { MapSqlParameterSource m=new  MapSqlParameterSource();  m.addValue("id", e.getID()); m.addValue("FirstName",e.getFirstName()); m.addValue("LastName",e.getLastName()); return m;} @Override public void save(Employee e) { final String sql="INSERT INTO authors('FirstName','LastName') VALUE(?,? )";  namedPJT.update(sql , getSqlP(e)); System.out.println("Passed");    }  }   This is the exception:  Exception in thread "main" java.lang.NullPointerException at com.mariam.employee.EmployeeDaoImpl.save(EmployeeDaoImpl.java:38) at com.mariam.employee.Main.main(Main.java:22)


Sorry if this is the umpteenth post about references; I've read quite a few but can't seem to solve my problem, so here it goes. I want to reference articles by storing all article descriptions in a seperate file.  I have two files in a folder: references.bib and test.tex.   references.bib looks like this:    @article{fasshauer2011positive,   title={Positive definite kernels: past, present and future},   author={Fasshauer, Gregory E},   journal={Dolomite Research Notes on Approximation},   volume={4},   pages={21--63},   year={2011}   }   test.tex looks like this:  \documentclass{article}  \begin{document}  Please just be a nice citation: \cite{fasshauer2011positive}.  \newpage  \bibliography{references}  \bibliographystyle{ieeetr}  \end{document}   But this turns \cite{fasshauer2011positive} into [?] and makes me slightly angry. So who could help me? :D  Cheers.


I am creating lecture notes, and I want to use a few characters in the left-hand margin to denote:   Q a question for the students PROB a problem I work out DEMO a demonstration.   While \marginpar gives my desired effect in the right-hand margin, \reversemarginpar does not place the text in the left-hand margin but but simply left-justifies it.  How can I get text protruding into the left-hand margin?  \documentclass{article} \usepackage{marginnote} \setlength{\parindent}{0cm} % No indentations -- just to be sure \begin{document} Using marginpar.  \marginpar{Q:}How many $in^2$ in a $yd^2$?  Good, we see Q: on the right hand side. Now lets see if we can get it on the Left Hand Side (LHS) by using reversemarginnote.  \reversemarginpar{Q:}How many $in^2$ in a $yd^2$?  While it is on the LHS, it doesn't penetrate the margin.  Hopefully marginnote will come through.  \marginnote{Q:}How many $in^2$ in a $yd^2$? \end{document}


Hi I have a question: is there any easy way to extend only the bottom edges of an irregular model (such as in the screenshot) and create a flat base of the model to get the effect shown in the attached drawing? Thanks in advance for the advice!


How to undelete notes on iPhone "Notes" app?

iPhone has a default "Notes" app which allows us to store notes. Stored notes can be deleted by hitting the "Delete Note" button:    How do we recover a note that is accidentally deleted?  Is there anyway to undo the delete?


Why we cant use normal for loop to print javascript object?

I am learning JavaScript, so today I came across to know that to print or get object properties the for..in loop is used. but i got confuse here because I haven't seen the for..in loop before. so I encountered a query that why we cant use for loop in JavaScript to print the object property? and how does this for..in loop works? here's an example. let object1 = { name : 'someone', name2 : 'someone2', phno : 234568969 };  and to print this everyone suggests for(let key in object1) { console.log(key + "=" + object1[key]); }  and my question is how does this loop works, and why this loop for printing the properties.


I was checking my Movies & TV account and the posts I had downvoted when I noticed that one question appeared twice. At first I thought that it was a downvote on both the question and an answer but when expanding the information, it told me that both were on the question. I took a screenshot of the votes tab in :        This seems to be a bug in the system. Should it be fixed?


How should I setup separate MX records for a subdomain?

Let's say I have a domain that I run a web application on, for example cranketywidgets.com, and I'm using  for handling email for people working on that domain, for example, support@ cranketywidgets.com, jane@cranketywidgets.com, joe@cranketywidgets.com and so on.  Google's own mail services aren't always the best for sending automated reminder emails, comment notifications and so on, so the current solution I plan to pursue is to create a separate subdomain called mailer.cranketywidgets.com, run a mail server off it, and create a few accounts specifically for sending these kinds of emails.  What should the MX records and A records look like here for this?  I'm somewhat confused by the fact that MX records can be names, but that they must eventually resolve to an A record. What should the records look like here?  cranketywidgets.com - A record to actual server like 10.24.233.214  cranketywidgets.com - MX records for Google's email applications  mailer.cranketywidgets.com - MX name pointing to server's IP address  I would greatly appeciate some help on this - the answer seems like it'll be obvious, but email spam is a difficult problem to solve.


keyboard layout switching doesn't work in 13.10

Yesterday I upgraded my Ubuntu into 13.10. Now I can't use classical keyboard layout switching (Alt+Shift). I can't even change with settings:    New interface doesn't save my combination (Alt+Shift).  How I can change it?


Truncated Gaussian distribution interpretation

What is the interpretation/logic of this formula:     It's probability density function $f$, for $a<x<b$, is given by      $$ f(x;\mu,\sigma^2,a,b) = P(x|a<x<b) = \frac{p(x,  a<x<b)}{P(a<x<b)}=\frac{p(x)}{P(a<x<b)} \\  = \frac{\tfrac{1}{\sqrt{2\pi}\sigma} \exp\{-\tfrac{(x-\mu)^2}{2\sigma^2}\}}{\Phi(\tfrac{b-\mu}{\sigma})  -\Phi(\tfrac{a-\mu}{\sigma})} = \frac{\tfrac{1}{\sigma} \phi(\tfrac{x-\mu}{\sigma})}{\Phi(\tfrac{b-\mu}{\sigma})  -\Phi(\tfrac{a-\mu}{\sigma})} $$   EDIT: I was confused with what goes in the numerator and denominator and the rationale behind it in order to be able to explaint it to myself. I was reading about conditional probability P(B|A) formula and I was confused because I thought that numerator equals Probability of X being in the range [a, b] times probability of X given its in the range.   Since I am learning this all by myself there are lots of things I am confused with and have no one to ask, except you guys here. As a result, this was the cause of a vague question at first.


What are the steps needed to create new keyboard layout on ubuntu?

The keyboard I am trying to create has a lot of Unicode and looks like this:   Being unsuccessful with the following tutorial:    (There are a few errors in the tutorial, and it uses imprecise language such as "Cutting" things instead of "Deleting" them, and it is formatted strangely)   I was wondering if anybody would be so kind to provide a better tutorial with step by step instructions?


Why doesn't Ubuntu remove old kernels automatically?

I wonder why Ubuntu won't remove the old kernels automatically.   Surely nothing is perfect and things can go wrong, so in case a update doesn't work, having a backup kernel maybe great. But it would also suffice to just keep the latest  kernel and the one before the latest and delete all the older ones.  Is there a reason why Ubuntu won't do this automatically?.


In Fantastic Beasts: The Crimes of Grindelwald Dumbledore teaches DADA. But from the books we always heard about him as of a Transfiguration teacher (say, in Tom Riddle's days). It is stated in the movie that Dumbledore was prohibited to teach DADA by the Ministry, though the limitations seemed to be canceled at the end of the movie together with the removal of his handcuffs (not completely clear about the teaching though). The strange thing is, however, that Dumbledore was a Transfiguration teacher and even the Head of Transfiguration Department in Hogwarts before Newt's days, as we learn from Pottermore:  Under the guidance of her [McGonagall] inspirational Transfiguration teacher, Albus Dumbledore, she had managed to become an Animagus She [McGonagall] sent an owl to Hogwarts, asking whether she might be considered for a teaching post. The owl returned within hours, offering her a job in the Transfiguration department, under Head of Department, Albus Dumbledore.  That is of course if we accept that Minerva McGonagall in the movie is the same Minerva we know. So it seems that he taught Transfiguration, then for some reason switched to DADA and then to Transfiguration again. While it is possible in general, is there any explanation for the reasons?


Sum of n terms and infinite terms where term is $\frac{n}{a^n}$

$\frac{n}{a^n}=T_n$  So $\frac1a+\frac2{a^2}+...\infty=S_\infty$  Multiply $S_\infty$ by $\frac1a$.  $\frac1aS_\infty=\frac1{a^2}+\frac2{a^3}+...\infty$ $S_\infty-\frac1aS_\infty=\frac1a+\frac1{a^2}+...\infty$  $S_\infty=\frac{\frac1a}{1-\frac1a}\frac{a}{a-1}$  $S_\infty=\frac a{(a-1)^2}$  Is it right? And I cant quite figure out for the limited sum (till $n$). Please show how.  Edit: $x$ doesn't exist in the interval $[-1,1]$


Can't default date to CURRENT_TIMESTAMP in MySQL 5.5

I am not able to set Current_timestamp as default value. My Mysql version is 5.5.47.  Query is  ALTER TABLE `downloads` ADD `date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ;     While it is working fine on my local DB with mysql V5.6.56.


Im pretty new to c# comming from Obj-C and I have a class that has an Instanitializer function that takes some arguments and one of them is the main class Program. Now what Im trying to achieve is to pass this from Program to my new class object.  class Program {     static void Main(string[] args) {         Group grp = new Group(this, ...); // Error: Keyword 'this' is not valid in a static property, static method, or static field initializer          } }  class Group {     public Group(Program prog, some arguments...) {         // Stuff     } }   In Obj-C I couldve done this with self but here its not working and it doesnt seem to work to call a public function from a static method. Thanks beforehand.


Can't use my sprint key and jump at the same time

Ok, so I do a lot of sprint jumping in minecraft because I pvp a ton everyday and every once in a while it won't allow me to do both at the same time. I set ctrl to my sprint key so when I want to sprint I hold ctrl. If I hold ctrl and space it won't let me jump. If I double tap w I can sprint and jump at the same time. Does anybody know why it does this? It's not something to do with my keyboard because it's just fine. It's done this a couple of times and it's quite annoying.


How to create individual dll of asp.net mvc project pages?

I am working on ASP.NET MVC and I need to create separate dll of all pages in project.  Let me explain what should I need. Suppose I have create controller like:   home.cs  index.cs  test1.cs test2.cs    and view :   home.cshtml  index.cshtml  test1.cshtml test2.cshtml    then I need to create dll like home.dll and index.dll separately of every page because of if i have publish my project after changes in any one controller that time i just need to update the changeable controller dll only.  I don't know it is possible or not but if anyone know then please suggest me ?  Thanks in advance.


$F$ is a finite field of size $s$. Prove that if $s=2^m$ for some $m>0$, then all elements of F have a square root.

$F$ is a finite field of size $s$. Prove that if $s=2^m$ for some $m>0$, then all elements of $F$ have a square root.   (Hint: For some integer $i$, ($1\leq i \leq s-1$), $i$ is odd if and only if $(s-1)+i$ is even.)  My attempt:  If $s=2^m$, then $s$ is even. This means $s-1$ is odd. So the multiplicative group has an odd number of elements.  Let $x$ be the primitive element of $F$ such that: $F/\{0\}=\{x, x^2, x^3, ... , x^{s-1}\}$.  I tried to arrive at a contradiction assuming there existed an element without a square root, but I couldn't think of anything. Also I'm not quite sure how to use the hint.


Why doesn't the fp package work inside tabulars and how do I get around that?

I want to add sums while writing tabular (tabularx) lines. For this I have written a command to emit individual lines, but all the \FPxxx commands fail to work from within the tabular environment. I boiled this down to this MRE: \documentclass{article}  \usepackage{fp}  \FPset\x{2} \FPadd\x\x{7}  \begin{document} \Huge  x = \x  \begin{tabular}{l} \FPadd\x\x{100}text \end{tabular}  x = \x\\(should be 109)  \end{document}  This results in the following output:  As you can see, the first \FPadd worked, but the second one inside the environment fails. Why and how can I work around that?


Looking for a book set on a generationship

The book I'm looking for is not Ender's Game or Ready Player One.   This book is based on a generationship that has been travelling for several years. At least 2 generations were born on the ship. The nature of the ship fosters cooperation rather than competition to the point where even in gym class the students are reprimanded for finishing first.  Classes are taught in VR pods with teacher commentary. One student, instead of getting the lesson finds himself in a VR role playing game. He meets with other young adults his age and they are given a quest.   I read this book between 10 and 15 years ago, but while I remember the plot, the title and the author escapes me. I would really appreciate your help in identifying the book. Thank you!


Tips for getting really good answers on SO

The way the askers write questions is a factor in determining how good the answers we get are. Obviously, if you ask a clear, direct question it is easier for a someone to answer you.  But, sometimes I've done that and my questions have still been overlooked.  I've noticed some question-posting methods that aren't exactly obvious, but do help me get better answers.    Some tricks I've learned...   Even if my question is very complicated, I try to write a short question.  People get turned off by longer questions, probably because they think its not worth their time (relative to other questions with equal reputation potential).  After I get some traffic and votes on my question, and maybe some comments like "Can you post the code?" or "Clarify this..." I might post more, but by then I am already getting attention to my question.  So, in summary, even if I know the answer requires a long question, I don't make it long until I've already gotten people to look at it. I use more generic tags when possible.  People are more likely to have c# and linq as a favorite tag, than MethodCallExpression, and I tend to get more views if I use at least one or two general purpose tags along with my more specific tags. I've noticed that if I give my question the performance tag, then SO heavy-weights like Marc Gravell, Jon Skeet and Eric Lippert are more likely to answer my question (especially if I use it in conjunction with a C# tag).  Since having this realization, if I can think of a way to rephrase my question to sound like it is related to C# performance, I will word it as such and tag it accordingly.   "Be polite. SO Users HATE when people be impatient, rude or impolite." - Benny   So,  Does anyone else have any tips for getting better answers and question-recognition on SO?  I think it would be really helpful if everyone contributed their own observations and techniques here.  P.S. This question is probably too long.


I have installed Ubuntu 14.04 on my system. Initially Wi-fi successfully connected  to a networ.  E.g.: "Mario"  After a while, I deleted "Mario" from edit connections. Then I tried to connect to the same Wi-fi again but it's not working. Why? How can I solve the problem?


Can you install the desktop OS using sd card?

Trying to install Ubuntu OS on a new hard drive. Can it be done from my sd card?


What is the intuition behind beta distribution?

Disclaimer: I'm not a statistician but a software engineer. Most of my knowledge in statistics comes from self-education, thus I still have many gaps in understanding concepts that may seem trivial for other people here. So I would be very thankful if answers included less specific terms and more explanation. Imagine that you are talking to your grandma :)  I'm trying to grasp the nature of beta distribution – what it should be used for and how to interpret it in each case. If we were talking about, say, normal distribution, one could describe it as arrival time of a train: most frequently it arrives just in time, a bit less frequently it is 1 minute earlier or 1 minute late and very rarely it arrives with difference of 20 minutes from the mean. Uniform distribution describes, in particular, chance of each ticket in lottery. Binomial distribution may be described with coin flips and so on. But is there such intuitive explanation of beta distribution?    Let's say, $\alpha=.99$ and $\beta=.5$. Beta distribution $B(\alpha, \beta)$ in this case looks like this (generated in R):     But what does it actually mean? Y-axis is obviously a probability density, but what is on the X-axis?   I would highly appreciate any explanation, either with this example or any other.


I've been getting frustrated with not knowing why this happen so basically my header file doesnt want to get my function definitions from my cpp file. I know the functions work cause I can add them to my header file itself and it works fine but it just wont work from my cpp. main.cpp:  #include "header.h"  using namespace std;  int main() {     StackType<int> myStack;           return 0; }  header.cpp #include "header.h"  using namespace std; template<class Type> StackType<Type>::StackType() {}  header.h using namespace std;  template<class Type> class StackType { public:      StackType();  }  undefined reference to `StackType::StackType()'|


tmux - split panes and ssh to multiple servers via script

I would like to automate the following steps that I am currently performing manually.  In a terminal, I perform these steps:   start tmux split into 10 panes tile the panes navigate to each pane and ssh into a server, repeat 10 times synchronize the panes   Is there a way to script all this, including the 10 different ssh login commands?


I'm trying to rig and animate a Hulk object I found off the internet. But, when I try posing the armature, the hair texture doesn't move with the rig. I'm brand new to Blender so please walk me through a solution step by step.  Here's a picture of the problem:   I've uploaded my blender file and assets . Thanks in advance!


My UK standard visit visa application was refused for lack of intention to leave the country

I applied for a UK standard visit visa to the UK. I have lived legally in the UK for about 6 years while studying. I applied to extend my stay but was refused, so I appealed under article 8 of the European Convention on Human Rights, which failed. I returned to Pakistan voluntarily.  Now, after 3 years in Pakistan, I applied for a visa, but it was refused on the grounds that I would not leave the UK and that my circumstances in Pakistan are not strong enough for me to want to return.  During my earlier visa extension request appeal, the judge had stated that I have strong ties with Pakistan and I should return to my country. That is contradictory; the judge said I had strong ties but, today, the Entry Clearance Officer said that my situation is not strong, despite bank statement, family agricultural land, and my savings and accounts. What should I do?


Prove that a number is divisible by 3 iff the sum of its digits is divisible by 3

I'm trying to teach myself some number theory. In my textbook, this proof is given:  Example (2.3.1) Show that an integer is divisible by 3 if and only if the sum of its digits is a multiple of 3. Let $n=a_0a_1\ldots a_k$ be the decimal representation of an integer $n$. Thus $n=a_k+a_{k-1}10+a_{k-2}10^2+\cdots+a_010^k$ where $0\le a_i<10$ The key observation is that $10\equiv1\pmod3$, i.e., $[10]=[1]$. Hence $[10^i]=[10]^i=[1]$, i.e., $10^i\equiv1\pmod 3$. The assertion is an immediate consequence of this congruence.  I don't understand the last statement. Why does it follow from that congruence?


I'm trying to design a BLDC motor controller rated to run a 200kW electric motor, 240v dc ~833A. Looking at MOSFETs I've found a TO264 n-channel which is rated for 500V 100A. How are the legs not going to immediately act like fusible links and vaporise?  Edit: I've found a more suited MOSFET [IXFB210N30P3][1] which is 300v 210A Rds of 14.5mOhm continuous power of 1890W.  [  Edit Dos: it appears, in the data sheet, that there is an external lead current limit of 160A and that the chip capability is 210A


Why can't we multiply matrices entrywise?

Why can't we multiply corresponding elements like addition is done?  Is there a specific reason why it won't be significant?   By definition, we have to multiply a row by columns.  Why such a definition other than multiplying corresponding elements?  Please ignore my ignorance. I had nowhere to ask. :(


How to backup broken screen phone when USB debugging IS NOT enabled?

I dropped my Samsung S3. Now I cannot see anything, just a white screen with purple, black, and green lines. Before it blanked out, it wasn't recognizing my finger touch. Any idea on how or what to repair? I want to save my phone so I can backup all my data.   Screen has a small crack on the lower right part of the screen:     the colors are all messed up can't press anything can be turned on and can hear the starting sound can still receive calls and text USB debugging WAS NOT ENABLED


Can Debian identify rarely used packages?

I'd like to find a tool that could tell me which Debian packages on my system have been rarely or never used, perhaps by looking at file lists and access times.  This is to find candidates for deletion from my nearly full hard drive.  I'm not very well informed about the rich ecosystem of desktop GUI tools (I use aptitude); does anyone know if one of those tools, or any other tool, can identify how recently a package has been used?


HISTFILE env var unset within programs. Can I access it in any way?

When I try to access the "HISTFILE" env var within a program, it isn't there  $ echo $HISTFILE /Users/drewgross/.bash_history $ python Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ['HISTFILE'] Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__     raise KeyError(key) KeyError: 'HISTFILE'   But if I set it directly, it is:   $ HISTFILE=wat python Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ['HISTFILE'] 'wat'   It seems to be hidden for some reason. Why is that? Is there any way to access this var within my programs?


The limit for $x\to 0$ of $x^3\sin (x)$ exists

Give an epsilon-delta proof that the limit for $x\to 0$ of $x^3\sin(x)$ exists.  If I take a really big number for $x$ it doesn't seem to have a limit...


How to express $\cos\left(\frac{\theta}{3}\right)$ in terms of $\cos(\theta)$?

There are plenty of formulae for half-angles, double angles, but I haven't manage to find nor derive an expression for $\cos\left(\frac{\theta}{3}\right)$ in terms of $\cos(\theta)$. How would one proceed?  Extending the question, is there a general way to express $\cos\left(\frac{\theta}{k}\right)$ in terms of $\cos(\theta)$? (with $k\in\mathbb{N}$).


How do I know when to use "the" versus "a" versus "∅" as an article on a noun?

With proper nouns, we don't use the except for river names, newspaper names, etc.  I want to know why we use the with White House. I mean, under which rule can we categorize it? What could other similar examples for that rule be?


How to choose a good batch size for a powerful CPU

I am training a deep neural networks for self driving cars using Adam optimization, and I wonder how can I find a standard batch size value , currently I am using the value 1 and I can see that my resources are not fully used (CPU and RAM) ? Thank you


Convergence of an alternating series : $ \sum_{n\geq 1} \frac{(-1)^n|\sin n|}{n}$

Study the convergence of $$\displaystyle \sum_{n\geq 1} \frac{(-1)^n|\sin n|}{n}.$$   I am stuck with this series, we need probably some measure of irrationally of $\pi$, unfortunately I am unfamiliar with this. So here is my attempt :  Let $f(x) = \sum \frac{|\sin{n}|}{n} x^n, |x| < 1$  It's not difficult to compute the Fourier series of $|\sin(x)|$ :  $$ \displaystyle|\sin(x)|=\frac{2}{\pi}-\frac{4}{\pi}\sum_{n=1}^{+\infty}\frac{\cos(2nx)}{4n^2-1} $$  Then Fubini's theorem () works very well (because the previous series converges absolutely at $x$ fixed ) and all calculations made, we find that for all $x\in( -1,1)$:  $$ \displaystyle f(x)=\frac{2}{\pi}\sum_{n=1}^{+\infty}\frac{x^n}{n}-\frac{4}{\pi}\sum_{p=1}^{+\infty}\frac{x^2-2x\cos(p)}{(4p^2-1)(x^2-2x\cos(p)+1)} $$  However, the second sum I have not been able to show the convergence. I feel the series diverge because the following series $$ \displaystyle\sum\frac{1}{p^2\sin^2\left(\frac{p}{2}\right)} $$  diverge because  $0$ is an accumulation point of $\displaystyle (n\sin(n))$ sequence.  Any ideas (for the original series) ?


c++: why can we declare a variable in case of switch

int i; i = 2; switch(i) {     case 1:          int k;         break;     case 2:         k = 1;         cout<<k<<endl;         break; }   I don't know why the code above works.  Here, we can never go into case 1 but why we can use k in case 2?


Unable to mount a Windows partition in write mode

I recently installed ubuntu(<12 hours) and I was able to mount my ntfs partitioned drives (orginally from Win 10)in ubuntu using this command  sudo mount -t ntfs-3g -o ro /dev/sda3 /media/win   When I try the same command with read permissions   sudo mount -t ntfs-3g -o rw /dev/sda3 /media/win   I get the following error     The disk contains an unclean file system (0, 0). Metadata kept in   Windows cache, refused to mount. Failed to mount '/dev/sda3':   Operation not permitted The NTFS partition is in an unsafe state.   Please resume and shutdown Windows fully (no hibernation or fast   restarting), or mount the volume read-only with the 'ro' mount option.   but I have shut down Windows 10 the normal way. What is the reason for this error and how can I solve it?  Part 2:  When mounting the drives in read only mode, I had to do that everytime I booted into the OS. Is there any way I can automate that(like create a shell script that will do the mounting for me and runs everytime the OS is booted).


Can I get a 1 day extension from the FRRO in India on a 1 year Indian business visa for a 1-day overstay due to flight time change

I have a 1 year Indian business visa which expires 3rd December. My international departing flight was at 2am on the 4, but has now been changed by 4 hours to 6am on the 4th meaning I will not be able to check into the flight and pass through immigration early enough to make it before midnight on the 3rd. I would now leave through immigration one day late.  Can I apply for a 1-day extension to allow for this situation without any repercussions for future business visa applications.  PS I am trying to cancel the flight through the airline, but in the meantime want to know my options.


Is there any way that Stack Overflow can add a Github login to their site?


Given sequence converges to $c \in \overline{\mathbb{R}}$ extended reals, prove limit of average = c

Problem: Given $a_n \to c \in \overline{\mathbb{R}}$, prove that  $\displaystyle \lim_{n \to \infty} \frac{a_1 + a_2 + \cdots + a_n}{n} = c$.  I have read many of the related posts on this topic:         These all attempt to split the summation in the numerator like so: $\sum_{i=1}^N + \sum_{i=N}^n$ and then bring in the c, so that eacn term is $\frac{(a_1 - c) + (a_2 - c)}{n}$.  However, all of these previous proofs assume that the sequence is convergent, which means that $\frac{(a_1 - c) + (a_2 - c)}{n} = 0$. In my case, the sequence converges to a number in the extended reals and can thus diverge to $-\infty$ or $\infty$, meaning $c$ could be $-\infty$ or $\infty$, and we can't assume $\lim_{n \to \infty}\frac{(a_1 - c) + (a_2 - c)}{n} = 0$.  Are the methods in the above links still applicable? If not, how should I approach this proof?


He seemed oblivious to the crowds of photographers snapping away. (what's away here?)  Why do we need 'away' here and what does 'away' mean here?


ssh clients hang after authentication and must be killed

After installing a new router I'm experiencing some very strange problems using SSH clients.  The ssh command hangs after successful authentication. Here's the last output of the client's detailed debug output.  debug2: channel 0: request shell confirm 1 debug3: send packet: type 98 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768   Here's the debug1:  debug1: Entering interactive session. debug1: pledge: network debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug1: Sending environment. debug1: Sending env LANG = en_GB.UTF-8   I cannot Ctrl-C to get out of this; the client must be killed, e.g. pkill ssh  Strangely, if on the same Ubuntu client machine I fire up a VirtualBox running Debian, I am able to SSH to the same server(s) from within the vm without a problem. I would have thought that this would have also failed since it's essentially the same client sending the same traffic.  Everything points to the router or the ISP as these are the things that have changed, but I've never come across this behaviour before.  Most posts here seem to focus on dodgy shell config, but nothing there has changed, and I am able to use the SSH if I route it through a 4G dongle, for instance, so it's not that.  I'm flummoxed, can you help?  FWIW, the client machine is on Ubuntu 17.10, using OpenSSH_7.5p1 Ubuntu-10ubuntu0.1, OpenSSL 1.0.2g  1 Mar 2016. The router is a TP-Link VR2600 router using a FTTC line provided by PlusNet.


How do animals with fur get enough sunlight to produce vitamin-D?

How is vitamin D synthesized in animals with fur; how do the cells get enough sunlight? If vitamin-D cannot be synthesized because of limited sunlight reaching the skin, do these animals have to obtain the vitamin from the diet or are there any alternate mechanisms of synthesis?


What are the exact commands I need to use to remove the kitchen from my house in Falkreath? I can't figure it out.


Why is magnetic field vector perpendicular to magnetic force vector?

So recently in physics class, we learned about the magnetism .   One of them states that the index finger points in the direction of the velocity of a particle, the middle finger points in the direction of the magnetic field, and the thumb points in the direction of the magnetic force.  I'm curious why the magnetic field vector is perpendicular to the magnetic force vector.


Find JavaScript handler connected to a button's click event

During some code investigating, I found a html submit button like this:  <button class="btn btn-primary">Create new aicraft</button>   I know somewhere there is javascript code that handeles the button click event. How can I find that javascript code?


How to hide administrator account or root in Login screen?

I used Ubuntu 12.04 and I want to only user account appear on the Login screen without guest and administrator account. My administrator account cannot view to everybody when their Login.  "greeter-hide-user=true" this command all account disappear. What command in user account only in Login screen?


I can add, change and remove the nick names of my Dwarves (or any other playable and currently played race) easily; that's one of the functions of the unit screen. This visually replaces the first name of the Dwarf in this list and a few other places, but their actual first name stays and is being used in places like combat reports and so on.  I'd like to be able to rename the Dwarf in question instead, both first and last name (the last name so that I can have children inherit the last names of their parents, as strange as it may sound to a real Dwarf). I couldn't find anything in the game itself and the most commonly used DF admin tool - Dwarf Therapist - only allows changing in the nick name.  Is there a way to do it? Ideally in-game, but using external programs is fine too, especially if I don't have to shut down the game to do so.


Using only axiom of specification, can we create all possible subsets of any set?  For finite sets, it’s true I guess. But for infinite sets, what can we say? If it were true of infinite sets, we’d have not needed the axiom of powers.  But we do need that. Does that imply that statements of first-order logic are not enough to create (via specification) all the subsets of infinite sets?


How can I put a function call on a button that pops up a submit form?

How can I put fbq('track', 'CompleteRegistration'); on a button that pops up a submit form? <form role="form" id="contactForm" data-toggle="validator" class="shake">

Name*

<input type="text" id="name" required />

Mobile Number*

<input type="tel" id="contact" required />

E-mail

<input type="email" id="email" placeholder="(Optional!)" />

   <input type="submit" id="form-submit" value="Send Now" class="submit" />


I had question regarding ccTLDs, lets say, I have domain = domain.com but I found some one is copying my posts and paste at his domains at the same time, which seems to ccTLDs like domain.co.uk, domain.in (these are not my domains)  Additionally, we both have implemented the canonical tag, then how Google will determine which was the original post? Or to whom the content credit will be awarded?


I read a make_tempory_file demonstration in APUE, and confused about:     char  good_template[] = "/tmp/dirXXXXXX"; /* right way */   char  *bad_template = "/tmp/dirXXXXXX"; /* wrong way*/   void make_temp(char *template);  int main() {     char  good_template[] = "/tmp/dirXXXXXX"; /* right way */     char  *bad_template = "/tmp/dirXXXXXX"; /* wrong way*/      printf("trying to create first temp file...\n");     make_temp(good_template);     printf("trying to create second temp file...\n");     make_temp(bad_template);     exit(0); }  void make_temp(char *template) {     int fd;     struct stat sbuf;      if ((fd = mkstemp(template)) < 0)          err_sys("can’t create temp file");     printf("temp name = %s\n", template);     close(fd);     if (stat(template, &sbuf) < 0)     {         if (errno == ENOENT)              printf("file doesn’t exist\n");         else             err_sys("stat failed");     }     else     {         printf("file exists\n");         unlink(template);     } }   The instruction explain it:     The difference in behavior comes from the way the two template strings are declared. For the ﬁrst template, the name is allocated on the stack, because we use an array variable. For the second name, however, we use a pointer. In this case, only the memory for the pointer itself resides on the stack; the compiler arranges for the string to be stored in the read-only segment of the executable. When the mkstemp function tries to modify the string, a segmentation fault occurs.   I tried to understand the statement but stuck with stack  Does it refer to the stack where the arrow point to?


"Walk in" or "Walk into"? How to decide whether to use "in" or "into"?

"You can't just walk in/into the class without permission". What is the word to go by in this statement?


Explain this to a middle / high school student

I have come across the proof that all natural numbers to infinity when summed equals -1 / 12 and can not quite grasp this. Could anyone find a way to explain this in an easy understandable way for someone still in school (for that one kid who says he gets this and he's still in school, good for you).  Here's the video I saw :   Thanks!


What is the connection between divisors and line bundles?

I'm somewhat new to algebraic geometry.  I'm currently studying algebraic curves primarily over closed fields, (for future discussion let's just call such a curve C).  I was taught to think of things like $\rm{Pic}^{0}(C)$ as a set of equivalence classes of divisors on C. From what I gather, these are usually called Weil Divisors. Some literature seems to take the approach that these classes on $\rm{Pic}^{0}(C)$ can be thought of instead as a line bundle.  For example, if I let $\epsilon$ be a two-torsion point on C, I can think of $[\epsilon]$ as an order two line bundle. My question is what the connection is.  How can I intuitively see that this must be true?


Is there any software to map button 4 and 5 of mouse in macos catalina to a keyboard stroke?

I want to assign ctrl + c (copy) to button 4, I have previously done it in windows with a software called mouse manager but can't find any such software for macos.


decomposing a factor group into a direct sum of cyclic groups

Let $\mathbb{Z}_n ^*$ be the set of all units in $\mathbb{Z}_n$  and $(\mathbb{Z}_n ^*)^2$ = $\{ a^2 | a \in \mathbb{Z}_n ^*\} $  Then,  decompose the factor group  $\mathbb{Z}_n ^* / (\mathbb{Z}_n ^*)^2$  1.when $n$ is an odd prime  2.when $n$ is a product of two distinct odd primes $p, q$  I solved the first as following: In $\mathbb{Z}_p$, since $x^2=(p-x)^2$ holds, the order of $(\mathbb{Z}_n ^*)^2$ is exactly the half of that of $\mathbb{Z}_n ^*$.  Thus, the answer is $\mathbb{Z}_2$.  However the second is more complicated. I didn't know that. Please help me to solve this.


Please take a look at this image   Is there's anyway I can add another field called "Font Awesome Icon" for the user to write the icon class and the output should be like this:


What did the black monoliths do in 2001: A Space Odyssey?

What were the black monoliths? My initial thoughts were that they came from a more advanced species in order to assist man with advancement, shortly after it came to the primates, they discovered they could use bones as weapons.


Leaving the USA after 90days ESTA runs out

Im (german citizen) currently staying in the US with the 90 days esta.  Is it sufficient to leave the US and stay in mexico or canada (I can stay there for 180 days) or do I have to leave north america altogether?


Many hotkeys delayed for >20s, Ubuntu 16.04

I've upgrade to 16.04.1 from 14.04. Everything seems to be working, but some of the Unity hotkeys don't react for more than 20s, i.e. Ctrl-Alt-t opens a terminal after 20-30s, Ctrl-Alt-Del logs me out after >15s without any feedback window.  Other hotkeys like the Calculator or Mail Button work without problems. I tried to map the 'Launch terminal' to the Calculator button, but it was not faster. I mapped the gnome-calculator to another button, and it had then the delay, too.  A completely fresh test-user account has the same problems. The guest users hotkeys work without delay. I reinstalled unity and ubuntu desktop components without any change.  The virtual terminals Ctrl-Alt-F1 works without any delays.   My computer is a laptop with mainly Intel components (Core i5 Sandy bridge, with Intel HD3000 graphics).  I'm out of ideas now. I don't even know where to look further. I went through the troubleshooting guide at , without luck.


Is it possible to create password protected folders on the desktop?  Other people use my computer from time to time and it would be useful to have this facility.


What is the difference between installing Ubuntu on a USB device and a laptop hardisk?

Now, I have a laptop with Windows 8. For various reasons, I want to install Ubuntu that I can carry with me on the various PCs I work with. The same installation so that I don't have to constantly take care of installing new things and dependencies.   Can I do a full installation of Ubuntu in a USB? Can I install softwares and other things in the USB itself so that I can boot it anywhere I want? What is the difference of this installation from full installation on a laptop harddisk? What features will and will not work with the USB option?   Thanks!


Is it permitted to look for a job while visiting the US under the Visa Waiver Program?

We already have . (Actually it's unresolved with two possibly conflicting answers and no solid reference). And we have . (Currently on hold as a duplicate of the former but maybe it's different).   But what about for people who don't require a visa to enter the US but can visit on the Visa Waiver Program? Are such people allowed to job hunt in America?


Sometimes, backquoted tt text is rendered with an extra space and sometimes not.  Have an itemized list:   A variable A is just rendered without surrounding spaces B variable B here are some mysterious spaces around the B, but otherwise OK  Program code with A and B - rendered as regular text, but indented, This seems to be a feature according to    Another par     Nicely rendered after an hline


Does a led determine itself current load?

If I use a power source rated at 2.5v and 1 amps for power a standard red led , what should happen to led? Does it get burn for the high current value or not?


How do closures have access to the outer function's variables even after the outer function returns?

function celebrityName (firstName) {      var nameIntro = "This celebrity is ";      function lastName (theLastName) {         return nameIntro + firstName + " " + theLastName;     }     return lastName; } var mjName = celebrityName ("Michael"); mjName ("Jackson");    // This celebrity is Michael Jackson


How to control 12V from 5V using transistor?

i have used BC547 Transistor to stepup from 4.6v but I can't able to draw above 5v from collector, I have given input of 4.6v to base and emitter to ground and collector to output load. but load doesn't activate. Can anyone help me out from this problem?


How do I make higher enchants on my weapons, tools, and armor?

I've been looking around trying to find a way to make my enchants higher on my weapons, tools, and armor. I know it's possible in vanilla Minecraft, but haven't found anything. Can someone please give me a pre-written command for a good set of tools, weapons, and armor? However, please don't make it too overpowered, and use enchantments useful to the item except for silk touch.


I can add moderator only tag via a suggested edit, and I got no diamond!

Look at  edit. I didn't really expect that I would able to suggest adding  tag, but I could!  How is it possible? (seems that usual users can add mod-only tags without moderator help!)  Edit  Oded removed  back :-(


I have made a free version of an app (not in the app store yet) with ad banners and some features.  But I want to make a paid version of this app as well with no ads and more features.  Do I duplicate the app and make 2 separate copies of the app (free and paid) and submit them separately to the app store or is there a way of coding the paid version in to the current free version  I think it may have something to do with targets but i'm not sure  help would be appreciated


I have had a Gmail account for years. Now I have bought a domain which I set up with Google Apps and want to use a couple of email addresses for one Gmail account.  I have email addresses like:  contact@mydomain.com //setup by Google Apps mymail@gmail.com support@mydomain.com   I want to use one email account to send/receive those multiple emails. When a email comes to contact@mydomain.com and I reply to the receiving end the mail should still be received from contact@mydomain.com.


How can I get citations for my self-published ebook?

A couple of colleagues and I were thinking about publishing a book in engineering. I have heard repeatedly that people who go with a traditional publisher don't get any royalties, they transfer the copyrights, and on top of that, the book ends up being sold for a lot of money (which is something we're against as people from developing countries don't have access to them). Thus, after a short discussion we all agreed that going through the traditional means is no longer necessary. We're all skilled in LaTeX so we don't need the services that publishers usually provide for formatting the book. As a matter of fact, we're not planning on making any profit either, so we're very excited about the opportunity to provide the book as an open electronic document.   The main question we have is how do we make sure that  people can cite our book and that we have a way to count the citations?


Comparing JavaScript dates while ignoring time of day

var currentDate = Thu Aug 14 2014 05:30:00 GMT+0530 (IST); // This is dateTimeobj  var deptDate = Thu Aug 14 2014 14:23:24 GMT+0530 (IST); // This is dateTimeobj  alert(currentDate == deptDate); // false   How can I compare these two dates, while ignoring the time portion?


I'm making a game using PHP with MySQL and I need an UPDATE query where the fields names could change from one user to another.  My code is:  $upd = $sql->prepare("UPDATE empire_users SET :p = :p + :p2 WHERE id = :id"); $upd->execute(array(     ':p' => "p".$type,     ':p2' => 10,     ':id' => $_SESSION["id"] ));   In my database, users have 3 columns : pwood, pstone, pwheat, and $type could only be "wheat", "stone", or "wood".  I want to update the selected field (which depends of $type) to increase by p2 (here 10).


How to show that $7\mid a^2+b^2$ implies $7\mid a$ and $7\mid b$?

For my proof I distinguished the two possible cases which derive from $7 \mid a^2+b^2$:   Case one: $7\mid a^2$ and $7 \mid b^2$ Case two (which (I think) is not possible): $7$ does not divide $a^2$ and $7$ does not divide $b^2$, but their sum.  I've shown that case $1$ implies $7\mid a$ and $7\mid b$, so I just have show that case 2 isn't possible - I'll be happy for any input.  MfG, Karl


I have faced the following sentence:  "The work leverages features unique to a particular platform."  As far as I know an adjective is used before a noun but how can we say "features unique"?  I think "unique features" is correct. But this sentence is written in a valid text and the probability of making a mistake by authors is very low!!!


What does the "yours" in "yours sincerely" mean?

"Yours" is usually a possessive pronoun with an implicit noun. What is the implicit noun in the case of "yours sincerely"?


Two balls, with masses $m_1$ and $m_2$ are falling from the heigh $h$. All the collisions are perfectly elastic. Do not consider the size of the balls. $m_1 < m_2$ and lighter ball is on the top.    What heights $h_1$ and $h_2$ will the balls jump to?     And so I have many equation like: $V(-m_1+m_2)=m_1v_1+m_2v_2$, $(m_1+m_2)gh=m_1gh_1+m_2gh_2$ and $\frac12 V^2(m_1+m_2)= \frac12 m_1 v_1^2 + \frac12 m_2 v_2^2$ (Where $V$ is velocity of both balls right before collision. I consider lighter ball is falling down the same velocity as heavier ball is flying up, so I put opposite sign in the equation of momentum. $v_1$ is a velocity of lighter ball after collision and $v_2$ velocity of heavier ball). But I have no idea how to get $h_1$ and $h_2$ independent of each other.  Please don't describe me "you have to do this and this" and "think about what happen when...". I need to see the progress. I need to see these equations and what's happening.


I accidentally removed my Sticky Note on Windows 7 and now I've been trying to get it back.   I searched at %AppData%\Microsoft\Sticky Notes\StickyNotes.snt and could see some of the text that was in my Sticky Note.  How can I get back all of the text? I used signs like * and | in the note, will this cause any trouble?


Transparency/Masking : See through an Outer Sphere and see Inner Sphere in true colours

Summary  I want to be able to look through an outer sphere - BlueSphere, and see another sphere inside - RedSphere  This is the target goal I'm trying to get to:    Issues  Here is what I have tried, and the problems I'm having:  1)  If I set the spheres transparency alpha values to 0.75    - then the inner RedSphere does not take on its "true" colour and shows as blue instead of red.    2)  If I set the spheres transparency alpha to lower values of 0.5   the spheres lose their crispness which I don't want and the inner RedSphere still does not take on its "true" colour   { can't paste a 3rd sample - need more reputation points }   Background  I am animating two spheres, one inside the other, superimposed about a common origin.   At the start:   the outer BlueSphere is at full radius the inner RedSphere is at zero radius  As time progresses:   the outer BlueSphere shrinks the inner RedSphere expands    So what happens is the expanding inner RedSphere "bursts through" the contracting outer BlueSphere.  So the effect I am looking for is to see the RedSphere appearing as Red as it expands inside the BlueSphere.  Thinking/Logic  So I figure that transparency is not the way to go.  The transparency settings are behaving correctly - as one would expect, in a "real world" situation - the inner sphere (Red) takes on the colour of the outer sphere (Blue) seeing as we are looking through a (transparent) Blue material.  Any ideas on what approach to take ?  It's almost as if I should be "removing" the part of the BlueSphere that the RedSphere "occupies" so that we see the RedSphere directly without any BlueSphere between us and the RedSphere.  Some sort of masking ??  Advice, comments, suggestions welcome. Thanks.  [requested edit]  Using internal render.  [ My End Solution - Thanks for the guidance ]  Right, so here is the way I got to my final result:  1) I created python drivers for each sphere   I used the frame_current scene property for input Passed that to a scripted expression which used sin() as the scaling factor Used some if / elif conditionals against frame_current to make the spheres visible only when I needed them   2) I created 3 layers   On Layer-1 - background   I put RedSphere AND BlueSphere with drivers driver_Outer_RedSphere() & driver_Outer_BlueSphere() limiting the display of each sphere to show only where each radius > halfway  On Layer-2 - foreground-1   I put RedSphere ONLY with driver driver_Inner_RedSphere() limiting the display of RedSphere to show only where its radius <= halfway  On Layer-3 - foreground-2   I put BlueSphere ONLY with driver driver_Inner_BlueSphere() limiting the display of BlueSphere to show only where its radius <= halfway    3) I rendered each layer to .PNG sequence [RGBA] (alpha channel for transparency)   Render Layer-1 - background   background : [sky]  Render Layer-2 - foreground-1   background : [transparent]  Render Layer-3 - foreground-2   background : [transparent]    4) I brought all 3 sequences into the Video Sequence Editor   Strip-1 - background   blend [cross] opacity [1.00]  Strip-2 - foreground-1   blend [alpha-over] opacity [0.50]  Strip-3 - foreground-2   blend [alpha-over] opacity [0.50]    5) Rendered the 3 layer final sequence to H.264  So the "aha moment" struck me right at the end when I was in the Video Sequence Editor:   "Don't try to make the Outer Spheres transparent, and see through to the Inner Spheres" "Instead overlay the Inner Spheres over the Outer Spheres, and limit the opacity of the Inner Sphere overlay"     So now I see my Inner Spheres in their true colours, but the colours are muted due to the .75 opacity - and hence it gives the visual impression that the Inner Spheres are in fact inside the Outer Spheres.  Thanks all for the input - it got me going in the right direction.


Query an XDocument for elements by name at any depth

I have an XDocument object. I want to query for elements with a particular name at any depth using LINQ. When I use Descendants("element_name"), I only get elements that are direct children of the current level. I'm looking for the equivalent of "//element_name" in XPath...should I just use XPath, or is there a way to do it using LINQ methods?


Mathematics and behavior with floats vs ints

This is driving me mad...  Of all the years I've been using python, this is just now starting to present itself.  How I managed to dodge it up until now is beyond me.  If you open a python idle and try this equation...  4/32*100   You'll get '0' as an answer.  Now try the same equation using floats....  4.0/32.0*100.0   (or just the first number 4.0/32*100)   You now get an actual percentage.  WTF!?  Is this some kind of python error!?  Even a calculation can do the equation and spit out a percentage.  So why can't python see a 4 as 4.0.  Better question...  What is the interpreter actually seeing if it's not seeing a 4(4.0)?  Someone please clear this up so I can feel professional with python again (lol).


I am trying to install:  sudo apt-get install pass  from . But I get the error: sudo apt-get install pass Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pass  How to fix this error? When I try: apt policy pass N: Unable to locate package pass


Android app chokes on per-site meta profiles

Steps to reproduce:    Go to a per-site meta. Find any post. Touch the user that posted it. See something like this (click to enlarge):           As you can see, it says "Stack Overflow" as the site, and shows my SO rep and badges, but it shows my Meta.Code Golf posts.


Browse local copies of websites when possible (Firefox with slow internet connection)

I am on a slow internet connection. I would like to use Firefox to load local copies of websites when it exists and is relatively recent (say one week).   An example usage would be browsing a lot of Wikipedia webpages, coming back to the same ones on a regular basis.  I would like to avoid having to manually specify to save single pages on each website I visit (which is what I guess I would need to do with a plugin like ). And I would also like to avoid having to switch between "work offline" or "work online".   Any suggestions?


Limit to one instance and communication between instances

I'm making my own imageviewer and want to limit to one instance and also be able to tell the instance already running to open the files attempted opened by the new instance.  I found code on this site to limit the program to one instance, but I haven't been able to find a solution for communication.


How to answer questions in a conference talk that I should know the answer to, but don't?

In a few days, I will be giving my first conference talk. I have only spent less than a year in the field, and the talk will be attended by several well-known researches, who are familiar with all of my advisor's work and all of the other literature in the area as well. Of the people in the room, it is probably them who will be listening most intently -- but it is also them who I feel the least well-equipped to answer questions from.  The questions I am most worried about will be about related work. Take it as a given that:   I clearly should know the answer to the question, because the related work is very relevant at a surface-level. Indeed, my advisor is familiar with the work and has told me to try to be prepared for any questions about it. But I don't know the answer, because I failed to sufficiently prepare. Or, to make some excuses, maybe I am relatively new to the field and have not had a chance to read every paper in full detail. Of course I have tried some to read through this work, and I have gotten from my advisor some idea of how it compares, but I am not nearly so familiar as I should be.   It seems likely that a poor response to such a question will make me come across as incompetent, unfamiliar with related work in the field, and even unfamiliar with the context of our own work. Similarly, this may damage the reputation of our research itself. How can I best respond to such a question, so as to minimize the damage?


Use Outgoing SSH to receive incoming SSH

My ISP does not allow me to have a static IP address. As such I am unable to remotely SSH in my home machine. Is there a way I could SSH from my home machine to a server and SSH into the server from my remote laptop and bridge the two connections?  Cheers!


After installing, Addon should be upgraded to 2.8x

I have zero knowledge of programming. The problem I am facing is when installing addon it is showing to upgrade to 2.8x version.  Here's the part of the code. where one of the warnings is showed.  def register():     bpy.utils.register_module(__name__)     bpy.types.INFO_MT_file_import.append(import_bob_menu)     bpy.types.INFO_MT_file_export.append(export_bob_menu)     bpy.types.INFO_MT_file_import.append(import_cob_menu)     bpy.types.INFO_MT_file_export.append(export_cob_menu)     bpy.types.INFO_MT_file_import.append(import_leveldefs)     bpy.types.INFO_MT_file_export.append(export_leveldefs)   def unregister():     bpy.utils.unregister_module(__name__)     bpy.types.INFO_MT_file_import.remove(import_bob_menu)     bpy.types.INFO_MT_file_export.remove(export_bob_menu)     bpy.types.INFO_MT_file_import.remove(import_cob_menu)     bpy.types.INFO_MT_file_export.remove(export_cob_menu)     bpy.types.INFO_MT_file_import.remove(import_leveldefs)     bpy.types.INFO_MT_file_export.remove(export_leveldefs) ```


Removing small "salt & pepper" polygons from layer in QGIS?

I have a map made up of multiple polygons, with a few hundred thousand points very small polygons on within it.  I need the larger polygons, but not the points small polygons.  How do I select and remove all the points small polygons, while preserving the larger polygons?  (I obviously do not want to do this manually - there are a few too many points for that!)  I'm totally new to QGIS, and I've Googled extensivey with no luck.  Probably because I'm unsure what the correct terminology to use in a Google search is!  The files I am using are a .dbf, .prj, .qpj, .shp and .shx.  I'm simply dragging the .shp file on to QGIS, and the map appears as one layer.  Basically a map of the UK divided into regions (which I want) and covered in points (which do not want).     This is what it looks like up close.  I did a dissolve to see if they'd go in to the surrounding layer, with no luck:


How do I find the Ebony Warrior in Skyrim? I have been searching for him for ages, and a friend of mine said he met him at level 20 on the Skyrim Legendary Edition.  I still don't know where he is, and my friend said he normally finds him in Windhelm. Is this true, or is he a random occurrence?  I'm playing on the Xbox 360.


How do I calculate the running covariance of 2 data sets?

I am writing a program that is supposed to do the linear regression of the union of two data sets, s1 and s2. I thought that if I could compute the variance and covariance of (s1 U s2) I would have the linear regression. I only have the running data for the s1 and s2. What I mean is that for each set I only have:  size , meanx , meany , variancex , covariancexy  Mean of (s1 U s2) is easy. I found a formula for calculating the variance of (s1 U s2)using the variances of the sebsets. But I can't find anything for covariance of (s1 U s2) using the covariances of s1 and s2. Is there a way to do that?  Thanks in advance.  Soroor


Is it natural to say "he explained the reason why he was late"? I suspect that it doesn't make sense.  But I reckon "That is the reason why he's sick" is acceptable with "the reason".  Could it be that the crucial difference lies in the verb we select? The verb explain has as its object a situation, a problem, etc., not a reason.   What do you think?


Find the limit of a sequence with factorial in it

I would like to know to find the limit of this sequence:  $${n^n\over n!}$$  It diverges, I know, but I don't know how to come to this conclusion.


I can't disable the Microsoft Antimalware service (MsMpSvc/MsMpEng.exe). I tried using services.msc, but the Startup Type drop-down is grayed out and I can't change it to Disabled nor stop the service. I also tried msconfig, but when I click Apply, the service gets enabled again. I even tried net stop msmpsvc and got system error 5 (access denied).  Any suggestions?


Possible value of the complex analytic function on the open unit disc to itself.

Let $f$ be an analytic  function,$f:\Bbb D\to\Bbb D$, where $\Bbb D$ is open unit disc with center at origin and of radius $1$. If $f(0)=0, f’(0)=0$, then possible value of $f(\frac{1}{2})$ can be $1.$ $\frac{1}{4}.$ $2.$ $\frac{-1}{4}.$ $3.$ $\frac{1}{3}.$ $4.$ $\frac{-1}{3}.$ I tried by taking $f(z)=\pm z^2$ so that first two options are correct one . But I don’t know exact theory of question . Seems to be a question of Schwartz lemma, but unable to apply . Please help . Thank you .


are all the numbers in Euclid proof prime numbers?

in Euclid for infinite primes we define $p_0= 2, p_n = p_0p_1...p_{n-1}+1$ that way we get a series so that for every $n \in \mathbb{N}$ we get that $p_n$ is divided by a prime not one of $ p_0,...,p_{n-1} $.   my question is: does for every $n \in \mathbb{N}$ we get that  $ p_n $  is a prime itself ?    i will be grateful if someone will give me a counterexample or a proof for this statement.


How to update Flipkart Digiflip Pro XT911 to latest version of android

I have Flipkart Digiflip Pro XT911 Tab, which have old version of android like Marshmlow, Now I am looking for a way to update it to latest android version, How can I do that.  Thank you


Does classical electrodynamics break momentum conservation in some cases?

Particularly in the case of non divergence free currents does the Lorenz force break newton's 3rd law?  This question is purely theoretical, it's only about what the theory says. So no experimental arguments.  Of course em fields can carry energy_momentum and if energy or momentum go in the fields that's not breaking conservation laws.  I am asking weather there are theoretical examples with an assumption of a non divergence free current density where when accounting the whole system momentum is not conserved in general electrodynamics


I'm on Minecraft Pocket Edition 0.7.6, and even though it says I'm logged in on home screen, when I enter the app Realms doesn't come up.


Symbology effects on polygons in QGIS 3.4.10

I am wanting to represent polygons as dashed lines without filling the interior of the polygon. But there is the common edge between polygons, and so the visual effect of the lines vary. Depending on the zoom level (scale) there are places that appear as dashed lines, in other places that appear as continuous lines. How could I eliminate these visual effects in QGIS 3.4.10?  Figure 01    Figure 02    I tried the solutions for this question:    I tried the geometry generator option and also tried to create a virtual layer with the st_boundary option, but in both cases double lines are generated in the contacts of the polygons. I didn't find any command that generates an SQL without duplicate lines in the contacts.  I also tried using the "force right hand-rule orientation" option but I saw no result.


Can you nominate which are the steps which I need to follow in order to get a basic grasp into the field of forecasting? which are the "must to know things"?


The thought randomly occurred to me that a circular particle accelerator would have to exert a lot of force in order to maintain the curvature of the trajectory.  Many accelerators move particles at fully relativistic speeds, and I want to ask how that affects things.  Why does this matter?  Well, if I understand correctly, a particle in the LHC moving at $0.999 c$ would be dramatically more difficult to keep moving in the circle than a particle moving at $0.99 c$.  Reading Wikipedia, I was delighted to find a fully specified problem within a single paragraph.       The LHC lies in a tunnel 27 kilometres (17 mi) in circumference, as deep as 175 metres (574 ft) beneath the Franco-Swiss border near Geneva, Switzerland. Its synchrotron is designed to collide opposing particle beams of either protons at up to 7 teraelectronvolts (7 TeV or 1.12 microjoules) per nucleon, or lead nuclei at an energy of 574 TeV (92.0 µJ) per nucleus (2.76 TeV per nucleon).   I can (or Google can)  the proton case to come to $0.999999991 c$.  In order to correctly calculate the force that the LHC must exert on it, do I need to start from $F=dp/dt$, or can I get by with $v^2/r$ times the relativistic mass?  I'm not quite sure how to do the former.  Question: Say I have 2 protons, both moving so fast they're going almost the speed of light but one has twice the energy of the other.  They move side-by-side and enter either an electric or magnetic field that causes them to accelerate perpendicular to the velocity vector.  Is the radius of curvature mostly the same for the two, or is it different by a major factor (like 0.5x, 1x, or 2x)?  I want to read some comments from people who understand these physics well.  The particles beyond a certain energy are all going almost exactly the same speed.  Is it still okay for me to say they have the same "acceleration" too?  They just happen to have absurdly huge inertia compared to the same particle at a more modest fraction of the speed of light.  Is this the correct perspective?


I want to find out what is$$2007^{2008}\pmod{1000}$$.  I used  website to find that the answer is $801$, but I'm not sure how they got there.  My attempt:   $2007^{2008}\pmod{1000}\equiv7^{2008}\pmod{1000}\equiv2401^{502}\pmod{1000}\equiv401^{502}\pmod{1000}\equiv160801^{251}\pmod{1000}\equiv801^{251}\pmod{1000}$  I pretty much gave up after this because it was getting too tedious and I didn't feel like this was the right approach. I got the $801$ but it has a power of $251$ which I don't know how to get rid of. Is there a quicker way to do this? If so, how? Thanks in advance!


For which $a\in \mathbb{R}$ is $f(x,y) = \frac{xy^a}{x^2+y^2}$ with $f(0,0)=0$ continuous?

My function is defined as: $$f(x,y) =  \begin{cases}        \dfrac{xy^a}{x^2+y^2}&(x,y) \neq (0,0)\\      \ 0&(x,y) = (0,0)    \end{cases} $$   I want to find out for which $a\in \mathbb{R}$ the function is continuous. I am not quite sure how to solve something like this. I know that for $a=1$ the function is definitely not continuous, which can be checked, since $(\frac1n,\frac1n)$ converges to $(0,0)$ but $f(\frac1n,\frac1n)$ does not. Now if I want $f$ to be steady in $(0,0)$, I figured that this is the case if $a>1$. But this is where I get stuck. How to I prove or check, if for $a>1$ the rest of the function is continuous as well? Any help is greatly appreciated!


What's the difference between "it excites me" and "that excites me"?

I know the difference between it and that, but what does that mean in the sentence below? Does it mean the same as it?     I reach for the phone,   I don't know who to call.   That excites me.   Starving for days,   I've been told it's a phase,   But they don't see.   That I'm holding on to something that I don't seem to catch   Now I've been following the streams along,   But nothing never last.      Source:


How do I generate a UUID in SAP UI5 code?

I know how to do that in node.js, with npm-managed libraries like uuid. But what's a decent way to do this in browser-based SAP UI5 JavaScript code?


Am I designing my campaign setting to be too specific?

I'm a first time DM (3.5e), and, being a passionate writer, I decided to create the entire campaign and campaign setting myself. It's been good fun, and I have about 12 pages of (elaborated upon) ideas for it. However, I'm starting to worry that I'm becoming too specific. My original plan was to get several dozen pages of ideas for my campaign setting (easy enough), then compile it into a formal "specification" that would basically establish the whole state of the world. (Originally I had planned to write it out normally, but I've been thinking now that I'm gonna use Obsidian Portal or something like that. Not too important.) Following this idea, I set some backstory for the world politics in general, and for the powerful nation that'll be the setting for most of the campaign. I decided it was a good time to draw a map of the continent, so I did. I ended up with about eight countries, including the main one. Within the main country, I drew in fifty districts. Then I look at it again.  At that point I realized that I would have to go through and name fifty districts.  Now, it's not impossible. But I've never done this before, and it doesn't seem necessary. I know that the PCs will need to know the names of three districts within an hour of play, and that's it. The others could come later. Do I need to worry about them now?  This is a bit more general, as well. What level of specificity should I write it at this point, when I haven't even had a game with my players yet? As a first-time DM, I really can't foresee what I'll need. Any suggestions?


David’s friendly demeanour, brilliant sense of humour and warmth, "make" or "makes" you feel right at home.

Should I use make or makes in the following sentence?      David’s friendly demeanour, brilliant sense of humour and warmth, make you feel right at home.     I say make, but my friend says makes.


Trying to solve $(p\rightarrow(q\rightarrow r))\wedge\neg r\vdash p\rightarrow\neg q$ with natural deduction (fitch style)

I'm trying to solve the logical problem above, but can't seem to figure it out. Any help would be greatly appreciated!


If $$\text {I}=\int_0^{\infty} \frac {x}{1+e^x} \, dx $$ and $\sum _{i=1}^n \frac {1}{k^2}=\frac {\pi^2}{6} $  I am feeling that this integral need not be solved analytically but should be converted into sum so that we can use the next information given. The only step I have taken  is $$\text {I}=\lim_{n\to \infty} \int _0^n \frac {x}{1+\sum_{i=0}^n \frac {x^n}{n!}}\, dx$$


I've come across something a bit odd.   I'm trying to parse a string with a time in ( e.g. "12:00", "13:30") into two separate integers.  I tried this:  timeString = "12:00" [hours, minutes] = timeString.split(":").map(parseInt)   But minutes comes out as NaN  I thought there was a problem with parseInt taking in "00", but when I tried parseInt("00") in the console I get 0.  Can someone shed some light on this?