Can't boot Ubuntu or Windows 8 after Ubuntu 64-bit install on Samsung series 7 Windows 8 laptop, error "All boot options are tried."

I have a Samsung Chronos 7 laptop (NP770Z5E) pre-installed with Windows 8, and I wanted to install Ubuntu 13.04 alongside it, so I can dual boot. Here is what I've done:  Updated BIOS to lastest version (P04ABU) using Samsung Updater Reduced Win8 partition by half, I left the others untouched Created a bootable USB stick using  and a Ubuntu 13.04 64-bit image Disabled FastStartup on Win 8 Disabled Fast BIOS Mode Boot Mode changed to CSM OS  Update:  Also disabled Secure Boot (I had to disable it in order to select CSM OS)  After that I saved the BIOS settings, and shut down the computer. I plugged in the USB drive, powered the computer on, entered the BIOS and tried to change the boot order. Oddly, there was only one option in the boot order screen, the USB drive (HDD didn't show up in the boot priority screen). I ignored that and installed Ubuntu. I've created 3 partitions from the unused spaced left: a 8GB swap, a 100MB BIOS boot partition, and the rest to ext4, mounted in /. Boot loader installed on /sda. After a reboot, this message appears:  All boot options are tried. Press <F4> key to recover with factory image using Recovery or any other keys for next boot loop iteration.  So I went to the BIOS to change the boot device priority, and the list is empty! Enabling Secure Boot and Fast BIOS had no effect. I used the Ubuntu Live USB to check the disk contents, I can see the Ubuntu and Win 8 partitions. I've used Boot Repair (using the Recommended Repair), with no avail, the Boot Repair log is here:  Boot Repair showed me a message about the system being a"EFI system". I suppose that means that I should have checked out the advanced settings. I don't know how to proceed. I don't know if it's a good idea to "recover with factory image" since I have modified the original partitions. Maybe I need to experiment with Boot Repair's advanced settings.


Problem: Let $\{a_n\}$ be bounded sequence, satisfied $a_{n+1} \geq a_n - \displaystyle\frac{1}{2^n}, n \in \mathbb{N}$. Show that $\{a_n\}$ is convergent.   My attempt: consider sequence $\{x_n\} = \left\{ a_n - \displaystyle\frac{1}{2^{n-1}} \right\}$. Obviously $\{x_n\}$ is bounded. Then we have $x_{n+1} - x_n = a_{n+1} - \displaystyle\frac{1}{2^n} - a_n + \displaystyle\frac{1}{2^{n-1}} = a_{n+1} - a_n + \displaystyle\frac{1}{2^n} \geq a_n - \displaystyle\frac{1}{2^n} - a_n + \displaystyle\frac{1}{2^n} = 0$. Hence, $\{x_n\}$ is a non-decreasing sequence, apply $\{x_n\}$ is a convergent sequence. Here, can we conclude that the sequence $\{a_n\}$ is convergent? If we can, please explain how can we do that. Sorry for my poor English. Thank all!


Ever since I defeated the all the bosses (except Plantera) I've been wondering - How do I defeat Plantera? I tried fighting her once, but failed once she reached stage two. I found her bulb again, but before battling her I want to prepare myself properly.  What armor should I use? Weapons? Accessories?  Anything else in particular that will help?


questions about Rudin's summation by parts

rudin's summation by parts  3.41  Theorem Given two sequences $\left\{a_n\right\}$,$\left\{b_n\right\}$,put $$\begin{align*}A_n=\sum _{k=0}^n a_k~~~(1)\end{align*}$$ if $n\geq 0$; put $A_{-1}=0$. Then, if $0\leq p\leq q$, we have $$\begin{align*}\sum _{n=p}^q a_nb_n=\sum _{n=p}^{q-1} A_n\left(b_n-b_{n+1}\right)+\color{blue}{A_qb_q}\color{red}{-}\color{blue}{A_{p-1}b_p}.~~~(2)\end{align*}$$  My derivation:  blue color highlight the changed item.  Questions  question1:  The blue part of (2) is a little hard to memorize before I've done the calculation. What's the relation between (2) and the  which I think is easier to memorize (without those indexes). $\int f dg=f g-\int f dg$ or $\int _a^bF(x)g(x)dx=F(b)G(b)-F(a)G(a)-\int _a^bf(x)G(x)dx$ question2:  What's the guidelines to derive the (2)? As you see the wiki's edition, there are also several versions. Although I get (2), I did it by cheating, i.e. I'm doing proof, and I checked (2) in my process of derivation. Of course, the proof in text, is much easier: $$\begin{align*}\sum _{n=p}^q a_nb_n=\sum _{n=p}^q \left(A_n-A_{n-1}\right)b_n=\sum _{n=p}^q A_nb_n-\sum _{n=p-1}^{q-1} A_nb_{n+1}~~~(4)\end{align*}$$ ,and the last expression on the right is clearly equal to the right side of (2) question3  $A_n$is summation from $0$ to $n$, how does it look reasonable when $p=5$?


Failed to make https request with self signed certificate authentication

In order to make clients authentication with a self signed certificate, I went through the following steps:  openssl genrsa -out ca.key 4096 openssl req -new -x509 -days 3650 -nodes -key ca.key -out ca.crt   Create the Server Key, CSR, and Certificate  openssl genrsa -out server.key 1024 openssl req -nodes -new -key server.key -out server.csr   We're self signing our own server cert here.  This is a no-no in production.  openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt   Create the Client Key and CSR  openssl genrsa -out client.key 1024 openssl req -new -nodes -key client.key -out client.csr   Sign the client certificate with our CA cert.  Unlike signing our own server cert, this is what we want to do.  openssl x509 -req -days 3650 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out client.crt   Then I verified the created the certificates via:  Verify Server Certificate  openssl verify -purpose sslserver -CAfile ca.crt server.crt   Verify Client Certificate  openssl verify -purpose sslclient -CAfile ca.crt client.crt   which all are OK.  I configured my python tornado server:  if __name__ == "__main__":    app = make_app()     ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)    ssl_ctx.load_cert_chain("../server.crt", "../server.key")    ssl_ctx.load_verify_locations("../ca.crt")    ssl_ctx.verify_mode = ssl.CERT_REQUIRED    http_server = tornado.httpserver\     .HTTPServer(app, ssl_options=ssl_ctx)    http_server = tornado.httpserver.HTTPServer(app)    http_server.listen(80)    logging.info("Server is running.")    tornado.ioloop.IOLoop.current().start()   but when I make a curl request via  curl -v -s -k --key client.key --cert client.crt https://localhost/open/address/health   It returns connection refused  *   Trying ::1... * TCP_NODELAY set * Connection failed * connect to ::1 port 443 failed: Connection refused *   Trying 127.0.0.1... * TCP_NODELAY set * Connection failed * connect to 127.0.0.1 port 443 failed: Connection refused * Failed to connect to localhost port 443: Connection refused * Closing connection 0


How to eliminate extra space around binary math operator

As an example, consider the plus sign (+). The code $x + y$ generates x + y. How can you make it look like x+y? In other words, how can you treat + like a letter rather than an operator? I'm looking for a local solution rather than a global one.  MWE :   \documentclass{article} \begin{document} $x + y$ \end{document}


$X_{n} \to X $ in distribution, $Y_{n} \to Y$ in distribution but $X_{n} + Y_{n}$ does not converge to $X + Y$ in distribution?!?

From my problem set:  Give an example for sequences of random variables $X_{n}$, $X$, $Y_{n}$, $Y$ with $X_{n} \to X$ in distribution, $Y_{n} \to Y$ in distribution but $X_{n} + Y_{n}$ does not converge to $X + Y$ in distribution.  Many thanks in advance.


Why does the weak interaction not conserve the flavour quantum number?

The weak interaction, in contrast to the strong and electromagnetic, is the mediator of the decay of the strange quark, purely because the weak interaction is 'allowed' to break conservation of flavour quantum numbers (in this case, strangeness number).   Why is the weak interaction endowed with this ability of not obeying flavour number conservation? Thanks!


A question about weak convergence in Lp space

Suppose $1 \leq p<\infty$, given $f \in L^p (\mathbb{R})$, define $f_n (x)=n^{1/p} f(nx)$ for n=1,2,3... Prove $f_n$ converges weakly to zero in $L^p$.  Now I can just know the that $ \|f_n\|_p$=$ \|f\|_p$, but cannot prove for any function $g \in L_q$, where $q$ is the conjugate of $p$, the integral converges to zero.  i.e. how to show $\int f_ng$ converges to zero. I'm thinking maybe I can use step functions or continuous functions since they are dense in Lp, so we can approximate, but not sure.


Help me.. I can't install any packages in Ubuntu Software Center and apt-get  installArchives() failed: dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture' Error in function:


Can't Center Text and Image in Table Heading

I can't seem to get an image centered when floated to the right of text within a table th.  It looks right in the example here, so it probably has something to do with my site's css, but I can't figure out how to vertically align the text and the image.  Here's a screenshot of how it looks for me:     #sortedTable table {   border-spacing: 0;   width: 100%; }  #sortedTable th {   cursor: pointer;   color: #fff;   background-color: #1b1b1b;   border: 0; }  #sortedTable th, #sortedTable td {   text-align: left;   padding: 16px; }  #sortedTable img{     float: right;     vertical-align: middle; }

      Item 1 	     Item 2	     Item 3

bla bla bla bla


I spend a lot of time on math.se and even though I don't understand many of the questions posed, I try to understand what is being said or atleast wiki something to get some gist of the question and the answers. However, I never understood what "rigour" meant or what people mean when they say "is this a rigorous solution?". So can someone please explain to me what rigour in mathematics is?.  Thanks!


pass some values from an activity to a fragment and then NullPointerException

I would like to pass some values from an activity to a fragment. Have seen a lot of answers but none resolved my issue  Activity  Bundle bundle1 = new Bundle();     bundle1.putString("baros",baros);     bundle1.putString("upsos",upsos);     bundle1.putString("sex",sex);     CalculatorFragment calculatorFragment = new CalculatorFragment();     calculatorFragment.setArguments(bundle1);   Fragment  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     View view =  inflater.inflate(R.layout.fragment_calculator, container, false);      apotelesma = view.findViewById(R.id.apotelesma);     Bundle bundle = this.getArguments();     String name = (String) bundle.get("sex");     apotelesma.setText(name);     return view;  }   java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.get(java.lang.String)' on a null object reference  problem is here: String name = (String) bundle.get("sex");  thanks!


Problem in solving Java string confusion code?

In this program the answer/output is false can you explain how is it so?  I have tried the code and i got output "false"  class eq { public static void main(String args[]) { String s1 = “Hello”; String s2 = new String(s1); System.out.println(s1==s2); } }   i expect the output to be "true"


How to transfer Clash of Clans from one iOS device to another

I have two iPhones and an iPad 2. One of the phones is an iPhone 3GS running iOS 6.1.6 and the other is an iPhone 4 running iOS 7. Under the same Game Center account they each have a separate village for Clash of Clans. I just got my iPad and wanted to transfer the game on the iOS 6.1.6 device to my iPad. What I was wondering was, if it's even possible to link a game on Clash of Clans from an iOS 6 device to an iOS 7 device, and if so how do I do so?


Computing the expected time for a stochastic process to hit a boundary

Let $X_{t}$ be a Wiener process starting at the point $x$. Compute $\mathbb{E}[\tau_{a, b}]$, where $\tau_{a, b}$ is the minimum time $t$ at which the process $X_{t}$ is equal to $a$ or $b$. That is, compute the expected time necessary to hit a boundary.    I've been studying for my stochastic processes exam, and this is one of the questions that I have no idea how to solve. For reference, I've learned about topics like backward Kolmogorov equations, Ito integration, Ito's formula, and so on. I haven't really been able to find many resources online to help me with this problem either.  I would really appreciate some help in solving this problem. I want to gain the insight needed as well, so I would appreciate some sort of explanation along with it.


How can I view assembly code produced for C functions?

I need to view the assembly code produced for certain C functions.  What flags should I use when compiling the C code using the g++ compiler?


I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in .Net?


Find all rational solutions of $\frac{x}{x^2+4} + \frac{y}{y^2+4} = \frac{z}{z^2+4}$ or show non exist.

Find all rational solutions of the equation: $$\frac{x}{x^2+4} + \frac{y}{y^2+4} = \frac{z}{z^2+4}$$ else show there are no rational solutions. Or, generalizing, by replacing 4 with $${w^2},  w>0$$ in the above $$\frac{x}{x^2+w^2} + \frac{y}{y^2+w^2} = \frac{z}{z^2+w^2}$$ Yields a homogeneous Diophantine equation of 4 variables and degree 5. So alternatively, show: $${x}({y^2+w^2})({z^2+w^2}) + ({x^2+w^2}){y}({z^2+w^2}) - ({x^2+w^2})({x^2+w^2}){z} = 0$$ Has no solution in integers.


Science fiction story where an older person (alien) is barricaded in a house and attacked by flying lights; ends up in Stonehenge and another planet

There was a man who encounters an older person in a house that he has barricaded himself into, but does not know why. They are attacked by flying lights. The older person (an alien) starts becoming younger... Eventually they end up at Stonehenge and later he ends up on another planet where when a person is older and under stress become young again. None of these aliens remember their past.  I remember one part where he is imprisoned in a tight jail cell and realizes that he must turn his body the other way to get out. A cat is inside with him and he uses the cat's metal collar to dig himself out with...


present or past tense when referring books

You should read the book and see what he means/meant by...... Question: Do we use present or past tense for a book? And does it matter if it's fictional books (Shakespeare) or fact (political/religion)


Can we skip the lower order terms in interactions?

This question is about three-way interaction and the possibility of applying without second lower terms with keeping the main variables in the equation not like the other questions. In fact the other answers suggest there is possibility of applying . I am not here to find the best solution because I know it and I already included in my question, but to know whether is it possible regardless if it is preferable or not. thank you and please open my question for discussion   The widely known regression equation for assessing the three-way interaction is  $$ Y= B_1 X+B_2 Z+B_3 W +B_4XZ+B_5XW+B_6ZW+B_7XZW+B_0 $$  All lower order terms is included in the regression  equation for the B7 coefficient  to represent  the  effect  of the  three-way  interaction  on  Y.   Is there possible way to skip the lower order terms and include only the higher term? as in:  $$ Y= B_1 X+B_2 Z+B_3 W +B_4XZW+B_0 $$  And how many observations do I need to perform such equation if X & Z are continuous variables and W is dummy variable ?  I will be thankful if anyone can provide me with any suggestions


Number of distinct arrangements {$n_i$} $n_1<n_2<n_3<n_4<n_5$ such that $\sum n_i=20$

Let  $n_1<n_2<n_3<n_4<n_5$  be positive integers such that $n_1+n_2+n_3+n_4+n_5=20$.Then what is the number of such distinct arrangements $(n_1,n_2,n_3,n_4,n_5)$?  My Approach :   I assumed   $n_1=t_0+1$  $n_2=n_1+t_1+1$  $n_3=n_2+t_2+1$  $n_4=n_3+t_3+1$  $n_5=n_4+t_4+1$  Where $t_0,t_1,t_2,t_3,t_4 \ge 0$  Now the sum becomes :  $5t_0+4t_1+3t_2+2t_3+t_4=5$  After this, I put the values of $t_i$s  $0,1,..$ and so on, and therefore found $7$ Solutions.  My question : Is there another way to solve this question, because as this question was asked in a competitive exam (JEE Advanced), This a very long solution.


Why do we need topology and what are examples of real-life applications?

I am very new to topology.  I want to know why we need topology in mathematics. What is its significance? Without topology which mathematics concept cannot be explained. What are its real-life applications? I know the basic definitions of topology.


I have 5,000 images which I need to compress (to display on my website).  I am new to Ubuntu. So what do I do?


Can I access Ubuntu from Windows remotely?

I have Ubuntu installed on my work computer. I am wondering whether I could have access to it from another computer with Windows installed. If so, could you give a step by step guide?


A bug in the views calculation. Views: 0 time

I look today on a few fresh question, and the view count was 0. Even after I refreshed the page a few time. This is definitely a bug, since the question isn't mine.  Also I don't think the all page was cached, since that the DateTime mark was change every reload.  But maybe the SQL result is cached.


How do I earn SC2's "Hurry up, it's raid night" achievement?

The "Hurry up, it's raid night" achievement in Starcraft 2 involves "beating Wings of Liberty, on normal, in 8 hours or less."  Is there a recommended mission path to take? Which mission should I take for the branching paths? Does it count time spent on the Hyperion in between missions, or is it exclusively time elapsed on missions. Does replaying a mission affect the time? General tips / hints from those who've unlocked the achievement?  Edit: Just got this achievement tonight, finally! The answer was perfect.


How to click a button that is located in other class than method

I have an issue with firing a button that is located in another class.  I've tried passing button in parameter, but I'm getting null exception error same goes for getter that I've created.  public class ButtonHolder{     @FXML     RadioButton radioButton;      public void radioButtonOnClick(){         //does something     }     public RadioButton getRadioButton(){         return this.radioButton;     } }   public class Example{     public void fireButton(){         ButtonHolder buttonHolder = new ButtonHolder();         buttonHolder.getRadioButton.fire();     } }


Angular momentum is definitely quantized in elementary particles and electrons in atoms. Molecules also have characteristic rotation spectra.     Is it true that all angular momentum is quantized, including big things like automobile tires, flywheels and planets? If so what is the largest object for which this quantized rotation has been verified/observed/measured?


Yesterday I posted a question on the Mathematics Stack exchange.  I received some answers to which I added a comment, trying to apply an @ tag for the user that wrote the answer.  However, when I usually do this, a popup box for auto-completion usually comes up.  This time it didn't, but I continued to type the full name out anyway and posted the comment.  But, the @ tag was removed from the published comment.  This has worked before in the past, why is it not working now?  Additional info:   I always put the tag first before writing anything else It has worked in the past I have tried multiple tests with other posts, using other names.  That is, it is persistent and reproducible I have closed down my browser, tried different browsers, indeed different devices!  Same result.


This has been bugging me for some time; I tried to look for previous questions here but my language tools may not be sharp enough to phrase my query correctly so please forgive me if this has already been posted here.  Speakers of English as a foreign language tend to incorrectly use the word "would" when using some particular subjunctive constructs. Here is  (this time presumably by a native English speaker):     If that would happen, you won’t be alone.     (One correct version being "If that happens, you won't be alone".) I have detected this in speakers of a number of languages so I feel this is more likely to be a feature of the English language itself than a carry-over from their native language.  I have a faint intuition that this is because , and it certainly doesn't help that , but I can neither make that precise nor even really phrase a concrete question. Can someone shed some light on this?    Edit: just to provide some real-world examples of what I mean, here is one example taken from :     Publish or Perish is designed to empower individual academics to present their case for research impact to its best advantage. We would be concerned if it would be used for academic staff evaluation purposes in a mechanistic way.   This is obviously ungrammatical (to me), but I'm not sure how to characterize the mistake, or what the likely causes are (e.g. whether it follows from analogous constructions in other languages).


A word for a worldly wise person who pretends to be naïve?

What is a word for someone who is experienced and wise, but who deliberately acts naïve?    I don’t intend it for sarcastic use; I’m trying to describe someone succeeding in making people think that that person truly is naïve.   Is there a word for this?


I'm a novice programmer who just migrated from Python (on IDLE) to C++ and I'm finding it uncomfortable to know only a few "essential" methods of STL data structures. Is there something like the Python help() function in C++, or some other way to access digestible and concise documentation as regards the Standard Library?  Edit: To be clear, I am looking for a way to access documentation from my computer, preferably from within the IDE/compiler (I currently use and prefer g++ on Cygwin in Windows 7. I also have Code::Blocks, however). Please don't recommend books or mark this question as a duplicate of The Definitive C++ Book Guide and List.


Why do they specify the differential of Work using an lowercase delta $\delta W$, instead of $dW$

I was curious, why do they specify the differential of Work using an lowercase delta symbol $\delta$ as in  "$\delta W$", instead of using a $d$, as in $dW$.  For example: $$\delta W=\vec{F} \cdot d\vec{s}$$ Does that have anything to do with the idea of absolute differentiation from tensor calculus?  Example: $$\frac{\delta T^i}{\delta t} = \frac{dT^i}{dt} + \Gamma^i_{rs} T^r \frac{dx^s}{dt}$$ If I convert this formula into a absolute differential, by multiplying both sides by $\delta t$, then I get: $$\delta T^i = dT^i + \Gamma^i_{rs} T^r dx^s$$ I would interpret this to mean that if you are using Cartesian coordinates then $\delta T^i = dT^i$ since the christoffel symbols of the second kind $\Gamma^i_{rs}$ are all zero for Cartesian coordinates. I was just curious if this has a similar means for the physics formula: $$\delta W=\vec{F} \cdot d\vec{s}$$ how would you apply this formula in cylindrical coordinates instead of Cartesian coordinates for example. (see   where i found the formula for work differential)  If I look in my tensor book i find that the christoffel symbols of the second kind for cylinderical coordinates: $\Gamma^r = \begin{bmatrix}0&0&0 \\ 0&-r&0\\0&0&0\end{bmatrix}$ $\Gamma^\theta = \begin{bmatrix}0& 1/r&0 \\ 1/r &0&0 \\ 0&0&0 \end{bmatrix}$ $\Gamma^{z} = \begin{bmatrix}0&0&0\\0&0&0\\0&0&0 \end{bmatrix}$ so in this case the absolute differential would have a none zero second term.  Another possibility that using under case $\delta$ as in $\delta W$ has nothing to do with absolute differentiation because work is a scalar? I just was wondering if it is somehow linked to $\delta$ absolution differentiation operator in tensors class...  The textbook i'm looking at says nothing about tensors... but it does tell me that if you are using cylindrical coordinates then the formula for a differential is different which sounds very tensor like to me.  Example: $ds = dr \frac{ds}{dr} + r~d\theta \frac{ds}{d\theta} + dz \frac{ds}{dz}$ Normally, in Cartesian coordinates the formula for a differential would be: $ds = \frac{\partial s}{\partial x}dx + \frac{\partial s}{\partial y}dy + \frac{\partial s}{\partial z}dy$


What is the difference/benifit of golden cards?

I don't see any difference in these cards in stats or effect. Besides the fact that they are golden, do they serve any purpose?  I understand that with a real card game a golden one would be worth more to trade or sell, but as far as i know, this game has no trading option(s).


Problem when deleting a child with pointer to parent

I have problem deleting a child of a class  Here is the base class:  class Base_Element{ string name; list<string> reactions; public: Base_Element(string name_){     name = name_; }  string get_name(){     return name; } list<string> get_reactions(){     return reactions; }     void add_reaction(string react){     bool tmp = true;     for(string reaction : reactions){         if(reaction.compare(react) == 0){             tmp = false;         }     }     if(tmp){         reactions.push_back(react);     }    }  virtual bool is_reactive_with(string react){     for(string rec : reactions)     {         if(rec.compare(react) == 0){             return true;         }     }     return false; }  void print_reactions(){     cout << "Name of element: " << name << endl;     cout << "Can react with: ";     for (string rec : reactions)     {         cout << rec << ", ";     }     cout << endl; }  ~Base_Element(){     cout << "Destructing" << name << endl; }  };   And here is the child:  class Air : virtual public Base_Element{  public: Air():Base_Element("Air"){             add_reaction("Air");add_reaction("Fire");add_reaction("Earth");add_reaction("Water"); }  ~Air(){} };  class Spirit : public Air { public:      Spirit():Base_Element("Spirit"),Air(){}       ~Spirit(){} };   And here is the main function:  int main(){      Base_Element *w = new Spirit();      delete w;      return 0; }   The error I get from the console is the following:  DestructingSpirit free(): invalid pointer Aborted (core dumped)   It appears it calls right the destructors and although there is nothing to destruct in the base class i get the error. Don't say that the child have no meaning because it's school project and i must make that child.


I said, “I will swim today only if I go to the beach if it is sunny today.” Does the “if it is sunny today” clause modify “I will swim today only if I go to the beach” or does it only modify “I go to the beach”? My guess is the former answer because an if clause has to modify an independent clause or main clause. Please let me know if my reasoning is correct or if my sentence is so ambiguous that both interpretations are valid.


How to automatically add signature to specific email accounts Outlook 2010

I have multiple accounts I access in Outlook, I would like to automatically add a signature to one of them (not the default one). Normally to send an email from one of the other accounts I click new email, then change the from account, however that doesn't add the associated signature. How does one accomplish this?


HP printer installed and the scanner doesn't work

I've got a new printer HP Envy 5540. I downloaded and installed the printer with duplexer but I'm not able to use the scanner.


I just cleaned my sensor with a cloth and when i test the dirt, I saw different dark spots on the image. What should i do? I've tried blowing with blower, but it didn't help.


For example I have file consisting of structures like    name = {    foo = bar;    ... };   So in file there are lots of structures like this. How can I sort them (I'm using vim but emacs is surely ok too) by name? But having their fields unmodified? I mean    b = {    bfoo = bar;    ... }; a = {    afoo = bar;    ... };   Goes to    a = {    afoo = bar;    ... }; b = {    bfoo = bar;    ... };   Update Structures may also contain same structures.  b = {    c = {        cfoo = bar;        ...    };    ... };


Book with protagonists jumping between parallel Earths of various time periods (but not time travelling)

I just remember this one bit of this book: the idea that the protagonists jumped from world to world in a set of parallel universes but, because of the world's differences, it looked like time travel: one might go from an Earth post-WWII to an Earth pre-WWII... but it wasn't time travel.


Open set in $\mathbb{R}$ as countable union of open intervals and which version of Choice

In proving, every non-empty open set in $\mathbb{R}$ is union of a countable collection of disjoint open intervals in $\mathbb{R}$.  It seems to me this result is using some version of Choice(probably AC). Am I correct is it using some version of AC(maybe weaker) or not?


Is it possible to determine descendants solely through Java reflection API?

Using Java reflection API only (java.lang.reflect package ), can we determine child (surbordinate) classes in a class hierarchy?


HashMap object doesnt copy into another HashMap object

I've got this particular problem that I receive a NullPointerException whenever I try copying a HashMap Object into another HashMap Object. Here my code snippet public void printCountNotAlreadyKeys(){   HashMap<String,String> count = new HashMap<>();   count.putAll(responder.getResponseMap());  } The method getResponseMap looks like this    public HashMap<String, String> getResponseMap(){       return responseMap;    }


How do I zcat two files inline to perform diff?

How can I zcat 2 .gz files inline to perform a diff in unix? Have tried eval but syntax not right.   zcat file1.gz zcat file2.gz


How to use both binary and continuous variables together in clustering?

I need to use binary variables (values 0 & 1) in k-means. But k-means only works with continuous variables. I know some people still use these binary variables in k-means ignoring the fact that k-means is only designed for continuous variables. This is unacceptable to me.  Questions:     So what is the statistically / mathematically correct way of using binary variables in k-means / hierarchical clustering? How to implement the solution in SAS / R?


How do I find the windowid to pass to screencapture -l?

The command line utility screencapture claims to be able to capture a single window without requiring interaction, but I can't figure out what to pass it.  -l<windowid> capture this windowsid   It's not the process id of the the application.


Why does including a header cause a "use of auto before deduction of auto" error?

I've taken the project I'm working on and shortened it to three brief files that replicate what's happening. I'm working with the Code::Blocks IDE using g++ under the 2011 standard.  The files are main.cpp, thing.cpp and thing.h. The header (.h) has declarations and the source (.cpp) has implementations. The thing files define a class Thing with a template parameter T. All Thing does is hold an object of type T (it basically does nothing).  main.cpp:  #include <iostream> #include "thing.h"  int main(){     Thing<int> a(9);     Thing<double> b(3.2);     auto c = a + b;     c.display();      return 0; }   thing.h:  #ifndef THING_H #define THING_H  template<typename T> class Thing{ private:     T content; public:     Thing(const T& content);     ~Thing(){};      T get_content() const;      void display(); };  template<typename S, typename T> auto operator+(const Thing<S>& s, const Thing<T>& t);  #endif // THING_H   thing.cpp:  #include "thing.h" #include <iostream>  template<typename T> Thing<T>::Thing(const T& content) :content(content){}  template<typename T> void Thing<T>::display(){     std::cout << content << '\n'; }  template<typename T> T Thing<T>::get_content() const {     return content; }  template<typename S, typename T> auto operator+(const Thing<S>& s, const Thing<T>& t){     S s_content = s.get_content();     T t_content = t.get_content();     Thing<typename std::common_type<S, T>::type> sum = s_content + t_content;     return sum; }   Here's the strange behavior: the code will compile or not depending on the line #include "thing.h". Using thing.h here will not compile, causing an error:  error: use of 'auto operator+(const Thing<S>&, const Thing<T>&) [with S = int; T = double]' before deduction of 'auto' error: invalid use of 'auto'   Changing this line to #include "thing.cpp" allows the code to compile without problems and functions as intended (it outputs 12.2 to the console).  My question is: What is the compiler doing differently in the two cases? How can I change the code to eliminate this error when including the header?  Thanks in advance.


Suspending by closing laptop lid causes issues

I have a Razer Blade Stealth, and a few weeks ago I upgraded to 17.10. Everything was going great until I closed my laptop lid, and reopened it. Everything would look normal for ~10 seconds and then the screen would go dark and the computer would suspend. Unlock the computer, and the process repeats itself. This behavior would not stop unless I was able to quickly log in and restart the computer.  At first, I thought it was a problem with suspending. But after some digging and additional tests, I do not think this is the case. If I suspend the computer from the command line or the power button then I can resume with no issues. However, if I do it by closing the lid (as one would normally do 99% of the time) then the issues come up again.  I guess my question is: what kind of issue does this point to? I'm no power user, and the way I've got around it is by going into my /etc/systemd/logind.conf file and changing it so that HandleLidSwitch=ignore, but this just makes it so the laptop doesn't do anything on lid close. Does anyone know what a more elegant fix to this issue could be, or where to look?


I am writing a book in Hindi (Devanagari script). When I am using \chapter, it is not converting it in Hindi as अध्याय. I also tried {\dn \chapter} but it returns the title in English. How can I change this behavior?


I wish to center the 1 in the following LaTeX code:  \begin{align*} v'(k,\CS)= \begin{cases}     \displaystyle\frac{G_{max}(k){-}q_k'(CS)}{G_{max}(k){-}\Gmin(k)} & \text{if }G_{max}(k) {\neq} G_{min}(k) \\     1                                                                &  \text{if }G_{max}(k) {=}G_{min}(k) \end{cases} \end{align*}   The image of the LaTeX is shown below:


My friend has a PE world and she wants to put it on my Windows 10 minecraft

My friend has a PE world and she wants to put it on my Windows 10. Would there be anyway to do this


Are stupid questions expected to be closed?

I just asked a "stupid question" , missing an obvious fix because I had jumped back into some code I hadn't touched in a while. I was immediately met with a downvote and multiple VTC's. I was working on and approaching the problem from the wrong side, which was why I didn't see the obvious answer (in a nutshell, I did research on the wrong areas looking for a solution).  Should users refrain from posting "stupid questions" on the SO?


Suppose that $X$ is a topological space and $x_0\in X$. Prove that $\widetilde{H_n}(X)=H_n(X,x_0)$ for all $n\geq 0$.  We have a short exact succession  $$0\to S_*(x_0)\to S_*(X)\to S_*(X,x_0)\to 0$$  where $i_*:S_*(x_0)\to S_*(X)$ is the mapping induced by the inclusion and $p_*:S_*(X)\to S_*(X,x_0)$ is the mapping induced by the projection.  So by the Zig-Zag theorem we have a long exact sequence in homology  $$...\to H_n(x_0)\to H_n(X)\to H_n(X,x_0)\to H_{n-1}(x_0)\to...$$  From here it follows that if $n-1>0$ then $H_{n-1}(x_0)=H_n(x_0)=0$ and so $H_n(X,x_0)\cong H_n(X)=\widetilde{H_n}(X)$ if $n>1$.  If $n=1$ then I have  $$...\to H_1(x_0)\to H_1(X)\to H_1(X,x_0)\to H_{0}(x_0)\to H_0(X)...$$  where $H_0(x_0)\cong \mathbb{Z}$ and $H_1(x_0)=0$.  But note that $H_{0}(x_0)\to H_0(X)$ is injective, so we can deduce that there is an exact sequence $0\to H_1(X)\to H_1(X,x_0)\to 0$ and so $H_1(X,x_0)\cong H_1(X)\cong \widetilde{H_1}(X)$but I do not know what to do in the case of $n=0$. Could someone help me please, thank you very much.


AB testing - normalizing for a group's historic performance

If you split traffic on a website in order to conduct an AB test, optimizing/ monitoring conversion, and you split users by evens/ odds, and have the following information before the test is conducted: group     total_recs    n_success   conversion_rate control    1091653       162424      0.148787 treatment  1098513       153955      0.140149  where the control group has a 6.16% relative improved conversion rate over the treatment group for > 1,000,000 samples (even though this is relatively unlikely, since there's no reason odd id users would convert more than evens etc..) If we then run an AB test for 2 weeks and obtain the following results: group     total_recs   n_success    conversion_rate control    46812        7198         0.153764 treatment  47128        7294         0.154770  where the treatment group shows a relative improvment of 0.65%, intuitively, this suggests that the treatment is an improvement. Assume that the null cannot be rejected, and that for whatever reason, no more data can be collected. Is there some way to adjust for this? I.e. normalize current results based on historic evidence? And if so, how can you do this? Additionally; is this something that actually makes sense to do?


I ran into some troubles when creating a list of 3 lists. Here is the code:  >>> li = [[]]*3 >>> li [[], [], []] >>> li[0].append(1) >>> li [[1], [1], [1]]   Why is the result not [[1], [], []]?


What is the difference between linker option libssl.a and -lssl in cmake?

I was going to link a program statically with libcurl, libssl, libcryto. Then I found this behaviour. If i link with -lssl, ldd shows that compiled binary depends on libssl.so shared object. But if i link with libssl.a, ldd shows that compiled binary doesn't depends on that (This is what i wants). The case is similar for libssl and libcrypto but not for libcurl. I always thought/read before those are same(link options -lssl and libcurl.a). Can you please put some light on this or any tutorial about this?


Let $a$, $b$, and $c$ be complex numbers with $a\neq0$. Show that the solutions of $az^2+bz+c=0$ are $z_1,z_2=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$, just as they are in the case when $a$, $b$, and $c$ are real numbers.


My directory structure:  root\bin\run.sh \\main shell file i am trying to write root\folder1\script.py   root\folder2\script2.py  So, I want to execute run.sh (from anywhere).. and then first execute   python root\folder1\script.py  python root\folder2/script2.py   But, I don't want to give the full path.. as that might change (depending on which system, I am running the code...) but the relative paths between run.sh script.py and script2.py will not change.. So, how do i do this in shell?


Below is a circuit schematic of sources and resistors.   $$I_s=2A, V_s=20V, R_1=10Ω, R_2=6Ω, R_3=80Ω, R_4=15Ω$$      Question 1:  Calculate the current i1 flowing through resistor R1.   Question 2:  For the same circuit, calculate the current i3 flowing through resistor R3.  Question 3:  For the same circuit, calculate the current iVs which is flowing through the voltage source from node c to the ground.   I decided to use mesh analysis in this problem:      I thought the currents for each of the following questions are the following:    Question 1:  The current flowing through R1 is just i1.    Question 2:  Current through R3 is i1+i3.  Question 3:  Current through the voltage source is i2 + i3.  Assembling my equations I get the following matrix:    \begin{pmatrix} R_1 + R_2 + R_3 & -R_2 & -R_3 & 0 \\ 0 & i_s & 0 & 0 \\ -R_3 & 0 & R_3+R_4 & V_s \end{pmatrix}.  When solving the the matrix, however, I do not get the right answers:


Prove that $\cos\frac {2\pi}{7}+ \cos\frac {4\pi}{7}+ \cos\frac {8\pi}{7}=-\frac{1}{2}$

Prove that    $$\cos\frac {2\pi}{7}+ \cos\frac {4\pi}{7}+ \cos\frac {8\pi}{7}=-\frac{1}{2}$$   My attempt   \begin{align} \text{LHS}&=\cos\frac{2\pi}7+\cos\frac{4\pi}7+\cos\frac{8\pi}7\\ &=-2\cos\frac{4\pi}7\cos\frac\pi7+2\cos^2\frac{4\pi}7-1\\ &=-2\cos\frac{4\pi}7\left(\cos\frac\pi7-\cos\frac{4\pi}7\right)-1 \end{align} Now, please help me to complete the proof.


A single word for "Someone who cannot say no to anyone asking for help."

I happen to be this type who always finds it hard to turn down someone who asks for my help.  You know, like when people ask to borrow some money, ask to take them to see a doctor, ask to help with English (I'm a nonnative speaker), ask to teach them some difficult subject, and anything. Moreover, this type of personality will not turn down one's request even if they are in a difficult situation themselves.  I don't think that the word kind or nice or selfless would be suitable for this.  I read  too, but the word altruist is used to describe someone who never asks for help, not for someone who can't say a "no" to someone else who asks them for help (which means that they may frequently ask for others' help too).  Besides, I don't know whether this is a negative or positive personality. So I can't figure out the right word to describe it.  Do I comprehend this in a weird way?


Can a glyph of warding be set to activate if a creature of a specific humanoid race touches it? For example, could a glyph of warding be set to activate if a changeling touches it, as a way to detect a disguised changeling?


I'm working with 12V 6.5A power supply, should I be worried?

I'm an electronics novice and I'm working with 12V at 6.5A.   (I'm activating the power supply with a series of electro-mechanical relay switches controlled by an Arduino. The power supply lights up a series of LEDs)   If I touch a bare wire at this rating, would I sustain a serious injury?


Every page turns my url into an IP address (Ubuntu Web Server)

This can probably be fixed quite easily. I tried to research and find the answer to this but couldn't find anything relevant.     Basically, I can access my website perfectly through its url. (ex. example.com)  Whenever I click a link, go to my /wp-admin, or go to any other page, my domain changes into the IP address. (ex. instead of showing example.com/about it would show 192.111.223.4/about)  How do I fix this? Do I have to edit a file or can this be fixed by adding a domain record?  Thanks.


When I try to render an image operating in from the info menu, it will not make a still render, it seems to render the same still image over and over like an animation not stopping, it renders it then instantly start´s to render again. and it will not render it in the tmp on c: that it usually does, for some odd reason in cycles it render´s a still picture but in blender´s own render not !  i have set it to render from frame 1 to 1 but does not help . what could be a reason for this behavior ?


How to make my Ubuntu not connect to any porn websites for my kids?

I want to block all porn sites regardless of language or location. How can I do this?  I changed my /etc/hosts to do stuff like:  $ cat /etc/hosts|tail 127.0.0.1   xxx.com 127.0.0.1   badharampictures.net   But is there anything else I can do?


Deserialize without default constructor C#

I have a requirement where I need to Deserialize and Create few objects of a class(Table) which doesn't have a Default Constructor.  Snippet of my code   else if (reader.Name == "Tables") {     reader.ReadStartElement();     tables = SerializationHelper<Table>.DeserializeList(reader); }   The definition of DeserializeList in SerializationHelper is as below:  public static List<T> DeserializeList(XmlReader reader) {     XmlSerializer ser = new XmlSerializer(typeof(T));     List<T> returnval = new List<T>();     while (reader.NodeType != XmlNodeType.EndElement)     {         T result = (T)ser.Deserialize(reader);         returnval.Add(result);     }     return returnval; }   This is an existing working code and with recent changes we had to add a mandate parameter to all the Constructors in the Class  The Table class here doesn't have any Parameter-less Constructor now.  I wanted to find out if I can by anyway pass-on at-least one parameter when DeSerializing the Table objects.  I have already Read the following but they use JSON.net which in my case is not an option to use.


Given bivariate random variable, find the distribution

Let $X$ and $Y$ be two independent random variables. If $X$ and $Y$ are both standard normal, then what is the distribution of the random variable $$\frac{1}{2}(X^2+Y^2)$$  Is it right that the answer to this question is $$\frac{1}{2}(X^2+Y^2) \texttt{ ~ }  EXP(1)$$? But how? Thank you very much, any help will be much appreciated.


So I can block callers from iOS 7 now (Settings > Messages > Blocked) and I'm told it blocks voice, iMessages, and FaceTime. What happens when they try to contact me? Are they told the number is disconnected or do they get some kind of recording? If they call, does it ring indefinitely? Same for FaceTime? Do their texts bounce back or are they sent thought I never see them?


YA novel from ca. 1960s in which humans reemerge after waiting out a mini ice age underground

Can anyone identify this story? This was one of the first science fiction books I ever read, probably ca. 1974. May have been written in the 50's or 60's. I think it was what was marketed then as a "juvenile novel" (today's YA novel), possibly a short Scholastic book marketed to grade school kids.  The idea is that the earth has entered a mini ice age, so a group of people have built an underground city to escape the cold. It is now maybe a generation or two later, and they are poking their heads out to see if the ice age is over and the earth is habitable again. I think there may be controversy about whether it's OK to go out yet. Unfortunately there's not much more I can remember -- I was a little kid then.


How can I recover a corrupted video saved to my Android phone?

I recorded a video with my Android phone (Blackberry Priv) and the phone shut down unexpectedly (probably because of battery overheating). The video file was not saved correctly and I cannot play it on the phone. I was able to copy the file to my Windows computer but can't play it there either. VLC can't open it either, says it couldn't recognize the video format. I can see the video format in other video files recorded by my phone. Is there some application which could restore format information for the corrupted video file if I tell it what the format should be? Maybe VirutalDub? The other video files are recorded in this format:  Or is there any other way to recover the corrupted video file?


How do I use sftp to get a directory and all its contents?

When I try to use the command get from sftp, I get the error saying that it is not a normal file.  Is there a way around this?


From this exercise:     If $s_1 = \sqrt{2}$, and $$s_{n+1} = \sqrt{2+\sqrt{s_n}} \quad (n = 1,2,3,\dots),$$ prove that $\{s_n\}$ converges, and that  $s_n< 2$ for $n = 1,2,3,\dots$.   in the book Principles of Mathematical Analysis, I find this book very obscure about many concepts, so I really need some help. Can someone help me with proving the convergence of a sequence written in this form?


Squaring the E&M (Maxwell) field strength tensor

In Section 3.4 of Schwartz's "Quantum Field Theory and the Standard Model", the square $F_{\mu\nu}^2$ of the field strength tensor $F_{\mu\nu} = \partial_{\mu} A_{\nu} - \partial_{\nu}A_{\mu}$ is expanded. When I do this I get (after legitimate relabelling) that  $$F_{\mu\nu}^2 \equiv (\partial_{\mu}A_{\nu}-\partial_{\nu}A_{\mu})(\partial^{\mu}A^{\nu}-\partial^{\nu}A^{\mu}) = 2 \, (\partial_{\mu}A_{\nu})^2 - 2 \, \partial_{\nu}A_{\mu} \, \partial^{\mu} A^{\nu} \; .$$  Schwartz, however, appears to use   $$F_{\mu\nu}^2 \equiv = 2 \, (\partial_{\mu}A_{\nu})^2 - 2 \, (\partial_{\mu}A_{\mu})^2$$  such that in the Lorenz gauge the second term vanishes. I'm probably overlooking something elementary here, but I can't reconcile these two expansions.  PS. Apologies for the duplicate post. This entry may nevertheless help others, in view of its distinct title and the detailed answer provided by @Frobenius.


How to choose the right number of CV folds for the nested cross validation for a small sample?

I have a small imbalanced sample of 18 and 12 records in 0-labeled and 1-labeled groups respectively with 6 features, so the size of my feature matrix X is $30 \times 6$ and y is my target vector $30 \times 1$.  The data in CSV format is shared via the :  THE PROBLEM  I would like to assess my classification accuracy and to do so, I perform the stratified nested cross validation: the outer loop iterates over different train-test samples, and the inner loop selects the best model. The sklearn (0.18.1) implementation of the code:  sss_outer = StratifiedShuffleSplit(n_splits=10, test_size=0.333, random_state=None) sss_inner = StratifiedShuffleSplit(n_splits=10, test_size=0.3, random_state=None)  parameters = {'clf__C': logspace(-4,3,150)} pipe_logistic = Pipeline([('scl', StandardScaler()),('clf', LogisticRegression(penalty='l1'))]) grid_search = GridSearchCV(estimator=pipe_logistic, param_grid=parameters, verbose=1, scoring=make_scorer(accuracy_score), cv=sss_inner) cross_val_score(grid_search, X, y, cv=sss_outer, scoring='accuracy')   Also, in order to see how many instances are in each partitioned group, I created a simple function "nested_partitioning_calculator()", which quickly computes the number of instances in each split.  nested_partitioning_calculator(X, y, sss_inner, sss_outer) ----------------- Outer Split: Train+Validate and Test ----------------- [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] [8, 12] [4, 6] ----------------- Inner Split: Train and Validate ----------------- [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4] [6, 8] [2, 4]   From this example, it's clear, that the outer CV loop splits [12, 18] data (18-in 0 class, and 12 in 1 class) into [8, 12] for the training sample and [4, 6] and then, the inner loop splits again [8, 12] into training set [6, 8] and validation set [2, 4]. So, basically, the training is performed on a small set of 6 instances from the 1 class and 8 instances from the 0 class.  THE QUESTION  Obviously, different values in the test_size parameter will yield different CV accuracy results. What is the proper way to split the small data set in the case of the nested CV? Should I be aiming at smaller test and validation samples? (aka LOOCV?).


Move image files according to watermark identified by a neural network

I have created a neural network that can identify watermarks and can classify them to which company do they belong. Now I created a script that will identify watermark from a folder and move them to different folders where they belong. But this script is quite slow and consumes too much RAM. What should i do to improvise it?    from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import argparse import imutils import pickle import cv2 import os import time  import glob import shutil import csv d = glob.glob("colabData/Krishna/*.jpg") print("Total Number of Images are :" ,len(d))  count = 0 final_data = [] def convertToRGB(img):      return cv2.cvtColor(img, cv2.COLOR_BGR2RGB)  for images in d:     count += 1     test1 = cv2.imread(images)     sublist = []     output = test1.copy()     image = cv2.resize(test1, (96, 96))     image = image.astype("float") / 255.0     image = img_to_array(image)     image = np.expand_dims(image, axis=0)      model = load_model("colabData/pokedex.model")     lb = pickle.loads(open("colabData/lb.pickle", "rb").read())     proba = model.predict(image)     idx = np.argmax(proba)     label = lb.classes_[idx]     if not os.path.exists(label):         os.makedirs(label)     sublist.append(label)     if label=="Commonfloor":         shutil.move(images, "colabData/commonfloorr")         print("WaterMark is Available", images, label)     elif label=="Housing":         shutil.move(images, "colabData/housingg")         print("WaterMark is Available", images, label)     elif label=="Sulekha":         shutil.move(images, "colabData/sulekhaa")         print("WaterMark is Available", images, label)     elif label=="Magicbricks":         shutil.move(images, "colabData/magicbrickss")         print("WaterMark is Available",images, label)     elif label=="Property_Wala":         shutil.move(images, "colabData/propertywalaa")         print("WaterMark is Available", images, label)     elif label=="Non-Watermark":         shutil.move(images, "colabData/nonwatermarkk")         print("WaterMark is Not Available", images, label)     elif label=="FloorPlans":         shutil.move(images, "colabData/floorplann")         print("WaterMark is Not Available", images, label)     elif label=="MasterPlan":         shutil.move(images, "colabData/masterplann")         print("WaterMark is Not Available", images, label)     else:         print("Unable to classify")     print(count)     final_data.append(sublist)  filename = "data.csv" with open("colabData/"+filename,'w') as csvfile:     csvfile = csv.writer(csvfile, delimiter=',')     csvfile.writerow("")     for i in range(0, len( final_data )):         csvfile.writerow( final_data[i]  )


How do I curve a textbox on the lower part of a circle without the text having to be upside down, in Illustrator CC?

I used the "type on a path" to make a curved textbox on the top of a circle but when I want to have the text curved on the lower part of the circle it has to be upside down.. Any help is appreciated.


"Use This Source" in Ubuntu Software Center grayed out for many Softwares

I'm attempting to download a serial ftp software from the Ubuntu Software Center. However, for example, for "Serial Port Terminal" software, I'm seeing this message, "Available from the "universe" source" and the button "Use This Source" is grayed out.


U.s. boiler / Burnham boiler alterations

i have a 203ncl-tei2 boiler installed in danvers Massachusetts. Regular elevation. This boiler also has a failed tejurland (universal control) powerventer motor on it that is only humming, not spinning. Looked for a dead animal, or nest and checked for free spinning of the squirrel cage it was fine. Its installed 3 feet from outside wall on the verticle, (installed wrong also has 2 seperate 90° bends after the venter, not my issue but may have caused the motor to fail). Ontop of the boiler we have a factory automatic damper assy.   So the 2nd part of the problem is I noticed the tei in the model number and assumed this ment i should expect to see a tejurland "universal" power venter installed and i do. I assume because its a universal control unit thats where they went wrong. This unit is atleast 200$ cheaper here than the model burnham uses.  I call burnham and ask what the original power venter model number is and they tell me what some pros may already know, (i didnt), that the tei2 is actually (t)taco, (el)elivation, (2) 2 is 2,000 ft  .Note:he was not.100% sure about the el. He was definetly sure PV would be in the model number and it was not tejurland. There is no chimney on this house, never was. Power venter wall thimble outside is very old definetly older than the 1 year old motor that failed. Burnham also said this is not a boiler that can be converted to a powerventer which is sometging i do not understand. He said if it does not have pv in the model number it should not have one. I have in the past converted a boiler with a factory reccomended power venter after a customer lost the chimney. I called and got lucky they had a option for it. I do not remember manufacturer but do remember also seeing it in the install manual as an addendum or seperate manual.  Is this a fact?   Anyone have experience with this?   What are the ramifications of an elevated boiler installed at sea level?   If i can not find another awnser, i will havemto tell customer they need a new boiler or i will have to walk away.   Why do they not just make an orifice kit for elevated boilers to work properly at higher elevations? Is it because they have to add another section to the boiler so it can put out the same  b.t.u.?  I know there is a reason. Seems like smaller orifice would fix the air fuel ratio along with a regulator adjustment. Its to simple of an awnser knowing that manufacturers make a complete different boiler for higher elevations.   !


ITIN application rejected, and IRS lost one of our passports. How to get back the lost passport?

I have filed my 2012 tax return jointly with my wife, along with my wife's ITIN application, back in late March.  In April, I got a letter for IRS ITIN department saying that we should send my wife's original passport to them. So we sent my wife's passport on May 15th. USPS tracking number confirmed that IRS received it on May 20th.  However, last week (end of June) we have received another letter from IRS ITIN department saying that our ITIN application has been rejected, rejected because we have not sent the original identification document that they requested!  Okay, let's put our tax return and ITIN aside. Where is my wife's passport? Right now my wife does not have her personal identification, nor proof of legal status in U.S. Could IRS have lost it?  I tried to call the IRS several times. One time I waited for 1 hour and 20 minutes to talk to a person, and that person said he has only 10 minutes to talk before he has to leave. He said they'll investigate and someone(?) will call us back soon, but never called back. I wrote them a letter, but no response. I tried calling several times more, but machine is saying 'sorry too many calls right now, we can't accept your call'.  What can I do?


I am trying to plot with gnuplot on my Mac (OS X 10.8.5). I have installed X11 and XQuartz 2.7.4 and after that I installed gnuplot, but unfortunately gnuplot couldn't plot.   Simple plots like the following fail to render and have no error message to help understand what is amiss:   [1/10/13 $gnuplot >plot sin(x)


What does PROG=${0##*/} mean in a bash script?

PROG=${0##*/} seems to parse out the shell script name, but it's unclear how that works. ${0} I understand is the first or 0th variable.


Difference Between Mean, Average, Expected Value for Calculus

Lately, I am having trouble understanding the difference between what is average, what is expected value, and what is mean when using Calculus. I am under the impression now that they are the same thing which confuses me. Why would expected value, the $E[X]$ symbol, have the form $E[X]=\int_a^bx\cdot f(x)dx$, rather than $E[X]=\frac{1}{b-a}\int_a^bf(x)dx$. I thought the second equation was the definition of average from a calculus stand point. I am wanting to know the difference between using these three terms and when to use their corresponding equations appropriately.


How to reformat sequence numbers in a batch of filenames, e.g. A1.txt to A0001.txt?

I have some files named as A1.txt A2.txt ... A11.txt A12.txt, etc. I want to rename them to A0001.txt A0002.txt ... A0011.txt etc. Am I doing it right?  for file in A*.txt do mv ${file} ${file/-#.txt-/-"%5d".txt} done


Some hint on this question, prime number theorem

for all prime number $x,y,z$, $x^2 + y^2 \ne z^2$.  I assume $x^2+y^2 = z^2$, then $x^2 = z^2 - y^2$, so we have $x^2 = (z+y)(z-y)$ but I don't know how to continue because I don't know any number theory theorem.


temp = [{'name':'abcd3', "id":3},         {'name':'abcd', "id":1},         {'name':'abcd4', "id":4},         {'name':'abcd2', "id":2},]   How to sort temp using id.


Why are conditionals with False antecedents defined in the first place?

I have yet to find a suitable explanation anywhere of the formal motivations for defining conditionals with false antecedents as true. I've heard arguments along the lines of "because otherwise such-and-such won't work" or something like that. I understand that. But, my contention is this: Why even define conditionals with False antecedents in the first place. Just as easily as we say 1/0 is undefined, couldn't we just do that with conditionals ( F -----> T, F---->F,  then UNDEFINED) and avoid all the counterintuitive headaches this notion gives students?  And, pretty please StackExchange community, do your best to NOT answer "because that's how it's defined" or "your question isn't clear enough".   Regards


Use symbols instead of text for commands

Whenever I type a longer equation it gets unreadable very quickly. Is it possible to shorten the expression  \alpha(z,n)=\left( \sqrt{\frac{1}{2\pi i}} \sum_{k=1}^{\infty}\frac{z^k+n}{x^{2k}} \right)^n   by using characters in the latex code so that  \alpha shows as α \sqrt{} shows as √{} \frac{a}{b} shows as a/b (to spare brackets: a is in superscript and b is in subscript)   \sum shows as ∑ (there is another sigma for using it as a letter Σ) \infty shows as ∞   Meaning without super-/subscript we would have  α(z,n)=\left( √{1/2πi} ∑ k=1 ∞ z^k+n/ x^{2k} \right)^n.


Format SQL in SQL Server Management Studio

In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type.  I was wondering if there is yet a way to enable this standard feature in SQL Server Management Studio?  I'm working with some large-ish stored procs that are a mangled mess of poorly formatted SQL and it'd be nice if I could just go "Select All -> Format SQL"


What is "The" meaning of "A Word" or What is "Without Article" meaning of "A Word"?

Hi I am talking with my English-native friend and my friend used the word "Comprise".  So I asked her "What is the meaning of the word Comprise?"  But I think comprise could have multiple meaning depending on its contexts, thus I think what is a meaning of the word Comprise? or just without article, What is meaning of the word Comprise?  I am confusing which one would be heard natural and adequate to Native speakers.  Any hint?


Making my query more secure with (prepared statement)

I am figuring out how I could make the following query more secure: I have already used mysqli_real_escape_string but i doubt that adds much to security.  I have looked into the following:   but I also have to take into account the following line:      $check_customer = mysqli_num_rows($run_c);    Below are the codes     $c_email = mysqli_real_escape_string($con,$_POST['email']);         $c_pass = mysqli_real_escape_string($con,$_POST['pass']);         $couponCodeLogin = mysqli_real_escape_string($con,$_POST['couponCodeLogin']); $couponCodeLoginAmount = mysqli_real_escape_string($con,$_POST['couponCodeLoginAmount']);          $sel_c = "select * from customers where customer_pass='$c_pass' AND customer_email='$c_email'";          $run_c = mysqli_query($con, $sel_c);         $check_customer = mysqli_num_rows($run_c);          if($check_customer==0){          echo "<script>         document.getElementById('loginError').innerHTML = 'Password or email is incorrect, please try again.'         </script>";         exit();         }           if($check_customer>0){                     $crs_id = $_GET['crs_id'];       $insert_c = "insert into customers (customer_email,coupon_code_login,coupon_code_login_amount) values ('$c_email','$couponCodeLogin','$couponCodeLoginAmount')";                 $run_c = mysqli_query($con, $insert_c);                    $_SESSION['userCoupon'] = $_POST['couponCodeLoginAmount'];          $_SESSION['customer_email']=$c_email;                          $_SESSION['userCouponName'] = $_POST['couponCodeLogin'];           echo "<script>window.open('coursePayment.php?crs_id=$crs_id','_self')</script>";          }         else {         $_SESSION['customer_email']=$c_email;            echo "<script>window.open('coursePayment.php?crs_id=$crs_id','_self')</script>";          $_SESSION['userCoupon'] = $_POST['couponCodeLoginAmount'];                 $_SESSION['userCouponName'] = $_POST['couponCodeLogin'];          }     }   and          $fname= mysqli_real_escape_string($con,$_POST['fname']);         $lname = mysqli_real_escape_string($con,$_POST['lname']);         $email = mysqli_real_escape_string($con,$_POST['email']);         $pnumber = mysqli_real_escape_string($con,$_POST['pnumber']);         $couponCodeRegister=mysqli_real_escape_string($con,$_POST['couponCodeRegister']); $couponCodeRegisterAmount = mysqli_real_escape_string($con,$_POST['couponCodeRegisterAmount']);          $pass = mysqli_real_escape_string($con,$_POST['pass']);         $cname = mysqli_real_escape_string($con,$_POST['cname']);         $cposition = mysqli_real_escape_string($con,$_POST['cposition']);            $insert_c = "insert into customers (customer_fname,customer_lname,customer_email,customer_number,customer_pass,customer_cname,customer_cposition,coupon_code_register,coupon_code_register_amount) values ('$fname','$lname','$email','$pnumber','$pass','$cname','$cposition','$couponCodeRegister','$couponCodeRegisterAmount')";          $run_c = mysqli_query($con, $insert_c);            $insert_email = "select * from customers";         $run_email = mysqli_query($con, $insert_email);          $find_email = mysqli_fetch_array($run_email);         $demail = $find_email['customer_email'];               if($email!= $demail)        {          $crs_id = $_GET['crs_id'];           $_SESSION['userCoupon'] = $_POST['couponCodeRegisterAmount'];          $_SESSION['userCouponName'] = $_POST['couponCodeRegister'];          $_SESSION['customer_email']=$email;            echo "<script>          document.getElementById('registerError').innerHTML = 'Account has been created successfully, Thanks!'          </script>";          echo "<script>window.open('coursePayment.php?crs_id=$crs_id','_self')</script>";         }


Are there number systems that fix divide-by-zero?

Natural numbers are closed under addition and multiplication, but not subtraction.  Fixed by... Integers are closed under subtraction, but not division. Fixed by... Rational numbers are closed under division, but not root. Fixed by... Real numbers are  closed under roots, but not negative roots. Fixed by... Complex numbers are closed under negative roots.   But wait, rational numbers are not closed under division, because division-by-zero is not defined.  My question is: Given the above strategy of defining new number systems to cope with non-closure properties, has anything been done or attempted to fix divide-by-zero?  Obviously, we can have a "value" like NaN, but it's not very algebraically useful, except as a kind of error.  BTW: It seems to me that we can't do better than this, it's in the nature of even a semi-ring like the natural numbers, that multiply-by-zero is an annihilator, which is what causes the problem. (e.g. regular expressions also have this property). But what do I know?  The suggested "duplicate" is about extending the natural numbers to allow division-by-zero. The question here is more general: ensuring closure. This allows other approaches e.g. not having zero at all (see my answer).


$ ls -l -rw------- 1 root root 2381 Jan 13 08:20 authorized_keys -rw-r--r-- 1 root root  444 Jan 13 08:20 known_hosts    1st one is permissions 2nd one is ? 3rd one is ownership 4th one is ? 5th one is ? 6th one is date created 7th one is filename   Could someone fill in the gaps!


Let $V$ be the vector space of all functions $f \colon \mathbb{R} \to \mathbb{R}$ over $\mathbb{R}$, is the set of functions which are continuous a subspace?  I think if you add functions which are continuous, the resultant function should also be continuous, but I'm not sure about it


What is this nut clamp called and how do you remove it?

I would like to remove the wheel that is being held in by this contraption:     I tried to use a standard socket wrench, but couldn't get just the right size: 1/2" or 13mm seems too small; 5/8" or 14mm seems too big. Also, I'm not sure if there's a trick involving the black part.  What's that called? Is there a special technique?  The other end of the rod looks the same.


Can I reset firmware password via Find My Mac?

I would like to find out if I can set a new firmware password via Find My Mac? I already have my MacBook added but the firmware lock is active and I have no idea what it is, I've tried all combinations but they haven't worked.  If I choose to lock it using Find My Mac, will I be asked to create a new key or does that activate and expect me to enter the one it believes is already there?


I think this is possible but I don't even know how to go about it.I know everything about ellipse but how can I adjust the shape of an ellipse to the shape of a normal egg


Let us say I have process A which spawns process B, which spawns process C. Under what circumstances will killing A kill the whole chain (or tree I guess) and when will it not? I sometimes find it does, and sometimes that B ends up with ppid 1 and C is untouched.   Does this behaviour vary between particular Linux kernel versions?


I'm trying to figure out how I got a shock from a neutral wire. I didn't think it was possible until I read  on being "in series with the neutral." Here's what happened:  I was disconnecting a ceiling fan remote receiver which has a hot and neutral connection and supplies power to the fan and light kit. The hot wire that supplies the box runs through a single-pole switch, so I shut off the switch and tested with a solenoid voltage meter to make sure it was in the off position. I then removed the wire nuts from the hot and neutral connections. I tested both the hot and neutral bundles with the voltage meter (between wires and the grounded box) and there was no voltage, but there was a small spark when I touched the lead to the neutral bundle. I tested it again and there was no voltage, so I assumed that it was static discharge (I don't know why I did that). So I tested the neutral bundle again, to be safe, and there was no voltage. I started unbraiding the neutral wires and that's when I got a shock.  I couldn't believe it. I got a multimeter out and tested again, but there was zero voltage from the neutrals to ground. I turned the switch back on and tested again (hot to ground and hot to neutral), and the black wire was indeed the hot. Then I realized that there were two neutral wires coming into the box, which seemed odd for a ceiling box with only one load (the fan controller). I tested both neutral wires with the switch on and off (neutral to ground): no voltage on either.  Is it possible to get a shock even though you can't detect voltage from a neutral wire? I think now that "neutral one" came from a mystery load that ran into the box and hooked up to  "neutral two", which runs to the neutral bar. I probably should have tested hot to each neutral separately to confirm this, but I didn't want another shock. Did I complete a circuit when I touched both neutral wires, and that is why I got the shock?


ffplay - Unable to Find File Using lavfi

I'm having some trouble using lavfi within ffplay to apply filters.  I'm simply trying to pad one video, and overlay another video within the padded area.  My command and console output is as follows:  ffplay -f lavfi "movie=h:\test.mpg,pad=704:770:0:0[padded];movie=h:\test2.mpg[2];[padded][2]overlay=shortest=1:x=0:y=490[1]"  ffplay version N-69920-g8bc8001 Copyright (c) 2003-2015 the FFmpeg developers   built with gcc 4.9.2 (GCC)   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis  --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab le-zlib   libavutil      54. 18.100 / 54. 18.100   libavcodec     56. 22.100 / 56. 22.100   libavformat    56. 22.100 / 56. 22.100   libavdevice    56.  4.100 / 56.  4.100   libavfilter     5. 11.100 /  5. 11.100   libswscale      3.  1.101 /  3.  1.101   libswresample   1.  1.100 /  1.  1.100   libpostproc    53.  3.100 / 53.  3.100 [Parsed_movie_0 @ 0000000000399480] Failed to avformat_open_input 'd' [lavfi @ 0000000000396a60] Error initializing filter 'movie' with args 'd:test.mpg' movie=d:\test.mpg,pad=704:770:0:0[padded];movie=d:\test2.mpg[2];[padded][2]overlay=shortest=1:x=0:y=490[1]: No such file or directory   To simplify things, I get the same error when I try and simplify the command dramatically to:  ffplay -f lavfi "movie=d:/test.mpg"   I'm hoping that I'm simply using the wrong syntax to specify the files location here within lavfi.


While proving some results on series I encountered that, one of those result  implies that $$\sum_{n=1}^{\infty}\frac{1}{(2n-1)(2n)}$$ is convergent and it has sum equal to sum of alternating harmonic series.  (And we know that alternating harmonic series converges to $\ln2$.) However I am not able to find the sum of series $\sum_{n=1}^{\infty}\frac{1}{(2n-1)(2n)}$ directly (without that result). Is there is any way to show that sum equals to $\ln2$?


I've a bash script that scans php files to find rows like the followin  @include "\057var/\167ww/n\143v/ad\155inis\164rato\162/com\160onen\164s/co\155_spp\141gebu\151lder\057.9e7\064214f\056ico";   I need a way to decode unicode char codes into litteral chars. So I can find the fake icons created by an attacker.  What can I use in bash to decode unicode chars?


Null pointer exception when calling setOnClickListener()

I am confused by this error:   java.lang.NullPointerException: Attempt to invoke virtual method `void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)` on a null object reference         at       com.example.myapplication.MainActivity.onCreate(MainActivity.kt:20)    It says that this is the problem: Mainactivity.kt:  package com.example.myapplication  class MainActivity : AppCompatActivity() {      override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)         setContentView(R.layout.activity_main)         setSupportActionBar(toolbar)          goToAddProduct.setOnClickListener {             startActivity(Intent(this,AddProductActivity::class.java))         }     } }   What is the problem?


How to install Nvidia GT 840M graphics driver in Ubuntu 14.04

This is the third reinstall of Ubuntu 14.04 I have done today.  I just bought a laptop with an Core i3 processor and an Nvidia GeForce GT 840M graphics card.  I have installed the Nvidia driver using their .run file, and also following tutorials, and it just doesn't work. When I check in the terminal which GPU I am using it says "i915" instead of "nvidia".


I have the following (Non-working) example.  \renewcommand*{\arraystretch}{1.8} \begin{longtable}{lcl}     \caption{Summary of proven determinants for falling}\\ \toprule     \label{tab:FallPredictionVariables}     \textbf{Author} &\textbf{Subject count (M:F)} & \textbf{Determinants}\\     \midrule      \noindent Author 1 &     1780 (?) &      \begin{itemize}%[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Recent falls (last 2 months)         \item Agitation         \item Frequent toileting         \item Visual impairment     \end{itemize}\\      \noindent Author 2 &     311 (?) &     \begin{itemize}%[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Posture sway         \item Two or more falls in previous year         \item Low hand grip strength         \item Depressive state of mind     \end{itemize}\\         \bottomrule  \end{longtable}   However, it works OK outside a longtable environment:  \renewcommand*{\arraystretch}{1.8} \begin{table} \centering     \caption{Summary of proven determinants for falling}      \label{tab:FallPredictionVariables}     \begin{tabular}{lcp{60mm}}     \toprule     \textbf{Author} &\textbf{Subject count (M:F)} & \textbf{Determinants}\\     \midrule      \noindent Author 1 &     1780 (?) &      \begin{itemize}[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Recent falls (last 2 months)         \item Agitation         \item Frequent toileting         \item Visual impairment     \end{itemize}\\      \noindent Author 2 &     311 (?) &     \begin{itemize}[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Posture sway         \item Two or more falls in previous year         \item Low hand grip strength         \item Depressive state of mind     \end{itemize}\\         \bottomrule          \end{tabular}  \end{table}   As you can see in the picture below, it does what I'm expecting (except there is some vertical space over the first item that I would like to remove, and the solutions posted in  only seem to work for tabularx environments).    I'm unable to make my code work inside longtable, and I really need it (the complete table is very long).  Any ideas for both things:   To be able to have itemize inside longtable environment Eliminate the extra space for the first item   PS: This is the preamble for both examples:  \documentclass[a4paper,twoside,11pt,openright]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{longtable}   \usepackage[inline]{enumitem}    \usepackage{booktabs}  \begin{document} ... \end{document}


How can html be parsed as XML when containing '...&body='?

I have html file that is a well-formed xml document (tags are paired), but contains anchor like the one below:  link  Xml parser invoked by XDocument.Load throws XmlException that says:  Additional information: '=' is an unexpected token. The expected token is ';'.  How can I instruct parser that I '&body' is not an entity? Do I must escape '&' character?


How to evaluate a javascript object for undefined

I have a grid that I am searching for a specfic row. If the row is not there I want to run a conditional statement. I pull the row like this:  var $row = $table.find("tr[data-id=" + item + "]");   When I use an alert on it, it comes out as what I would expect and 'undefined' when the value is not there. However, when I do a condtional on it I can never get the proper part of the conditional. I have tried:  if(row === 'undefined'){}  if(row == 'undefined'){}  if(row === null){}  if(row == null){}


How do I simplify and evaluate the limit of $(\sqrt x - 1)/(\sqrt[3] x - 1)$ as $x\to 1$?

Consider this limit:  $$ \lim_{x \to 1} \frac{\sqrt x -  1}{ \sqrt[3] x -  1}  $$  The answer is given to be 2 in the textbook.  Our math professor skipped this question telling us it is not in our syllabus, but how can it be solved?


Oracle : Combine unique row values into comma-separated string

I have a query that returns data like below, need to combine the value column into comma-separated string excluding duplicates and null values.  g_name    g_id      v_data     -----     ----      ------ Test      123        ABC Test      123        ABC Test      123        DEG Test      123        None Test      123         Test      123        HIJ   Desired output :  g_name    g_id      v_data     -----     ----      ------ Test      123        ABC,DEG,HIJ   I have tried using XMLAGG but can't remove duplicates and null values.  select g_name,      g_id,      RTRIM(XMLAGG(XMLELEMENT(e, v_data || ',')).EXTRACT('//text()'), ',') from tblData group by g_name, g_id


i am kind of confused why python add some additional decimal number in this case, please help to explain  >>> mylist = ["list item 1", 2, 3.14] >>> print mylist ['list item 1', 2, 3.1400000000000001]


What should I do to get Ubuntu dual-boot with Windows 10 on this Toshiba laptop?

I've tried several approaches and it still boots directly to Windows 10. It is a Toshiba  with Windows 10 the original OS.  I read and tried to follow all prerequisite steps in , and first tried Ubuntu 14.14 LTS, which installed but showed no dual boot menu.  Various answers and sources  have suggested I could then tell the UEFI to start with Grub 2, but I see no such option. This Toshiba's UEFI config menu has never shown anything but the hard drive and USB as boot sequence options. The only other relevant setting seems to be Safe Boot on/off, which has never seemed to have any effect on behavior at any point in the hours and hours (and more hours) of trying things I have done. There is no "boot mode" option  - I suppose it is UEFI-only (no legacy option)?  The info-packed answerer said 15.04 has always just worked for him, so although I would prefer LTS, I tried Ubuntu 15.04, telling it to replace the 14.14 installation, and it is installed, but is equally unbootable.  I saw the suggestion that Toshiba may be violating the UEFI standard and annoyingly testing for "windows" in the file name and that I could rename the Linux bootloader to windows... but I don't know how to access the EFI partition - I assume I'd need to know how to find and mount it in Linux? I didn't see complete enough directions for my familiarity level, so I didn't try that.  Following advice on , I tried using a EasyBCD and managed to wipe my BCD making Windows 10 unbootable .  The most recent thing I've tried is , which I ran in all its steps but it had no visible effect. Its docs say the final steps should be to show its output data to my favorite help source, so here I am, and .  Any suggestions?


Generate Particles with Random colors (continuously or from a set)

I am trying to do rocks and I want them to have a random base color from within the colors that look "rocky". The only method I know of is to duplicate the base objects over and over and give each a different color in the node editor, then group them all and use them as the group input for the particles. This is slow, inefficient to change, duplicates a lot of data, and comes out with a uniform distribution of the colors. Is there a way to have give particles a random color from a set or range?


There's a loophole for the 15-characters-per-comment requirement

I saw a certain loophole used somewhere on Mathematics to get around the 15-character minimum for comments. Normally, it wouldn't be visible, but when I clicked 'refresh', the LaTeX on a page flashes without the dollar signs - in other words, for a split second, $y=x^2$ appears as y=x^2.  The shortcut used is to simply write the expression ${}{}{}{}{}{}{}{}$, which leaves a blank comment. You can cut down the pairs of brackets and insert a small phrase that would otherwise not make it past the 15-character limit.  Does SE know about this loophole? Can it be removed?


How to calculate heat generated from cosmic dust in space?

Say I have a spaceship, and I'm flying it through space at a constant high velocity V. The spaceship is pretty large (big surface area). In space however, there is cosmic dust scattered throughout (density of 10-6 × dust grain/m3 and mass 10-17 kg according to ). So therefore with high enough surface area and velocity, I would be hitting quite a few at really high speeds. Would this hitting impart heat energy on my spaceship? (my intuition says yes, but I'm really not sure why, I'd guess because of friction, or change in kinetic energy?) If so, how would you calculate how hot you would get?


Is there a term for celebrating one's tonal memory?

There is "tonal recognition," but the term seems to be ambiguous. I'm looking for a better one.   Let me describe the phenomenon:  You hear a tune, any tune. It may be pop music, or jazz, or rock, or opera, or symphonic music, or a theme song. At the same time (or on the same day, anyway) you experience something truly memorable; something pleasant, perhaps.   Days, weeks, months, or years pass.   Suddenly you hear the tune again, and it brings back all those memories.   You may or may not be truly aware that the tune is linked to those memories in your mind. You just like to hear it.  Your liking to hear it (and this is crucial) has nothing at all to do with the tune's actual artistic value. You assume it's a great tune because it makes you feel happy.   Thus, music appreciation per se does not play a part here: the tune may, in fact, be brilliant, or it may be completely worthless: you're bound to like hearing it because of all those memories.  Now, what is this phenomenon called? It's "tonal ..." something ... something ... I can't quite put my finger on it.


Manga/webcomic where the main character can see something's luck (the thing he focuses on becomes green)

I distinctly remember that the mc of what I was reading could sorta see luck, just by focusing on things and they turn green. It starts out with the mc's past of trying to be a gambler, and then his power starts to fade and he starts to run out of money. He was going to jump into a lake or waterway or something, then some lady comes along and wants him to join some program with other people. He says yes, as long as he gets to be a fancy contract thingy, and when he gets there, people get certain things depending on some system. Most get copper rank, a select few get the silver rank, and I know the mc gets golden rank. He also finds out he has some unique skill that basically color codes things depending on what they are, like red for danger or black for death. I really enjoyed the first parts, but I couldn't remember what this one was called. The art was a solid 7.6/10 and the plot was fun. Also I remember the people receive their ranking along with gifts inside this school-is building and a monster comes out of the gym floor and bites some girl in half, and her little brother tries to save her but fails. Events happen, like one where zombies appear, or you have to gather tokens, and some girl with a hoody has a broken arm. There's this annoying old bitch who causes issues, as well as her douchebag husband fella. I know that the monster and events were some kind of tutorial, and then when the mc gets to the main area (Paradise?), he can take quests from some quest board, and he picks a hard one which involves fighting skeletons, and he fails pretty bad and then he trains and takes the mission again. Thats the most I can remember, so can someone plz help me?


If a sequence $\{x_n\}_{n=1}^{\infty}$ of real numbers satisfies $$lim_{n\rightarrow\infty} n\Arrowvert x_n-x_{n+1}\Arrowvert=0$$,can we prove that it is a convergent sequence?  I have tried to prove it is a Cauchy sequence but it seems hard to deal with the part of $\frac{1}{n}$.


mysqli-- prepare statement failing with error "no table used"

new to writing in php, I'm using a $mysqli->prepare() function to get a statement ready for execution, but it keeps failing and I don't know why. THe error inside the $mysqli->error is "no table used," and I can't seem to find much documentation for that either... if anyone could help out, that would be hugely appreciated. Code below:  $datasqli=new mysqli(HOST, USERNAME, PASSWORD, DATABASE); // defined elsewhere if ($datasqli->connect_errno) {     printf("Connect failed: %s\n", $datasqli->connect_error);     exit(); }  if ($usertest = $datasqli->prepare("INSERT INTO eeg (Identifier)      SELECT * FROM (SELECT ? ) AS tmp WHERE NOT EXISTS (     SELECT Identifier FROM eeg WHERE Identifier = ?     ) LIMIT 1")) {     // this stuff never gets executed... } else {     echo $datasqli->error; // "no table used" }   I've tried executing that code block directly inside the mysql environment and it works fine.


How do i run this program ; because in texmaker it gives error.       \documentclass{article} \usepackage{fontspec} \newfontfamily\urdufont[Script=Arabic,Scale=1.4]{Jameel Noori Nastaleeq} \begin{document} \setRTL \urdufont j j  k i l a d  \end{document}   I get the error message:     ! fatal font spec error The font spec package either requires xetex    or LuaTeX to function   while running the given MWE with ???.


Get a core dump of/debugging a process killed by oom-killer

Is there any way to get a core dump of, or be able to debug a process that has been killed by oom-killer?  Or even set oom-killer to try to kill a process using ABRT instead?


can the taxonomist badge be awarded only once?

tells the contrary, information  and  (no "this badge can be won multiple times" message) suggests it can be awarded only once. Which information is true? I suppose the answer to first question I cited is wrong, maybe it should be corrected somehow.


How do I 'overload' actions using attribute routing?

I have 2 actions with the same name, but one is an overload of the first that takes an int parameter that the first overload does not have:  [HttpGet("Read")] [Produces(typeof(IEnumerable<Client>))] public async Task<IActionResult> Read() ... [HttpGet("Read/{id}")] [Produces(typeof(Client))] public async Task<IActionResult> Read(int id)   I have tried every means I know to correctly define the route attribute template, and to form the correct URL to invoke the second action , with the parameter. Every try, using my code and PostMan, to invoke this action results in a 404.  The whole controller looks like this:  [Route("api/[controller]")] [Produces("application/json")] public class ClientsController : Controller {     private readonly IDataService _clients;      public ClientsController(IDataService dataService)     {         _clients = dataService;     }      [HttpPost("Create")]     [Produces(typeof(int))]     public int Post([Bind("GivenName,FamilyName,GenderId,DateOfBirth,Id")] Client client)     {         var ret = _clients.Create(client);         return ret;     }      [HttpGet("Read")]     [Produces(typeof(IEnumerable<Client>))]     public async Task<IActionResult> Read()     {         var clients = await _clients.ReadAsync();         return Ok(clients);     }      [HttpGet("Read/{id}")]     [Produces(typeof(Client))]     public async Task<IActionResult> Read(int id)     {         var client = await _clients.ReadAsync(id);         if (client == null)         {             return NotFound();         }          return Ok(client);     }      [HttpPut("Update")]     public void Put([Bind("GivenName,FamilyName,GenderId,DateOfBirth,Id")] string json)     {         // NB Edit isn't saving.         var client = JsonConvert.DeserializeObject<Client>(json);         _clients.UpdateAsync(client);     }      [HttpDelete("Delete/{id:int}")]     public void Delete(int id)     {     } }


Alternative methods for $\int_{0}^{1}\frac{x^4(1-x)^4}{1+x^2}dx$

$$I=\int_{0}^{1}\frac{x^4(1-x)^4}{1+x^2}dx$$ I was recently in a small, friendly integration competition and this problem came up. Eventually, I found a solution using messy long division (shown below). I was wondering of other methods (preferably real-method solutions, but complex methods such as residues (if applicable) would also be nice to see) that could be used here.   I spent a lot of time trying to find a nice trigonometric substitution that would work (if you use $x=\tan(u)$, it can be brought to integrating $\int_{0}^{\frac{\pi}{4}}\tan^4(u)(1-\tan(u))^4dx$ which doesn't seem fun/faster and other substitutions I tried ended up similarly). So, that's what I'm hoping to see. There may also be a clever change of variables that that I didn't see (e.g. somehow using $\int_{a}^{b} f(x)dx=\int_{a}^{b}f(a+b-x)dx$ or similar)  Long Division Method:  Multiply the numerator out to prepare for long division: $$(1-x)^4=((1-x)^2)^2=(1-2x+x^2)^2=1-4x+6x^2-4x^3+x^4$$ hence $$x^4(1-x)^4=x^4-4x^5+6x^6-4x^7+x^8$$ Then long division shows that $$\dfrac{x^4(1-x)^4}{1+x^2}=x^6-4x^5+5x^4-4x^2+4-4\cdot\dfrac{1}{1+x^2}$$ Finally, we get that  $$I=\int_{0}^{1}\left[x^6-4x^5+5x^4-4x^2+4-4\cdot\frac{1}{1+x^2}\right]dx$$ $$I=\frac{1}{7}x^7-\frac{2}{3}x^6+x^5-\frac{4}{3}x^3+4x-4\arctan(x)\bigg\vert_{0}^{1}$$ $$I=\frac{1}{7}-\frac{2}{3}+1-\frac{4}{3}+4-4\cdot\frac{\pi}{4}-0=\frac{1}{7}+3-\pi=\boxed{\frac{22}{7}-\pi}$$ (Yes, I do see the cleverness of $\frac{22}{7}$, an approximation of $\pi$.)


How to find how many times a letter comes up in a txt file?

im creating a program called "Book" for school and im having alot of trouble. IM suppost to find out how many times the character "a" comes up in a txt file. The txt file reads the following "go to the bathroom he said and he was right I needed to go to the bathroom" . Here is my code but it doesnt seem to work at all and i am stuck.  import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;   public class Book  {  public static void main(String[] args)  throws FileNotFoundException {      Scanner text = new Scanner (new File("data.txt"));     String word = null;     int count = 0;     while(text.hasNextLine())     {         word = text.nextLine();         for (int i = 0; i < word.length(); i++)         {             if (word.substring(i) == "a")             {                 count++;             }         }      }       System.out.print(count); } }


I have a tex file with name Chap-Name_of_Section.tex and I running pdflatex on it. I want to set the title of my document automatically according to the file name. This could be done using \jobname.  Here is my MWE. Save this file as Chap-Name_of_Section.tex,  \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{a4wide}  \title{\textbf{\jobname}} \author{} \date{}  \begin{document} \maketitle The name of the tex file is {\tt{Chap-Name\_of\_Section.tex}}. I am running {\verb|pdflatex|} on the tex file. After using {\verb|\jobname|} I get the title.  I want to print the title as ``Chap: Name of Section''. Note that `-' sign is to be replaced by `:' followed by a single space and underscores (`\_') are to be replaced by spaces. \end{document}   But This is not what I want. I want to print the title as Chap: Name of Section. Note that - sign is to be replaced by : followed by a single space and underscores _ are to be replaced by spaces.  I have found \StrSubstitute from the xstring package. But this can change only one character. For example, if I replace \jobname with \StrSubstitute[0]{\jobname}{-}{: } in my code, the title would be, Chap: Name_of_Section.  How to replace both - and _ accordingly ?


Is it possible to shorten a unix terminal command to a shorter one?

Let's say I have this command:  /sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}'   Is it possible to shorten this to let's say writing host in the command line?


Easy way to create text with rectangle around it in Illustrator?

I know I can create rectangle and put inside a text but is it any easy way to get text with rectangle around it?


How do I fix poorly-received questions if it was deemed as a duplicate (when trying to reclaim the ability to post questions)?

Due to some questions of questionable quality from the times when I was still at school I am unable to post questions on Stack Overflow. I want to make my amends and the  suggest I should "begin by fixing my existing questions".  What if the only problem with the question was that it was deemed to be a duplicate (e.g. )? There is literally nothing I could change about the question to make it a non-duplicate unless I am willing to totally change the subject, which would be counterproductive.


I would like to play a character who excels in impersonating people. Of course, a high Deception skill comes in handy. But what if I want to impersonate an elf, a dragonborn or an orc? (Alter Self, a Disguise Kit or other such tricks are viable options). People would probably expect me to speak Elvish, Draconic or Orcish. And that's my problem. I can grab some languages with the changeling race, and some more with an appropriate background. I think a Knowledge Cleric would also get some extra languages. But still, my character can never know EVERY language.  That’s where the Tongues spell comes into play. In older editions this spell would let you speak any language. But I’m not sure about the 5th edition version of Tongues. It only says …     This spell grants the creature you touch the ability to understand any   spoken language it hears. Moreover, when the target speaks, any   creature that knows at least one language can hear the target and   understands what it says.   Can I fool listeners with this spell? Would an elf actually believe that I talk to them in Elvish? Or would any listener recognize that I only make myself comprehensible with magic?


iphone - is the hotspot isolated (can you see other devices)?

When I turn on the Apple hotspot feature, is it an isolated network, or can I see other devices on it?  Can I use it to connect a third device to a Chromecast?  As in tablet -> iPhone with hotspot (and cellular data off) -> Chromecast?  I want to use a Chromecast while on holiday!


Illustrator: Create a clipping mask for a long-shadow that was made using the blend tool

So I'm trying to make an icon with a long shadow, I used Illustrators blend tool to make the shadow in between my two pigs like so.   What I would like to do now is create a clipping mask for the long shadow to keep it inside the light blue box that the pig is inside of. I've tried multiple ways to get the clipping mask made, but the truth is, I'm a newbie with Illustrator. Could someone help me out?


Showing that every connected open set in a locally path connected space is path connected

I'm trying to figure out whether my proof is correct for a question I'm trying to tackle in Topology by James R. Munkres.   Task: Let $X$ be locally path connected. Show that every connected open set in $X$ is path connected.   My attempt at a proof: Well, every open subset of the locally path connected space $X$ is locally path connected. In addition, the path components and components of $X$ are the same in view of Theorem $25.5$ (p. $162$), which states that if a space $X$ is locally path connected, then the components and the path components of $X$ are the same. Altogether, this implies that then every connected open set in $X$ is path connected.   Am I right, or do I need to make any changes? Please provide your input, thanks.


I have been just banging my head against the wall on an issue I'm having regarding one of my intranet sites, and why the AJAX calls are slow, once the site is added to one of our servers.   I will have some details to show, and it may come down to server configuration, as I don't think anything is wrong with my code.


Travelling from USA to india through Frankfurt on F1 visa with just 2 months of visa validity

I am planning to travel India on march 30 through Lufthansa airlines via Munich and and I will return on April 16, the thing is, my F1 visa valid till June 30,2020 only. are we OK to travel to India via Germany with 80 days of visa validity and I have valid I-20 with Sevis active, I would be more helpful if some one helps.