I am from Pakistan. I had applied for a UK visa for my plab (medical) examination, but my visa was refused due to sudden influx of money in my father's bank statement and secondly as I am unemployed, so my ECO thinks that I would not return back home. Now I am thinking of re-applying with my mother's bank statement and showing some property in my name. Should I re-apply or appeal?

I had applied for a PLAB (Doctors) Visa for the UK to appear in PLAB test. I got refused on the basis of two recent large deposits in the bank statement I provided (my mothers). In reality, these are my own savings which I had deposited in her account to make it more strong. The only objection I got was that I must provide evidence for the source of these deposits. Other than this, I have previously travelled to the UK and USA as well as other parts of the world and my travel history is fine. Can someone please advise on how to proceed and re-apply?


Should awakened mind be considered an action? I need to know because in combat I want to use it to talk to my team without alerting enemies to our presence.

Does the Great Old One warlock's telepathy from the Awakened Mind feature take an action?  It doesn't seem too clear to our group and we have basically ruled it as equivalent to talking.


how do you code a search box like the one in Tags where you enter a tag name and all tags are showing immidiately without you press enter.  can someone link me a script or tutorial for that. is it javascript or jquery? does it involve ajax?  and does it search in the database for tags? or is it searching through a xml file with tags?

What solutions accomplish the same auto-completion that SO uses for entering tags?  There are plugins that can handle one word but I haven't seen any that handle multiple words.


I have very long source text.  I want to create two outputs:    All text Only small pieces of this source text, selected by condition command   MWE (precisely: not working)  \documentclass{article} \usepackage{lipsum} \begin{document} \newif\ifPIECES \PIECEStrue \section{Lorem ipsum dolor} \lipsum[1]  \ifPIECES This is first small piece. I want this piece in two outputs.  When PIECES is folse, I want all source text. \else\fi  \lipsum[2]  \ifPIECES This is second small piece.  \else\fi  \lipsum[3]   \ifPIECES This is third small piece.  \else\fi  \lipsum[4]  \end{document}   How I should define LaTeX command? I am nowbe in programming, as you see.

I have a very long source file. I would like to prepare from this source two PDF files:   PDF contains all of the source file PDF containing only a few, marked earlier parts of the source file.   How I should mark source file and how prepare main file in LateX, to achieve point 2?


I've been getting myself acquainted with the Pollard Rho factorization from this page: .  I think I understood well almost everything that has been said, but one thing I'm confused about - the fact that we use f(x) = x^2 + a mod N to generate pseudo-random numbers for checking.  What is the usefulness of iterating f(x) and it's cycles?

I've recently learned about Pollard's rho factorization algorithm, and the way I understand it, it works by using a pseudorandom sequence of integers $x_{k}$ ranging from $0$ to $n-1$, where $n$ is the number to be factored, to find repetitions in an unknown sequence $y_{k} = x_{k} \bmod p$, where $p$ is an unknown, non-trivial factor of $n$. Such a repetition $y_{i}=y_{j}$ occurs when $x_{i}\equiv x_{j} \bmod p$, which can be detected by checking whether $\gcd(x_{i}-x_{j}, n)\gt 1$.  From what I could find on the Internet, Floyd's cycle detection algorithm or a variant thereof is used to find such repetitions. And the reason for this is what I don't understand.   First, Floyd's algorithm requires that each element in the sequence depends solely on the element before it, which, even if it is the case for $x_{k}$, is not necessarily the case for $y_{k}=x_{k}\bmod p$. For example, assuming we want to factorize $6$, let's take the sequence $5, 3, 2, 4, 1, 0, 5, 3, 2, 4, 1, 0,\ldots$. The cycle period is $5, 3, 2, 4, 1, 0$, where every element is contained only once. However, if we take this sequence $\bmod 2$, we get $1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0,\ldots$. Floyd's algorithm cannot be applied here to find the cycle period $1, 1, 0, 0, 1, 0$. Besides, we are not even interested in a cycle, only in repetitions. Whether we find the congruence $\bmod 2$ between $5$ and $3$, $5$ and $1$, or $4$ and $2$ in the first sequence is irrelevant.   Please correct me if my understanding of Pollard's rho algorithm as described above is wrong. But if it is not, it seems to me that one could just as well try out some random numbers between $2$ and $n-1$ and see if they share a divisor with $n$ other than $1$. So what is the benefit of using a cycle detection method like Floyd's algorithm?  I also found , but it is not answered, and the comment on the question does not really answer the question either.


I've been dealing with the Microsoft SQL Server Agent with regards to scheduling jobs.  I'm trying to find out what the next scheduled run date for a bunch of jobs that were created where the job ids from the msdb sysjobs table(s) joins back to my specific system tables.   We store the job ids that get created in sql server agent in our own system table in order to join back.  I've now discovered the sysjobsactivity table. It depends on a session. I may have a job that had a next scheduled run date in an earlier session, but a NULL value for that field in the latest session.  Restarting sql agent is at least one way to create a new session id. It looks like all existing jobs get an entry associated to the new session but the next scheduled run date doesn't necessarily move forward.  I'm pretty sure if I update a job with criteria that places all occurrences in the past, the next run date will be NULL, which makes sense.  But I do see cases where I have a recurring schedule with no end date, and the next scheduled run is NULL which seems wrong.  It's also strange that some of the values in msdb.dbo.sysjobschedules.next_run_date and  msdb.dbo.sysjobschedules.next_run_time differ from the value stored in msdb.dbo.sysjobactivity.next_scheduled_run_date.  The sysjobschedules tables is saying the next run date is the occurrence after the value claimed as the next run date in the sysjobactivity table.  You'd think those would get calculated the same way and would be equal.  How do I correct this?

At times, I'm seeing some inconsistencies with sql server agent's value in the sysjobschedules.next_run_date and time fields.  I have a web interface that interacts with the sql scheduling system.  I've created a test job that started on March 16th 2011 at 9:45am. I've set it up to happen every 4 weeks on a Wednesday.   From today, this should put a next run date and time on January 18th at 9:45 but the Next Run Date/Time value for my job is saying January 4th.  The values in the job properties look good.  The start date says March 16th 2011. The frequency values are all correct. But it seems SQL is failing to land this occurrence properly.  Here is some relevant info for the job in question from the sp_help_jobschedule proc  freq_type   8 freq_interval   8 freq_subday_type    1 freq_subday_interval    1 freq_relative_interval  0 freq_recurrence_factor  4 active_start_date   20110316 active_end_date 99991231 active_start_time   154500 active_end_time 55959 date_created    2011-12-29 20:37:05.737 schedule_description    Every 4 week(s) on Wednesday at 154500 next_run_date   20120104 next_run_time   154500  if the start date is March 16 2011 at 9:45, it doesn't make sense that the next run date would fall on January 4th 2012 based on the properties of the job.    I guess my question is, how much can I rely on this Next Run Date data?


The bread and butter was tasty     Bread and butter are sold in this shop.      I  have been taught when things are considered separately, we should use 'are' but when they are used collectively, we should use 'is'.  But in the following example, which one is correct?     A. There is tea and juice   B. There are tea and juice

It seems I put a   Bounty assigned by outside party, two lengthy, reference-citing answers, one "-1" (awarded the bounty), one "-2", two others scored "0" and "-2" respectively, the answers suggesting one or the other is correct, 73 comments and no consensus so far - and me, as the asker, lost without a clue what to think of the answers anymore -  this is no longer "Learners' Level" question, so I thought I'd bring it here and hear what the experts have to say.    Original question:  Plurality of verb depending on plurality of list elements  An edit was suggested to my sentence.     There was were an orange, some grapes, two apples and a small pile of cherries on the plate.   In my native language plurality of the verb always follows plurality of the first element on the list. There were an orange,... sounds awkward to me, no matter what follows up. My simple solution was reordering:     There were some grapes, an orange, two apples and a small pile of cherries on the plate.   But that's not the first time I faced this situation and I'd like to know what the rules of grammar say about that - was my editor overzealous or am I trying to copy rules of my language that don't apply in English?    Someone linked a  for negatives, where the situation is more clear-cut ("There is no..."). Same applies to connection with "or" apparently, per accepted answer there. Still, nothing for "and".  It seems there is a consensus that in that if the verb goes after the list, it will be plural.     an orange, some grapes, two apples and a small pile of cherries were on the plate.   There doesn't seem to be clear consensus for:     On the plate { was | were } an orange, some grapes, two apples and a small pile of cherries   Adding more to the confusion is the abbreviated form: "There's"     One last note. In North America, at least, there is a widespread use of using a singular form like "there is" and "there was", without regard for the subject item or items, and this "there is" is often shortened to "there's":           There's three apples on the table!      Could you please clarify this mess?


Two layers, both allegedly WGS84, one vector layer of the Midwestern US, one raster layer with coverage of the entire US. The vector layer renders correctly (coordinates are correct), but the raster layer is way off. I looked at the metadata, and the origin is set to 200,75.5 (lon,lat). The prj.aux file of the raster layer claims it is wgs84, so having my raster layer inherit the CRS of the vector layer, which is also wgs84, doesn't do anything.   How can I get these layers to properly overlay?

I have a world map in correct Longitudes from -180° to 180°. Additionally, I have a shapefile of data from South America, which shows at 290° instead of -70°. How can I reproject it using QGIS?


I have a spinning wheel that rotates and lands on a prize. The problem is, next to that wheel is a red arrow pointing at the winning prize, and that red arrow moves around a bit depending on the size and orientation of the screen because it's a responsive app.  I thought a good solution would be to overlay a still image of an arrow on top of the rotating one. I would imagine that would ensure the arrow is always pointing to the correct prize.  If I were to put the html code for that image directly next to the code for the rotating image, I know it would place it next to/under each other. How can I overlay two images in the same position?  Here is the page in question if that helps at all.    Thank you very much for any direction on how I can learn or do this.

I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).


For example, on one Macbook, I have Mavericks. If I consider the Catalina too new and might not be too stable yet, can I choose and upgrade to either Mojave or High Sierra?  (App store won't show search result for Mojave or High Sierra. I had to use a link and open in Google Chrome to get to either  or .)  The real question is, can I upgrade from one MacOS to another freely? That's because, if there are 7 versions that are commonly used by people (Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojave, Catalina), then upgrading from one version to any one is "7 choose 2" and therefore there are 21 possibilities, and is that supported?

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I recently figured out that you an create villages with lots of doors.  I decided I would try this for myself and made a creative world and built this structure:   I realized that there weren't any villages nearby so I spawned two in.  Then my problem was that only one of the villagers would have the heart particles above it and they wouldn't breed.  So, what am I doing wrong?

I have created the following structure. The intention is to create fairly compact houses for villager breeding.   This is a section of the houses.   I have 2 of these structures, which would resolve to 28 doors and 4 other types of houses meaning I have 32 houses in total. healed healed 3 villager zombies and locked them inside a small house. One of them sometimes shows hearts, but they won't breed.   I am playing vanilla Minecraft 1.8. The doors are spruce.  What is wrong with these houses? Is there something wrong with spruce doors or half slab roofs?


I have Datetimes formated as "16 Apr 2020 02:07 PM CST" and I need to compare it to another datetime just like that to know which date came first.  What I tried to do until now was:  var firstDate = "16 Apr 2020 02:07 PM CST"; var secondDate = "23 Apr 2020 06:07 AM CST";  var diff = Math.abs(firstDate - secondDate);    That or I tried to check if one was greater than the other and got similar results.

Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.


I am reading GTM 9, and I am trying to compute a structure constants of an abstract Lie algebra using Jacobi identity: $[x[yz] + [y[zx]] + [z[xy]] = 0$. Apply it on $[x_l [x_i x_j] + [x_i [x_j x_l]] + [x_j [x_l x_i]] = 0$ and use $[x_i x_j] = \sum_k a_{ij}^k x_k$.   In the book the equation is    My question is why need not we sum by index m? Just k?

I am currently self-studying Lie algebras and want to check my answer to the following question from Erdmann and Wildon:     Let $L$ be a Lie algebra with basis $(x_1, \dots, x_n)$. What condition does the Jacobi identity impose on the structure constants $a_{ij}^k$?   The structure constants are defined as the scalars $a_{ij}^k$ in the underlying field $F$ such that $$[x_i, x_j] = \sum_k a_{ij}^k x_k.$$ I have already established that $a_{ji}^k = - a_{ij}^k$ and that $a_{ii}^k =0$.   Here's my stab at answering the above question:   Let $x_i, x_j, x_k$ be basis elements. Applying the Jacobi identity:   \begin{align} [x_i, [x_j, x_k]] + [x_j, [x_k, x_i]] + [x_k, [x_i, x_j]]&=0 \\ \left[x_i, \sum_l a_{jk}^l x_l \right] + \left[ x_j, \sum_l a_{ki}^l x_l \right] + \left[ x_k, \sum_l a_{ij}^l x_l \right] &= 0 \\ \sum_l a_{jk}^l [ x_i, x_l] + \sum_l a_{ki}^l [ x_j, x_l] + \sum_l a_{ij}^l [ x_k, x_l] &= 0 \\ \sum_l a_{jk}^l \sum_m a_{il}^m x_m + \sum_l a_{ki}^l \sum_m a_{jl}^m x_m + \sum_l a_{ij}^l \sum_m a_{kl}^m x_m &= 0 \\ \sum_l \sum_m \left( a_{jk}^l  a_{il}^m x_m +  a_{ki}^l  a_{jl}^m x_m +  a_{ij}^l  a_{kl}^m x_m \right) &=0 \\ \sum_m x_m \underbrace{\sum_l \left( a_{jk}^l  a_{il}^m  +  a_{ki}^l  a_{jl}^m  +  a_{ij}^l  a_{kl}^m  \right)} &= 0. \end{align} Since $(x_1, \dots, x_n)$ forms a basis, they are linearly independent. Therefore, the indicated term is zero for all $i, j, k, m$.   Questions   Is the above correct? Is there a less computationally intensive approach? Note that I have been particularly explicit to try to catch any possible errors; my scratch work compressed this to three lines.  Is this the strongest result possible? The conditions that $a_{ji}^k = - a_{ij}^k$ and that $a_{ii}^k =0$ are easy to visualize by analogy with skew-symmetric matrices. Is there a similar interpretation of this result?


I need to evaluate :  $\lim_{x\to 0} \frac{1-\cos(x)}{x^2}$  In terms of the number:  $\alpha = \lim_{x\to0} \frac{\sin(x)}{x}$  What I am thinking is that $\cos(x) = \frac{\sin(2x)}{2\sin(x)}$  But I don't know if this is the correct beginning  One example (I am doing this just to show that I can't derivate) I already did was:  $\lim_{x\to0} \frac{\sin(ax)}{\sin(bx)} =\lim_{x\to0} \frac{\sin(ax)\cdot bx\cdot a}{ax\cdot \sin(bx)\cdot b} = \alpha \cdot \frac{1}{\alpha}\cdot\frac{a}{b} = \frac{a}{b}$

$$\lim _{x \to 0}{1-\cos x\over x^2}={2\sin^2\left(\frac{x}{2}\right)\over x^2}={\frac{2}{x^2}\cdot {\sin^2\left(\frac{x}{2}\right)\over \left(\frac{x}{2}\right)^2}}\cdot\left(\frac{x}{2}\right)^2$$  now $$\lim_{x \to 0}{\sin^2\left(\frac{x}{2}\right)\over \left(\frac{x}{2}\right)^2}=\left({\sin\left(\frac{x}{2}\right)\over \left(\frac{x}{2}\right)}\right)^2=1^2$$  So we have $$\frac{2}{x^2}\cdot \left(\frac{x}{2}\right)^2=\frac{2}{x^2}\cdot \left(\frac{x^2}{4}\right)=\frac{1}{2}$$  Are the moves right?


I am trying to add a bibliograph to my document but I keep encountering the same error. My mwe is:  \documentclass{article} \usepackage{biblatex} \addbibresource{refs.bib} \begin{document} \cite{Lettenmeier.2017} \end{document}   And I get the following error:  ! LaTeX Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.3776   australian,newzealand}  ?   I checked the biblatex.sty and the lite it refers to is:  \DeclareCaseLangs{%   american,british,canadian,   english,USenglish,UKenglish,   australian,newzealand}   I already tried adding the babel package:  \usepackage[american]{babel}   But I get the same error. Does anyone have a clue what I might be doing wrong?  My refs.bib file looks like:  @article{Lettenmeier.2017,  author = {Lettenmeier, P. and Kolb, S. and Sata, N. and Fallisch, A. and Zielke, L. and Thiele, S. and Gago, A. S. and Friedrich, K. A.},  year = {2017},  title = {{Comprehensive investigation of novel pore-graded gas diffusion layers for high-performance and cost-effective proton exchange membrane electrolyzers}},  pages = {2521--2533},  volume = {10},  number = {12},  issn = {1754-5692},  journal = {{Energy {\&} Environmental Science}},  doi = {\url{10.1039/C7EE01240C}} }   Cheers.

As late as last week my setup for biblatex worked fine. Going back to the same project today not even a minimal file compiles:  \documentclass{article}   \usepackage{biblatex} %\addbibresource{biblatex-examples.bib}   \begin{document}  test%foo\nocite{*}    %\printbibliography  \end{document}   but breaks off with   /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: LaTeX  Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.3776   australian,newzealand} ?  /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: Math f ormula deleted: Insufficient symbol fonts. \expandafter ->american|  l.3776   australian,newzealand}   And keeps repeating the last one until    (That makes 100 errors; please try again.)   when I ignore it.  Files without biblatex work as expected.  Using tlmgr to go my two backup versions of biblatex back in time to 1st Jan I still get the same errors.  Could this be another update from the last week or so that causes this?  If I swich back to TL 16 things work as expected. (For my work I need TL 17 because of packages.)


New to using CLI OS.  So I tried changing the owner of a particular folder from root to my user so I can avoid errors of access denied whenever I would publish my dotnet app.  Basically, this is the folder structure.  myAppFolder  |  ->myApp    |    ->All forders that make the app(folders, .cs, .sln and the likes)    ->publish    ->README.md   When I use ls -lart on myAppFolder it says that the owner is the root. Though when I go inside and ls -lart in it some files/folders' owner is my user already. I figured that if I use 'sudo chown -R user myAppFolder' it should also change the owner of all it's subfolders because of the recursive flag. (Correct me if I'm wrong.) But when I did execute the command the ownership did not change to my user. Is there something I'm missing here? Is my understanding of the used command wrong?  EDIT: The referenced  is where I actually got the command I used, I just edited it to 'sudo chown -R user myAppFolder' because I was already in the folder that contained myAppfolder which is /apps.

I would like the user to have full rights on this folder (as well as all sub-directories and files in it):  ~/.blabla   currently owned by root.  I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders.


I ran tasksel, then deselected Xubuntu desktop and selected Vanilla GNOME and now observing it is deleting a lot of packages, which look irrelevant, like samba, pulse audio and etc. Why?

I tried to remove samba-server with this command (sudo tasksel remove samba-server) and every app even the system apps are deleted and now xubuntu is stuck at boot, just showing loading. What should I do?  Did tasksel deleted my files too?


I am a US citizen and cant get my US passport just yet but have a British passport.  I need to leave the US what options do I have for getting back into the US

Suppose I am a naturalized citizen of the US, but also a citizen of another country, "XYZ". I then boarded a plane and left the US to another country (maybe not necessarily to XYZ), without first getting a US passport, but using my old, but valid XYZ passport.   In this case what would be the best documents to have for me to gain entry back into the US as a US Citizen without a passport?  Would I need to contact the US Embassy for help in order to be able return?  If the airline does let me aboard to return to the US, even without the US passport, what are the best documents could I show at the border to prove I am a US citizen but that I just don't have a passport, for whatever reason?


I have a problem I install playonlinux from the ubuntu software center and there is a new update: 4.2.1; i don't know how to get this new update, im new to ubuntu and I don't know why to get an update has to be this difficult.  please help  I saw that there is office 2010 and I will like to get it...

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


(I know I'm sounding stupid) When I move my selection along any axis it snaps while moving along. I don't know why this is happening as if I try it in a nest file, everything's fine. I really am confused :')

My cursor is moving by every selection by large increments!  Normally when I use Blender, I am able to select and move objects to any coordinate. Now, all of the sudden, when I select an object or mesh the selection moves by an inch or so in each direction.  How do I reset it to normal?


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

i'm wondering if anyone can help me with proving the fact that for BM in the interval $(a,b)$ and with $$H_y = \inf\{t>0: X_t = y\},$$ the following is true: $$\mathbb{E}^x[\min(H_a, H_b)] = (x-a)(b-x).$$   And the second question here is how to deduce that the speed measure for BM is actually the Lebesgue measure?  Thanks, Anna


I am an Economics undergraduate who was reading through a textbook on statistical theory. On one of the questions, I had to find the Variance of $X$ the joint probability distribution, $f(x,y)=\frac{1}{4^{x+y}}$, where $x$ and $y$ were discrete random variables $x=0,1,2,...$ and $y=0,1,2,...$ When calculating $Var(x)$, and trying to find $E(x^2)$ I got stuck at the summation for $\frac{X^2}{4^X}$ for $0\le X$. Previously in the part when I calculated $E(x)$, I was able to sum $\frac{X}{4^X}$ using an AGP. However, when looking at the variance portion, I'm not sure what kind of series this is, and what method I can use to derive an answer. Any help would be greatly appreciated !!

I'd like to find out why  \begin{align} \sum_{n=0}^{\infty} \frac{n^2}{2^n} = 6 \end{align}  I tried to rewrite it into a geometric series  \begin{align} \sum_{n=0}^{\infty} \frac{n^2}{2^n} = \sum_{n=0}^{\infty} \Big(\frac{1}{2}\Big)^nn^2 \end{align}  But I don't know what to do with the $n^2$.


Within the above image, I would like to ideally hide the polygons outside the current atlas feature (some to the east and also to the west - these are part of other atlas features)  They are currently masked which helps, but it would better if they could be hidden entirely.  I still want the MasterMap to show through, so I cannot just increase the strength of the mask (unless I can do that and exclude the MasterMap from the mask somehow?).  This is being created within QGIS 2.18.17 in a map composer.

In QGIS 2.14 is there any way of just showing features within the atlas from another layer. In the image the atlas feature is the red "Estates" layer and the blue buildings are the "buildings" layer.  I have created over 30 plans showing different estates. I wish to only see the buildings that are within the estates boundary and none of the others. Is this possible?


I am a second-year CS PhD pre-candidate in a top PhD program. During my first year, I published a first-author paper at the best conference in my area, which I know is a big accomplishment. My advisor is famous in his area and also very caring and supportive, and my labmates are great too.  The thing is my second project didn't go very well, which caused us to change the entire story right before the deadline. I worked more than 70 hours per week and gave all I could, but there was not enough time to get everything we need in a good shape, and my advisor was frustrated with the progress and pointed out problems that I hadn't seen everywhere. I continued to work, but found myself too frustrated and suddenly lost all interest in research, stopped caring about papers, did as best I could to avoid talking to anyone, and want to leave this place and never come back. I know most PhDs somehow have this feeling, but I notice that this time it's quite serious:   Forcing myself to work resulted in a breakdown every night with the feeling that all I did was nonsense and meaningless. My first paper has now become a joke, laughing at me that I could never publish with my own efforts. I have no intention to participate in lab communication and truly don't want to talk to anyone. I can't even bear to hear others typing due to the feeling that I am the only one who doesn't make progress.   How can I know if I truly have lost my interest in research (and should drop my Ph.D.), or if this is something that I can overcome? After all,  if this is the best I can do, why not go somewhere else and use my skills to actually contribute rather than wasting everybody's time? I am so tired of receiving new tasks at 4 am or 11 pm due the next day. I would highly appreciate your advice!

I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success.   The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on.   I've talked about this to some number of people; here is some advice I have received:   Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead.  Talk to other graduate students. Realize that many graduate students go through this.   I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia?


I am somewhat new to python and I am trying to automate my database systems. Is there a way to have python send commands to a macbook terminal. Specifically I want to send this command to the terminal to backup the database. Thanks in advance backup.pg_dump --file  "/Users/john/Dropbox/__Mag_bus/backups/analyze_stats_critical_files_only_2020-10-  21.dump" --host "localhost" --port "5432" --username "john" --no-password --verbose --  format=c --blobs --table  "__magazine_cover_prices" --table "__prospects" --table   "__recommender_crosses" --table "__pricing_options" "analyze_stats"

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


I was looking through a list of wpf questions with 0 answers and found this one:    The caveat here is that in the list, it showed 0 answers but had the markup as if one of the 0 answers was accepted. Intrigued, I clicked and discovered that this answer:  (10k+ req to view) had been deleted.  The deleted answer was accepted (although it is not very high quality). Or the accepted answer was deleted. One of the two happened, but I was not sure how. I tried it on one of my own accepted answers and was denied with the message "You cannot delete this accepted answer".  How did the linked accepted answer get deleted?

On , the accepted answer (with 23 votes) is deleted. But it is still pinned to the top. (10k required to see deleted answer)    By the looks of it, the answer was deleted from the "low quality posts" review queue. But it never got unpinned when upon deletion.


I have a app that every time you open it, the app reads a file saved into the internal storage and prints something. Then it updates the file.   String filename = "myfile"; String restore = ""; FileOutputStream outputStream; FileInputStream inputStream;  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      restore = read();     System.out.println("Before if statement the restore value is: " + restore);     if(restore == "test3"){                 restore = "test4";                 System.out.println("I' m saving: " +restore);                 save(restore);             }             if(restore == "test2"){                 restore = "test3";                 System.out.println("I'm saving: " +restore);                 save(restore);             }            if(restore2 == "test1"){                 restore = "test2";                 System.out.println("I'm saving  " +restore);                 save(restore);             } }  public String read() {     try {         inputStream = openFileInput(filename);         StringBuilder builder = new StringBuilder();         String restore2 = null;         int ch;         while((ch = inputStream.read()) != -1){             builder.append((char)ch);         }        System.out.println(builder.toString());         if(builder.toString() != null) {             restore2 = builder.toString();             System.out.println("Restore 2 value is: " + restore2);         }         inputStream.close();         return restore2;      } catch (Exception e) {         e.printStackTrace();         return "test1";     }   }  private void save(String salvare) {     try {     outputStream = openFileOutput(filename, Context.MODE_PRIVATE);     outputStream.write(salvare.getBytes());         System.out.println("I saved: " + salvare);     outputStream.close(); } catch (Exception e) {     e.printStackTrace(); } }   When I open the application for the first time, everything goes well and I get:   Before if statement the restore value is test1 I'm saving test1 I saved test 1   When I reopen my app, The read() function works well because I get  Before if statement the restore value is test2   But I don't get I'm saving test2. This means that the second if statement seems to be useless. Looking at my log cat I don't get any type of error. What can be the problem?

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


I have a question!  I have Ubuntu 15.04 and windows 7 on my PC in dual-boot mode. Now, for some reasons, my Ubuntu is totally broken! When I try to boot Ubuntu, a terminal-like screen comes and the only thing I can do is typing some commands (and I don't know how to fix my Ubuntu using this screen).   So, I picked up my Ubuntu files using windows 7 (with this ) and now I want to remove Ubuntu and install it from scratch. The only problem here is deleting my current Ubuntu (which doesn't work!)! When I insert a bootable disk of Ubuntu, it doesn't give me the option to re-install Ubuntu (seems that it doesn't identify the installed Ubuntu).   The only way I can think of, is deleting Ubuntu files From its partition on Windows 7. Does this solution work? Can Ubuntu be uninstalled with deleting its files using Windows?  Thank you!

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I have been using JavaScript for quite sometime but this question keeps coming back to me every now and then. Consider the following code snippet :  function dummyFunc(inputFunc){     return inputFunc(); }  function getNumber{     return 100; }  dummyFunc(getNumber);   When am passing getNumber - only the address of function gets passed or entire function declaration gets passed to dummyFunc ?  If this is answered already please let me know ?

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


I am trying to convert a big byte array of zeros and one to a string variable.  private Random _random; private string _str;  private void Convert(byte[] bytes) {     for (var index = 0; index < 10000000; index++)     {         var b = bytes[index];                         _str += b.ToString();      }             }   But its performance is very low.  Is it possible to convert a big array to string variable with 'unsafe' or 'fixed' keywords? (use memory allocation)

What's the most efficient way to concatenate strings?


Every time I turn my PC on I notice a flag in system tray with a red x which is notifying me about an issue in the Action Center.  I click this and it says Change Windows Update setting (Important).  So I click this and get the option to select either Install updates Automatically or let me choose. No matter what I choose, as soon as I boot the computer again the issue returns.   Any ideas why?

My OS keeps turning off automatic Windows updates without even logging off or restarting the computer.  Action center icon in the task bar warns me about choosing an option for Windows update as if I haven't chosen countless times already.  It started to get really annoying to keep choosing a Windows update option 5 - 10 times a day.   I really appreciate any help you can provide on this matter.  Things I have tried so far;   I have tried  suggested by . Unfortunately didn't help my case Tried following commands; reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 0 /f  and then sc config wuauserv start= auto as suggested . Googling. Tried few suggestions which didn't help my case.


I am trying to see if anyone is aware of a plugin/utlity where I could keep a list of common responses like      "Welcome to Stack Overflow. This site is for..."    or      "Do you have any code we can build on? This would be a better question ....    If I VTC a question (on Stack Overflow for example) as unclear it won't add a comment. I try my best to add one manually and I end up writing the same text over and over.   Yes, I could keep a text document and save these responses there. I thought I might be able to find something on Stack Apps however I could not find exactly what I was thinking about.  Does anyone have any utilities they use for these sort of scenarios. My primary browser is Chrome if that influences the responses.

Since we're now in the Summer of Love, I am trying to improve my friendliness and all that jazz.  In so doing, I'd like to write longer comments to bad first answers.   Examples of things I find myself writing over and over again:    "Welcome to SO!  You will find that you get better answers if you take the time to make your question reproducible.  Please follow the , paying special attention to the part about dput().  Thanks!   Each of these could be said in fewer words, but it wouldn't be as friendly, now would it?  And each of them gets said over and over again.  The solution is clearly a macro.  I have a fancy keyboard that I could program macros into, but the it occurred to me I'm not the only person to have this problem.  Could SE implement macros for comments?  You could program in two or three in your prefs and then have little 1,2,3 buttons appear while you were typing comments to recall the macro.    Macros seem like a more personalized solution to periodic requests to have automatic warning messages (e.g. ).  The downside is that comments might become a little more formulaic.  Solutions to this include not having that many macro slots (if you only have 2-3 slots you'll only use them for common annoyances), or limiting macros to comments on posts by new/low-rep users.


I know this is similar to many other questions out there, but I just wanted to ask not only how to convert a custom-made item into a villager trade, but also if there is a general way to convert said items into trades simply by tweaking parts of the command. When I say "custom-made item", I am referring to items that have a custom name, custom lore, and optionally also custom enchants, HideFlags, the Unbreakable tag, and modifiers. I am only focusing on items that have these things, nothing else. Additionally, I will only be focusing on vanilla singleplayer 1.14. This is an example item showing what a custom item will have.  /give @p minecraft:coarse_dirt{display:{Name:'{"text":"Example name","color":"gold","bold":true,"italic":true}',Lore:['{"text":"Example lore","color":"dark_aqua","bold":false,"italic":true,"underlined":true}','{"text":"This item has the Unbreakable tag and a custom modifier.","color":"aqua"}']},Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:10s}],AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:0.01,Operation:1,UUIDLeast:961281,UUIDMost:716413,Slot:"mainhand"}]} 1 Essentially, I have made a /give command that gives me a villager spawn egg who has a custom name, custom lore, the Unbreakable tag, and an enchantment / HideFlag for enchants to make the item have a "glow effect". This villager then also has one trade, where it trades a "custom item" for a different "custom item". After making it in MCStacker and testing it in a creative vanilla 1.14 world, you can see that the command is 100% working.    The only things that I have specified otherwise for this trader are its profession, what biome variant it is, and its level. Pastebin link to command:  I made this in MCStacker, so you can see what the command has by copying the command from the Pastebin, then go to , Import > paste the command in > hit Import again. How could I make this /give command into a tradable item in a trader? I've tried pasting everything after "/give @p" into a trade command, but it wasn't working. Do I need to add "tag:" or something else to make it work? Or will I have to completely remake the villager spawn egg as a trade instead for it to work in a trader?

I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`


(a) Prove that for every natural number $n$, $$\sum_{k=1}^n k^3 = \frac14 n^2(n+1)^2.$$      (b) Can you think of any natural reason for that fact that this is equal to $\left(\sum_{k=1}^n k^2\right)$?   I'm really stuck as to where to start, I know I could probably google the first part but how does it relate to the second part?  Thanks in advance!

I recently proved that  $$\sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k \right)^2$$  using mathematical induction.  I'm interested if there's an intuitive explanation, or even a combinatorial interpretation of this property. I would also like to see any other proofs.


Initially I have seen that in order to analyze residuals for finite sample, Ljung - Box is defined as $n(n+2) \sum_{n=0}^h p_k^2/(n-k)$ where $n$ is the sample size, $p_k$ is the sample autocorrelation at lag $k,$ and $h$ is the number of lags being tested. Actually I know the proof of formula when sample size goes infinity but in finite sample case there is a little adjustment. Also no sufficient information exist for that adjustment. Could you provide me with the proof?

What is the intuition behind the finite sample adjustments in the Ljung-Box test: $Q = n\left(n+2\right)\sum_{k=1}^h\frac{\hat{\rho}^2_k}{n-k}$?  Degrees of freedom adjustments usually involve subtraction, so where does the $(n+2)$ come from?   Also, why are farther lags weighted more in the $(n-k)^{-1}$ adjustment?


I want to be able to describe the love for, or obsession with, words. It may also be a condition from other's perspective. It maybe because he is a lunatic who wants to aggrandize his vocabulary, a crazy person who can't forget the words he hears wafting around, or someone who wants to set a world record or something. Try fitting it in these:  He is a _______ who can blurt a thousand synonyms for good. He is so ______ that he can be called a dictionary with a heartbeat. He is showing what a _____ he is. If thesaurus was a ghost, he would be dwelling in that _____'s body.  Any word or phrase would do.

What's a big-vocabulary word for someone with a big vocabulary?  I'd like to say I'm looking for a "_____".


Current behavior  When you hover over the arrow after you already voted over 5 minutes ago, it explains that you can "click again to undo":    However when you click on it, you get the vote lock error:    Expected behavior  Let the hover message display the current error message since you can't actually "click again to undo". Possibly explain that the undo window is 5 minutes.

I'm still getting flack about . I downvoted an answer and added a comment explaining my reason. I was later convinced by other comments that it was not a good reason for downvoting. Upon attempting to retract my vote, I inadvertently locked it in.  The hover-text still (over a year later) says I can "click again to undo". But it's a big fat lie.  My specific problem has been resolved. But, I have stumbled across other questions where users have done this. In keeping with the push to help new users not to discover rules after having broken them, I think this text needs to be a little more aware, a little more accurate.


I'm trying to install Ubuntu 17.04 from usb, but I'm stuck on this screen    How can I fix it?  I am on Asrock UEFI?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Is there a word that denotes or describes the most important point in the newspaper opinion section?   For instance, have a look at the screenshot of the piece of opinion :    In the picture above, I have enclosed the bold and enlarged point of the opinion written by A.G Noorani; while the word which I am requesting here, can have something to do with graphic design, because it's all about the design of the opinion column. So how do you describe such points in terms of graphic design?  I, by researching and asking question, could get a single word describing such point: core point. Can I describe it as a core point? Or are there other better alternatives to it?

Sometimes in articles in newspapers / magazines / websites there will be a small section separate from the main body of text that contains a short line - often a quote - which is either representative of the article or an interesting angle.  For example:    Here the quote in the box on the right hand side is an example of what I am looking for a term for.  It could be referred to as a blockquote (but those could be in-line with the text) or a figure (but those could be graphics to illustrate an article) or an excerpt (but those are broad eg a read aloud excerpt from a book, etc).  Is there a term that is specific to these small vignettes that appear with a body of text, but are presented separately to the body of it? Perhaps a technical term used by those in publishing / layout design / journalism?  There is a similar concept of a , for example in a box or panel, but I am interested specifically in a quote being set off from the main body of text.


I want to use OSM data to make network dataset in ArcGIS 10.2. However, this is not installed successfully. It keeps telling me I don't have ArcGIS 10.2 that is exactly what I am using now. I think others have same issues. Anyone help me to resolve this problem? Or is there any way to make network dataset without ArcGIS Editor 10.2 for OSM?  Further information for this issue, I am using 10.2.2 desktop with 64 bit. And this is concurrent user version supported by my school for the researcher.  I can use all of functions and extensions with this privilege. Also, I followed the direction indicated below:   As you can see comments in the website, other people have same issues like me.

Esri have provided installers of the ArcGIS Editor for OpenStreetMap for 10.2.1 and 10.2.2, but not for 10.2.  How can I make it?


We have an electrician at our new home in Utah installing some new lights, after removing some of the installed lights we are noticing that above the vanities there are no junction boxes behind our current light setup. The lights that are currently installed look similar to  - I'm curious if it is code for these to have a box installed? the lights that we are adding now look like . The electrician wants to charge us $25 a box to fix it to "get it up to code". Thanks in advance for any advice.

I'm replacing a light fixture, but upon removing the old light I discovered the wires are not in a box. Can I just anchor the mounting plate to the drywall or is a box mandatory?


My LG desktop computer won't boot.  It makes two short beeps, pause, and 6 consecutive beeps.  (please listen to the linked mp3 file)

My wife put my PC into sleep mode, I could not wake it up. I just got a signal on monitor saying "no signal input".  When I'm trying to boot up, I am getting two short beeps, followed by eight short beeps, then it continues to appear to load up.   I turned off the power to the PC and held the start button for 60 seconds. I also took side cover off, checked all connections, reseated ram, graphics card, also took out the battery and reset the BIOS, still nothing.   Any ideas? The PC is running Windows Vista.


I'm in an odd situation where the state data that tracks which fields are deleted has a field in it that does not have its associated field_deleted_data_* table. As result, when cron tries to purge the deleted field data, an exception is thrown because it runs a query on a non-existent table.  Is OK to just delete all the remaining field_deleted_data_* and field_deleted_revision_* tables and then delete the two state API rows from the key_value table, field.field.deleted and field.storage.deleted?

I have a lot of field_deleted_* tables in the database and neither drush cr or running cron is removing them. Is it okay to just remove them from the database? How can I tell Drupal to remove them otherwise?    Edit: Per 4k4 troubleshooting tip:  ➜  default git:(HUHLR-172) ✗ drush ev "var_dump(\Drupal::state()->get('field.storage.deleted'))" array(0) { }   This means:     If this is empty, then you can remove the tables in the database as   well, because Drupal has no chance to guess the hash keys of the table   names without this information.


This particular question was asked in a previous year exam and I have trouble proving it.  Let G be a finite group of order n, where n is even. Then equation $x^2=e$ has even number of solutions.  If there exists a solution a, then $a= a^{-1}$ , so $a^{-1}$ will also be a solution but it is equal to a so I don't think it is a right argument that for every a, $a^{-1}$ is also a solution as both are equal. So, how should I approach this question? Kindly guide

I am working on the following problem from group theory:     If $G$ is a group of order $2n$, show that the number of elements of $G$ of order $2$ is odd.   That is, for some integer $k$, there are $2k+1$ elements $a$ such that $a \in G,\;\; a*a = e$, where $e$ is the identity element of $G$.


I messed up the screw that fits this tip of this particular type of screwdriver bit (circled in red):   That screw now has almost no edges and is basically oval. I tried lubricating the screw so that I can get it by the neck on the opposite side with a set of pliers but I had no luck there as well.

I have wood screws whose heads are stripped from trying to remove them with a drill. The drill (or screwdrivers) can't grip the heads anymore. What can i use to remove these screws easily?


Now that sqlserver 2019 has been around for a while, this is a re-ask of a prior question that was not really answered in the way I had hoped:  Is it possible to partition a database based on the Sqlserver 2019 data classification feature?    Explanation/Detail: I would like to column partition the entire database schema so that our "high sensitivity" data is processed and stored separately, perhaps in another instance in a different location.  This to improve security of our data, understanding that there would be a performance cost.  I would like to maintain the current schema for application compatibility purposes, just store the data differently for security reasons.

Is there any way in SQL Server 2019 to physically partition data by  and thereby allow different security mechanisms to be used with different sensitivities?


Let $D=\{z| |z-z_0|<1\}$ If $f$ is analytic function on $D$ and $|f’(z)-f’(z_0)|<|f’(z_0)|$, Then $f$ is injective  First, I’m sorry This is my first time to use this page So, I want to solve this question. I heard this question is very hard But I believe you can solve it. I have been studying Complex analsis I spent time to solve this question I couldn’t prove this question.. Please answer me, How to solve it?

Let $f$ be an analytic function on a disc $D$ whose center is the point $z_0$.  Assume that $|f'(z)-f'(z_0 )|<|f'(z_0)| $ on D.  Prove that $f$ is one-to-one on D.


Can you help me please to figure out the error below : I have some string resources, but i renamed them. Is it possible that my renaming causes the error ? Here is below the error.  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference         at android.content.ContextWrapper.getResources(ContextWrapper.java:89)         at android.view.ContextThemeWrapper.getResourcesInternal(ContextThemeWrapper.java:127)         at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:121)         at android.support.v7.app.AppCompatActivity.getResources(AppCompatActivity.java:542)         at com.andersen.dogsapp.dogs.DogsApp.<init>(DogsApp.java:12)   The code:  public class DogsApp extends AppCompatActivity { // This line below has called an error     String owner[] = getResources().getStringArray(R.array.owners);      LayoutInflater layoutInflater;     private LinearLayout scrollinlayout;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_dogs_app);         scrollinlayout = findViewById(R.id.scroll_child_linlayout);         layoutInflater = getLayoutInflater();         for(int i = 0; i< owner.length; i++){             View inflatedView = layoutInflater.inflate(R.layout.owners_item, scrollinlayout, false);             TextView textViewName = inflatedView.findViewById(R.id.owner_name);             textViewName.setText(owner[i]);         }     } }   Thanks a lot!

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?


So for input:   arrondissement d   I Should get output:   Arrondissement de Boulogne-sur-Mer Arrondissement Den Bosch   So it should give back both results. So in below code I've capitalized every first character of the word but this isn't correct because some words do not start with an upper case.  public ArrayList<City> getAllCitiesThatStartWithLetters(String letters) {     ArrayList<City> filteredCities = new ArrayList<>();      if (mCities != null) {         for (City city : mCities) {             if (city.getName().startsWith(new capitalize(letters))) {                 filteredCities.add(city);             }         }     }     return filteredCities; }  public String capitalize(String capString){     StringBuffer capBuffer = new StringBuffer();     Matcher capMatcher = Pattern.compile("([a-z])([a-z]*)", Pattern.CASE_INSENSITIVE).matcher(capString);     while (capMatcher.find()){         capMatcher.appendReplacement(capBuffer, capMatcher.group(1).toUpperCase() + capMatcher.group(2).toLowerCase());     }      return capMatcher.appendTail(capBuffer).toString(); }

Say I have two strings,  String s1 = "AbBaCca"; String s2 = "bac";   I want to perform a check returning that s2 is contained within s1. I can do this with:  return s1.contains(s2);   I am pretty sure that contains() is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like:  return s1.toLowerCase().contains(s2.toLowerCase());   All this aside, is there another (possibly better) way to accomplish this without caring about case-sensitivity?


I have some check boxes in my HTML page. And also each component have  attribute. I need to get the  value if the check box is checked.   Following is my HTML code

Document Submited
  <input type="checkbox" id="idcopy" name="checkbox">  NIC Copy  <input type="checkbox" id="birthcertificate" name="checkbox">  Birth Certificate  <input type="checkbox" id="nomineeNic" name="checkbox">  Nominee NIC copy  <input type="checkbox" id="agreement" name="checkbox">  Agreement
     I already tried to get the text by using document.getElementById(idcopy).text()

Let's say I have an html form.  Each input/select/textarea will have a corresponding <label> with the for attribute set to the id of it's companion. In this case, I know that each input will only have a single label.  Given an input element in javascript — via an onkeyup event, for example — what's the best way to find it's associated label?


Medical examiner: Kids can survive incredible trauma, but when they crump…they crump quick. Detective1: Crump? Detective2: All the vitals go south all at once.  It's a dialogue from TV drama. I found out what 'crump' means in medical situation. It is a slang medical term indicating that a patient's medical condition is rapidly worsening. (I found it on Urban Dictionary)  But I couldn't find what 'vitals go south' means. Maybe it means 'the pulse is dropping'?  Help me please. :(((

What's the origin of the idiom go south? Why is it go south only? Why not go southwest or go east?  Are the direction-related idioms go south, go north, go east, and go west correlated?   Example, go south from :   to make an escape; to disappear. to fall; to go down. drop out of sight   I've read a few times go east young man or go west young man, but I am not sure that they formally exist or not.


I've experienced a layout bug, see image:    The tabs are painted over the "congrats" dialog for a new badge.   When I click the button, the page gets repainted with sizes slightly changing, and it becomes:    which looks ok. Screenshots were taken without changing window dimensions (although I may not have been 100% exact with getting the same selection rectangle.)  I'm using Firefox 60.2.2esr on Devuan ASCII (~= Debian Stretch), on a x86_64 machine. If any additional information regarding my box is necessary, please ask for it.

When I visit  I see this:     The "Congratulations! You've earned (badge)" section has dropped down completely beneath the tabs under it. The "You've earned a new privilege!" section has a gap at the bottom:     Shog9 says in comments how to reproduce this:     Gotta have earned a badge, not dismissed the notification, and be looking at your own profile.


Problem  The sequence $(a_n)_{n=1}^\infty$ is given by recurrence relation:   $a_1=\sqrt2$, $a_{n+1}=\sqrt{2+a_n}$.   Evaluate the limit $\lim_{n\to\infty} a_n$.  Solution   Show that the sequence $(a_n)_{n=1}^\infty$ is monotonic. The statement $$V(n): a_n < a_{n+1}$$ holds for $n = 1$, that is $\sqrt2 < \sqrt{2+\sqrt2}$. Let us assume the statement holds for $n$ and show that $V(n) \implies V(n+1)$. We have that $$a_n < a_{n+1}.$$ Adding 2 to both sides and taking square roots, we have that $$\sqrt{2+a_n} < \sqrt{2+a_{n+1}},$$ that is $a_{n+1} < a_{n+2}$ by definition. Find bounds for $a_n$. The statement $$W(n): 0 < a_n < 2$$ holds for $n=1$, that is $0 < \sqrt2 < 2$. Let us assume the statement holds for $n$ and show that $W(n) \implies W(n+1)$. We have that $$0 < a_n < 2.$$ Adding two and taking square roots, we have that $$0 < \sqrt2 < \sqrt{2+a_n} < \sqrt4 = 2.$$ The limit $\lim_{n\to\infty} a_n$ exists, because $(a_n)_{n=1}^\infty$ is a bounded monotonic sequence. Let $A = \lim_{n\to\infty} a_n$. Therefore the limit $\lim_{n \to\infty} a_{n+1}$ exists as well and $\lim_{n \to\infty} a_{n+1} = A$. (For $(n_k)_{k=1}^\infty = (2,3,4, \dots)$, we have that $(a_{n_k})_{k=1}^\infty$ is a subsequence of $(a_n)_{n=1}^\infty$, from which the statement follows.) We have that $a_{n+1} = f(a_n)$. That means that $A = \lim_{n\to\infty} a_n = \lim_{n \to\infty} {f(a_n)} = f(\lim_{n \to\infty} a_n) = f(A) = \sqrt{2 + A}$. Solving the equation $A = \sqrt{2 + A}$, we get $A = -1 \lor A = 2$. Putting it all together, we get that $A = 2$, because the terms of the sequence are increasing and $a_1 > 0$.   Is my solution correct?

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


In the movie Inglorious Basterds, the scene where Hans Landa and Shosanna were in the restaurant, Hans Landa says "I did have something else I wanted to ask you, but right now, for the life of me, I can't remember what it is."  When he was just staring at her, did he recognized her and was just playing, or was it just something he tried to remember but couldn't?

In the first part of Inglourious Basterds, Colonel Landa kills Shosanna's family and she escapes. He is known as the Jew Hunter and never lets any Jews escape him.   Later when he meets her under her assumed name "Emmanuelle", he makes references that suggests that he does recognize her. However the conversation could also have meant nothing.  If he did actually recognize her I find it very strange that he didn't do anything about her.


Is there any small utility that integrates with the Windows shell and computes md5 of files on demand? I'm too lazy to launch the command line.

Is there a built-in checksum/hash utility on Windows 7?


Simple bpy question, but I can't figure it out. Is there a way to change a new instance to be the active object after it is copied from the active object, without using its name? For Example: #creates a new primitive bpy.ops.mesh.primitive_uv_sphere_add()  #creates new object which is instance of the first primitive and links it to scene collection bpy.context.collection.objects.link(bpy.context.active_object.copy())  #how do I now make the new instance active?  #or same in a for loop:  for ob in range(10):     bpy.context.collection.objects.link(bpy.context.active_object.copy())          #how do I make sure that whatever else I do in the loop only happens to the newly created instance in      #each iteration?  They seem to be selected after creating, but the active object is still the first object after the create primitive operator. Thanks.

I'm trying to amend an addon that I made for Blender 2.7X to work with Blender 2.80. The problem is with  bpy.context.scene.objects.active = some_object   This is how I used to set an active object, the problem is, active property was removed in the new API!,reading other Q&As, I found 2 suggestions:  bpy.context.object   and  bpy.context.active_object    The problem is, both of these will return the already active object, but when I try to use them this way:  bpy.context.active_object = some_object   or   bpy.context.object = some_object   I'm getting an AttributeError: property is read-only!  I tried the documentation with no luck!  EDIT:  According to Blender 2.8 WIKI API changes:   bpy.context.scene.objects.active   changed into  bpy.context.render_layer.objects.active   This doesn't work, AttributeError: 'Context' object has no attribute 'render_layer'


I've set up Google+ authorship for my photography blog, and used the Google Structured Data Testing Tool to verify the following:   Authorship is working Authorship email verification is working rel=author markup has successfully established authorship for this webpage. Publisher markup is verified for this page   Unfortunately my authorship information is not showing in Google search results.  Could it be that the latter on my list above (Publisher markup verification, which is set to use my business page as opposed to my personal page) could be causing some form of interference?  It's my understanding that blog posts may only be linked to a Google+ personal profile, not a business page, but that you can set up Publisher markup for a business page.

A few months back I set to the task of verifying my blog content for Google Authorship. I'm fairly confident I've ticked all the boxes and when I test my posts with the Google Structured Data tool it informs me that .   It has been like this for around 2 months but I am still not seeing my authorship profile in the search results. Do a search for "jQuery Parallax Scrolling Tutorial" and you will see my blog post near the top of the results but no authorship data.  Can anyone suggest why this is not appearing when Google itself tells me that everything is in order? Thanks


if (chat_message.getReceiver().equals("myid")      && chat_message.getSender().equals("userid")      || chat_message.getReceiver().equals("userid")      && chat_message.getSender().equals("myid") )   I get this error? I did everything right, firebase is also right. When I enter the application, it closes immediately. Does anyone know the reason? The error I got:  java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

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?


How can we find out the number of positive integer pairs with product less than a specific value. Can someone help me with this.

Find number of ordered pairs $(a,b)$ such that $ab\le 3600$ and $a,b \in N$  My attempt : Well, all $a,b \leqslant 60$ are solutions. These 3600 solutions. After that I have no idea how to count the number of remaining solutions...   I have a feeling that my approach is $very$ bad. But I had to give as it would be marked as off-topic.


This is a wheel with bones and constraints to help it roll and turn. I don't know what I did in the process, but my wheel no longer rotates symmetrically like it used to despite not manipulating it at all.   I've tried Origin to Geometry, Cursor to Center, and resetting the Rotation, but it doesn't fix the problem.   Is there a way to fix my wheel's rotation?

Aloha.  I'm experiencing a similar problem I had with a prior posting  with another object I created by joining 3 objects that doesn't rotate uniformly consistently.  I tried clearing and applying rotation of individual objects and joined objects to no avail.  I have  as well as object by itself in blend file if you need to see them  Any ideas?  Thanks.


I tried to run a bat file in Java using the following code.  Runtime.getRuntime().exec("run.bat", null, new File("C:\\test\\"));   I got the following error.  java.io.IOException: Cannot run program "run.bat" (in directory "C:\test"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at java.lang.Runtime.exec(Runtime.java:450) at stl_generator.Program.runCommandScript(Program.java:102) at stl_generator.Program.createFile(Program.java:20) at stl_generator.Program.main(Program.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:385) at java.lang.ProcessImpl.start(ProcessImpl.java:136) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ... 10 more   My file is exist in the location that I've declared. How to fix this?  Thanks in Advance

In my Java application, I want to run a batch file that calls "scons -Q implicit-deps-changed build\file_load_type export\file_load_type"  It seems that I can't even get my batch file to execute. I'm out of ideas.   This is what I have in Java:  Runtime.    getRuntime().    exec("build.bat", null, new File("."));   Previously, I had a Python Sconscript file that I wanted to run but since that didn't work I decided I would call the script via a batch file but that method has not been successful as of yet.


Im trying to install Ubuntu 32bits on my ASUS Eee PC. I want to install it over Windows XP Home Edition, using my 8gb flashdrive. On my flashdrive I have Universal-USB-Installer 1.9.5.5 by pendrivelinux also on the drive I have Install Ubuntu with the Ubuntu logo. I have downloaded Ubuntu-14.04.1-desktop-i386, it has the Power ISO logo in front of it.NOW with all that said. Everythings working until I get to my BIOS Setup Utility Im typing everything that is under the BOOT tab.  HARD DRIVE DISK   1st Drive [HDD:PM-Hitachi HTS]   2nd Drive [USB: MyFlashdrive DT]   OPTIONS   HDD:PM-Hitachi HTS 543216L9SA00 [Disabled]   USB: MyFlashdrive DT [Disabled]    BOOT DEVICE PRIORITY   1st boot Device [HDD:PM-Hitachi HTS] Disabled   2nd boot Device [Removable Dev.] Disabled   3rd boot Device [ATAPI CD-ROM] Disabled     BOOT SETTING CONFIGURATION    Quiet Boot [enabled]    On Board LAN Boot ROM  [Disabled]    Boot Loader [enabled]      My question is how do I enable my flashdrive so I can boot up. HELP! I also tried the Ubuntu CD Helper, I get a error message. Could not retrieve the installation files. For more info, see the log files. I went thru the Uncheck Hidden files process, that didn't work either. PLEASE HELP          I WANT MY UBUNTU

I have a laptop with Ubuntu installed as the only OS. I also have a USB stick with a Windows 7 installation on it. I want to install Windows from the USB stick on my laptop but when I try to restart the laptop to get access to BIOS, I can't seem to find the command for it, its like it skips everything and just says Ubuntu and then takes me to the login screen.  How do I change the boot priority to USB in Ubuntu?


I can not run following command with sudo to change a sysfs paramete:  $ sudo echo 300 > /sys/block/md0/md/stripe_cache_size bash: /sys/block/md0/md/stripe_cache_size: Permission denied   However, it works with out sudo when I change to the root user:  $ sudo su [root] [ /home/arh ]    #  echo 300 > /sys/block/md0/md/stripe_cache_size [root] [ /home/arh ]    # cat /sys/block/md0/md/stripe_cache_size 300   Here is the file permissions:  $ ls -l  /sys/block/md0/md/stripe_cache_size  -rw-r--r-- 1 root root 4096 Feb  2 08:50 /sys/block/md0/md/stripe_cache_size   Does it make sense to you ?  Note that I have changes /etc/sudoers file with visudo to make sudo commands password-less.

When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N> /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?


when i write email then enter space tab then box is created which I mentioned in picture. I want create multiple fields and also remove in html using jquery For e.g. you see when we ask question in stack. At the end of in which Tags fields are there box is created.

I am looking for a good example implementation of a JavaScript/HTML AutoSuggest input box to get me started. What I am trying to implement will behave "Exactly" like the Tags input box here on stackoverflow.   If it helps I am using jQuery to perform Ajax request.   I am finding examples to help me implement this however I am concerned what about best practices in the area and would love to get opinions also.


It is possible that 25 is the correct answer since I guessed (educated guess) that and got a predication of 170 IQ (obviously not accurate)  I saw that   63 + 25 = 88 and  16 + 9 = 25   but then that breaks apart the lower you go.  Any ideas?  I saw that nine was repeated so maybe 25 would also be repeated?

Ok, so this question is from seriously hard IQ test that has been doing the rounds on facebook, ok, 17 questions are easy 3 are hellishly hard, The answer to this one is 17, I do not know why, I found out by trial and error just to test, but It's killing me, anyone know why?


How would I get the coordinates of a mouse click on an HTML5 canvas using Javascript?  Sorry I don't have a code example or anything, but this is a pretty simple question.

What's the simplest way to add a click event handler to a canvas element that will return the x and y coordinates of the click (relative to the canvas element)?  No legacy browser compatibility required, Safari, Opera and Firefox will do.


In my book I have a theorem called "Soundness theorem" and it says:     For finite set $\Sigma$, if $\Sigma \vdash A$ then $\Sigma  \models A$   Can someone tell me what the symbol $\vdash$ and the symbol $\models$ means?

I'm confused about the use of symbols $\vdash$ and  $ \models$. Reading the answers to  and  I see that:  the turnstile symbol $ \vdash $ denotes syntactic implication. Then $ S \vdash \psi$ means that $\psi$ can be derived from the formulae in $S$  the double turnstile $ \models $, denotes semantic implication. Then the notation $A \models B$ means simply that B is true in every model in which A is true.  So I understand that, e.g., $(ZFC+ A) \vdash B$ means that $A \Rightarrow B$ is a theorem in ZFC and, in this sense $\vdash$ is a mathematical symbol for a theorem. While $(ZFC+ A) \models B$ means that $ B$ is true in every model of ZFC in which $A$ is true, and, in this sense $\models$ is not a mathematical but a metamathematical symbol.  I understand correctly? And those are the only uses of the two symbols?


Is there any alternative software of CCleaner in Ubuntu 13.10. My laptop is running very slow, and Firefox also running slow and unresponsive.

Does Ubuntu need regular cleanups like Windows. For example:   Cleaning the logs Temporary files Package cache Dependencies left over   I am not referring to web browsers only.  In case I never do a cleanup, will I have a system like new without my hard drive being full of temporary files, packages, etc.?  Will the performance degrade overtime if a cleanup is not done.


I submitted a paper to a top journal last week. At first, the status showed "awaiting AE recommendation". A few days ago, it was changed to "awaiting reviewer selection". So I thought it passed the associate editor's evaluation and now they were looking for reviewers. Even yesterday the status was still "awaiting reviewer selection", but today it was changed to "awaiting EIC decision". What does this mean? Does this mean that the AE changed his/her mind and recommended to desk reject my paper and put forth his/her recommendation to the editor?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I am Indonesian and I think my English is bad especially when it comes to vocabulary. One day I ran into the words within and inside. I opened Google Translate, translated both words into Indonesian, and the meaning was the same. It said "dalam". So what is the difference between the two?

Here is the definition of the word within from Oxford Dictionary:     inside (something)   So does that mean the two words have no difference, and can be used exchangingly? Is there any connotation that one word can be used but not the other?


Should I add a full stop/period at the end of each item in a bullet point list?  i.e.   My first item. My second item. My third item.   or   My first item My second item Or what about a longer item that might have other puncuation in it, like this. It doesn't seem right to miss the full stop/period off

Possible Duplicate:          Let's say I have a bullet point list e.g:   Point 1. Point 2.  Point 3.    Notice I have put a capital letter for the starting letter of every bullet point and a full stop at the end. Is this the correct way to do it?  If not, what is the correct way to do it?  Do I put a capital letter and no full stop, or, the other way around, a full stop and no capital letter? Alternatively, do I not put a capital letter or a full stop? Is it only necessary to put a capital letter on the first bullet point and full stop on the last bullet point?  For reference, I'm from the UK so British-English grammar would apply.


In a Javascript code example, I saw a professional use a variable instead of the constant this:  var self = this; self.[global_variable] = 0;   why do people use a different variable? for some reason, I tried replacing self with this  this.[global_variable] = 0;   didnt work? How does this happen?

Using instance methods as callbacks for event handlers changes the scope of this from "My instance" to "Whatever just called the callback". So my code looks like this  function MyObject() {   this.doSomething = function() {     ...   }    var self = this   $('#foobar').bind('click', function(){     self.doSomethng()     // this.doSomething() would not work here   }) }   It works, but is that the best way to do it? It looks strange to me.


I want to create a T-Shirt, that has this pattern on it, like shown in the picture, my problem is that I want to have the image texture based on the mesh, and not on the density of the vertex.  So that the pattern is evenly distributed. I have made a UV Map node connected to Vector from a Mapping node with a scale's factor on X and Y, which is connected to a Image Texture, connected to the material output.  I'm sorry, but i cant take a picture of it.  When I take a vertex and grab it on the Y axes, the image is also scaled in the Y-axis, so that my pattern is scaled on the Y-axis.  I don't want my pattern scaled, but increased in numbers, so that it fits.

My Question is about materials. I want to create a T-Shirt, who has this pattern on like show in the Picture. My Problem is, that want to have the "Image Texture" based on the mesh, and not based on the density of the vertex. So that the Pattern is evenly distributed.  Here the pattern is evenly distributed  Here it isn't (In the two pictures I showed you two times the Note Editor. I did this because you only need the first three Nodes, but I thought, perhaps do you need all. edit 1:  Here you see the unequal spreading of the pattern over the T-Shirt (After UV-Mapping(@Bruno) edit 2:  I finally approche to the result that i want to have. I have to us smart uv protection. But as you can see in the image, it has a few places, with not perfect patterns, as under the armpit. How can i fix them?


If $(A,<)$ totally ordered, show that if $a$ is a minimal element of $A$ then $a$ is minimum. Could you give me a hint how we could do this?  Definitions:  Let $(A, \leq)$ be an ordered set. We say that $a \in A$ is:   minimal, when it does not exist in $A$ an element that is previous of $a$ and different from it, i.e. $(\forall x \in A)(x \leq a \rightarrow x=a)$ $$$$ minimum when $(\forall x \in A) a \leq x$ $$$$

Let $R$ be a total order on set $S$. Prove that if $S$ has a minimal element, than the minimum element is unique.  I have difficulties with proofs. I know any graph of a total order is a straight line, which clearly has a minimal element. How doI tell when something is mathematically proven?  EDIT: this is how I would prove it  Let $x, y \in S$ such that x and y are minimal. Since S is a total order $x$ and $y$ are comparable and either    case 1: one comes after the other and therefore one isn't the minimal case 2: both are the same and $x=y$  I know this isn't a mathy argument and could use help making it more presentable.


I have a cluster situation. I used to DM Advanced DnD a looooong time ago and with life I gave it up for other things. Well my kids want to play DnD and want me to DM.  My oldest son went to a books sale and bought me bunch of 3.5 books, a WoW RPG book, and a Pathfinder.  My middle son is playing DnD 5.0  The dilemma is which route? I played 3.5 and like the customizability and freedom 3.5 brings, on the other hand its a old system and I think Pathfinder still follows it but Wizards no longer supports.  On the other side there is the new 5.0 but I don't know much about it.   My friend wants to sell me his 4.0 but a lot of people said BAD JOO JOO.  So anyway, I was hoping someone could give me some insight on the differences and what they would recommend.   Thanks  Returning DM

I've been out of the loop for a while, and I used to play AD&D 2nd ed, but today I find there are a lot of different versions that have fairly different gameplay.   Can anyone summarize the really big differences, the ones (maybe top three?) that are the 'killer features' of the different editions? What makes each edition play differently than the others?


So I'm working on a sensitive project with a group and all our sources are on Github. I recently pushed a commit and later realised there were lot of mistakes in my push. I've since fixed all those mistakes on my local copy and am about to push again. However is there any way I can push and overwrite my last commit? My reason being, I don't want the others to look up my initial commit and the changes it had...   Basically I want to overwrite the old commit with my new one.. so no information about the old commit remains for other group members to see.  Any help will be appreciated! Thank you.  NOTE: Just noticed that this question was marked as a duplicate. To clarify, my question is about overwriting a commit that has already been pushed. My question is NOT about changing an incorrect commit message.

I wrote the wrong thing in a commit message.  How can I change the message? The commit has not been pushed yet.


how can I position an object from \newcommand?  Let's consider my , for example, I want to position a new colorbar (\MakeMeAColorbar) to the page center, the code should be:  \begin{tikzpicture}[remember picture,overlay]     \node at (current page.center) {\MakeMeAColorbar{1.5}{2}};        \end{tikzpicture   But doesn't work.  Thanks

I would like to create custom function to create objects. Let me explain better, consider the following code:  \documentclass[tikz,border={12pt,12pt}]{standalone}  \usepackage{pgfplots} \usetikzlibrary{calc}  \begin{document}  \begin{tikzpicture}      % Min/Max     \pgfmathsetmacro{\Min}{1.5}     \pgfmathsetmacro{\Max}{2.0}     % Tick distance     \pgfmathsetmacro{\XTickDistance}{         (\Min - \Max) / (10 - 1)     }      \begin{axis}[     hide axis, scale only axis, height=0pt, width=0pt, % hide axis     colormap/jet,     colorbar sampled,     colorbar horizontal,     point meta min=\Min,     point meta max=\Max,     colorbar style = {         samples = 9,         height = 0.5cm,         width = 8cm,         xtick style = {draw=none},         xticklabel style = {             text width = 2.5em,             align = center,             /pgf/number format/.cd,                 fixed,                 fixed zerofill,                 precision = 2,             /tikz/.cd         },         xtick distance=\XTickDistance,     }     ]     \addplot [draw=none] coordinates {(0,0)};     \end{axis}  \end{tikzpicture}  \end{document}   this will create a simple colorbar between 1.5 and 2.0 using the colormap jet. I would like to create a function (named customFunc) that when invoked return a colorbar between two value, so the code will be just:  \documentclass[tikz,border={12pt,12pt}]{standalone}  \usepackage{pgfplots} \usetikzlibrary{calc}  \begin{document}  \begin{tikzpicture}     \customFunc{1.5, 2.0} \end{tikzpicture}  \end{document}   The real code of customFunc would be in a different file   Thanks


What is the most general way to compute (formally not numerically) the following integral:  $\int_\mathbb{R}\exp(iuz - \frac{(x-z)^2}{2t})dz, \space t>0$

I would like to work out the Fourier transform of the Gaussian function   $$f(x) = \exp \left(-n^2(x-m)^2 \right)$$  It seems likely that I will need to use differentiation and the shift rule at some point, but I can't seem to get the calculation to work. Does anyone have any advice?  By the way, I am using   $$\mbox{FT}(f)(k)=\int_{-\infty}^\infty f(x)e^{-ikx}\,\mathrm d x$$  as my definition of a Fourier transform. Many thanks.


In my attempt I arrived at $1/4(k^2(k+1)^2+4(k+1)^3)$ and don't know how to make any progress from there. I'm supposed to go from there to $(1/4(k+1)^2(k+2)^2)$ but have no idea how.

How can I prove that     $$1^3+ 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2$$    for all $n \in \mathbb{N}$? I am looking for a proof using mathematical induction.  Thanks


If there are two spaceships moving away from each other(in opposite directions) at a speed 0.6c, then wouldnt that make the relative speed of one from the other's frame of reference 1.2c? Does this mean that the spacecrafts would disappear, since its light would never reach the other? Is there a contradiction here that I'm missing?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


During Photoelectric effect and other such phenomenon, when light is made to fall on metal surface, single photon is absorbed by the single electron present in metal atom. Why not 2, 3, 4, or more photons can be absorbed by single electron?

I understand that assuming light is quantized implies that if a lower energy interacts with  metal, it is possible that that quanta will not have enough energy to eject the electron. What prevents two quanta from interacting with the electron at the same time, though, and summing to have enough energy to release the particle. Indeed, what if two separate light rays of the same frequency impact the electron, why can't that free it?


I recently told my father-in-law that I thought he was being obtuse, and he then acted as if he didn’t understand the concept of being obtuse. I feel like there’s a word for this. What would we call such a situation as this?

Sometimes (well, often) people pretend not to understand what's going on (or pretend not to understand what the other person means, etc.) when in fact they do perfectly well.   For example, Person A is hoping that his friend Person B would let him crash at his place for a couple of days, but, so as not to appear too intrusive, he wants Person B to invite him instead of asking directly. So, he says to his friend:     Hey, Person B! I've just been kicked out of my house and I have nowhere to go. I really have to figure out where to stay the next couple of days.    Person B understands that Person A is hoping that he would offer him to stay at his place. But he chooses to pretend not to understand, and, instead of saying sorry and explaining why Person A cannot stay at his place, person B says:     There's a nice hotel near here, and it's not very expensive. I can give you the address.   Another example. Person B has secretly stolen the wallet of Person A. Person A has figured out that it was person B and when they meet, he says:     My wallet was stolen the other day.   Person B says:     Really? Oh, that's so unfortunate!    What idioms in English would one use to describe the behavior of Person B in the sample situations? I.e. pretending to be stupid or pretending not to understand something rather obvious, or pretending not to know something that you know; in other words, consciously imitating ignorance, indifference, or innocence.  In Russian, the idiom is to pretend to be a fire hose (прикидываться шлангом) or to pretend to be a boot (прикидываться валенком). The Armenian idiom is to pretend to be a donkey (իրեն էշի տեղ դնել). For me, these phrases are not quite unimaginative and cause a certain amount of amusement. I am hoping to find an English equivalent (or equivalents) that would be informal and/or sound funny(-ish), but that's not essential.  Naturally, I tried to look up the translation in the dictionary before asking, but to no avail, presumably because the phrases mentioned above are rather informal.


I love the way the browser remember the text I entered into a form field - especially when I'm a developer. It saves lots of my typing time.  Though, sometimes there are unwanted remembered items and need to be removed. I don't know how to do that in Firefox and Chrome. Please help!

Is there a way to stop the gmail address field (on the login page) from displaying all the gmail addresses that you have ever typed in it?   When logging in with Google Chrome or trying to set up a new account, anything you type which starts with the same letter as the one that you are trying to use currently will show up in the auto-complete field, I don't want that.    I understand that this is a convenient feature in some cases, but the thing is--I know this shouldn't've happened, but it has actually happened more than once--I sometimes mistyped my password in the Gmail address field right after the address, mistakingly assuming that the prompt had already been moved to the password field, and then hit "Enter" without looking first. The next time I tried to enter my Gmail address, it popped up the address followed by my password as one of the entries on the list of email addresses that shows up, and I couldn't get rid of the entry.   Is there a way to remove these? The autofill feature in Chrome is a time saver, and so I don't really want to turn it off. It would be helpful to be able to edit out some of the typed info, though, so it won't show up again -- is this possible to do?


The current version of python I've now which is installed by default with Ubuntu is 2.7rc1 , Is it possible to update it officially to the latest version (3.7.1) ?  Thank You .

How can I install a different version of Python using apt-get?  Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package manager, as that's what it's there for. Surely somewhere reputable builds .deb files for the latest Python releases (why python.org don't is beyond me) that I can reference.   What do I need to do to reference them and what issues might it create when upgrading to the next version?  If there is no way except for building from source, is there a (pseudo) package that I can can install that will provide all of the dependencies needed without having to find and install each individually? So that I don't get:  The necessary bits to build these optional modules were not found: _bz2                  _curses               _curses_panel       _dbm                  _gdbm                 _lzma               _sqlite3              _ssl                  _tkinter            readline              zlib


In one of the prequels Yoda says to Obi-Wan after Anakin kills the “dark apprentice” there is always two a Sith and an apprentice. Only two no more no less. So fast forward to Darth Vader’s death. When Darth Vader kills the Sith Lord and in turn dies himself that should be the end of the “dark side”. So in retrospect where did the new Sith “big creepy hologram guy” come from?

The legend of the Chosen One foretold the coming of a being who would restore balance to the Force.  Now we know that Anakin Skywalker was the Chosen One, but how exactly was he supposed to restore balance?  Is a balance to the Force:   eliminating all Dark Side users so that only the Light Side remains?   reducing the Dark Side's influence to almost nothing, but still leaving some Dark Side users so that there is a balance of energies? (End of Episode VI, there are still Dark Side users in Legends) creating an equal presence on both sides? (for example, at the end of Episode III it appears that there are two Sith [Sidious and Vader] and two Jedi [Yoda and Obi-Wan]) Any other way not mentioned above?   And whichever the legend means, has the prophecy been completed? Has the Chosen One restored balance to the Force at one point, or did he fail to fulfill the prophecy?  So in short, What is the meaning of 'balance' when it is said that "The Chosen One will bring balance to the Force", and did he fulfill the prophecy?


How do I tell how power is moving through my MacBook Pro's USB-C ports? My shiny new MacBook Pro (15", 2016), comes with four USB-C ports.  Sometimes power comes in through one of these ports, as when I charge the machine from Apple's included official 87 W power adapter, or another power adapter. Sometimes power goes out through these ports, as when I use them to power my iPhone or an external accessory like a hard drive.  Does macOS provide any tool that can tell me the net flow of power through every one of these ports? Or is there a third-party application which can do so? The benefit of this is it would let me manage my battery better, and also understand if cables, hubs, and power adapters are performing as intended.  The closest thing I can find is to go About This Mac / Overview / System Report / USB, where I see three fields: Current Available, Current Required, and Extra Operating Current. I don't quite understand what these fields mean. Also, they purport to describe current (in milliamps), rather than power (in watts). Without knowing the voltage I cannot know the flow of power, and my understanding is that voltage does indeed vary on USB-C power circuits.

I'm looking for a way to monitor the power being drawn from the USB ports on my Mac.  System Profiler doesn't appear to display this and I haven't been able to find any applications or tools to do the job either.  Can anyone suggest anything (preferably software based)?


the chief of the National Se-curity Guard (NSG), which fought  the intruders, told me   that  he was certain there were six terrorists in-side. He said two terrorists hiding  in the airmen’s billet,which was blown up, could have  been caught alive had leitunent colonel  Niranjan not died while handling the bodies  of the four terrorists killed  earlier.   In this sentence how the speaker using "have been caught alive had".   can u express the meaning of sentence

What does this mean?      I am sure this would not have been possible had I remained a typical Anglophone North American.   I have never heard that before and I really find it strange.  I deduce that it means      I am sure this would not have been possible if I kept remaining Anglophone North American.   But I might be wrong in this.


If $\overrightarrow a$,$\overrightarrow b$,$\overrightarrow c$ & $\overrightarrow d$ are unit vectors such that $(\overrightarrow a\times \overrightarrow b).(\overrightarrow c\times \overrightarrow d)=1 $ and $\overrightarrow a . \overrightarrow c =\frac{1}{2}$ then (A) $\overrightarrow a$,$\overrightarrow b$ & $\overrightarrow c$ are non-coplanar (B) $\overrightarrow b$,$\overrightarrow c$ & $\overrightarrow d$ are non-coplanar (C) $\overrightarrow b$ & $\overrightarrow d$ are non-parallel (D) $\overrightarrow a$ & $\overrightarrow d$ are parallel and $\overrightarrow b$ & $\overrightarrow c$ are parallel. The official answer is C My approach is as follow $\cos \theta  = \frac{{\overrightarrow a .\overrightarrow c }}{{\left| {\overrightarrow a } \right|\left| {\overrightarrow c } \right|}} = \frac{1}{2},\theta  = {60^o}$ Let $\overrightarrow t=(\overrightarrow a\times \overrightarrow b)$, $\overrightarrow u =(\overrightarrow c\times \overrightarrow d) $ How do I proceed from here and check each option

If $\vec{a},\vec{b},\vec{c},\vec{d}$are unit vectors such that $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ and $\vec{a}.\vec{c}=\frac{1}{2}$,then $(A)\vec{a},\vec{b},\vec{c}$ are non-coplanar $(B)\vec{a},\vec{b},\vec{d}$ are non-coplanar $(C)\vec{b},\vec{d}$ are non-parallel. $(D)\vec{a},\vec{d}$ are parallel and $\vec{b}$ and $\vec{c}$ are parallel.    My Attempt: $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ $(\vec{a}.\vec{c})(\vec{b}.\vec{d})-(\vec{a}.\vec{d})(\vec{b}.\vec{c})=1$ $\frac{1}{2}(\vec{b}.\vec{d})-(\vec{a}.\vec{d})(\vec{b}.\vec{c})=1$    Book's Solution which i did not understand: $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ is possible only when $|\vec{a}\times\vec{b}|=|\vec{c}\times\vec{d}|=0$ and $(\vec{a}\times\vec{b})$ is parallel to $(\vec{c}\times\vec{d})$ And the correct option given is $(C)$.  I could not solve this problem after some efforts.Please help me.Thanks.