how to make a dvd which can be played in a dvd player

Is there any application in which is programmed to make dvds which can be played in a dvd player   i recently saw a dvd in which all the videos were present in .VOB format so do i need any extra plugins to convert it into mp4 format and are mp4 formats complatible with DVD players   if any one thinks this question does'nt suits this site then i recommend them to migrate this question to that site


How do I run python code in ubuntu 14.04

I'm learning python so I may get my foot in the door for a programming career.  I'm using the gedit text editor to write the code, however I don't know how to execute the code on ubuntu.  If anyone is able to help, I would greatly appreciate as much help as I'm able to get.


Let $b_n$ decrease monotonically to zero, prove $\sum b_nz^n$ converges for $|z|\leq 1$ and $z\neq 1$

Let $b_n$ be a sequence which decreases monotonically to zero, prove $\sum b_nz^n$ converges for $|z|\leq 1$ and $z\neq 1$.  So I was able to prove it converges on the open unit disk in the complex plane, but except for a few special points on the boundary, such as $-1$ and $i$, where I was able to use the alternating series test, I can't seem to prove it converges in general on the boundary minus $z=1$.  I feel I have to somehow use the fact that all the numbers on the unit circle except $z=1$ rotate around and around as you raise them to higher and higher powers, thus you get the real and imaginary parts of your series to alternate between sets of positive and negative terms, but in a very irregular way for most initial angles.  I tried to simplify the problem by breaking the series into its real and imaginary parts, and then trying to prove they each converge separately, but I still can't prove either converges:  $$\sum_{n=0}^{\infty}b_ne^{n\theta i} = \sum_{n=0}^{\infty}b_n\cos(n\theta) +i\sum_{n=0}^{\infty}b_n\sin(n\theta).$$


public void clickmea(View view)        {           EditText ed1 = (EditText) findViewById(R.id.editText4);                 EditText ed2 = (EditText) findViewById(R.id.editText5);                  String s1=ed1.getText().toString();                 String s2=ed2.getText().toString();               if ((s1 == "abc") && (s2 == "abc"))                     {                       Log.i("msg","successful");                       }                 else                    {                            Log.i("msg","unsuccessful");                  }                }   when I run above code it displays unsuccessful msg in the log even if I type abc in both text boxes.


Let $E:=Q(t)$ the field of rational function over $Q$. Consider the following morphisms:  $$ \begin{split}     & a_1: f(x) \to f(x) \\    & a_2: f(x) \to f(1/x) \\    & a_3: f(x) \to f(1-x) \\    & a_4: f(x) \to f(1/(1-x)) \\    & a_5: f(x) \to f(x/(x-1)) \\    & a_6: f(x) \to f((x-1)/x) \end{split}$$  I have shown theese are automorphisms of $E$ and they form a subgroup of Aut($E$) with the usual composition product.     Let's consider $F_0$ the set of elements of $E$ that are fixed by every $a_i$. Show  that $[E:F_0] \ge 6$   What I thought is the opposite. The six automorphisms form a group $G$ of automorphisms of $E$. $F_0$ is by definition Inv($G$), so thanks to Artin's lemma shoudn't $[E:F_0]$ be less or equal to $|G| = 6$?


How do I get textures to show in render? All answers on google refer to buttons and options i simply dont have

I'm trying to add a couple of textures to my scene. One on the sphere and one on the plane in the background. Top right viewing window is 'render' by the way.  I've assigned the texture in edit mode for both.   I've read every tutorial for this I can find and they either end at 'click assign' or go on to talk about options i simply dont have (presumably old version of blender?).  Can anyone tell me what my missing step is here.   (edit:) I assigned the textures by going into 'edit mode' instead of object mode. Clicked on the 'material' button on the right (in picture). Clicked on color and selected 'image texture', chose my png file. The Preview displays correctly (pictured). Clicked on 'Assign' (in between the material lists and the preview). As you can see in the render window, the rectangle plane is showing as black and the sphere is a solid grey instead of their textures.   (edit2:) moonboots got it. i hadnt unwrapped the objects. a instruction suspiciously missing from all the tutorials i read. if anyone else stumbles on this you go into edit mode > mesh > uv unwrap > unwrap.


Why can't you flip a mirror upside down?


Can I install ubuntu on my desktop? If so, which version is more suitable?

My desktop specification is:   intel(R)Core(TM)2 Duo cpu   E7200 @ 2.53Ghz   1.99 GB RAM     I would like to know if my system is eligible for installing ubuntu operating system


I want to track a single non-stationary real valued variable that increases over time using a Kalman filter. However, I don't know the expected measurement/process/ error covariance apriori.   Is it a bit of an overkill to use a Kalman filter? I had hoped it would do a better job than guessing appropriate parameters for a moving average. However, after playing around with a couple of , it seems to be quite sensitive to incorrect measurement/process covariance assumptions.


Ubuntu dock icons show as black and white, it doesn't look right

My Ubuntu Looks Like This:     Why are the icons showing up as black and white?


Can't remove Windows 10 Keyboard Language

I can't remove a keyboard language and sometimes it changes with no reason, but I can't find any place where it's shown to be removed.


How can I install ubuntu alongside windows 10?

I created a 30GB partition from my C drive. I want to install ubuntu in that partition but in the installation process am not getting the option to install ubuntu alongside windows. When I click on something else the free space I partitioned is saying unusable. How can I Fix this?


Acceptability of 'not possible' for master thesis research

I am currently working on my (Computer Science) master thesis, and have been doing so now for about 5-6 months. The default time for thesis work at my university is about 9 months. Aspects such as literature review and 'planning' were all approved and went very smoothly.  Slowly I am realizing that the method I have planned to develop is simply not going to work. To be a bit more clear: I have thought of a model to solve a problem that isn't currently solved, and have found that my model doesn't improve on any of the exisiting 'attempted' models nor does it contribute anything 'useful' to the industry other than 'this model doesn't work.'  My question being: is it acceptable for the conclusion of a master thesis aiming to implement a new model for a problem to be 'doesn't work?'  I am worried sick that my supervisor or anyone evaluating the work would dismiss it, since of all three research questions I have not been able to make a single one work and have concluded bit-by-bit that it's not possible to implement this model effectively.  Is it acceptable to conclude a master thesis with 'my method doesn't work?' Will it be a problem if I just present my work and conclude with 'no success?'


House floors I can feel the cat walk across while sitting in a chair

I wrote earlier I can feel the cat walk across the floor-- while sitting in the sofa chair this has increased over the a short period of time.  The cat weighs 7 lbs.  This is the only house I have ever lived in that I have had this problem.  What is wrong with this house??


java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader in a Spring app

I am trying to make a Spring Helloworld application, but I get the following exception:   Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorld' defined in class path resource [spring.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at com.sdnext.dineshonjava.tutorial.SpringJavaApp.main(SpringJavaApp.java:11)   Here are my Maven dependencies :   The SpringFactoriesLoader class is obviously missing from the package, so what should I do? I tried to change the version of the spring-core dependency to  3.2.2, but I get an error in the pom.xml saying Missing artifact org.springframework:spring-core:jar:3.2.2  In my spring.xml configuration file I have declared the following bean :   <bean class="com.sdnext.dineshonjava.tutorial.HelloWorld" id="helloWorld">    <property name="message" value="Hello World!">     I also have the class HelloWorld in that package.  I am thinking that maybe there is a version conflict somewhere, but how can I figure out where is the problem?


In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics.


What is this side menu called that can be found in many multi-touch apps, and where does it originate from?

It can be found for example in the YouTube and Facebook app.


For every $g\in G$ there exists an $h\in G$ such that $g = h^3$

Let G be a finite group whose order is not divisible by $3$. Show that for every $g\in G$ there exists an $h\in G$ such that $g = h^3$.


Prove that $ \sqrt{n(n+1)(n+2)(n+3)+1} $ is always a natural number

$n$ is a natural number. I’ve tried to turn this problem to this: Prove that: $n(n+1)(n+2)(n+3)+1 $is always a perfect square. So: $$n(n+1)(n+2)(n+3)+1 =x^{2}$$ And i’ve expanded the whole equation but it didn’t help me a lot.


Convert list into list of grouped strings

I would like to create a list of lists with an input list, BUT! using the following rule: To assign how many strings could I add to every list inside the main list. In this moment I found the following code to be partially useful: def extractDigits(lst):      res = []      for el in lst:          sub = el.split(', ')          res.append(sub)             return(res)           When I apply it: # Execution:  lst = ['01', '02', '03', '04', '05', '06', '07', '08', '09']  print(extractDigits(lst))   >>> [['01'], ['02'], ['03'], ['04'], ['05'], ['06'], ['07'], ['08'], ['09']]   But I would like to group the quantity of strings arbitrarily, for example: # Execution:     print(extractDigits(lst, 3))  # groups of 3  >>> [['01', '02', '03'], ['04', '05', '06'], ['07', '08', '09']]


Can I select a large random prime using this procedure?

Say I want a random 1024-bit prime $p$.  The obviously-correct way to do this is select a random 1024-bit number and test its primality with the usual well-known tests.  But suppose instead that I do this:   select random odd 1024-bit number $n$ if $n$ is prime, return $n$ $n \leftarrow n+2$ goto 2   (This approach allows faster selection of primes via sieving.)  Since primes are not uniformly distributed on the number line, it would seem that this algorithm prefers primes that lie after long runs of composites.  Take a piece of the number line around $2^{1024}$ with x denoting a prime:     ---x-x----------------------------x------------------------x---x   Clearly our algorithm above is much more likely to find the 3rd prime above than to find the 2nd one.  Question: Is this a problem?


I typed sudo su in the terminal, and it changed to root without asking for a password. I also tried typing sudo apt-get upgrade and it didn't ask for a password either. When I installed Unity (1 hr ago) it asked for a password with the usual [sudo] password for proc-daemon: . In case it is my /etc/sudoers, I have posted it here (without comments): root    ALL=(ALL:ALL) ALL %admin ALL=(ALL) ALL %sudo   ALL=(ALL:ALL) ALL #includedir /etc/sudoers.d  As you can see, nowhere is there proc-daemon ALL=(ALL:ALL) NOPASSWD:ALL. Why is this happening? I have XUbuntu 15.10 with Unity. EDIT: As requested in a comment, sudo -l outputted: Matching Defaults entries for proc-daemon on Exitron2000: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:        /sbin\:/bin  User proc-daemon may run the following commands on Exitron2000: (ALL : ALL) ALL  For some reason, sudo -l did ask for a password. EDIT 2: sudo -k made it go back to normal.


From the nosy neighbor department:   I want what they have!    Can we see vote counts in the iOS app too?


Could not upload file after a jQuery submit form

I was looking earlier for a way to load a page after a submit and I found that:   The solution is what I expect   $('#create').submit(function() { // catch the form's submit event $.ajax({ // create an AJAX call...     data: $(this).serialize(), // get the form data     type: $(this).attr('method'), // GET or POST     url: $(this).attr('action'), // the file to call     success: function(response) { // on success..         $('#created').html(response); // update the DIV     } }); return false; // cancel original event to prevent form submitting });   But now, I can't upload anything. This is my upload page:  <form method="post" enctype="multipart/form-data" action="../scripts/Test_masse/choix.php" id='create'> <input type="file" name="fichier">
 <input type="checkbox" name="norme" value="boolean" checked>Conforme aux normes
 <input type="checkbox" name="header" value="boolean" checked>Comporte une en-tête
 <input type="submit" name="upload" value="Uploader">
 </form>   And in my choix.php I have      if(isset($_POST['upload'])){     $content_dir = 'upload/';     $tmp_file = $_FILES['fichier']['tmp_name'];     if(!is_uploaded_file($tmp_file)){         exit("Le fichier est introuvable"); //file not found     }     $type_file = $_FILES['fichier']['type'];     if(strstr($type_file, 'application/vnd.ms-excel')==FALSE AND strstr($type_file, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')==FALSE){         exit("Le fichier n'est pas sous format xls ou xlsx"); //not a xls or xlsx file     }     $name_file = $_FILES['fichier']['name'];     if(!move_uploaded_file($tmp_file, $content_dir . $name_file)){         exit("Impossible de copier le fichier dans $content_dir"); //can't move to upload     } echo "Le fichier a bien été chargé"; //file successfully uploaded }   and other lines. So the problem is when I add this script in my upload page, I don't have those output telling me that the file is uploaded or not and my 'upload' folder is empty.  Thanks


Can $\le$ be used insted of < in the definition of continuity?

A common definition of a continuous map $T:M_1\to M_2$ is that for every $x\in M_1$ and every $\epsilon>0$ there exists a $\delta >0$ such that for all $y$ in $M_1$ $$d_1(x,y)<\delta \implies d_2(T(x),T(y))<\epsilon,$$ i.e. we use a strict inequality. Now in a proof it reads that $T$ is continuous if for every $x\in M_1$ and every $\epsilon>0$ there is a $\delta>0$ such that $$\|Tx-Ty\|\le\epsilon\ \mbox{for all $y$ in $M_1$ satisfying } \|x-y\|\le \delta.$$  Here the norm is given by the metric. Is it correct to use $\le$ instead of the strict inequality <, and can one somehow prove the equality of these definitions? Or is this obviously the same condition?  Thanks in advance!


How to get Database name of a specific Database in a stored procedure.


A.   Prove three distinct complex numbers $z_1,z_2,z_3$ lie on a straight line iff     $\bar{z_1}z_2+\bar{z_2}z_3+\bar{z_3}z_1=r$ which $r$ is a real number.   B.    Prove three distinct complex numbers $z_1,z_2,z_3$ lie on a straight line iff there are non-zero $\lambda_1,\lambda_2,\lambda_3$ such that $\lambda_1+\lambda_2+\lambda_3=0$ and $\lambda_1z_1+\lambda_2z_2+\lambda_3z_3=0$    I already knew one condition is $z_1-z_2=r(z_2-z_3)$ for some real number . But don't know how to infer these two conditions. Any hints would be helpful.


How do I set the timezone for Google Drive from Google Apps?

It appears that I have to proactively select the timezone I'm in to Google Drive so that they display correctly. Is there a way I can push this setting to all users within the organization?


Find all $x \in (-1, +\infty)$ such that $(x^2 + 4x + 3)^x + (2x + 4)^x = (x^2 + 4x + 5)^x$.  What I have done so far was a substitution $y = x + 2$ which results in a nicer form of the equation:   $(y - 1)^{y - 2}(y + 1)^{y - 2} + 2^{y - 2}y^{y - 2} = (y^2 + 1)^{y - 2}$ and $y > 1$, which can then be rewritten as:  $$ \left( \frac{y^2 + 1}{2y} \right)^{y - 2} - \left( \frac{y^2 - 1}{2y} \right)^{y - 2} = 1 $$ Also, my intuition is that $y = 4$ is the unique solution and initially I wanted to prove that this function of $y$ is injective, but it didn't work either.  Do you have any suggestion on how I can continue?


I came across the following question and it is confusing me.  I'm completely new to cryptography, so please excuse the beginners question.     "Having just completed a course in Cryptography, Tom and Jerry start a   new  business to manufacture and market cryptography products. Tom   designs an encryption algorithm $E_k(m)$ which produces a ciphertext upon   encrypting message m with a key k and keeps the algorithm a secret,   but the length of $E_k(m)$ is made public. Then Jerry enthusiastically   advises Tom to increase the security by  constructing $(E_k(m)\oplus m) \Vert (E_k(m)\oplus 1111…11)$ as the final ciphertext.       Here $ \vert\vert $ is the concatenation symbol and $\oplus$ is the XOR operator.       Is this a good scheme?"   Initially at first glance I can see that the new algorithm is more secure, but I couldn't actually get any ciphertext from the equation. Does that make it secure? or does it make it useless because there isn't any ciphertext to decrypt? OR is there ciphertext and I have just tackled it the wrong way?  I am probably going to kick myself, I'm probably missing the entire point.  I really appreciate any help!


How to merge multiple PDF files into a single file?

Is there any software or methods available to merge multiple PDF files into a single file?


Is it possible to install Windows OS to plug and play storage devices such as external hard drives, HDD enclosures (with SATA hard drives), USB flashdrives and the likes? What OS's? And if it's possible, can I boot on it after the installation/formatting?  I've read someone has tried this already using Windows XP but failed since XP reinitializes all attached USB devices before loading OS, thus disabling the External HDD that is attached via USB port.  What about other Windows OS: on Windows 7 or 8.... or Windows 10?  I'm asking this because I'm planning to create a portable OS. When I'm at my house, when I go to my grandmother's, or to a friend's place: I just simple plug that portable storage device, change the boot priority, and turn on the system and ta-da! I will only see one environment every time.


I want to know what kind of font is this :    Thanks.


Modular exponentiation by repeated squaring

I came upon an interesting way to relatively quickly compute modular exponentiation with large numbers. However, I do not fully understand it and was hoping for a better explanation.  The method basically states if you have $x^y \bmod N$, it can be computed by repeatedly multiplying by $x$ modulo $N$:  $$x \bmod N \rightarrow x^2 \bmod N \rightarrow x^4 \bmod N \rightarrow x^8 \bmod N \rightarrow \ldots \rightarrow x^{2[\log y]} \bmod N$$  This is supposed to calculate in $\mathcal{O}(\log_2 N)$ time.  An example is given:  $$x^{25} = x^{11001_2} = x^{10000_2} * x^{1000_2} * x^{1_2} = x^{16} * x^8 * x^1$$  I don't really understand how this is faster. Aren't you just doing the same thing? You're just breaking down the exponents into representations of base $2$. Also where does $x^{2[\log y]}$ come from? If you're breaking it down into exponents of two where does a logarithm come from? (Aren't logs representations of numbers in exponents of $10$?)  I'm sorry if this appears to be a really stupid question - I have minimal knowledge in math.  Also, I wasn't sure if this belongs here or on stack exchange, so give me the word and I'll move it.


Null Pointer Exception when trying to take a screenshot with selenium

I have wrote a Java Class which uses selenium webdriver to quickly pass through a website and test various functions. I have also wrote a seperate class which will be used to execute the takeScreenshot() method. Once the test hits the code which executes the screenshot method, the browser closes and the J-Unit test fails and points to the line where I am calling the takeScreenshot() method. It is a null pointer exception but I cant figure out whats going wrong.. I have read through many articles and cant find an answer. I have read all of the posts on here which identify how to take a screenshot using selenium... The code is below:  **** Screenshot Class ****   public class Screenshot {   private WebDriver webDriver; File source;  public void takeScreenshot() {      try {         source = ((TakesScreenshot) webDriver).getScreenshotAs(OutputType.FILE);         FileUtils.copyFile(source, new File ("/Users/joshuadunn/Desktop/claimsScreenShot.png"));         System.out.println("Screenshot Taken!!!!");      } catch (IOException e) {         e.printStackTrace();     }  }  }   I then create a Screenshot Object and execute its takeScreenshot() method as follows:  @Test public void testClaimsTestToCalcNode() throws Exception {     driver.get(baseUrl + "/");     driver.findElement(By.id("becsStartCalculator")).click();     driver.findElement(By.id("MARITAL_STATUS_false")).click();     driver.findElement(By.id("btn_next")).click();     driver.findElement(By.id("HOME_ABROAD_false")).click();      *** This is where the null pointer is ***     *******************************     screenshot.takeScreenshot();     *******************************       driver.findElement(By.id("btn_next")).click();     driver.findElement(By.id("DETAILS_STUDENT_YOU_false")).click();   I hope you understand my problem!  EDIT **** - This is not a duplicate.. I am totally aware of what a null pointer is and how it can be fixed. Obviously something in my code is coming through as null, but I dont know what... The screenshot below is the only error i get (stacktrace)


Photoshop - Knock out hair from busy background

I've tried going through a variety of tutorials, and have seen a variety of techniques for knocking out people from backgrounds in Photoshop...but none seem to show how to properly clip hair if the person is on a busy background - they're usually all on solid fills. Can someone offer a step-by-step process for properly knocking out an image of a person (with blonde hair, preferably) on a busy background?  Thank you!


This is a Homework Question.  I am required to give a Combinatorial proof for the following.  $$S(m,n)=\frac 1{n!}  \sum_{k=0}^{n} (-1)^k\binom nk (n-k)^m$$  Hint given is : Show that $n!S(m,n)$ equals the number of onto functions $f\colon A  \rightarrow  B$ when $ |A|=m$ and $|B|=n. $  There were some other combinatorial proof questions on the assignment which I found easier to do but this one not so much. Could use help.


After updating Firefox this morning to 58, it fails to play any sounds (eg. YouTube plays without sound or Google Calendar events sounds). With the as of yesterday most recent version (57.0.4?), everything worked fine. I now get the message      To play audio, you may need to install the required PulseAudio software. []   The link there isn't of any help, as it just suggests to make sure that PulseAudio (which is required from version 52) is correctly installed. As I said, it worked fine with version 57, and I can play sounds with PulseAudio like this:  paplay /usr/share/sounds/freedesktop/stereo/message.oga   Any suggestions?  I'm running Ubuntu 17.10 (GNU/Linux 4.13.0-31-generic x86_64) with xmonad, no flash installed and the only things that updated since yesterday were Firefox and keybase.


How to use `which` on an aliased command?

Like most users, I have a bunch of aliases set up to give a default set of flags for frequently used programs. For instance,  alias vim='vim -X' alias grep='grep -E' alias ls='ls -G'   The problem is that if I want to use which to see where my vim/grep/ls/etc is coming from, the alias gets in the way:  $ which vim vim: aliased to vim -X   This is useful output, but not what I'm looking for in this case; I know vim is aliased to vim -X but I want to know where that vim is coming from.  Short of temporarily un-defining the alias just so I can use which on it, is there an easy way to have which 'unwrap' the alias and run itself on that?  Edit: It seems that which is a shell-builtin with different behaviors across different shells. In Bash, SiegeX's suggestion of the --skip-alias flag works; however, I'm on Zsh. Does something similar exist there?


i was trying to install winusb   typed in the terminal  sudo add-apt-repository ppa:colingille/freshlight && sudo apt-get update  then got that error when tried to update     Err:18  xenial/main amd64 Packages     404  Not Found    tried this commands  sudo add-apt-repository ppa:fossfreedom/packagefixes sudo apt-get update sudo apt-get install banish404   got same error


If $\sum a_n$ converges, then $\sum \sqrt{a_na_{n+1}}$ converges

Prove that if the positve term series $\sum^{\infty}_{n=1}a_n$ is convergent, also $\sum^{\infty}_{n=1}\sqrt{a_na_{n+1}}$ is convergent.  Prove that if the positive term series $\sum^{\infty}_{n=1}a_n$ and $\sum^{\infty}_{n=1}b_n$ are convergent, also $\sum^{\infty}_{n=1}a_nb_n$ is convergent.  I've tried to solve it using comparison test, but no results.


Start Firefox update (nightly) without actually starting firefox

I'm running a nightly version of Firefox (aptly called "Nightly"), and there's a problem. Given this is a nightly release, one of the recent updates, pretty much make Firefox unusable - it'll crash after around a minute of running and doing nothing.  Since this is around two or three days ago, at least one nightly release should've been pushed through now.  Is there a way, to engage the update process of Firefox, without actually starting Firefox? As in a command line option or something?


MySQL character encoding issue when using HTML post

I am trying to insert simplified chinese into my mysql table using UTF8_unicode_ci. Everything including the connection is configured to use UTF8.   When I try an insert these characters into the database table using a traditional HTML form post using PHP, I get the MySQL invalid string value error message. The strange thing is that if I use Jquery to post the information to another PHP page to store in the database, I get no error and the data goes in fine.   I am wondering what the differences are. Can anyone shed some light on this issue?  It happens for all data as far as i know. I connect to mysql using: $this->link = mysql_connect(cj_config::CJ_DB_HOST, cj_config::CJ_DB_USERNAME, cj_config::CJ_DB_PASSWORD); and then select the appropriate database using mysql_select_db.   The table collation is utf8_unicode_ci, and the column is also set to utf8_unicode_ci. The database collation and connection are all set to Utf8 also.   The error i am getting when sending the html form post is :   Error: Incorrect string value: '\x9A' for column 'company_name' at row 1.   I don't get this error when posting the same chinese character via jquery post and mysql does not complain.   The source of this jquery post is below and looks properly utf8 encoded:  customer=7&task_title=%E5%95%8A&task_notes=%E5%95%8A&datetime=&method=addtaskg&smallview=true


Mac reboots after some minutes of inactivity

I have this strange problem of my Mac rebooting. Everything was normal until I started syncing photos from iCloud (this could be coincidental, maybe not). First time I noticed a problem after 1-2 days as my system fan started going crazy, with CPU utilization at a max, several minutes later followed by system shut down. I traced the 100% CPU to Spotlight reindexing constantly; I temporarily disabled indexing:  sudo mdutil -a -i off   Problems with fans went away, but now photos service was going at very high CPU, accelerating fans again. I disabled Photos app (as much as I knew how) to avoid performing any analysis. This solved the fans and CPU going crazy problem. I could live without Photos on this Mac, no problems here.  Photos/Spotlight searching might just be coincidental, this part I'm not sure. Just so my system was more or less stable for at least several month before this addition.  But, here's the problem:  As soon as I leave my computer alone, after several minutes of inactivity, something happens that my computer goes into sudden reboot. I can't even leave it for 5 min for bathroom break. For information: putting computer to sleep was always disabled on my Mac, only screen saver and later on monitors were to trigger. Now I disabled it all, with no difference. I tried: 'caffeinate' with no difference as well.  Also, working on my Mac, performing various tasks has no effect whatsoever, but leaving it idle, goes to reboot soon.  Please help. What I was trying to find is if there's some kind of log that I could dump of a system on freeze, some entry to trace of what was the final activity before my Mac reboots. Any idea?


Can we really see new objects in future?

From :     Some parts of the Universe are too far away for the light emitted since the Big Bang to have had enough time to reach Earth, so these portions of the Universe lie outside the observable universe. In the future, light from distant galaxies will have had more time to travel, so additional regions will become observable   Is this really possible? I also read another  but is not exactly what I wanted to ask.  To explain the question let us consider the universe at two different points of time (A) at age of X/2 years and the current universe (B), at age of X years.  Now at A, anything beyond X/2 light years away from earth is moving faster than speed of light and light from it transmitted at that point will never reach earth. If we consider a bigger sphere of X light years, light started from these objects, in past X/2 years are already present in the X/2 light year sphere (expanding slower than speed of light) and will reach earth in the next X/2 years or by the time universe is X years old.  Now at B, the current age of X, an object 2X light years away from earth is already something that was inside the X light year spear at time point A (considering expansion rate increases). So the light from such an object has already reached us (light from that object was less than X/2 light years away X/2 years back).  So considering X as 13.7 billion light years, question is can we safely say that light from objects within 27.4 billion light years distance from earth has already reached us and anything beyond that is permanently invisible for an expanding and accelerating universe any time in future?


I've been looking for a solution for the past 1 day over the internet but no luck. I am really new to the linux. The built in wifi is not working but when i plug in a usb wifi adapter it works. Here the output of the command lshw -c network.  *-network UNCLAIMED               description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0    resources: ioport:1000(size=256) memory:a1100000-a110ffff   The built in wifi adapter and for some reason it just won't work. I've tried installing 3 different linux distros. Please help.


Launching Processing tool User Interface using PyQGIS

I am trying to launch the UI of a processing algorithm using Python script but I cannot find a simple way for it (aside double clicking on it in the process toolbox of course). The plugin is a water network simulator and I just want to launch its pre-processing UI without using process.runalg() because this needs to enter arguments and I don't need it.  Some ways would be to trigger processes available in process toolbox or sending command to commander from python console. but I have no clue how and I am searching for 2 hours now, no results.


How do I disable this annoying spam??  I've never used Apple Pay, nor do I have any intention of doing so. But apparently, after upgrading to an iPhone 6, Apple's gonna spam me every 24 hours?  There was some other garbage spam I had to disable too, but can't figure this one out... Pretty annoying that Apples so aggressively peddling their services these days. You'd think a simple opt in/out during onboarding would suffice.  Anyone have any ideas how to disable this? Thanks


Will voting on many community wiki questions from the same user trigger serial voting?

Over on , there is a question with lots of answers by the same person which are options for users to vote on.  In  by , Rand warns that voting quickly on lots of the answers may trigger the :     General note to voters here: since this thread contains many answers by the same person, if you vote on all of them too quickly, your votes may be invalidated by the system (thinking it's "serial voting").   However, since community wikis don't earn the user any rep, would multiple quick votes on community wiki answers count as serial upvoting?  From the  on serial voting, the mechanics are secret - is it possible to get any details on this?     Every night around 03:00 UTC, a voting fraud detection script is run that looks for patterns such as these. It basically looks for users who have voted on another user's posts many times. The threshold number is fairly low within a given amount of time (the exact mechanics are kept secret). When the system detects this pattern, all of the votes cast from that user to the user affected are reversed, and a "voting corrected" event is added to the affected user's reputation history to indicate what has occurred.


Render Image is further back than viewport image

I am new to blender (yes, laugh at the obligatory doughnut) and I when I set up the camera (I use NUM 0 to access the camera and move it into position with "Lock camera to view") in the viewport it shows as the first attached image, but when I render it the image is further back as shown in the second image. Is this normal behavior or am I missing something?


How do I add Ubuntu option on the Windows Boot Manager menu?

Currently i am on dual boot system.After repair Window7,windows boot manager can not show Ubuntu option on startup.when computer start,system directly opens Window7.my Window7 on C: and Ubuntu on D:.


What is wrong in "Please don't pluck the flowers" and other phrases used in the Indian subcontinent?

In the Indian subcontinent, especially India, there are many English words or phrases which are not a part of dictionary or not used in other parts of the world.  The first one is "Please don't pluck the flowers". I might not be proper, but I don't see anything wrong with this. It is pretty easy to understand what the person is trying to convey.  The second phrase is "Please do the needful". This is said to have its root in improper translation from an Indic language. Even though it might sound weird to non-Indians, it is a very simple way of saying "Please do what we expect you to do in this situation without being provided a detailed explanation".  In Indian English it is very well understood when someone asks "I have a doubt in this concept". In UK, doubt is taken in the context of "suspect", but in India, it is taken as "having a problem or not being clear".  There is another term which is actually not in any dictionary — "prepone" which is used as an antonym of "postpone". Even though it does not make sense, its meaning is pretty much straightforward.  After giving this long explanation, here are my three questions:   What is wrong in "Please don't pluck the flowers"? What is wrong with "Please do the needful"? Isn't it acceptable to use words like "prepone" even though it not in the dictionary? It is pretty much well understood (especially by people who scorn at others using this word)?     Update  I would like to explain when and where these terms are used:   "Please don't pluck the flowers" is used very rarely, and it is pretty much rare to hear this "Please do the needful" is used mostly in corporate environments by a person to their subordinates. For example, a project manager gets a mail from marketing or quality assurance about something missing or incomplete, then he/she sends a mail to the subordinate with the body "Please do the needful". The subordinate is usually more well-versed with the work which has to be done. It might be his/her expertise so the manager might not tell what exactly needs to be done as is left upon him/her to figure out. "Prepone" is used only in one context — opposite of "postpone" the event. The most common usage is "This event or meeting has been preponed".


Is there log which record the operation of files in linux. Just like, if some users rename or delete or add some files, can root user see the records of the operations. Do these logs exists in linux.  Thx


Let $A$ be an integral domain. Then $\forall m$ where $m$ is maximal ideal in $A$,$\; A_{m}$ is integrally closed$\implies$ $A$ is integrally closed.  This fact is proved in Atiyah-MacDonald in a different way. I am trying to prove it in the following way and hoping to complete it:  The field of fractions of $A_{m}$ is same as the field of fractions of $A, K_{A}.\;$Then we want to prove that $a/b \in K_{A}$ is integral over $A\implies a/b\in A.\;$ Now, $a/b$ satisfies some monic polynomial over $A$ means it satisfies some monic polynomial over $A_{m}, \forall m.\;$ Hence, $a/b$ is integral over $A_{m},\forall m.\;$ Now I just have to prove that $b\notin m,\forall m.$ Suppose, $b\in m$ for some maximal ideal $m$. Then $a\in m.$  After that I'm stuck. Thanks in advance!


Catch event click on button inside a modal created by jquery

Im trying to add more feature in zabuto calendar. That is a modal will appear after click on date, allow we to add or remove event for this day. But i can't catch event click on the button in this modal. Here is my code.  function createModal() { // create a modal //...  var $modalFooterButtonSave = $('<button id="btnSave">Save</button>');  var $modalFooterButtonDelete = $('<button id="btnDelete">Delete</button>'); //... //return this modal }  function myDateFunction() { //Add modal into html page $("#myModal").html(createModal()); //Show modal $('#adjustModal').modal('show'); return true; } $(document).ready(function () {     // zabuto event click on date     $("#my-calendar").zabuto_calendar({         action: function () {             return myDateFunction();         }     });     //Here is problem, i can't catch the event click on this button.     $("#btnSave").click(function(){         alert("The btn Save was clicked.");     }); }


I  this phrase:     So what is it about habits that makes something like biting your   fingernails so hard to stop, while making something like running a   couple half marathons per week possible? There’s three things to know   about why habits develop whether you want them to or not.   Is that correct (in formal English/grammar)? Should not we write There are three things ... instead?


Are qualifications for Head Boy and Head Girl different from qualifications for prefects?

I was under the impression that the Head Boy and Head Girl were always chosen from among the prefects, however...  "No one would have made me a prefect, I spent too much time in detention with James. Lupin was the good boy, he got the badge." — Sirius Black to Harry, Order of the Phoenix  So James Potter was not a prefect. But...  "Now, yer mum an' dad were as good a witch an' wizard as I ever knew. Head Boy an' Girl at Hogwarts in their day!" — Hagrid to Harry, Sorcerer's Stone  How does one get to be Head Boy without first being a prefect? If James' time in detention disqualified him from being a prefect, why did it not disqualify him from being Head Boy?


Pokemon GO, not able to sign in with Google account

I got Pokemon GO on a new device as my other one broke, when I press Sign up with Google, it just has a Pokeball in the centre loading and nothing else. the bottom I can cancel still but I don't know how to fix this.


Finding critical points (extrema) directly without using eigenvalues

If we have a function $f: \mathbb R^3\rightarrow \mathbb R$ of the form:  $$f(x)=(a_1x_1^2+a_2x_2^2+a_3x_3^2)e^{-x_1^2-x_2^2-x_3^2}$$  where $a_1>a_2>a_3>0$.   We can find the critical points by:  $$\frac{\partial f}{\partial x_1} =2x_1e^{-x_1^2-x_2^2-x_3^2}(a_1-a_1x_1^2-a_2x_2^2-a_3x_3^2)=0$$  And solving symmetrically for $x_2$ and $x_3$. We get critical points: $(0,0,0) , (\pm 1,0,0) , (0,\pm 1, 0) , (0,0,\pm 1)$   We could determine the nature of them by looking at the eigenvalues of the Hessian, but is there a way to just analyse it directly? Obviously $(0,0,0)$ is a strict global minimum, but I can't quite see that the other points are. Any pointers/hints would be appreciated.


What are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5?  This question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. C# 3.5. The hope is that anyone failing to find an answer with the wrong version number will find this question and then search again with the right version number.


Binomial Formula evaluation for the problem $9 \mid 10^k - 1$ for $k \in \mathbb{N}$

Prove using binomial formula $9 \mid 10^k - 1$ for $k \in \mathbb{N}$  I am aware of similar answer to this question  and  however my query is about the manipulation on the binomial formula in my proof. My attempt at the proof : We notice that $$10^k - 1 = (9 + 1)^k - 1$$ $$=\left(\sum_{i = 0}^{k} {k \choose i} 9^{k-i} \right) - 1$$ How do I further remove the -1 to show that this indeed is divisible by 9 ?


After installing gm-notify I see the option of hearing a sound every time a new e-mail arrives in my Gmail inbox, but I don't know where Ubuntu (10.4) stores the system sounds to assign one. Any ideas? Thanks.


I am an Indian citizen with a German residency permit. I am travelling from Germany to Dubai by Pegasus Airlines and then from Dubai to Madurai by SpiceJet separately, in both directions. I need to transfer myself in Dubai. I have found that transit is possible in Dubai airport via transit desk without UAE transit visa.  But, I have read on SpiceJet's website that Indian citizens travelling from India to Dubai need "Ok to Go" stamp in their passports. It is not clearly explained for transit people like me with Schengen visa.  Q1: Will SpiceJet in Madurai check "Ok to Go" and reject me (Indian citizen with Schengen residence permit) in Madurai airport during my return journey?  If yes; Q2: Is there is any other possibility to solve the above problem?  If "Ok to Go" is ultimately needed for SpiceJet in Madurai; Q3: How can I get it from Germany and how much does it cost?


Riemann Sum of $\sqrt{x}$ with uniform partition

How to find the Riemann sums ( Lower and Upper) of $\sqrt{x}$ using only the uniform partition in $[0,1]$??  It's really hard to find some expression to calculate $\displaystyle\sum_{i=1}^{n}\sqrt{i}$


Sci fi book about a planet where they use a dice game instead of wars to settle disputes between countries

I read a book years ago, and now I can't remember the author or title. I do remember that it was like the 3rd or 4th in a series, but I don't remember what the series was called.  In the book, a pilot for an interplanetary empire crash-lands on a planet that has been deemed unsuitable for habitation, and is quarantined. He is rescued by the native people (yes, they are humans), and nursed back to health. When he comes to, he finds out that the people here are a matriarchal society. Royal women can have multiple men, and trade them around for political purposes. They settle disputes, barter, and predict the future with a game using many different dice. The dice are different sizes, shapes, colours, and materials, and the different dice have different point values. They have an air force, but even they have few weapons, and look like giant versions of the dice sets. The planet is extremely technologicaly primitive. The pilot basically teaches the people how to make newer technology, and ends up sparking a war in which people die from violence for the first time in centuries. They kick him out of their society, but he is killed by quarantine sentry turrets as he tries to escape the planet.  Any clue what book this is? I've been trying to remember it because I want to read the entire series. I know that one of the other books in the series is called "The Fourth Tri-" something.


How to kill one tab of google chrome using pid

I want to close one tab of chrome. I tried killing the pid of the tab, but the tab doesn't close instead says "Aw, Snap! Something went wrong while displaying this webpage. To continue, reload or go to another page". How can I get rid of this.


Discrete sums are to integrals as discrete products are to ___.

Is there any notion of taking a continuous product of the values of a real function over an interval? Only thing I could think of was exponentiating to the power of the integral over that interval.


unbold title and no line break for a subsection

How can we unbold the title of a subsection and suppress the line break, like it was done in the following image? The answers in the duplicate deal with how to do that for all the subsection. I want to do that, just only for one subsection. For the others, I like that style with the breakline  Best, Layth


Error while installing anything - /boot/

I'm new in ubuntu server or any server (in fact) probably I've done something wrong. I'm trying to install docker and when I run:  sudo apt-get install \ linux-image-extra-$(uname -r) \ linux-image-extra-virtual   I get this:  update-initramfs: Generating /boot/initrd.img-4.4.0-83-generic cryptsetup: WARNING: failed to detect canonical device of /dev/xvda3 cryptsetup: WARNING: could not determine root device from /etc/fstab W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.4.0-83-generic with 1. dpkg: error processing package linux-firmware (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: linux-firmware E: Sub-process /usr/bin/dpkg returned an error code (1)   I've searched online and nothing worked, sadly. My kernel is 4.4.0-83-generic. Thanks to all.


Aside from CTAN, what are good resources/repositories for Latex templates? In particular, I'm looking for some pretty Thesis templates (I'm familiar with classicthesis)


Why doesn't bounty end when I accept my answer and why a grace period starts?

I had a bounty on one of my questions. It got zero answers. I found an answer and posted it and accepted it. Why didn't the bounty end at that moment?  Now it has expired. Why now there's a grace period starting? Do I need to take further steps?  If this is to solicit new or more answers, why? I already accepted an answer.  Relevant question:


I'm making a game using unity. In the game I've a purchasable product "remove ads". Where should I store user purchase data? If I use player prefs data will restore after a reset or uninstall.


In an RSA-encryption scenario, Bob's public key pair $(n, e)$ is $(143, 43)$. An attacker Mallory tries brute-force and comes to $d = 7$ as the private key. The value of $φ(143) = 120$ is not known to Mallory. However from $43 \cdot d \equiv 1 \bmod 120)$, one can calculate the first positive element $d = 67$ from multiplicative group $d = 120 + 67n$ and $n \in \mathbb{Z}$ $d = 7$ clearly doesn't fit in that multiplicative group, so how come it can successfully decrypt the encryption?


Null Pointer Exception stanford core nlp pipeline (CorelLabel)

I am trying to use stanford nlp pipeline for doing some basic NER and POS. I have slightly modified the core-nlp code to accomodate both ngram and training using a prop file. I feel the problem is with the way I am passing through the pipeline.  public class TestQG {      public static void main(String[] args) throws Exception {          String originaltext = "Obama is the President of America";         String modifiedtext = originaltext.replaceAll("[+,:;=?@#|<>.^*()%!]", "");          stanfordNLPParser(modifiedtext, useCustomNLPModel, customStopWordList, useCustomTokenREGEX);      }  public static void stanfordNLPParser(String modifiedtext, String customStopWordList) throws Exception {      Properties props = new Properties();        props.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner, parse, sentiment, regexner");       props.setProperty("tokenize.language", "es");       props.setProperty("tokenize.whitespace", "true");       props.setProperty("regexner.mapping", "resources/customRegexNER.txt");        String[] args = new String[] { "-props", "resources/tempaSmNER.prop" };       CRFClassifier.main(args);       props.setProperty("ner.model", "resources/ner-model.ser.gz");             StanfordCoreNLP pipeline = new StanfordCoreNLP(props);       List<CoreLabel> tokens = new ArrayList<CoreLabel>();      /*Collections to store the processed N-gram token (nGram tokenizer does not allow the result to be stored as CoreLabel, as required for the pipeline)*/     Collection<String> collectionOfProcessedTokens = new ArrayList<>();      Annotation document = new Annotation(modifiedtext);     pipeline.annotate(document);        /*List of tokens (before performing the nGram operations)*/       List<CoreLabel> tokensPreNgram = new ArrayList<CoreLabel>();       List<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);        for (CoreMap sentence : sentences) {       for (CoreLabel token : sentence.get(TokensAnnotation.class)) {                           tokensPreNgram.add((CoreLabel) token);         }      Collection<String> tokenPreprocessor = StringUtils.getNgramsFromTokens(tokensPreNgram, 1, 6);          for (String tokenNgramPostProcessor : tokenPreprocessor) {            collectionOfProcessedTokens.add(tokenNgramPostProcessor.replaceAll(" ", "_"));                                        }             CoreLabelTokenFactory string2CoreLabel = new CoreLabelTokenFactory();          for (String temp : collectionOfProcessedTokens) {            tokens.add(string2CoreLabel.makeToken(temp, temp, 0, 10));                              }           for(CoreLabel token :tokens){            System.out.println("For TEST: Current Token is  :" + token);                      // generate Parts Of Speech           String tokenPOS = token.get(PartOfSpeechAnnotation.class);           System.out.println("For TEST: POS is   :" + quesGenPOS);              if (token.get(PartOfSpeechAnnotation.class).matches(".*(WP).*")){ System.out.println(quesGentoken.get(TextAnnotation.class));}           String tokenNER = token.get(NamedEntityTagAnnotation.class);           String tokenSentiment = token.get(SentimentClass.class);           String tokenlemma = token.get(LemmaAnnotation.class);        }     }    }   I am facing an null pointer exception at the place i'm performing an POS. While the token is generated correctly, the POS is throwing 'null'. I believe, there most be a problem in the way i construct the pipeline.   The java.lang.NullPointerException is @    `if (token.get(PartOfSpeechAnnotation.class).matches(".*(WP).*")){ System.out.println(quesGentoken.get(TextAnnotation.class));}    because String tokenPOS = token.get(PartOfSpeechAnnotation.class); is not generating the POS  Any pointers as to why?


MySQL strip non-numeric characters to compare

I'm looking to find records in a table that match a specific number that the user enters.  So, the user may enter 12345, but this could be 123zz4-5 in the database. I imagine something like this would work, if PHP functions worked in MySQL. SELECT * FROM foo WHERE preg_replace("/[^0-9]/","",bar) = '12345'  What's the equivalent function or way to do this with just MySQL? Speed is not important.


Hi I would like to run a script from the terminal, is there anyway to do that? For example : if I have a python script I would normally run it with this command :    python script.py   How can I run this script just by typing in the filename of the script in the terminal (even if i'm in another directory) ?  Another answer I found pretty helpful :    You can just create symlink. Create it in /usr/local/bin. All you need is to run command:  sudo ln -s /full/path/to/your/file /usr/local/bin/name_of_new_command   After that you should make your file executable:  chmod +x /full/path/to/your/file   Now you should be able to run name_of_new_command at any time in your terminal.  Note that this is good solution only for home usage of Linux.


Does Forbidden Island usually need any rule variants for playing with 5+ people?

I don't see any reason why Forbidden Island wouldn't be able to handle 5 or maybe even 6 players with some simple variants. Does anyone have any experience with different player numbers with some wisdom to pass on?  It would be slightly harder to gather the required 4 treasure cards at one person, but there would be more people total to trade with. The island would sink faster and it would take longer for a certain critical player to have their turn, even though the navigator and helicopter can move anyone. How can these disadvantages be offset to keep the game strong and sufficiently difficult?


inbookmarks:mine was fixed for searching within a particular Stack Exchange site, but often I find myself wanting to search for a question I favorited/bookmarked, but not remembering which site it was on when it could conceivably have been on a number of different sites. On the cross-site search at  it does not work, presumably because we have different user ids on each site. Is there a way it could be made to work? Note that this request is for searching, not just viewing, so it's not a duplicate of . Just viewing is not very helpful when you have a huge volume of bookmarks across Stack Exchange sites.


Supervisor discourages me from using a method he doesn't know. Can I work on it and publish it by myself?

Either my supervisor is wrong in not letting me work on an idea which he does not understand, my bad that I am  stuck with someone who is not open-minded. But I suck it up.  But I am enthusiastic about the idea and wish to work on it myself. I can find time for it and it is very useful for my future opportunities. My supervisor is not really worried about my future.  So firstly, how to manage this exercise by getting what I want, having no effect on my PhD and keeping my supervisor not too angry (after all my Phd is still influenced by this guy). Secondly, is it ok to write it up myself and publish it? I am not using any ideas from my supervisor for this work, of course the learning from previous works will be used - which is already published!


Why is electric field lines away from (+) and toward (-)?

I have a questions about the electric field lines.   Well in the basic learning, we know that:   The electric field lines extend away from a positive charge They move forward a negative charge   Let's take parallel plates, which make a uniform electric field.If we take the basic learning, which I mentioned, in accounts, it's very easy to understand that this is the direction of a positive charge object if we put the object between the plate (move away the positive charged plate and toward negatively charged plate).  The problem is if we put a negative charged object between. Isn't the electric field reversed ?


Is the series $\sum_{1}^{\infty}\frac{1}{p_{j}}$ where $p_{j}$ is the $j$th prime convergent?

Does the series $\sum_{n=1 }^{\infty}1/p_{j} $ of  reciprocal primes converge?  Experimentally, it seems convergent.


Sci-fi book, blue critters than only some people can see, kids fight the critters as they feed off energy and are a threat

I can't really remember how long ago it was, but I think the book was marketed towards children/teens.  All I remember is the basic premise of the story.  Some story about these unusual little blue electric critters that only certain people could see, and these kids took it upon themselves to go about destroying them since they fed off energy or something like that.  Not sure whether they fed off people or off electricity... or both maybe?  I think the dominant method of destroying them was an electric baton that was taken from law enforcement.  I wanna call them buzz batons, but that's probably thanks to Artemis Fowl.


Hints for $\lim_{z \to \infty} \frac{\operatorname{Re} f(z)}{z}=0 $ implies $f$ is constant.

$\lim_{z \to \infty} \frac{\operatorname{Re} f(z)}{z}=0 $ implies $f$ is constant.  $f$ is entire function on complex plane  I tried to bound some derivative of $e^{f(z)}$ by cauchy integral inequality hence $e^{f(z)}$ is polynomial.  But since it has exponential term depending on radius, and denominator has $R^n$ for radius $R$ so i can not bound it.  Should I try some other way?


Is there any way to transfer reputation other than bounties?

Are there any ways to transfer reputation between users without using bounties?


'This post has been deleted' appears above the flag bar

When a post is deleted and the notification comes through, it scrolls over the inline flag bar:    The entire post also seems to capture clicks instead of letting them get to the flag bar. Looks like someone got a z-index wrong...


$ac\equiv bc \pmod{\!m}\!\!\iff\!\! a\equiv b \pmod{\!\!\frac{m}{(c,m)}}$ [Euclid's Lemma, congruence form]

I came across this theorem:   For all integers a,b,c and m>0, if d = GCD(c,m) then a*c ≡ b*c (mod m) iff a ≡ b (mod m/d).  The =>proof states this:  a*c ≡ b*c (mod m) => m|(a-b)*c                    => m/d | (a-b)*c/d                   => m/d | (a-b)                   => a ≡ b (mod m/d)   I don't understand how to go from step 2 to step 3. The proof states that this is possible because m/d and c/d are coprime. To me this means GCD(m/d, c/d) = 1 but how does this cancel out the whole term?


Energy cut-off test meaning in atomic-like basis functions' DFT

I have been using SIESTA code to perform some practicals in my college and I have run energy cut-off tests before calculating properties of semi-conductors or insulator. As far as I am concerned, SIESTA is a code using atomic-like basis sets, instead of plane-wave based ones. In the case of the plane-wave representation, the energy cut-off is the kinetic energy of the plane wave with highest plane-wave vector. The longer this cut-off is, the more waves will be used to represent the orbitals, the more accurate the description of the system will be... However, what is really the meaning or the physics behind this test for atomic-like basis sets?


"Recommendation questions" are forbidden. Why?

From what information I've collected, so called "recommendation questions" are forbidden everywhere on StackExchange network. Any explanations why?  UPD "I don't like this question, but don't tell you why" is not a good answer.  Why not create a special site for polling-type questions?


Proving lemma about centrality of idempotent elements in a Ring with no nilpotent elements.

Reading the class notes I stumbled upon an unproved lemma that I am having issues proving.  The lemma is, if $R$ is a ring with no non-zero nilpotent elements and $e$ is idempotent then $e$ is central.  In other words, if $e$ is idempotent in such a ring, then $ex=xe$ for all $x\in R$.  I am however not sure how to actually prove the statement.  So far I have been playing around trying to find polynomials that can be factored into linear identical factors (e.g (x+e)^2) to see if I can make them be zero by converting an $e^k$ coefficient into $e$.  But something isn't fully clicking about this lemma.


Hide parameterless constructor on struct

Is it possible to hide the parameterless constructor from a user in C#? I want to force them to always use the constructor with parameters e.g. this Position struct public struct Position {     private readonly int _xposn;     private readonly int _yposn;          public int Xposn     {         get { return _xposn; }     }      public int Yposn     {         get { return _yposn; }     }      public Position(int xposn, int yposn)     {         _xposn = xposn;         _yposn = yposn;     }         }  I only want users to be able to new up a Position by specifying the x and y coordinates. However, the parameterless constructor is ALWAYS available. I cannot make it private. Or even define it as public. I have read this:  but it doesn't really help. If this is not possible - what is the best way to detect if the Position I am being passed has values? Explicitly checking each property field? Is there a slicker way?


Proving that these two sets are denumerable.

(a) $S_k=\{A\subset\mathbb{N}: |A|=k\}$ for $k\in\mathbb{N}$  (b) $S = \bigcup_{k=1}^\infty S_k$   Work: For (a), I am not too sure about what approach I should use. I think finding a bijective function between the $S_k$ and $\mathbb{N}$ is hard to do . I also thought about using the Schroeder-Bernstein theorem and find injective functions $f:\mathbb{N}\rightarrow S_k$and $g:S_k\rightarrow\mathbb{N}$ in order to prove that $S_k$ and $\mathbb{N}$ are numerically equivalent. However, I have a hard time finding and proving these injective functions. I haven't really looked at (b) as I have yet to complete (a).


What is the difference betwen equivalence and isomorphism of functors in categories.

I am learning category theory using Basic Category Theory by Tom Leinster as my main source. In the chapter on natural transformations he says that isomorphism of categories is unreasonably strict for the notion of the sameness of two categories. Isomorphism would require functors, $$ F:A\rightarrow B,G:B\rightarrow A $$ such that $$ G\circ F=1_A, F\circ G=1_B $$  Instead he says that for equivalence we loosen the requirement on these functors to be isomorphic, $$ G\circ F\cong 1_A,F\circ G\cong 1_B $$ Then this is better. This section threw me for a loop. I don't understand the difference between the equivalence and the isomorphism statements. Any help clarifying what is trying to be said here is greatly appreciated.


I'm looking for a symbol looking as the \Crossedbox from marvosym without the box around the cross.   I looked  and detextify without seeing anything.   Have you anything that could help me?


The Closing Problem: This needs to be reconsidered

TLDR version: Too many people can vote to close. People are overzealous when it comes to  voting to close. Questions that get closed will very likely remain so because they attract little attention. This needs to be fixed.    As of last month, there are  who can cast close votes, and the number will grow. Unfortunately, the chances of questions getting wrongfully (or not) closed will increase proportionally, since there is currently no way to counteract close votes besides voting to reopen after a question has been closed.  I think this goes against the community-driven model that SO follows. It's no longer the "Community" that can close the question; but a tiny minority of it - 5 (five) users, is all it takes. We now have the "tyranny of the minority." It is also impossible for someone to rescind their close vote even if they feel the question should no longer be closed. In the current setup, there is no way to go but down.   I know this has been suggested before, and has been ignored for unknown reasons, but it's starting to bother me. We should be able to either:   . Example: User posts a vague question. Close votes are cast. User adds sufficient detail to the question, but I can no longer rescind my vote and there are 4 close votes already. One more person comes along and votes to close. Question is closed. User gets demotivated. If it's a new user, might never come back. : I disagree with the close votes being cast. I cast a vote not to close and this decreases the close vote count by some amount.   Or do both. The system as it is is broken IMHO. It was a year ago two years ago, it's even more so today, with more users having this ability. It's apparent that a good deal of stackers support these two suggestions. But for some reason Jeff doesn't like them. Perhaps you could explain the rationale on why they shouldn't be implemented?


Auto signin worked fine on boot until I installed Chromium.  Now the computer signs in on boot, but when i start Chrome, there is a popup asking me enter my keyring ... it gets tedious. Auto signin is all set up under 'users' correctly, so i don't know what is going on. I have seen a workaround that involves setting a blank password.  Not keen on that because of security issues.  Anyone got any other ideas?  Thanks.


Unable to Insert ContentVersion record as a Community User in Test Class

I'm unable to create ContentVersion records running a test class as a Partner Community user. I have created a Partner user using the same methods displaying in the test class, tested the process manually and works properly. It is annoying since it's only failing in the test class. I'm using a public class and I have granted access to all the involved objects and fields.  Error:     System.DmlException: Insert failed. First exception on row 0; first   error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have   the level of access necessary to perform the operation you requested.   Please contact the owner of the record or your administrator if access   is necessary.: [NetworkId]   Fragment of the Test Class:  static testMethod void uploadFiles() {      //Creating Broker Data     Account partnerAcc = TestDataFactoryCls.CreateAccount();     partnerAcc.IsPartner = true;     update partnerAcc;     Contact partnerCon = TestDataFactoryCls.CreateContact(partnerAcc.Id);     User contactUser = TestDataFactoryCls.createUserFromContact(partnerCon, 'Partner Community Clone');     //Creating Data Owned by the Broker     Account acct = TestDataFactoryCls.CreateAccount();     Contact contact = TestDataFactoryCls.CreateContact(acct.Id);     Opportunity opp1 = TestDataFactoryCls.CreateOpportunity(acct.Id, contact.Id,'fixed investor v5', 'Asset', 'Purchase', 'Closed Won', partnerCon.Id, partnerAcc.Id);     Opportunity opp2 = TestDataFactoryCls.CreateOpportunity(acct.Id, contact.Id,'fixed investor v5', 'Asset', 'Refi', 'Application', partnerCon.Id, partnerAcc.Id);     System.debug('opp2 before ' + opp2.StageName + ' ' + opp2.AFS_Referrer_Name__c + ' ' + opp2.Broker_Contact__c);     List<Loan_Doc_Sort__c> lds = [SELECT Id, Loan_Documentation__c, Loan__c, Document__c, Comment_History__c, Comment__c, Status__c FROM Loan_Doc_Sort__c WHERE Loan__c = :opp2.Id];     Loan_Doc_Sort__c ld1 = lds[0];      System.runAs(contactUser) {                   ContentVersion cv3 = new ContentVersion();        cv3.title = 'test content trigger';              cv3.PathOnClient ='test';                   cv3.VersionData =Blob.valueOf('Test Content');         cv3.FirstPublishLocationId =  ld1.Id;                insert cv3;     } }


I'm having a few issues with Blender.. 1. I'm trying to make a loop cut in this area:   But it won't let me make a loop cut there! There are other areas that I want to do loop cuts as well. I noticed in certain areas if I dissolved edges, I wasn't able to make loop cuts there anymore. How can I fix this?   I am trying to move a specific vertices, but it's doing this:    How can I move it to where I want to if that happens?


How should I configure subdomain MX / DNS entries?

I have domain example.com and its mx properly configured. I have also an A entry intranet.example.com which points to my CMS. What I want is to have emails of the form user@intranet.example.com and I have to use a separate mail server than the one used for the example.com mail handling. My question is:  1.Should I just add an MX entry for in the example.com dns zone file like this:   intranet      IN      MX      10      intranet-mailer.example.com   or create a whole separate intranet.example.com delegated subdomain, and put the MX there?  2.Is it safe to do both? 3.What about SPF in each case?  Thanks.


Add a custom curve mapping property for an add-on?

Question The title says it all. I want to be able to make this in Blender's UI, and sample it at specific points :  Problem There is very insufficient documentation on this, and I can't find any examples for how to create a . I have worked with templates before, and , but it requires a curve mapping prop. Extra Info I found a few threads about this, and one gives me the impression that this cannot be done at all, but it is also very old.   This similar question has been asked here before, but it didn't even get a comment:  Is this even possible to access in python (as in only accessible in C)?


What is the default range in slicing: For example: ls = [1, 2, 3, 4, 5] ls[-3::1]  #returns copy of the elements at indexes -3, -2, -1 ls[-3::-1] #returns copy of the elements at indexes -3 till the start of the list i.e ls[-5] ls[::-1]   #returns copy of the reverse version of the list ls[::1]    #return the list as is  What is the idea behind that? How does python determine unstated start and end indexes?


Is there a way to get access to the 'Review Queues' feature of Stack Overflow from the Stack Exchange application for Android phones?


Passing Parameters in URL containing special characters using javascript

Hi I am trying to call an action result in my controller containing parameters, but whenever one of these parameter contains # sign(special character) the string parameters does not include # sing in parameter and Next all parameters are set to null.  Following is my java script through which i am calling my action result.      <script type="text/javascript">         $(document).ready(function () {             $('#btnExport').unbind().click(function () {                 var url = @Url.Content("~/BankStatement/ExportBankStatementSummary") +                     "?legalName=" + '@ViewBag.LegalName' +                     "&dba=" + '@ViewBag.DBA' +                      "&contactPerson=" + '@ViewBag.ContactPerson' +                     "&address=" + '@ViewBag.Address' +                      "&period=" + '@ViewBag.Period' +                     "&totalHeading=" + '@ViewBag.TotalHeading';                 window.location = url;             });         });     </script>   This is the action result that is called in this java script  public ActionResult ExportBankStatementSummary(string legalName, string dba,                                                 string contactPerson, string address,                                                 string period, string totalHeading)     {         ViewBag.LegalName = legalName;         ViewBag.DBA = dba;         ViewBag.ContactPerson = contactPerson;         ViewBag.Address = address;         ViewBag.Period = period;         ViewBag.TotalHeading = totalHeading;          ...   The problem is that in the action result parameters, when ever any of the parameter contains any special character (# in this case) then that parameter and next parameters becomes null.  For example if address is "Street # 2" then parameter address becomes "Street " and next parameters period and totalHeading becomes null.  Any help will be highly appreciated.  Thanks in advance.  [I do not agree on the duplication of this question because the marked duplicate question was discussed in detail and the detailed conversation covered the answer of this question but the actual question was totally different from this question.]


Finding the MGF of a bivariate Normal Distribution

Given ($X$, $Y$) whose MGF is defined as:  $$M_{XY}(s, t)=E[e^{sX+tY}]$$  Find $M_{XY}(s, t)$ when $X$ and $Y$ are two jointly normal random variables with $E[X]=\mu_X$, $E[Y]=\mu_Y$, $var(X)=\sigma^2_X$, $var(Y)=\sigma^2_Y$, and $\rho(X, Y) = \rho$?  I am so confused about this question. Every method I try seems to land in a dead end. So far I have tried using the Law of Unconscious Statistician as well as noting that $sX + tY$ follows Normal distribution but the integral always seems impossible to solve. Any help would be appreciated. Thanks  EDIT1  After checking some posts and doing more research I have conducted the following and would like to know if it is a valid method:  Since $(X, Y)$ is jointly normal, we can write:  $$ (X, Y) = (\mu_X, \mu_Y) + \Sigma^{1/2}(Z_1, Z_2) $$  Where $\Sigma^{1/2}=\begin{bmatrix}\sigma_X & \sigma_{XY}/\sigma_X\\ 0 & (\sigma_Y^2-\sigma_{XY}/\sigma_X^2)^{1/2} \end{bmatrix}$ (Obtained this matrix through Cholesky Decomposition)  Evaluating the above expression gives us:  $$\begin{bmatrix}X \\ Y\end{bmatrix} = \begin{bmatrix}\mu_X + \sigma_X Z_1 + (\sigma_{XY} / \sigma_{X} Z_2) \\ \mu_Y + (\sigma_Y^2 - \sigma_{XY}^2\sigma_X^{-2})^{1/2} \end{bmatrix}$$  Since now X and Y have been decomposed into functions of two independent normal random variables, we can simply multiplying the corresponding MGF of these functions. Is this argument correct? If not could you please tell me which assumption I am making is mistaken. Thank You


Why won't my arms dealer move into the house I built just for him and his family?

I got a notice once I acquired a musket that "Deshawn", my arms dealer, was ready to settle. I have built a house with walls, background, light source, door, chair and table and he simply will not spawn.  I haven't seen any other notice regarding him again yet. Can anyone give me any advice on what I should do?


Trying to derive a contradiction with this simple inequality,

I am stuck at   $$(a+d)^2 - 4(ad-bc) < 0$$ $$\implies (a+d)^2<4(ad-bc)$$ $$\implies (a+d)<2\sqrt{ad-bc}$$  where $a,b,c,d \ge 0$.  Is there a contradiction to derive here?   Also, the square root on the R.H.S. may not be legit, since I don't have any more information about the relation of $ad$ and $bc$ -- so let's say I took the complex square root, to be safe.    (This lack of information also makes it hard to use the AM-GM inequality.)  Any help is appreciated.  Thanks,


How would one go about using a 46V DC power source to power something which needs 36V DC using resistors?

How would one go about using a 42V DC power source to power something which needs 36 V DC using resistors?


How can I subdivide this plane into even squares?

I have a plane that has a scale of x: 100, y: 5, z: 1, and I want to split it into squares that have a scale of x: 5, z: 5, but when I do subdivide, I get a result like this:     When in reality, I'd rather have something like this:    How can I do this? (Sorry for the badly sketched pictures.)


Adding an image and an address on every page - no new packages

I am producing a LaTeX template for our corporate branding.  This requires the university logo on the top right of every page, and the address on the bottom right of every page except the title page.  I want to minimise the need for new packages to be installed on the fragmented systems we use.  As such I want to avoid answers that have been given on similar questions - I want to avoid eso-pic and fancyhdr.  Is there anyway to do this without loading any new packages(tikz is allowed)?


Notify us when the question has been edited after posting an answer

Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but some people don't know to do that.  This leaves two possibly bad situations:   I never know, the answer stays, and the votes don't reflect the usefulness of the answer anymore. All of a sudden I get an influx of downvotes because my answer isn't helpful anymore. If I'm checking and notice my rep has dropped, I come back after the fact, edit the answer, and bring it back to the original quality. This is great, but 9 times out of 10, the downvoters never come back and notice the answer has been edited. It might get more upvotes, but it still doesn't reflect the true value of the answer.   If we can get notified when the OP gets edited, we can nip it in the bud and go back to edit our answers to match - thus maintaining the quality of the answers on SO.


Re-run an application script when it crashes?

I have some applications that need to run on my laptop all the time.   I use a bash script to start these applications. In my script I have a loop that looks similar to this:    while true; do     xterm done   This runs an application (xterm in this case) and if the application crashes, the loop starts it again.    This has a disadvantage that there is no "clean" exit from this loop. So even if the intention of the user is to close xterm, the loop starts it again.    Is there a way to start an application from bash script, watch whether it is running, to re-run it if script crashed or do nothing if the user closed it properly ?


I'm trying to implement a configuration mechanism that allows in a certain project to deploy through svn a cron configuration.  I immediately thougt that what I should do is cerate symlinks from /etc/cron.d/ to my project's cron file (which in turn is controlled by a vcs), but that seems to not be working.  I found some old forum messages referring that symlinks were not supported and other saying that they are. Which is it?  Is there anything else or any other good way to achieve this?


Determinant of a Special Symmetric Matrix

If $A$ is a symmatric matrix of odd order with integer entries and the diagonal entries $0$ then $A$ has determinant value even.  I can prove the result if I can show that the eigenvalues of $A$ are integers,but I am unable to do that. Thanks for any help.


Let f be a convex and  bounded function, meaning there is a constant $C$, such that $f(x) < C$ for every $x$.  I need to prove that $f$ is a constant function.  Thanks!


I am using tamil language (utf-8) inserted into MySQL database collation latin1_swedish_ci by default. but the data shows like ????? ??? ???????????.????? when I retrieve it. I studied in the net lot about the problem. but the solution nothing was useful. Totally it is making mad. anybody can help me. I am using query below like this. Give me solution in simple way only.  <?php  $con=mysql_connect('localhost','root','');  $db=mysql_select_db('nikah', $con);  $sql="select * from matrimony"; $result=mysql_query($sql) or die(mysql_error()); While($row=mysql_fetch_array($result)){      echo $row['name'];      }  ?>


Proof that all 2 dimensional vectors can be written as...

(a) Show that any two-dimensional vector can be expressed in the form $$s \begin{pmatrix} 3 \\ -1 \end{pmatrix} + t \begin{pmatrix} 2 \\ 7 \end{pmatrix},$$where $s$ and $t$ are real numbers.  (b) Let u and v be non-zero vectors. Show that any two-dimensional vector can be expressed in the form $$s u + t v,$$where $s$ and $t$ are real numbers, if and only if of the vectors $u$ and $v$, one vector is not a scalar multiple of the other vector.    I know that we have to prove that $$3s+2t=a$$ $$-s+7t=b$$ for any integers a and b.  But I don't know how to prove it.  As for part(b), I do not have a starting point.


matchAll Array for Group 1 Regex Matches

I'm trying to figure out a way to get all my Group 1 matches into an array without using a loop with matchAll().  Here's what I have thus far, but it only yields the first match:  let str = "123ABC, 123ABC" let results = str.matchAll(/123(ABC)/gi); let [group1] = results; alert(group1[1]);   How can I get the results of the matchAll into one single array? Aka:  // ABC, ABC


How to separate one file or folder with all history from one git repo to another?

Let me explain. For some time I developed some code. Now I want to separate a part and make it open-source. My main problem is to save all commit history, which concerns that files.


Table alignment issues with the style file for the journal of the royal statistical society

So I'm trying to format my paper for submission, and the  seems to be badly mungling tables. Here is a simple example;  \documentclass{statsoc} \usepackage[a4paper]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage{amsmath,amssymb}  \title[Short title]{Statistics Journal Style Guide} \author[Author 1 {\it et al.}]{Author} \address{Affiliation, City, Country.} \email{Author@emailaddress.com}   \begin{document}  \begin{abstract} \end{abstract} \subsection{Sample title} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.    \begin{table} \caption{\label{tab01}A table as an example} \centering \fbox{% \begin{tabular}{*{10}{c}} \em a&\em b&\em c&\em da&\em b&\em c&\em da&\em b&\em c&\em d\\ \hline a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ \end{tabular}} \end{table}  \end{document}   Which compiles to    The caption is way to the left and the table outside the bounds to the right, whereas they should both be centered


How to download a file from a website in C#

Is it possible to download a file from a website in Windows Application form and put it into a certain directory?


Is it not a good idea to use ND filters with a wide angle lens?

I am planning to get my first wide angle lens. Nikon 16-35 F/4 is the one which is on top of my list now and when reading the , I noticed this question and answer.  Q : Can I use a Graduated ND filter with this lens( Lee Filter system)? A : It's not recommended to use a ND filter at a focal length less than 35mm. This will cause a black x or a line in the center of the frame. Not sure what the technical word for this is.  This confuses me. I was planning to get some ND filters so that i can take some long exposures on bright environments. Is this a true statement ? If yes, What are the focal lengths which people usually use NDFilters with (to photograph landscapes)


Check if an object already exists in Java ArrayList

I want to check whether a patient object already exists in an ArrayList queue using the unique ID nhsNumber.  But when I add a patient to the queue who I know already exists in the queue, the following code does not detect it.  Any idea why this is?  public boolean checkIfInQueue(Patient p) {     // set nhsNumber equal to the nhsNumberLabel on the page     String nhsNumber = nhsNumberLabel.getText();     System.out.println("Checking if " + nhsNumber + " already in the queue");      // create boolean to state whether a person is in the queue or not (defaults to false)     boolean isInQueue = false;      for (int i = 0; i < Queue.queue.size(); i++) {       if (Queue.queue.size() == 0) {         System.out.println("Queue is empty");         isInQueue = false;         break;       } else if (Queue.queue.get(i).getNhsNumber() == p.getNhsNumber()) {         System.out.println(p.getFirstName() + " is already in the queue (checkIfInQueue() method)");         isInQueue = true;         break;       } else {         System.out.println(p.getFirstName() + " is not is the queue (checkIfInQueue() method)");         isInQueue = false;       }     }      return isInQueue;   }   thanks, K


given a TextBlock with multiple Runs, how can I specify a relative FontSize? For example, if the TextBlock has FontSize 10, I would like one of the Runs to be 15. But if the FontSize becomes 20, I would like the Run to become 30.


Is the number of decimal places one should provide depended on the sample size?

I remember that I heard something like this, that for a certain sample size one should not give more than $n$ decimal places for location and dispersion parameters e.g. for small samples sizes only one decimal place, for larger ones two or even more.  But I can absolutely find no information on this topic. There is this article:  which has some rules as a table but there is no hints about the sample size.  One interesting thing here is also that the paper states for test statistic, only one decimal place and max. 2 significant places should be given. In a statistics course we were taught to give test statistic results to at least 6 decimal places.


Coordinates of resolution points of a Bezier Curve

How can I print the coordinates of resolution points of a Bezier Curve?


How to create a function to sum the required multiple column

I have a scenario where i want to sum the multiple column   The data in the file is :  ID|NAME|SAL|COST|PER|TAG  1|A|10|10|20|10|  1|B|10|15|20|10|  1|C|10|17|25|80|  1|D|115|110|20|100|  1|E|10|10|10|10|   i want sum of COLUMN - SAL | COST | PER | TAG   one i did with simple command but how to do by creating function  awk '{FS="|"}{s+=$3}END{print s}' file.txt   The function should be parameterised so that when i pass column name it should calculate sum for that column   The sum column's may differ. their may be requirement like only two column sum needed then it should take the two column names and process the sum for that


How much of a game can be protected by law?

I want to remake an old multiplayer game in commercial way and I wonder how different my game has to be not to violate some IP rights. I know so far that name and logo are registered trademarks of the company that still exists so I cannot use it. But ... How about other things such as maps or mechanics of the game? Can this be somehow protected? If I make a new map that will NOT use a single asset from that old map (like textures, sounds or models) but will mimic the old map as much as possible, can this be problem from legal point of view? By mimic I mean for example putting tree in excactly same position as on the old map, but the tree would be completely different model; buildings would have same plans but all the models and walls textures would be different. Also this game has some certain amount of features (players classes, mission scenarios, types of weapons) that are being used in other games commonly so this cannot be patented. But how about given set of these features? For example having given types of classes connected with given missions scnarios and types of weapons can be protected even though seperately they cannot be??? Is that possible?


How to recover data from inaccessible Mac hard drive?

My Mac hard drives become inaccessible, and I don’t have any data backup available at present. What should I do now to recover my deleted data?


Is Software-Engineering beyond the scope of StackOverflow?

Are questions specifically about Software Engineering (modelling, requirements gather, etc) off-topic for StackOverflow?  was closed as off-topic, but it seemed like a good question to me.   It seems to fall under  :   software tools commonly used by programmers practical, answerable problems that are unique to software development   While it's a bit of a stretch, it's no more so than any other UML question and there a lots of those.


How to identify through which access point I am connected?

I am roaming between several access points.  How do I know to which of them I am connected at any given moment?  Command line way is preferred.


I have latest version of Big-Sur installed on my mac. How can I re-download Big-Sur to create bootable usb for Mac?

Sorry for the mistakes -if any- on the title. I have problem. I have a 2015 model macbook air a1465. I will change the ssd. Before that I want to make a bootable usb mac Big-sur. For that I tried to follow the rules on the support.apple web site.  When I click to  link it redirects me to app store. After I click to get button my system tries to update. I've waited update to finish but it turns out it works for nothing. As a result I am here as empty handed. How can I download mac big-sur? Thank you for reading this btw.


Does the Sickening Radiance spell require the target to use their movement for the spell to deal damage?

I just picked up the spell  (XGtE, p. 164) and had a chance to try it out last session. The wording has caused some confusion and a disagreement between myself and my DM. The spell states:  When a creature moves into the spell's area for the first time on a turn or starts its turn there, that creature must succeed on a Constitution saving throw or take 4d10 radiant damage [...]  We were fighting multiple vampires. I cast Sickening Radiance on the enemy group. DM immediately rules that due to the language of the spell, they are not affected by it, since they "haven't started their turn in it" and they "didn't move into it". Okay, fair enough. They'll start their turn there, so I'm not concerned. They start their turn within it and are dealt the damage. They then, logically, move out of the spell, but stand five feet out of it. Their turn ends, and my turn begins. I cast Eldritch Blast twice along with the Invocation Repelling Blast to push two of them 10 feet, which shoves them into the spell's effect area. The DM moves onto the next person; I gently remind him that they need to make Constitution saves for Sickening Radiance. He refuses, stating that the language of Sickening Radiance uses "moves", not "pushed", and therefore is only triggered by the target using their movement, not just any movement into it. I obviously disagree, and argue that it just says "moves into", which they did, as a result of my Eldritch Blast. Obviously DM fiat and all that, so if he says it doesn't work, it doesn't work. But I'm still curious about a rules based answer to this, as it seems like a very strict (and likely incorrect) reading. Does Sickening Radiance require the target to use their movement (i.e. not be forcibly moved) for the spell to deal damage?


As a non-native speaker when I talk to native speakers, I tend to use "Do you want ...." instead of "Would you like....?" e.g. "Do you want we have the meeting in this room?" "Do you want we have lunch in that restaurant?"  My question is do native speakers feel different when I ask them with to want verb? Does it sound unnatural to them? What about "Do you like?" instead of "Would you like?"


There is something wrong with my linux desktop's timezone and its getting changed to "London" sometimes. I have now manually changed it to "Los Angeles/Pacific". But when I run a java program, the timezone is still set to "Europe/London". How do I change it to the Pacific timezone once so that it takes effect for all subsequent programs?  Running "date" shows the following: $date Thu Jul 18 15:27:26 PDT 2013


What are the consequences of a US citizen overstaying a Schengen visa?

According to law, what are the consequences of a US citizen overstaying a Schengen visa?  In practice, how likely is one to be penalized for overstaying by a day, 10 days, and a month?  Are there countries that are more likely to enforce the rules on departure?


What's the purpose of the arbitary additive constants in Einstein's Inertia of Energy Paper?

In Einstein's  Does the Inertia of a Body Depend upon its Energy content? he introduces arbitary additive constants whose purpose I'm confused about.  The paper has a frame $(x,y,z)$ where a body at rest emits plane waves of light in opposite directions, each with an energy $\frac 1 2 L$ at an angle $+\theta$, $-\theta$ to the $x$ axis where the energy of the body before and after transmission is $E_0$ and $E_1$. This process is measured in a frame $(\xi,\eta,\zeta)$ moving along $x$ with velocity $v$, where the energies of the body before and after are $H_0$ and $H_1$. Subtracting the total energy in frame $(\xi,\eta, \zeta)$ from $(x,y,z)$  $$H_0 − E_0 − (H_1 − E_1) = L\left(\frac {1} {\sqrt{1 - \frac {v^2}{c^2}}} -1\right)$$  He writes with my emphasis     The two differences of the form H − E occurring in this expression have simple physical significations. H and E are energy values of the same body referred to two systems of co-ordinates which are in motion relatively to each other, the body being at rest in one of the two systems (system (x, y, z)). Thus it is clear that the difference H − E can differ from the kinetic energy K of the body, with respect to the other system $(\xi,\eta,\zeta)$, only by an additive constant C, which depends on the choice of the arbitrary additive constants of the energies H and E   Obviously the same energy scale is used in both frames when measuring $E$ and $H$, so what's the purpose of these arbitarary additive constants?


combining rows that contain two separate fields of the same value

I have a table formatted like so:  title            source              subject    Bill hits Fred   newspaper 1/1/17    Bill      Bill hits Fred   newspaper 1/1/17    Fred Bill hits Fred   newspaper 1/1/17    Violence Mary likes pie   newspaper 1/4/17    Mary Mary likes pie   newspaper 1/4/17    Pie  Mary likes pie   newspaper 1/4/17    Apple John dies        newspaper 1/4/17    John  John dies        newspaper 1/4/17    Obituary ...   What I need to achieve is a query that finds all rows that have the same value for the title and source fields and combines into one record concatenating the subject field. ie the output for the above data would be:  title            source              subject    Bill hits Fred   newspaper 1/1/17    Bill, Fred, Violence      Mary likes pie   newspaper 1/4/17    Mary, Pie, Apple John dies        newspaper 1/4/17    John, Obituary ...   I figure I need to GROUP_CONCAT but am unsure of the exact syntax to compare title and source across all rows. Something along the lines of :  select title, source, GROUP_CONCAT(subject) from mytable WHERE   ??? <<-- not sure how to word the "title=title and source=source"   SOLUTION: I was missing GROUP BY:  SELECT title, source, GROUP_CONCAT(subject) from mytable GROUP BY title, source


On OSX, how do I route all traffic from Pandora through my WiFi connection?

When I am at work, Pandora is blocked on my LAN. (ethernet connection) We purchased a cable connection and have a wireless router hooked up just for this reason. How do I route all traffic to/from pandora.com through only this interface?  I did it on Linux by creating a static route. I've googled around a bit but can't seem to find anything interface specific. Everything seems to just want me to create a static route based on what my default gateway is. Unfortunately, I use this laptop everywhere... so that changes.


Having 2 hosting accounts in case one of downtime?

I'm looking for a simple solution to increase my website's uptime. My website consists of simple HTML and PHP pages with no database. Right right I use paid shared hosting and I sometimes find that my website is not loading.  Would it be possible to put my website on two hosts and in case the main host is down the other one would get used? What is the best way to set this up?


How to interpret the variance inflation factors?

I have run a Poisson glm and I want to test for multicollinearity in my data. I have used the vif in R and obtained the following result. How can I interpret this?   GVIF Df GVIF^(1/(2*Df))  make    1.083927  1        1.041118 cc      1.093900  1        1.045897 area    1.113460  3        1.018073 insgen  1.029887  1        1.014834 insage  2.484052  2        1.255423 ageveh  1.067675  1        1.033284 marital 2.369840  1        1.539428


When checking via top I see two processes for tomcat7:    PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                                                                15163 tomcat7   20   0 2082064 317976  20816 S 55.4  7.8   0:54.49 java                                                                                964 tomcat7   20   0  194332   5740   1404 S 18.9  0.1 284:09.36 exin   I wonder what exin is doing, why it consumes so much CPU power and why it is running for such a long time?  Searching for "tomcat7 exin" in Google revealed nothing. This is why I am asking here.


Variational Autoencoder: why Gaussian distribution

I'm working with VAE and I got that problem of balacing KL-Divergence and Reconstruction loss, and I'm wondering why use a Gaussian distribution to model the latent space. Is it because we assume that out input follows a Gasussian distribution? My point is that I only get a decent Reconstruciton Loss if I set betha around 0.0001, so I understand that my latent space doesn't look like a Gaussian anymore. And if I set betha to 1, I undestand that my latent space is similar to a Gaussian but the Reconstruction Loss is too high, so I assume that my data cannot be packed into a Gaussian. So... why do we use always a Gaussian? How should I know which distribution is better? Does it depends on the distribution of the input data? Thank you so much!


I would like to change the splash screen of QGIS 3.4 LTR. I read the instructions from  but I didn't manage to change it.  Does the overwrite of the splash screen also work with QGIS 3.4? I tried to add:  [Customization] splashpath=C:\Temp\QGIS-3.4.8-1-64bit\splash.png   to QGISCUSTOMIZATION3.ini, but the splash screen is replaced by with square.  I guess it must be an issue related to the path, must it be relative? Or is the size of the picture important?