Resize a button depends the Smartphone
resizing a BUTTON through CSS
Can my friend and I play minecraft together with different mods? I'm wondering if I could play Minecraft with my friend. A modded Minecraft, only myself with mods and him without mods.  Is it possible? How to do the same crop on a batch of photos? I've got a batch of photos (an owl coughing up a pellet in case you're curious).  I want to make an animated GIF out of them, but the result would be improved if they were all given an identical crop first.  I'm currently using Picasa for my basic photo editing on a Windows 7 PC.  While Picasa does have batch editing, crop is not one of the items on the batch menu.  Does Lightroom have a batch crop?  If there's a way to get Picasa to show me the coordinates of the crop selection rectangle, I could also use that information to do the same crop repeatedly.  Are there any tools that let you crop an animated GIF?  I know I can create the animated GIF by uploading the component images to Google+ and then looking in the Auto Awesome area. I don't know about tools for working with animated GIFs. I wanted a list of sub-domains of Stack Exchange that are not mentioned over here   Some of the sub-domains I found which were not mentioned are       Are there any other which are not mentioned?    Mentions by , ,             Other mentions below which are not mentioned in "All Sites" but are mentioned in the drop down menu on the top left of the Stack Exchange website         Any other website that's left out ? 2018 Macbook Pro & Dual Monitors I'm trying to hook up dual monitors (Samsung CF390) to my MacBook Pro, but when I do, I only have the desktop image projecting on both screens. When I go into Settings > Display, the "Arrangement" option isn't available.  I have both monitors' HDMI cables running through 1 USB-C to HDMI adapter. (The adapter has two ports.)  Is the solution to this problem having two adapters? My thinking is even though the adapter has 2 ports, the MacBook hardware or software can't Fully make use of both displays.   What can I change to get three total displays working on macOS High Sierra (10.13.x)? How to dynamically change a web page's title? Selected references without hyperlink When using the hyperref package, is it possible to tell LaTeX not to create a link for some references?  In my case the page number is displayed in the footer in  \fancyhf[FC]{\thepage\ of \pageref{pg:end}}   which is what I want. Unfortunately every single page in the document then has a link to the final page, which is a bit silly.  Any ideas on how to fix that? A clock in freefall Time dilation  using Schwarzschild metric for a non rotating spherical body is: $$t_0=t_f\sqrt{1-\frac{2GM}{rc^2}}$$  For such a non rotating spherical body, what would the time dilation of a clock in vacuum free-falling from infinity be?  (If the answer is non-trivial; a high level outline of the calculation would suffice / be appreciated)  Edit: I am currently working on an iOS app that is trying to model the mechanism underpinning relativity.  So, far the mechanism that I have created is shockingly simple and shockingly good at conforming to Relativity.  However, I am trying to break it.  I am trying to find any possible areas where the two may diverge.  I have noted that using my model a clock in freefall will experience no time dilation, i.e. $t_0=t_f$ and I want to make sure Relativity agrees.  I have noted the gravitational component of time dilation above.  Since my clock is moving one might also expect a kinematic time dilation.  I can calculate the velocity of my clock: $$E_k=\frac{1}{2}mv^2$$ $$E_p=\frac{-GMm}{r}$$ $$v=\sqrt{\frac{2GM}{r}}$$ Plugging this velocity into the kinematic time dilation equation: $$\Delta t'=\frac{\Delta t}{\sqrt{1-\frac{v^2}{c^2}}}$$ $$\Delta t'=\frac{\Delta t}{\sqrt{1-\frac{2GM}{rc^2}}}$$  At this point one might make the observation that the kinematic dilation is the inverse of the gravitational dilation and therefore conclude that: $$t_0=t_f$$ Runtime error : ERROR 000358: Invalid expression using SelectLayerByAttribute in ArcPy? I cannot for the life of me persuade SelectLayerByAttribute to work (I need to automate this for a complex script).  Working in ArcMap's python console on already loaded shapefile, the format below:  import arcpy from arcpy import env arcpy.env.workspace = r"C:/Users/.../working" arcpy.SelectLayerByAttribute_management("layer", "NEW_SELECTION", " 'ATTRIBUTE' = 'Criterion' ")   results in error:     Runtime error : ERROR 000358:   Invalid expression Failed to execute (SelectLayerByAttribute).   An alternative method:  import arcgisscripting import arcpy gp = arcgisscripting.create(9.3) gp.workspace = "C://...//working" sFile = "C://...//working//shapefile.shp" lyr = "layer" gp.makefeatureLayer_management(sFile, lyr) gp.toolbox = "management" gp.SelectLayerByAttribute("layer", "NEW_SELECTION", " 'ATTRIBUTE' = 'Criterion' ")   .. selects everything, including features that don't meet the criterion!  Does anyone have any idea what's going wrong?  I've read some pages on , but found no solution that works here. The working directory is correct. The attribute field and criterion are correctly specified (case sensitive etc), etc. Its very confusing. Show that $\sum\nolimits_{d|n} \frac{1}{d} = \frac{\sigma (n)}{n}$ for every positive integer $n$. Show that $\sum\nolimits_{d|n} \frac{1}{d} = \frac{\sigma (n)}{n}$ for every positive integer $n$.   where $\sigma (n)$ is the sum of all the divisors of $n$ and $\sum\nolimits_{d|n} f(d)$ is the summation of $f$ at each $d$ where $d$ is the divisor of $n$.    I have written $n=p_1^{\alpha_1}p_2^{\alpha_2}p_3^{\alpha_3}.......p_k^{\alpha_k}$ then:- $$\begin {align*} \sum\nolimits_{d|n} \frac{1}{d}&amp;=\frac{d_2.d_3......d_m+d_1.d_3......d_m+........+d_1.d_2.d_3......d_{m-1}}{d_1.d_2.d_3......d_m}  \\&amp;=\frac{d_2.d_3......d_m+d_1.d_3......d_m+........+d_1.d_2.d_3......d_{m-1}}{p_1^{1+2+...+\alpha_1}p_2^{1+2+...+\alpha_2}p_3^{1+2+....+\alpha_3}.......p_k^{1+2+....+\alpha_k}}  \\ \end{align*}$$ where $d_i$ is some divisor among the $m$ divisors. Then I cannot comprehend the numerator so that to get the desired result.  Also suggest some other approches to this question. None of the physics sensors in my game work, I'm trying to create an AI man that chases after a player, but for whatever reason, he just won't sense the player, I've tried copying and pasting the property name just to be sure, but that's not it. Is there a way to increase space between bibliography without using biblatex? Each time I changed and saved .config/user-dirs.dirs, and after restarted the system, the XDG_DOWNLOAD_DIR are reverted:  diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs index 8f6e2db..dcff34e 100644 --- a/.config/user-dirs.dirs +++ b/.config/user-dirs.dirs @@ -7,11 +7,9 @@  #   XDG_PUBLICSHARE_DIR="$HOME/public"  XDG_TEMPLATES_DIR="$HOME/public/template" -  XDG_DESKTOP_DIR="$HOME/private/desktop"  XDG_DOCUMENTS_DIR="$HOME/private/doc"  XDG_PICTURES_DIR="$HOME/private/picture"  XDG_MUSIC_DIR="$HOME/private/music"  XDG_VIDEOS_DIR="$HOME/private/video" - -XDG_DOWNLOAD_DIR="$HOME/var/downloads" +XDG_DOWNLOAD_DIR="$HOME/"   How to make my changes permanent? One time pad: why is it useless in practice? The symmetric cryptosystem one-time pad (OTP) seems to be very beautiful since it is perfectly secret according to Shannon. Many books, however, point out the main drawback: one must create a secret key the same length as the plaintext. For this reason, the concept of perfect secrecy has these days been abandoned, and we prefer other cryptosystems.   Now, for example, suppose I want to encode my text message with the ASCII scheme, and moreover suppose that this plaintext is 10 gigabytes long, therefore (using an OTP) the key must be the same length, 10 gigabytes. I think, however, this is a ''sustainable price'' because I'm sure that the ciphertext can't be attacked.  Practically, I don't understand why having such long keys with an OTP is a big disadvantage if we reach "the dream"-- namely, perfect secrecy. Nowadays the storage of information is very easy, so what is the real problem? I can, for example, share the "long key" in person. I haven't seen the question stated precisely in these terms, and this is why I make a new question.  What I am interested in knowing is not the definition of a neural network, but understanding the actual difference with a deep neural network.  For more context: I know what a neural network is and how backpropagation works. I know that a DNN must have multiple hidden layers. However, 10 years ago in class I learned that having several layers or one layer (not counting the input and output layers) was equivalent in terms of the functions a neural network is able to represent (see Cybenko's ), and that having more layers made it more complex to analyse without gain in performance. Obviously, that is not the case anymore.  I suppose, maybe wrongly, that the differences are in terms of training algorithm and properties rather than structure, and therefore I would really appreciate if the answer could underline the reasons that made the move to DNN possible (e.g. mathematical proof or randomly playing with networks?) and desirable (e.g. speed of convergence?) When does the placement of a resistor matter? I've been a programmer for years but am very new to electronic engineering. So far I see people saying it doesn't matter where a resistor goes in your LED circuit as long as it is present, but it sounds like that's the nature of the basic LED circuit.  When does the placement of a resistor start to become important? Adding Image to a Polygon David studies linguistics during the flight to LV-223. We get to listen and read a fable. Is it written in a real language? What is the name of the language? Can the fable be translated?  Approximate quotation:     hjewis jasma hwaelna nahast akwunsez dad'kta, tam ghermha vagam ugenthe Is it possible to host a web server from behind a NAT My PC is behind a NAT router that has a public IP address. If I want to host a website then I believe I need a domain name which I can purchase from some site which would pledge to resolve all DNS requests for that domain name and send the IP address of my NAT router (assuming I do not want to host my domain name on their servers). Now I want to host a web server on my computer.   What changes should be done to the NAT router's configuration to forward all HTTP requests for example.com to my PC in the internal network. Is the above strategy correct? Is it commonly used? delay JQuery effects I want to fade out an element and all its child elements after a delay of a few seconds. but I haven't found a way to specify that an effect should start after a specified time delay. Border on borderless pie chart, Illustrator CC I'm an Illustrator beginner, and I have just made pie chart. I removed the borders but I still end up with a 1 pixel wide border between the pieces of the pie whenever I export to PDF or AI. Please see the attached image (zoomed to make it easier to spot it).    The question is: How do I get rid of it?