C++ objects passed (by value) to a vector are ignoring function overwriting
What is object slicing?
Why aren’t my villagers breeding? I’ve got one villager up 7 blocks surrounded with 6 doors. On ground level I have villagers who are supposed to breed. They are willing, their inventories are full of potatoes, and I’ve been sitting here for hours.  Hearts are popping up above their heads but nothing happens. I am playing on Xbox One. Why are there holes in the icing? I tried to follow the new Blender 2.8 tutorial from Blender Guru.   When entering "Sculpting" with the icing there were suddenly alot of holes in it. Why is this? I applied to a program that I had been striving for in my undergrad, at a top school, but I've since felt overwhelmed with the thought of going this year. I think I should have waited until I was absolutely sure I could handle grad school emotionally and financially. I am so anxious now, thinking I've ruined my opportunity with this school if I don't go.   I am seriously considering withdrawing my application, but I'm very worried about how it might hurt me in the future when I reapply.  Otherwise I may have to decline if I am accepted and reapply. Deciphering the RSA encrypted message from three different public keys I have three different 1024-bit public keys with common exponent $e$ but different moduli. A message $m$ is encrypted (without padding) using the three keys, which results in three different encrypted messages.  Given the three pairs of public keys $(N_i,e)$ and the encrypted messages $c_i=m^e\bmod N_i$ , how do I decipher the original message $m$ ? Are enemies with immunity to the Poisoned condition unaffected by Contagion? After the , the spell  now inflicts the  condition upon a successful melee spell attack. The relevant spell text is below, with updated portions highlighted in bold:  Your touch inflicts disease. Make a melee spell attack against a creature within your reach. On a hit, the target is poisoned. At the end of each of the poisoned target's turns, the target must make a Constitution saving throw. If the target succeeds on three of these saves, it is no longer poisoned, and the spell ends. If the target fails three of these saves, the target is no longer poisoned, but choose one of the diseases below. The target is subjected to the chosen disease for the spell's duration. Since this spell induces a natural disease in its target, any effect that removes a disease or otherwise ameliorates a disease's effects apply to it.  The wording of the spell leads me to conclude that this spell still inflicts a disease, which has the immediate effect of poisoning the target. Therefore, even if a target has poison immunity, they will still make Constitution saves as designated to see if the disease takes effect. However, the line, &quot;At the end of each of the poisoned target's turns...&quot; also leads me to think that an enemy with poison-immunity cannot be the Poisoned target, therefore disallowing the remaining sequence of events. Are targets with immunity to the Poisoned condition therefore immune to contagion? How do I Enqueue styles/scripts on Certain /wp-admin Pages? I have two simple functions that load stuff using  and , something like these:  function admin_custom_css() { wp_enqueue_style( 'stylesheet_name', 'stylesheet.css') };   function admin_custom_js  { wp_enqueue_script( 'javascript_file', 'script.js') };   ... and a few admin pages, created with  and   function my_menu() {    add_menu_page('Page 1', 'bar', 'something', 'else', 'foo');    add_submenu_page( 'theme_menu', 'Subpage 1', 'Subpage', 'something', 'else', 'foo');  } add_action('admin_menu', 'my_menu');    How do I load my two functions only on these pages?  Right now I'm using:  add_action('admin_init', 'admin_custom_css' );  add_action('admin_init', 'admin_custom_js' );     But it loads my files on every admin page, which is not nice at all.  Can I do this via one simple line in functions.php or have to enqueue them within my pages separately (I prefer the first option strongly, since I'd have to edit a lot of admin-page-creating-functions).  Thanks! Using launchd to update MacPorts I want to use launchd to update my MacPorts tree periodically (i.e. port selfupdate.  I have created /Library/LaunchDaemons/org.macports.selfupdate.plist:   $ ls -l /Library/LaunchDaemons/org.macports.selfupdate.plist -rw-r--r--  1 root  wheel  669  8 Nov 12:49 /Library/LaunchDaemons/org.macports.selfupdate.plist   It has the following contents:   &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;Label&lt;/key&gt; &lt;string&gt;org.macports.selfupdate&lt;/string&gt; &lt;key&gt;ProgramArguments&lt;/key&gt; &lt;array&gt;     &lt;string&gt;/opt/local/bin/port&lt;/string&gt;     &lt;string&gt;selfupdate&lt;/string&gt; &lt;/array&gt; &lt;key&gt;StandardOutPath&lt;/key&gt; &lt;string&gt;/var/log/org.macports.selfupdate.log&lt;/string&gt; &lt;key&gt;StandardErrorPath&lt;/key&gt; &lt;string&gt;/var/log/org.macports.selfupdate.err&lt;/string&gt; &lt;key&gt;RunAtLoad&lt;/key&gt; &lt;true/&gt; &lt;key&gt;StartInterval&lt;/key&gt; &lt;integer&gt;604800&lt;/integer&gt;&lt;!-- 1 week --&gt; &lt;/dict&gt; &lt;/plist&gt;   I've loaded it and verified that it's loaded:  $ launchctl list | grep macports -   78  org.macports.selfupdate   But it doesn't look like it actually run.    $ port info wireshark Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. wireshark @1.12.8_3 (net) ...   What am I missing? Recommended way to save uploaded files in a servlet application How does one prove that the Klein bottle cannot be embedded in $R^3$? I'm talking about smooth embeddings. Resizing or expanding a CoreStorage volume sql server linked server to oracle returns no data found when data exists Can a homomorphic encryption scheme be made CCA2 Secure? Is it possible to modify a homomorphic encryption scheme so that it can be CCA2 secure?  From the definition of a homomorphic scheme, it seems that it is malleable, which would result in lack of CCA2 security. So, if we use the regular method to convert a CPA secure scheme to CCA2 secure scheme (using a hash of the message and a random value), will it still preserve its homomorphic property? Please correct me if my understanding is wrong. Bookmark panel in Chrome/Chromium like in Firefox What does $\lim\limits_{x \to \infty} f(x) = 1$ say about $\lim\limits_{x \to \infty} f'(x)$? Given that $f$ is differentiable, what does $\lim\limits_{x \to \infty} f(x) = 1$ say about $\lim\limits_{x \to \infty} f^\prime(x)$ ? Intuitively I feel that it's $0$.  I attempted to solve this by trying to evaluate $$\lim_{x \to \infty} \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} $$ by trying to interchange the limits after showing that $\frac{f(x + h) - f(x)}{h}$ converges uniformly as $x \to \infty$. But I couldn't proceed further.  Trying to work backwards, as a specific example, $f(x) = \arctan(x)$ came to my mind. It's derivative certainly goes to $0$ as $x \to \infty$. Doesn't this show that $\frac{f(x + h) - f(x)}{h}$ converges uniformly to $0$ as $x \to \infty$ ?  I'm totally confused! I would really appreciate if anyone told me what I am doing wrong. Studying from Roman's Advanced Linear Algebra, I want to prove that $$U^* \otimes V^* \cong (U \otimes V)^* \cong \hom(U,V;\mathbb{F})$$ The author proves that $U^* \otimes V^* \cong (U \otimes V)^*$ by showing that there is an unique linear transformation   $$\theta:U^* \otimes V^* \to (U \otimes V)^*$$  defined by $\theta(f \otimes g)=f \odot g$ where $(f \odot g)(u \otimes v)=f(u)g(v)$  I want to prove that $U^* \otimes V^* \cong \hom(U,V;\mathbb{F})$. I tried to use the universal property by fixing $f \in U^*, g\in V^*$ and defining $S: U^*\times V^* \to \hom(U,V;\mathbb{F})$ as $S(f,g)=F_{f,g}$, where $F_{f,g}(u,v)=f(u)g(v)$, but I got stuck. If I design a PC for use as an NPC, how much XP should he give when killed? As part of an early quest, my PCs are likely to face off against a wizard.  The problem here is that the stat block for Mage NPCs listed in the Basic Rules has a Challenge Rating of 6, while the PCs are going to be five Level 1s. So, instead of messing with the stat block and risk weakening it too much/too little, I'm choosing to create a Level 1 Wizard PC and use it as an NPC for this quest.  The problem with that is that, as far as I can tell, there aren't any designated rules for assigning either Challenge Ratings or XP values to a PC. So, should I just give the wizard a Challenge Rating equal to his level (and thus have him give 200 xp when killed), or is there a better way to do this?  (This is different from , because he's asking for a way to assign a level to an NPC, while I'm asking for a way to assign an XP value/Challenge Rating to a PC (for use as an NPC). Similar questions, but different.) $_POST vs. $_SERVER['REQUEST_METHOD'] == 'POST' Hidden features of Python ffmpeg synchonization of libfdk_aac (or libfacc) and libx264 How to synchronize libfdk_aac and libx264 streams?  ffmpeg -i pipe_libfdk_aac.fifo -i pipe_libx264.fifo -c copy -f flv flv_stream_pipe_or_rtmp.output   I'm always receiving the same asych in all cases: saving file on file system, rtmp-using or raw pipe out. Is it possible to syncronize them?   ffmpeg version N-66924-gaba61b2 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 15 2015 12:50:29 with gcc 4.6 (GCC) 20120106 (prerelease) configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/qwerty/work/android-ndk-r10b86/android-ndk-r10b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi- --sysroot=/home/qwerty/work/android-ndk-r10b86/android-ndk-r10b/platforms/android-3/arch-arm --extra-cflags='-I/home/qwerty/x264 -I/home/qwerty/ffmpeg_build/mp3/build/include -I/home/qwerty/faac/output/include -I/home/qwerty/ffmpeg_sources/fdk-aac/build/include -I/usr/local/include/ -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-L/home/qwerty/x264 -L/home/qwerty/ffmpeg_build/mp3/build/lib -L/home/qwerty/ffmpeg_sources/fdk-aac/build/lib -L/home/qwerty/faac/output/lib -L/usr/local/lib/ -lrtmp -lpolarssl' --enable-version3 --enable-gpl --enable-nonfree --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-librtmp --enable-libfaac --enable-libfdk_aac --enable-libmp3lame --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5 libavutil      54. 10.100 / 54. 10.100 libavcodec     56.  8.100 / 56.  8.100 libavformat    56.  9.100 / 56.  9.100 libavdevice    56.  1.100 / 56.  1.100 libavfilter     5.  1.106 /  5.  1.106 libavresample   2.  1.  0 /  2.  1.  0 libswscale      3.  1.101 /  3.  1.101 libswresample   1.  1.100 /  1.  1.100 libpostproc    53.  3.100 / 53.  3.100 I am very interested in the evolution of the evolution process itself. There are of course a lot of things that influence how evolution will work, but for this question, I am interested in things that are only related to the evolution process. Examples could be increase chance of mutations in newborns, change in reproduction age, and similar. I am specifically interested in observation where the evolution process itself has adapted to a change in the environment.