Hello my problem is that I have to display the content of a textarea on a flyover in the same way. But my problem is when reading out the value of the textarea I am only getting one line instead of several lines, unless I press enters by myself. So when my text in the textarea goes over several lines I receive (for example): 111111111111111111111111111111111111111111111111111111111111111111111111111111111111  But when I am pressing enter at the end of each line I receive: 11111111111111111111111111\n11111111111111111111111111\n1111111111111111  I need the text to be as the second option.So when the textarea has to wrap the text into another line I want to receive a \n for the new line. My problem is not to display the text in the right way, it is to read out the text correctly. When I read it out I dont receive the \n chars for every new line, which is problematicaly. How can I fix this?

Html Textarea elements only wrap when they reach a space or tab character. This is fine, until the user types a looooooooooooooooooooooong enough word. I'm looking for a way to strictly enforce line breaks (eg.: even if it results in "loooooooooooo \n ooooooooooong").    The best I've found is to add a zero-width unicode space after every letter, but this breaks copy and paste operations. Anyone know of a better way?  Note: I'm referring to the "textarea" element here (i.e.: the one that behaves similarly to a text input) - not just a plain old block of text.


I just like to ask for some clarifications on the use of 'come' and 'go' for the following situations:   Situation 1 :  Paul: Are you coming to John's birthday party this Saturday? Arthur: No, I'm not going. My family will be out of town.      Do we use 'coming' in general like for situations that are happening occasionally like a birthday? But when the party is every Saturday do we use 'going' instead?  In which case, if one cannot make it to the birthday party, it is correct to use 'going' but if its a regular party night out, we would likely use 'coming'?    Situation 2 : Paul cannot make it to John's party  Paul : Are you going to John's birthday this Saturday?  Arthur : Yes, I'm coming. How about you, are you coming?  Paul : No I'm not going. My family will be out of town to attend a cousin's wedding.    Whether it is correct to use 'going' in the question, "Are you going to John's birthday?" to suggest that one is not coming?  Whether the use of 'coming' in this question: "How about you, are you coming?" is still correct although the word 'going' was previously suggested?    Situation 3 : both boys cannot make it to the party.   Paul : Are you going to John's birthday this Saturday?  Arthur : No, I'm not coming. How about you? Are you going to his party?  Paul : No I'm not going either. My family will be out of town to attend a cousin's wedding.    Whether Arthur's response,  "I'm not coming. Are you going to his party?" is correct ?    The use of coming and going in some situations could be a little tricky for me. I highly appreciate all your answers. Thank you so much.

There is no social shaming that comes with knowing nothing about our local politicals. (Joe Clein Column, Time Magazine, August26)  Can I change "come with" into "go with" here? It seems to me that "go with" is too much used as an idiom to mean something  essentially or normally goes together with something else. But here the author is just to negate any necessary relation between the two things.   Is the difference between "come with" and "go with" based on, or related to, the difference between "come" and "go"? Maybe the difference between them is just a product of habit?


Is there a way to show the sum of any different square root of prime numbers is irrational? For example, $$\sqrt2+\sqrt3+\sqrt5 +\sqrt7+\sqrt{11}+\sqrt{13}+\sqrt{17}+\sqrt{19}$$ should be a irrational number.   One approach I used is to let the sum be a solution of an even polynomial  $f(x)$with integer coefficients and prove by induction that by adding another $\sqrt{p_{k+1}}$.  The new polynomial can be written as $$f(x+\sqrt{p_{k+1}})f(x-\sqrt{p_{k+1}})$$  where $$f(x+-\sqrt{p_{k+1}})=P(x)+- Q(x)\sqrt{p_{k+1}},$$  where $P(x)$ is an even plynomial and $Q(x)$  is an odd polynomial.  The new polynomial can be written as $$P^{2}(x)- Q^{2}(x)p_{k+1}.$$  Assume it has a rational solution $a$, we must have$$P(a)=Q(a)=0.$$  My calculation stopped here since I can't find any contradiction result from this. Can anyone continue this proof, or has other better way to solve this? Thanks!

I need to find a way of proving that the square roots of a finite set    of different primes are linearly independent over the field of    rationals.    I've tried to solve the problem using elementary algebra  and also using the theory of field extensions, without success. To  prove linear independence of two primes is easy but then my problems  arise. I would be very thankful for an answer to this question.


If I use this code, and the textfile with the right text:  package me.ruban.AccountManager;  import java.io.File; import java.io.IOException; import java.util.Scanner;`  public class Login {  private String readNickname; private String readPassword; private String inputNickname; private String inputPassword; private static String[] accountDetails; private static String line;  private boolean exists = true; private boolean login = false;  public Login(String inputNickname, String inputPassword) throws IOException {     this.inputNickname = inputNickname;     this.inputPassword = inputPassword;      if(new File(inputNickname + ".acc").exists() == false) {         System.out.println("[Login] This account does not exists!");         exists = false;     }      if(!exists == false) {          try {                 Scanner input = new Scanner(new File(inputNickname + ".acc"));                  line = "";                 while (input.hasNextLine()) {                     System.out.println("[Login] Reading...");                     line += input.nextLine() + " ";                 }                 input.close();                 System.out.println("[Login] Loaded " + inputNickname + ".acc succesfully.");              } catch (Exception e) {                 e.printStackTrace();             }           accountDetails = line.split(" ");           if(accountDetails[0] == inputNickname) {              if(accountDetails[1] == inputPassword) {                  login = true;                  System.out.println("[Login] Login is aviable!");              }          }     } }  public boolean getLogin() {     return login; }  public boolean getExists() {     return exists;   }  public String getLine() {     return line; }  public static void main(String[]args) throws IOException {     Login l = new Login("username", "password");     System.out.println();     System.out.println(accountDetails[0]);     System.out.println(accountDetails[1]);     System.out.println();     System.out.println(l.getLogin()); }   }  My output will be:   [Login] Reading... [Login] Reading... [Login] Loaded username.acc succesfully.  username password  false   This is not what I wan't, because the false should be true according to my code and my textfile. So my question is: how to get the false to true.  Thanks

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


Anything I try to do requires reputation.  How am I supposed to start using it?  I cannot reply to answers. I cannot comment. I cannot upvote.

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


My ubuntu VERSION="14.04.3 LTS, Trusty Tahr"  I wanna upgrade svn client to >1.9 with below two commands  sudo apt-get remove subversion sudo apt-get install subversion   I thought it would automatically give me latest version, however it is 1.8.8. Did I miss something?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


Recently i've noticed that there is actually free cool domain name, let's say 'googleinsider.com`. Buy this domain is my dream and for some money (not so small well) i can buy this domain.  And i will use it for website then. Website is about somewhat connected with real Google. But i will not write there anything bad.  However, i understand, that if i use this domain for my project, Google will try to take it away from me, as it is a trademark or brand name. Is that possible? Is it really easy (is there are any examples of domains returned by such companies)?

I wonder is it legal to register a domain name that contains a company name. For example cococola.cc (considering that this domain name is available). Can I buy and use any domain names that contain a name of a trademark?


Hi the following equation in my scriptum seems unclear. I think it has something to do with cauchy-product but i dont know

I would like to know: How come that  $$\sum_{n=1}^\infty n x^n=\frac{x}{(x-1)^2}$$  Why isn't it infinity?


Here's a simple example of using class templates in C++. This code works.  #include <iostream>  using namespace std;  template <class T> class Test { public:    Test();    void print(); private:     int i; };  template <class T> Test<T>::Test() {     i=1;     cout<<"New instance"<<endl; }  template <class T> void Test<T>::print() {     cout<<"Test"<<endl; }  int main() {     Test<int> i;     i.print();     return 0; }   So when I separate this code in 3 files: main.cpp, Test.h, Test.cpp:  //Test.h #include <iostream>  using namespace std;  template <class T> class Test { public:    Test();    void print(); private:     int i; };  //Test.cpp #include "Test.h"  template <class T> Test<T>::Test() {     i=1;     cout<<"New instance"<<endl; }  template <class T> void Test<T>::print() {     cout<<"Test"<<endl; }  //main.cpp #include "Test.h"  using namespace std;  int main() {     Test<int> i;     i.print();     return 0; }   I get an errors:  1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Test<int>::print(void)" (?print@?$Test@H@@QAEXXZ) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Test<int>::Test<int>(void)" (??0?$Test@H@@QAE@XZ) referenced in function _mai 1>C:\Programming\C++\stuff\templass\Debug\templass.exe : fatal error LNK1120: 2 unresolved externals   I use Microsoft Visual C++ 2010 Express. So I searched a lot about unresolved external symbol but didn't find anymore for this case. So what's my mistake?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


In my project, I use easyui-layout, which has west and center region.  When i click easyui-linkbutton announcement, oat.php will return table content which will be included in cenDiv successfully.  Here is my js code:  function corpAnn() { var oaAnn="annIn";  $.ajax({         dataType:'html',         type:"POST",         url:"oat.php",         data: {oaAnn:oaAnn},         success:function(data)         {             $('#cenDiv').html(data);         }       }); }   Here is my html code:

  announcement
   Here is oat.php code:  echo '
'; echo '
'; ...... echo '
'; echo '
';   And then, I want to doubleclick table tr, which will call alert method.  But unfortunately,  it worked fail. Here is my js test code:  $(document).ready(function() {  $('#cenDiv').on("dblclick","#tbbs #bbs td",function(){     alert("thsTest"); }); });   I know when loading my main web page, tbbs and bbs id are not exit in DOM.So I should rebond them to cenDiv id.But I don't know how. Who can help me?

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


I am working through a few sets of notes I found on the internet and I came across this exercise. How do I prove that a continuous function $f$ of compact support defined on $R^n$ is bounded?  It seems believable that it is true for $f$ in $R$ because I can visualize it but how do I prove this properly for $R^n$? Any ideas?

While studying measure theory I came across the following fact: $\mathcal{K}(X) \subset C_b(X)$ (meaning the continuous functions with compact support are a subset of the bounded continuous functions). This seems somehow odd to me; I've tried to prove it but did not succeed. Could someone help me out here?  Thanks!


I am trying to store the characters ♯ and ♭ in a mySQL database, but ♯ gets stored as Aâ™¯ and ♭ as Bâ™  In the HTML, I have used ♯ and &#9839; and both render fine in the browser, but neither is being stored correctly.  I have tried UTF-8 and UTF-16 character sets for both the PHP page and for the field where the values are being stored and I get the same result.  I'm not very familiar with character sets, so maybe I should be using something other that UTF-8 or -16 or maybe I'm missing something else entirely?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Upvotes are almost always a much better indicator of a good answer than an answer actually being accepted by the question's author. Often times the question's author will accept a poor answer. Thus, the first answer to be displayed to the public should not necessarily be the accepted answer.   We want to cater to the general public who will be viewing the discussion. We want to show them the most relevant answers first. The answers that are most relevant to the general public are the ones with the most upvotes, not the answer that the question's author accepted. The collection of people who are voting almost surely do a better job of ranking answers than the single question's author. Afterall, these voters represent the general public that we are trying to cater to.

After reviewing ...  I'd like to make an argument for answers that have attained more votes than an accepted answer always be ranked above when answers are being sorted by votes (the default)...     Someone visiting this (older) question expecting a relevant answer would be assuming the big green check mark means that it is the correct answer today when in fact it's the correct answer when the question was originally asked.  Allowing votes to override the asker's time bound response, it allows the best answers to remain at the top and evolve with our ever changing field without requiring the asker to maintain their questions.  This would be a step in the direction of the site's ethos in my opinion, trusting the community to determine the best answer to place at the top for prospective visitors.


How do I prove what's written in the title? I was able to get an incomplete proof for the case $x>2$. Here's my try: Use $e^x = \sum_{j=1}^{\infty} \frac{x^j}{j!}$.  Now we can see that if $x$ is a real number, then: $$e^{x^2/2}-e^x/2-e^{-x}/2=\sum_{j=1}^\infty \frac{\frac{x^{2j}}{2^{j-1}}-x^j-(-x)^j}{2j!}$$ and we need to show this is positive. Now, if $j$ is odd, then the numerator is just $x^{2j}/2^{j-1}$ which is always greater than zero. But if $j$ is even, multiply the numerator by $2^{j-1}$, and check if the result is positive. The result is $x^{2j} -2^{j} \cdot x^j=x^{j}(x^j-2^j)$ So if $x$ is greater then $2$, we get a positive result, but otherwise, we don't. So how do I  continue for other values of $x$?

Prove the following inequality:   $$\dfrac{e^x + e^{-x}}2 \le e^{\frac{x^2}{2}}$$   This should be solved using Taylor series.  I tried expanding the left to the 5th degree and the right site to the 3rd degree, but it didn't help.  Any tips?


Regarding academic context, I am a little confused about the meanings of these words.  I am going to state my understanding to see if it is correct or not:  Course meanings:   A university course like Calculus1 or Physics2. The course I've finished is a B.Sc in Computer Science.   Class meanings:   Students who graduated in 2015 form the class of 2015. I didn't attend the Calculus1 class this afternoon.   Are the meanings above correct?  Are there other academic meanings for these words?

Currently, I am preparing a letter of my study objectives for an university application. I ask myself what is the exact difference between the following terms? Or can I use them synonymously?   taking courses taking classes taking lessons


What do you call a person who loves to read?

Not bibliophile, or really anything "biblio-" because that means a love of books, which might mean a collector or someone who loves the books themselves, but not necessarily their content.  Also, not words like bookworm, because they refer to the person who loves reading, whereas I'd like a word that describes the act or state of loving to read.


Why is integration the area under a curve (graphically)? Derivative gives the slope which makes perfect sense as it shows the change at a point. But how is, its opposite, the integral represented by the area under the curve.

I understand how derivatives work based on the definition, and the fact that my professor explained it step by step until the point where I can derive it myself.  However when it comes to the area under a curve for some reason when you break it up into an infinite amount of rectangles, magically it turns into the anti-derivative. Can someone explain why that is the definition of the integral and how Newton figured this out?


Is there a systematic way of solving this system, analytically?  $$\begin{cases} x \  + \ y^2=11\\ x^2+y\ \ =\ 7\\ \end{cases} $$  I mean, other than brute-force.

I want to solve this system of equations, I have been out of Maths for a long!!  $$\sqrt{x}+y=7$$  $$\sqrt{y}+x=11$$  Just wondering easiest step to find values for $x$ and $y$ from the above equations?


When white light passes through a prism, refraction occurs and it splits into its seven constituent colours. If the spectrum is obtained on a screen violet light appears much more bent than red light. How and why does this occurs?

It is well known that a  can "split light" by separating different frequencies of light:    Many sources state that the reason this happens is that the  is different for different frequencies.  This is known as .  My question is about why dispersion exists.  Is frequency dependence for refraction a property fundamental to all waves?  Is the effect the result of some sort of non-linearity in response by the refracting material to electromagnetic fields?  Are there (theoretically) any materials that have an essentially constant, non-unity index of refraction (at least for the visible spectrum)?


How can man proof this Theorem step by step, specially when $$p_i\mid a?$$ This theorem is in book: Elementary number theory by Koshy on page 334 Let $$p_1, p_2, . . . , p_k$$ be any distinct primes, and let $a$ any positive integer, and $$L = {\rm lcm}(p_1 − 1, p_2 − 1, . . . , p_{k} −1).$$ Then $$a^{L+1} \equiv a\pmod{p_1 p_2 \cdots p_k}.$$ i can not understand the proof in the book, Can anyone help me?  [excerpt added by Bill D.]

I want to know a proof of an alternative form of Fermat-Euler's theorem   $$a^{\phi (n) +1} \equiv a \pmod n$$   when $a$ and $n$ are not relatively prime.   I searched some number theory books and a cryptography book and internet, but there were only proofs of the original theorem  $a^{\phi (n)} \equiv 1 \pmod n$ or in case n=pq which is used for RSA. So I would be very thankful if someone show me a proof or book I should read.


We allow user to entry any language in text field and that valu i store in database and we return same language to user when user view in browser.  when i passed "Sant Juliã  De Lã²ria" value in database and when i retrieve from database then display like this "Sant Juli�� De L��ria"  How can we display user to same value as user input in text fields

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I would like to use some code block for a report. The only problem : I didn't find inside listings for the language I used (Nodejs).  Can you help me ?  PS: I check inside the listings package :

I am afraid that listing doesn't support javascript.  \begin{lstlisting}[language=javascript] ... \end{lstlisting}   What am I doing wrong?


What is the difference between "Everybody has something to hide" and "Everybody's got something to hide" if any?

I don't know what is the difference between using "I have got" and "I have" For example:      He's got broad shoulders.    Is it possible to say:      He has broad shoulders.    If yes, so what is the difference?


What are the benefits of a deep neural network architecture over a shallow architecture with many computational elements.  What are pros and cons of these two architectures and its limitations?

In recent years, convolutional neural networks (or perhaps deep neural networks in general) have become deeper and deeper, with state-of-the-art networks going from 7 layers () to 1000 layers ( in the space of 4 years. The reason behind the boost in performance from a deeper network, is that a more complex, non-linear function can be learned. Given sufficient training data, this enables the networks to more easily discriminate between different classes.  However, the trend seems to not have followed with the number of parameters in each layer. For example, the number of feature maps in the convolutional layers, or the number of nodes in the fully-connected layers, has remained roughly the same and is still relatively small in magnitude, despite the large increase in the number of layers. From my intuition though, it would seem that increasing the number of parameters per layer would give each layer a richer source of data from which to learn its non-linear function; but this idea seems to have been overlooked in favour of simply adding more layers, each with a small number of parameters.  So whilst networks have become "deeper", they have not become "wider". Why is this?


The #include problem  class widget { };  class fubar : public widget { // 1      void value_parameter(widget); // 2         void ref_parameter(widget &); // 3     void ptr_parameter(widget *); // 4      virtual void value_parameter(widget); // 5     virtual void ref_parameter(widget &); // 6     virtual void ptr_parameter(widget *); // 7      widget value_return(); // 8     widget & ref_return(); // 9     widget * ptr_return(); // 10      widget instance_value_member; // 11     widget & instance_ref_member; // 12     widget * instance_ptr_member; // 13      static widget static_value_member; // 14     static widget & static_ref_member; // 15     static widget * static_ptr_member; // 16 };   Which of those lines require a has include?  (#include "widget.hpp")

I am looking for the definition of when I am allowed to do forward declaration of a class in another class's header file:  Am I allowed to do it for a base class, for a class held as a member, for a class passed to member function by reference, etc. ?


I'm managing a WordPress site with a strange problem. When images are uploaded to the media library, a page is being generated with a permalink that uses the image's title attribute. For example, if the image's attribute is 'headshot' there will be a page with a URL of mysite.com/headshot. The page doesn't appear in the page list (or the post list, for that matter). There doesn't appear to be a plugin doing this, and I can't locate a setting to shut it off. I have never seen this happen before. Has anyone else?

I would like to disable all attachment pages completely. I Googled it, but there's just information on . That's not what I would call an elegant solution. Why introduce unnecessary permalinks that redirect to the homepage? Couldn't it be disabled completely?


I have recently started DMing a DnD 4e campaign after a long break from the specific game and both me and my players have been having a lot of fun with it. However one thing that is diminishing our enjoyment of it is that every combat encounter takes a really, really long time. All three of my players are low level strikers that have built a large amount of healing. The issue is that when I first presented my players with monsters they were lower or equal level foes that the players shredded through in a couple of turns with superior damage output. I responded by sending higher level foes at them. That degenerated into ninety plus minute long combat encounters where the players would wail away on the monsters high AC and HP totals while the monsters tried vainly to get past the PC's pile of healing abilities. I have chosen so far to go with longer but more challenging combat instead of trivially easy combat but this is far from ideal. My group wants time to explore their surroundings and  to roleplay which is limited if they are spending all their time fighting. This brings me to my question: Does anyone have any strategies for making combat challenging but not ultra-time consuming.

I DM a group of four PC's and even "easy" battles take at least an hour to resolve. Normal encounters take even longer! I want to speed up combat so my players can do more in a session.  I've been trying a lot to speed up combat, we are already using:   Initiative cards that the players keep up 30 second bonus rule: if someone take his turn within 30 seconds, he receives a token. This token can be used to give a +1 on attack or damage, after rolling. Completely removed healing surges Checked all character sheets, they are roughly equal Roll damage and attack at the same time   I even introduced an experienced player, which helped my party to play more strategic, but speed hasn't improved.  Also the party is Lv 8, nearing Lv 9.  This is not an issue of the DM's turn taking too long. My turns take about 60 seconds tops. The 30 second rule helps a lot, most of the the players turns are within or near 30 seconds.   The major issue appears to be the sheer number of rounds, averaging on 25-30 rounds needed to resolve even a "normal" encounter.  What can I change to resolve combat faster?  I'm looking for both 4e solutions, system agnostic and home brew solutions.


Please this is not a duplicate: This is not a general question about food storage time and safety, about warming stored food but about boiling food that is possibly spoiled. Or even let's say spoiled.    I am not talking about simply reheating but about raising the temperature to at least boiling and keeping it there for at least an hour.   I didn't bother freezing it because I was planning on returning home after the weekend. But things turned out to keep me away for three weeks.  It's a tomato sauce based curry with some ground meat. I'm thinking to add a bit of water bring it to a boil and let it simmer for the afternoon.   Safe?

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


Problem: Given $X, Y$ ~ $\text{Exp}(\lambda)$ i.i.d, find $f_U, \ F_U$ for $U := \frac{X}{X + Y}$. My approach: For a fixed $u > 0$, parameterize $\{ (x,y) | \frac{x}{x + y} = u \}$ = $\{ (x,y) | y = \frac{x  (1 - u)}{u} \}$ = $\{ (x,\frac{x  (1 - u)}{u}) | x \geq 0\}$ ($x \geq 0$ holds by $X$ ~ $\text{Exp}(\lambda)$). Then, one can compute: $$\int_0^{+\infty}f_X(x)  f_Y\left(\frac{x (1 - u)}{u}\right) \mathrm{d}x = \int_0^{+\infty} \lambda  e^{-\lambda x}  \lambda  e^{-\lambda \frac{x  (1 - u)}{u}} \mathrm{d}x = \lambda^2 \int_0^{+\infty} e^{-\lambda x  \frac{1}{u}} \mathrm{d}x = \\ \lambda^2  \left(-\frac{u}{\lambda}  e^{-\lambda x  \frac{1}{u}} \biggr{\rvert}_0^{+\infty}\right) = \lambda^2  \left(\frac{u}{\lambda}\right) = \lambda u $$ My problem: Given those computations, I arrived at the conclusion $f_U(u) = \lambda u$. Although Wolfram Alpha agrees with my computations, the master solution does not, as according to it $F_U (u) = u$ (and therefore $f_U = 1$). It'd be great to get some help on where I went wrong. Given that Wolfram Alpha indicates correct computations, I believe my mistake to be conceptual. On a general note: How would you rate my approach; are there better ways to tackle such problems?

Been crushing my head with this exercise. I know how to get the distribution of a ratio of exponential variables and of the sum of them, but i can't piece everything together.  The exercise goes as this:  If X,Y are independent exponentially distributed with beta = 1 (parameter of the exponential distribution = 1) then what is the distribution of X/(X+Y)  Any ideas?  Thanks a lot.


Wubi gives me error executing command:    command=C:\Windows\System32\bcdedit.exe /set {79d57369-10fa-11e2-a539-af7634f5111e} device partition=F: retval=1 stderr=An error has occurred setting the element data.

I've been trying to install 12.04 for a while now, I'm running on Windows 7 and I already made the partition (it's dynamic). I've tried booting from a disc and also the Windows installer. I haven't tried used any repair-boot programs or anything. Every time I tried to load from either, I get an error:  command=C:\windows\sysnative\bcdedit.exe /set {03f9077f-661f-11e1-845a-d08b36406c3d} device partition=U;  retval=1  stderr=An error has occured setting the element data. The request isn't supported  stdout=   Then after that, it makes a log file with information that I don't understand.  If it is simply due to the fact of it being a dynamic partition, someone please help. If it is more extensive, anyone with details on possible solutions or definite ones please express them.


If U has a $\chi^2$ distribution with v df, find E(U) and V(U).  By definition, $E(U) =\int^{\infty}_{0} u\frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^{\frac{v}{2}-1} e^\frac{-u}{2}\,du  =\int^{\infty}_{0} \frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^\frac{v}{2} e^\frac{-u}{2}\,du$.  How do I integrate this?  NOTE: I already know that this question has been asked originally however there were not steps on how to integrate it. Just a short hand solution. I would like someone to show me not only the steps but also what the do with the Gamma function as well.   Thanks!

If U has a $\chi^2$ distribution with v df, find E(U) and V(U).  By definition, $E(U) =\int^{\infty}_{0} u\frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^{\frac{v}{2}-1} e^\frac{-u}{2}\,du  =\int^{\infty}_{0} \frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^\frac{v}{2} e^\frac{-u}{2}\,du$.  How do I integrate this?  Note: This isn't a homework problem.


I came to this problem and solved it but I don't fully understand how this works.   The problem is:      A 200lb man climbs to the top of a 20ft ladder that is leaning against a smooth wall at an angle of 60 degrees with the horizontal. The ladder weights 100lb and its center of gravity is 6ft from the bottom end.    What must be the coefficient of static friction at the ground, if the ladder is not to slip?    Using trig we find the wall is 17.3ft and the floor under the ladder is 10ft.  I'll use the bottom point where the ladder meets the floor as the axis for the ladder.   Finding the ladder's torque would just be the sum of the two torques:  (200lb)(10ft) + (100lb)(6ft)   And it makes sense that the walls torque must be equal to the ladder since the wall is pushing back on the ladder with the same force and therefore:   (200lb)(10ft) + (100lb)(6ft) = (Wlb)(17.3ft)   Solving: W = 133lb      Where W is the force of the wall on the ladder.   I follow up to this point but after this is where I get a bit confused.   The book then claims H = W = 133lb, where H is the frictional force opposing the ladder at the floor.   If two equal forces oppose each other then there will be no change in velocity.  So if the ladder is pushing on the wall with the same force that the wall pushes on the ladder, why would friction need to oppose the bottom with that same force? Wouldn't the push of the ladder on the wall and the push of the wall on the ladder cancel each other out? As in, why would H = W?   I get that torque must be symmetric about the axis if in equilibrium, but the axis is at the bottom of the ladder, where the friction is acting. What is pushing the ladder away from the wall?  I know it's going to be the wall, but why is that not canceled by the push of the ladder?   I may have a bad or incomplete understanding for torque so any help would be greatly appreciated! Thanks!

Given Newton's third law, why is there motion at all? Should not all forces even themselves out, so nothing moves at all? When I push a table using my finger, the table applies the same force onto my finger like my finger does on the table just with an opposing direction, nothing happens except that I feel the opposing force. But why can I push a box on a table by applying force ($F=ma$) on one side, obviously outbalancing the force the box has on my finger and at the same time outbalancing the friction the box has on the table? I obviously have the greater mass and acceleration as for example the matchbox on the table and thusly I can move it, but shouldn't the third law prevent that from even happening? Shouldn't the matchbox just accommodate to said force and applying the same force to me in opposing direction?


Is there a way of deleting the various CRS's that QGIS lists? We are a Local Authority in England and the only CRS we need is British National Grid, which is set as the default, as well as Lat/Long for when we occasionally receive file from external partners.

After using some non usual SRC for demonstration purpose, I wish to clear my  "Recently used coordinate reference systems" list for the sake of praticity.  Is it possible?   I am using QGIS 2.10.1.


I am highly looking forward to the new flavor of Ubuntu and it's bells and whistles to wrap the bow on top. My only concern is upgrading to it from my current system without reinstalling Ubuntu entirely. I have seen it discussed, and attempted, and know how horrible the results typically are. I recently read an article in respect to some lead developer saying that if it was to be done, it would most likely upgrade from 14.04 to 15.04 then to 16.04. It was a credible sources, otherwise I wouldn't mention it I lost the link unfortunately in my research.  So anyway, what do you guys think? Will there be a direct upgrade to 16.04 from 14.04, or will you have to go to 15.04 to get to 16.04? And if you DO have to upgrade to 15.04 instead of streamlining it to 16.04, is it even worth doing at that point? Thanks for all the responses.

Question is about Ubuntu release process. Are migrations from n to n+1 releases expected?  Assuming we have server with installed Ubuntu 14.04 LTS. Will it be smoothly upgradable to Ubuntu 16.04 LTS via apt-get upgrade ?  Assumptions:   scope is software therefore we assume that given hardware is supported on both releases (upgrading from and to) that's why, always before upgrade you are asked to make backup to be able to revert in case of failure


\begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|p{3cm}|  }      \hline      \multicolumn{3}{|c|}{States} \\      \hline      cpu &  Higher--Lower & Lower-Higher \\      \hline      \multicolumn{3}{|c|}{Average, Standard deviation, 95\%Confidence}  %     Afghanistan    &AFG&   004\\ %     Aland Islands  &ALA   &248\\ %     Albania        &A  &08\\ %     Algeria        &DZ &012\\ %     American Samoa &ASM &016\\ %     Andorra        &AND   &020\\ %     Angola         &GO &024\\      \hline     \end{tabular}   How do I have multicolumns for higher-lower and lower-higher?  Each multicolumn in higher-lower and lower-higher will have the subcolumns, average, standard deviation, 95% confidence  \begin{table}[!htb]   \centering   \caption{States}   \begin{tabular}{|c|l|l|c|c|c|c|c|c|}     \hline     \multirow{2}{*}{Benchmarks} &      \multicolumn{2}{c|}{\multirow{2}{*}{\textbf{Designation}}} &      \multicolumn{4}{c|}{\textbf{Shifts}}\\     \cline{4-7}     & \multicolumn{2}{c|}{} & \textbf{A} & \textbf{B} & \textbf{C} & \textbf{G}\\     \hline     1 & \multicolumn{2}{l|}{Plant Engineer} & & & & 1  \\     \hline   \end{tabular}   \label{tab:pro_pro} \end{table}   How do I have another column like shifts right next to it and remove the col: designation?  Here is the solution:  \begin{table}[h] \begin{center} {\footnotesize \scalebox{0.45}{ \begin{tabular}{|c|ccccccccc|ccccccccc|} \hline Benchmarks & \multicolumn{9}{c|}{Higher-Lower}   & \multicolumn{9}{c|}{Lower-Higher}\\  & \multicolumn{3}{c|}{0.8-1.0} & \multicolumn{3}{c|}{0.8-1.6} & \multicolumn{3}{c|}{0.8-2.4} & \multicolumn{3}{c|}{0.8-1.0} & \multicolumn{3}{c|}{0.8-1.6} & \multicolumn{3}{c|}{0.8-2.4}  \\ \hline  &  \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} & \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} & \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} & \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} & \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} & \multicolumn{1}{c|}{Average} & \multicolumn{1}{c|}{Standard Deviation} & \multicolumn{1}{c|}{Confidence} \\ \hline  \end{tabular} } } \end{center} \caption{\footnotesize P--States: PAAE and Confidence for SPECcpu2006 benchmarks.} \label{turns} \end{table}

When I used this piece down, I got.  \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry} \usepackage{graphicx} \usepackage{url} \usepackage[sc]{mathpazo} %\usepackage{mathptmx} \usepackage{url} \usepackage[onehalfspacing]{setspace} \usepackage{parskip} \usepackage{paralist} \usepackage{multirow} \begin{document} \begin{table}[!htb] \centering \caption{Present Strength-Production} \begin{tabular}{|c|l|l|c|c|c|c|c|c|} \hline \multirow{2}{*}{Sl.No} &  \multicolumn{2}{c|}{\multirow{2}{*}{\textbf{Designation}}} &  \multicolumn{4}{c|}{\textbf{Shifts}} &\textbf{Leave/Off} &  \multirow{2}{*}{\textbf{Total}}\\ \cline{4-7} & & &\textbf{A} & \textbf{B} & \textbf{C}& \textbf{G}&\textbf{Reserve}&\\ \hline 1 & \multicolumn{2}{l|}{Plant Engineer} & & & & 1& & 1\\ \hline \multicolumn{3}{|l|}{\textbf{Sub Total}} & & & & \textbf{1} & & \textbf{1}\\ \hline 2&\multirow{2}{*}{Operator}&Work related to water regeneration&1&1&1&&1&  4\\ \cline{3-9} 3& & Work related to valve control& 1&1&1& &1&4\\ \hline \multicolumn{3}{|l|}{\textbf{Sub Total}}&\textbf{2}&\textbf{2}&\textbf{2}& &\textbf{2} & \textbf{8}\\ \hline 1 & \multicolumn{2}{l|}{Worker} &2 & 2& 2& & 2& 8\\ \hline \multicolumn{3}{|l|}{\textbf{Sub Total}} &\textbf{2}&\textbf{2}&\textbf{2}& &\textbf{2} & \textbf{8}\\ \hline \hline \multicolumn{3}{|l|}{\textbf{Total}} &\textbf{4} &\textbf{4} &\textbf{4}  &\textbf{1}&\textbf{4} & \textbf{17}\\ \hline \end{tabular} \label{tab:pro_pro} \end{table} \end{document}     Can anyone show me the right path?  Certain important things are   The starting place of Sub total and Total should be from the second column The vertical line in the Designation box Horizontal line between 2 and 3


There thounsand of tutorials on Internet. Here is some:          ...  All of them suggest to clean, uninstall, download official drivers and manually build drivers in different ways. Which of them should I follow?  All tutorials are about to install unstable, but latest version of the driver. This question is about how to configure stable version which is already installed in Ubuntu. Difference between preinstalled stable and latest version is little and is not worth to replace.

Let's assume that one has some modern HP printer and/or scanner which is not supported by HPLIP package from official repository. Currently Ubuntu versions have :  trusty (14.04LTS): 3.14.3-0ubuntu3.4 xenial (16.04LTS): 3.16.3+repack0-1 bionic (18.04LTS): 3.17.10+repack0-5 focal (20.04LTS): 3.20.3+dfsg0-2 groovy (20.10): 3.20.5+dfsg0-3build1 hirsute (21.04): 3.21.2+dfsg1-2   What can one do if printer is supported in newer version of HPLIP (checked this in )?


I'm creating an adventure map for a friend, and I want a pressure plate to bring up instructions in the chat when he steps on it. Any suggestions?

I need a way for a command block to say things in chat when it is powered, or more preferably whenever someone spawns into the world.


I want to factory reset my samsung A3 2016. It asks me to enter the gmail account password but awhile ago I removed that gmail account and now I cant recover it. How can I remove this gmail from my phone?

I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it.  Now the person can't get past setup because it's saying he must login with an account previously synced to the phone.   Is there anything I can do from my side to remove this lock?


How to calculate   ((13)^15)^17 (mod 17)   using fermat's little theorem?

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


The following code   \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document}     \begin{tikzpicture}         \draw[blur shadow](-2,0)circle(1);         \draw[blur shadow](0,0)rectangle(3,2);     \end{tikzpicture} \end{document}   leads to    Only XeLaTeX produces this. It is fine with LaTeX and LuaLaTeX. Any idea to fix it?


I'm working on a "toy problem" where I am supposed to write a JavaScript function that converts a decimal into a fraction and returns it as a string.  For example:  fractionConverter(2.75) should return "11/4".  Here is my code:  function fractionConverter (number) {   if (number > 0) {     var isNegative = false;   } else if (number < 0) {     var isNegative = true;   }    number = Math.abs(number);    if (number % 1 === 0) {     var finalFrac = number + "/1";   } else {     for (var i = 2; i < 10000000000; i++) {       if ((i * number) % 1 === 0) {         var finalFrac = (i * number) + "/" + i;       }       if (finalFrac) { break; }     }   }    var getFrac = function(numString, bool) {     if (!bool) {       return numString;     } else {        return "-" + numString;     }   }    return getFrac(finalFrac, isNegative); }   Sorry about the formatting.  Anyway, I'm getting a weird spec failure.  The function returns the correct values for the following numbers:  0.5, 3, 2.5, 2.75, -1.75 and .88.  For some reason, however, it is failing on 0.253213.  It is returning 1266065/5000000 instead of 253213/1000000.  Not really sure why.  Thanks

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


The  includes this summation:  $$\sum_{n=0}^{\infty}{\frac{1}{n \cdot 2^n}} = \ln 2$$  I was very surprised when I saw this, and I don't have a clear sense of where it comes from. This doesn't seem related to the Taylor series for $\ln x$. It somewhat reminds me of the sum  $$\sum_{n=0}^{\infty}{\frac{n}{2^n}}$$  which converges to $2$, but I'm not sure whether there's some way to manipulate the first sum in a way that relates it to the second. It also vaguely reminded me of the sum from the harmonic series, except that the $2^n$ term in the denominator breaks that similarity as well.  Is there a simple explanation as to why this sum gives $\ln 2$? Does this generalize to any other natural logs (say, could a modified sum give back $\ln 3$), or is this oddly specific to $\ln 2$?

What would be the sum of the following series?  $$\sum_{n=1}^{\infty} \frac{1}{n \cdot 2^n}$$  Thanks


Does Facebook have any text formatting enhancements like ? While writing a comment or status update, can I use linked texts or @-referrals? Or is it just like Notepad?

There doesn't appear to be any formatting links when I do a Facebook Wall post.  Is there any way to do formatting like HTML, markup, etc?


Is there some way to force a popular desktop browser (IE, Chrome, Firefox, Opera etc.) to only connect to a site via HTTPS and if the site does not support HTTPS, then not connect at all?

This is similar to , but I believe it's a bit different*.  Sites like GMail support a preference that pushes all traffic through the SSL edition of the site rather than the plain-text protocol.   For sites that don't offer such preferences (or ones that may, but I have been unable to find, like facebook), is there a way using only the browser (perhaps with a plugin or addon) to always try SSL first, and fall-back to plain-text iff SSL fails?  Is that solution available on Windows, Mac OS X, and Linux? Just one?     * The previous question was looking for external applications that would accomplish this goal.


Are there any special requirements I should be aware of before adding lights and outlets to my covered back patio?  I know GFCI protection will be required on the outlets, but can I run regular Romex cable over soffit?  It's an open air, concrete patio and wood post construction with typical soffit ceiling. There is an empty outlet box installed on the far right of the porch, about 15-18 inches off the ground. I would like to use that, and add a second outlet closer to the french doors via conduit and THHN. I don't have a picture of the porch itself, but it can be seen behind the playground.  The ceiling material is the vinyl soffit, which I thought to be typical for porches and patios.

I'm looking to add some lights on motion detectors (un-switched) and security cameras under the eaves of our house.  I know standard romex is often used in attics, but the soffits seem like they might be more exposed to weather.  Our soffits are enclosed, like so: (picture from )   So, do I need to protect any wires which reach into the soffit, such as would power the pictured light?  Or should I use wire rated for exterior use?  I'm also plotting some Cat 5e runs of a similar nature, should those be protected/exterior as well?


I have a simple question,  When I sign a message (in RSA) does the program encrypt the text with my private key?  Because I can decrypt it with my public key.  Yes or no. Is signing a message just encrypting with private key?

It is often said that RSA encryption of a cryptographic hash with a private key is the same as signing (signature generation). And that verification consists of decryption using a public key.  Is RSA encryption with a private key over a cryptographic hash equivalent to  signature generation?


In my opinion, Stockholm should be one of the featured cites on , considering Sweden has the top number of Stack Overflow users per capita (). Stockholm features, DICE, Paradox games, ... and has a mini silicon valley called Kista.   So, please add it to the list of featured cities.

I've noticed a few crucial cities missing from the Cities section on Stackoverflow Careers.  I can't find a place to suggest them.  I see Atlanta is there (currently has 9 open positions), but Dublin is missing (currently has 18 open positions).  Where can I suggest new cities?


I am applying a Gaussian filter to smooth my data in Python, specifically I am applying the scipy function gaussian_filter1d. This function receives the standard deviation for the gaussian distribution as an argument. It works great but I was exploring the ksmooth function in R which is based on the Nadayara-Watson kernel-regression estimate and it uses the bandwidth as a parameter.  I am wondering if there exists a relationship between the standard deviation and the bandwidth, and if both implementations are comparable.

I am trying to learn Kernel density estimation, I need help to understand how the bandwidth $h$ affects the Kernel density estimator. Consider a Gaussian Kernel $k(x)~=~\frac{1}{\sqrt{2 \pi}} e^{-x^2}$. The Kernel density estimator is given by ${\hat{f}}_h (x) ~=~ \frac{1}{n} \sum_{i=1}^{n} K_h(x-X_i)$.  Clearly, $k(x)$ is independent of $h$, where does $h$ come in? What would be ${\hat{f}}_h (x)$? How does $h$ affect the Kernel?  Thank you!


The main question is that what is the probability that $n$ points on a circle lie on the same semi circle. I was trying to solve the question by thinking about the following equivalent question:  What is the probability of selecting $n$ $\textit{Uniform(0,1)}$ numbers such that their range is less than $0.5$. I have attached an image with the derivation of the range of $N$ uniform random variables.  If you plugin $d=0.5$ in the cdf for the range of uniform distribution, we should get the answer but the answers don't match. What is wrong here? The answer should be $\frac{n}{2^{n-1}}$ but using the cdf the answer is $\frac{n+1}{2^n}$.

Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle? Any hint is appreciated.


I am studying for an exam and came upon the problem of solving the linear congruence $10 x = 15 \pmod{45}$.  I am stuck as the $10$ and $45$ are not coprime but have the $5$ as a common factor.

I know how to compute modular multiplicative inverses for co-prime variables $a$ and $b$, but is there an efficient method for computing variable $x$ where $x < b$ and $a$ and $b$ are not co-prime, given variables $a$, $b$ and $c$, as described by the equation below?   $ a x \equiv c \mod b $   For example, given  $ 154x \equiv 14 \mod 182 $, is there an efficient method for computing all the possibilities of $x$, without pure bruteforce?  Please note that I'm not necessarily asking for a direct solution, just a more optimized one.    I do not believe that the Extended Euclidean Algorithm will work here, because $a$ and $b$ are not co-prime.   Edit:  Follow up question, since the first one had a shortcut:  Could the be computed efficiently as well?  $12260x \equiv 24560 \mod 24755$.  $107$ needs to be one of the computed answers.


Ubuntu Software Updater is blank when opened.     I also can't update through Ubuntu Updates in the Ubuntu Software application.   I could use the terminal but then I would have to type in my password, which I don't normally have to do for updating, and seeing as it is playing up, I guess would this be a security risk.  I have tried to remove/uninstall Software Updater but it doesn't work.

Today I received an update notification for three updates but update manager doesn't say what updates are they.    Does anyone have a clue what this is about? How am I to check what is to be updated?


Why do these newcommands result in error when used?  \newcommand{\bal}{\begin{align*}} \newcommand{\nal}{\end{align*}}

I'm trying to define two commands \bal and \eal instead of inserting \begin{align} and \end{align} in my document, but in the code below, I'll get some errors. What is wrong with it?    \documentclass{article} \usepackage{amsmath} \makeatletter  \newcommand{\bal}{%  \begingroup  \align% \@ifstar{\nonumber}{}%  }  \newcommand{\eal}{\endalign\endgroup} \makeatother \begin{document} \bal* x=y \eal \end{document}


I have a larger list of approximately 250 elements. I need to group every 50 elements into a sub-list and iterate through each of the sub-lists.  For example:  largerList = [0, 1, ... ..., 268]   I want the sub lists to look like:  subLists = [[0, 1, ... ..., 49], [50, 51, ... ..., 99], ... ..., [250, 251, ... ..., 268]]   Then I will be able to iterate the sub lists and do something for each of them.  for ls in subLists:   for i in ls:     DO SOMETHING...

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


\begin{table}[H] \centering   \begin{subtable}{\textwidth} \centering table materials \caption{sub table 1 } \end{subtable}  \begin{subtable}{\textwidth} \centering table materials \caption{sub table 2 } \end{subtable}   \begin{subtable}{\textwidth} \centering table materials \caption{sub table 3 } \end{subtable}  \caption{Overall caption} \end{table}   It always takes one whole page for a table with its subtables. So the previous page has a lot empty. So does the later page.   Thank you in advance.

I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have achieved this using the \ContinuedFloat command, however my subfigure numberings are resetting between pages instead of resuming.  Below is a minimal example:  \usepackage{graphicx,subcaption}  \begin{figure}[H]   \caption{My Figure}     \begin{subfigure}{\textwidth}         \caption{Fig 1}         \includegraphics[...]{something.jpg}     \end{subfigure}     \begin{subfigure}{\textwidth}         \caption{Fig 2}         \includegraphics[...]{something.jpg}     \end{subfigure} \end{figure} % allow break \begin{figure}[H]     \ContinuedFloat % continue from previous page     \begin{subfigure}{\textwidth}         \caption{Fig 3}         \includegraphics[...]{something.jpg}     \end{subfigure}     \begin{subfigure}{\textwidth}         \caption{Fig 4}         \includegraphics[...]{something.jpg}     \end{subfigure} \end{figure}   In this example 'Fig 3' and 'Fig 4' are incorrectly labelled (a) and (b) instead of (c) and (d).  How can I resume the subfig numbering correctly?


How do I install "Ubuntu One" on Ubuntu 16.04? Although it seems trivial but I couldn't find nowhere instructions? I want to backup my files on cloud using Ubuntu One service. Also when I open Deja-dup for backup I cannot see "Save to Ubuntu One" option on storage location in settings?

I just received an e-mail from Canonical warning me that the Ubuntu One service is going to shutdown. Is this real? Has anyone else got the same e-mail? Why is this happening?  Any information would be appreciated :S  Email:     Hi,      We are writing to you to notify you that we will be shutting down the   Ubuntu One file services, effective 1 June 2014. This email gives   information about the closure and what you should expect during the   shutdown process.      As of today, it will no longer be possible to purchase storage or   music from the Ubuntu One store. The Ubuntu One file services apps in   the Ubuntu, Google, and Apple stores will be updated appropriately.      As always, your content belongs to you.  You can simply download your   files onto your PC or an external hard drive.  While the service will   stop as of 1 June, you will have an additional two months (until 31   July 2014) to collect all of your content. After that date, all   remaining content will be deleted.      If you have an active annual subscription, the unused portion of your   fees will be refunded. The refund amount will be calculated from   today's announcement.      We know you have come to rely on Ubuntu One, and we apologise for the   inconvenience this closure may cause.  We've always been inspired by   the support, feedback and enthusiasm of our users and want to thank   you for the support you've shown for Ubuntu One. We hope that you'll   continue to support us as together we bring a revolutionary experience   to new devices.      The Ubuntu One team


She got mad because I didn't call Bob Principal Bob.  Should it be   She got mad because I didn't call Bob 'Principal Bob.'  thanks

E.g. "I get called Hitler in school." or "I get called 'Hitler' in school."?  Would quotation marks be needed for 'Hitler'? What if it was an uncommon or nonsensical word like 'A123' or 'Gaylord'. Would the capital letter alone be enough to grammatically make its usage fine? What if the nickname is made up of multiple words like "Fatty Pig Face"?


Visual Force Component:  <apex:component controller="myController1" access="global">
  <apex:outputLink id="urlString" value="{!url}/{!$User.Id}?noredirect=1&isUserEntityOverride=1" >{!url}/{!$User.Id}?isUserEntityOverride=1&amp;noredirect=1</apex:outputLink>
   <apex:outputLabel value="{!userName}" id="someId" />  <apex:outputLabel value="{!userPhone}" id="someId2" />   </apex:component>   Visual Force Template code:  <messaging:emailTemplate subject="SOA - User {!$User.Username}" recipientType="user"  relatedToType="order">     <messaging:htmlEmailBody >
Hi,

User <c:ant/>  does not have JDE ALIAS Assigned.               Click on below link to go to this user setup:             <apex:outputLink value="<c:ant/>/{!$User.Id}"><c:URL /></apex:outputlink>                                            </messaging:htmlEmailBody>           </messaging:emailTemplate>   In Vf Template first <c:ant/> should display only username and <c:ant/>should display only link how to access the Visual force component to Visual Force Template code how? Please Guide me for the Answer  How to access the username only from vf component to vf template?

I have Visual Force Component:  <apex:component controller="myController1" access="global">
  <apex:outputLink id="urlString" value="{!url}/{!$User.Id}</apex:outputLink>
  <apex:outputLabel value="{!userName}" id="someId" />  <apex:outputLabel value="{!userPhone}" id="someId2" />  </apex:component>   How to access the username only from visual force component to Visual force template in email alert using Work flow Rule in salesforce ,please Anyone Guide me for the Answer  I have tried in Vf template:
User <c:ant id = "someId" value = "{!userName}"/>
   but it is showing error like: Error: Unsupported attribute value in   How to Rectify the Error Please anyone Guide me for the Answer


I am having problem with logic and syntax in Python for opening program and executing program.  For an example, I have figured out how to open a program with python code by doing so:  import os  os.system("start c:/test/sqlite3 test.db3)   With this example code I am opening an sqlite3 (I know there is an sqlite3 library in Python - I am trying to understand OS right now.)  How could execute following command with this open file?  .read test.sql   I would appreciate if you would explain a logic to me in brief. Thank you.

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


The title.  Is there a way to print (to the log file) the category code of every single possible input byte, either in order, or in some tabular form?

I often need to look up a catcode table, and quick searches on the web are rarely satisfying.   So I thought, it must be (in the long term) easier to use a Latex function of sorts, to loop through all 8-bit sequences (that is, ASCII characters), and print out:   [ASCII code] - [ASCII character] - [catcode] - [catcode meaning]   A "reverse indexing" would be nice as well - where catcodes are output, and then which ASCII chars belong to them, e.g:  [catcode] - [catcode meaning]:      [ASCII code1] - [ASCII character1]     [ASCII code2] - [ASCII character2]     ....   Just wanted to note - I'd like such a table to be \typeouted to the terminal (not typeset in a PDF).   In , a \printcatcode exercise is mentioned, that answers the mapping from ASCII character to a verbose catcode meaning...   So I guess, one would just have to make a loop from 0 to 255 (maybe something similar to approaches in ), and apply all such relevant transformations - unfortunately, I'm not mastering tex core on a level where I can come up with that code off the top of my head. But maybe a function for something like this already exists?   Any suggestions for code that I could use in this context?


In a microwave oven, the magnetron connects to the waveguide.  Magnetrons produce microwaves, which are guided into the cooking chamber by waveguides. Why don't we directly connect the magnetron to the cooking chamber?

Why do we need a waveguide to move microwave power from the magnetron to the microwave cavity? Can't we just push magnetron antenna into the cavity? Why does it have to go through a waveguide?


Would appreciate clarification on what exactly is happening when a constructor has only one argument and it is said that it does an implicit cast to the class type - right there It is confusing to me because :  class dog { public :         dog(string name) {    mname = name;} private :          string mname; };   I don't understand how a type string can be converted to a type dog, I can see how it can be passed in and SET another string but if a string is converted to type dog what would that even mean? Would it be type dog that gets assigned a bit wise copy of a string?

What does the explicit keyword mean in C++?


I have a large set of images that I want to stitch the together and orthorectify. They have been taken from a small aircraft. The camera of the aircraft is tilted, thereby, although gps data is available, the image position and the gps position are different. I have tried some software such as Microsoft ICE and PTgui with no luck.  How could I proceed?

I have a large set of aerial images (thermography) some of them are very tilted due to the airplane turning. I want to merge all the images into a unique orthorectified image. I have not the GPS information but I know the place where the termography was taken. Which is the best way to proceed? Is there any free software available?  I have been trying Microsof ICE but the results are very distorted.


I can't think of specific episodes off hand, but there were several episodes where crew members were surgically altered in order to appear as a different species if it is for espionage, etc.  While surgery in the future is much safer than today, and assuming the surgical reversal is easy and safe, if they are being transported anyway, why can't they have the transporters alter their appearance when they get reassembled?  I assume this would be the most ideal, no?

In the era of Star Trek: The Next Generation (or even earlier), why isn't invasive surgery performed using the transporter?  In theory, one could:   dematerialize an individual and store the pattern in the buffer perform "surgery" by altering the pattern appropriately rematerialize the individual   From an in-universe point of view, why is this not the preferred method of surgical intervention?  Is it the challenge of altering the pattern?  It would be most desirable to have an answer that (a) explains why this approach to surgery cannot be done or — if it can — then why it is not done very often in TNG; and (b) gives examples of when it has been done (if such examples exist).  Differentiation: The question  is in a similar vein.  However, that question is about restoring back to a previous (healthier) pattern.  The present question is about directly altering a single copy of a pattern, without using any data from previous patterns.


Prove that in ring $\mathbb{Z}, \forall a,b \in \mathbb{Z} $,   $$(a,b) = (d),$$ where $ d = \mathrm{gcd} (a,b)$. Also, generalize this for all finite generated ideals in $\mathbb{Z}$.   I don't even know how to start. I am not sure if I got the definition of generated ideal. When I have $(a)$, what does that mean?

let $J_m$ be the set of all integral multiples of the integer $m$. 1) Prove that $J_{g.c.d(m,n)}$ contains all the elements of $J_m$ and $J_n$.   2) Prove that if $J_r$ contains all the elements of $J_m$ and $J_n$, then $J_r$ contains all the elements of $J_{g.c.d(m,n)}$.   for part 1) the elements of $J_{g.c.d(m,n)}$ are of the form $c*g.c.d(m,n)$, where $c\in    \mathbb{Z}$.   Now if $x$ is in $J_m$, then ∃ $a\in \mathbb{Z}$ | $am=x$. So we want $x=am=b*g.c.d(m,n)$ for some $b\in \mathbb Z$. If we pick $b=am/g.c.d(m,n)$, then our task is done.   Now for part 2) ∀ $a,b\in \mathbb Z$, $am,bn\in J_r$  To show that this implies that  ∀ $a\in \mathbb Z$ $a*g.c.d(m,n)$ is in $J_r$ I am assuming that something like $am*g.c.d.(m,n)$ which is in $J_r$ can be shown to go through all the integers; meaning, if $am$ can be shown to go through all integers I would be done. But right now I am not seeing the solution.   Any hint or help would be appreciated. Thank you in advance.


In the example I am given, I am told that $r_n$ is defined as:  $$ r_n = \begin{cases}        r_0       = \sqrt{2} \\       r_{n + 1} = \sqrt{2 + r_n} \\        \end{cases} $$  I was told to calculate $r_3$ and I found that to be:  $$ r_3 = \sqrt{2 + \sqrt{2 + \sqrt{2 + \sqrt{2}}}} $$  Then I am told to find   $$ \lim\limits_{n \rightarrow \infty} r_n $$  So if I let that equal L I get  $$ L = \sqrt{2 + L} $$  This is where I get stuck. I know that the limit is 2 as I have added a 10 terms together but that will not help me in my exam. How should I go about proving this?

(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12)  For $c \gt 0$, consider the quadratic equation $x^2 - x - c = 0, x > 0$.  Define the sequence $\{x_n\}$ recursively by fixing $|x_1| \lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining  $$x_{n+1} = \sqrt{c+x_n}$$  Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  Note: The answers below might assume $x_1 \gt 0$, but they still work, as we have $x_3 \gt 0$.    This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


I am trying to install a tool called Stacer, to clean junk files from my PC (Ubuntu 20.04 LTS).  The app is installed but everytime is use sudo apt-get update && sudo apt-get upgrade, I get the following error     Ign:11  focal InRelease   Err:12  focal Release     404  Not Found [IP: 2001:67c:1560:8008::15 80]   Reading package lists... Done   E: The repository ' focal Release' does not have a Release file.   N: Updating from such a repository can't be done securely, and is therefore disabled by default.   N: See apt-secure(8) manpage for repository creation and user configuration details.   What should I do?  EDIT 1 The question is not answered at .  They suggest to remove the PPA. But the error message says it is disabled by default. So there might be a way to enable it.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I have many devices from which I want to get logs using a syslog server hosted on my iMac.   To get in touch with logs and analyse them, I am looking for a good syslog viewer for mac which have the following functionalities :   color log by level stats & graphs send mail and alert   I tried the common logs viewers (console, SU => ) but the two last functionalities I look for are not supported by them. It exists loggly.com but only on cloud version and logmx but which exist only in free version without stats.  Has someone any idea of a good syslog viewer (opensource / free if possible) which had these functions for mac ?

I am looking for a visual tail tool that can monitor several local or remote log files.  Optional features that interest me: color highlight based on log error level, coloring for special words, filtering of messages and/or notifications on new activity.


The product I am working on at the moment is a standalone product but we are creating a web app to replace it.  It currently opens modal windows on top of modal windows for the same function  i.e Create new report (modal) > add person to report (modal)  Is there a known best practice for making this nicer to use without using a wizard?

Using bootstrap modals, I keep running into the issue of having an info modal with content inside of it, but there's a need to have a "confirm your decision" modal/popup on top of the initial modal.   E.g. I have a page with a list of users. You can click on a user to open a modal with user info inside of it. Then there will be maybe a "remove user" button in the modal that requires a "confirm remove user" modal.  Is it ever a good idea to have a modal on top of another modal or am I using modals wrong? Should I use actual pages instead?


I have data in the following format  Project Person1 Person2 Person3 A         Joe     Alice  Bob B         Bob      Tom   Joe C         Alex     Alice  Tom D         Bob      Doug   Susan   How can I get a pivot table that shows the following:  Person   Prj1    Prj2 Prj3 Joe       A       B  Alice     A       C Bob       A       B    D Tom       B       C    Dog       D Susan     D Alex      C

I have data that looks like this:  Id | Loc1 | Loc2 | Loc3 | Loc4 ---+------+------+------+----- 1  | NY   | CA   | TX   | IL 2  | WA   | OR   | NH   | RI   And I want to convert it to this:  Id | LocNum | Loc ---+--------+---- 1  |   1    | NY 1  |   2    | CA 1  |   3    | TX 1  |   4    | IL 2  |   1    | WA 2  |   2    | OR 2  |   3    | NH 2  |   4    | RI   What's the easiest way to do this in Excel 2007?


Activating the “Auto-hide the taskbar” option from Taskbar’s properties doesn’t hide it entirely. A single pixel is left sticking out like a sore thumb and I don’t know to make it go away.   When the monitor was connected through DVI, there was an option available in monitor’s settings through which I could move the screen just several pixels left or right thus making the sticking out pixels invisible. After switching to HDMI, however, this option became unavailable and the roundabout solution stopped working.   says that the screen should be adjustable from NVIDIA’s control panel also, but there are no arrows there, which leads me to believe that it too is not applicable to HDMI.      From the NVIDIA Control Panel navigation tree pane, under Display,   click Adjust Desktop Size and Position to open the page.  Click the image that represents your VGA display.  Use the arrow keys on the image that appears to adjust your screen position until your desktop/image is no longer cutoff on any side.    The monitor is LG  23EA63 Video Adapter is GeForce GTX 285

My desktop look is empty so all I have is a nice wallpaper. My Windows taskbar has the "Taskbar Appearance" setting to "Auto-hide the taskbar". Although hidden, it leaves a thin top layer so you can still see it a bit, and where the pinned shortcuts are. Is it possible to totally have it hidden without a trace? This is a serious question. It really bugs m.


This exercise has no assumption on the boundedness of $D$, hence $\bar{D}$ is not guaranteed to be compact. Would this be essential for the assertion to be true?  Suppose the nonconstant function $f(z)$ is analytic in a domain $D$ and continuous on its closure. If $|f(z)|$ is constant on the boundary of $D$, prove that $f(z)$ has a zero in $D$.   The obvious approach is to assume by contradiction that $f$ has no zero in $D$. Then we can define a nonconstant analytic function $1/f$ in $D$, which gives us by the Maximum Modulus Theorem that $1/|f|$ does not attain a maximum in $D$. But how can I use this to reach a contradiction? I am stuck here and I would greatly appreciate any help.

The question goes like this:     Let $B=\{z\in C: |z|<R\}$ and $\partial B$ is the circle of radiu $R$. If $f$ is a non-constant analytic function on $B$ such that $|f|$ is a constant on $\partial B$, then $f$ must have a zero in $B$   My attempt:  From the assumption that $f$ is a non-constant analytic function on $B$, we have the maximum of $|f|$ is achieved on $\partial B$. Then I got stucked... I believe that since $\partial B$ is constant, and $f$ is a non-constant, the value of $|f|$ must variate in the interior of $B$ so there is a zero. But how to prove it mathematically?


My program has a nested  std::map object like  map < int, set < void *> *> m;   My program coredown in some situation, and I don't know the reason.  I suspect the problem is in  the nested map.   I only know using pmap to print simple map objects like std::map<int, int>, but don't know how to print more complicated map objects.  If a map is defined as map< int, int > m;, then  gdb pmap m int int    does work, but if a map is  defined as  map< int, set < void * > * > m;   then  gdb pmap m int set < void *> *   does not work

Supposing to have something like this:  #include <map> int main(){     std::map<int,int> m;     m[1] = 2;     m[2] = 4;     return 0; }   I would like to be able to inspect the contents of the map running the program from gdb. If I try using the subscript operator I get:    (gdb) p m[1] Attempt to take address of value not located in memory.   Using the find method does not yield better results:  (gdb) p m.find(1) Cannot evaluate function -- may be inlined   Is there a way to accomplish this?


I remember in high school late 90s reading a short story probably in an anthology or collection about two lovers (man and woman), who time travel while they’re together in their apartment bedroom (possibly New York or a large undefined city).   The way I remember how they time travel is when they are in the bedroom together time outside goes quicker than inside (a few hours might be a day).   I remember as the story went on they stayed in their bedroom more often and only went out for shopping groceries so were spending less and less time in real world time.   They lost their jobs and might have invested in stocks or something to make money I can’t remember that part exactly.   It was probably written by an American author in an American short story collection. It was a simple well executed and romantic story about how time seems to go so fast when you’re together with a loved one. . It also had a great ending where they ceased to exist or something. As the landlord visited and the apartment was empty or something. That climactic ending gave you a nice chill wow feeling.  I’d like to find it again because it is one of the stories I always remember but don’t know what it’s called.

I think I read this story in Omni magazine in the '80s.  It's about two lovers who discover that whenever they're touching each other, time stops for everyone and everything else. Time just stands still outside of their bedroom - like hitting pause on a VCR.  I do remember one small detail: these two people tried to experiment with this ability, and they discovered that they could prepare meals, and that they would stay hot while time was paused. They experimented in other ways, too, though I cannot recall how.  Sometimes my searches turn up a story about two lovers who are time travelers - there is jealousy and some paradoxes - but the story I am thinking of is not a story about time travel, at least not directly.  I've tried googling for it, but the search terms (e.g. "lovers touch time stops") are so non-specific that all I get are false hits. I've tried looking here both using Search and Similar Questions. No joy.


I am trying to implement this solution (), but when I create a buffer around my polygons, those with holes are ignored. I tried to Delete Holes using the processing tool. It does fill the "real" holes but these features:     are not filled in. Polygons with these are also ignored when I try to buffer them...  If I try to fix them manually, I get this:    Also, these polygons were created from a raster using polygonize. How do I go about being able to create a buffer around such polygons?

I'm following the online qgis manual available on qgis website. I'm doing the step 21.11.3. ().   To make it simple : I have a raster converted to vector, so now it is a polygon (several polygons). I'm doing an interior buffer exactly how it is described in the manual. I didn't obtain the same result. I can see the interior buffer just in some polygons, not in all of them ->    The interior buffers appear just for those polygons, that don't contain a hole. I use qgis 2.18.3.  This is how i created the interior buffer ->    In green you see the input layer : suitable_terrain, in blue the output layer, the interior buffer.   It is not a problem of a projection. I use WGS84 UTM Zone 34S where the units are in meters. I did also the Check validity and i obtain the same result.


And as he ate it, she looked at him steadily.   In this sort of grammatical constructions, "she" works as a subject of the sentence with active voice.    Now, consider a sentence which I read in The Hindu:       And as the nation heard and saw him, a sense of India's greatness stirred within it.     Now, in this sentence "a sense" is working as  noun but the part "within it" is making this sentence passive unless there were "was" before "stirred". So, is this sentence correct?

How can I reliably and accurately identify the passive voice in writing or speech? I'm not interested in advice about whether or not to use it yet... I just want to know for sure what it is, so that I don't look as stupid as .


The text says  Only users nominated by the room owner may talk here. See the  for more information.  I think it needs to have its color changed, because I need to highlight the text or squint up close to read it.  Image as seen on the

If you visit a chat room attached to a beta site while logged out, the log in message is all but unreadable, being dark grey on a dark blue background. For example, visit  while logged out or in private browsing mode.


I am currently trying to compress a directory by using the tar command, however for some reason it doesn't seem to work properly.  I've used this command before on a VPS, so I have experience with using it. I'm trying to transfer files over from my old machine to a new one, yet when I go to compress it, it says this:  tar: Removing leading `/' from member names   The command executed is: tar -czf hub-backup-11-07-17.tar.gz {DIRECTORY} Obviously with {DIRECTORY} replaced with my target file.  Once I've executed the command, the cursor just sits still like in the image, not moving. I've tried leaving it like this until the window times out, but the file is always corrupted. I tried adding -P to the end of the command too. All that did was remove the tar: Removing leading '/' from member names message, but other than that it did the same thing.  Thanks

root@server # tar fcz bkup.tar.gz /home/foo/ tar: Removing leading `/' from member names   How can I solve this problem and keep the / on file names ?


If I want mark definition in text, should I use \textit or \emph. For example: A \textit{graph} is ...  I know, it is not the same.

In the comments section of , I asked for a clarification of these points. The clarification has mostly been made, but it was requested that I turn this into a question to provide for more room for this question to be fielded.  So here it is:  Please explain the difference between \emph and \textit. When should they be used, respectively?


I need to combine two wires with very light room lighting loads into one breaker in the panel to free up one breaker for another use.  How best to combine the two wires and insert only one into the breaker (since the two can't fit)?

I think I may have found an instance of "hill-billy" wiring in my circuit box.  I have a 15A GFCI breaker.  Strangely, it is hooked up to the up stairs bathroom AND the outdoor outlets.  Recently it has started to perform poorly.  It either trips easily or doesn't work after reseting the breaker.  I opened up the panel and was surprised to see what looks like two circuits wired into the breaker.  That is, you have a two pairs of black/white (hot & neutral I presume).  The hot lines are going into the breaker together (on the top) and the same with the neutrals (on the bottom).  Is there any valid reason for this? It seems like the installer was lazy and because there isn't much room left on the panel they wired these two circuits into one breaker.  UPDATE:  This is a Bryant circuit breaker box from the late 80's.  The GFCI breaker was a 15 amp Sylvania which raised a bunch of eye brows when I brought it into the electrical supply place. Now it sounds like everyone makes "BR" compatible breakers including Eaton.  I ended up getting an Eaton breaker from Home Depot and only wiring in one pair of wires (the wiring to the outside sockets).  Seems to work fine.  I am going to buy another breaker and put it in one of the open spots in the box.  My guess is that whomever was last in this box didn't want to spring $40 for a second GFCI breaker.    UPDATE 2:  Thanks for the comments!  Giving that the house was built in 1986 it seems like it was standard to use one GFCI for multiple outlets.  In my case - this certainly caused problems over time and I am replacing with multiple GFCI breakers.


Update: While this question does point to available style guides my question is more how to go about similar operation by yourself and associating your own symbols with osm maps  I downloaded OSM based maps from  and my question is how to associate the symbols shown in the screen shot with the fclass attribute automatically so vectors of ftype type "Motorway","Primary" etc all use the appropriate symbol I tried changing the symbol type to Categorized by ftype but that still meant I had to manually edit each one and pick the correct symbol.  p.s. are the symbols included in the osm file or are they common to qgis?

I'm looking for a qml file (or equivalent e.g. sld) to allow me to use QGIS to take OpenStreetMap data and produce paper maps. I'm re-asking this question (it was asked once or twice over a couple of years by other people) because I'm really surprised not to easily find such a thing already (I looked hard).   I have found  - which are good, but only style basic data like roads (and do so simply). I've successfully followed the  for getting OSM data to work with. I've carried out some basic style editing successfully. I realise I could create my own styles for this purpose - but this seems like a very big job. I want a visually pleasing map taking into account most of the data available on OSM (i.e. not just streets, but tracks, paths, rivers, woods, lakes, buildings and so on). I'd have thought that there would be other people out there already doing the same... It seems odd to have to re-invent the wheel when both OSM and QGIS are open source / open data projects. I feel like maybe I've just missed the obvious repository of OSM qml files which resides out there on the internet somewhere if you know where to look.  Additional notes in response to query below...  Ideally I'm looking for a Mapnik style rendering of the OSM data, but any equivalent properly developed and complete style would be good.  At the moment the objective is to use this data to produce paper mapping, but simple use of the mapping as base data on which other geographic data can be displayed also requires a decent rendering. At work I use Ordnance Survey data completely styled to produce a full and very detailed UK map (the point being that I didn't have to design this styling, it came with the data). I realise that other tools exist for paper mapping, but the same issues tend to arise at one stage or another... I'm more or less successful in making the tool work for me in really basic terms, but to get to something visually useful I end up back with me either needing to re-invent a complete rendering style from scratch (beyond my skill), or encountering such a complex set of requirements for database setups or whatever that the process crashes and burns before I get anywhere useful. With a few more years of GIS experience I'll maybe be a database, CartoCSS (or whatever else) wizz... but until then I'm prevented from using the amazing resource that OSM provides by this one barrier.  Update (July 2015): Please note that I'm still looking for information on this, and given that I've just been informed that the question has had 2500 views in the last year clearly others are too.


I'll like to know if heat radiation may also involve radio wave frequencies. If a battery is connected to a resistor, does the radiation from the resistor also have frequencies in the radio wave ranges?

The resources that I've checked out seem to say thermal radiation only occurs in the infrared and visible spectrum. For example my heat transfer textbook and the Wikipedia page on .  In my mind thermal radiation is just energy emitted as a result of internal collisions from temperature. So, since temperature can range from 0K to huge numbers, I would think you would have a similar range of emitted energies. So then thermal radiation could occur throughout the whole of the electromagnetic spectrum.


Is it correct to start a sentence with "Have been"?     Have been looking into the issue since last week.   edit: fixed missing word since.

I’m specifically thinking about emails I receive all day where someone will write:     Haven’t seen it yet.  Will respond when received.   If it were spoken, we would certainly hear:     I haven’t seen it yet.  I will respond when I receive it.   It’s mostly the dropping of I that I wonder about.  Is there a name for this phenomenon?


We got $$ f(x) = \begin{cases} \sin \frac1x,&x\neq 0 \\ 0,&x = 0 \end{cases} $$  I have to prove that g is continuous, where $ g: \mathbb R \rightarrow \mathbb R, x \rightarrow xf(x)$. How can I do this?

Given the function: $$f(x) = \begin{cases} x\cdot\sin(\frac{1}{x}) & \text{if $x\ne0$} \\ 0 & \text{if $x=0$} \end{cases}$$  Question 1: Is $f(x)$ continuous at $x=0$?  Question 2: What is the derivative of $f(x)$ at $x=0$ and how do I calculate it?


I have notoriety level 3 in the frontier and currently 16 jagers are chasing me throughout the frontier from valley-forge to john's town how do i reduce it??

In some parts of the wilderness, I have a notoriety of 1, and in other parts I don't have notoriety at all. How can I reduce it?


Ignoring statistical variation in wind, will a helicopter that only applies force perpendicular to a perfectly sphere earth remain in the exact same spot relative to the earth?  I am arguing with globe earthers who claim the helicopter will remain in the exact same spot because somehow the helicopter maintains the same angular velocity and thus increase its tangential speed to compensate for the longer distance it has to travel, while I claim the helicopter would slowly deflect away from it's original position due to   The helicopter loses angular momentum and air cannot perfectly conserve its angular momentum. There is a net force pushing the helicopter towards the equator if it isn't on the equator to begin with.   This is not a duplicate because I am asking for more in-depth info on the forces acting on the helicopter. Those links do not address the question at all.

I was reading somewhere about a really cheap way of travelling: using balloons to get ourselves away from the surface of the earth. The idea held that because the earth rotates, we should be able to land in a different place after some time. As we all know, this doesn't happen.  Someone said that the reason why this doesn't happen is because the atmosphere (air, clouds etc.) also revolves around the earth (with the same angular velocity as the earth's rotation). Since we are also part of the atmosphere, our position doesn't change relatively.  Well, I'm not convinced with that answer. Why does the atmosphere rotate along with earth?  Gravitational force is towards the centre of the earth, but I don't see how it's making the atmosphere rotate.


With Ubuntu and Windows dual booting I can not edit files in my Windows folder (partition). Windows is shut down and I can access the files but not edit? How can I edit my windows files again?

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I have a text file:  a   aa  aaa     b   bb  bbb     c   cc  ccc d   dd  ddd     e   ee  eee     f   ff  fff g   gg  ggg     h   hh  hhh     i   ii  iii j   jj  jjj   How can I process it and get a 2 column file like this:  a   aa aaa b bb  bbb c   cc ccc d dd  ddd e   ee eee f ff  fff g   gg ggg h hh  hhh i   ii iii j jj  jjj   Or a three column file like this:  a   aa  aaa b   bb  bbb c   cc  ccc d   dd  ddd e   ee  eee f   ff  fff g   gg  ggg h   hh  hhh i   ii  iii j   jj  jj   I prefer to get awk solution but other solutions are welcomed too.


How to start UX design? Should I attend a boot-camp or self-teach? If self-teach, what are some good resources out there for me to use?

Next month, I'm fortunate enough to be starting a new job as a UX consultant at an agency. I'm straight out of an university and this is my first UX job, so, I was wondering if you have any tips for someone in my position? What did you wish that you knew when you first started?


What gdb frontends can I use with vim for debugging C and C++ code? Currently I use  and am satisfied with it. Was just wondering what else is out there?

In emacs there is a handy way to launch the gdb and gui options for gdb, the C debugger.  Is there a similar option in gvim?


I want to install Windows XP alongside Ubuntu for gaming but startup disk creator doesn't work.   I tried unetbootin but can't figure out how to format my USB to FAT32.  It's ok if I have to install Ubuntu again after installing Windows.

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


Claim: Let $V$ be a vector space over $C $ .   (V may not be finite dimensional vector space).  Let $T: V \to V $ be a linear transformation.  if $\lambda = 0 $ is $T$'s only eigenvalue than $T$ is nilpotent.  I'm not sure about this claim. I think it's not true, but couldn't find a counter example.  Thanks for helping !

Prove that a matrix with only zero eigenvalues must be nilpotent.   How will I be able to prove this?


Serials like The Flash, Arrow, and Agents of SHIELD are now in a mid season break.    What does it mean? Why do they take break in series like this?

There seems to be a three way split in the broadcasting industry between    Streaming providers who provide instant access to all episodes of a series Broadcasters who maintain a constant schedule of TV episodes until completion of the season Broadcasters who place a mid-season break in the middle of their TV series   What is the rationale for a mid-season break at a time when audiences seem to favor bulk consumption of media in shorter time periods?


is there any posibility of creating a coloured text box with only one rounded corner? (Maybe using tikz)    Thank You

How can I make rounded corners on one side of my node (only right, only left)?  \documentclass{minimal} \usepackage{tikz} \begin{document}     \begin{tikzpicture}         \node [fill=gray, rounded corners=10pt]{          };     \end{tikzpicture} \end{document}


I am trying to capture the currently logged in user on the linux box into a variable and then use the variable to insert it into a text file and replace the username in that file  in the file (live.conf) i want to replace the line : "live_user=whatever"  with "live_user=myvariable"  My script looks like this :  #!/usr/bin/env bash  username=${USER:=$(/usr/bin/id -run)}  sed -i -r 's/^#?(live_user)\s*=.*/\1=$username/' live.conf  exit 0   however the result is it replaces the line now to look like this :  "live_user=$username" and not the actual variable...  Anyone have any ideas on how i can make this script work ?

I tried the following code to replace QQ with ZZ, but it doesn't do what I want:  var1=QQ sed -i 's/$var1/ZZ/g' $file   However, this code does what I want:  sed -i 's/QQ/ZZ/g' $file   How do I use variables in sed?


I have a database with users and each has a role. U for user and A for admin. I have a method in on class called getRole() which gets the role of a user ad returns it as String. In an other class I call this method, save its result to a String and then test that String. If it is A (admin) then proceed. The problem is that the String returns A, but the programm doesn't continue. What is wrong here?  getRole() Method:  public String getRole() throws SQLException {      userid = "c##lambros";     password = "16111111";     jdbcUrl = "jdbc:oracle:thin:@localhost:1521:ORCL";     conn = DriverManager.getConnection(jdbcUrl, userid, password);     checkRole = "SELECT role FROM users where username = '" + usernameF.getText() + "' AND password = '" + passwordF.getText() + "' ";     System.out.println(checkRole);     stmt = conn.createStatement();     rset = stmt.executeQuery(checkRole);     while (rset.next()){     role = rset.getString(1);     System.out.println("The User's Role is " + role);     }      return role;     }   IF Statement:      Login login = new Login();     TermResultsFromDB terms = new TermResultsFromDB();     String role;     try {          role = login.getRole();         System.out.println(role);          if(role=="A"){         terms.getTerms(query);         terms.setVisible(true);         terms.setLocation(z, y);         terms.pack();         }          else if (role!="A")             System.out.println("Sorry! Not sufficient Privileges!");      } catch (SQLException f) {     }

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


From  we learn that in order for Bash to perform auto-completion one must perform . /etc/etc/bash_completion.d/foobar (note the space after .) in order for Bash completion to work.  $ /etc/bash_completion.d/ssh bash: /etc/bash_completion.d/ssh: Permission denied $ . /etc/bash_completion.d/ssh $ ls -l /etc/bash_completion.d | grep ssh -rw-r--r-- 1 root root   297 Jan 28 18:04 ssh   Is . a shortcut for the source command? If not, then what is it? It is impossible to google for, man source returns nothing, and apropos source and info source give so much irrelevant information that I cannot tell if what I'm looking for is in there. How might I even begin to RTFM to find the answer to this question myself?

While following android eclipse debug tutorial, I encounter following commands.  cd /path/to/android/root  . build/envsetup.sh  lunch 1     make        emulator   My problem is what the dot before build/envsetup.sh means?


I have 01_a.blend. Inside 01_a.blend, I have 10 action (01_a_001. 01_a_002 ....).  I want to render all action by command line. Can anyone help me this problem?

I'm designing a character with different animations (idle, eating, walking, etc) that are separated in different blender actions in the same .blend file.  I would like to queue the actions to be rendered, so I could leave the computer rendering over night. Is there any way to do that??


How do spell attacks work?  Roll 1D20 + your spell Attack Modifier.  Spell Attack modifier = 2 + 2 (Charisma Modifier) For a total of 4.  I roll a D20 and get 10. Add 4, to get a total of 14. What I am attacking say has an AC of 14. It hits.   My question is: is this interpretation of how spell attacks work correct?  Spell attacks are roll D20 + Add Spell Attack modifier.  Trying to understand how spell attacks work.

I'm not entirely sure I understand what the PHB is telling me about spell attacks.  Say I'm a wizard who's casting Fire Bolt (I could also be a Cleric casting Inflict Wounds or what-have-you), the spell itself doesn't say anything about making an attack roll or the enemy making a saving throw.    So do I make an attack roll and then add in my INT mod + proficiency bonus?  Or does the target have to make a saving throw against a DC of 8+ my INT mod + proficiency bonus?  And, assuming I hit, do I add my INT mod + proficiency bonus to the damage?