How to get current time in Datetime format PHP? I need to get current time in UTC to store in in datetime field(2019-08-17 00:00:00) type in MySQL.  How to get it in PHP?  I tried: now(); it gives me milliseconds
How do I get the current date and time in PHP? Which PHP function can return the current date/time?
Two logos in beamer after certain frame When there is less than 5% battery left on a mac, the battery indicator goes red and system performance significantly drops - presumably in an attempt to make that remaining 5% last a little longer.   Is there a way to manually trigger this, so that the system performance is low (and battery life longer), even when there is plentiful battery?   This would theoretically be a way of extending the number of hours on a battery beyond the rated amount. Can an irrational number raised to an irrational power be rational? Is there some way to PUSH data from web server to browser? Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load.  Is there any better method (even using Ajax) other than polling the server frequently? Why do I get 'HDIO_GET_IDENTITY failed' message when booting with external usb hard drive? I've installed Ubuntu 11.10 on an external USB (2.0) Hard Drive (/dev/sdb1) but when Ubuntu starts I get a message that says:     ata_id[279]: HDIO_GET_IDENTITY failed for '/dev/sdb': Invalid argument   where I made a mistake? The first HD contains Windows 7 (the official OS of my packard bell notebook). Proving Geometric Hahn-Banach Implies Analytic Hahn-Banach I've come across a proof online of the H.B theorem using the goemetric version.   There is a step in the proof which im not sure why is true and it is as follows:   Let $X$ be a linear space and $M \subset X \times \Bbb R$ be a maximal subspace.  Then $M = G(F)$ for $F :X \to \Bbb R$ linear.   Someone can show me why this is true?   Maybe I misunderstood the proof, its the last paragraph of Matrin's answer here -.   Thanks a lot for helping! Change the default-view of Media Library in 3.5? When inserting media into a post, is there a way to change the default-view of the Media-Library from "All media items" to "Uploaded to this post"?    There is another thread where this question was extracted from: Sci Fi action movie where an elite group of people control business through a game they play online I saw a movie where people are running from a group of powerful killers or a naughty company/organization.  A woman was hired to find the entity/company. A very overweight Asian man talks to them on line at one point. (When I say overweight, I mean 400 pounds plus)  He talks to a virtual dolphin and tells it he is sorry but he cannot play with the dolphin that day. Eventually, the people find the fat guy in real life. He is sitting on a Chinese style boat in a river (I think it was a river). (He is sitting in the rear of the boat. The boat is rather small. He is wearing a loin wrap like a sumo wrestler. In fact, I should most likely call him a sumo wrestler to describe the look.)  He had implants and wires coming out of his head like the Borg Queen did.  There is another part in the movie, where he replies to someones concern, saying, "I live a life of wonder..." (or something similar).  By the time the movie is over, the evil force has caused his death. A team of Yakuza style (might actually be the Yakuza) commandos tear through everything trying to stop the truth from being discovered. The huge Asian man ends up leaving little messages, like parts of himself, to guide the woman to the truth. The ending reveals the naughty company/organization is a group of elite power brokers that control business by playing a game. Corporations lose or gain ground over nothing more than the turn of a game. (Including totally going out of business or making a fortune from nothing.)  Do you have any idea what movie this was? Origins of Tension First of all, I have a confusion about the definition and idea of Tension. For example, in my Physics Textbook, the idea of tension is written like this: &quot;Let's say there is a wire with a cross-section area of A and its length is $L_o$. If I hang the wire from a point and hang a weight of W on the other end of the wire, it will generate a repulsive force of T. This T is called the Tension Force.&quot; For me, this only explains to me what force will we call tension force, but it doesn't quite explain to me what is exactly this Tension force or where it originates from. Also, I have been doing pulley problems (Figuring out the acceleration of weights hanging from pulleys)  by first labeling all of the tension forces by $T_1$, $T_2$, and then doing some math with them to get my answer. But It bugs me that I am using these tension force values without even knowing where they came from or what they are. My idea was, maybe Tension force comes from the intermolecular bonds between the molecules of the rope, rubber or wire, etc. But even then, I have some different situational questions. For example:  Why you can't push a rope, copper wire against a wall?  What happens when I pull on two ends of a wire with 2 different forces?  Does the force increase proportionally to the applied force? Why does the wire break after a certain amount of force is exceeded.?  Does the idea of tension apply to everyday objects,(for example, a coffee mug, glass pane, etc). If it does, can I use something like a heat map or 3D equation to describe the tension in every point of the object? [Edit: more concisely, is there a mathematical way to show the various amounts of tension forces on a 2D (like a metal sheet) and 3D objects (like a football ) instead of a 1D object(like a string)].  If I take a metallic object like a paperclip or a thin wire. I can bend It multiple times and it eventually breaks into two pieces. I used to do this to pull of capacitors from old circuit boards. But does it happen with things like ropes or paper? If not, why it doesn't happen? ( Maybe it has something to do with intermolecular forces and the various internal stresses?)  Let's say I have an iron bar and I have thrown it out into space. Does that iron bar have equal stress distribution or still uneven or will the stress on all points become zero? (Is there even such thing as zero stress?) In some text it is given that we can't assign constant values to a reference variable. When I executed such a program I could do it. Is there any condition we can't assign a constant value to a reference variable? Verb/Subject Agreement Make/Makes What are the requirements to use iMac screen as a second monitor - Target Display Mode? I have a Surface Pro 4 and an iMac (late 2019). I would like to connect my Surface Pro to the iMac to use the iMac screen as a second monitor.  Is that possible?  What are the requirements to use an iMac as a second screen? Identify $P(2014)$ if $P(i)=1/i$ for every positive integer $1\le i\le2013$ Suppose $P(x)$ is a polynomial of degree $2012$ and $P(x) = 1/x$ when $x$ takes the integer values $1\cdots2013$ (inclusive). What is the value of $P(2014)$?   I get $1/1007$ but I'm not sure if it's right, and my method is very inelegant. Why is spectrum obtained by sunlight, said to be continuous? My teacher spoke about atomic spectra today, and he explained that, unlike the spectrum obtained by analyzing the sunlight, the spectra of atoms are not continuous.     I have a question about this - even the sunlight has the radiations emitted by the atoms of the elements which compose the sun, still spectra is continuous, which is in opposition to the statement that atomic spectra is discontinuous. So, spectrum obtained by sunlight is continuous even though it atomic spectra. In order to account for spectrum obtained by the sunlight to be continuous and atomic spectra to be discontinuous, can we confirm that sun consists of all those elements (sodium, helium, neon, mercury, etc) which emit the colors of frequency belonging to visible region? How to make Fedora user a sudoer? RF Energy Harvesting Why can energy invested in RF radiation not be harvested fully? What are the main factors that affect this? Is there any significant research nowadays that fully describes this process? I stand on the conclusion: "Energy moves from one form to another.", but in this case why can it not be harvested in that quantity to use it for powering low-power devices or store it in significant quantities in some batteries for later use? Why is it not profitable nowadays and why is it not used today like energy from water, wind and other energy sources? Is there a way to disable the hardware on/off switch for the Wireless interface? Is God either immoral or not omnipotent? The usual (Christian) justification for suffering/evil in the world created by a benevolent God is freedom of the will. However, the more interesting question is not about the source of evil (which the free will may very well be) but why God chose to create the world such as it is. Why not create a world with freedom of the will, but without suffering? Even assuming that God is bound by logic such combination doesn't seem to be logically impossible: creatures certainly can do good of their own free will. There are two alternatives.  1) God is powerful enough for all practical intents and purposes, enough to be called God, but not omnipotent. He created only the best of all possible worlds (Leibniz). This position is perhaps the most defensible philosophically, it also avoids logical problems with , etc., but it does diminish deity's status and invites unpleasant questions like what limits God (logic only, inert matter, outer chaos, other beings), is there someone/thing more powerful, etc.    Interestingly enough, the original Christian theodicy wasn't free will. St.Augustine says poetically "the canvas of creation requires both the black and the white paint". "Requires" here can be interpreted differently,  is to explain the black by the "just punishment" for the original sin, which brings us to Adam and Eve, and back to the free will. But if God is still omnipotent and hence omniscient creating creatures he knew would sin, and then punishing them for it is hardly an improvement.   2) However, Augustine can be read more straightforwardly. Evil is "required" for the perfection of the world just like black paint is required for the perfection of a painting (evil can be interpreted as lack of good rather than something onto itself but that is beside the point). God is immoral, and he is beyond our conception of morality, his notion of perfection is his own. This is much bolder, and similar to Plotinus's position on the existence of the One, the One can not exist because it is "prior to all existence". But it does evoke the unpleasant taste of "ends justify the means". It is one thing to use "God is beyond our logic and comprehension" to get rid of unliftable stones, it is quite another to convince people to worship an immoral perfectionist.  Formally, there is another logical possibility of asserting both morality and omnipotence, but defending the morality of creating a world full of suffering, for a higher purpose perhaps. For example, the suffering only appears bad to us, not to an absolute being in its wisdom. But this simply redefines morality and is only different in phraseology from the Augustine's position. The question is asked in human terms and has to be answered in kind. One is free to argue that God is beyond human logic and/or morality, but it still leaves him immoral as commonly understood.   There does not appear to be a way to square this circle, one has to accept Leibniz's or Augustine's alternative (or both) and deal with the downsides. Option 2) looks more consistent, but it is rarely embraced, at least not openly. Perhaps, for "public relations" reasons it is more attractive to dismiss the question with something like "this is beyond us" or change the subject to the free will.      What are the modern theological positions on the morality/omnipotence in catholisism, protestantism, etc.? Is the question relevant to other religions?   EDIT: I am not sure that it came through but by immoral I did not mean morally deficient or evil. Rather at the God's plane of being morality becomes meaningless, like tastes or smells are meaningless when applied to elementary particles. Create NSString by repeating another string a given number of times How to set up beamer to grey out past items but hide future items?