Please suggest some idea to display today date in date picker text box , when i load the page .
I have a very simple jQuery Datepicker calendar:  $(document).ready(function(){     $("#date_pretty").datepicker({      }); });   and of course in the HTML...  &lt;input type="text" size="10" value="" id="date_pretty"/&gt;   Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything?  99% of the time, the today's date default will be what they want.
Find the value of : $\cos x \cos 2x...\cos 999x$ given that $x=\frac {2\pi}{1999}$ Given $x=\frac {2\pi}{1999}$  Find the value of $$\cos x \cos 2x \cos 3x ...\cos 999x$$  So I tried expanding $\sin {2000x}=2\sin 1000x \cos 1000x$  Then rewriting  $\cos 1000x= \cos {(999x+x)}$   No luck so far. Why is surface charge distribution uniform for a conducting sphere? Can't it be arbitrary? If the charge $q_1$ has to repel the charge $q_2$, the electric field has to go inside the conductor which contradicts the fact that electric field inside conductors is zero. Then why do the charges distribute themselves in a particular manner? Why can't they be distributed over a small place on the conductor? Booting Ubuntu Failure : error: attempt to read or write outside of disk 'hd0' I have installed Ubuntu 12.10 in a Western Digital external hard drive (320GB). This is a complete installation, not a live USB.  When I plug it in my HP desktop I go to the BIOS settings and boot off the hard drive, everything work perfectly as it should. Now this works on every single computer and laptop in my house (all HP), except for ONE. My HP ProBook 4530s.  When I select to boot of the USB I get the message:  error: attempt to read or write outside of disk 'hd0'   Now, I have removed the hard drive from my laptop and the external drive is the ONLY drive plugged in. Below is a screenshot of the message on the screen. After the message I navigate to ls / (as shown below):    After here I try to acces other folders under ls /, for example, I try to go to ls /boot to get to the grub folder. Then I get the same message as before: as shown below:    grub rescue&gt; ls /boot  error: attempt to read or write outside of disk 'hd0' grub rescue&gt; _   The only folders I can access without getting the message again are /home, /run and /usr.   So how do I:   Boot Ubuntu from GRUB2 (this screen) manually Set to automatically boot Ubuntu If possible an explanation for this problem   Thanks! I was able to star my own message by pinning it and unpinning it.  Pinning a message adds a star, even to your own messages, but when the pin is removed, the star remains. How to count the node a user has created in a View? If $f(x)=x-\int^{\frac{\pi}{2}}_0f(x)\sin(x)dx$ find the explicit function for $f(x)$ in its simplest form What is error code 495 on Google Play and the YouTube app? "Facebook" could not be downloaded due to an error. (495)   How do I solve this error? I'm having trouble getting basic APA bibliographies to work. The same thing works with nejm style, but changing the style to apa gives errors:  ! Undefined control sequence. &lt;argument&gt; \mkbibdateapalongextra  {year}{month}{day}\iffieldundef {endyear}{...  Package biblatex Warning: Macro 'name:apa:last-first' undefined. (biblatex)                Using \newbibmacro.  Package biblatex Warning: Macro 'name:apa:first-last' undefined. (biblatex)                Using \newbibmacro.   I'm using texlive 2012, as you can see I'm using biber, yes, I reran biber, and also tried delting the .bbl file and rerunning tools. My source markup is:  \documentclass[12pt]{article}  \usepackage[hidelinks]{hyperref} \usepackage[backend=biber,style=apa]{biblatex}  \addbibresource{BibResource.bib}  \begin{document}  test\parencite{ormrod2004human}  \clearpage  \printbibliography  \end{document} Prove that: $ \cot7\frac12 ^\circ = \sqrt2 + \sqrt3 + \sqrt4 + \sqrt6$ How to prove the following trignometric identity? $$ \cot7\frac12 ^\circ = \sqrt2 + \sqrt3 + \sqrt4 + \sqrt6$$  Using half angle formulas, I am getting a number for $\cot7\frac12 ^\circ $, but I don't know how to show it to equal the number $\sqrt2 + \sqrt3 + \sqrt4 + \sqrt6$.  I would however like to learn the technique of dealing with surds such as these, especially in trignometric problems as I have a lot of similar problems and I don't have a clue as to how to deal with those.  Hints please!  EDIT:  What I have done using half angles is this: (and please note, for convenience, I am dropping the degree symbols. The angles here are in degrees however).  I know that $$ \cos 15 = \dfrac{\sqrt3+1}{2\sqrt2}$$  So,   $$\sin7.5 = \sqrt{\dfrac{1-\cos 15} {2}}$$ $$\cos7.5 = \sqrt{\dfrac{1+\cos 15} {2}} $$  $$\implies \cot 7.5 = \sqrt{\dfrac{2\sqrt2 + \sqrt3 + 1} {2\sqrt2 - \sqrt3 + 1}} $$ I have three partitions on my drive, arranged something like the following:   ___________ | 1 |  2 | 3| -------------   I wish to merge partitions 1 and 3.  Is there a way to do this, or do I have to manually "slide" partition 2 over to partition 3, and then merge the newly open space where partition 2 used to be?  Note: I do not have the space to copy partition 2 to partition 3 (2 is 200GB and 3 is 65GB). Can I downgrade to macOS Mojave if I buy the new 2019 MacBook Pro? Prove that if b is coprime to 6 then $b^2 \equiv 1 $ (mod 24) Let $\gcd(b,6) = 1$. Prove that $b^2 \equiv 1 $ (mod 24).  Now I have that as $\gcd(b,6) = 1$, we know that  $3\nmid b $ and $2\nmid b$ (else the GCD would be 3 or 2 resp.)  So as $2\nmid b$, $b$ must be odd. Hence $b^2$ is also odd.  Then I'm not sure where to take it from here? Maybe I've gone down the wrong path to start with, and should be looking more along the lines of the Chinese Remainder Theorem? I'm not sure. Simple question.   SO had turned me into a better developer by far, I like to browse questions that strike my interest and curiosity and just read through the answers. I never fail to learn something new everyday, whether it's something trivial or something much more complex.  When I receive reputation it means a lot to me, almost a self achievement of sorts. Something I can show to someone to prove my "worth". I think it works for me as a great confidence booster, also its something I can show my friends who don't understand what I do.   It almost feels like I can finally have something to back me up if need to be.  So the question is what does YOUR reputation mean to YOU? Is it simply a number, is it a score as if you're playing a game, or does it help you mentally achieve your goals and improve yourself like it does for me. addplot3[surf] creates lines instead of a surface Is this metric space incomplete? Google Chrome Address Bar Font has gone too large, how can we reduce it Running Unity on my desktop (2*20" LCD displays), I initiated a standard daily update on my Ubuntu 14.04 LTS today and Google Chrome updated itself to Version 35.0.1916.114.  The URL address bar input now shows IMO a too larger font size which then proceeds to auto show in green. I prefer the smaller font size and have no need for 'gooey slime green' auto complete font colours. Any advice on how to revert back to smaller, generic Address font styling.  I use both FF and Chrome for numerous tasks, Chrome being my primary browser and I've checked my system Unity 'default' theme (Ambiance! LOL.. yes I'm tired of that also).  Thanks for sharing. Complex numbers equation: $z^4 = -16$ "Infamous" for an event Related questions in "Ask Question" page is better than the search tool There are often situations where buying two separate one-way tickets from A to C via B is cheaper than buying a normal multi-leg ticket. This can be especially useful with airlines such as Ryanair, which specifically avoids selling multi-leg tickets.  Is there a search engine which allows one to search for such flights?