I'm developing reStructuredText editor with Tkinter. If i run the below code, i'm getting IndentationError..  from Tkinter import * from tkFileDialog import asksaveasfile as savefile  class RSTkinter:     def __init__(self):         self.pencere_load()         self.araclar()      def pencere_load(self):         pencere.resizable(width=FALSE,height=FALSE)         pencere.title("RSTkinter")      def araclar(self):         h1 = Button(text=u"Başlıklar",command=self.h1p)         h1.place(rely=0.0)          ..         ..          topic = Button(text="Topic",command=self.topic_p) # ..topic:: başlık \n\t içerik         topic.place(rely=0.0,relx=0.63)      def topic_p(self):         topic = Toplevel()         topic.title("RSTkinter - Not")         topic.resizable(width=FALSE,height=FALSE)         topic.geometry("200x140")          topic_b_l = Label(topic,text=u"Topic başlığı: ")         topic_b_l.place(relx=0.0,rely=0.0)          self.topic_b = Text(topic)         self.topic_b.place(relx=0.3,rely=0.0,width=130)          topic_i_l = Label(topic,text=u"Topiç içeriği")         topic_i_l.place(relx=0.0,rely=0.4)          self.topic_i = Text(topic)         self.topic_i.place(relx=0.3,rely=0.5,width=130)          topic_y = Button(topic,text=u"Ekle",command=self.topic_yap)         topic_y.place(relx=0.0,rely=0.2)      def topic_yap(self):         return self.metin.insert(END,"\n.. topic:: %s \n\t%s"%(self.topic_b.get(1.0,END)),self.topic_i.get(1.0,END)))  pencere = Tk() rst = RSTkinter()  mainloop()   Full error:  File "RSTkinter15.py", line 85 topic = Button(text="Topic",command=self.topic_p) #.. ^ IndentationError: unexpected indent   How can I do?


Can you summon a spiritual weapon into the bubble created by Bead of Force? Can whoever is inside cast charm person on someone outside the bubble?

The wording for Bead of Force says "Only breathable air can pass through the sphere's wall. No Attack or other Effect can." which obviously means that spells such as firebolt or ray of sickness could not harm a creature inside. However, what about spells that only require line of sight? I've read the  on Wall of Force, which suggests that you would not be able to do such spells, and the wording is similar to Bead of Force.


Do you get opportunity attacks on creatures that are pushed?

A Tempest Cleric gets the ability to push a creature 10ft away when casting lightning damage on them. If a spell that pushes a target away while they are in close quarters with one of my allies, does the ally get to make an opportunity attack on the creature as it is pushed away?


I'm a Kenyan citizen and I hold a valid Moroccan visa. I'm due to travel to Morocco from Kenya, East Africa via Paris,France later on next month for tourism purposes, will I be needing a transit visa for France given that I will only be having a layover for 3hrs?


I have Samsung Galaxy S5. Is there a way to lock the screen but keep YouTube videos playing?  For example, a particular browser app or add-on that would allow for the audio to continue playing while the screen is off.


What's the difference between It's like to ~ vs It's like ~ing?

What is the difference between using to ~ and verbing after "it's like". For example,   What it's like to leave a company you started What it's like leaving a company you started


Is it necessary to use "the" multiple times?

It seems that the question has eventually become a series of questions....    An example goes as:     The 1st and (the) 2nd paragraphs of the article are extremely long.   Another example:     What are the situation, (the) task and (the) result of your story?   Is it necessary to use the in ()?


why can't i see material on evee but can in cycles?

when i apply material on an object can't see them on render mode on evee. The object becomes transparent also transparent in rendered image but it is working on cycles


I'm now reading Learning PySpark, and in the book, the author first creates a dataframe:  df_miss = spark.createDataFrame([(1, 143.5, 5.6, 28, 'M', 100000),                               (2, 167.2, 5.4, 45, 'M', None),                               (3, None , 5.2, None, None, None),                               (4, 144.5, 5.9, 33, 'M', None),                               (5, 133.2, 5.7, 54, 'F', None),                               (6, 124.1, 5.2, None, 'F', None),                              (7, 129.2, 5.3, 42, 'M', 76000), ],                              [' id', 'weight', 'height', 'age','gender', 'income'])   then he uses this method to calculate the percentage of missing value:  df_miss.agg(*[(1 - (fn.count( c) / fn.count('*'))).alias( c + '_missing')                for c in df_miss.columns ]).show()   What are the two * for, especially the second one? Are there any resources about this kind of expression?? Thanks a lot!


I'm trying to install Emacs for my ubuntu 16.04.1 using the steps mention in  link but at step 4 I got an error but there is some emacs file already installed in my system. When I run sudo apt-cache search emacs there is file showing under these.  So I want to remove those file.  I found this command:  sudo apt-get remove `apt-cache search emacs | awk '{print $1}' --purge   That doesn't work. So please help.


Why does "join selected nodes" into a single node not work?

(Inkscape 1.0/windows10) While looking for a way to merge "overlapping" nodes of the flipped duplicated copy with the original object,(converting objects to path and selecting), and  joining these overlapping nodes with the "Join selected nodes" option,the nodes just don't merge into a single node and break apart when pulled. It does work in the first attempt , but in latter attempts it doesn't. Why does "join selected nodes" into a single node not work and what over alternatives are there for this operation?


test if two normally distributed random variables are equal

Say, I have two normally distributed random variables:  $X \sim \mathcal N(\mu_x, \sigma_x^2), Y \sim \mathcal N(\mu_y, \sigma_y^2)$.  I want to test if $\mu_x = \mu_y$. Further, I assume that these variables are independent of each other. Then, I believe the test statistic would be:  ${\mu_x - \mu_y}\over{\sqrt{\sigma_x^2 + \sigma_y^2)}}$  EDIT:  I want to be a bit more specific. In a journal article they test if two regression coefficients from two DIFFERENT regressions are equal.   So, I want to test if two estimated OLS coefficients from DIFFERENT regression models (the sample size is identical) are different from each other. I assume that the coefficients are independent.


$x^{x^{x^{\dots}}}=2$, what is the value of $x$?

I came up with this little simple exercise, stating:  $x^{x^{x^{\dots}}}$ infinite times is equal to $2$, find $x$.   As we're dealing with infinity, we can just separate the first $x$ and get $x^2=2 \implies x=\sqrt2$  But then I thought what if we change $2$ to $4$? Now we get $x^4=4 \implies x=\sqrt[4]4=\sqrt2$  Something went wrong, can someone explain?


Insert and Update in SQLite (With Visual C#)

Sup, guys. I have a table named 'mains' and 4 columns in it named 'ID', 'Date', 'Adresse' (yea-yea, I know there is mistakes in it) and 'Refills'. I need to INSERT new data if it not exists in table (checking it by ID), or if it exist UPDATE it. Problem is that I getting 'IF syntax error' and I really don't know why. Also, I have some qualm about 'UPDATE' part. Here is my code:  string CommandText = "IF (SELECT '" + Convert.ToInt64(dataGridView2[0, 0].Value) + "' FROM mains IS NULL) INSERT INTO mains (ID,Date,Adresse, Refills) values (" + Convert.ToInt64(dataGridView2[0, 0].Value) + ",'" + Date + "','" + Adresse + "'," + Convert.ToInt64(dataGridView2[3, 0].Value) + ") ELSE UPDATE mains SET Date='" + Date + "', Adresse = '" + Adresse + "', Refills = (Refills + 1) WHERE ID = '" + dataGridView2[0, 0].Value.ToString() + "' END IF";   Without C# (in SQL) it looks like:  IF (SELECT 'numerical id' FROM mains IS NULL) INSERT INTO mains (ID, Date, Adresse, Refills) values (numerical id, 'date converted to string (text)', 'text', number) ELSE UPDATE mains SET Date = 'date converted to string', Adresse = 'text', Refils = (Refils + 1) WHERE ID = 'numerical ID converted to string' END IF


Is the Very Low Quality flag too ambiguous?

The "Very Low Quality" (VLQ) flag reason is really annoying me.   It is the analog to the mommy mommy flag (which my 1.5-year-old child raises quite frequently). It provides no real clue as to what the flagger really wants us to do with the post.   Does she want us to close the question?  Does she want us to edit it into shape?  Does she want us to delete the question?  Does she want us to ban the user?  Does she want us to jump around and have a party?    Should we get rid of this flag reason?   Is it just me? Should and can we replace it with something better?     EDIT I accepted Jeff's answer. The tougher wording has heavily decreased the amount of very low quality flags. We now see only about 25% of the amount we used to and they are usually valid. Additionally, we now only allow very low quality on posts with a score of 0 or lower.


How to make my 3-year-old tell me that he needs to use the potty?

My little boy has just turned three years old. I have only just recently stopped the nappies, but my little one doesn't like the potty. I've worked on that he sits on it with his tablet watching kids programmes and he uses it.   The only problem is that he only uses it when he wants to, most of the time he will just pee anywhere he is stood and I know they do that and accidents happen.   I just get frustrated sometimes as I'm asking him every 5 to 10 minutes if he needs to go potty. I have also done a sticker chart for him but that isn't working either, he still just goes where he wants.   Am I doing something wrong here? Can anybody give me some ideas how to get him to tell me he needs the loo, even though I'm asking him every 5 to 10 minutes if he does!? Any help will be appreciated!


Vertical bar chart with different colors for each bar

I'd like to create vertical bar chart with different color for each bar (each bar represents different landuse)  my current output is    I have alerady tried adding each bar as a different plot, but then it streches immensly and my lables dissapear. Anybody has an idea?  My curernt code  \documentclass[a4paper,onecolumn,oneside,12pt] ... \usepackage{xcolor} \usepackage{tikz} ....  \definecolor{hous}{HTML}{b88b4d} \definecolor{green}{HTML}{79c561} \definecolor{farming}{HTML}{ded94c} \definecolor{trans}{HTML}{b4b4a9} \definecolor{services}{HTML}{ff362e} \definecolor{other}{HTML}{dbd4d3} \definecolor{industry}{HTML}{db79c0} \definecolor{water}{HTML}{7982db} \definecolor{techinfra}{HTML}{303355} \begin{document} \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ ybar, bar width=.5cm, width=\textwidth, height=.6\textwidth, enlargelimits=0.15, legend style={at={(0.5,-0.15)},     anchor=north,legend columns=-1}, ylabel={Share of land use in \%}, symbolic x coords={Housing,Urban green,Farmlands,Transport infrastructure,Services,Other,Industrial,Water bodies,Technical infrastructure}, x tick label style={rotate=45, anchor=east, align=right,text width=3.5cm}, xtick=data, nodes near coords, nodes near coords align={vertical}, ] \addplot coordinates {(Housing,28) (Urban green,28) (Farmlands,12) (Transport infrastructure,10) (Services,7) (Other,6) (Industrial,5) (Water bodies,3) (Technical infrastructure,1)};   \end{axis} \end{tikzpicture}  \end{figure} \end{document}   EDIT  I was able to find a solution, however it did not come from the suggested posts and was not a duplicate. Here's my solution:      \begin{center}     \begin{figure} [H]         \label{landuse}         \begin{tikzpicture}         \begin{axis}[         ybar=-1cm,         axis x line*=bottom,         axis y line*=left,         height=8cm, width=\textwidth,         bar width=1cm,         ylabel={Share of land use in [\%]},         symbolic x coords={Housing,Urban green,Farmlands,Transport infrastructure,Services,Other,Industrial,Water bodies,Technical infrastructure},         x tick label style={rotate=45, anchor=east, align=left},         nodes near coords,         nodes near coords align={vertical}                   ]         \addplot[hous,fill] coordinates {(Housing,28)};         \addplot[green,fill] coordinates {(Urban green,28)};         \addplot[farming,fill] coordinates {(Farmlands,12)};         \addplot[trans,fill] coordinates {(Transport infrastructure,10)};         \addplot[services,fill] coordinates {(Services,7)};         \addplot[other,fill] coordinates {(Other,6)};         \addplot[industry,fill] coordinates {(Industrial,5)};         \addplot[water,fill] coordinates {(Water bodies,3)};         \addplot[techinfra,fill] coordinates {(Technical infrastructure,1)};                     \end{axis}         \end{tikzpicture}            \end{figure} \end{center}   and my current output.   hopefully it will help somebody


What is the accuracy of file creation or modification dates?

Due to some court cases in my jurisdiction, I often see court-appointed experts determining the creation date of a document. Is it really possible to do this via software methods? How could one prove a creation date if a fake date was used before the document was created?  I know this part doesn't belong to superuser but anyhow I was also curious if any hardware methodology would work (to any precision - day/month/year).


Debugger:  java.lang.NullPointerException: Attempt to invoke virtual method 'com.android.volley.Request com.android.volley.RequestQueue.add(com.android.volley.Request)' on a null object reference     at .MainActivity.addRemove(MainActivity.java:234)     at .ListItemAdapter$2.onClick(ListItemAdapter.java:66)   Where is the problem?  public void addRemove(Integer pos, List<ListItem> listItems) {     if (pos!=null){     boolean isSelected=listItems.get(pos).getIsSelected();     final String spotId=listItems.get(pos).getId();     if (isSelected==true){     URL_D=URL_DATA+"api-spot-favorites-add";     }     else{     URL_D=URL_DATA+"api-spot-favorites-remove";     }     StringRequest addRequest = new StringRequest(Request.Method.POST, URL_D,      ........          };          requestQueue.add(addRequest); }   Also the addRemove(pos, listItems) is called in  ListItemAdapter class and it's written in MainActivity class


NVIDIA graphics driver on Macbook Pro 10,1

I just installed 14.04 over my old 12.04 partition on my Macbook Pro 10,1 (which is dual-booting with OS X) by following the instructions . The only difference is that I'm using rEFInd instead of rEFIt. The proprietary NVIDIA drivers worked great with 12.04, but now I'm unable to boot into Unity with it in 14.04.  Generally, I just get a black screen after the Grub menu, though occasionally I get some kind of panic screen like , where I see errors like:   [drm: __gen6_gt_force_wake_mt_get] *ERROR* Timed out waiting for forcewake old ack to clear. [drm: __gen6_gt_wait_for_thread_c0] *ERROR* GT thread status wait timed out [drm: __intel_ring_setup_status_page] *ERROR* render ring: wait for SyncFlush to complete for TLB invalidation timed out   etc.  Using the nouveau drivers works fine, but everything feels sluggish so I would really like to get the NVIDIA drivers working.  Has anyone successfully gotten the NVIDIA drivers working with the GT-650M Mac Edition?


I have some AMPscript that is working when I preview it against data in a Data Extension. No errors.  However, when I make an edit to the Ampscript content block, even if it's just a HTML TXT change to a word and nothing to do with the Ampscript, I get the below error.  ERROR:     An error occurred when attempting to evaluate an Trim function call. See inner exception for details.   Invalid index (parameter 2) passed to Row function. Index must be less than or equal to the row count.    Index Value: 1    Row Count: 0    Function: Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_PRODUCT_NAME", 0), 1)   Content Block:  Snack Club order details:   %%[   var @XML, @nodes, @rowCount  SET @XML = AttributeValue("XML") SET @productRows = BuildRowSetFromXML(@XML, "/root/ITEM", 0) ]%%   %%[   for @j = 1 to RowCount(@productRows) do      SET @productXML = Concat("<item>", Field(Row(@productRows, @j), "XML"), "</item>")     SET @ITEMPRODUCTNAME = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_PRODUCT_NAME", 0), 1), "Value"))      SET @ITEMPRODUCTSKU = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_PRODUCT_SKU", 0), 1), "Value"))      SET @ITEMPRODUCTURL = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_PRODUCT_URL", 0), 1), "Value"))      SET @ITEMPRODUCTIMGURL = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_PRODUCT_IMG_URL", 0), 1), "Value"))      SET @ITEMQTY = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_QTY", 0), 1), "Value"))      SET @ITEMSUBSCRIPTIONPRICE = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_SUBSCRIPTION_PRICE", 0), 1), "Value"))      SET @ITEMTOTAL = Trim(Field(Row(BuildRowSetFromXML(@productXML, "ITEM/ITEM_TOTAL", 0), 1), "Value"))      SET @rowColor = Iif(Mod(@j,2) == 0, "#ffffff", "#efefef")   ]%%   %%[next @j]%%

                      Product         	                      Quantity         	                      Price         	                      Item Total

                      %%=v(@ITEMPRODUCTNAME)=%%         	                      %%=v(@ITEMQTY)=%%	             $%%=v(@ITEMSUBSCRIPTIONPRICE)=%% Each	             $%%=v(@ITEMTOTAL)=%%

                      Shipping Address         	                      Order Subtotal*             $%%ORDER_SUBTOTAL%%

                      %%SHIPPING_ADDRESS_1%% %%SHIPPING_ADDRESS_2%%         	                      Order Shipping             $%%ORDER_SHIPPING%%

                      %%SHIPPING_ADDRESS_TOWN%%, %%SHIPPING_ADDRESS_STATE%%

                      %%SHIPPING_ADDRESS_ZIP%%


Token list with line breaks for writing multiple lines to file

I make use of a package (gnuplottex) that writes contents of an environment to a file, using the \verbatim@start/processline/end commands (by \immediate\write\FileHandle{\the\verbatim@line}). Now I want to modify the package to insert a couple of user-defined lines at the start of every file.  I defined a token list to store the lines and two commands to set these header lines:  \newtoks\headerlines \def\setheaderlines#1{\headerlines{#1}} \def\addtoheaderlines#1{\headerlines\expandafter{\the\headerlines#1}}   The tokens I then write to the file before the \verbatim@start, with \immediate\write\FileHandle{\the\headerlines}. This works fine for a single line, but I need to write several lines to the file, so preserve newlines in the token and write them to the files. Right now, this does not happen: everything gets put on a single line. How do I preserve newlines in the token list and write as separate lines to the file?  In other words:  \setheaderlines{header line 1 header line 2}   gets written to the file as   header line 1 header line 2`   instead of  header line 1 header line 2


I have been wondering what a gold piece is worth, due to the fact there are many things that cost the same, but in reality, are probably worth radically different prices, such as a Goat and a Whip, which both cost 1 gp.  What is a gold piece really supposed to be worth? Like, how would things be priced if they were in familiar modern monetary units instead of "gp"? That would give me something to base my adjustments to abnormal prices on, such as items not listed in the PHB.


Languages like Ruby, Python, Lua, PHP, Node.js, etc. have a simple "shell" where you can type simple one-liners and see the result. Does Perl has something similar? I'm not looking for something fancy that does pretty printing (I'll use print()) or accepts multiline input.  The story is this:  I need to experiment with some regexps. I know I can do perl -e "..." but then I need to shell-escape the code and this complicates matters. If I had a Perl shell I wouldn't need to worry about escaping.


Difference between "//" and "/" in Python 2


Find the remainder when $2^{2016}$ is divided by $47$

What is the remainder when $2^{2016}$ is divided by $47$?   I have done Fermat's little theorem and I have now this:  $2^{2016} \equiv 2^{38} \pmod{47}$  My issue is that $2^{38}$ is too large of a number to work with, how do I continue?


About solving a second order difference equation

Let $r>4$ be a positive integer. I want to solve this difference equation:   $$u_{n+1}-r²(1+r²ⁿ⁺¹)u_{n}+r²r²ⁿ⁺¹u_{n-1}-2r²r²ⁿ⁺¹=0$$ but I have no a good idea to start.


How to calculate standard error of prediction

Is it possible to approximate the standard error of the prediction based on the standard errors of intercept and coefficients?


I'm struggling to prove that $ \varphi\left ( a,b \right )= \frac{x^{3}y}{x^{4}+y^{2}} $ is Gâteaux differentiable at $0$, but not Fréchet differentiable. In other examples that I studied, proving that the function wasn't continuous at $(0,0)$ and that it was Gâteaux differentiable at the same point was sufficient, but I am having trouble to prove the continuity of the function above in $(0,0)$


tl;dr : For SEO, should I redirect from one to the other or list both on the DNS records?    It seems that most experts think that both www and non-www should exist. (Please correct me if I'm wrong.) And Google Webmasters Tools lets you choose which is the main one.  But: will a redirect give all SEO weight to one of them instead of splitting it? (There are other search engines after all, so setting the main one in Google Webmasters Tools might not be enough.) Will having both on the DNS records give them more importance? No difference?


I have a List of colors that I would like to be shuffled and mixed up at least a little.  I create a list using   List<Color> colors = new List<Color> ();  colors.Add(Color.Black);  colors.Add(Color.White);  colors.Add(Color.Red);   But there is no .Shuffle I noticed a .Sort but I don't think that's what I need. I searched for a while but all methods and other questions I found seem to be way over complicated for such a simple task, if there is a simpler way.  I tried using  List<Color> colorList = new List<Color>(); public void SetupColors()     {         List<Color> colors = new List<Color> ();         colors.Add(Color.BLACK);         colors.Add(Color.WHITE);         colors.Add(Color.RED);         Random random = new Random();         int n = colors.Count;          for (int i = colors.Count; i > 1; i--)         {             int rnd = random.Next(i + 1);              var value = colors[rnd];             colors[rnd] = colors[i];             colors[i] = value;         }         colorList = colors;     }      public List<Message> getMessages()     {         List<Message> items = new List<Message>         {             new Message             {                 . . .                  Background = colorList[0]             },             new Message             {                 . . .                  Background = colorList[1]             }         };          return items;     }   but I keep getting IndexBound errors at colorList[0] and colorList[1]


Why do stocks go up? Is it due to companies performing well, or what else?

I searched for this question but I didn't get any convincing answer. What everyone says is that if a company does well (I assume this means the company has good returns on its projects) then people will want to get shares of that company because it's doing well. As such, the demand for stocks of that company will be high, therefore the price of the stock will go up.  What I don't like about that argument is: Why would people want to invest in a company because it does well? I mean suppose a company has bad returns on its projects, but let's say that shares of that company have high demand. Then, again by supply and demand, the price of the stock will go up. So why do people care if a company does well? Because, what I understood from searching the internet, is that the only thing that moves the price of a stock  is simple supply and demand.  So I guess if a company does well, the demand increases, but I fail to see the reason. If a company does well, then it is expected that the total equity of the company will be increasing; however I don't know any relationship between equity of a company and value of a stock. So the whole story would only make sense if there is such a relationship. So is there? and why is it so?


I'm running an OLS and was wondering if the 'Estimate' in my SPSS output is the same as the beta coefficient in a linear regression?  Are there specific assumptions required to run an OLS? I have age, gender and income as my predictor variables and quality perception as dependent variable (measured on a Likert scale). Is OLS appropriate here?  Thank for your help, I really appreciate it!!


As the title suggests, I would like to show that: $$\frac{1}{2\pi}\int^{2\pi}_{0}(2\cos\theta)^{2n}d\theta=\frac{(2n)!}{n!n!}$$ for every positive integer $n$.     How can I go about doing that? I understand the that there are already solutions for the problem: $\frac{1}{2\pi}\int^{2\pi}_{0}(\cos\theta)^{2n}d\theta= {2n \choose n} \frac{\pi}{2^{2n-1}}$. Is there any modifications I can do to obtain the desired solution?


I am aware that faraday cage is used to protect electronics from damage.  However, if I put a signal generator in a faraday cage and turn the signal generator on, can the frequency still be picked up/detected by external sources?  Or will the faraday cage block the frequency signals sent out by the generator?


Filter dataGridView using a TextBox that ignores Case Sensitivity

I am filtering my dataGridView using a text box. It does filter as intended but, I am wanting it to ignore case sensitivity. Here is what I have:   var filter = db.Profiles.Local.Where(x =>x.FirstName.Contains(txtSearchName.Text));   profileBindingSource.DataSource = filter.ToList();   dataGridProfiles.Refresh();   How do I modify this so that it will ignore case sensitivity?  Any help is appreciated.


Xampp is not working properly in ubuntu13.04

I am new to ubuntu operating system and i tried the xampp installation process like the following  steps..  cd ~/Downloads sudo mkdir -p /opt sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /opt sudo /opt/lampp/lampp start   After xampp start it is showing the following message  Starting XAMPP for Linux 1.8.1... XAMPP: Another web server daemon is already running. XAMPP: Starting MySQL... XAMPP: Another FTP daemon is already running. XAMPP for Linux started.   How can i solve this problem. Any suggestions are acceptable...


Proving the continued fraction representation of $\sqrt{2}$

There's a question in Spivak's Calculus (I don't happen to have the question number in front of me in the 2nd Edition, it's Chapter 21, Problem 7) that develops the concept of continued fraction, specifically the continued fraction representation of $\sqrt{2}$.  Having only recently become aware of continued fractions, I'm trying to work my way through this problem, but I'm stuck at the very last stage.  Here's what I've got so far:  Let $\{a_n\}$ be the sequence defined recursively as $$a_1 = 1, a_{n + 1} = 1 + \frac{1}{1 + a_n}$$  Consider the two subsequences $\{a_{2n}\}$ and $\{a_{2n - 1}\}$.  I've already shown that $\{a_{2n}\}$ is monotonic, strictly decreasing, and bounded below by $\sqrt{2}$, and similarly I've shown that $\{a_{2n - 1}\}$ is monotonic, strictly increasing, and bounded above by $\sqrt{2}$.  Obviously, both of these subsequences converge.  Although of course in general, if two subsequences of a sequence happen to converge to the same value, that doesn't guarantee that the sequence itself converges at all (much less to that same value), in the case where the subsequences are $\{a_{2n}\}$ and $\{a_{2n - 1}\}$, it's easy to show that if they both converge to the same value, then so will $\{a_n\}$ (since every term of $\{a_n\}$ is a term of one of the two subsequences).  So no problem there.  In other words, it remains only to show that not only do the subsequences converge, but they converge to $\sqrt{2}$ in particular.  Take, for starters, $\{a_{2n - 1}\}$ (if I can get $\{a_{2n - 1}\}$ to converge to $\sqrt{2}$, I'm sure getting $\{a_{2n}\}$ to converge to $\sqrt{2}$ won't be very different).  Because it's strictly increasing and bounded above by $\sqrt{2}$, it converges to some number $x \leq \sqrt{2}$.  Suppose that $x < \sqrt{2}$.  We want to show this doesn't happen.  But this is where I'm getting stuck.  I feel like I want to take $\epsilon = \sqrt{2} - x$ and show that there exists some $N$ such that $a_{2N - 1} > x$, which would finish the problem due to the monotonicity of $\{a_{2n - 1}\}$.  But this isn't working.  Any hints?  Thanks a ton.


I am running Ubuntu desktop 16.04 I tried to get the kernel sources using the command  apt-get source linux-image-$(uname -r)   as recommended in the Ubuntu wiki. I got the error   E: You must put some source URIs in your sources.list   I searched the web and found advice on editing sources.list, but don't know what specifically I need to do to get the kernel sources. I am new to this; can someone help?


I need help with this simple problem in little-o notation

$\left(x-\displaystyle\frac{x^3}{6}+\displaystyle\frac{x^5}{120} +o(x^5)\right)\left(1+\displaystyle\frac{x^2}{2}-\displaystyle\frac{x^4}{24}+ \displaystyle\frac{x^4}{8}+o(x^4)\right) = x+\displaystyle\frac{x^3}{3}+\displaystyle\frac{2x^5}{15}+o(x^5)$  I got $\ x+ \displaystyle\frac{x^3}{3}+\displaystyle\frac{x^5}{120}-\displaystyle\frac{7x^7}{720}+\displaystyle\frac{x^9}{1440} $  How am I going to get $\displaystyle\frac{2}{15}x^5$? I know that $x^7=o(x^5),x^9=o(x^5)$, but how do coefficients behave?


Many server configuration guides recommend that the SSH port should be changed to something > 1024, for obscurity and to avoid conflicts.  This is interesting, because it recommends using a port < 1024, since it would be privileged:    Any thoughts on this practice?


I have Galaxy Note 3 phone, and its last updated software is KitKat 4.4.2, but I heard that Samsung made it official to the Note 3 to be updated to 4.4.4. Does anybody have an idea how to get the update?


Why are uploaded images stored at Imgur and not Stack Exchange?

If I (or you) upload an image on Stack Exchange, it goes to Imgur. Why has it been developed this way, and not to be stored on Stack Exchange's servers?


Exclamation(!) turned in to question mark(?) in title field

I just submitted a question () with an exclamation (!) at the end of the title (with one space between the word and the exclamation) but it turned in to question mark (?).   I removed the space between the word and the exclamation, then it shows normal.   Is this an intended feature?


Interpretation of a positive interaction term when the two variables are negative

I have the following regression equation: Fertility = - 0.2197 - 0.14986 educ - 0.1646259 rural + 0.0417699 edu_rural Where rural is a dummy variable for Rural area=1 and Urban area=0 ad educ is years of education. How do I interpret the interaction term edu_rural? Edu and Rural are both negative, so its confusing me a little.


Excuse the image of the random cat, but I noticed these random purple spots/lines in all the pictures I've taken today. They're in the same location and in the same shape so have I damaged the sensor?


Prove that there exists a unique function  $f:R^{+}\rightarrow R^{+}$ $$f(f(x))=6x-f(x)$$  My Try Define $a_{k+1}=f(a_k)$ then we have  the recursive relation $$a_{k+2}+a_{k+1}-6a_k=0$$ whose  characteristic equation is $$x^{k+2}+x^{k+1}-6x^k=0$$ $$x^2+x-6=0 \Rightarrow x=-3 ,x=2$$ ie $$a_k=c_1 {(-3)}^k+c_2{(2)}^k$$ .As $x>0 \Rightarrow a_0>0\Rightarrow 2c_2>3c_1$ i am  stuck now as i have not been able to find $c_1,c_2$


Sort ArrayList containing numbers and letters

I have an ArrayList<String> containing a list of 'Building Key' numbers. Forgive me if this has been answered before I am struggling to find a solution by searching. public class SortKeyNumbers {          public static void main(String args[]) {                  ArrayList<String> keys = new ArrayList<>();                  keys.add("1");         keys.add("10");         keys.add("2");         keys.add("3");         keys.add("3B");         keys.add("12");         keys.add("12C");         keys.add("21");         keys.add("32");                  Collections.sort(keys);                  System.out.println(keys);              }      }  This gives me an output of [1, 10, 12, 12C, 2, 21, 3, 32,3B] I know that this is as expected from Collections.sort What I need is an output of [1, 2, 3, 3B, 10, 12, 12C, 21, 32] What I am asking is help to write the correct comparator or compareTo to achieve the desired output.


Power calculation in a Bayesian approach

Can somebody give me a understanding of what power means in a Bayesian approach? Or how you would implement it in a Bayesian simulation.


Why does this return an empty list despite giving $sub=1000. What is the purpose of "$#" in ARGV?  use strict; my $sub = 0; while($sub <= $#ARGV) { print "$ARGV[$sub]\n"; ++$sub; } print "[@ARGV]\n";


Let $X$ be a topological space.  Call $x,y\in X$ swappable if there is a homeomorphism $\phi\colon X\to X$ with $\phi(x)=y$. This defines an equivalence relation on $X$.  One might call $X$ homogeneous if all pairs of points in $X$ are swappable.  Then, for instance, topological groups are homogeneous, as well as discrete spaces. Also any open ball in $\mathbb R^n$ is homogeneous. On the other hand, I think, the closed ball in any dimension is not homogeneous.  I assume that these notions have already been defined elsewhere. Could you please point me to that?  Are there any interesting properties that follow for $X$ from homogeneity? I think for these spaces the group of homeomorphisms of $X$ will contain a lot of information about $X$.


I have installed ubuntu 14.04 and when I try to install citrix recevier I am getting ia32-lbs error?

Please give me the detail procedure for installing citrix in the ubuntu


Using non-numerical ranges in Tikz bar plots

I am trying to draw a horizontal bar plot using Tikz and I would like to use non-numerical tags for the x axis.  More precisely, I have the following diagram:    and I would like to change the numeral tags 1, 2, 3, 4, 5 and 6, by the usual language levels A1, A2, B1, B2, C1, and C2.  The code is   \documentclass{article} \usepackage{pgfplots, pgfplotstable} \usepackage{tikz}                \usetikzlibrary{shapes, backgrounds,mindmap, trees}  \begin{document}  \section{Spanish Level (CEFR)} \begin{center} \begin{tikzpicture}     \pgfplotstableread{ % Table macro       Label      First   Second        Speaking     5          1        Listening    3          1       Reading      2          2       Writing      3          1    }\datatable     \begin{axis}[      axis line style={draw=none},      enlargelimits=.1,      xlabel={CEFR level},      xbar stacked,   % Stacked horizontal bars      xmin=0.5,             tick style={draw=none},      y=-0.5cm,      bar width=0.4cm,      enlarge y limits={abs=0.45cm},      ytick=data,      yticklabels from table={\datatable}{Label},  % Get the labels from the Label column of the \datatable      legend style={at={(.5,-.5)}, anchor=north}    ]      % Plot the "First" column against the data index      \addplot [fill=red] table [x=First, y expr=\coordindex] {\datatable};      \addplot [fill=red!20!blue] table [x=Second, y expr=\coordindex] {\datatable};      %\addplot [fill=red!80!yellow] table [x=Third, y expr=\coordindex] {\datatable};      \legend{certified, de facto}   \end{axis}       \end{tikzpicture} \end{center} \end{document}


Command line shortcuts for changing directory

I'm looking for an easy way to navigate to directories spanning multiple hard drives and want to set something equivalent to a shortcut within the terminal.  In Windows I would accomplish this with mklink and create either symbolic links to jump to the directory, or junctions to append the location to the end of the current file path.  Since this is really just about navigation, it also needn't be a link or anything, maybe there is some environmental variable I could set so that I can cd $myDir (preferable).  Is such a thing possible, or do I just really need to learn my directories better?


See the , wherein two  gamma photons are converted into an electron and a positron via a process that's the reverse of . I do not doubt . However I'm less confident about the Wikipedia . It talks about gamma-gamma pair production, and as far as I know it's in line with what some particle physicists say. It says this:  "From  it can be found that photons cannot couple directly to each other, since they carry no charge, but they can interact through higher-order processes[clarification needed]. A photon can, within the bounds of the uncertainty principle, fluctuate into a charged fermion–antifermion pair, to either of which the other photon can couple".  However as far as I know, a 511keV photon does not spend its life magically morphing into a 511keV electron and a 511keV positron. That’s in breach of conservation of energy. In similar vein the electron and the positron cannot then magically morph back into a single 511keV photon. That's in breach of conservation of momentum. Moreover photons travel at the speed of light whilst electrons and positrons do not - a photon cannot spend its life fluctuating into fermion pairs, if it did it couldn't travel at c. Besides, virtual particles are virtual. As in not real. They aren't short-lived real particles that pop in and out of existence like magic. Instead . Which is why hydrogen atoms don’t twinkle, and magnets don’t shine. On top of all that pair production surely does not occur because pair production occurred. Spontaneously. Like worms from mud. All in all, this explanation for pair production is woefully inadequate. A better explanation is required. So:  How does gamma-gamma pair production really work?     I will give a 500-point bounty to the least-worst answer to the question. One answer will get the bounty, even if I don't like it.


I was given the state space equation, $\dot{x} = -2x + u$ and told to determine the optimal control law $u=-kx$ which minimizes the performance index   $$J = \int_{0}^{\infty} x^{2}\,dt.$$   My approach was to find the state feedback $k$. But since the value of $R$ (positive definite Hermitian) is not given. That means $R=0$. How do I determine the optimal control for this system where $R=0$?


Book about colonists on a new planet where it rains acid

I read a book maybe 20 years ago about a colony ship that arrived at a new planet and quickly went down to live on the surface. Some kind of acid rain came, killing several colonists. There were some creatures, maybe small Chinese dragon-like things, that could neutralize the rain and protect them. It was part of a series I think. It's not:  The Legacy of Heorot (Jerry Pournelle/Larry Niven/Steven Barnes, 1987) The Faces of Ceti (Mary Caraker, 1991) Founding Father (Isaac Asimov, 1965)


Is it possible to use a XOF function as csrng?

Let's say we "seed" a xof function (eg. SHAKE256) with x cryptographically random bytes (enough so that they can't be bruteforced), could said function be used as a cryptographically secure random generator? If so, when should the function be reseeded and start the process over?


In a bash shell script , how to write a loop that goes trough three values

I'm trying to write a shell script using bash for the following problem:     Write a loop to go through three values (A B C) and displays each of these values to the screen (hint use a ‘for’ loop).   I figured out it would be something like this but I'm not sure, so any advice would be much appreciated.  For (( EXP1; EXP2; EXP3 )) do      command1      command2      command3 done


VBoxSVGA vs VMSVGA Resolution Issues on Linux guest

I'm trying to install LMDE (Linux Mint Debian Edition) 3 on a Windows 10 host. I'm having some trouble with the graphics adapters and resolution settings. I read , and specifically Mokubai's answer, which helped me. However, I'm running into some issues that neither the VirtualBox user manual nor Mokubai's answer resolves. I'm still at the stage of running the LMDE Live CD and then trying to run the graphical installer.  So, I initially tried using the VMSVGA adapter because as the  seems to indicate, this is the default adapter for Linux guests and (by inference) should be the one to use. However, when using it I could only get a max resolution of 800 x 600, even with trying to use Hint in Global Settings > Display. I did have 3D Acceleration checked and that seemed fine. The problem with the low resolution was that when I ran the installer, on the first screen alone I couldn't see the whole window and no amount of moving or resizing the window helped. As a result, I just couldn't see enough to click on the Next button.  I finally tried using VBoxSVGA and it did let me use a max resolution of 1024 x 768. This resolution let me see the full installer window, allowing me to click on Next. However, when LMDE Live CD starts, I get a message once I get to the desktop screen that "Cinnamon is currently running without hardware acceleration" and instead "running in software rendering mode".  Any ideas on why this might be? Is VBoxSVGA only supposed to be used for Windows 7+ guests, while even modern Linux guests are supposed to use VMSVGA? If so, then how can I get my resolution higher? And if VBoxSVGA can be used for Linux guests, then how do I get hardware acceleration to be enabled?  Thanks in advance!  Edit: This question is NOT a duplicate of a previous question. My question is not simply about differences between VBoxSVA and VMSVGA but specifically resolution issues I'm having with those two graphics adapters on a Linux guest. In my question, I even reference the other question that Mokubai thought mine was a duplicate of. I edited my question title to hopefully show the difference.


counting android app using with SharePrefrence and doesn't initialize sharePrefrence

I want to create in-app-purchasing duo to control times of using my app with SharedPreferences.  I have  3 activities:   FirstActivity - shows just at the first time MainActivity   MyketActivity-- include SharedPreferences and in-app-purchasing code   FirstActivity shows just at the first time of app running and myket.getLogginTime(1) (loggin_time_SharePrefrence saves 1 time).  next time, app runs from MainActivity and myket.getLogginTime(1) (loggin_time_SharePrefrence saves 2 time).  finally the TIME checks with checkLogginTime.  but as I run my app,it crashed in FirstActivity and showed me:  java.lang.NullPointerException: Attempt to invoke virtual method 'void getLogginTime(int)' on a null object reference                   at myketActivity.java    in FirstActivity.java:    public class FirstActivity extends Activity {          public MyketActivity myketActivity = new MyketActivity(); ...      myketActivity.getLogginTime(1); // this is the first time }   in MyketActivity.class:  public class MyketActivity extends Activity { public static SharedPreferences loggin_time_SharePrefrence; public static SharedPreferences.Editor editor_logginTimer; private int times_of_getting_premium = 2; public static final int loggin_time=0; public BackDialog purchaseDialog;   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.myket);      //in app purchasing     loggin_time_SharePrefrence = getSharedPreferences("times", Context.MODE_PRIVATE);     editor_logginTimer = loggin_time_SharePrefrence.edit();        //loggin_time=loggin_time_SharePrefrence.getInt("times",loggin_time); ...        }//on create public void getLogginTime (int i){     editor_logginTimer.putInt("times",i).commit(); }  public int checkLogginTime(){    int t= loggin_time_SharePrefrence.getInt("times",loggin_time);     return t; }   How can I solve it? Thanks!


What is the best way to clean lenses and filters?

After removing dust with an air pomp and a brush, what are you using to remove stains from the lens and filters?  So far I'm using the liquid from a Giotto's CL 1002 cleaning kit for the lens, but I'm not sure what should I use for the filters, and if there is some better alternative.  Also, what kind of brushes are recommended?


What are the best troops to have in your Clan Castle in Clash of Clans?

Best defensive troops to have in your clan castle?


Let's not wait any longer. He might not turn up.   I would like to know in this sentence, could we use could instead of might? Can these two words be used alternatively?  What's the difference between this two words when come to asking about a possibility?


Is there any way to convert 350 references from word to BibTeX directly?

I have 350 references in my thesis which was written in Word 2016. However, I rewrite it in to LaTeX because of hard fitting tables in word. My only problem is how to convert 350 references to BibTeX? (if there is any way) It will take time and effort to do it manually.


My app crashes when I run it from Android Studio after making a change while it's already running

I'm working on an application in Android Studio that, for some reason, constantly throws the error "Unfortunately, MyApp has stopped".  This only happens if I run the app, make a change to the code while it's running, and then try to run it again.  If I stop the "Run" task and start it again, I don't get this error.  Here's the log:  06-14 15:54:06.213 25752-25752/com.myapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.myapp, PID: 25752 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.activity_host}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.myapp.MB_item.getItemId()' on a null object reference   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)   at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)   at android.app.ActivityThread.-wrap15(ActivityThread.java)   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)   at android.os.Handler.dispatchMessage(Handler.java:102)   at android.os.Looper.loop(Looper.java:148)   at android.app.ActivityThread.main(ActivityThread.java:5417)   at java.lang.reflect.Method.invoke(Native Method)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.myapp.MB_item.getItemId()' on a null object reference   at com.myapp.BT_screen_menuButtons$override.onCreateView(MB_screen_menuButtons.java:119)   at com.myapp.BT_screen_menuButtons$override.access$dispatch(MB_screen_menuButtons.java)   at com.myapp.BT_screen_menuButtons.onCreateView(MB_screen_menuButtons.java:0)   at android.app.Fragment.performCreateView(Fragment.java:2220)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130)   at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1953)   at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:152)   at android.app.Activity.performCreateCommon(Activity.java:6232)   at android.app.Activity.performCreate(Activity.java:6239)   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)    at android.app.ActivityThread.-wrap15(ActivityThread.java)    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)    at android.os.Handler.dispatchMessage(Handler.java:102)    at android.os.Looper.loop(Looper.java:148)    at android.app.ActivityThread.main(ActivityThread.java:5417)    at java.lang.reflect.Method.invoke(Native Method)    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   Why would the code behave differently only on subsequent launches and not when I initially run the app?  Additional code:  This is the line (119 of MB_screen_menuButtons.java) that's throwing the error. screenData.getItemId() is clearly where the null value is being passed but I don't understand why it would only be null during an Instant Run update.  debugger.showIt(fragmentName + ":onCreateView JSON itemId: \"" + screenData.getItemId() + "\" itemType: \"" + screenData.getItemType() + "\" itemNickname: \"" + screenData.getItemNickname() + "\"");


Is it possible to make shopt -s histverify ignore !! (execute it without verifying) but still verify other history expansions, such as !rm ?


Command output to file with dynamic file name

I found  on how to export command output to a file, e.g.  command > myfile.txt   But is there a way I can export to myfileXXX.txt, where XXX is the day of the week, e.g. Mon, Tue, Wed, etc., or even 1, 2, 3, etc., or is there something similar like calendar date of month.


All subgroups normal $\implies$ abelian group

This is , I think an easy problem just that I am not getting the catch of it. How to show whether or not the statement is true?  All subgroups of a group are normal$\implies$ the group is an abelian group?  I have been able to show the other way round.


How to evaluate $\displaystyle \int_0^\infty \frac{\sin x} x \, dx$  I have tried substitutions and integration by parts, but unable to integrate it.


So basically what i have been struggling with is to evaluate sentence in EF Core.  For example if i have:   string condition = "65 < 100 AND 65 > 50"   How can evaluate that?


solve the following equation : $$yy''=y^2y'+(y')^2$$ I have tried this question by using a special case of the second-order differential equation, but I stuck when it comes to three unknown


I have this code:  $('a[href*=#]').click(function() {    $('html, body').animate({     scrollTop: $($.attr(this, 'href')).offset().top   }, 500);    return false; });   But I need a 600ms delay after click the link so my page have chance to perform other actions that I set to 500ms, thank you in advance


I would ask you to.. vs I would like to ask you to

(a) I would ask you to forward the document to the associates in New York (b) I would like to ask you to forward the document to the associates in New York  My understanding was that (b) is the only correct form; (a) can only be used if the speaker has a counterfactual premise in mind, as in "If it were me, I would ask you to forward...." I could come up with a number of situations where (a) might sound natural enough, but at least, (a) does not mean the same thing as (b) under normal circumstances. Recently, however, I keep receiving emails asking me to do something using the construction (a), and they seem to be intended to convey the meaning of (b). Granted, most of them are from non-English speaking countries, but I see this usage so often it makes me wonder: Is it acceptable, or at least common, to make a request -- asking someone to do something for you -- using the form "I would ask you to" as in (a) above? Note: A few people have pointed out my question aoove might be a duplicate of this question:  .  But that page concerns Indian dialects of English and I do not see any connection, unless this usage of "would" as in (a) only, or at least mainly, is common in India. Thank you.


Is it possible to store our own 3D models in Blender?

In Blender we have built-in 3D models (such as Cube, Cone, Suzanne, etc.). These models are placed into the scene by a simple mouse click on a button or a menu item.  Is it possible to use our very own 3D model that can be called when clicking on a specific button in Blender?


Sequence of polynomials converging to $\frac{1}{z}$

Is there a sequence of polynomials converging uniformly to $\frac{1}{z}$ in $K:=\{z\in\mathbb{C}\mid 1<|z|<2\}$?  My first attempt was to use the theorem of Runge which would apply if $K$ would be compact and $\mathbb{C}\setminus K$ connected. As $K$ is not closed, it is not compact. But if I consider the closure $\bar{K}$, then $\mathbb{C}\setminus\bar{K}$ is not connected? So the Theorem can not be applied here? Any other hints?


2D helicopter game, how to create corridor walls?

I'm looking into adapting the classic "helicopter" game (i.e. ), but I haven't yet figured out how to create the walls-generation engine.  Any pointers into the pseudocode? I'm not so interested in the objects in the middle- only the methodology for generating the sides in a way which increases with difficulty (closes in more, has more unexpected curves) as the game progresses.


How can I switch from Survival to Creative?

Just like the title states, I'd like to switch from Survival Mode to Creative. Is that possible?


"Recursive" Wildcard DNS for Amazon Route 53

The title of the question might be misleading because I'm not an expert and I'm trying to learn the proper terminology.  That being said, I'm wondering if it's possible to setup a wildcard DNS record for any number of dot separation in domain names and have them all point to the network root.  This is for WordPress multisite, users will have the option of choosing a mapped domain name, I want to configure my DNS so that both mysite.co.uk.network.com and mysite.com.network.com are valid (I realize this is a but ugly, but WordPress multisite requires that each site have a unique site_url and I'd prefer to preserve the period-delimited appearance if it's possible).


How to create a long table with 16 columns and that fit on one page?

I would like to know how to construct a table with 16 columns and that fit on one page. Can anybody help me?  \begin{center}  \begin{longtable}{|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \caption{Trabalhos Selecionados após critérios de Seleção}  \label{tab:laal} \\  \hline \multicolumn{1}{|c|}{\textbf{Identificador}} & \multicolumn{1}{c|}{\textbf{Autores}} &  \multicolumn{1}{c|}{\textbf{Ano}} &  \multicolumn{1}{c|}{\textbf{Titulo}} & \multicolumn{1}{c|}{\textbf{Resumo}} &  \multicolumn{1}{c|}{\textbf{Benefícios}} &  \multicolumn{1}{c|}{\textbf{Limitações}} &  \multicolumn{1}{c|}{\textbf{Padrão de Projeto}} &  \multicolumn{1}{c|}{\textbf{Elementos/Padrões Arquiteturais}} &  \multicolumn{1}{c|}{\textbf{Tecnologias (frameworks, APIs)}} &  \multicolumn{1}{c|}{\textbf{Modelo de Acessibilidade}} &  \multicolumn{1}{c|}{\textbf{Nível Acessibilidade}} &  \multicolumn{1}{c|}{\textbf{Tipo de Deficiência}} &  \multicolumn{1}{c|}{\textbf{Tecnologia Assistiva}} &  \multicolumn{1}{c|}{\textbf{Linguagens}} &  \multicolumn{1}{c|}{\textbf{Tipo de Avaliação}}  \\ \hline \endfirsthead  \multicolumn{16}{c}% {{ \tablename\ \thetable{} -- continuação  da página anterior}} \\ \hline  \multicolumn{1}{|c|}{\textbf{Identificador}} & \multicolumn{1}{c|}{\textbf{Autores}} &  \multicolumn{1}{c|}{\textbf{Ano}} &  \multicolumn{1}{c|}{\textbf{Titulo}} & \multicolumn{1}{c|}{\textbf{Resumo}} &  \multicolumn{1}{c|}{\textbf{Benefícios}} &  \multicolumn{1}{c|}{\textbf{Limitações}} &  \multicolumn{1}{c|}{\textbf{Padrão de Projeto}} &  \multicolumn{1}{c|}{\textbf{Elementos/Padrões Arquiteturais}} &  \multicolumn{1}{c|}{\textbf{Tecnologias (frameworks, APIs)}} &  \multicolumn{1}{c|}{\textbf{Modelo de Acessibilidade}} &  \multicolumn{1}{c|}{\textbf{Nível Acessibilidade}} &  \multicolumn{1}{c|}{\textbf{Tipo de Deficiência}} &  \multicolumn{1}{c|}{\textbf{Tecnologia Assistiva}} &  \multicolumn{1}{c|}{\textbf{Linguagens}} &  \multicolumn{1}{c|}{\textbf{Tipo de Avaliação}}  \\ \hline  \endhead  \hline \multicolumn{16}{|r|}{{Continua na próxima página}} \\ \hline \endfoot  \hline \hline \endlastfoot  \end{longtable} \end{center}


Newton's laws states that for every action there is an equal and opposite reaction. That is why we do not sink in ground because we apply a force of mg on the ground and the ground responds with a reaction force whose magnitude is equal to mg but is opposite in direction. This makes us able to stand on ground but when we stand on sand then we sink in it beacuse instead of applying a reaction force equal to mg, the sand moves away. So my question is that if the sand does not apply a reaction force then does it violates Newton's third law.


Deploying a java JNI (contains C++ code) application on eclipse

I am trying to develop keylogger application that contains a mix of Java and C++ code. But I don't know how to deploy it in Eclipse IDE. Where I have to put the .dll, .lib and C++ files inside the Java project.


Can someone help me to clarify this. Is the word Jesus' feet pronounced as "Jesuses feet" or simply "Jesus feet"?  I read up some articles and most of them said both versions are correct.  However, when I was in London recently, I heard St. James' Park pronounced as "St. Jameses Park."  I am not sure whether it was spelt as St. James' Park or St. James's Park.  Should it then be Jesus's feet?  Much appreciated!  Petra


I am learning Latex, and in an effort to increase my understanding, I decided to take all of my notes this semester in it. In my stats course, we did the classic M&M color distribution thing, and I want to include a bar chart in my notes. Both of the methods I have tried give undesirable results.   If I do one plot, then they are all the same color, as in the first example I give.   If I do multiple plots, the spacing between is the bars is ridiculous. I have looked for commands to specify a list of colors, or shrink the spacing between plots, and come up empty.   CODE  \documentclass{report} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} \begin{document}  \begin{tikzpicture} \begin{axis}[     title = Number of M \& Ms by Color,      ybar,     ymin=0,     ymax=30,     symbolic x coords = {Blue, Brown, Green, Orange, Red, Yellow},     xtick={Blue, Brown, Green, Orange, Red, Yellow} ] \addplot %Blue     coordinates {(Blue, 19) (Brown, 14) (Green, 27) (Orange, 18) (Red, 17) (Yellow, 17)};  \end{axis} \end{tikzpicture}  \begin{tikzpicture} \begin{axis}[     title = Number of M \& Ms by Color,      ybar,     ymin=0,     ymax=30,     symbolic x coords = {Blue, Brown, Green, Orange, Red, Yellow},     xtick={Blue, Brown, Green, Orange, Red, Yellow} ] \addplot [fill=blue] %Blue     coordinates {(Blue, 19)};  \addplot[fill=brown] %Brown     coordinates {(Brown, 14)};  \addplot[fill=green] %Green     coordinates {(Green, 27)};  \addplot[fill=orange] %Orange     coordinates {(Orange, 18)};  \addplot[fill=red] %Red     coordinates {(Red, 17)};  \addplot[fill=yellow] %Yellow     coordinates {(Yellow, 17)};  \end{axis} \end{tikzpicture}  \end{document}   I would like something similar to this.


Can't learn the third Word of Power from Wulfgar

I'm playing Skyrim on Xbox 360 with no DLC.  I have completed all the main quests until the Horn of Jurgen Windcaller and before I completed it I messed around with the game doing side quests and other things and I have logged a good 100+ hours. I'm level 39 and when I go to complete the quest and have Wulfgar teach me the third Word of Power but he won't do it.  I have tried talking to him and nothing, All the Greybeards are in the middle of the room except Arngeir which is waiting to be talked to about the Throat of the World quest so he is no help.  I am stuck so I made a new account (still have this glitches one) and did the main storyline everything worked on it. I don't want to start on my level 11 Orc because I have done too much stuff on my Nord. I have 6 Dragon Priest masks, level 100 smithing, almost all the Daedric Artifacts and a ton other things.  Any help would be greatly appreciated.


Two disjoint spanning trees, spanning subgraph with all even degrees

Show that if a graph has two edge-disjoint spanning trees then it has a connected, spanning subgraph with all degrees even.   I start by looking at the union of the two spanning trees. I know it has $2n-2$ edges and is connected. But I don't know where to go from there. Perhaps it has to do with Euler circuits? If I prove the union has a Euler circuit I can just take the circuit and then the degrees are all $2$.


Switched from 18.04 to 20.04 cannot use Desktop icons normally

So I've switched from 18.04 to 20.04, I copied my whole user data and recopied them back to 20.04. So that includes desktop as well, but now I cannot double click to open files, cannot move files to the Desktop from other folders, the Desktop reorganizes itself weirdly and stuff like that. I just installed the fresh 20.04 LTS.


What are the different colors on the unity launcher icons?

Example:      My question is simple.  What are the different colors representing in the unity launcher background for each icon.  I mean, it seems consistent (firefox is always orange), but it's not jumping out at me what the pattern is.  On my screen, it's:   Firefox: Orange Chrome: Yellow Terminal: Grey RDP App: Blue KeyPassX: Green NetBeans: Blue   I'd like to turn it off if possible, but first I'd like to understand more about it.  Any launcher experts?


The shortest distance between two points on a sphere

The shortest distance between two points $P_{1}(x_1,y_1,z_1)$ and $P_{2}(x_2,y_2,z_2)$ is given by  $d=\sqrt{(x_1-x_2)^2+(y_1-y_2)^2+(z_1-z_2)^2}$.       If both $P_1$ and $P_2$ lie on the sphere   $(x-x_0)^2+(y-x_0)^2+(z-z_0)^2=r^2$, then what is the length of the   shortest path between the two points such that the path lies on the   surface of the sphere?     The formula for distance written above will not work to solve this problem.    How to express the length of the shortest path that lies on the sphere in terms of $x_0,y_0,z_0,x_1,y_1,z_1,x_2,y_2,z_2,$ and $r$?    I think the arc length using integration is the right way, but I am struggling with it. Any help will be appreciated.


Why did Crouch Jr. transform into a healthy version of Moody?

How could Barty Crouch Jr. assume Mad-Eye Moody's healthy figure, if he was taking Polyjuice Potion taken from a feeble and weak Moody? Isn't the Polyjuice Potion supposed to make you look like the person you want to turn yourself into in the exact way this person looks at the moment when the potion is taken? I would think that Barty Crouch Jr. would be looking weaker and weaker along with the decay of the real Moody locked in the trunk.


Is it Possible to Concatenate variable in Split Regexp in Javascript? Eg: var.split(/[A-Z]/+ variable + / \d/);

Regexp Javascript , is it possible to concatenate ?  Ex 1: (Working Example)  var reg = new RegExp(/(\d+): ([A-Za-z0-9çÇáéíóúãõÁÉÍÓÚÃÕ]+): ([A-Za-z0-9çÇáéíóúãõÁÉÍÓÚÃÕ]+)/); var arr = all_titles.split(reg);   I'm trying to do it but I can't figure it out how to concatenate, cause I actually want to concatenate a variable in it, but if I add the Quotes it just doesn't work.  Ex 2:  var reg = new RegExp("/(\d+): ([A-Za-z0-9çÇáéíóúãõÁÉÍÓÚÃÕ]+): ([A-Za-z0-9çÇáéíóúãõÁÉÍÓÚÃÕ]+)/"); var arr = all_titles.split(reg);   The Example 2 doesn't work for some reason (without even any concatenation of variable), then I stripped the delimiters and still didn't work.  What I want to do is get something like this ->   20: lalalalala: whateverIsWritten  var variable = "lalalalala"; var reg = new RegExp("/(\d+): "+variable+": ([A-Za-z0-9çÇáéíóúãõÁÉÍÓÚÃÕ]+)/"); var arr = all_titles.split(reg);   Thanks in advance!


retaining highest match from a column for a uniq ID

I have a tab delimited file with many columns:  1   A   10  1.94E-31       N/A   N/A    bat 1   B   20  1.94E-31       N/A   N/A    bear 1   C   12  1.94E-31       N/A   N/A    dear 1   D   36  1.94E-31       N/A   N/A    quinoa 1   R   55  1.94E-31       N/A   N/A    quinoa 2   E   48  1.94E-31       N/A   N/A    cat 2   F   62  1.94E-31       N/A   N/A    cat 2   G   49  1.94E-31       N/A   N/A    dog 2   H   13  1.94E-31       N/A   N/A    whale 3   I   28  1.94E-31       N/A   N/A    snake 3   J   95  1.94E-31       N/A   N/A    lion 3   K   64  1.94E-31       N/A   N/A    elephant 3   L   38  1.94E-31       N/A   N/A    dog 3   M   19  1.94E-31       N/A   N/A    fox 3   N   97  1.94E-31       N/A   N/A    eagle 3   O   84  1.94E-31       N/A   N/A    parrot 3   P   64  1.94E-31       N/A   N/A    insect 3   Q   13  1.94E-31       N/A   N/A    shark 3   R   49  1.94E-31       N/A   N/A    rat   I want to retain rows with unique ID having largest number in column 3:  1   R   55  1.94E-31       N/A   N/A    quinoa 2   F   62  1.94E-31       N/A   N/A    cat 3   N   97  1.94E-31       N/A   N/A    eagle   My real file is having headers and column 3 contain numeric with decimal.


Why is my scanner producing all black images?

I have a HP PSC 1410 printer with a built-in scanner. I've been scanning documents and images with it for the last couple of years. Recently my scanner has stopped performing as expected and I can't scan or copy images\documents.  My problem is that every images\document I'm trying to scan - the result from the printer is a black page. I've been googling about this issue and couldn't find any helpful stuff beside replacing the whole printer - which is something i'm trying to avoid.  Any ideas ? I've read something about the shipping lock of the scanner but couldn't find any information about how to check it. Is this something that can be repaired, or do I need to get a new scanner?


How do I set a Boolean field with "yes" and "no" values?

I have a content type, I'm trying to add a field that's a boolean. I want the options to be yes or no. This is something I thought would be relatively simple however, I keep getting an error message. I've attached 2 screenshots. 1 is the configuration for my boolean. The other is the error message my site gets. Can someone help me. What am I doing wrong?


Twice today I noticed that my reputation increases with 15 on Stack Overflow, but when I click to see my account, the change is being reverted and none of my recent answers are marked as accepted. Then why does the reputation on the top of the page change ?


I have this code: driver = ogr.GetDriverByName('KML') data = driver.Open(kmlFile) layer = data.GetLayer()  geom = nextFeature.GetGeometryRef()  print(geom.ExportToJson())  I am trying to export any kind of output like GeoJSON or WKT but; { "type": "MultiPolygon", "coordinates": [ [ [ [ 33.228451, 39.725639, 0.0 ], [ 33.18737, 39.653671, 0.0 ],  [ 33.234299, 39.644131, 0.0 ], [ 33.280369, 39.671131, 0.0 ]  the output is something like this and looks like the geometry that comes from KML file is in 3D projection or something, or at least the program thinks it is. Here is the spatial reference if you need to know: {   "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json",   "type": "GeographicCRS",   "name": "WGS 84",   "datum": {     "type": "GeodeticReferenceFrame",     "name": "World Geodetic System 1984",     "ellipsoid": {       "name": "WGS 84",       "semi_major_axis": 6378137,       "inverse_flattening": 298.257223563     }   },   "coordinate_system": {     "subtype": "ellipsoidal",     "axis": [       {         "name": "Latitude",         "abbreviation": "lat",         "direction": "north",         "unit": "degree"       },       {         "name": "Longitude",         "abbreviation": "lon",         "direction": "east",         "unit": "degree"       }     ]   },   "id": {     "authority": "EPSG",     "code": 4326   } }


How to add row number based on distinct attribute value in QGIS (version 2.18.13)?

I have several layers (shapefiles) that have data in groups. Each group has a distinct group name. I am trying to number each item in the layer based on its distinct group name.     So, for each group I want to add a serial number for each object. For example group "broadst" = 1....7, group "crew" = 1......6 and so on.     Manually this can be done by sorting and selecting each group and adding a sequential number using rownumber.  But I have a large dataset and it will take a long time. Is there a plugin or would it be possible to use the field calculator using some form distinct filter based on group name?


null pointer exception when passing file name to method of another class

public class ReservationSystem {     static Service p;    public static void main(String[] args) {         String filename = null;    if(args.length == 0)    {       System.out.println("Improper format: filename needed");       System.exit(0);    }    filename = args[0];    File a = new File(filename);    try     {      if (a.exists())      {        System.out.println("File already exist, will proceed to Menu");        p.readfile(filename);        menu();      }      else       {        a.createNewFile();        System.out.println("New file created, will proceed to Menu");        menu();      }    }   I'm having null pointer exception when trying to pass filename into method of another class. the error is on this line p.readfile(filename);. Can someone suggest a way to fix this.I'm trying to debug this, but I don't understand why the system gave that error when I'm only trying to pass in a string, by the way, the file exist and I was able to trace it until the line of error.


Security for selling MacBook Pro for parts

I'm looking at selling my MacBook for parts.  It's completely broken: it won't turn on or charge.  Is it possible to obtain files from it? If so, what security measures should I be taking?  Should I be removing the hard drive or do I not have to worry about it?


Let's say I'm running a simple server and have accept()ed a connection from a client.  What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How can the server detect or handle this?


Bivariate normal and truncated expectation

What is the expectation $$\mathbb E[X_1 \lvert X_1 > X_2]$$ assuming that $$(X_1,X_2) \sim \mathcal MVN(0,\Sigma),$$ with $\mathcal{MVN}$ being the multivarite normal. I would expect this to have an answer somewhere, but I cannot seem to find the duplicate. The closest I came was this . ANSWER To arrive at the answer using the question that has be referred to as a duplicate a little work is required. I will sligthly generalize the answer because that is the result I need so instead of solving for $\mathbb E[X_1 \lvert X_1 >X_2]$, I will solve for $$\mathbb E[X_1 \lvert X_1 >X_2 + u] $$ First note that $$\mathbb E[X_1 \lvert X_1 >X_2 + u]  = \mathbb E[X_1 \lvert U> u],$$ with $U:=X_1-X_2$. From properties of the multivariate normal it follows that $$\begin{bmatrix}1&0\\1 & -1 \end{bmatrix}\begin{bmatrix}X_1\\X_2 \end{bmatrix} = \begin{bmatrix}X_1\\U \end{bmatrix} \sim \mathcal{MVN}(0,D\Sigma D^\top)$$ where $D$ is matrix premultiplied on $(X_1,X_2)^\top$. From the duplicate (the equations given in the question of the duplicate and taken from wikipedia, not the answer itself) it follows that $$\mathbb E[X_1 \lvert U > u] = \mu_{X_1} + \frac{\sigma_{X_1,U}}{\sigma_U} \left( \frac{\phi((u-\mu_u)/\sigma_u)}{1- \Phi\left((u-\mu_u)/\sigma_U \right)} \right) = \frac{\sigma_{X_1,U}}{\sigma_U} \left( \frac{\phi(u/\sigma_U)}{1- \Phi\left(u/\sigma_U \right)} \right),$$ where the last identity follows from $\mathbb E[U] =0$ and  $\mathbb E[X_1] = 0$. Furthermore, $$\sigma_{X_1,U} = \sigma^2_{X_1}-\sigma_{X_1,X_2},$$ implying that $$\frac{\sigma_{X_1,U}}{\sigma_U} = \frac{\sigma_{X_1}\sigma_{X_2}}{\sigma_U}\left( \frac{\sigma_{X_1}}{\sigma_{X_2}}-\rho_{X_1,X_2} \right).$$ Another related post is this post on


Two meshes close together are breaking apart in view and render. Possible fix or built-in feature?

this specific problem is something that I knew about for quite a long time but have been able to work around until now.    There is a wall behind the set of bricks, and since both objects are very close to each other, (though not touching), the view presents a choppy and ripped up version of the mesh I need.  Is there a way to prevent this? In the settings of the camera or blender at all? Is it a built in function or is it something I can turn off?  Thank you for any help.


How does cross-validation overcome the overfitting problem?

Why does a cross-validation procedure overcome the problem of overfitting a model?


I was working on a problem from a MOOC, and had to give up and look at the solution. But I am not sure about a particular part of this solution. Here is the code:  def playGame(wordList): """ Allow the user to play an arbitrary number of hands.  1) Asks the user to input 'n' or 'r' or 'e'.   * If the user inputs 'n', let the user play a new (random) hand.   * If the user inputs 'r', let the user play the last hand again.   * If the user inputs 'e', exit the game.   * If the user inputs anything else, tell them their input was invalid.  2) When done playing the hand, repeat from step 1     """  turn = 0 user_input = ""  while user_input != 'e':     user_input = raw_input("Enter n to deal a new hand, r to replay the last hand, or e to end game: ")      if user_input == 'r' and turn ==0:         print "You have not played a hand yet. Please play a new hand first! \n"      elif user_input == 'r' and turn > 0:         playHand(hand, wordList, HAND_SIZE)      elif user_input == 'n':         hand = dealHand(HAND_SIZE)         playHand(hand, wordList, HAND_SIZE)         turn = 1      elif user_input !='e':         print "Invalid command."   How is it possible that the value of hand doesn't reset to a new value? So for example, user input is "n" the first time around, and second time around the input is 'r'. Shouldn't there be no value for the hand variable? But in reality the value for hand is staying the same. Doesn't everything in the while loop reset when coming back around? Or am I wrong?


I am using the PostGIS Manager Load data to PostGIS tool on a Windows install and am getting the following error:  Something's wrong: ["'shp2pgsql' is not recognized as an internal or external command,\n", 'operable program     or batch file.\n']   Does anyone have any ideas as to what is wrong?  I am trying to append to an existing table.  Thanks...


Multiple SPF records for multiple domains

We have recently started using Office 365 for our email, which requires us to add a DNS TXT record with the value v=spf1 include:spf.protection.outlook.com -all. We already have an SPF record with the value v=spf1 include:spf.mandrillapp.com ?all for Mandrill, an SMTP sender we also use.    My concern is this might cause some conflict. Is my concern valid or will be be fine with these two SPF records?


Is it okay to copy a game's formula? (damage, etc)

Is it okay to copy a game's formula? Formulas like damage formulas, taking the stats STR, DEX, INT, critical rate, etc. into account. Specifically I want to copy Ragnarok Online's damage . But I will probably remove some stuff from the formula to reduce the scope of my game.       Your question has been identified as a possible duplicate of another question.   I think game formulas and the like are different from game mechanics. Game mechanics is how the game is played.


Meaning of the direction of the cross product

I was doing calculations with torque and then I came across something very confusing:  I understand that the magnitude of the torque is given by product of the displacement(from the center of rotation) at a point and the force applied at that point. This magnitude perhaps, says something about how "powerful" the rotation is. The question that confuses me, however, is what does the direction of the  tell? The direction is perpendicular both to the force and the displacement. What really is this the direction of?


Among any three consecutive positive integers one is a multiple of 3

If $8q,8q+1,8q+2$ are consecutive positive integers, then prove that at least one among them is a multiple of $3$.  One proof is that by expressing $8q=3m+r$. Is there any other way of doing it without taking $8q=3m+r$?


It's been asked already in many places but all the answers literally everywhere are out of date, eg.   Here's how it looks like today, I have a video and I want to share it with one and only person on YouTube, the others should not be able to access it even if they guess the link (so "Unlisted" is not an option).  I must admit that YouTube's UI is a nightmare for me, I've been using Google's products for many years now and even stuff like Google Analytics is more obvious than this, for example, my video is not listed on My Channel (I know it's private but shouldn't I see it?) so I have to access it through YouTube Studio and even there "Dashboard" is empty, but when I click on "Videos" I can finally see it but I can't allow anyone to watch it (check the screenshot), have they stopped allowing it? What's the purpose of private videos then if I can't share it at all?


Which Stack Exchange site is best for Microsoft Excel questions?

Which Stack Exchange is the best site to ask questions about Microsoft Excel (as well as potentially other Microsoft Office and  questions)?


Dedicated server IP reputation good and not blacklisted but still getting bounced?

I have had my dedicated server for 2 months or so, having transferred from a different, very expensive, old and slow dedicated server, for all those reasons. Initially it got onto 1 or 2 blacklists which I hastily got them off (I now have a monitor on this with mxtoolbox.com) and my new IP address now has a good reputation on every checker I can find and a score of 97 on SenderScore. I have set up my clients domains with the appropriate rDNS, DKIM and DMARC DNS records and as a result they score either a 9/10 or 10/10 rating on mail-tester.com but I have daily reports from my clients of experiencing bounce backs from people they have been sending emails to successfully for years! These seem to mostly be returned with the following error:  550 rejected      is temporarily blocked  or  550 5.7.1     : Recipient address rejected  My server is a Linux server running Plesk Onyx. It runs Postfix as it's mail server and Dovecot as the POP3/IMAP server. It allows relaying but only with SMTP authorisation (I have to allow this as one of my largest clients uses Shopify and requires relaying to be allowed). I'm not an expert in this particular field (I'm a developer and app programmer) but I have SpamAssasin working on all accounts with a low threshold of 4 as people have been receiving a lot of spam in the past and I wanted to sort it with this new server. I also have other things in place to protect from incoming spam, but it's this outgoing bouncing that's really bothering me... what more can I do when everything I check tells me I have a decent server setup and reputation?! Expert help needed!!  I should add that none of my customers have sites that allowing spam to be sent through them and none are sending abusive mass emails.


Dual boot ubuntu on Dell windows 10 laptop

I use a DELL Inspiron 5584 laptop running on Windows 10 and it has UEFI.What procedure should I follow to dual boot ubuntu alongside without loosing the HDD data.


Split polygon with selected line from another layer in QGIS

I am trying to split a selected polygon ("regions") with a selected line from another layer ("streets") in QGIS 3.8.3. In the example below, I want to split the selected polygon coloured in yellow with the street pointed at by the blue arrow.    After reading the post , I realized I can't find it either. I installed the plugin, but the tool seems to be missing from my toolbar:


If a play ends with two runners at the same base who is safe?

In baseball if a play ends and two base runners are at the same base who is safe and who is out? Does the situation change if one of the runners can be forced?


Convert a hexadecimal string array to int values

I'm pretty new to java and I am trying to to convert this string array with hexadecimal values into an int array. I have no clue how to do it.   import java.io.*; import java.util.*;  public class cruzD_OSpgm2 {      public static void fileReader()     {         ArrayList<String> ramChipList = new ArrayList<String>();         try          {            BufferedReader br = new BufferedReader(new                 FileReader("RAMerrors"));            String sCurrentLine;            while ((sCurrentLine = br.readLine()) !=null)            {                ramChipList.add(sCurrentLine);            }         }         catch (IOException e)         {             e.printStackTrace();         }             String[] ramChip = new String[ramChipList.size()];         ramChip = ramChipList.toArray(ramChip);     }      public static void main(String[] args)     {         fileReader();     } }   here are the 4 hex values  ABCDEFABC 1A00D0000 7A0EDF301 3CDAEFFAD


How does one determine the relative merits of the "4 to 1" versus "2 to 1" trade terms in Catan?

At first blush, the right to acquire a scarce resource for only two units of your "abundant" resource is an advantage over having to trade four units of the same resource. But because of "side" conditions, that is not always true in Catan. There are five resources. Call them A, B, C, D, and E. Let's say that E is the scarce resource. You can either build a road followed by a port settlement to access either a "2 to 1" harbor or else you can trade at a "4 to 1" ratio (these are references to the required payments for the scarce resource ) with no strings attached. The "catch" is, at the "4 to 1" rate, you can trade any of the four other resources at that ratio, whereas at a "2 to 1" harbor, you can trade only one specific resource, say, D, for E, at the favorable 2 to 1 ratio. On the other hand, you do not have to build a port settlement to trade at the 4 to 1 ratio, whereas you need to do so to trade at the 3 to 1 and 2 to 1 ratios. Maybe the question resolves into the following: You want to trade for E, and D is "only" your third most abundant resource (out of four), with A being very abundant, and B being more abundant than D. How do players determine whether they should aim for the 4 to 1 "straight up" ratio where they can trade A or B (or even D) at that ratio for E, versus needing to build a port settlement where they can only trade D at the ratio of 2 to 1? Note: Someone pointed out that the original question about the comparison of a 2 to 1 versus 3 to 1 trade ratios was a duplicate of another question. I had planned a follow up question about the comparison of the 2 to 1 trade terms versus the 4 to 1 trade terms, and reworded the original question into this "followup" form, which I believe is not a duplicate. One important difference with the other question is that you do not need to build a port settlement to trade at the 4 to 1 ratio, whereas you need to do so to trade at the 3 to 1 ratio.


$z^{3}$ is the conjugate of $z\in\mathbb{C}$

We have this problem in math class at computer science department and we students can hardly agree on that. The problem is the following.      We were asked to solve:   $$z^3 = \overline{z}$$   where $z=a+b\text{i}$ ($a,b\in\mathbb{R}$), i.e.   $$(a+bi)^3 = a - bi.$$   Now some students used the De Moivre formula and got $3$ solutions while others used algebra and found $5$ solutions: $\{1, -1, i, -i, 0\}$  More details:  Well, some students used the De Moivre:   $$r^{3}\text{cis}(3\theta) = r\text{cis}(-\theta)$$  and then split the equation to the forms of:  $$r^3 = r$$  and so $r$ can be $1$ or - because $-1$ falls ($r\geq 0$), and   $$3\theta = \theta + k \cdot 2\pi$$   if I remember right, and then for $k = 0, 1, 2$, they got some answers. But again, every student got different answers and we are all confused. Is it even possible to get $5$ answers to "$z^3$-form" equations?


How to capture rays of light in a photograph using a DSLR camera

I'm using Nikon D750 DSLR camera.  How can I capture the rays of light as represented in these two black and white photographs?  I mean in terms of ISO, aperture and shutter speed and filter use.   by Fan Ho   and    by Hal Morley


Integer polynomial and division by binomial

If I have an integer coefficient polynomial $f(x)$ and know that it has 2 integer roots, $x_1$ and $x_2$, is it true that $$f(x) = (x-x_1)(x-x_2) h(x)$$ where $h(x)$ is another integer coefficient polynomial? What is this result called if it is true? How can I prove that?


Is the price of a share's future contract in the secondary market dependent on supply demand of the share in the secondary market or is it also influenced by the supply demand of the future's contract also. I know theoretical values of futures using cost to carry model also affect the price which is once again function of the spot price of the share


How do you do SEO for sold out products? Please share your approaches:   for products, which are unavailable for a limited time frame (seasonally) for completely sold out products, which will be never more become available in your shop   I'll edit the question, because i realized, it isn't fully clear for all, how many different question are related to it:   noindex soldout products or not? redirect them to homepage / category page / sitemap? what redirect to use: 301 or 302? do nothing, beside of a notice for users? fire an error? which error? 404 or 410? what to do with incoming external links?   ps: i mean this question is not a duplicate to the mentioned one: the mentioned question origins from the year 2011, where SEOs were talking about pagerank and meaning it would be important. Now we have completely different paradigms. Beside of this, the mentioned topic has no answers to some questions i'm interesting in.


Error when installing the grub2 package in /target/

I'm new to Linux and I have only used Windows so far (Currently: windows 8). But for a Bachelor Project at my university, I was advised to use Linux in combination with computations in statistical physics. I want to have a dual-boot Windows 8 and Linux.  Before installing, I read a lot of warnings and tips. I followed them (disabling Secure Boot in Windows 8, disabling Fast Boot). Then I made a partition to use for Linux Mint 17.2 Mate, and a swap partition. I installed it, and everything worked fine. But when turning on my computer, the grub screen didn't appear. After a day's work, I had installed Xubuntu instead of Mint and did a few Boot Repairs, and disabled the 'Secure boot' option in the Boot Repair Advanced options. After that, I could use Xubuntu without problems, also after rebooting. But I liked Mint better, so yesterday I tried to install Mint the same way as I did Xubuntu. But at the 'installing the grub2 package', the installation aborted with the error:     the grub-efi-amd64-signed package failed to install into /target/.   My guess is that I have made a mistake in the location of the bootloader, before the installation process. I installed (and later removed) Xubuntu, and with Xubuntu I installed the bootloader in /dev/sda2, where also the Windows boot manager is located. Before that, when installing Xubuntu another time, I installed the bootloader in a separate /boot partition /dev/sda8. Finally, another time I also installed the bootloader in /dev/sda. It was really a trial-and-error fixing the problem that no grub screen appeared at the beginning.  My guess is that now, those bootloaders that I've installed with Xubuntu on sda, sda2 and sda8 cause problems for the grub2 package with Mint to install.  I've already looked at many pages about the same issue, but none worked. I have a Internet connection and the 'extra 64' is present (see ).  What can I do? Any tips from experienced users? Or should I try another distro? Thanks in advance! Greetings from Holland.


How to find the convergence of this sequence? $x_n=1+\frac{1}{x_{n-1}}$

The sequence ($x_n$) is defined by $x_0=1$ and $x_n=1+\frac{1}{x_{n-1}}$ for $n\in ℕ^*$, then how could I find the limit of it? By trying some, I've found that the answer is $\frac{1+\sqrt5}{2}$, but I'm looking for a "legit" way to find it.


Prove $\liminf\limits_{n\to\infty} F(x_n)\le F(x)$

Suppose $F$ is a nondecreasing and right continuous function, and the sequence $\{x_n\}_{n\geq1}$ converges to $x$. Then $\liminf\limits_{n\to\infty}F(x_n)\leq F(x)$.    How can I prove this?


Why dont work jquery functions after fill table with ajax call?

   My table lines after ajax call;

000000000000000018	upa1

000000000000000018	upa1

   When I fill table with ajax call ,two function(I write with comment) dont work,I think page dont see inserted  line by ajax call.When I fill table directly in html(without ajax call), Its workCan you help me please?


How can an observer reach the singularity if black hole interiors grow forever?

This article  describes how black hole interiors grow forever although the exterior volume of the black hole does not appear to change. The article imagines a black hole as a funnel, where "The funnel gets deeper and deeper, so that infalling things never quite reach the mysterious singularity at the bottom." I'm trying to reconcile this with my understanding that an observer who enters the event horizon will have all its future world-lines converge at the singularity. As I understand, inside the event horizon space becomes like a waterfall, drawn downwards faster than the speed of light, so that any observer will be inexorably drawn towards the singularity. Under that reasoning it seems like an observer would never actually come closer to the singularity because all space in front of it is also falling. This is just an intuitive picture, and I fully expect this intuition should break down. Do observers ever reach the singularity? Or does the eternally growing interior of the black hold prevent this from happening? If so, how do we reconcile this with the fact that all the observer's world-lines must converge at the singularity?


I would like to construct a map tool application that allows only to add some point features.   How do I complete the following code to activate snap mode while editing a layer with PyQGIS 3?  from qgis.core import * from qgis.gui import * from PyQt5.QtGui import * from PyQt5.QtCore import *  class AddPointTool(QgsMapTool):    def __init__(self, mapCanvas, layer):        QgsMapTool.__init__(self, mapCanvas)        self.layer=layer        self.setCursor(Qt.CrossCursor)     def canvasReleaseEvent(self, event):        point=self.toLayerCoordinates(self.layer, event.pos())        fields=self.layer.dataProvider().fields()        feature=QgsFeature()        feature.setFields(fields)        feature.setGeometry(QgsGeometry.fromPointXY(point))         self.layer.addFeature(feature)        self.layer.updateExtents()        self.layer.triggerRepaint()  canvas=iface.mapCanvas() layer=iface.activeLayer()  layer.startEditing() layer.triggerRepaint() tool=AddPointTool(canvas,layer) canvas.setMapTool(tool)


Joining 2 queries to match Months side by side

I have 2 SQL statements that I want to join up. The first gets the actual data per month for Turnover accounts. The second query gets budgets (if any) for the same Turnover accounts.  Query 1 Actuals  /* Turnover 1 */ SELECT * FROM ( SELECT T0.AcctCode AS 'SAP Code', T0.AcctName AS 'Description', T0.FatherNum, 1 AS 'Group', 'Turnover' [Definition], MONTH(T1.RefDate) AS Month, SUM(T1.Debit - T1.Credit) AS 'Amount' FROM OACT T0 LEFT JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account]  LEFT JOIN OBGT T2 ON T0.[AcctCode] = T2.[AcctCode]  WHERE T0.GroupMask = 4 AND T0.Levels = 5 AND (T1.RefDate BETWEEN '20150101' AND '20151231')  GROUP BY T0.AcctCode, T0.AcctName, T0.FatherNum, T1.RefDate) AS q PIVOT (     SUM(Amount)      FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Sample data   Query 2 Budgets  /* Turnover 1 */ SELECT * FROM ( SELECT T0.AcctCode AS 'AcctCode', T3.AcctName AS 'Description', T3.FatherNum, 1 AS 'Group', 'Turnover' [Definition], CASE WHEN (T1.CredLTotal IS NULL OR T1.CredLTotal = 0) THEN T1.DebLTotal ELSE T1.CredLTotal END AS BudgetAmt, T1.Line_ID AS 'LineID' FROM OBGT T0 INNER JOIN BGT1 T1 ON T0.[AbsId] = T1.[BudgId] INNER JOIN OACT T3 ON T0.[AcctCode] = T3.[AcctCode]  WHERE T3.GroupMask = 4) AS q PIVOT (     SUM(BudgetAmt)     FOR LineID IN ([0],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11]) ) AS P   Sample Data   For the 2nd query, 0 represents Jan, 1 represents Feb ... and 11 represents December.  How do I combine the 2 queries such that I can get data such as below?    Not a duplicate as this contains a query to retrieve budgets.


TSA locks in luggage for travel to Europe

I'll be travelling to Europe from India and have a check-in baggage which has the normal number lock (like a 3-digit password) and also has the TSA lock. My entry would be in France and would return from Switzerland back to India.  I have never used TSA locks and DO NOT plan to use the TSA lock (just the number lock), but my question is does having the unused TSA lock pose any problems while travelling to Europe? I hope it does not cause any issues.


The question:  An international society has 1994 members from 6 countries. The number of members from each country is arbitrary, but never 0. The members are numbered as 1,2,3...,1994. Prove that there will always be at least one member whose number is the sum of the numbers of 2 other members of his own country, or twice as large as the number of one member of his own country.  Attempt at solution:  I have no approaches. Don't understand how to do it. However I feel that since the number of possible ways in which either condition can be fulfilled exceeds the ways one can place the countries (??), it is true.  A hint in the right direction is appreciated.


Law of total probability sum where the summing values are real numbers?

I'm confused on how to apply the law of total probability when the summation is $\sum_{0}^{1}$ i.e. from 0 to 1, including all possible decimal numbers in between, rather than a summation of $\sum_{a}^{b}$ where a and b are integers. Is the following the correct approach (using an integral from 0 to 1)?  If I apply the law of total probability to P(Y=1), does it equal:  $ \int_{0}^{1} $P(Y=1|X=x)P(X=x)dx  where Y $\in$ {0,1} and x$\in$[0,1]


Strategy to prove a set is compact. Case: $S=\{0\}\cup\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$

Verify that $S=\{0\}\cup\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is compact subset of $\mathbb{R}$ while $\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is not.  If I take the sequences $\{\frac{1}{i}:i\in\mathbb{N}\}$ there is no convergent subsequnce once $\{0\}\notin \bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ . So $\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is not compact. However when I examine $S=\{0\}\cup\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$. I do not know how can I address all the coverings in order to prove it is compact. Questions: Is my proof right insofar? How should I prove $S$ is not compact? What is the strategy for that sort of cases? Thanks in advance!


LaTeX editor with live preview for Windows and RTL language support?

Looking for a LaTeX editor for Windows with the following features:   Live preview. (Inherited live preview, not something achievable if you do some tricks.) RTL language support. (Hebrew for example) Auto-complete LaTeX keywords. (Like in )    Googled and browsed other questions here, on SO and on . All I find is either only for mac or have no live preview.   Can someone please point one app that support all the features stated above?


I have 4GB of RAM and I want to install Ubuntu. Do I need a to have a swap partition? Because my computer has 4GB RAM, I do not think it is necessary to have a swap partition. If I do need to have a swap partition, should it be a 4GB or an 8GB partition?


I'm using a skin modifier to create a straight line between two vertices, to simulate a cord being stretched between two moveable points.  I'm following the suggestion in this response  (minus using soft bodies, since my cord doesn't need to have curves).  The cord shows up in editing and even in Rendered Mode for viewport shading, but it's not in my final renders. I have 'Use modifier for render' set to true for all four modifiers for this line (the anchor hook, the moveable hook, the skin, and the subsurf) but I'm not sure what else I need to set to make this show up in the actual render.      (I'm also new to blender so I'm guessing I'm missing something obvious, but I haven't found any other questions on this)


Currently, although the SE Inbox does include responses from Meta.SE the recent activity tab at SE does not include Meta.SE activity.


Anyone can suggest me one or more good books on Statistical Inference (estimators, UMVU estimators, hypothesis testing, UMP test, interval estimators, ANOVA one-way and two-way...) based on rigorous probability/measure theory?  I've checked some classical books on this topic but apparently all start from scratch with an elementary probability theory.