The formula defining the Riemann Curvature Tensor $R$ is:  $$R(u,v)w = \nabla_u\nabla_vw-\nabla_v\nabla_uw-\nabla_{[u,v]}w$$  The most common geometric explanation I see for this formula is "parallel transporting $w$ around a small parallelogram defined by $u$ and $v$, and seeing how much $w$ 'twists' around". However, if this is the case, I don't understand what the $\nabla_{[u,v]}w$ term in the formula represents.  When deriving this formula, most sources () assume that $u$ and $v$ are coordinate vector fields, and therefore take $[u,v]=0$, sending the third term in the above formula to zero during the derivation.  What's the geometric meaning of the third term with the lie bracket? Are there any derivations of the Riemann Tensor which include it?  I know when the Lie bracket is non-zero, flow curves don't form a perfect parallelogram, and the Lie bracket vector "closes the gap", in a sense. Is this relevant?    (I also see many sources saying the Riemann tensor is the "commutator" of the covariant derivative. However, this isn't strictly true if we include the 3rd term.)

As we know, in the definition of Riemann curvature tensor, we require  $$ R(u,v)w=\nabla_u\nabla_v w-\nabla_v\nabla_u w-\nabla_{[u,v]}w $$  Could somebody tell me why we need $-\nabla_{[u,v]}w$ appearing in this definition. Is there any geometric meaning in it? Because the geometric meaning of $\nabla_u\nabla_v w-\nabla_v\nabla_u w$ is pretty clear, but for $-\nabla_{[u,v]}w$ I feel not so direct.  In my opinion, because $[u,v]=\cal L_u v$, then $-\nabla_{[u,v]}w=-\nabla_{\cal L_u v}w$. So it looks like that this term is kind of correction of $\nabla_u\nabla_v w-\nabla_v\nabla_u w$, I mean, to neutralize the effects of the vector fields. This is a very naive hunch. Could you give me a more clear answer?


I add this plane, and when I move it, the donut and plane move together.

I created a thick glass bottle and duplicated the interior faces to make a new object to create the liquid inside.   I went in the edit mode, selected the faces I wanted to copy and duplicated them with ShiftD. Then I pressed P to  separate the duplicated faces.   Now I try to make a duplicate of that liquid to make it flow out of the bottle, and I simply need the duplicate of one face of it. So I go to edit mode and do as I did to make the liquid from the bottle faces... but as soon as I'm back to the object mode and I want to move the duplicated faces, every thing moves with it...   I played around and tried things, and while doing so I realized that if I dupe the liquid object in object mode using ShiftD and press 0 to place it where the original is, they move together if I duplicate it and place it somewhere else so that they are separated.   Also if I pick one of the two separated objects and make it intersect with the other one, release my left mouse button to place it there, and then try to move it again, they both move together, but not at the same speed.  I really don't understand what is going on and I'm sure it's really badly explained, so what I'll do is make a screen capture of my Outliner and record the behavior of the objects and upload those to help you understand.


Wup.exe is consuming a lot of CPU power.  I have tried the following things:  To end task but it's useless, it starts again To delete from registry, it also didn't work Uninstalled all useless softwares Reinstalled Chrome  Now, I am fed up, so somebody has any idea, how to remove it completely, I don't want to reinstall Windows please.

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 in a GUI environment in Visual Studio 2012  void dealCard(PictureBox swag, Label swaggy) {     swag.Image = imageListCards->Images[deck[cardCounter].index];     swaggy.Text = deck[cardCounter].name + " of " + deck[cardCounter].suit + ", " + deck[cardCounter].value;      if(cardCounter == 51)         cardCounter = 0;     else         cardCounter++;  }  void dealHand(PictureBox swag, PictureBox swag2, Label swaggy, Label swaggy2) {     dealCard(pictureBoxCard4, labelCard4);     dealCard(pictureBoxCard5, labelCard5); }      pictureBoxCard4, labelCard4 etc are already in the form that I'm working with. It's not compiling the part dealCard(pictureBoxCard4, labelCard4) or the one below

I was reading Ivor Horton's Beginning Visual C++ 2008 and many of its CLR examples have this definition for main:  int main(array<System::String ^> ^args)   I went back, page by page, to the beginning of the book to find the first such instance with an explanation what it really means, but couldn't find one.  Obviously it means the same as the standard int main(int argc, char *argv[]), but I'd like to know when and why that ^ is really used, and why it even exists (does it do something that pointers * and references & cannot represent)?


I have "Vonino onyx QS" tablet and "Monkey test , Time service , Guard service" are always open . How uninstal this?

My Micromax A106 is affected by viruses called  timeService, monkeyTest, androidSystem and some unknown ones.   These viruses started automatically even though I uninstalls, disabled and stopped them. Because of them, performance of mobile is very poor, not responding properly for my action.   I didn't even install any app. My mobile have only 16 apps.   When I switch off and then switch on the mobile, the apps like Privacy guard, 9 apps, cool browser, easy touch (1), easy touch (2), hot video, and some more unwanted apps are installed automatically.   I'm unable to uninstall them. If I uninstall them, they automatically get installed without my knowledge.  SOLUTIONS TRIED:   I tried by installing all the antivirus apps available in Google Play like Norton, Avast, AVG, Kaspersky, Trojan remover and more. Nothing happened. Formatted Internal and External SD cards. Factory reset the device. Enabled the security options to not to install from unknown sources.   I tried most of the solutions available on web. Nothing works for me.   Anyone help me to resolve and relieve me from this issue.


I'm trying to add a specific item on the front of an array but I can't work out how to do this? I know you do it with unshift, but I'm not sure how to do it with a key value array?  var outgoingHeaders = {     "send_client_version": 1,     "send_auth_ticket": 5 };  function sendPacket(packetName, packetData) {     const packetId = outgoingHeaders[packetName];     const packetArray = {'packet_id' : packetId };     // TODO: Add packetArray at the start of packetData     socket.send(JSON.stringify(packetData)); }   Example of calling it...  sendPacket('send_auth_ticket', {     'auth_ticket' : authTicket, });

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


I have $X \sim \text{Poisson}(\theta)$  I need to see how least square estimator of $\theta$ is obtained. Is there anything online showing that?

"Assume independent random variables $Y_i$~$Poisson(λx_i)$. Supposing that $x_i$ are given, fixed constants, obtain the least squares estimator of $λ$ and compute its variance."  This kind of a problem is the first one faced by me. The first things that are coming to my mind are regression equation of the form $log(Y)=a+bx$ and then trying the least square algorithm by minimizing $∑(log(y)-a-bx)^2$. From this I will be getting the least squares estimates of $a,b$ but how do I get $λ$?  As I said, this is the first time I am facing such a question. I know point estimation in terms of MLE and moment-equality. I need help and resources (i.e. more knowledge) about solving this kind of a question. Can you kindly supply me with the answer and the explanation along with maybe links to some pdf's? Google is not helping me. Thanks in advance.  (EDIT:) While I was waiting for any response to this question, I looked up deeper and found that I did not know one information. That is, the least square estimator for a parameter $θ$ is obtained by minimising $∑(Y_i-E(Y_i|x_i,θ))^2$. So I tried to work on this using my new knowledge.  I get the LSE of $λ$ as $\dfrac{∑x_iY_i}{∑(x_i)^2}$. Please tell me if this is correct.  Then the variance of this LSE is $\dfrac{λ∑(x_i)^3}{(∑(x_i)^2)^2}$.   Is this right? Thanks for your time.


What if visit visa refused twice once in 2012 and latest on 12/5/17? Though i was granted visa in 2007 and i stayed more than intended days but within visa  limit .Is there any  chance they would allow me third time if I kill the queries.  How can I assure ECO that I am in Government sector job since 1998 with good position  , a home and a family with 3 children. I provided all relevant docus each time and they raised new question like they don't want me enter uk though sponsor is my brother who is British citizen with excellent job position in one of the reknow institution Refusal letter attached for kind advice

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


I am writing a master's thesis using Latex. I am attracted by pifont package that allows to use personalized lists as the ones this picture shows: My question: is it a good or bad practice to use such symbols as personalized lists ?

In my Master thesis, I used this:  \begin{itemize}[label=\ding{167}] \item Access Windows XM from Ubuntu Server \item List the directories contents of Windows XP \end{itemize}   The output is:  My question: must I avoid the use of  such beautiful things when writing my thesis or is it a normal thing to do ?


I would want know why when I sum 5.9 plus 4.2 in python, it returns 10.100000000000001, i.e., why 0.000000000000001? Any explain will be well received.

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


I have Dell XPS 15 laptop with two RAMs:   Samsung 4GB Corsair 8GB CMSO8GX3M1A1333C9  DDR3-1333/PC3-10600  SO-DIMM Memory Module  204-pin Configuration  9-9-9-24 CAS Latency   Both these running fine for at least an year. Now I want to remove 4GB RAM and buy another 8GB one by Corsair. But this one is a bit different model. The specs are as below:   Corsair 8GB CMSO8GX3M1A1600C11  DDR3-1600/PC3-12800  SO-DIMM Memory Module  204-pin Configuration  9-9-9-24 CAS Latency   So the only difference between Two corsair's is that the one I currently have is DDR3-1333/PC3-10600, while the one which I am planning to buy is DDR3-1600/PC3-12800. Will these work together well in dual channel?

I have a question regarding my laptop's RAM.  I have 2 slots. One is empty; the other one has a Samsung SODIMM 204-pin 2GB DDR3 1333MHz SDRAM CL9, non-ECC, unbuffered module, running at 1066 (!) MHz, because the motherboard supports this maximum frequency, and in single channel mode.  Is it OK for me to add, in the empty slot, a Samsung SODIMM 204-pin 2GB DDR3 1066 MHz SDRAM CL8 (!), non-ECC, unbuffered RAM module?  Will they work fine with both running at 1066 MHz?  And will it be activated in dual channel mode in this case?    Well, the different apps show me that the RAM module is running at 1066 MHz, the guide for my laptop says it supports 1066 MHz DDR3 Dual Channel. And also they show me that it runs in single channel mode. Tried to see the tech specs on an almost similar laptop, with 2 modules identical to this one, they run both at 1066 MHz (even if they are 1333 MHz both), and the Dual Channel mode is activated (Dual Channel Ungaged, supose it's ok).


first of all it is necessary to refer this link.   In this link u can know scott connection and i wonder about V2t and V2m's phase difference.  something like wye-delta and delta-wye connection.  we can originally know wye-delta connection is step-down transformer and second side voltage phase is being to -30 degree. And also delta-wye connection is step-up transformer and second side voltage phase is being to +30 degree.  But the other side, we also can make wye-delta connection is step-up transformer if it get turn ratio like 1:2. So in this case maybe will be become +30 degree in second side voltage.  apply this principle in scott connection, how can work it?  case1) turn ration 1:2 - step up second side voltage's angle +90 degree?  case2) turn ration 2:1 - step down second side voltage's angle -90 degree?  if you have any information or homepage link, can you leave it for me?  As a result in this question's key point is this one.   In this web site, u can see scott connection and then i wonder about this phase shift. V2t and V2m have a phase difference of 90 degrees. And V2t is leading of V2m. But if we give another turn ratio like a step up or step down, is it possible to replace the position like V2t is lagging of V2m?

something like wye-delta and delta-wye connection.  we can originally know wye-delta connection is step-down transformer and second side voltage phase is being to -30 degree. And also delta-wye connection is step-up transformer and second side voltage phase is being to +30 degree.  But the other side, we also can make wye-delta connection is step-up transformer if it get turn ratio like 1:2. So in this case maybe will be become +30 degree in second side voltage.   apply this principle in scott connection, how can work it?   case1) turn ration 1:2 - step up second side voltage's angle +90 degree?  case2) turn ration 2:1 - step down second side voltage's angle -90 degree?  if you have any information or homepage link, can you leave it for me?  thank you so much.


It looks like for whatever reason, 's avatar gets cutoff when browsing with Chrome Version 69.0.3497.100 on Windows 10:    When using Microsoft Edge, the frame around the avatar looks correct, but for whatever reason its slimmer than other profiles.  It happens to   , so I'm guessing it's an issue with their description?  Is this a bug?

Look at the profile page of , who has just "lost" 100k reputation and all their bronze badges, because of this broken design.  Shouldn't the primary usercard be kept intact no matter how other elements grow?  P.S. So many design bugs these days, did SE do a large CSS refactory?  P.P.S  that squeezes the right pane ( to reproduce)


$A \in \mathbb{C}^{n,n}$ is upper triangular and all it's elements on main diagonal  are different. I have to prove that $A$ and $A^T$ are similar. I know that $A$ and $A^T$ have same characteristic polynomial but I don't know how to prove what I have to prove. Any hints?

Possible Duplicate:          How can I prove that a matrix is similar to its transpose?  My approach is: if $A$ is the matrix then $f$ is the associated application from $K^n\rightarrow K^n$. Define $g:K^n\rightarrow (K^n)^*$ by $g(e_i)=e_i^*$, and define $f^T$ to be the transpose application of $f$. I proved that $f^T=gfg^{-1}$. What I don't understand is, what is the matrix associated to $g$, so I can write $A^T=PAP^{-1}$.


I have been trying to solve the following problem:     How many rational sequences exist for $\lim_{n\to 3}$   My intuition:   I believe the set $T$ is countable. It can be shown (in more ways than one) that $\mathbb{Q}$ is a countable set. The set $T$ is a subset of $\mathbb{Q}$ and must therefore be countable.  Is my intuition correct?

I have a problem with this exercise:       How many sequences of rational numbers converging to 1 are there?   I know that the number of all sequences of rational numbers is $\mathfrak{c}$. But here we count sequences converging to 1 only, so the total number is going to be less. But is it going to be $\mathfrak{c}$ still or maybe $\aleph _0$?


Let $T$ be the tent map defined by $$T = \begin{cases} 2x \quad \text{ if } x \le 1/2 \\ 2(1-x) \quad \text{ if } x \ge 1/2\end{cases}$$ I am trying to prove that the periodic points of $T$ are dense in the unit interval, $I = [0,1]$. I know that all asymptotically periodic orbits of $T$ are eventually periodic, given that all fixed points are sources. However, I'm struggling in going about solving this given the tools I have. For context, this problem is problem 3.7 in Alligood's text. I was thinking that showing there are infinitely many periodic orbits is sufficient, but I'm unsure. I'm trying to find a more rigorous proof but am at a loss.

I need to find a period-3 orbit for a tent map defined by $$T(x)=\begin{cases}2x & 0\le x\le0.5 \\[2ex] 2-2x &0.5 < x \le 1 \end{cases}$$  So, what is a fast and efficient way of finding it? I only know how to do it by guessing-and-checking. For example, I picked a random point, $x = \frac{2}{7}$ and found that $$T\left(\frac{2}{7}\right)=\frac{4}{7}\\[4ex]T\left(\frac{4}{7}\right)=\frac{6}{7}\\[4ex]T\left(\frac{6}{7}\right)=\frac{2}{7}$$ which is a period-3 orbit. Is there any better way of finding a period-3 orbit , more specifically, a period-3 point?


I'm planning to go to Israel after Lebanon and Pakistan. But I'm a Vietnamese so I have to apply for a visa in advance. But normally, the visa is attached to my passport. Can I get Israel Visa on a separate paper and not having it attached to my passport so that when I travel to Arab and Muslim countries, there is no proof to be found that I'm going to israel? Thanks!

I am an Indian national living in London. I need to travel to Israel for work. I will need to apply for a visa but I have been told that it will be stamped in my passport. I have read that Israel knows of the problems travellers face in other Arab countries so they issue a paper visa but the embassy in London told me that it will be stamped in. I travel often in Middle East for work and I do not want any issues in the future. Please advise.  Thanks.


Luke's only on-screen lightsaber training was given by Obi-Wan Kenobi during the hyperspace jump to the Alderaan system.  Did Luke receive further lightsaber training prior to the final battle on the Death Star II? If yes, how did he receive these training?  Seeking answers for Disney canon as well as the Legends EU canon.

In the movies, Luke's only lightsaber training that we see is a brief time aboard the Millennium Falcon when Luke squares off against the remote droid. They never get to actual dueling practice before Obi-Wan is killed.  Yoda does not appear to teach Luke any swordfighting techniques, but Luke has at least a rudimentary skill level when facing Vader in The Empire Strikes Back.  In Return of the Jedi, Luke's skill has increased considerably - enough to put up a good fight against Vader, an accomplished fighter.  In Disney canon, where did Luke learn how to fight with a lightsaber?


Are these dichotomies in the context of software engineering?   Precision vs Accuracy (concensus so far: NO, and I agree) Authorization vs Authentication (concensus so far: NO, and I agree) Validation vs Verification (concensus so far: NO, and I agree) Security vs Convenience MAYBE (when making engineering decisions it is important to identify which is more important depending on the problem being solved. Adding Convenience does not necessarily diminish security, but it seldom improves it. But these aren't quite complementary.. I think?) Space vs Time tradeoff YES (as far as I can tell, trade-offs are good examples of dichotomies if they complementary, such as: mind vs body, nature vs nurture, good vs evil, memory heap vs stack. Source:  - I was tempted to include "male vs female," but these days gender is, uh, complicated)

I am having a hard time understanding the definition of dichotomy.   I saw this recent article from a Harvard student: "• Dichotomy means two mutually exclusive alternatives and does not mean difference or discrepancy. Correct: There is a dichotomy between even and odd numbers."  Does that support the Oxford Dictionary's definition?  "Division or contrast between two things that are or are represented as being opposed or entirely different:"  I'm just completely confused, now.


In Gmail I have a filter that automatically moves all the mails from one address to the trash folder. I want to permanently delete them by even skipping that folder.  How can I block all messages from an email address so that I'm not even able to read them?

When choosing to delete an email via a filter, the message is sent to the trash. Is there any way to permanently delete it instead?  I tried deleting it twice with two different filters (the logic is that if you delete a message in the trash, it should be permanently deleted), and, although , it doesn't permanently delete the message.


$$I=\int_0^1\frac{\ln(x+1)}{x^2+1}dx$$ $u=x+1$ so $du=dx$ $$I=\int_1^2\frac{\ln(u)}{(u-1)^2+1}du$$ $v=\ln(u)$ so $du=udv$ $$I=\int_0^{\ln(2)}\frac{ve^v}{(e^v-1)^2+1}dv$$ $e^v-1=\tan(w)$ so $dv=\frac{\sec^2(w)dw}{e^v}$ $$I=\int_0^{\pi/4}vdw=\int_0^{\pi/4}\ln(\tan(w)+1)dw$$ However this does not seem to make the problem any easier, I was thinking about using Feynman's trick, letting: $$I(a)=\int_0^1\frac{\ln(x+1)}{x^a+1}dx$$ but this also seems to complicate things more.  I also thought of using a different new variable: $$I(b)=\int_0^1\frac{\ln(x+1)}{(x+1)^a}dx$$ $$I'(b)=\int_0^1-\frac{\ln^2(x+1)}{(x+1)^a}dx$$ but this had the opposite effect to what I'm looking for (eliminate the $\ln(x+1)$)  EDIT  The hint given is: $$\tan(x\pm y)=\frac{\tan(x)\pm\tan(y)}{1-\mp\tan(x)\tan(y)}$$ and I see the potential link to $\arctan$ but not $\tan$


I saw this on the FB group "Actually good math problems" where one solution was an illegible photo and the other involved intersecting spheres. I have a solution. I'd like to see how many good answers I get before I post it.  If $S$ is a set of $n+2$ points in $\Bbb R^n$ (with $n\in \Bbb N$) with the usual (Cartesian) norm, show there exist $2$ distinct $p,q\in S$ with $\|p-q\|\ne 1.$

The question is quite straight forward, on $\mathbb{R}^2$ the maximum number of equidistant distinct points that can be layed (using the euclidean distance) is 3, forming thus an equilateral triangle. On $\mathbb{R}^3$ the maximum number of points is 4, forming thus a tetrahedon. My question is quite simple, is the maximum number of points that can be layed in $\mathbb{R}^n$ equal to $n+1$?


I'm not sure if "is" or "are" would be correct. I've written what I'm trying to say in 2 different ways; one being option A and the other being option B.  Option A: 'What is the name of the company? The name of the company is....'  Or  Option B: 'What are the name of the company? The name of the company are...'

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


I am trying to display my XQuery code in a latex document as follows:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings}  \title{code} \date{January 2016}  \begin{document}  \maketitle   \begin{lstlisting} for $country in db:open('factbook')//country where $country/@population > 100000000 for $city in $country//city[population > 1000000] group by $name := $country/name[1] count $id return <country id='{ $id }' name='{ $name }'>{ $city/name }</country> \end{lstlisting}  \section{Introduction}  \end{document}   The result I get in the pdf is as follows:  f o r $c oun t ry i n db : open ( ’ f ac tb o o k ’ ) / / c oun t ry where $c oun t ry / @population > 100000000 f o r $ c i t y i n $c oun t ry // c i t y [ p o p ul a ti o n > 1 0 0 0 0 0 0] group by $name := $c oun t ry /name [ 1 ] count $i d r e t u r n <c oun t ry i d =’{ $i d } ’ name=’{ $name }’>{ $ c i t y /name }</country>   But I would like to extract the code as it is from the PDF (including the apostrophes) How do I do this?

If I generate listings code with line numbers and copy the result from the PDF I can not use it again as tex code. First the line numbers are included which they should not, second spaces are included which should not appear.  For example with this code:  \documentclass{scrbook}  \usepackage{listings}  \lstdefinestyle{demostyle}{     basicstyle=\small\ttfamily,     numbers=left,     stepnumber=1,     frame=single, }  \begin{document} \begin{lstlisting}[style=demostyle] \textbf{\textit{foobar}} \textit{\sffamily foobar}} \end{lstlisting} \end{document}   you get this result:  1    \ textbf {\ textit { foobar }} 2    \ textit {\ sffamily   foobar }}   Here I found a solution in .   \lstset{columns=flexible} \lstset{keepspaces=true} \makeatletter \def\lst@outputspace{{\ifx\lst@bkgcolor\empty\color{white}\else\lst@bkgcolor\fi\lst@visiblespace}} \makeatother   However it is not clear to me how reader-safe the solution is. It works for me in PDF-XChange. However, the line numbers are still copyable. Can this be solved as well?  Besides this problem - is it possible to add a link to the PDF which copies the code to the clipboard? The code should not be in a file, it shall be part of the PDF but nevertheless linked with a hyperlink as a file to download.  EDIT (embedfile does not what I expect)  \documentclass{scrbook} \usepackage{embedfile} \usepackage{filecontents}  \begin{filecontents*}{democode} \so{letterspacing}, \\ \ul{underlining},   \\ \st{overstriking}   \\ and \hl{highlighting}.  \end{filecontents*}  \begin{document} Any Text.  \embedfile[]{democode.tex} \embedfilesetup{view} \end{document}   Basically the code compiles but nothing further is visible. From the doc I do not understand how this package shall be used anyway. Especially I do not know how to link or view the embedded files.  EDIT2 (attachfile)  I also tested the package attachfile. It links to a file, but the link is not text, but an annotation which is almost invisible. Tested with:  \textattachfile{democode.tex}{source code}


I found  user at stackoverflow today, but not getting what kind of user is this, is it from StackOverflow or its a fake account which is only made to cast downvotes (12654 downvotes).  The userid in the URL is -1 :)  Is it from Stackoverflow team or its a fake account, if so can't we block such type of users who just made to make downvotes.

I see the  on the user page.  It seems to edit posts sometimes.  What is it? And why has it downvoted over 1800 times? See also:


Suppose that we have a Group $(G,.)$, where . is binary operation on $G$. Prove that for any $a_1,a_2,\cdots, a_n\in G, a_1.a_2.a_3.\cdots a_n$ is independent of how it is bracketed.  My attempt:  First of all for any $k\in \mathbb N,a_1.a_2.a_3.\cdots a_k$ must be defined in a way. Let's define it like this  $a_1.a_2.a_3.\cdots a_k=a_1.(a_2.(a_3.(\cdots a_k))\cdots) \tag 1$ Now we have to prove that howsoever $a_1.a_2.a_3.\cdots a_n$ is bracketed, it evaluates to form $(1)$, that is $a_1.a_2.a_3.\cdots a_n$  has a unique value which can be given by the form $(1)$. For $n=1$, $a_1=a_1.e=e.a_1$, where $e$ is identity of the group is a unique element in $G$ as $.$ being a binary operation associates $a_1=a_1.e$ to a unique element in $G$.  For $n=2, a_1.a_2$ is a unique element in $G$ as $.$ is a binary operation on $G$.  For $n=3$, the hypothesis is true by associativity of Group.  Induction hypothesis: Let our hypothesis be true for $r\le n-1$, that is $a_1.a_2.a_3.\cdots a_{r}$ is independent of how it is bracketed and has a unique value which can be given by the form $(1)$.  Now the problem that I'm facing is lies in breaking $a_1.a_2.a_3.\cdots a_{r+1}$ into two parts. I assumed $1\lt i\lt r$ and considered $a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1}$. As per our definition above,  $a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1}=a_{i+1}.(a_{i+2}.(a_{i+3}.(\cdots (a_r.a_{r+1}))\cdots )$. RHS is composition of two elements of $G$ under binary operation $.$ and hence unique.  Now $a_1.a_2.a_3.\cdots a_{i}=(a_1.a_2.a_3.\cdots a_{i})$  We have  $a_1.a_2.a_3.\cdots a_{i}.(a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1})=a_1.a_2.a_3.\cdots a_{i}.(a_{i+1}.(a_{i+2}.(a_{i+3}.(\cdots (a_r.a_{r+1}))\cdots )$. Now I'm stuck.  Please see bracket on LHS here, I don't understand how to remove it and once this is removed how do I show that finally the product (compositio under binary operation $.$) evaluates to a unique value given by the form $(1)$. Please help. Thanks.

I've always heard this reasoning, and it makes obvious sense, but how do you actually show it for some arbitrary product? Would it be something like this?  $$(a(b(cd)))e=((ab)(cd))e=(((ab)c)d)e=abcde?$$  Do you just say that the grouping of the parentheses now corresponds to just multiplying straight through? Thanks.


I think this is correct:     If $\phi:\mathbb Z^{n}\to\mathbb Z^{k}$ is   a group homomorphism then $n=\operatorname{rank}\operatorname{im}\phi+\operatorname{rank}\ker\phi$.   Here is my attempt at a proof:     $\phi$ may be naturally and uniquely extended to a linear map between   $\mathbb Q$-vector spaces $\widetilde{\phi}:\mathbb Q^{n}\to\mathbb Q^{k}$, where $n=\dim\operatorname{im}\widetilde{\phi}+\dim\ker\widetilde{\phi}$.   My questions:   Is this proof correct? I am concerned with "rank" either not making sense for subgroups or not coinciding with "dimension". Does this appear in books (maybe with different formulation)? I have not found it in some standard textbooks I've looked in.

From linear algebra we know that given vector spaces $V$, $W$ over a field $k$ and a linear map $f\colon V\to W$ we have $$\dim V = \dim \operatorname{im} f + \dim \ker f.$$  Is this still true when we consider free $\mathbb Z$-modules (i.e. free abelian groups) instead of vector spaces? Given a homomorphism $f\colon G\to H$ between free $\mathbb Z$-modules, do we have $$\operatorname{rk}(G) = \operatorname{rk}\operatorname{im} f + \operatorname{rk}\ker f?$$    To provide some context: This question comes up when computing homology groups of free chain complexes, where we need to check if some generating set of a kernel is a basis. Using the rank nullity theorem for free $\mathbb Z$-modules is an appealing way to do this.


I already have a Schengen visa. Initially my plan was to spend the whole period in the country already applied for -Spain-, and my flight itinerary was inbound and outbound from Spain accordingly.  Due to some changes in plan, my point of entry seems to have to change to Germany instead (where I will spend about 5 nights), then I will make my way down to Spain (staying for around 30 days) until I leave back home.  Would that be acceptable, or is it in anyway penalized?  Please note, the question isn't about being penalized for entering from a country other than which issued the Visa, but rather to not-follow/change the itinerary plans already submitted under which the Schengen Visa was initially granted.     I have already emailed the embassy about the change in plans and awaiting the reply (24-48 hours), but it would great to get an insight   from fellow travelers.

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


A 3 digit number is a unique number if no digit is repeating. In how many ways 3 unique numbers can be chosen such that they do not have any digit in common?

How many integers from 1-999 do not have any repeated digits?  The answer is explained in this , but why is the last set 9*9*8? Why not 9*9*9?


I am working on Dirac's paper . He looks for the analogy between a classical transformation between two sets of coordinates and momenta $p_r$, $q_r$ and $P_r$, $Q_r$ ($r = 1,2,\dots n$) and the transformation in quantum theory between two representations, in which the $q$'s are diagonal to another in which the $Q$'s are.  The transformation function is $\langle q|Q\rangle$. Now he takes an operator $\alpha$ with "mixed representatives" $\langle q|\alpha|Q\rangle$, and using the completeness identity  $$\langle q|\alpha|Q\rangle = \int \langle q|\alpha|q^\prime\rangle   \mathrm{d}q^\prime \langle q^\prime|Q\rangle = \int \langle q|Q^\prime\rangle   \mathrm{d}Q^\prime \langle Q^\prime|\alpha|Q\rangle$$  He now sets $\alpha = p_r$, and says that from the first integral we find  $$\langle q|p_r|Q\rangle = -i\hbar \frac{\partial}{\partial q_r} \langle q|Q\rangle$$  I don't understand how is the momentum operator now acting on the whole transformation function. And it is clear that that is what it means, since later on the same paper he sets $\langle q|Q\rangle = \exp(iU/\hbar)$ and from this equation he gets  $$\langle q|p_r|Q\rangle = \frac{\partial U}{\partial q_r} \langle q|Q\rangle$$  Just to clarify, I don't understand how is it that the momentum gets out the bra and ket, and once it does, how is it that it is now operating on the transformation.

I have been going through some problems in Sakurai's Modern QM and at one point have to calculate $\langle \alpha|\hat{p}|\alpha\rangle$ where all we know about the state $|\alpha\rangle$ is that $$\langle x|\alpha\rangle=f(x)$$ for some known function $f$. ($|\alpha\rangle$ is a Gaussian wave packet.) Sakurai says that this is given by:  $$\langle p\rangle = \int\limits_{-\infty}^{+\infty}\langle\alpha|x\rangle\left(-i\hbar\frac{\partial}{\partial x}\right)\langle x|\alpha\rangle dx.$$  I am wondering how we get to this expression. I know that we can express   $$|\alpha\rangle =\int dx|x\rangle\langle x|\alpha\rangle$$  and  $$\langle\alpha|=\int dx\langle\alpha|x\rangle\langle x|,$$   so my thinking is that we have:  $$\langle\alpha|\hat{p}|\alpha\rangle =\iint dx dx'\langle\alpha|x\rangle\langle x|\hat{p}|x'\rangle \langle x'|\alpha\rangle, $$  and if we can 'commute' $|x\rangle$ and $\hat{p}$ this would become: $$\iint dxdx'\langle\alpha |x\rangle\hat{p}\langle x|x'\rangle \langle x'|\alpha\rangle,$$  which is the desired result as $$\langle x|x'\rangle=\delta(x-x').$$ Is this approach valid?  I think my question boils down to: Does the operator $\hat{p}$ act on the basis kets $|x\rangle$ or on their coefficients? In the latter case, if we had some state $|\psi\rangle = |x_0\rangle$ for some position $x_0$, then would we say that for this state $$\langle p\rangle =\langle x_0|\left(-i\hbar\frac{\partial}{\partial x}\right)|x_0\rangle = 0$$ as the single coefficient is $1$ and the derivative of $1$ is $0$?


I was asked to inherit this project at work and re-do the animation as the background and lighting structure shape changed. I was going to use Motion 5 or After effect, but I was curious if I could it in Blender as well. If possible I want to do it in Blender as I would like to take it as a learning opportunity. I am new to Blender, so I am not sure if this is achievable in Blender.  Please see the below link for the existing animation:   My main question is:   how to make neon lighting effect that constantly changes color in Blender? how to combine background image with lighting structure?    I have no idea where to start, tried to find some tutorials but no luck. I would appreciate your help!  Thank you.

I am doing a zooming in and out animation for symbols. And it suppose to have an edge glow, like in the example photo.    Is it possible to achieve without volumetric lighting because the lighting of the symbol should not be affected. I also get a grainy effect for some reason and I want the background to be completely black.  p.s. The symbol is floating in the air and has no objects around it, so emission on the sides wont be visible.


Because, every time they collide, don't they emit radiation? As in, losing energy in the form of this radiation, So eventually, won't they lose all of their kinetic energy? Of course the time taken might be very long

From a related question (), i asked myself this: How do gas molecules constantly bounce off each other without losing energy?  If you drop a ball, it bounces a bunch of times, but the height of each bounce gets shorter and shorter. Because it loses energy in each bounce.  So I don't see how a pressurized gas doesn't lose energy. As I understand it, pressure is a manifestation of lots of molecules bouncing off each other. So over time, shouldn't the pressure drop as the molecules lose speed? and eventually all the molecules will settle in a pile on the floor.  I think another way to phrase this is, how do elastic collisions not lose any energy in the exchange? My understanding of the 2nd law of thermodynamics is that some energy is always "lost" when it's converted from one form to another, or transferred from one object to another. I.e., no transfer/conversion of energy is ever 100% efficient.


An additional 550 units are to be built in other settlements in the West Bank.    Additional 550 units are to be built in other settlements in the West Bank.       Usually, an or a is definitely not required before plural noun. But it seems I should choose option (1) here. Why?

She must now sell two properties she owns or face an extra four years in jail.   As a rule of thumb, fours years do not go with "a" or "an". Why, in this case abover, 'an' is a must? Look at the following example:         The unions says it was expecting at least an extra 800,000 journeys during the Games.   The unions says it was expecting at least extra 800,000 journeys during the Games.      Usually, an or a is definitely not required before plural noun. But it seems I should choose Option (1) here. Why?  Anther example:      As a result of the expansion of the manufacturing plant, production capacity will increase by about 25 percent, and a further 85 permanent full-time jobs will be created in Huntington.


I am porting some legacy code from an ARM926 core to CortexA9.  This code is baremetal and does not include an OS or standard libraries, all custom.  I am having a failure that appears to be related to a race condition that should be prevented by critical sectioning of the code.    I want some feedback on my approach to see if my critical sections may not be correctly implemented for this CPU. I am using GCC. I suspect there is some subtle error.  Also, is there an opensource library that has these types of primitives for ARM (or even a good lightweight spinlock/semephore library)?   #define ARM_INT_KEY_TYPE            unsigned int #define ARM_INT_LOCK(key_)   \ asm volatile(\     "mrs %[key], cpsr\n\t"\     "orr r1, %[key], #0xC0\n\t"\     "msr cpsr_c, r1\n\t" : [key]"=r"(key_) :: "r1", "cc" );  #define ARM_INT_UNLOCK(key_) asm volatile ("MSR cpsr_c,%0" : : "r" (key_))   The code is used as follows:  /* lock interrupts */ ARM_INT_KEY_TYPE key; ARM_INT_LOCK(key);  <access registers, shared globals, etc...>  ARM_INT_UNLOCK(key);   The idea of the "key" is to allow nested critical sections, and these are used at the beginning and end of functions to create reentrant functions.  Thanks!


I want to buy a Sigma 180mm F/2.8 EX DG Macro OS HSM Sigma.  What does EX mean?  What does DG mean?  What does OS mean?  What does HSM mean?

When looking at a lens name, there are a lot acronyms describing its features (often specific to the manufacturer).   Examples, Nikon: Nikon AF-S DX 16-85mm VR f/3.5-5.6G IF-ED Nikon AF-I 600mm f/4D IF-ED Nikon AF-S VR Micro-NIKKOR 105mm f/2.8G IF-ED    Examples, Canon: Canon EF 85mm f1.2L USM Mark II Canon 70-300mm f/4.5-f/5.6 DO IS    Examples, Sigma: Sigma 150mm F2.8 EX APO DG HSM Macro Sigma 70-200mm F2.8 EX DG OS HSM Sigma 50-150mm F2.8 EX DC APO HSM II    How do I decipher these lens codes from different manufacturers?


I am importing string and trying to check if text contains only "a-z", "A-Z", and "0-9".  But I get only input and it doesn't print success when I enter letters and digits  import string text=input("Enter: ") correct = string.ascii_letters + string.digits if text in correct:     print("Success")

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


The problem: The system won't play sound on the internal speaker of the laptop, but only on the headphone. When I put the headphone jack half in and fiddle around with it, then it'll play even on the internal speakers (the system apparently believes, that the headphone are in). What should I do?  The technical data: Laptop modell Medion Erazer X6815  $ sudo aplay -l | egrep ^card card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog] card 0: PCH [HDA Intel PCH], device 1: ALC269VB Digital [ALC269VB Digital] card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]   Ubuntu 12.04 64bit  $ uname -a Linux matatabisama-X6815 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

I guess this question already had the answer here but I can't find it. I'm using 12.04.  Update:  The problem is that I can hear the sound from my laptop's speakers even if I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is  that all was working just a week ago.  I tried to play with pulseaudio and alsamixer settings - no results.


So I noticed a curious thing today. If you want to view a person's chat profile for any reason, and they are in a large number of chat rooms, the following happens:     As you can see, the large list of chat rooms means that the part where you can view their profile is shoved off-screen. Scrolling up/down on the page just moves the window, but doesn't let you actually get to the profile link.   Is there some way around this (short of putting a limit of how many rooms a person can be in, to keep the list bounded)?

So, I wanted to check what low-number rooms are still active so I joined a bunch of rooms in the chat.  This is the result:    Bug also exists when expending rooms on the side:    Since the position is fixed I can't scroll down.  Proposed fix:  Only show the first 10 rooms, and show ... pointing to the user's profile for other rooms.


Beginner question. I've got 3Dconnexion working great and moving all around my model in user perspective. How do I to assign/record those smooth 3dconnexion movements and attach them to my camera so the animation is buttery smooth?

I want to turn the camera to get the view I want, but everytime I turn the camera, I need to go to render window to check if it's the view I want. I turn the view with my mouse cursor, but that does not affect the actual camera view in rendering, can I set the camera view the same as I turn my cursor?


I cant figure out why the fire disappears when I switch to a transparent background with cycles.

I'm creating a simple fireball sprite for my game and I want to render a fire animation.  I would like to get the upper images with transparent background, but when is set the transparency on under Render -> Film one of my frames will look like lower pictures.  You can see the difference of these two images.


I had a suspension for a couple of days for some sock puppet account, it said that my reputation will back to normal after suspension, but is hasn't! It is still 1.

On Stack Overflow, I have a suspension period of 7 days which ends today. But my actual reputation has not been returned to me as one of the moderators said it would. I have a message like this by @Andrew Barber:     Once your suspension period is over, you will be returned to your   correct reputation level, minus the votes from the accounts which have   been deleted. At that time, you are more than welcome to return, and   continue contributing your knowledge, and gaining legitimate   reputation points. Just please keep our rules in mind when you do.      Regards      Andrew Barber, Stack Overflow moderator   Can any moderator here help me or tell me what the rules are of getting back my reputation?  How can I get the attention of a moderator so that they can resolve my problem?


Solving $x^2 \equiv 3 \pmod{2003}$  I think it is like solving $x^2 \equiv 2006 \pmod{2003}$ because $2006 \equiv 3 \pmod{2003}$. The possible value for $x$ are from $1$ to $2002$, so I can just insert $x$ to check until I get the right answers, but that only works for small modulo, this modulo is very big, which is impossible to check from $1$ to $2002$. Any hints to solve this equation? Thanks!

How can I solve $x^2 \equiv 19 \pmod {59}$?  I know that we can just try squaring numbers from 1 to 58 , but this is a very slow method, is not their a quicker one?


In my requirement, i need to get SFDC space utilization and display data into third-part systems. But, after i searching SOAP API, I  didn't found any api description about space utilization. guys, if you know it about this api, would you please let know.   Many thanks

Can we query the info from "Data Management -> Storage Usage" through SOAP API? If so how? Actually, I need the count of records in all the objects in the org, and the size. (Also would like to know how the size [in KBs] is calculated for a record ?)  **Edited**  Am actually looking for something like this :- Like for ex (C# code) :-  String[] SOQLS;  SOQLS[1] = "Select count(id) from accounts";  SOQLS[2] = "Select count(id) from contacts";  QueryResult[] qrarray = binding.query(SOQLS[]);  would I be able do something like this so that i can pull the count of all the objects through api (partner wsdl)?


Ctrl+Alt+f1 through Ctrl+Alt+f6 will pull up terminals and Ctrl+Alt+f7 pulls up the xserver.   But Ctrl+Alt+f8 pulls a blank screen with a blinking cursor.   I can't type anything. Does this serve a purpose?

I accidentally pressed Ctrl+Alt+F12 and my display turned to black... I then had to make a reboot.. What did it do to my system? Also what does Alt+ F8 to F10 do?


I have two layers: 1 point layer and 1 line layer. My goal is to calculate the nearest line to every point and I am doing this with the NNJoin Plugin. Now I want to do the same within a Python script, but I do not know how to access the NNJoin-Algorithm from here.  If this is not possible, are there any alternatives?   I have already read through the duplicate question but it doesn't quite answer my question.

Is there a way to access QGIS plugins in Python?   I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the Road graph plugin. The latter is probably a different can of worms because it is a C++ rather than Python plugin.


Well i installed ubuntu 14.10 with gnome deskotp environment but during installation of opencv. I am having issues with libav as recent ubuntu uses api version 11 and I need api version 9 so i want to downgrade to ubuntu14.04 or better 12.04 is there any way to do so

I just installed a new version of Ubuntu and I want to roll it back to the previous version.  How can I do that? Is that even possible?


Let a be a measurable set $A \subset \mathbb{R}$ with $\mu(A)>0$ we need to proof that $A-A:=\{x-y:x,y\in \mathbb{R}\}$ then there exist a $\delta >0$ such that $(-\delta,\delta)\subset A-A$  I have prooved that $0\in A-A$ and things about sucesions, but I´m stuck. Could you help me please?

Quite a while ago, I heard about a statement in measure theory, that goes as follows:     Let $A \subset \mathbb R^n$ be a Lebesgue-measurable set of positive measure. Then we follow that $A-A = \{ x-y \mid x,y\in A\}$ is a neighborhood of zero, i.e. contains an open ball around zero.   I now got reminded of that statement as I have the homework problem (Kolmogorov, Introductory Real Analysis, p. 268, Problem 5):     Prove that every set of positive measure in the interval $[0,1]$ contains a pair of points whose distance apart is a rational number.   The above statement would obviously prove the homework problem and I would like to prove the more general statement. I think that assuming the opposite and taking a sequence $\{x_n\}$ converging to zero such that none of the elements are contained in $A$, we might be able to define an ascending/descending chain $A_n$ such that the union/intersection is $A$ but the limit of its measures zero. I am in lack of ideas for the definition on those $A_n$.  I am asking specifically not for an answer but a hint on the problem. Especially if my idea turns out to be fruitful for somebody, a notice would be great. Or if another well-known theorem is needed, I surely would want to know. Thank you for your help.


I've been trying to center a div and I can't figure out why it isn't working. I tried other solutions I've seen (here and elsewhere), but none worked.

       story text       <button type="button" id="storynext">Click to continue..</button>

   What CSS code can I use to center this div on any resolution the user happens to be on? Thanks in advance!

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


Do querystring parameters get encrypted in HTTPS when sent with a request?

I am creating a secure web based API that uses HTTPS; however, if I allow the users to configure it (include sending password) using a query string will this also be secure or should I force it to be done via a POST?


While looking for an answer of my problem "How to round numbers with decimals in javascript", I found this SO answer      This can be done using Javascript as follows:  this.value = Math.round((amt*100)/100).toFixed(2));    I try it and notice there is an extra ) at the end producing the following error: SyntaxError: Unexpected token ). So I edit the answer like this:     This can be done using Javascript as follows:  this.value = Math.round((amt*100)/100).toFixed(2);    But I can't save because      Edits must be at least 6 characters; is there something else to   improve in this post?   What I am supposed to do? I do not want to modify the answer. Can't we have a checkbox 'code fix' that bypasses this limitation?

On Stack Overflow, there was a question with an incorrectly formatted list, which lacked a newline before it and thus came out like this: 1. Hello 2. Something else 3. Goodbye  I changed it to the right formatting by inserting a newline:   Hello Something else Goodbye   And I got the "Edits must be at least 6 characters" error message. Is there an OK way to trick this rule?


hey is there anyone who can help me work my printer which is a cannon lbp 6000 under Ubuntu 15.04 (64bit)?

I downloaded Linux CAPT driver V2.60 from Canon and installed both .deb packages, which were listed under the 64bit folder with Ubuntu Software-Center. My Canon printer still won't be recognized. Is there anything else I have to do? My printer is connected over USB.  Ubuntu would make a great replacment for my office, but unfortunately without printer support I will still rely on Windows.


I have a code like this below, but when I want to copy the selected text from textarea by using document.execCommand("copy"); it doesn't copy to clipboard I search a lot and none of found solutions worked for me How can I copy the selected text?  Sample Code:   data.forEach(function( single ) {         result += '^' + fontSize + ' ' + single.sno + '\n'; }); var $temp = $("<textarea></textarea>"); $("body").append($temp); $temp.val(result+"").select(); document.execCommand("copy"); $temp.remove(); alert('copied');

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData("Text", text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using :


This is a problem that wants me to read a double value and determine the fewest number of bills and coin needed to represent the amount.   I'm getting a weird result. I put 5.05 as the moneytotal, and I'm getting 4 pennies when it should be 1 nickel.   I think its a rounding issue but I can't see how to change it when it the problem states to use double.           Scanner scan=new Scanner(System.in);          double moneytotal, ten, five, one, quarters, dimes, nickels,  pennies;           System.out.println("Input number!");         moneytotal=scan.nextDouble();          ten= moneytotal % 10;         System.out.println((moneytotal -ten)/10 + " Ten Dollar          Bills.");          five=ten% 5;         System.out.println(((ten - five)/5) + " Five Dollar Bills.");          one = five % 1;         System.out.println((five - one) + " One Dollar Bills.");          quarters = one % 0.25;         System.out.println(((one - quarters)*4) + " Quarters.");          dimes= quarters % 0.10;         System.out.println(((quarters - dimes)*10) + " Dimes.");          nickels=dimes % 0.05;         System.out.println(((dimes - nickels)*20) + " Nickels.");          pennies=nickels % 0.01;         System.out.println(((nickels - pennies) * 100)+ " Pennies.");   Actual result:     input > 5.05   5 Ten Dollar bills. 0 5 Dollar bills. 0 1 dollar bills. 0 quarters. 0 dimes. 0 nickels. 4 pennies.

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


The text in my lstlisting is running out of screen on the right. I googled, but only found problems with the code box's position on the left side, and white lines. My problem is that it does not know when to move text to the next line. All below shows as a single line, where most is outside the frame on the right. Any help is much appreciated. I compile using pdflatex.  \documentclass{article} \usepackage{listings} % Required for insertion of code \begin{document} \appendix \section{Appendix} \begin{lstlisting} This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right.  \end{lstlisting} \end{document}

Is there a way like wrap the line after at most 60 letters but it should not break inside some commands like listings does?  Example:      \documentclass[a5paper]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{listings}     \usepackage{xcolor}      \lstset{%       language=[LaTeX]TeX,       backgroundcolor=\color{gray!25},       basicstyle=\ttfamily,       breaklines=true,       columns=fullflexible     }      \begin{document}     \begin{lstlisting}     The roadrunner is the fastest running bird \remark{Check this again with a zoologist!}.     \end{lstlisting}     \end{document}   Output:      The roadrunner is the fastest running bird         remark{Check this again with a zoologist!}.   That should not happen! In my eyes this problem is not discussed in .


Error occured in my test file:Methods defined as TestMethod do not support Web service callouts, test skipped.  @isTest(SeeAllData=true)  public class REST_Upsell_Controller_Test {      static testMethod void testCreateNewUpsell(){         Test.startTest();         string orderId = 'a0555000000N5BnAAK';         REST_Upsell_Controller.processUpsell('a0555000000N5BnAAK');         ChargentOrders__ChargentOrder__c order = [SELECT Id, ChargentOrders__Charge_Amount__c, ChargentOrders__Tax__c, ChargentOrders__Subtotal__c FROM ChargentOrders__ChargentOrder__c WHERE Id = :orderId];         order.ChargentOrders__Subtotal__c = 600.66;             update order;             System.assertEquals('a0555000000N5BnAAK',order.Id);      } }

I have written a test class for a trigger on the lead object.  When i run the test class i get the following error:  Methods defined as TestMethod do not support Web service callouts, test skipped  There is an other trigger on lead that has a call to a webservice so i get this error.  I have wrapped the call with:  if (!Test.isRunningTest()) {    // do callout }   But i’m still getting the same error.  Any other way to run correctly the test class?  Thank you in advantage.


This one should be easy, however for some reason I can't find an easy way to solve it. So if f is a $C^1$ function over $\mathbb{R}$ that is decreasing and positive (so converging to some value, let say 0 since it does not really matter). Can we know for sure that $f'$ will be converging to 0? I know this is not true if f is not decreasing or increasing.  Thank for any hint  All the best T.

Let $\,f : \mathbb{R} \rightarrow \mathbb{R}$ be a infinitely differentiable function that is  increasing and bounded. Then is it true that $\lim_{x\to \infty}f'(x)=0$?


I am new to QGIS, and using QGIS 2.0.1.   I'm having a problem when saving as .dxf. I export a building layer (polygons) as a .dxf file However in AutoCAD it turns up as a hatch instead of as a closed polyline which is what I'm looking for. I can of course recreate the boundary in AutoCAD, but I would rather just save the data correctly in QGIS.  Can anyone help?

I am trying to create a DXF from a Polygon Shapefile using ogr2ogr:  ogr2ogr -f DXF parcels.dxf parcels.shp   The problem is that the polygons are written as hatch elements.    How do I specify that ogr2ogr should create LWPOLYLINE elements (Or any other )?  I have tried this from command line and from QGIS 'save as' option with the same result.  I don't remember this being an issue in the past, but seems like it started with GDAL version 1.10.x.


I need to write $4-3i$ in the form of $e^z$ with $z=x+yi$. Important is that it shouldn't be like $z=\ln(\cdot)$. The exercise demands this. The problem is that I do not know how to evade the $\ln()$ form.   I've only managed to do this: $|4-3i|= 5$. $\text{Arg}(4-3i) = \tan^{-1}(-3/4)$.   So $e^x=5  \hspace{10mm} e^y = \tan^{-1}(-3/4)$   $x=\ln(5)      \hspace{10mm}            y=\ln(-3/4)$  Anyone have any idea how to evade the $\ln(\cdot)$?

Express $-1+i$ in exponential form.  My attempt so far  Let $z=-1+i$  $$r=|z|=\sqrt2$$  $$\theta=\tan^{-1}(-1)=-\frac{\pi}{4}$$  Now, this is where I go wrong (I don't know why it's wrong!):  So in exponential form: $-1+i=\sqrt2 e^{-i\pi/4}$  According to the solutions, $\theta=3\pi/4$.  Thanks in advance


I use Interface for declaring Constants as they are public static final. Lot of times I've seen people write a class with public static final constant variables and sometimes I've done the same. Which one is the better practice to implement, the Interface or using a class?  public class MyCodeConstants {     public static final String VALUE_1 = "VALUE1";     public static final String VALUE_2= "VALUE2"; }   or  public interface MyCodeConstants {     public static final String VALUE_1 = "VALUE1";     public static final String VALUE_2= "VALUE2"; }   WHICH ONE IS A BETTER PRACTICE TO USE AND WHY??

I'm looking at some open source Java projects to get into Java and notice a lot of them have some sort of 'constants' interface.  For instance,  has an interface called , and most other core classes implement this interface. The interface is riddled with static members. Is there a reason for this approach, or is this considered bad practice? Why not use enums where it makes sense, or a static class?  I find it strange to use an interface to allow for some sort of pseudo 'global variables'.  public interface PConstants {    // LOTS OF static fields...    static public final int SHINE = 31;    // emissive (by default kept black)   static public final int ER = 32;   static public final int EG = 33;   static public final int EB = 34;    // has this vertex been lit yet   static public final int BEEN_LIT = 35;    static public final int VERTEX_FIELD_COUNT = 36;     // renderers known to processing.core    static final String P2D    = "processing.core.PGraphics2D";   static final String P3D    = "processing.core.PGraphics3D";   static final String JAVA2D = "processing.core.PGraphicsJava2D";   static final String OPENGL = "processing.opengl.PGraphicsOpenGL";   static final String PDF    = "processing.pdf.PGraphicsPDF";   static final String DXF    = "processing.dxf.RawDXF";     // platform IDs for PApplet.platform    static final int OTHER   = 0;   static final int WINDOWS = 1;   static final int MACOSX  = 2;   static final int LINUX   = 3;    static final String[] platformNames = {     "other", "windows", "macosx", "linux"   };    // and on and on  }


it's my first time working on android studio for a college project and i'm getiting an error, when I try to sing up i get an exception, this is the client activity which displays an error: package com.example.myapplication;  import androidx.appcompat.app.AppCompatActivity;  import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.TextView;  public class ClientsList extends AppCompatActivity {     ListView ls;     Helper h=new Helper(ClientsList.this);     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_clients_list);         ls.findViewById(R.id.clientList);          Cursor c=h.getAllClient();         SimpleCursorAdapter adapter=new SimpleCursorAdapter(ClientsList.this,R.layout.client_item,c,                 new String[]{c.getColumnName(1),c.getColumnName(2),                         c.getColumnName(3)},new int[]{R.id.textViewNom,R.id.textViewPrenom,R.id.textViewCIN},1);         ls.setAdapter(adapter);         ls.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 TextView t=view.findViewById(R.id.textViewNom);                 Intent x=new Intent(ClientsList.this,DetailClient.class);                 x.putExtra("nom",t.getText().toString());                 startActivity(x);             }         });     } }  the error i get is : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.ClientsList}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.ListView.findViewById(int)' on a null object reference  on line 21 of my client code which is: ls.findViewById(R.id.clientList);  Any help will be apperciated

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 am trying to make a domino movie, but i got stuck while using this dupliframe feature It keeps on deforming the object! I thought this is used when you just want the object aligned and oriented along the path, but not deformed...    I am using blender version 2.71 did the feature changed during the updates or something??    the highlighted mesh is domino shaped mesh an i am trying to duplicate it along the curve without any deformations as the screenshot shows.

This is the profile of the object I'd like to wrap...    Here is the object's profile after being wrapped...    Is it possible to prevent the distortion? The following post here:  did not affect my object. It seemed very promising, maybe I'm missing something?  Note: I have applied the scale to both my object and curve.


For example: if I take the 3d models and textures from GTA: San Andreas and I modify them making better models and textures, can i use this new art to make a game with a different gameplay and sell it without infringing the game's copyright?

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


I'm aware that the usage of the sandwich icon and side bar for mobile apps is wide-spread and well known by the users (so it seems, anyway), like this one from the Facebook app:    I'm developing an interface for an web online digital menu for restaurants and I believe this concept might come in handy for navigation purposes.  The only thing I'm afraid of is that this may not be clear enough for web users who aren't using a mobile / tablet.  My question is: is this a good choice or is this probably going to pass unnoticed? Maybe, given the lack of other navigation menus, the users will be curious/persistent enough to find it?

"Three horizontal lines" aka "hamburger icon" seems to be becoming a convention for the "main menu" button, especially on mobile sites:    Has anyone done any user testing of this convention, or got any A/B testing results? (i.e. is there an increase in bounce rate compared to using the word "Menu"?)  I did some quick user testing with wireframes featuring this icon for the main menu. 3 out of 6 people got it and used it. The others did not.  One person in particular had a lot of trouble "getting back to the top" (i.e. restarting their navigation from the top level of the site) as they didn't know about the convention, or that the logo would link to the home page.  I guess it will be different for different demographics - users of Facebook on mobile probably know it.  Anyone got any findings they can share?


In an episode of How I Met Your Mother, Marshall addresses the following sentence to Kim Kardashian: "You're right, super hot lady who my wife keeps telling me why you're famous but I keep forgetting."  This sentences sounds technically "incorrect" - usually when there's a relative pronoun like "who", the antecedent is not restated. E.g., we'd say "lady who is famous" rather than "lady who she is famous." But in Marshall's sentence it seems like there's an overabundance of subjects.   I myself probably use similar sentences regularly, simply because in English it seems that there is no good alternative. Is there a better way of stating Marshall's sentence? Any insights into this type of usage?

"Give him a box that everyone knows what it contains."  Is this correct English? It sounds wrong to me.


first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing Connected(no internet access).  I tried to set the IP static. It did not work for DNS 192.168.200.1. No matter what IP I set with this DNS it does not work. Then used the 8.8.8.8 as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.  The problem is specific to this device only. Other devices connected to the same network are perfect.  Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?  I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.

first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing Connected(no internet access).  I tried to set the IP static. It did not work for DNS 192.168.200.1. No matter what IP I set with this DNS it does not work. Then used the 8.8.8.8 as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.  The problem is specific to this device only. Other devices connected to the same network are perfect.  I tried    Restarting the router Resetting network settings Clearing network cache from maintenance mode Rebooting the device with and without airplane mode   My phone is Huawei Y9 2018 with Android 9.  Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?  I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.


I am trying to prove this claim by contradiction. So far I've come up with the following: Assume for the sake of contradiction that GCD(ab,m) is not equal to d whenever the GCD(a,m)=d and GCD(b,m)=1. Let delta=GCD(ab,m), then by the Q.R.T. we have that ab=(delta)(theta) and m=(delta)(beta), where theta and beta are integers. Now, since GCD(a,m)=d, then this implies that a=(d)(sigma) and m=(d)(gamma) where sigma and gamma are integers; and by Bezout's identity, we have that GCD(b,m)=1 implies that bx+my=1 for some integers x and y. I'm stuck here, How do I go about finding a contradiction that GCD(ab,m) must equal d? Since GCD(a,m)=d, we know m=(d)(gamma) so would this be a contradiction to the premise that m=(delta)(beta)? I would appreciate it if you could give me some insight as to what the right approach should be here.

I know it might be too easy for you guys here. I'm practicing some problems in the textbook, but this one really drove me crazy. From $\gcd( a, b ) = 1$, I have $ax + by = 1$, where should I go from here? The extra $ac$ is so annoying. Any hint?    Thanks, Chan


I have a Ubuntu 16.10 64 bit machine.   When I try to do sudo apt-get install cmake, I get the following error:  After this operation, 20.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 cmake amd64 3.5.2-2ubuntu1 [2,779 kB] Err:1 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 cmake amd64 3.5.2-2ubuntu1   Hash Sum mismatch   Hashes of expected file:    - SHA256:28f7a54d94e32027321460169ddf7c66d627e96a275612e371064192b4f1fe75    - SHA1:be57190df55b20ddfc192570cd225436fa60caf0 [weak]    - MD5Sum:454e05c9e6ae224d3416b04f2a876699 [weak]    - Checksum-FileSize:2778872 [weak]   Hashes of received file:    - SHA256:d3981d14c6c2d2d0c42cc7dd00b42264e5e94f7bb2d5908ae3bbcc707e8a881b    - SHA1:9c2716a4ff17005f7a9f4c9b6cf9c370a5a813ef [weak]    - MD5Sum:9118651936fd4509d1dd98b662678ac6 [weak]    - Checksum-FileSize:2778872 [weak]   Last modification reported: Wed, 29 Jun 2016 15:10:18 +0000 Fetched 2,779 kB in 7min 48s (5,926 B/s)                                        E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_3.5.2-2ubuntu1_amd64.deb  Hash Sum mismatch    Hashes of expected file:     - SHA256:28f7a54d94e32027321460169ddf7c66d627e96a275612e371064192b4f1fe75     - SHA1:be57190df55b20ddfc192570cd225436fa60caf0 [weak]     - MD5Sum:454e05c9e6ae224d3416b04f2a876699 [weak]     - Checksum-FileSize:2778872 [weak]    Hashes of received file:     - SHA256:d3981d14c6c2d2d0c42cc7dd00b42264e5e94f7bb2d5908ae3bbcc707e8a881b     - SHA1:9c2716a4ff17005f7a9f4c9b6cf9c370a5a813ef [weak]     - MD5Sum:9118651936fd4509d1dd98b662678ac6 [weak]     - Checksum-FileSize:2778872 [weak]    Last modification reported: Wed, 29 Jun 2016 15:10:18 +0000 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   When I run sudo apt-get update I get the following error.   #lot of lines like the next two lines Get:30 http://us.archive.ubuntu.com/ubuntu yakkety-updates/multiverse amd64 Packages [4,653 B] Get:32 http://us.archive.ubuntu.com/ubuntu yakkety-updates/multiverse Translation-en [2,076 B] Fetched 816 kB in 23min 40s (574 B/s)                                           Reading package lists... Done E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/yakkety-updates/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_yakkety-updates_main_dep11_icons-64x64.tar.gz - open (13: Permission denied) [IP: 91.189.91.26 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/yakkety-updates/universe/dep11/Components-amd64.yml.gz   E: Some index files failed to download. They have been ignored, or old ones used instead.   Can anyone kindly point me to a solution for this problem? Thanks.

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I want to present a multi-line equation, but the align function includes equation numbers, which does not make sense in my case. How can I remove them?  \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \begin{document} \begin{align} u(k) = u(k-1) + K_{R} \cdot (1 + \frac{T_{0}}{2\cdot T_{I}}) \cdot e(k) &- K_{R} \cdot (1+2\cdot \frac{T_{D}}{T_{0}}-\frac{T_{0}}{2\cdot T_{I}}) \cdot e(k-1) \\ & + K_{R}\cdot \frac{T_{D}}{T_{0}} \cdot e(k-2)  \end{align} \end{document}

I wrote the following to print a mathematical equation, but I do not need the number of equation to be appeared:  \documentclass[conference]{IEEEtran}  \usepackage{amsmath}  \begin{document}  \begin{align} f_{n}(\beta,\lambda)&= \lambda(1-\lambda/n)^{n-1} \int_{0} ^{1} g_{n}(\beta,\lambda)d\alpha \\                      & \leq \lambda(1-\lambda/n)^{n-1}\int_{0}^{1} g_{n}(\beta,1)d\alpha \\                      & \leq (1-1/n)^{n-1} \int_{0}^{1} g_{n}(\beta,1)d\alpha = f_{n}(\beta,1) \end{align}  \end{document}


I'm working on a custom rule (jQuery Validation Plugin), which it checks the first & last letter of string (input).  Rule : User can not enter . or _ at first or end of the input.  I have written a function with my pure javascript knowledge. I don't know how to use the function in this jQuery plugin !  My code :      var text = document.getElementById('UserName').value;     var firstChar = text.slice(0, 1);     var lastChar = text.slice(-1);      function validUser() {          if (firstChar === '.' || firstChar === '_' || lastChar === '.' || lastChar === '_') {             return true;         } else {             return false;         }      }   I have seen this link :   But still I don't know how can I use my own code.

How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?


Adding the click event for dynamically created buttons  I have included the id(same for all buttons) for dynamically created buttons and then calling the click funtion based on the id  When I click the button it should display the value of the button in the web page.  var elements = []; for (i in values) {     var timeBut= $('<div class="col-md-2 top-space-20"><input type="button"      id="timebutt" class="btn" value="the value fetching from the back end">      </div>');      elements.push(timeButt);  <script> $("document").ready(function () { $("#timeButt").click(function (){      msg1 = "The free time slot is" + ("#value") }); }) $("#resultDiv1").html(msg1); </script>

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


I saw  answer and I got what he has done, but how do I create a lightmap same as  one?  thanks in advance!  (from what lightmap should be built from (array?) and how do I calculate a lightmap like this?)

I'm making a 2D tile based game in XNA.  Currently my lightning looks like .  How can I get it to look like ?  Instead of each block having its own tint, it has a smooth overlay.  I'm assuming some sort of shader, and to pass the lighting values for the surrounding tiles to the shader, but I'm a beginner with shaders so I'm not sure.  My current lighting calculates the light, and then passes it to a SpriteBatch and draws with the tint parameter. Each tile has a Color that is calculated before draw in my lighting algorithm, which is used for the tint.  Here is an example on how I currently calculate lighting (I do this from left, right, and bottom too, but I got really tired of doing this frame by frame...)    So actually getting and drawing the light so far is no problem!  I have seen countless tutorials on fog of war and using gradient circular overlays to create smooth lightning, but I already have a nice method to assign each tile a lightning value, it just needs to be smoothed between them.   So to review   Calculate Lighting (Done) Draw Tiles (Done, I know I will need to modify it for the shader) Shade tiles (How to pass values and apply "gradient)


I am just starting with TeX so please be tolerant for my lack of knowledge.  I am using fancyhdr for footers and headers and I would like to put the title from \title into \fancyhead{}  How can I do it ?   My code :   %usepackages and all sorts of stuff %...  % ------ % Header/footer \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \fancyhead[C]{\title}     \fancyfoot[C]{\thepage}   % ------ % Clickable URLs (optional) \usepackage{hyperref}  % ------ % Maketitle metadata \title{\vspace{-15mm}%     \fontsize{24pt}{10pt}\selectfont     \textbf{Android}     }    \author{%     \large     \textsc{Patryk} \\[2mm]     \normalsize University\\     \vspace{-9mm}     } \date{\today}    %%%%%%%%%%%%%%%%%%%%%%%% \begin{document}  \maketitle \thispagestyle{fancy}  % ... % ...

I am trying to create a title page of my own.  Is there a way to make use of the \title, \author and \date commands inside the title page?  For instance:  ... \title{Something Cool} \author{Cool Dude} \date{\today}  \begin{document} \begin{titlepage}  The title is \title It was written by \author on \date  \end{titlepage} \end{document}   Basically I just want to know if there is a way to leverage the information stored in \title, \author and \date inside the title page.


One of the properties of a cumulative distribution function $F_{X}(x)$ is that it's right continuous i.e. $$\lim_{x \to a^{+}} F_{X}(x)= F_X(a) \space \forall a \in \mathbb{R}$$.  1)What is the importance of this?  2)Why are CDFs not left continuous?

Could you provide an example that will help to understand why we need this requirement:     CDF should be right continuous.   What if CDF would be left continuous? What kind of problems would we meet with left continuous CDF?


This is slightly different to  and other questions because 1. All my users have a password, and 2. I still get the user selection screen on boot up.   My problem is though, that the last used user is getting automatically (read: invisibly) logged in, in the background. This machine is used mostly for gaming and the automatically logged in user is hijacking Steam which is causing problems for the actual person logging in (when it’s my kids and they don’t know why their games aren’t launching).   I have tried the fixes mentioned in the linked question above, although I’ve only done the registry fix for a single user. Does it need to be done for all users?

Since the recent Fall Creators Update I'm facing a strange behavior while using Windows 10. My brother and I are using different accounts, both protected by password. When I turn on my PC and sign in, an automatic startup program (the ) warns me that it can't start since another user on the same computer is using that app. I thought that it was impossible, my brother's account can't be active if I just turned my PC on.  Actually, if I press the start button and the user icon, it says that my brother is signed in.    Ok, he must have turned the PC off without properly disconnecting the account, I thought, right?  So I let my brother log in his account, sign out, turn the PC off, turn it on again, log in my account. Same problem, his account is already signed in. Without even entering the password.  The same happens if he is the one to login first after booting, he sees me already signed in. If I switch account to mine, I can clearly see that my startup programs are already started and ready.  How is this possible? Windows is booting up accounts without even putting the password in?


Why Intel 8080 CPU chip required three voltages (+5, -5, +12 V) ?  In wikipedia article I found:     The 8080 integrated circuit used non-saturated enhancement load nMOS gates, demanding extra voltages (for the load-gate bias). It was manufactured in a silicon gate process using a minimum feature size of 6 µm.   ... but where can I read more about this?

Why does old PMOS/NMOS logic needed multiple voltages like  +5, -5, and +12 volts? For example, old Intel 8080 processors, old DRAMs, e.t.c...  I'm interested in the causes on the physical/layout level.  What was the purpose of these additional voltages?  Yes, this question is about stuff which was used 35 years ago.


I have an Apple Wireless Mighty Mouse (not the newer Magic Mouse) that I've used for a couple of years.  In recent months, though, the mouse would spontaneously disconnection itself at random, even when the batteries are still full.  Does anyone have experience with this or know how to fix it?  I am running Mac OS X 10.6.8 if that makes a difference.  Thanks!

My Magic Mouse is intermittently losing its connection to my MacBook Pro.   First the mouse becomes unresponsive and a few seconds later, a picture of the mouse appears on the screen wit the words "Connection Lost." Then about 10 seconds later, the connections is "magically" re-established, without any action on my part.   Any ideas on what this could be due to and how I can stop this? I have changed the batteries and they are brand new. My software is also up-to-date unless there is a special bluetooth update that I have to go get somewhere.


As a moderator, I can delete any comment by clicking on the little cross that appears when hovering on the comment. There is no confirmation, but an undelete button appears, which is a nice user interface.  However, this only works from the normal question view, but not from the question dashboard. On the moderator dashboard (in the expanded post view), clicking on the cross brings up a confirmation dialog. This makes comment cleanup harder from the moderator dashboard, which somewhat defeats the purpose.  I suspect that the moderator dashboard wasn't updated when the undelete functionality was added, making confirmation obsolete. Please remove comment deletion confirmation in the moderator dashboard.

Ever since mods gained the ability to undelete comments, deleting them has become easier as the confirmation dialog was removed.  However, this is not the case in the mod queue — I still get a confirmation dialog for each comment I want to delete in the queue under a custom-flagged post (single-comment flags can be deleted just fine). And since this is the place from where I delete comments the most, it can be annoying.  In addition, the "purge comments" button, when invoked from the queue, refreshes it, so I have to scroll back down, remember which post I just purged, and mark the flag as helpful. Usually not a big issue but if there are multiple "obsolete comments" flags, then it can get confusing.  Could the workflow for comment thread moderation from within the queue be improved? Ideally, make comment deletion work like everywhere else on the site, and make the purge button AJAX-based like the comment deletes.


I'm am trying to create a scene in Blender, by adding in another object from a previously created scene that is on a separate .blend file. How can I do this? I have tried to append an object from one .blend to another, but it still won't work. Can I get some help in trying to figure this out?   The other answers to this question haven't worked. Is it a bug? How can I do this?

I have created several designs for a particular project and they are related, but I don't want to have to keep recreating any similar elements, such as shared materials or textures.  How can I use the existing data in a new Blender file?


For example, forgetting to put sudo and having to go back to the beginning of the command.

Is there a way speed up Linux CLI  navigation when I must enter long commands? I simply use arrows right now, and  - if I have a long command it takes some time to get from start of the command to the middle of it.  Is there a way to for example jump to the middle of the command without using arrows?


I use a broadband dongle on my Windows 7. I want to expose my laptop as a wifi hotspot so that i can use internet on my samsung galaxy ace.  I have tried Connectify but my chipset is not supported so it simply make the adhoc network. Tried Bzeek. My phone get connected, but no browsing.  Any solution that you guys have? Please let me know. And lets solve this puzzle.  Thanks.  PS: I am in no mood to root my device.

I use a broadband dongle on my Windows 7. I want to expose my laptop as a wifi hotspot so that i can use internet on my samsung galaxy ace.  I have tried Connectify but my chipset is not supported so it simply make the adhoc network. Tried Bzeek. My phone get connected, but no browsing.  Any solution that you guys have?  PS: I am in no mood to root my device.


I am getting this weight artifacts on some edges while modeling a simple horse - I have tried deleting the the whole patch and redoing it but it keeps coming back - could anyone tell what I am doing wrong?    Here is the Blender file (2.80Beta)

While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem?


As $5$ is a prime number, thus $\sqrt{5}$ is an irrational number.  Now I am thinking about how to prove -  If $r$ is a rational number, then how do we prove $r\sqrt{5}$ is an irrational number?  I was thinking that since $r$ is a rational number, then $r$ can be expressed as the fraction in simplified form that is $r = \frac{a}{b}$ such that $a,b \in \Bbb{Z}$ and $gcd(a,b)=1$. So $r\sqrt{5} = \frac{a\sqrt{5}}{b}$, but How can this guarantee us the irrationality of $r\sqrt{5}$?   ALso let $c =r\sqrt{5}$, then $c^2 = 5r^2$, if we could prove it is a prime number, then its square-root $c$ must be irrational and ths proved but unfortunately we donot have $c^2$ prime as it has more than one factors like $r$ , $5$

Is an irrational number times a rational number always irrational?  If the rational number is zero, then the result will be rational. So can we conclude that in general, we can't decide, and it depends on the rational number?


I have seen related questions such as  but they don't provide the exact answer to my question  From my experiments as well as , printenv and env pretty much show the same set of system variables.  If I set the variables in   /etc/bash.bashrc (supposed to be for system-wide system variables)  SYSTEM_ENVI=1000  ~/.bashrc (supposed to be for user-specific system variables)  USER_ENVI=10    I even logged out and logged in so the /etc/environment takes effect. The following scenario takes place:  $echo $SYSTEM_ENVI //outputs 1000 $echo $USER_ENVI //outputs 10 $CURR_ENVI=1 $env | grep USER_ENVI //nothing shows up, the same if I grepped SYSTEM_ENVI or CURR_ENVI $set | grep USER_ENVI //shows up USER_ENVI assignment, the same if I grepped SYSTEM_ENVI or CURR_ENVI   My questions are:   What system variables do printenv/env print? Should one use set to see all accessible variable (system variable and local variable) instead of printenv or env?   Regarding not duplication justification  As far as I am concern, this question and the marked answer helped me realize the facts that:   Shell variables are not environment variables Assignments in /etc/bash.bashrc or ~/.bashrc don't create environment variables but rather instruct the interactive non-login-shell processes to create and initialize these shell variables on startups.   I think my question is not necessarily different from  but reading the marked answer on that one doesn't satisfy me as much as the answer given in this post.

I read  that the purpose of export in a shell is to make the variable available to sub-processes started from the shell.  However, I have also read  and  that "Processes inherit their environment from their parent (the process which started them)."  If this is the case, why do we need export? What am  I missing?  Are shell variables not part of the environment by default? What is the difference?


I have site named janvhitravels.in. On Google Search when we type janvhi travels it show search result for jahnavi travels.  Google thinks that janvhi is wrong spelling and jahnavi is wrong. So my site not appers in the list.  If I click on "Search instead for janvhi travels" then my site shows up.  Can we stop Google think like that? Is there any solution for this?

Our website is new and the name is similar (only one letter different than another website) completely different type and company though.  searching for xxxxxA works OK in Google and we find relatively good results.  However searching xxxxxA.com finds results for the other website and gives us the following options:  Showing results for xxxxxE.com Search instead for xxxxxA.com (hyperlink when clicked then it is correctly searching for our site)   Questions:   Do we need to contact Google to correct this and if yes how ? if not will it be corrected automatically when the site becomes more popular and what is the process?  How do we make the process quicker?


I have quite a similar input to output code scenario as this one:   I am using AngularJS 1.5.7. Ng directives that my input - ( first ) textarea uses are the same as those shown in Plunkr (ng-list, ng-trim...). My output, unlike the Plunkr example, is displayed inside a ( second ) textarea, but logic is quite similar. $scope.outputValue is an output array which I am converting to string, and implementing 1 RegExp afterwards:    $scope.outputValue  =  $scope.outputValue.toString(); $scope.outputValue  =  $scope.outputValue.replace(/,/g, " | ");   Problem is that the generated string always adds an extra " | " at the end of itself. Often times an output looks like this if the user passes a couple of empty array items inside a first textarea:  var foo = "one | two | three | four | | | | |";   But what I really need to display is this:  var foo = "one | two | three | four";   The only thing that is important is to remove all the "|" that get attached to the end of the string as a replacement of ',' but the output can have "|" values as well, therefore:  var foo = "one| | ||two| | three| | four||";   would also be a valid output.  Similar thing happens with Plunkr example, as it generates empty array items and separated by commas.    Is there any RegExp that might be useful for this problem?  Thanks, Nenad

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


How do  I integrate $sec^{3}x$. I have done this by converting $sec$ to $cos$ and then using $cos^{3}x= (1-sin^{2}x)cosx$ and then putting sinx=t and then using partial fractions. But this is very long method. I want shorter method for this  Thanks

I've tried substitution, replacing $\sec^2x$ with $\tan^2x + 1$, and parts and I just hit dead ends every time... Do you need knowledge of higher-level calculus to solve this?


I've been searching the documentation for this, without much luck so far. In particular I'd like to convert an Id to a 18-char string, and ideally read about that in documentation to verify its the recommended approach.  I've seen various approaches including  String str = '' + someId;   Is this the same as   String str = (String)someId;    I've also seen   String str = String.valueOf(someId);   However when I tried that I got 15-char strings! Why is that?!  What is the recommended approach to always guarantee an 18-char string from an Id?

Is there any function in Apex which could emulate functionality of the  formula function? I'm trying to get 18-char Id variant from the standard one.


What's the the best way of ascertaining if something is a bug in ubuntu, as opposed to a problem I could rectify myself?

I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide?