I have a field on my opportunity which is a date. when I add it to my email template, it renders as date time. obviously, i want just the date to render.  Help?  &lt;messaging:emailTemplate subject="This is my subject" recipientType="User" relatedToType="Opportunity"&gt;     &lt;messaging:htmlEmailBody &gt;         close Date: {!relatedTo.closeDate}         &lt;br/&gt;         &lt;br/&gt;     &lt;/messaging:htmlEmailBody&gt;     &lt;messaging:plainTextEmailBody &gt;         close Date: {!relatedTo.closeDate}     &lt;/messaging:plainTextEmailBody &gt; &lt;/messaging:emailTemplate&gt;    Output   close Date: Thu Aug 22 00:00:00 GMT 2013   close Date: Thu Aug 22 00:00:00 GMT 2013
I need this date format in a visualforce page: "December 14, 2013". I can't seem to find the format options for visualforce. I read that it's the same as the java messageformat class options, but I cannot find a list for that either.  A little help would be much appreciated
Query standard input of lightning-input I want to query standard HTML textarea which is wrapped by lightning-textarea. How can I get it?  &lt;lightning-textarea name=&quot;secret_field&quot; label=&quot;Secret&quot; value={secretFieldValue}&gt;&lt;/lightning-textarea&gt; Find & Delete duplicated files on multiple harddisks at once I have 4 hard disks and want to find out which files on this four harddisks (including sub directories) are duplicates. It should be checked not only within a harddisk but against all the others as well.  The hard disks are large (3TB) therefor it has to be efficient (first filename than checksum checks or so) What is an Electron? I am a n00b to physics. What physics I know comes from high school and popular science books.  At school we were taught about atoms and what make up atoms, but we weren't actually told what the particles were!  So sure an atom has electrons orbiting around a nucleus made of protons and neutrons, but what exactly is an ?  And if we don't know, how can we fire them from guns, like they do in experiments ... etc  Any clarification on this would be great. I've seen many science popularisation documentaries and read few books (obviously not being scientist myself). I am able to process and understand basic ideas behind most of these. However for general relativity there is this one illustration, which is being used over and over (image from Wikipedia):    I always thought that general relativity gives another way how you can describe gravity. However for this illustration to work, there needs to be another force, pulling the object down (referring to a direction in the attached image). If I put two non-moving objects in the image, what force will pull them together?  So where is my understanding incorrect? Or is general relativity not about explaining gravity and just describes how heavy objects bends spacetime (in that case the analogy is being used not correctly in my opinion)?    UPDATE Thank you for the answers and comments. Namely the XKCD comics is a spot on. I understand that the analogy with bent sheet of fabric pretty bad, but it seems that it can be fixed if you don't bent the fabric, but just distort the drawn grid.   Would you be so kind and answer the second part of the question as well - whether general relativity is explaining gravitational force. To me it seems that it is not (bending of spacetime simply can not affect two non-moving objects). However most of the time it is being presented that it does. How can I prevent my Wi-Fi connection from glitching? Occassionally my Wi-Fi goes into this weird state where the phone "thinks" I'm connected, but the connection simply doesn't work.  Apps still seem to think I have connectivity, though they can't actually connect to anything, and the status bar still shows that I'm connected to Wi-Fi.  Turning Wi-Fi off and back on resolves the issue, and this occurs on multiple networks.  It seems sort of like whatever service manages the Wi-Fi connection gets killed occasionally.  It usually happens when I've been playing a game (that doesn't access the Internet) for a while or if my phone's been sitting for a while; it never happens while I'm actively using the connection.  I have my Wi-Fi timeout set to "Never" and the normal timeout isn't the issue since my phone regularly lasts several hours without the Wi-Fi dying.  Sometimes it dies a couple times in a day, and recently I went a week or so without it happening.  How can I fix this or prevent the service from being killed (if that's indeed what's happening)?  Shouldn't that be a system process that never gets killed?  (Does Android ever kill system processes other than when they crash?)  Could it be related to TouchWiz?  I have an SGS Vibrant running 2.2 (Bionix NextGen v1, but this has occurred on multiple ROMs). dd aplied to dev USB before connect corrupt /dev/sdX and dont work I have a USB where I'm coping an ISO of 5 Mb aprox with a small OS with its own grub. If I connect the device and check it sudo fdisk -l I get:  ... Device     Boot Start   End Sectors  Size Id Type /dev/sdb1  *        1  9551    9551  4.7M cd unknown   If I copy with dd the ISO sudo dd if=my_os.iso of=/dev/sdb   14852+0 records in 14852+0 records out 7604224 bytes (7.6 MB) copied, 0.538487 s, 14.1 MB/s   It works perfectly. An boot from BIOS in other PC.  The problem is, sometime I forget to connect the USB after update the BIOS, so I do ff WITHOUT the USB connected,  the output is:  14852+0 records in 14852+0 records out 7604224 bytes (7.6 MB) copied, 0.00987684 s, 770 MB/s   Now, the /dev/sdb register is corrupted, the copy speed (770 MB/s) have no sense, and cannot user again dd until reboot.  I have tried to repair it with ddrescue and it doesn't work  sudo ddrescue /dev/zero /dev/sdb conv=noerror,sync   My question is, what is happening exactly and if is possible, how to repair /dev/sdb to avoid reboot and dd start working again?  Thanks. How do I transfer my Destiny account from Xbox 360 to Xbox One? Lagrangian of Schrodinger field The usual Schrodinger Lagrangian is $$ \tag 1 i(\psi^{*}\partial_{t}\psi ) + \frac{1}{2m} \psi^{*}(\nabla^2)\psi, $$ which gives the correct equations of motion, with conjugate momentum for $\psi^{*}$ vanishing. This Lagrangian density is not real but differs from a real Lagrangian density  $$ \tag 2 \frac{i}{2}(\psi^{*}\partial_{t}\psi -\psi \partial_{t}\psi^{*} ) + \frac{1}{2m} \psi^{*}(\nabla^2)\psi $$ by a total derivative.  My trouble is that these two lagrangian densities lead to different conjugate momenta and hence when setting equal time commutation relations, I am getting different results (a factor of 2 is causing the problem). I can rescale the fields but then my Hamiltonian also changes. Then applying Heisenberg equation of motion, I don't get the operator Schrodinger equation.   Is it possible to work with the real Lagrangian density and somehow get the correct commutation relations? I would have expected two Lagrangians differing by total derivative terms to give identical commutation relations (since canonical transformations preserve them). But perhaps I am making some very simple error. Unless all conjugate momenta are equivalent for two Lagrangians differing by total derivatives, how does one choose the correct one?   I guess the same thing happens for other first order systems like Dirac Lagrangian also. nginx: Redirect https traffic without subdomain to subdomain (non-www to www) My current ssl certificate covers the subdomains www.example.com and static.example.com  So if a users try to access my site via  I want to redirect him to  .   How can I do that within in my nginx conf?  I know that similiar questions have been asked here, but I could not find the solution here. Cyberpunk/Post-Apocalyptic Sci-Fi series from the 90s or 00s based in Manhattan Is there an optimal setting for the number of CPU cores exposed to a VM? VirtualBox, and possibly other VM software, allows the user to specify the number of CPUs exposed to the VM. In my particular case, I have a dual core CPU, with Windows 7 64-bit running natively, and Ubuntu 9.04 64-bit as the VM.  The help file suggests not setting this above the number of physical cores available. This makes sense. So, is it best allocating 1 or 2 CPU cores? Does this depend entirely on the native CPU load? find and rsync? I want to be able to search for files over 14 days and over 10k and than rsync those found files to a destination.  Is there a way to combine these two commands?  find ./ -mtime +14 -size +10k  rsync --remove-sent-files -avz /src /dest I am a Ph.D. dropout with a one year of career gap. I want to return to academia, but now  I have realized that it was perhaps the biggest mistake to take a gap after quitting my Ph.D. The purpose of taking a gap was to work on my communication skills and get a  new perspective on my work and my career in science. This could have been done within a period of 2-3 months but it became one year long because of my own recklessness. I allowed myself to distract from my goal and I started working on my hobby i.e. Painting. I lost myself there and completely lost track of my time. I was really enjoying everything about this new venture. I took it as a challenge to become better at my skills in painting. Eventually, I became the best in my group and got lots of appreciation. But then, I lost my interest while realizing that there was no further challenge and all there was left is to work and work while crafting your art which was never going to be perfect. It made me realize that what I actually love is to take the new challenges and work on myself. To be an artist was never a career option for me, all I wanted was to learn the skills. That's it!   While counting my achievement in science, I  realized that it was an irresponsible thing to take a gap in doing something that has nothing to do with science. Earlier I had a scholarship and a very competitive mind that has led me to get a Ph.D. position in one of the best labs in the country. Now I don't have the scholarship. I want to go back to my world of research where I was accelerating exponentially. I want to tackle the challenges of science with a new perspective and better skills. I want to be productive more than earlier and ready to take all the tough challenges.  But I feel embarrassed about my past mistake. Because of this, I come across as someone who is not sincere about her career. But I can't help it because the truth is that I did behave insincerely by losing track of my time.  I should have been conscious enough to realize the consequences. Now, what do I do? The past has gone and the vision of the present is crying for a better future. How do I make things better like before? Proof explanation $A\setminus B = A \setminus B \cap A$ $A\setminus B = A \setminus B \cap A$  Proof $A\setminus B \subseteq A \setminus B \cap A$:  $x\in A\setminus B \to x\in A \land x \notin B$  $x\in A \land (x \notin B \color{red}{\lor x\notin A})$  $x \in A \land (x\notin B \cap A)$  $x \in A\setminus B\cap A$  Proof $A \setminus B \cap A \subseteq A\setminus B$:  $x \in A \setminus B \cap A \to x\in A \land x\notin B \cap A$  $x \in A \land (x\notin B \color{red}{\lor x\notin A})$  $x \in A \land x \notin B$  $x \in A \setminus B $  Therefore $A\setminus B = A \setminus B \cap A$  I am confused how the stuff in the red is formed. Can we add an or statement to anything and ignore if its true or not if the first part of the or is true? Object glitching/dissapearing in render due to parenting problems I have completed my animation but I realised when I render it that one of the propellers blades starts to glitch. On some frames it is in shot and some it is out of shot and this is really strange. These 'blades' are both parented to the same 'propeller' and the 'propeller' is parented to the middle ball. I have baked the animation through so this shouldn't be a problem. These propellers are passive rigid bodies. I have tried to figure out this problem and I just can't get to a solution. I've never had it where a rigid body object glitches out like that in the rendered animation, it's almost like it's jumping, which on the render these frames show the object as invisible. The video attached will show.   If anyone has experienced problems like this or knows an answer to my dilemma that would be greatly appreciated, thanks! How can I customize a system locale? Is there an Ubuntu theme available to make it look like Windows 7? I want to know is there any theme available make it Ubuntu look like Windows 7 ? Finding the maximum likelihood estimator Find the MLE of the unknown parameter $\theta$ when $X_1,X_2,...,X_n$ is a sample from the distribution whose density function is: $$f_X(x) = \frac12e^{-|x-\theta|}, -\infty&lt;x&lt;\infty$$ What I did so far: $$\text{maximize }(\frac12)^ne^{-|x_1-\theta|-|x_2-\theta|-...-|x_n-\theta|} \\ \text{thus we want to minimize }|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|$$ Since $|x_i-\theta|$ is positive for all $i$, we want to solve for $\theta$ so: $$|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|=0$$ What do I do from here? I have an exercise found on a list but I didn't know how to proceed. Please, any tips?  Let $X$ be a connected subset of a connected metric space $M$. Show that for each connected component $C$ of $M\setminus X$ that $M\setminus C$ is connected. Recovering broken or deleted NTFS partitions