I'm looking for a way to remove the page number of entries that are on the same page. I would like to avoid having repeated page numbers in the ToC.. but I've found nothing explicit enough.  Here's an example :   \documentclass[12pts, a4paper]{article} \begin{document} \tableofcontents \newpage   \section{Lorem ipsum}     dolor sit amet     \subsection{consectetur adipiscing}       elit. Donec a diam lectus.         \subsubsection{Sed}   \section{sit amet}    ipsum mauris. Maecenas congue[...] \newpage   \section{ligula}     ac quam viverra[...]     \newpage     \subsection{nec} \end{document}   So here, only the first section, the third section, and the 3.1 subsection ("nec") should have a pagenumber.

Hi I'm trying to create a document in LaTeX with a few small subsections on the same page, is there any way to remove the repeated page numbers and keep the numbers when I move onto a new page?


Let $f$ be an entire function such that there exists $z_0, z_1$ $\mathbb{R}$-linearly independent so that $\forall z \in \mathbb{C}\ f(z+z_0)=f(z)=f(z+z_1)$. Prove that $f$ is constant.  I know that $f(z_0) = f(z_1) = f(0)$, so I guess I should prove that f is equal to $f(0)$ in a set with an accumulation point, but I don't know what to do next. Also, $f(z) = f(a z_0+b z_1)\ \forall\ a,b\ \in \mathbb{Z}$  Any hints?

Let $f: \Bbb C \to \Bbb C$ be an entire (analytic on the whole plane) function such that exists $\omega_1,\omega_2 \in \mathbb{S}^1$, linearly independent over $\Bbb R$ such that: $$f(z+\omega_1)=f(z)=f(z+\omega_2), \quad \forall\,z\in \Bbb C.$$Prove that $f$ is constant.   The intuition seems clear to me, we have the three vertices of a triangle given by $0$, $\omega_1$ and $\omega_2$. All points in the plane are one of the vertices of that triangle under a suitable parallel translation. The constant value will be $f(0)$, fine. Throwing values for $z$ there, I have found that $$f(n\omega_1) = f(\omega_1) = f(0)=f(\omega_2) = f(n\omega_2), \quad \forall\, n \in \Bbb Z.$$  I don't know how to improve the above for, say, rationals (at least). Some another ideas would be:   Checking that $f' \equiv 0$. I don't have a clue of how to do that. Write $w = a\omega_1+b\omega_2$, with $a,b \in \Bbb R$, do stuff and conclude that $f(w) = f(0)$. This approach doesn't seem good, because I only have a weak result with integers above. Finding that $f$ coincides with $f(0)$ on a set with an accumulation point. This seems also bad: the set on with $f$ coincides with $f(0)$ by which I found above is discrete.    Nothing works and this is getting annoying... And I don't see how analyticity comes in there. I'll be very thankful if someone can give me an idea.  (On a side note.. I know that this title is not informative at all. Feel free to edit if you come up with something better.)


I need help with this exercise. What I've done so far is prove the exercise when $n=1$. So:  $$n=1$$ $$1!\ge2^{(1-1)}$$ $$1\ge2^0$$ $$1\ge1$$ Which is true  Therefore, now that I assume that the assumption is correct, I want to prove that with $n+1$, it will also be true. So, what I've done now is:  $$P(n) \implies P(n+1) $$ $$n!+n+1\ge 2^{(n-1)}...$$ And my  problem is that I do not know how to add the $n+1$ in the right side of the equation, therefore I'm not been able to finish the exercise.  Thank you so much for your help. If something's not very clear, please let me know. I'll try to be clearer next time :)

I'm having difficulty solving an exercise in my course.  The question is:      Prove that $n!\geq 2^n$.   We have to do this by induction. I started like this:   The lowest natural number where the assumption is correct is $4$ as: $4! \geq 2^4 \iff 24 \ge 16$. The assumption is: $n! \ge 2^n$.   Now proof for $(n+1)$ which brings me to: $(n+1)! \ge 2^{(n+1)}$  I think I can rewrite it somehow like this:  $$ {(n+1)} \times {n!}  \stackrel{\text{(definition of factorial)}}{\ge} 2^n \times 2 $$  $$ (n+1) \times 2^n \ge 2^n \times 2 $$  Then I think I can eliminate the $2^n$ and have something like this: $n+1 \ge 2$, or $n \ge 1$.  But I think I'm wrong here some where and was hoping somebody has some advice on this. How can I prove the above assumption?  Any help would be appreciated, kind regards.


So the birthday field is used to display age in full years, ok, but what is the reason to fill out Real name and Email fields if they're not shown publicly? I know my name, so what's it for?

I've seen questions regarding  and , but this doesn't tell me why this field exists in the first place.  Do any internal processes use it, or are there any future plans for using it?


I work in a library and I need to set a time limit for the user, like 20 minutes, and when the time is over the user is forced to logout.  Is possible to do that?

Access to our computer (not only to the internet) needs to be restricted for the accounts of my kids (7, 8) until they are old enough to manage this by themselves. Until then we need to be able to define the following:   the hours of the day when computing is o.k. (e.g. 5 - 9 pm) the days of the week when computing is not o.k. (e.g. mondays to fridays) the amount of time allowed per day (e.g. 2 hours)   In 11.10 all of the following that used to do the job don't work any more:   : for > 11.10 no more available through the ppa. : command line alternative, but from 11.10 removed from the repositories. : Looks great but repeatedly crashes to force restarting X-server. So we can't use or recommed this program at the moment.   Are there any other alternatives?


Help! I'm losing my mind in this process... My 3 year old boy wants to wear pull ups and stays dry most of the time. And tells me, I'm all dry! But, When he sits in the potty... Nothing! I don't think he is connecting the dots and really understands what is supposed to happen... Is he NOT ready? Should I go back to diapers? I feel like I'm wasting his and my time!!! How do I help him "get it"???

My son is almost 3 (33 months) and for the past few months, he has been holding his poop in, to the point that he won't go for many days a time. When this started, the doctor advised us to give him Miralax to make his stool softer so it comes out more easily. Even with the Miralax, he still managed to hold it for two days at a time sometimes, but at least it was coming out at all, so we continued with it.  Anyway, we've been giving him the Miralax for months now, and now he's (supposed to be) going to preschool in September, which of course requires that he be potty trained. We don't want to hold him back since he's developmentally ready otherwise, so we started potty training a few weeks ago.  He picked up the potty training really quickly – for peeing – but he still holds his poop in no matter what. If he's sitting on the potty, as soon as he's about to do it, he stands up and just keeps holding it in (and once he starts to stand, if we even so much as ask him to sit back down, he screams and cries).  We have tried everything to convince him (or distract him enough) to sit and poop: reading books, singing songs, playing games, playing with toys, offering him snacks/treats (graham crackers), giving him stickers, etc. Nothing works.  As of today, it has been a week since the last time he pooped, with the exception of a little bit today and a little bit yesterday (both of which ended up all over the bathroom floor since he won't sit down). The doctor says now we should give him an enema to force it all to come out, but even so, that won't solve anything going forward since he still won't go in his diaper or on the potty in the first place (what are we going to do, give him an enema every week, indefinitely?).  The issue isn't that he's scared of the potty itself, since (a) he was holding it before we started potty training, and (b) he knows exactly what he's supposed to do, since he has no problem with peeing (he sits down himself, points it out afterward, knows that it gets emptied into the big potty, etc.).  It's that he just won't poop, ever – not in his diaper, not on the potty – and the only reason why anything comes out at all is because we've been giving him the Miralax every day (and even then, these aren't "full" poops, just whatever happens to come out because it's soft enough that he's unable to hold it all in).  I'm at a complete loss as to why this even started, and what if anything we can do that would actually help. Is it a behavioral problem? Medical? Both?? Help!    UPDATE: I just wanted to update this question since a lot has changed since I originally posted it. We discovered there was a specific situation where he would go in his diaper voluntarily: in our bedroom closet with the door closed. So we knew then that the withholding was intentional, since it was now established that he could go if he wanted to.  So we let him continue going in the closet and, over time, found that he usually went around the same time each day. Based on that, we then had him sit on the potty when we knew it was most likely he would need to go. We also managed to find two things that distracted him enough to sit (blowing bubbles and playing with his toy laptop).  By doing this, we were able to get him to go on the potty without really realizing it (so he didn't try to fight it), and then made a big deal out of it every time he did. Over time, that helped establish that that's what he was supposed to do, and now he does so voluntarily. He hasn't pooped in his diaper in probably 3 weeks by now.  I wouldn't say he's "fully" potty trained, in that an adult still needs to go with him and distract him (and occasionally remind him when he needs to go in general), but finally we made progress.


Would dark matter get drawn into a black hole?  Also, could enough dark matter be concentrated to create a "dark black hole"?

Some people speculate that the mysterious dark matter in the universe could be tiny black holes. But on the other side, could dark matter particles attract each other by gravity and finally form a black hole? Since dark matter is even more abundant than normal matter, the dark matter black hole should not be rare.


Here is what I want to prove.     If $f:(0, \infty) \rightarrow \mathbb{R}$ is continuous and $\displaystyle \lim_{x\rightarrow \infty}[f(x+1)-f(x)]=\alpha$, show that $$\lim_{x\rightarrow\infty} \frac{f(x)}{x}=\alpha$$   Here's what I've tried. I used the $\epsilon-\delta$ definition of limit to convert the given statement to $|f(x+1)-f(x)| < \epsilon$ for large enough $x$, but I don't have any clue on how to proceed.   How do I manipulate this to get something of the form with $f(x)/x$ ?  Any help is greatly appreciated. Thanks in advance!  Note. I've simplified the problem by setting $g(x) = f(x)-\alpha x$, so it is enough to show the problem only for $\alpha = 0$.

Let $f:\mathbb{R}\to\mathbb{R}$ continuous such that $\lim_{x\to\infty}f(x+1)-f(x)=l$.  How can I prove that $\dfrac{f(x)}x$ converges for $x\to+\infty$ ?  I am just trying to prove the convergence, not that it converges to $l$ (that part be deduced immediately by Stolz-Cesaro and the sequential characterization of limits)


As I'm using bash on my Desktop, I have a multi-tab Gnome Terminal window with 6 to 10 shells opened in there.  When I log out of my X session, my ~/.bash_history gets updated in some random way... (at least if you ask me, I have not found a clear pattern to it.)  I'm wondering whether all the history from all the shells I had running could be appended. At this time, it feels like only one of the shells will save its history in the file (or rather they all do and the last one wins?)  What I think would be best is a way to save commands as I issue them from any one instance. That would certainly be the cleanest, if it's doable, as the order would be preserved (i.e. I cannot type in more than one shell at a time, so saving the history will be in the order I typed command in each shell.)

I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another set of terminals. Some remember certain things, some forget.  I want a history that:   Remembers everything from every terminal Is instantly accessible from every terminal (eg if I ls in one, switch to another already-running terminal and then press up, ls shows up) Doesn't forget command if there are spaces at the front of the command.   Anything I can do to make bash work more like that?


I (believe I) am aware of the general difference between a hash and a MAC; the former is used for integrity and the latter for integrity and authentication as it also takes a secret key as an input in addition to the message.  But what if I hash the message, encrypt it using the secret key (one that is separate from the one used to encrypt the message), and send that instead of the MAC? Does it not hold the same properties as sending a MAC?  In both cases, we input a message and a secret key to compute an encrypted hash / MAC, so it seems like both integrity and authenticity are provided.  If not, in what way would an adversary be able to break the authenticity of a scheme that sends, along with each encrypted message, an encrypted hash (using a separate secret key)?  Edit:  As mentioned in a comment below, this has already been answered  and  but I am unable to mark it as a duplicate as it is on a separate StackExchange.

When encrypting a message with a symmetric key, it seems like the best practice is to first encrypt the message, then run the cipher text and key through HMAC, appending the result to the cipher text. The receiver can strip off the hash, HMAC the cipher text and key, and verify that the hashes match. This tells the receiver that the person who made the HMAC had the secret key, and that the message was not tampered with.  But why can't the sender instead hash the cipher text, then encrypt the hash with the secret key? The receiver would decrypt the hash with the same key, hash the cipher text, and verify that the hashes match. Wouldn't this give the receiver the same assurance, and isn't this how it's done in public key cryptography, when the sender wants to sign the cipher text?


I am a new learner for Machine Learning and are confused about the idea of bias-variance trade-off. Would you please offer some specific examples or situations that a bias-variance trade-off occurs? Thank you!

I am looking for an intuitive explanation of the bias-variance tradeoff, both in general and specifically in the context of linear regression.


None of the answers to this question have even vaguely answered it but have gone off on tangents instead.  It has nothing to do with the airline, whether it is accepted or not depends upon the airport, not the airline.  But that is besides the point, the question is how do you physically add a boarding pass to Apple Wallet.  American Airlines sends an email to you which contains a link to your boarding pass.  American further advises you to add the pass, that appears after you have followed that link, to your Apple Wallet. The procedure should be to open Wallet, click on the + sign in the top right corner and then position the boarding pass within the box in Wallet until Wallet clicks and records the boarding pass. Unfortunately, nothing seems to happen. You never get to that "click" and the question is why?  I agree with the person who posted this question earlier: it should be easy, so why isn't it?

I have been trying to add some boarding passes to wallet. I have downloaded the airline app and logged in. I have tried to "scan the code" as suggested in wallet, but the only code is a QR code and nothing happens when I try to scan. This should be that difficult but I cannot figure it out. Is there an easy way to get this done? Please explain to me how to do it. Thanks.


I am trying to make this ball enter the bowl but it is stopping midway, like there is an invisible surface.

I'm trying to get a ball to go through in between the cup gear things shown in the screenshot below.   It seems that the collision box does not consider the cups. Yes, the ball fits and they are rotating in the right direction.  If there is already an answer to this, please link it.       If you have any questions about what is going on/ what the project is, feel free to ask.


I am building a website that teaches people how to code a website. I am trying to add a feature where they code the exercise into a text box and I then compare that to a string to see if they got it right or not yet. I am running into an issue though when there is quotes inside the strings answer because that then ends the string thus cutting off some of the answer. How can I get around this?  All feedback is greatly appreciated!  Here is an example of a strings answer that screws it up:  var answer = "var greeting="Hello World!"; ";   The second pair of quotes end the string's declaration early. Is there a way to include all of it including the second pair of quotes in the declaration?

console.log("double"); vs. console.log('single'); I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other? I thought they're pretty much interchangeable.


I have a number of function pointers declared in a header file where the functions the pointers point to are assigned in a cpp file (depending on endianness).  For the non-template functions I just declare them as extern and everything works fine, like so:  parse.h  extern int32(*parseWord)(byte**);   parse.cpp  int32(*parseWord)(byte**) = IS_BIG_ENDIAN ? &pWordBE : &pWordLE;   For templated function pointers I assumed I could do the same:  parse.h  template<typename T> extern T(*parse)(byte**);   parse.cpp  template<typename T> T (*parse)(byte**) = IS_BIG_ENDIAN ? &pBE<T> : &pLE<T>;   But the above results in undefined references.  Is there a way of doing this kind of forward declaration?

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


The common way for check non-empty var is:  if (!empty($var)) { ... }   Why can't we just use:  if ($var) { ... }   They're the same actually, right?  Ref:

From the :  isset() will return FALSE if testing a variable that has been set to NULL.   Basically, isset() doesn't check for whether the variable is set at all, but whether it's set to anything but NULL.  Given that, what's the best way to actually check for the existence of a variable?  I tried something like:  if(isset($v) || @is_null($v))   (the @ is necessary to avoid the warning when $v is not set) but is_null() has a similar problem to isset(): it returns TRUE on unset variables!  It also appears that:  @($v === NULL)   works exactly like @is_null($v), so that's out, too.  How are we supposed to reliably check for the existence of a variable in PHP?    Edit: there is clearly a difference in PHP between variables that are not set, and variables that are set to NULL:  <?php $a = array('b' => NULL); var_dump($a);   PHP shows that $a['b'] exists, and has a NULL value.  If you add:  var_dump(isset($a['b'])); var_dump(isset($a['c']));   you can see the ambiguity I'm talking about with the isset() function.  Here's the output of all three of these var_dump()s:  array(1) {   ["b"]=>   NULL } bool(false) bool(false)     Further edit: two things.  One, a use case.  An array being turned into the data of an SQL UPDATE statement, where the array's keys are the table's columns, and the array's values are the values to be applied to each column.  Any of the table's columns can hold a NULL value, signified by passing a NULL value in the array.  You need a way to differentiate between an array key not existing, and an array's value being set to NULL; that's the difference between not updating the column's value and updating the column's value to NULL.  Second, , array_key_exists() works correctly, for my above use case and for any global variables:  <?php $a = NULL; var_dump(array_key_exists('a', $GLOBALS)); var_dump(array_key_exists('b', $GLOBALS));   outputs:  bool(true) bool(false)   Since that properly handles just about everywhere I can see there being any ambiguity between variables that don't exist and variables that are set to NULL, I'm calling array_key_exists() the official easiest way in PHP to truly check for the existence of a variable.  (Only other case I can think of is for class properties, for which there's property_exists(), which, according to , works similarly to array_key_exists() in that it properly distinguishes between not being set and being set to NULL.)


So I've got a list...  a = [1,2,3,4,5]   I can produce b without 5 by saying:  b = a[:-1]   How do I produce c without 3?  c = a[:2:]?

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


It appears that any infinite sum or definite integral with a nice closed form (like $\pi^2$ or $\sqrt{2}$) always has a proof. Are there any known infinite sums or definite integrals left, where the answer is known (or conjectured), but no one managed to make a proof yet?

What are some examples of infinite sums, products or definite integrals that have conjectural closed form representations that were confirmed by numerical calculations up to whatever maximum precision anybody tried but still remain unproved?   I am also interested in values of special functions at certain points that have conjectural representations in terms of simpler functions (e.g. special values of hypergeometric functions,  or  that representable in terms of elementary functions and well-known constants like $\pi$, $e$, , ,  or ).  To give some examples:    mentioned at : $$\sum_{n=0}^\infty \frac{1+14n+76n^2+168n^3}{2^{20n}}\binom{2n}{n}^7\stackrel{?}{=}\frac{32}{\pi^3}.$$  (in an unusual form, also mentioned at ) $$\int_{0}^{\infty}\frac{(1-12t^2)}{(1+4t^2)^3}\int_{1/2}^{\infty}\log|\zeta(\sigma+it)|~d\sigma ~dt\stackrel{?}{=}\frac{\pi(3-\gamma)}{32}.$$ Another conjecture from  attributed to J. M. Borwein, D. H. Bailey, : $$\frac{\displaystyle\int_{\pi/3}^{\pi/2}\log\left|\frac{\tan t+\sqrt{7}}{\tan t-\sqrt{7}}\right|dt}{\displaystyle\sum_{n=1}^\infty\left(\frac n7\right)\frac{1}{n^2}}\stackrel{?}{=}\frac{7\sqrt{7}}{24},$$ where $(\frac{n}{7})$ denotes the .


I want to run query like below  select distinct (columnA, columnB, columnC), columnD from MY_TABLE where columnA IS NOT NULL AND columnB IS NOT NULL AND columnC is NOT NULL;   I only want distinct of columnA, columnB and columnC and NOT ON columnD. But SQL developer is pointing an error right after columnA,  How can I fix this?  I tried to fix my query using GROUP BY  select columnA, columnB, columnC, (select count(*) from TABLE2 WHERE table2columnA = myTable.columnA) from MY_TABLE myTable where columnA IS NOT NULL AND columnB IS NOT NULL AND columnC is NOT NULL GROUP BY columnA, columnB, columnC;   Notice that my columnD is actually another select statement? But this is giving me error   ORA-00979: not a GROUP BY expression 00979. 00000 -  "not a GROUP BY expression"   This is not a duplicate of that another question

I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status.  So I'm thinking:  UPDATE sales SET status = 'ACTIVE' WHERE id IN (SELECT DISTINCT (saleprice, saledate), id, count(id)              FROM sales              HAVING count = 1)   But my brain hurts going any farther than that.


I use this awesome tool  for reverse tethering, i.e. using the internet connection from my Windows PC on my phone.  Now, I would like to start this tool automatically, when the phone is plugged in into the PC. And probably the best idea to do so is to use Windows Task Scheduler. However, how can I create a trigger for "mobile phone plugged in via USB into PC"?

I know it has been discussed that it is not possible to start an application from an usb drive upon connection due to limitations of autorun (or autoplay??) in Win 7. But it is possible to create a scheduled task having an event type trigger. Surely there must be an event occurring when the drive -- or any USB device, for that matter -- is connected.    Does anybody have the slightest idea which Event ID should I use? Or at least what type of event? Where can I find the event in event viewer?


I am constructing a string like the following:  List<string> itemList = new List<string>();  foreach (i in items) {  itemList.Add("{ type: " + i.DocumentType + " ,id: " + i.ID + " ,name: " + i.name + " }" ); }   I want to convert the itemList to a JSON object and return it as response in my controller.  Please help.

I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously?


Can any one help for how can remove this virus. Our all computer's files infected from this (.vvv) virus. We are using windows 7 Plz give me strong methods. If you need remote screen i will provide you.  Thanks in advance.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I'm working through , and I have text with a curve modifier added to it, using a bezier circle as the targeted object.  The problem I'm having is that when I attempt to rotate the numbers into correct position, regardless of whether I rotate either the bezier circle or the text object, the text begins to spiral.  Is there a way to rotate without the spiral happening?

I have attempting to make a fin tube for two days and it is killing me.  Fin tubes are pipes that have a tight spiral of flat fins sticking out all around them. The spiral wraps around the circumference of the pipe. They are used in heat reclaimers among other places.  I made a spiral using the extra shapes add-on and scales pretty tight. And then I set the scale.  I made the fin shape and set its scale. I added the curve modifier and it jumped around a bit. I set its origin point to one end face and finally got it going the right way off the beginning of the curve.  Then I added the array modifier and moved it to the top  of the stack. It all looked good for the first loop, then the fins started to tip. The outside edge aimed upward steadily as the inside edge seemed to continue to be oriented at the center base of the curve.  How can I keep the darned things at 90 degrees to the z axis? Or should I be using a particle system? I haven't learned that one yet, sigh.


Can anyone suggest some good books for calculus. I mean more advanced calculus. Thanks.   I've already finished 'Core Maths for Advanced Level' by L.Bostock and S.Chandler.

I am currently undergoing a full Apostol Calculus I reading, and with few chapters left I've began planning what other books to read. I was thinking about finishing both Apostol Calculus l and ll, and then read Apostol mathematical analysis. I'm not pretty sure whether these are the best books or if they will provide me with a strong math basis. I've already taken calculus i, ii, iii and linear algebra. The reason I've chosen Aapostol volume 1 and 2 is that I've heard they cover almost all the topics I've seen and will see in the next semester/s. I would appreciate if somebody could give me some advice about this. I really like to have a book that really gives me hard and challenging problems. I don't know whether to read Spivak Calculus book or not.


in the thesis I am writing I am showing some plots (taken from external files) and some tables with the parameters I used to make the plots. I would like to place together each plot with its related table, so that it's easier for the reader. What can I do? I would like to avoid minipage

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch    ------------              -----------------     TABLE    | a |  b |                     FIGURE   | c |  d |  ------------              Table 2: Caption           -----------------                            Figure 7: Caption   The closest I've gotten is:  \begin{table}% \centering \parbox{0.4\textwidth}{ \begin{footnotesize} \begin{tabular}{| l | r |} \hline some & table\\ \end{tabular} \end{footnotesize} \caption{Table} \label{tab:table} } \qquad \begin{minipage}[c]{0.53\textwidth}% \centering     \includegraphics[width=1\textwidth]{awesome} \caption{Figure} \label{fig:figure} \end{minipage} \end{table}   But that gives two Table X: Caption captions. I didn't find anything in subfig.  Help?


I was trying out  on a few equations and realized that angles have no dimension. Otherwise equations such as $s=r\theta$ are not dimensionally consistent.  Further, why don't trigonometric ratios have any dimension?  PS: I couldn't find any appropriate tag for this question. Could someone re tag as appropriate? Thanks.

Why is the radians implicitly cancelled?  Somehow, the feet just trumps the numerator unit. For all other cases, you need to introduce the unit conversion fraction, and cancel explicitly.  Is it because radians and angles have no relevance to linear speed (v), so they are simply discarded?


I am making a website with a welcome screen that lasts for three seconds, with some JavaScript in the onload attribute to control that. Some of the code is defined in a user-defined module called coreFunctions, all of which is exported and imported correctly. The file contains a class Core encapsulating the core functions for my website. However, when I build the site, an error pops up: Uncaught ReferenceError: Core is not defined     at (index):10     at onload ((index):10)  main.js: import { Core } from "./modules/coreFunctions.js";  index.html:        .       .       .
       .       .       .

       .       .       .
       coreFunctions.js: // CORE FUNCTIONS class Core {   .   .   . } export { Core };  Is this something to do with the way I exported, or is it a problem with the function calls?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I have Silver-Line tablet SL-1066 model.  When I connect USB stick or SD card the tablet always create a folder  under the name "LOST.DIR" and the folder is empty. this folder is also appear in my computer when I connect USB or SD card, this is also appear in my computer after the tablet created it.  I tried always to delete it, but if I connect the device to the tablet again, it is will recreate the folder.   Someone know how to make it never to create this folder again?  Thank you!

After the phone restarts, there is a LOST.DIR folder created on the external SD card. Is it possible not to create this folder if nothing is lost?


I am trying to find out a variable size in memory. So I tried using sys.getsizeof(var) but I keep getting an error:   AttributeError: 'module' object has no attribute 'getsizeof'   I searched for solutions online but still no luck. I also re-installed the Python version that I am using and I am still having the same problem.

I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused.


I'm currently writing the working hour calculation with Time In and Time Out to show working hour with decimal with 1 point. In my case i used .toFixed(1) and any other times are working well but when time in is 09:10 and time out is 17:30 .. It's result show as 8.333333333333334. .toFixed(1) not working in that decimal number. How should i do that.  Here is my code.  var time_in = $(elm).closest('tr').find('.time_in').text(); var time_out = $(elm).closest('tr').find('.time_out').text(); var working_time = (new Date("1970-1-1 " + time_out) - new Date("1970-1-1 " + time_in)) / 1000 / 60 / 60 ; alert(working_time); var total_work_hour = working_time.toFixed(1) - 1;    //get fixed decimal number and minus 1 for lunch time. var w_time = $(elm).closest('tr').find('.work_time'); w_time.text(total_work_hour);

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


Help please Please help with my program I am a bit new to coding and I do not know how to fix my problem. The code works without errors but with the wrong result. I am writing exam in a few days and would like some assistance. package Practice1.pkg1;  import java.time.Year; import java.util.Scanner;      public class Sub1 {              public static void main(String[] args) {         int age = 0;         String name ="";         String surname ="";         int dob = 0;         int year = Year.now().getValue();           info( name, sur**strong text**name, age);         calc(age, year, dob);         result(name, surname, age, year, dob);     }          public static void info(String name, String surname, int age) {         System.out.println("What is your name user?");          Scanner input= new Scanner(System.in);         name = input.nextLine();         System.out.println("What is your surname user?");          Scanner input2= new Scanner(System.in);         surname = input2.nextLine();         System.out.println("What is your age user?");          Scanner input3= new Scanner(System.in);         age = Integer.parseInt(input3.nextLine());     }      public static void calc(int age, int year, int dob) {         dob = year - age;     }      public static void result(String name, String surname, int age, int year, int dob) {         System.out.println("Welcome "+name+" "+ surname+" born in "+dob);         //user in put returns back to default.     } }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I have a list consisting of 150 integers, each one ranging from 1 to 80. I want to print the list with the following format:   x01, x02, x03, x04, x05,  x06, x07, x08, x09, x10, x11, x12, x13, x14, x15,  x16, x17, x18, x19, x20,  ... ... ...   In other words I want to print the numbers in groups of 5. How do I do that?

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


In my textbook, there is written that:     Done work = spent energy   Suppose I am riding a motorcycle. I start my journey from a place and then going to various places I come back to the exact point(I never stopped in my journey). So my displacement is $0$, and the work done by me is also $0$.   But in my journey I have combusted fuel and spent energy and that energy is not $0$. So is my textbook wrong or I am wrong?

My friend and I were arguing about this and I was wondering if someone out there could settle this for us.    Basically, he and I were walking to buy some stamps. When we were on our return trip he made the assertion that when I returned to my desk, which is where our trip began, I would have accomplished zero "net work". That is, utilizing our admittedly simple understanding of work from Wikipedia:       In physics, a force is said to do work when it acts on a body, and there is a displacement of the point of application in the direction of the force.   when I return to my departure point, that is my desk, the total displacement would be zero and using the definition from Wikipedia that $W = Fd$ and $d$ is displacement, no work was done. Intuitively, I suggested that there were two quantities of work done, one quantity of work from my desk to the shop and one quantity of work from the shop to my desk, but when I look at some decriptions of a displacement vector, I feel like the two displacements may also cancel each other out. Can someone help us sort this out?    Thanks in advance for the help!


Can someone please tell me which sentence is correct ?   no action has been observed either from A or from B. no action has been observed neither from A nor from B.   If you believe that there is a better way of saying that, feel free to say it !  Thanks.

What's the difference between either and neither? Can you provide me some examples?


I have an old Acer travelmate 8371 with 1.4ghz processor. Which version of ubuntu, xubuntu or lubuntu would one recommend? Or is this too old a laptop? Thanks

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I have a model about 83mm wide that I am working on, I can't zoom in too close to it because the viewport chops part of the model even though I am not zoomed all the way into it. Does anyone by chance know why it is doing this and is there a setting I can change to fix it?  Thanks

I'm having an odd issue - When I try to zoom in on a detail using my MMB, the "camera" in the 3D view seems to be cutting off the exterior surface of my object and showing me the inside instead. I'd expect this behavior, but only when I was much more zoomed in.  If I zoom out a bit (one click on the scroll wheel) then I can see the exterior as I intend.  Is there any way to adjust this behavior?  Thanks!


This question is from Charles Pinter's A book of Abstract Algebra.  Pinter defines $G$ to be the set which contains all the possible products of $a,b$ and their inverses, in any order, with repetition of factors permited. He calls this $G$ as the group generated by $a,b$.   Since $ab=ba$, then following things are true: $a^{-1}b=ba^{-1}$, $a^{-1}b^{-1}=b^{-1}a^{-1}$ and $b^{-1}a=ab^{-1}$. $(*)$  Let $x_1,x_2 \in G$. Then $x_1,x_2$ are any two possible products of $a,b,a^{-1}$ and $b^{-1}$ (as defined above). The product $x_1 x_2$ is also any possible product. We can rearrange the $a,b,a^{-1},b^{-1}$ in $x_1 x_2$ using the equations $(*)$ in way such that it equals $x_2x_1$. Hence G is abelian.   Does the above even qualify as proof?  What are some alternative ways to prove this?

if G is generated by {a,b} and ab=ba, then prove G is Abelian  All elements of G will be of the form $a^kb^j,\,\, k,j \in \mathbb{Z}^+$   so I need to get $a^kb^j = b^ja^k$


I'm trying to understand: $$ \nabla \cdot \vec{E} =\frac{\rho}{\epsilon_0}.$$  But taking the divergence of the vector field renders $0$  everywhere except where we have a point charge. At that region the E field is infinite. Why is it then equal to $\frac{\rho}{\epsilon_0}$ then?  I know it's possible to understand why, without re-writing the equation?

I just started in Griffith's Introduction to electrodynamics and I stumbled upon the divergence of $\frac{ \hat r}{r^2} \equiv \frac{{\bf r}}{r^3}$, now from the book, Griffiths says:  Now what is the paradox, exactly? Ignoring any physical intuition behind this (point charge at the origin) how are we supposed to believe that the source of $\vec v$ is concentrated at the origin mathematically? Or are we forced to believe that because there was a contradiction with the divergence theorem? Also how would the situation differ if $\vec v$ was the same vector function but not for a point charge? Or is it impossible?


As we all know, math is a minimalistic science. For example we don't put into the definition of differentiable functions that they have to be continuous. So my question is this:       What's the idea of defining such a thing like cosecant  or secant?  I have never seen their use in math or other science.

Examples $$\sec(x) = \dfrac{1}{\cos(x)}$$ $$\cot(x) = \dfrac{1}{\tan(x)}$$  There are many more out there, but why do we need definitions that can be written with just $\sin , \cos ,\tan $ etc. in maths? Why can't they just be written as their expanded form?  Most trigonometric functions can be written with just $\sin \cos$ and $\tan$. Why do we need so many?  Additionally, I mean all definitions.


I'm making a map and I'm trying to give the player an item that can only destroy one type of wool. So far this is the command I have:  /give @p minecraft:brick 1 0 {CanDestroy:"minecraft:wool"}

Is there a way to destroy a certain type of block (ie. Oak wood planks) The command I've got so far is:  /blockdata ~-1 ~ ~ {Items:[{id:wooden_axe,Damage:#,Count:1,tag:{CanDestroy:["minecraft:planks 0"],display:{Name:"Axe"}},Slot:13}]}   I am using the blockdata command to get a wooden axe in the middle of the chest that can only break oak wood planks. With this command the wooden axe shows 'missingno' under it.


I have a dataset with numerical (continuous) and categorical variables. I want to fit an artificial neural network. To do so, I have transformed my categorical variables by using the 1-of-k method, so I now have a bunch of binary variables. I am using the Neuralnet package in R to fit my ANN model.  From a theoretical point of view: is there any problem by mixing the continuous and binary variables in the same model?  1-of-k method is explained below:  The dat set   [1] Sweden  [2] India   becomes      Sweden    India [1]    1       0 [2]    0       1

I am starting to study Neural Network. I want to build a MLP where I will feed it:   3 features which are continuous one feature which is categorical (48 classes)   How can I do this?  Before adding the categorical feature, I was using 'relu' activation function and 'lbfgs' as a solver in MLPRegrssor in sklearn.  I was wondering: how can I integrate this variable into the network? Should I do one-hot encoding? Should I keep relu as activation function or should I try sigmoid, softmax or something like that?


Hello I'm making an app in java!my program loads data from a database and we can make some changes (like deletion, import, etc.) through it. I'm at the point where I want to load the items into a JTable. I'm trying to get the type of the object but I get NullPointerException.   I'm sorry if I'm not understandable, it's just my first time I'm asking here.      @Override public Object getValueAt(int row,int col) {     Object retVal=null;     try{         rs.absolute(row + 1);         switch(col) {             case 0:                 if(rs.getString(c1) == null){                     retVal=String.valueOf(rs.getInt(c1));                     break;                 }                 else{                     retVal=rs.getString(c1);                     break;                 }             case 1:                 if(rs.getString(c2) == null){                     retVal=String.valueOf(rs.getInt(c2));                     break;                 }                 else{                     retVal=rs.getString(c2);                     break;                 }             case 2:                 if(rs.getString(c3) == null){                     retVal=String.valueOf(rs.getInt(c3));                     break;                 }                 else{                     retVal=rs.getString(c3);                     break;                 }             case 3:                 if(rs.getString(c4) == null){                     retVal=String.valueOf(rs.getInt(c4));                     break;                 }                    else{                     retVal=rs.getString(c4);                     break;                 }              case 4:                 if(rs.getString(c5) == null){                     retVal=String.valueOf(rs.getInt(c5));                       break;                 }                 else{                     retVal=rs.getString(c5);                     break;                 }             case 5:                 if(rs.getString(c6) == null){                     retVal=String.valueOf(rs.getInt(c6));                     break;                 }                 else{                     retVal=rs.getString(c6);                     break;                 }         }                } catch(SQLException e) {         System.out.println("getValueAt: " + e.getMessage());     }     return retVal; }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I searched for previous answers, but none solves my question about how to set the space between fixed page header and float text block.       \headsep changes the position of header, rather than the position of text block.   Specifically to my problem: I have a two page document. At the end of the fist page, I defined an item list     ...    \begin{itemize}        \item A         \item B    \end{itemize}    ....   Due to contents reasons, Item A appears at the bottom of the first page, while Item B appears at the top the second page. Suppose the page margins, header and foot positions are all fixed, and contents on the first page is unchangable. How can I adjust (enlarge) the space between page 2 header and Item B? They overlapped, and I want Item 2 to go down a little bit. Thank you so much!

I work with documentclass report and use fancyhdr package for chapters in this way:  \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \fancyhf{} \fancyhead[LO]{\bfseries\nouppercase\rightmark} \fancyhead[RE]{\bfseries\nouppercase\leftmark} \fancyhead[RO]{\bfseries\nouppercase\thepage}  \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt} \addtolength{\headheight}{0.5pt} \fancypagestyle{plain}{ \fancyhead{}  \renewcommand{\headrulewidth}{0pt}  }   I would like to change space between the line and the following text. Can anyone help me?


I've been looking for this book series for a few years. Earth is coming to an end and a select few are selected to go to some distant planet but never make it. Instead, and this is well before they know it, they end up on another much larger spaceship that uses the data from their ship about Earth to create a very weird world using paintings and other data in an attempt to replicate what it thinks their world is like.   Now, I don't remember many specific details, but the biggest one I do remember is that in cryosleep one of women has a baby and this baby is evil and takes control of its mother as a host.   The people go through a bunch of hardships and it's spread through a few books which I never finished so I don't know how it ends, but I would like to finish reading them if possible.

Looking for the name of a book series I read in middle school, 2001-2004 roughly.  All I can remember about it was that there were a handful of teenagers who somehow ended up on an alien planet that they eventually found out to be a ship. They have to fight for survival against multiple different enemies, I think one of the kids could communicate with part of the ship telepathically. Some of the aliens were either blue or I think even transparent. There really isn't too much to work off of, but I figured someone might know what it is.


I have an issue with my PinkBase * ContractType. PinkBase is a class type, and the customer class it is in is a class to store data about the customer.  Here is the code:  class PinkBase;  class Customer {   private;   //all of my private data including:   PinkBase* ContractType;    public:   //all of my public Methods (gets and sets) }  //I then run the constructor for my customer class: Customer::Customer() {     strcpy_s(FirstName, "");     strcpy_s(SecondName, "");     ContractType = NULL; //this is the issue, the class compiles fine, however.     TextsUsed = 0;     Minutes080Used = 0;     MinutesUsed = 0;     DataUsed = 0; }  // the errors come when I start to calculate the bills and use code like this:  double Customer::calculateBill() {   textRange = TextsUsed - ContractType->getTextsAllowed();// this should return the amount of allowed texts }   I get an error (c2227) complaining that my "->" notation's left side SHOULD be pointing to a class/struct. To the best of my knowledge, IT IS.  Errors are as follows:  Error   1   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    66  1   PinkMobile Error   2   error C2227: left of '->getTextsAllowed' must point to class/struct/union/generic type  c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    66  1   PinkMobile Error   3   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    74  1   PinkMobile Error   4   error C2227: left of '->getMinutes080Allowed' must point to class/struct/union/generic type c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    74  1   PinkMobile Error   5   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    82  1   PinkMobile Error   6   error C2227: left of '->getMinutesAllowed' must point to class/struct/union/generic type    c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    82  1   PinkMobile Error   7   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    90  1   PinkMobile Error   8   error C2227: left of '->getDataAllowed' must point to class/struct/union/generic type   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    90  1   PinkMobile

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


In the template of a Springer journal there is no numbering procedure specified for the equations and there is only following lines as an example of an equation:  \begin{equation} a^2+b^2=c^2 \end{equation}   This results in continuous numbering of equations. However, I've seen that in published papers of the same journal, the numbering restarts at each section.   Am I doing something wrong or it is the way it is supposed to be?   If numbering should restart at each section, how is that done?

I would like to reset equation numbering after each section or subsection. Right now I use  \setcounter{equation}{0}   I saw in another page you could also reset it by adding the following line to the preamble.  \numberwithin{equation}{subsection} \renewcommand\theequation{\arabic{equation}}   But this doesn't seem to work. The equation counters just increment across subsections. It's the same across sections if we changed the preamble to   \numberwithin{equation}{section}


In my office setup I have Windows 10 machine with Linux on virtual machine (Turnkey Linux installed on VirtualBox with bridged setup). Let's call it server.   The server runs apache and owncloud.  The server is accessible to the outside world trough public IP and our subdomain (DNS are pointing to public IP). It has Let's encrypt certificate installed.   Everything works fine when I access server from outside. The web-server is accessible both via IP and subdomain (it's serving proper content). However, when I try to access it from LAN, it works only via local IP address. When I try to use public IP or domain, I get error message ERR_EMPTY_RESPONSE in browser. Error log shows that apache is shutting down for some reason (only when accessed from LAN via domain or public IP). It happens both in HTTP and HTTPS settings. [Thu May 27 15:02:10.985765 2021] [mpm_prefork:notice] [pid 2889] AH00169: caught SIGTERM, shutting down [Thu May 27 15:02:11.481503 2021] [mpm_prefork:notice] [pid 3111] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations [Thu May 27 15:02:11.481570 2021] [core:notice] [pid 3111] AH00094: Command line: '/usr/sbin/apache2'  No IPs are blocked. DNS are correctly resolving domain to public IP. Does any one have an idea how to find some answers?

I have a weird port forwarding problem. I tried to open my port 22 to the outside network. I was able to access it as long as I am not inside the LAN. I can access it from my office for example. But from within the LAN, I can access the port using the local ip, but I can't access the port using the external IP. It's as if the router is blocking the loopback. I've check all my router settings, turned off anything firewall/filtering related. Any ideas?


Is the cardinality of an infinite set divided by the cardinality of another infinite set indeterminate? And what if it is divided by itself? Have these results been proven or are they unprovable?   Thank you!

Recently, I was wondering how division of aleph numbers would work. First, I thought about how finite cardinality division would work. What I came up with was that the result of $A/B$ where $A$ and $B$ are both cardinalities, is the number of times that each element of $B$ had to be mapped to an element of $A$ in order to ensure that all elements of $A$ were mapped to.  Extending this to aleph numbers, specifically, I thought that $\aleph_1/\aleph_0$ would be $\aleph_1$. The reasoning behind this is that there are an infinite ($\aleph_1$) number of real numbers between any two natural numbers. As such, that mapping would need to be applied.  Can anyone validate this idea? Is this how division of aleph numbers actually works, or am I totally off base?  Thanks.


I published my web-app 1 week ago and it took 2 days to be indexed. But I made some changes to the HTML to improve the SEO four days ago and the changes have not yet been indexed even with the number of visits increasing. the changes are already on the site, but not on the search console. Is there any way to speed up the process?

How much time does Google Webmaster Tools take to index a page? Analytics took around 24 hours to get info from the site, but since this is indexing, I guess it might take a little bit more than that. I would like to know though, an estimate so that I can start working on redirecting traffic with search engines to my sites so that it gets indexed much better.  EDIT  I just tried indexing with bingbot and the following messaged appeared when I hit on fetch as bingbot:      REDIRECTION LIMIT REACHED   What does that mean?   According to the code it brings back, only a a few parts of the site are returned, then it goes away to God knows where.   Inside my .htaccess file I wrote the following rules:   RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]  <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] </IfModule>   Could it be possible that something of my .htaccess file could be redirecting the bot or something like that?


I have a Macbook Pro laptop, Late 2013 edition, etc. I wish to wipe out OS X and put Ubuntu 14.04 on it, since I need 14.04 for my work.  So, I put Ubuntu 14.04 into an empty USB stick . Everything there seemed to work. Next, I booted from USB. I started my laptop and was given the starting installation screen instructions, e.g. . Again, things seem to work fine and I thought I had Ubuntu 14.04 installed.  Unfortunately, upon restarting . Here's what happens with three other variations of starting the computer:  Attempt 1  When I start without the USB stick there, and click CMD+R I get the globe icon. After a few minutes, I first went to the . Unfortunately, nothing was there.    I then went to Disk Utility.    I am not sure how to interpret this screen. Note that disk0s2, disk0s3, disk0s4 are all grayed out. I think these were created from my Ubuntu installation attempt? (I actually did this installation twice, and in the second time I overrode my old installation, and before the second try, there was only disk0s2, disk0s3 listed.)  But I also see that disk0s2 has 465.57GB of capacity, whereas the disk0s3, disk0s4 have only 17.08 GB for each. Does this mean disk0s2 is where Ubuntu was installed?    There is also the OS X Base System but again I'm not sure how to interpret this and I would prefer OS X be completely wiped out so I can stick with Ubuntu 14.04.    Attempt 2  When I do the same as the previous method, except with the USB stick in there, then I see similar stuff, with the main difference being that Disk Utility now sees the flash disk:    Unfortunately, I still cannot figure out how to actually use Ubuntu 14.04 from this. The "Startup Disk" menu again shows nothing.  Attempt 3  When I start it with my USB stick inserted but don't click CMD and R. Then I get to the GNU GRUB screen where it says "Try Ubuntu without installing", "Install Ubuntu", etc. But Ubuntu is already installed on this laptop.    (Sorry for the blurry quality.)  Does anyone have advice on how I can actually run Ubuntu 14.04 from my installation?

I have installed Ubuntu on my USB drive according to the instructions here   and the installation went successfully and Ubuntu was running on my mac. After I restarted the mac I couldn't be able to boot Ubuntu again from the Startup Manager, When I press (Option ⌥) key I only found the main hard drive that boots me into macOS.  How can I solve this problem and boot into the USB drive again?


Show that $(e_1,e_2,...)$ is not a Schauder basis of $\ell^\infty$ where $e_i$ is the vector in $\mathbb R^\infty$ with 1 in the ith coordinate and 0 elsewhere and $\ell^\infty=\{(x_1,x_2,...)|x_i\in \mathbb R ~~and ~~ \|x\|_\infty<\infty\} ,\|x\|_\infty=\sup\{|x_1|,|x_2|,...\}$  I am wondering how to prove it and why this statement is true. Actually I think it is a basis since for any given vector $(x_1,x_2,...)=x_1e_1+x_2e_2+...$.  I already proved that $(e_1,e_2,...)$ is a Schauder basis of $\ell^p$ where p>1. I just can't see what changes when it comes to the case of $\ell^\infty$

Let $(e_n)$ (where $ e_n $ has a 1 in the $n$-th place and zeros otherwise) be unit  standard vectors of $\ell_\infty$.   Why is $(e_n)$ not a basis for $\ell_\infty$?  Thanks.


Recently I asked a question on Maths SE     after solving this one one I was thinking whether $e^\pi$ is greater or $\pi^e$ ? On calculating exact values upto 7 digits i got these values   $e^{\pi} =23.1406926$................and  $\pi^e =22.4591577$...............  So practically  I proved that $e^\pi$ is greater than $\pi^e$. But without finding the values If we want to find it , I want to know how to find it .... Suppose there are few type of sim like which one is greater from $17^{51}$ or $51^{17}$ , so we use Binomial Theorem , but here I didn't got any idea how to prove it .

How can I  compare (without calculator or similar device) the values of $\pi^e$ and $e^\pi$ ?


Consider the model  fit2 <- glm(y~x+z,data=records,family=binomial)  I have about 42000 records, of which close to 38000 belong to class y=0 and the remaining 4000 belong to class y=1. In order for me to compute the confusion matrix, I need to select a threshold t against which I need to compare the probabilities of the above model. How do I select this t?  Assuming my positive class to be the rare class, the risk of predicting a positive instance as negative is higher than the risk of predicting a negative instance as positive.   Should I use the threshold that maximizes sensitivity alone? or should I use the threshold that maximizes both sensitivity and specificity?

Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables.   My problem is the following: whatever set of predictor variables I use, the classifications never get better than a specificity of 100% and a sensitivity of 0%. However unsatisfactory, this could actually be the best possible result, given the set of candidate predictor variables (from which I can't deviate).   But, I couldn't help but think I could do better, so I noticed that the categories of the dependent variable were quite unevenly balanced, almost 4:1. Could a more balanced subsample improve classifications?


In how many ways can eight distinct balls be distributed to three distinct boxes so that each box must contain at least one ball?   So in order to approach this problem I was first thinking of assigning one ball to each box. Since there are 8 total balls I have 8C3 ways of picking 3 of them. Out of those 3 that I picked they can be arranged in 3 different ways since there are 3 boxes. Now I have to arrange the remaining 5 balls. This can be done in 5x5x5 ways. Then I multipled 3(8C3)(5x5x5) to get my final solution. However my textbook says the solution should be 5796. What is wrong with my approach/what adjustments can be made to make my approach work?

Find the number of ways in distributing $8$ distinct balls into $6$ distinct boxes such that there is at least $1$ ball in each box.  We are well acquainted with the traditional Inclusion-Exclusion principle in solving this and it will come up as $191520$ ways.  I tried in this way:  When we distribute $8$ balls into $6$ boxes we have two possible cases  Case $1.$ There are exactly $2$ boxes with $2$ balls each  Case $2.$ There is exactly $1$ Box with $3$ balls in it.  For Case $1$, the distribution is done by choosing $2$ boxes from $6$ boxes and $2$ balls from $8$ balls and those two balls can be arranged in $2!$ ways. But I require another two balls from remaining $6$ balls to be placed in each of these two boxes which can be done in $\binom{6}{2} \times 2!$ ways. Finally remaining $4$ balls can be distributed in remaining $4$ boxes in $4!$ ways. So total number of ways for Case $1.$ is  $$\binom{6}{2} \times \binom{8}{2} \times 2! \times \binom{6}{2} \times 2! \times 4!=604800$$  For Case $2$, the number of ways is  $$\binom{6}{1} \times \binom{8}{3} \times 5!=40320$$  I am pretty sure the value obtained for Case $2.$ is correct. but I could not find where I went wrong in Case $1.$


I am getting a Exception in thread "main" java.lang.NullPointerException package ques1.rf;  import java.util.Arrays; import java.util.Scanner;  public class Ques1RF {     static Scanner products, itemNum, itemName, itemPrice, itemsQuantity;                  public static void main(String[] args)      {        int itemsCapure=0;                products = new Scanner(System.in);                System.out.println("Enter the amount of products sold");        itemsCapure=products.nextInt();                 String itemsSold[][] = new String [itemsCapure+1][4];                itemsSold[0][0]="Item Number";        itemsSold[0][1]="Name";        itemsSold[0][2]="Price";        itemsSold[0][3]=" Quantity Sold";                 for (int i = 1; i <= itemsCapure; i++)         {             int numItem=0;             String candyName="";              System.out.println("Enter the Item Number of product "+(i));             itemNum = new Scanner(System.in);             numItem=itemNum.nextInt();             itemsSold[i][0]=""+numItem;              System.out.println("Enter the name of Candy "+(i));             candyName=itemName.nextLine();             itemsSold[i][1]=candyName;              System.out.println("Enter the price of the Candy"+(i));             itemPrice = new Scanner(System.in);                        itemsSold[i][2]=""+itemPrice.nextDouble();              System.out.println("Enter the quantity sold?"+(i));             itemsQuantity = new Scanner(System.in);             itemsSold[i][3]=""+itemsQuantity.nextInt();        }                 for (String[] row : itemsSold)          {            System.out.println(Arrays.toString(row));         }     }      }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


When logging in I can choose to use Xubuntu or Xfce. Besides the font (it's a little blurry in Xfce) and Xfce seemingly using a little bit less memory than Xubuntu (which is not an issue) they look exactly the same to me. What's the difference? And which one is faster?

There are , of which  is one, using  as a desktop environment. One can install Xubuntu directly from an ISO or  on Ubuntu.  I am wondering: Is there more difference between installing Xubuntu from ISO and installing XFCE to Ubuntu?  - If so which are these difference?   - Which of the two do you recommend and why?


Looking at the old  to this question, it's clear that the UI was changed as it no longer provides a way to add multiple time zones using the settings page. I'd like to see an indicator of the time in multiple countries instead of just my local time. Is there a way to achieve this on Ubuntu 17.10?

How do I add multiple clocks with different time zones in Ubuntu 19.10.   Solution:   Install clock using sudo apt install gnome-clocks Open Clock app and add required timezones Restart the PC   Important: Do not install using snap or using software installer, this have permission issue to clock and multiple timezones won't appear.  Ref:


Good morning, I know some similar questions have been asked but I don't find a convincing answer in these. Excuse me if I have missed the answer.  My question is:  I have learned that some black holes are formed by contraction of stard ( the exact processus does not matter here ). The problem is that the time dilatation due to gravitation is increasing with the contraction being infinite when all the matter pass inside the horizon.   But for an external observer it will take an infinite amount of time so that the black holes we see today are nearly perfect black holes but not totally since all the matter have not passed the horizon. Am I wrong here?   Furthermore, these black holes could not be totally black since all the matter of the original stars do not pass the horizon. So it would be possible for them to emit a bit of light no?   But this is not what I read so if someone could explain me, I would be grateful to him ;)

One thing I know about black holes is that an object gets closer to the event horizon, gravitation time dilation make it move more slower from an outside perspective, so that it looks like it take an infinite amount of time for the object to reach the event horizon. It seems like a similar process should slow the formation of the black hole itself: As the star collapses, its gravitational time dilation make itself collapse more slowly. This make me wonder, are what astronomers claim to be black holes really black holes, or are they stars that progressively make themselves more similar to one without actually reaching the stage of having an event horizon?  EDIT: Contemplating one answer, I realize the question is ambiguous. What does finite time mean in general relativity. Here is a less ambiguous question: Is there a connected solution of 3+1 dimensional general relativity with one space-like slice not have a singularity, and another space-like slice having one.


$$\lim_{n\to\infty}\left(\sqrt{n^2+n+1}-\left\lfloor\sqrt{n^2+n+1}\right\rfloor\right)\;=\;?\quad(n\in I) \\ \text{where $\lfloor\cdot\rfloor$ is the greatest integer function.}$$    This is what I did:  Since $[x] = x - \{x\}$ we get our limit equal to $$\lim_{n\to\infty}\left\{\sqrt{n^2+n+1}\right\}$$ Moving the limit inside the fractional part function and replacing $n=\frac 1h \; \text {where } h\to0^+$ we get $$\left\{\lim_{h\to0^+} \frac{\sqrt{h^2+h+1}}h\right\}$$  Applying L'Hospital Rule, we get our limit equal to $\left\{\frac 12\right\}$ which is $0$.    The problem:  The answer in the answer key is $\frac12$. So here, the only problem I seem to find in my solution is that $n\in I$ and simply assuming $n = \frac 1h$ doesn't ensure our $n$ to be an integer.  Can anyone provide a way to either correctly assume a new value for $n$ or any alternate way to solve this?

Evaluation of $\displaystyle \lim_{x\rightarrow \infty}\sqrt{x^2+x+1} -\lfloor \sqrt{x^2+x+1 }\rfloor\;,$ where $\lfloor x \rfloor$ represent floor function of $x$.  $\bf{My\; Try}::$   $\bullet\; $If $x\in \mathbb{Z}\;,$ and $x\rightarrow \infty\;,$ Then $x^2<x^2+x+1<x^2+2x+1$  So $x<\sqrt{x^2+x+1}<(x+1)\;,$ So $\lfloor x^2+x+1 \rfloor = x\;,$ bcz it lies between two integers.  So $\displaystyle \lim_{x\rightarrow \infty}\left(\sqrt{x^2+x+1}-x\right) = \lim_{x\rightarrow \infty}\left(\sqrt{x^2+x+1}-x\right)\cdot \frac{\left(\sqrt{x^2+x+1}+x\right)}{\left(\sqrt{x^2+x+1}+x\right)}$   So $\displaystyle \lim_{x\rightarrow \infty} \frac{x+1}{\sqrt{x^2+x+1}+x} = \frac{1}{2}$  $\bullet\; $ If $x\notin \mathbb{Z}$ and $x\rightarrow \infty\;,$ Then How can i solve the above limit in that case,  Help me, Thanks


Hi i have a TextBlock and its Text property is bound to a ViewModel property (Total tickets Price) i want to make a button that helps me reset both the data and the textBlock to 0.  i tried setting the Total to 0 but i encounter a StackOverflowException.  I am learning WPF so please bare my question if it is very novice!   TicketViewModel   public ObservableCollection<TicketModel> TicketsEnVente { get; set; }     public TicketViewModel()     {         TicketsEnVente = new ObservableCollection<TicketModel>();         TicketsEnVente.CollectionChanged += CollectionChanged;     }      private void CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)     {         OnPropertyChanged("Total");     }       public float Total     {         get { return TicketsEnVente.Sum(x =>x.Prix); }         set         {             Total = value;             OnPropertyChanged("Total");         }      }       public event PropertyChangedEventHandler PropertyChanged;     private void OnPropertyChanged(string propertyName)     {         var handler = PropertyChanged;         if (handler != null)         {             handler(this, new PropertyChangedEventArgs(propertyName));         }     }   Xaml  <TextBlock x:Name="Total"  Text="{Binding Total}"/>

I know java and would normally put in getter/setter methods. I am interested in doing it in C# with the following code, but it throws a StackOverflow exception. What am I doing wrong?  Calling Code  c.firstName = "a";   Property Code    public String firstName; {     get     {         return firstName;     }     set     {         firstName = value;     } }


I'm relatively new to programming and here I'm basically making an adjacency list (adjacency graph concept), using and array of linked list.  Scanner newSC = new Scanner(is_not_a_file);         int noOfNodes = newSC.nextInt();         LinkedList<Integer>[] adjlist = new LinkedList[noOfNodes];         int i = 0, m = noOfNodes;         while(i<=8){ //0 to 8. There are 9 lines of data in the text file              //(SmolFile.txt) after the first line (nOfNodes, which is 6).             int temp = newSC.nextInt();             int temp2 = newSC.nextInt();             if (adjlist[temp] == null) {                 adjlist[temp] = new LinkedList<Integer>();             }             adjlist[temp].add(temp2);             i++;         }         System.out.println("Adjency list with length of "+adjlist.length+": ");         for(int x = 0;x<adjlist.length;x++){             System.out.print(x+"-->");             System.out.print(adjlist[x].toString());             System.out.println();          }   I get the error on the "System.out.println(adjlist[x].toString());", which is a NullPointerException. But I have no idea why it should have such an error given the array has a length of 6 elements and the "x" is stopping at x=5  The error output:  0-->[3, 1, 5]  1-->[4, 5]  2-->[4]  3-->[4, 5]  4-->[5]  Exception in thread "main" java.lang.NullPointerException     at cselab1.CSELab1.main(Work42.java:80) 5-->C:\Users\Lenovo\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)  the "5-->" coming in the line of "C:\Users\Lenovo..." is a visual glitch, and not the problem. Its just that when x = 5, I have a null pointer exception.  For reference, the adjacency graph is "Directed" and the textfile contents than I'm reading from is:  6  0 3  0 1  0 5  1 4  1 5  2 4  3 4  3 5  4 5  Here is the adjacency matrix that runs from the same text file, for a visual representation:      0  1  2  3  4  5  0|  0  1  0  1  0  1   1|  0  0  0  0  1  1   2|  0  0  0  0  1  0   3|  0  0  0  0  1  1   4|  0  0  0  0  0  1   5|  0  0  0  0  0  0   I don't know where I'm doing wrong on printing it. Any advice will be heavily appreciated. Thank you.


How do you exclude any & all traffic that isn't from USA & Canada in Google Analytics?

Hi is it possible to exclude traffic from a certain country in google analytics?  If yes, how do I do it?


On my HP computer running Ubuntu 12.04, the brightness and volume increments were much higher than I wanted. On top of that, the notification for the volume was just plain wrong (0% sound did not correspond to 0 on the progress bar). So I decided to override these options with my own commands. I used CompizConfig Settings Manager to add custom commands to the brightness and volume keys (this couldn't be done in the regular settings because these keys were handled by the BIOS, unlike normal function keys). I used xbacklight to control the brightness and amixer to control the volume.  The problem is that the nice notify-send notifications don't show up when I manually set the brightness/volume, so now I have to do that myself too. However, there are two problems with notify-send:   The expire time option  You have to wait until a notification is finished before the next one comes up   Before I overrided the brightness/volume keys, the system was able to send notifications without these two restrictions. Notifications disappeared within 3 seconds (instead of the default 10), and if I double tapped the volume or brightness button, the progress bar would immediately change to the new brightness (instead of showing the old progress bar for 10 seconds and then showing the new one).  Since the system was able to do it, I was wondering how I can achieve the same type of notifications?

Is there a way to change how long the libnotify notifications last? I've googled around for this for months and no still no luck.   I'm actually starting to think that you can't change it. I can't even find anywhere in the API where developers can control this.


Although this is minor issue, it is annoying.  I'm usually logged into my Google Account and my Chrome browser remembers my login. All other Google services remember my chosen language. Only Google Maps, although it remembers my location, it does not remember my preferred language. Instead it displays language of my location.  Another annoying thing is, that if I navigate away from there, it keeps the language.   The trick is to put ?hl=<culture code>, eg. ?hl=pl-PL at the end of URL. Then it already displays in my chosen language (Polish).   Is there any other place, where I can "tell" Maps what language I want to use? I already have my language in Google preferences, and it works for other things (like search, GMail, G+, etc.).

My Chinese is still pretty poor, and my Korean is worse.  But Google Maps recently began showing me everything in Korean or Chinese.  Sometimes even a mixture of both. I can't find anything to change it.  My browser, if I don't catch it, switches me to maps.google.es, but that doesn’t make it Spanish.  I can follow an itinerary with difficulty, but choosing the best one it offers is a major problem.  How can I get it to do a language I am reasonably good at?  (English or Spanish preferred.)


I have posted this question: , with no answers. Now I want to ask a more specific question.  The problem seems to be that the shortcode is not processed by the plugin., as if I replace the shortcode with e.g. [audio src="audioFile.ogg"] it works perfect.  So I'm guessing that I could make it work if the plugin is loaded before. But I don't know how to achieve it (maybe I'm wrong with it).   Any suggestion?  This is the code in functions.php:  add_action( 'init', function() {    ps_register_shortcode_ajax( 'ps_get_slider', '8' );  } );  function ps_register_shortcode_ajax( $callable, $action ) {     if(isset($_POST['href'])) {         $pageId = preg_match( '/^http:\/\/.+\/\?page_id=\d+$/', $_POST['href'] ) ? substr( strrchr( $_POST['href'], '=' ), 1 ) : '8' ;          if ( empty( $pageId ) || $pageId != $action )             return;          call_user_func( $callable );     } }  function ps_get_slider() {     //require_once('../wp-load.php'); Nothing changes      apply_filters('ps_register_shortcode_ajax', 'slider_widget_init');     if ( dynamic_sidebar('Slider') ) : else : endif;     //echo do_shortcode( '[promoslider post_type="news" height="300px" width="70%" numberposts="5" start_on="first" display_title="fancy" display_excerpt="excerpt"  pause_on_hover="pause"]' );     get_template_part( 'home', 'ajax' );     die();  }    The Slider side-bar is loaded just in home and-home-ajax pages (id=8). It works right in home page, but not in home-ajax page.

I have an AJAX callback function inside my functions.php file, which displays posts in a specific category.  add_action( 'wp_ajax_ajaxified_function', 'ajaxified_function' ); add_action( 'wp_ajax_nopriv_ajaxified_function', 'ajaxified_function' ); function ajaxified_function()  {      $post = get_post($_POST['post_id']);     $feat_image = get_the_post_thumbnail($post->ID);     $desc_values = get_post_custom_values("designation",$post->ID);     $title = current(explode(' ', get_the_title($post->ID)));     if( is_array( $desc_values ) )     {      foreach($desc_values as $key => $value );     }        $email_values = get_post_custom_values("email",$post->ID);     if( is_array( $email_values ) )     {         foreach($email_values as $key => $email_value );     }     echo '
'.$feat_image.'
'.$post->post_.'
'.$post->post_title.'

'.$value.'

Email '.$title.'

'.$post->post_content.'
';      echo '';        echo '

';                 echo do_shortcode('[contact-form-7 id="698" title="Meet The Team Email"]');             echo '

';       die();   }   When I use this its just echoing the shortcode instead of showing the contact form.  I am working on local now. I have a demo which just uses just   You can see a Email link in the biography div. On clicking on that link I want to show a colorbox with the contact form.


On my linux laptop, I currently have a 250 gb hd that has a 100gb partition but only 50 gb of it is used.  I would like to change to upgrade my system to a 64 gb SSD.    I read about Clonezilla and the dd command but this apparently clones the whole partition.  This would not work because the partition is 100 gb and my new SSD is only 64 gb.    I also read that I could resize the 100 gb partition to a smaller size than the 64 gb SSD but won't that destroy data that is currently on my hd partition?  And if I can do this without losing data, how to I then copy it to the new 64 gb SSD? (I start a live CD version of Ubuntu, then dd the old disk to an external usb drive.  After that I physically remove the old HD, put in the new SSD and dd the partition back from the USB to the new SSD.  If I do that, won't I have to also create a partition to my external usb hd?)

I recently installed an SSD into my machine. The machine itself is a Lenovo thinkpad W520, and it previously had an internal HDD. I moved the internal HDD into an expansion bay (replacing the CD-ROM), and put the new SSD into the internal bay.   The problem I'm having is that I have my Ubuntu configuration EXACTLY the way I want it - I originally spent many hours configuring it to get it to the way it is now. I'd rather not do this again. But, I'd also like the boot-up gains I would get from the OS being on the SSD.  So, what I'd like to do is clone my Ubuntu partition onto the SSD. The catch is that the standard HDD is significantly bigger than the SSD. And it has a windows partition that I don't need on the SSD (I never use Windows, so if it boots off of the other hard drive, that's fine). The layout of my hard drives are as follows:  /dev/sda (SSD):     Model: ATA M4-CT256M4SSD2 (scsi)     Disk /dev/sda: 256GB     Sector size (logical/physical): 512B/512B     Partition Table: msdos  Number  Start   End    Size   Type     File system  Flags  1      1049kB  147GB  147GB  primary  ext4         boot   /dev/sdb (HDD): Model: ATA ST9500420AS (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos  Number  Start   End     Size    Type      File system     Flags  1      1049kB  1259MB  1258MB  primary   ntfs            boot  2      1259MB  269GB   268GB   primary   ntfs  4      269GB   483GB   214GB   extended  5      269GB   416GB   147GB   logical   ext4  7      416GB   475GB   58.9GB  logical   linux-swap(v1)  6      475GB   483GB   8470MB  logical  3      483GB   500GB   16.8GB  primary   ntfs   What I've tried so far:  1) Resizing the partitions /dev/sdb5 and /dev/sda1 to be the same size. 2) Booting into Ubuntu 11.04 (from /dev/sdb5) and running dd if=/dev/sdb5 of=/dev/sda1 (of course this causes problems with booting, so I had to reinstall grub.. I can get it to boot, but then I have problems with initrd not finding some files ... presumably it can't load some partitions I think).  Now, I think those two steps are the wrong approach, because it will clone /dev/sdb5 EXACTLY - including references in fstab which point to the wrong hard drive. I'm not sure exactly how to rectify this. I could install Ubuntu 11.04 onto the SSD, then try and copy over all of my configurations, but I'm concerned that I'm going to lose something, or that I'm going to overwrite something like fstab that points back to the original hard drive.   Note that currently, I can still boot from the HDD, so it's not imperative that I get this figured out right away, but I do want it to be exactly how it is right now, so that I can maintain my current level of productivity (it's a work laptop).  Suggestions on how I might be able to overcome this difficulty?   Thanks in advance!


i'm new to learning unity and infact game development.Below i have setup a scene to learn about unity and i have encountered a strange problem that doesn't comply with anything that unity has documented.    I am rotating the camera (which is a child of my capsule game object, The object with Gradients highlighted in the photo, Capsule game object is a child of nothing) according to the user mouse movements.Here is the code i have written(Please ignore the commented lines for now)        Vector3 a;             rotateby = Input.GetAxis("Mouse X") * MouseSensitivity;// Rotate by is a float variable             rotation.Set(0, rotateby, 0); // Rotation is a Vector3 i've declared             transform.Rotate(rotation, Space.Self);                                              /*       a = transform.localRotation.eulerAngles;                  a.Set(0, transform.eulerAngles.y, transform.eulerAngles.z);                  transform.eulerAngles = a;                 */                   rotateby = Input.GetAxis("Mouse Y");             if (!invertY) { rotateby = -rotateby; }             rotation.Set(0, 0, rotateby);             transform.Rotate(rotation, Space.Self);           /*       a = transform.localRotation.eulerAngles;                  a.Set(0, transform.eulerAngles.y, transform.eulerAngles.z);                  transform.eulerAngles = a;         */   As you can see from the code when the user moves the mouse across Horizontal axes , i'm only updating the angle of rotation across the capsule's y-axis( rotation.Set(0, rotateby, 0) ) without updating the other two angles(x and y), which rotates it across its y axis.Similarly when the user does vertical mouse movement i'm updating only the z-angle of the capsule( rotation.Set(0, 0, rotateby) ) without updating the other two angles(x and y) again, so now it rotates across it's z-axis.Now it does what is expected, it is infact rotating across its z and y axes but it is also rotating across the x-axis in some cases.I am monitoring the values of the three angles(x y z) from the inspector.Look at how the capsule is titled towards the right , across its x-axis and also from the inspector below(look at the x-angle = -35)    Now the commented lines of code are a solution to this problem of rotating around the x-axis(as when the x-angle changes i'm again setting it to 0).But what i need to know is what have i done wrong in my code i'm never modifying the x-angle then why is it changing to -35??.I have read about local vs GlobalSpaces again and again but i can't find the answer to this.Also what i think is that it's not a Gimbal Lock because as the parenting order that unity uses is  Z-->X-->Y.So Gimbal lock could only occur if i rotate around the X-axis(Which i am not doing in my code) thereby aligning the Y-axis with the Z-axis.Why is this behaviour occuring, why is it rotating around its x-axis .Please Correct me if i am wrong, this is a barrier to my learning process cause i can't continue without clearing my concepts.  Thankyou, much obliged !  UPDATE:  I have trieed changing the 2nd parameter in transform.Rotate() method to Space.World , the problem of rotation about x-axis still happens but in some different mouse movement order.

My goal is to program a camera to point towards the mouse cursor. I attached the following script to the Main Camera.   using UnityEngine; using System.Collections;  public class CameraController : MonoBehaviour {      public float sensitivity;      // Update is called once per frame     void Update () {         transform.Rotate (Input.GetAxis ("Mouse Y") * -1 * sensitivity, Input.GetAxis ("Mouse X") * sensitivity, 0);     } }   I "told" the camera to rotate around the x and y axes. Whenever it does this, the camera tilts sideways. When I checked the rotation of Main Camera, I saw that the z rotation had changed. Why is it rotating around the z axis when I left it at 0?


Here's what I'm trying to do.  I'm trying to make it where I can run any circuit requiring 5 volts off of 7.2 volts. I get 7.2 volts from combining two 3.6v ni-cd phone batteries but for simplicity I show it as one center battery in my circuit.   The source power shows as a battery but I plan to use a wall adapter that outputs either 9VDC or 12VDC, but I figure 9VDC is more efficient.  The battery shown on the right is the output (5V). I could replace it with an LED and resistor in series but I used a battery symbol for simplicity.  Here are my questions:   If I used such a circuit, would I be able to successfully charge a ni-cd battery to max charge without blowing up the battery or is my circuit flawed? If my circuit can be successful, is there a way to modify my circuit so that I can connect a wire to a GPIO pin of an AT89C2051 so that it can detect when a battery is charged/still charging without negatively affecting the charging process.   and    Could I change the variable voltage regulator (LM317) to an 8V fixed voltage regulator to charge the 7.2V battery with a resistor in series? If so, what resistor value?   I'm asking all this because I want to make a low-priced in-circuit battery charger for my microcontroller projects and I don't want to have to remove the battery in order to charge it.    Why this question isn't duplicate  I want to build the charger circuit using discrete components that are commonly available in anyone's junk box. I don't want to have to purchase a special IC and wait weeks for it just in order to charge batteries. Additionally, I'm looking for a modification to this circuit to make my charger more efficient. I adapted parts of it from talkingelectronics.com.

I am doing a project where my electronics runs on 5V which I wanted to power from a 7.2v lipo regulated down to that voltage. I'd really like to include the opportunity to charge the lipo without removing it from the project. What kind of circuit/components do I need to do it properly?  Say, would putting a battery charging ic at the battery's terminals in parallel to my system be enough to achieve what I need?


Is there a closed form solution to the series $\sum ^{\infty }_{n=0}\dfrac {1}{n^{n}}$ ? I ran a python program and tried to use ries to find a closed form with no luck. Thanks

Earlier today, I was talking with my friend about some "cool" infinite series and the value they converge to like the Basel problem, Madhava-Leibniz formula for $\pi/4, \log 2$ and similar alternating series etc.  One series that popped into our discussion was $\sum\limits_{n=1}^{\infty} \frac{1}{n^n}$.  Proving the convergence of this series is trivial but finding the value to which converges has defied me so far. Mathematica says this series converges to $\approx 1.29129$.  I tried Googling about this series and found very little information about this series (which is actually surprising since the series looks cool enough to arise in some context).  We were joking that it should have something to do with $\pi,e,\phi,\gamma$ or at the least it must be a transcendental number :-).  My questions are:   What does this series converge to? Does this series arise in any context and are there interesting trivia to be known about this series?   I am actually slightly puzzled that I have not been able to find much about this series on the Internet. (At least my Google search did not yield any interesting results).


Running Windows 7 on my work PC, how can I check which groups I am a part of on the domain from my PC? I know how to check the local groups using MMC (Microsoft Management Console), just not the groups managed on the domain. I do not have remote access to our domain controller to check this, as we use a proprietary admin tool to access the server and licensing prevents additional installation.

This seems like it would be a simple question, but my Google skills have failed me.  When logged into a domain (as a domain user without any admin rights), how can I determine what groups my user account belongs to?


I have a deployment script located on a build server. Each time I need to generate the build I need to login to the server using ssh and then trigger the deployment script.  I managed to generate the public/private keys so that I need not enter the password to login to the build server. But still I need to login and run the deployment script. Is there a way where to automate the login, executing the deployment script on the build server and then exit from in one local script. How to achieve this

I have to run a local shell script (windows/Linux) on a remote machine. I have SSH configured on both machine A and B. My script is on machine A which will run some of my code on a remote machine, machine B. The local and remote computers can be either Windows or Unix based system. Is there a way to run do this using plink/ssh?


Inspired by   According to the answer, The Lord of the Rings has both half-elves and half-orcs, but no half-dwarves or half-hobbits.  Is there any example in LOTR of half-dwarves? If not, is there any clear reason? For example, is it because some sort of genetic incompatibility, or is it more because no proper dwarf would ever be caught copulating with a stinking tree-hugging elf?

So, I know that there is a race in Lord of the Rings of Peredhil  (half elf). Also, in the Hobbit (film trilogy, not book), there is a romance between a dwarf and an elf.  My question is, how do man/elf or dwarf/elf offspring work? Can they not be born? Are they born infertile because they are from parents of two different species? Are elves, dwarves, and men only different "races" of one single primordial species, and can thus reproduce any number of ways? To my knowledge, this isn't addressed in the books or films.


If $A$ and $B$ are $3 X 3$ real matrices such that $rank (AB) = 1$ ,then rank (BA) _______?  since $rank (AB) =1    |AB|=|A||B|=0$  It implies, atleast |A|=0 or |B|=0  Hence, $rank (BA)$ cannot be 3.  and ,also there is a result   $rank (A) + rank (B) -3\leq rank(AB)\leq min(rank (A) , rank (B) )$ $rank (A) + rank (B) -3\leq rank(BA)\leq min(rank (A) , rank (B) )$ from above it gives rank (BA) is 1.

I was thinking about the problem that says:     If $A$ and $B$ are $3\times 3$ real matrices such that $\operatorname{rank}(AB)=1$, then $\operatorname{rank}(BA)$ can not be which of the following?   (a) $0$   (b) $1$   (c) $2$   (d) $3$.   My attempt: I have chosen suitable $3 \times 3 $ matrices for $A$ and $B$ keeping in mind that $\operatorname{rank}(AB)=1$. Say for example if I take $A$ and $B$ to be  $$A = \begin{pmatrix} 1 &2  &0 \\  0 & 0 &0 \\  0 & 0 &0  \end{pmatrix}$$  and  $$B = \begin{pmatrix} -2 &1  &0 \\  1 & 0 &0 \\  0 & 0 &0  \end{pmatrix}$$ respectively, then I see $\operatorname{rank}(AB) = \operatorname{rank}(BA) = 1$. So, option (b) can not be correct. Do I have to keep choosing the matrices and then observe which of the option holds good. Is this kind of approach right to tackle the problem? I am looking for a direct way (e.g. application to some theorem) which can give me the result. I have also noticed that $AB$ and $BA$ are similar matrices as we see that $A^{-1}(AB)A=BA$. Is this observation going to help me in any way? Thanks in advance for your time.


I think everyone has known - we need to install katoolin to use Kali Linux Tools on Ubuntu. Before did anything I had looked through the internet and also found out these solutions: ,   So here are my steps:  apt-get install git git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin chmod +x  /usr/bin/katoolin sudo katoolin   Then, to add Kali Linux repositories and update them, I selected option 1 from the katoolin Menu  Then, to view the available categories and install all available tools, I selected option 2 from the main menu of katoolin and then pressed 0.   But after that I got this:    What do you want to do ?>    1) Add Kali repositories & Update  2) View Categories 3) Install classicmenu indicator 4) Install Kali menu 5) Help   kat > 2  ************************** All Categories **************************  1) Information Gathering                      8) Exploitation Tools 2) Vulnerability Analysis                     9) Forensics Tools 3) Wireless Attacks                           10) Stress Testing 4) Web Applications                           11) Password Attacks 5) Sniffing & Spoofing                        12) Reverse Engineering 6) Maintaining Access                         13) Hardware Hacking 7) Reporting Tools                            14) Extra  0) All   Select a category or press (0) to install all Kali linux tools .  Furthermore, I got an error in Software Updater - it didn't let me do anything. Ubuntu just hung up. I solved this problem by deleting kali linux repositories in katoolin and then in Software Updater.  Does anyone know how to install Kali Linux tools in Ubuntu 16.04 in a proper way?


When I use verbs with prepositions like  in a subordinate clause like  Examples (the 1st is wrong [genitive construction], the 2nd doesn't make sense but it's about grammar):   "I wonder if I should go visit the people I left so suddenly in that one town the name I never knew of." "I wonder if I should go visit the people I left so suddenly in that one town I never knew of."   Is that correct English ? When can I know that I have to use them close together or separate them ?  (Sorry, I'm not sure about the technical terms. English is not my native language.)  Thanks!

My textbook says this:     Be careful with word order when using phrasal verbs. The   verb and particle cannot be separated:         when it is a three-part phrasal verb   I caught up with Jack further down the road.   if the phrasal verb is used intransitively (without   an object)   All my hard work paid off.   when the particle is a preposition   Sally jumped at the chance of visiting Rome.      I'm confused because I thought this last topic was always true.  When is a phrasal verb not followed by a preposition?  All the phrasal verbs I can remember use a preposition.