I have a seemingly trivial question regarding conditional expectation. Consider $x$ and $y$ be two integrable random variables on Probability space (X, $\Sigma$, $P$) such that $$E(X|Y) =_{a.s} Y$$ and $$E(Y|X) =_{a.s} X$$ Show that $$X=_{a.s} Y$$  The thing looks like a simple proof result, but I don't know how to move on after showing that$$\int_{B} Y = \int_{B} X$$ for all $B \in \sigma(x)$ and $B \in \sigma(y)$  Now any hint on how to proceed? Thank you so much in advance


Daemons on a web server - best practices

This might be an obvious thing to seasoned Ops but, please, bear with me on this one (I'm a dev with the side effect of having to manage our servers too).  At the moment, one of several servers (load balanced), in addition to running the usual customer-facing web server also runs a number of labour intensive daemons (they interact with the caching server, db server, and several 3rd party web services). The work done by these daemons increases with the number of current site visitors (visitors across all web servers).   My question is, would you say it's better to move these daemons to their own server that isn't sharing resources with having to also function as a regular web server? Alternatively, would moving this one server that runs them into a new one with more run time memory available to it be beneficial at all?  Thanks.


Expectation of sample mean, given maximum and minimum order statistics

Let $X_1, · · · , X_n$ be i.i.d. $\mathrm{Uniform}[\alpha, \beta]$, where $\alpha$ and $\beta$ are unknown.   Show that  $$ E(X_\ast|X(1), X(n)) = \frac{X(1) + X(n)}{2} $$  where $X_\ast$ is the sample mean, and $X(n)$ is the $n$th order statistic.  I know that $X(1),X(n)$ are the sufficient statistics for this family (minimal in fact) and intuitively it makes sense that the expected value of the sample mean will lie in the middle of the max and min. But how do I show it rigorously?


Why does smoke stop working after 250 frames?

I've tried a lot of the videos, how to's answers in here on how to get the smoke to run past ~150 frames, nothing works, bake I tried too. using cycle render and particles, Domaine smoke cache set to ~5000 frames


Any epi with codomain $P$ is split implies $P$ is projective

I'm struggling to prove that if any epi with codomain $P$ splits, then $P$ is a projective object. The converse direction I proved by factoring the identity to give a right inverse of the pi.  How can I prove this claim?


How can I copy one side of a rig to the other?

I need to mirror the half part of the rigging of my character, I remember it was something with the scale or rotation.. does anyone know which was the right solution step-to-step?


The action  $$S=\int L \;\mathrm{d}t$$  is an important physical quantity. But can it be understood more intuitively? The Hamiltonian corresponds to the energy, whereas the action has dimension of energy × time, the same as angular momentum.  I've heard the action being described as a measure of change, although I don't know how this description can be justified.


Updating Layer tree after changing symbology with PyQGIS

When I change symbology for a given QgsVectorLayer (QGIS 2.14.16 LTR) by  r=iface.activeLayer().rendererV2() r.symbol().symbolLayers()[0].setColor(0,0,255,255)   as shown here:    and refreshing the map content by  iface.mapCanvas().refreshAllLayers()   I get the expected result, but the Layer Tree does not update as shown here:    What am I missing, and how can I update the Layer tree from PyQGIS programmatically?


How can I get HDRI shadows in an Eevee scene?

I'm currently testing Eevee.  Seems so promising !  Here, i'm trying to make my Eevee render the closest I can to my previous render Cycles of the same scene. This scene do not have any lights but an HDRI background.  Thing is, the renders looks very, very different.  How can I improve this ?  Cycles:   Eevee:   And .  Thanks a lot.


Music transfer from Ubuntu 16.04 to iOS 10 iPhone 6+

I installed libimobiledevice package and I can access the pictures of my iPhone using the files browser.  But my iPhone doesn't show up in Rhythmbox. Why is that? What could I do to transfer music into my iPhone in this case?


Do I have a virus on my phone? A message from an Android app says so

I have just received a message from an Android app on my phone saying my phone has been infected with a virus and to click a link to fix the problem.   I'm not sure I trust this, is it possible to have a virus on Android?


Normed Division Algebras: Why those dimensions?

I recently read a fascinating article about string theory, which discussed higher-dimensional algebras and their applications to supersymmery. The author mentioned that there were only four algebras in which this was possible:   $\mathbb{R}$ (dimension 1),   $\mathbb{C}$ (dimension 2),   $\mathbb{H}$ (Quaternions, dimension 4),   $\mathbb{O}$ (Octonions, dimension 8).  My question is why does division not work in other dimensional algebras? What's so special about 1, 2, 4, and 8 that make this possible? I am looking for a high-level answer to this question, as I don't have much familiarity with algebra.


When a word has both English and 'Latin' plurals, which style should I use?

Many 'Latin' words in English have both Latin-style plurals and English-style plurals:         referendum – referendums, referenda.   minimum – minimums, minima.   gymnasium – gymnasiums, gymnasia.    aquarium – aquariums, aquaria.   amoeba – amoebas, amoebae.   antenna – antennas, antennae.   formula – formulas, formulae.   index – indexes, indices.   appendix – appendixes, appendices.      In technical language, generally, Latin-style is the only proper form of Latin plurals.   In all other contexts where both Latin-style and English-style are proper, which style of plural should I use?


Say I have 2 comparison  if ((length >= 524288) | (length == 0)) {       //do something... }   vs  if ((length >= 524288) || (length == 0)) {       //do something... }   are these the same thing since when you bitwise OR 0001 0000 it turns into 1? Also is there any particular reason to use bitwise OR in this situation?


How to center images/paragraphs/buttons - HTML & CSS

How can I center paragraphs, buttons on a page? I did it via text-align and centered, but I just can't figure out how to center it vertically too... I achieved it with padding but the position changes depending on resolution and I'm really looking for it to stay centered in the middle of the 'block' at any screen size.  I got a jsfiddle showing you what I have!   This is the main issue..

Portfolio

 IT / BUSINESS / WEB
  <button class="cv">Download CV</button>


Show that $f'_n \rightarrow f'$ uniformly on every compact set.

Assume that $f_n,f:D(0,1)\rightarrow C$ are holomorphic. and $f_n \rightarrow f$ uniformly on every compact set. we need to show that $f'_n \rightarrow f'$ uniformly on every compact set.  I kind of have no idea how to approach this one, its from a test I attended and I'm going for a second go at it and I want to understand the first one, first.


Yes, In standard practice the company logo in the nav should always link back to the homepage right.   However, let's say I am in a new subsection or micro-site and the user starts down a conversion funnel, completing forms and booking appointments. Imagine the user makes an error and wants to start the process again, so they click on the logo in the navigation. Where should that logo take you?  Company global homepage or microsite homepage?  Is there any data to back up either decision?


Term for extended alliteration - a specific form of assonance

In answering a  I found myself in need of a term for alliteration but including the first vowel sound, as in "Costa Coffee". An ideal term would be more specific than assonance. I've seen head rhyme used but Wikipedia at least says that's just the same as alliteration. Does such a term exist?


What is the significance of the log base being 2 in entropy? What if we take e or 10 as the base?


How to compare two strings are equal in value, what is the best method?

Always confused about this stuff. Anyone can help?


Ubuntu 12.04 boots to login screen but (I think) X.org crashes on login. Help Appreciated!

I've been running Ubuntu 12.04 since it's debut in 2012 without a single problem. Today I just ran sudo apt-key update && sudo apt-get update and then I rebooted my computer. After rebooting however, it first shows the Ubuntu bootscreen (with the Ubuntu logo and the dots below it) after which it booted to the command line. I could login and navigate around on the command line, but no GUI was loaded at all.  So I tried running sudo startx, but this gave a message saying (among others) the following:     NVIDIA: API mismatch: the NVIDIA kernel module has version 304.88, but   this NVIDIA driver component has version 304.108. Please make sure   that the kernel modle and all NVIDIA driver components have the same   version.   I found  which suggested to do:  sudo service lightdm stop # to stop the xserver sudo apt-get remove --purge nvidia* # to remove all driver elements sudo apt-get update sudo apt-get install nvidia-current sudo reboot   After doing this, it now boots to the login screen where it seems that there are now two users named kramer65 on my computer. One of the two has the default (instead of my personal) background and says my password is incorrect. The other one seems to be my "real" account and  when I type my password it seems to try to show the desktop. Instead however, it shows a black screen after which I think X.org crashes, because it loads the login screen again.  So I guess the Nvidia driver is still not okay, or maybe there is something wrong with the duplicate accounts (both with a username kramer65 (but I guess it's the Nvidia driver).   Does anybody know what else I can do from here? All tips are welcome!  [EDIT] The strange thing is that I can actually login using the guest account, so I don't understand whats wrong with the specific kramer65 user login.


I do understand and am able to reproduce the steps to proove that $$1+2+3+...=-\frac{1}{12}$$ as, for example, shown in the .  I can proove it, but I can't understand it. My brain is unwilling to accept that a series $a = \sum_{i = 1}^{n}i$ with $n \rightarrow \infty$ evaluates to $-\frac{1}{12}$.  So what does it mean? I have two ideas:   Human logic and math is not coherent, so this is an edge case that is not covered. The logic of the universe is not coherent, e.g. a bug / incomplete feature of reality. $-\frac1{12}$ has some deeper meaning we do not know yet.   None of these points seem believable, so I am thinking that my understanding of this kind of Math might be too limited. Maybe you can enlight me?  Also please edit this question if you see mistakes, I am fairly new and definitley not a mathematician. I only know LaTex, that's all.


I'm unable to uninstall MATLAB;  sandeep@sandeep-VPCEH28FN:~$ sudo rm /var/tmp/lm_TMW* [sudo] password for sandeep:  rm: cannot remove '/var/tmp/lm_TMW*': No such file or directory sandeep@sandeep-VPCEH28FN:~$ sudo apt-get purge matlab E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? sandeep@sandeep-VPCEH28FN:~$ sudo apt-get purge matlab-support E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? sandeep@sandeep-VPCEH28FN:~$


HAProxy to terminate SSL also send SSL to backend server

I would like terminate SSL at HAProxy, do some manipulation on the header, rewrite URL and re-encrypt traffic and send to backend servers as SSL?  I can't seem to find a way to do this. I can get regular SSL termination done, and send plain HTTP requests to backend. But I need to send SSL to backend.   I would like to have the following features:   Extract x-forwarded-for headers, to get the real client IP behind proxy. Implement session stickiness using cookie.  Do some URL rewriting.  Send SSL traffic to backend using cookie based session stickieness.    Unless I terminate SSL at haproxy end, I cannot get URL rewriting done.   Any help from the good people here would be highly appreciated.


How to set up Linear mixed model in SPSS?

I am trying to find out how inflammatory markers change in response to a mechanical device change. I have daily readings for the 5 days before the event and for the 5 days after the event. I am expecting a rise in inflammatory markers in the pre readings followed by a fall after the device change. I also need to find out how the change differs in two subgroups (sample sizes of the subgroups are n=21 and n=88). The aim is to find out if the change is significant, to consider these markers as predictors of the device failing and hence needing to be changed.


How would i file handle objects(store / import) in C++

Petroleum test = Set_Petroleum_values();     ofstream fuel("Fuel.txt");     {         fuel << test << " ";         fuel.close();     }   the set values function takes the users input and calls a default constructor for the test object. My aim here is to somehow save the info that is being stored into this object however i am not sure how would i overload the "<<" operator when it comes to file handling. and yes the aim is to store the object so that the info is maintained once different operations and functions are proceeded etc.


Is this possible to build a quantum network?

Since quantum entangled particles can transfer the data of their spin properties faster than the speed of light and without any problem of weak signal, can we use quantum entanglement to transfer phone calls and internet connection? Why are we not building up a telecommunication structure based on this technology? What is stopping us? What are the practical difficulties in this process?


How do definitions of words imbue meaning?   To give you a gist of what I try to discover, I'll define a collection of sets of words and show that their intersection contains all 'circular defined' words. How do these words gain their meaning? And how can definitions using these words be considered meaningful?  Let W be the set of words in a dictionary. Denote by w any word in W. The dictionary contains lemmas of each word it lists; for each word w, the lemma L(w) for word w is a subset of words in W. Let's say that the lemma is also the definition of the word w; for our purpose, we ignore examples of usage (otherwise most if not all words would have circular definitions).  Define the following collection of sets:   D(1) := {w in W | There is a w' in W such that w in L(w')}, the set of words used in definitions of other words. for n>=1, D(n+1) := {w in D(n)| There is w' in D(n) such that w in L(w')}, the subset of D(n) of words used in definitions of words in D(n). D := {w in W | For all n>=1 we have w in D(n)}, the intersection of all D(n).   We have constructed a nested collection of sets: if n>m then D(n) is a subset of D(m) by definition, and D is their intersection. D is the largest set of words which is such that each of its words occurs in the definition of (at least) one of its words.   Lemma. Since W is finite, D = D(n) for some finite n.  Proof. If not, it means that for each n, there is a D(m) such that D(m) is a strict subset of D(n) and we can construct an infinite collection of strict subsets. But there are only a finite number of words in W. Hence, there is an n such that D = D(n).  It follows that we can effectively determine D for any dictionary W by going through W, D(1), D(2), etc. creating the next D(n) until D(n+1) = D(n) = D.  If W is the English language, then D is not empty.   It contains the word 'an' (see , its lemma contains the phrase "an initial vowel").  It also contains cycles of length 2 or longer, such as {oak, acorn} and {foot, ankle}; these words are used in their mutual definitions.   The basic question is about the set D.  How do words in D gain meaning from their definitions?   They seem to be examples of words with 'circular definitions'.  Worse, words in D can occur in any definition (as they belong to D(1)), so how do they help define other words if their own meaning is ambiguous?  Finally, if words' meanings are ambiguous (for example if they have definitions including words in D), how can definitions succeed in taking away this ambiguity?


How to remove a password I know from a PDF, with no degradation, on Linux?

Someone sent me a password-protected PDF. I know the password, but I want to make the PDF password-less, for convenience.  However - I want to make sure I don't lose any of the information in there. For example, I don't want images to be resampled, or vectorized content rasterized, or text runs/paragraphs broken up, or ancillary/non-critical non-printing data to be lost, I want the document properties meta-data to stay the same (well, perhaps I'm a little flexible about that).  Also, since I'm not a PDF format wiz, I'm not sure I can tell when a PDF has been degraded. So, for example, if I print to PDF from a PDF viewer, I'm not sure if the result is satisfactory - until perhaps someday later I'm trying to import it in a document editor or select some of the text and then find out something has changed.  My question is: Is there a way for me to do this which is qualitatively better than printing to a PDF? Perhaps I can simply remove the password somehow, in-place? Or at least ensure maximum-conservatism in the processing?  Notes:   I'm using Devuan GNU/Linux 3.0 (which is about the same as Debian Buster). There's a near-duplicate question,  - but the answers there are Windows and Mac utilities. I've tried using pdftk ... input_pw, but that doesn't work.


How to reset grub to see both windows 7 and ubuntu 12.04?

After reinstalling windows 7 on my computer I receive the follow error on bootup  bootmgr error   I can only boot into windows if I unplug the linux hard drive and I can only boot into Linux if I press Esc to open the BIOS and select the linux hard drive.   I tried using   update grub-install   but that did not seem to help. How do I get grub back to its original self with both OSs to boot into from the grub menu?  Below is my sudo update-grub command:  $ sudo update-grub [sudo] password for gin:  Generating grub.cfg ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.8.0-39-generic Found initrd image: /boot/initrd.img-3.8.0-39-generic Found linux image: /boot/vmlinuz-3.8.0-37-generic Found initrd image: /boot/initrd.img-3.8.0-37-generic Found linux image: /boot/vmlinuz-3.8.0-36-generic Found initrd image: /boot/initrd.img-3.8.0-36-generic Found linux image: /boot/vmlinuz-3.8.0-35-generic Found initrd image: /boot/initrd.img-3.8.0-35-generic Found linux image: /boot/vmlinuz-3.8.0-34-generic Found initrd image: /boot/initrd.img-3.8.0-34-generic Found linux image: /boot/vmlinuz-3.8.0-29-generic Found initrd image: /boot/initrd.img-3.8.0-29-generic Found memtest86+ image: /boot/memtest86+.bin done   Below is my fdisk command  $ sudo fdisk -l [sudo] password for gin:   Disk /dev/sda: 120.0 GB, 120000000000 bytes 255 heads, 63 sectors/track, 14589 cylinders, total 234375000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000764a1     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048   226250751   113124352   83  Linux /dev/sda2       226252798   234373119     4060161    5  Extended /dev/sda5       226252800   234373119     4060160   82  Linux swap / Solaris  WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 256 heads, 63 sectors/track, 121126 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x8d19c4c4     Device Boot      Start         End      Blocks   Id  System /dev/sdb1               1  4294967295  2147483647+  ee  GPT Partition 1 does not start on physical sector boundary.  Disk /dev/sdg: 4009 MB, 4009754624 bytes 145 heads, 48 sectors/track, 1125 cylinders, total 7831552 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0004e24a     Device Boot      Start         End      Blocks   Id  System /dev/sdg1   *          48     7831551     3915752    7  HPFS/NTFS/exFAT  Disk /dev/mapper/cryptswap1: 4157 MB, 4157603840 bytes 255 heads, 63 sectors/track, 505 cylinders, total 8120320 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x45a3a931  Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table   My first attempt at   $ sudo mount /dev/sda /mnt mount: /dev/sda already mounted or /mnt busy gin@ger:~$ for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done mount: mount point /mnt/sys does not exist mount: mount point /mnt/proc does not exist mount: mount point /mnt/run does not exist mount: mount point /mnt/dev does not exist gin@ger:~$ sudo chroot /mnt chroot: failed to run command `/bin/bash': No such file or directory   Below is my boot order:  UEFI BOOT SOURCES     WINDOWS BOOT MANAGER LEGACY BOOT SOURCES     HARD DRIVE         SATO0         SATO1 NETWORK CONTROLLER (REALTEK PXE B07 D00)


I'm not a native English speaker so I need your help on this one. When talking about a company, which one is correct:  1)Why to choose Google 2)Why choose Google?  For a non native speaker...why to choose sounds so strange but I've seen it written on a technology website.   Thanks in advance!


$f$ continuous on open set implies locally Lipschitz. What additional condition will make it true?

Is it true that if $f:O_{\text{open}}\subset\Bbb R\rightarrow\Bbb R$ is continuous then it is locally Lipschitz?  Maybe the function $f(x)=\sin(1/x)\cdot x$ is a counter example because at $x=0$ we can find a sequence $x_n\rightarrow 0$ such that  $|f'(x_n)|\rightarrow\infty$ so there is no neighborhood of $0$ such that Lipschitz condition holds.  Is there an additional condition we could impose to make the statement true?


Prove that $e^{x}>1+x$ when $x\neq0$. I can't make for all $x$. But as $e^{x}>0$ for all $x$, it's obvious that $e^{x}>1+x$ when $x\le-1$. It's where I got got stuck


Can't store certain utf-8 mb4 characters in MySQL using PDO

I'm having a problem storing certain UTF-8 characters in MySQL.   mb_internal_encoding("UTF-8"); $pdo = new \PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_USER_PASSWORD, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));  $statement = $pdo->prepare("INSERT INTO test (value) VALUES (:value)"); $statement->execute(array(":value" => "👻");   This ends up with the 👻being stored as "????".  The column is set to utf8mb4_unicode_ci.  Some other characters that don't work are 🌍and 🎃, whereas things like ☽,☯,❁,☼,(airplane that won't show up on stackoverflow), ▲, and ▽ do work.  Any idea what's going on?


I am using Ubuntu 14.04, and I want to decompress a 500 MB rar archive. I have installed the most recent version of rar and unrar from the terminal.  When I go to extract the contents from the archive the Archive Manager extracts them, but it takes a little while and at the end I get a message that says:      produced an error when extracting the file   and it gives me only the option of closing the Archive Manager. I'm desperate because I downloaded the same GTA San Andreas archive of different videos three times, and it always tells me the same thing which I do not understand.


Can 180 days Spanish student visa holder depart from another Schengen state?

I'm an Indian on a 180 days Spanish student visa. I would like to travel around EU. Is it possible for me to catch my return flight to India from an airport in a different Schengen state or do I strictly have to depart from Spain?


How to run a command inside a running systemd container

I have a systemd container running, and I can login into it with machinectl login <container>. How can I execute a command inside the container directly, i.e. without first logging in, executing the command, and then logging out?  Another way to put it is that I'm looking for the systemd equivalent of:   $ docker exec <container> <command>    or   $ ssh <host> <command>


.bashrc edit messes up terminal command arrow-up history print

I wanted to give my terminal prompt in Ubuntu a more personal look, and wanted to change the text prior to the '$' when writing a command.  From what I've found this is done by editing the .bashrc file in the home directory, so I went in there and changed  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi   to  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='\e[1;32m[\W]\$ \e[m' fi   This works and the terminal looks the way I want it to.  But after some time when entering a couple of commands when I use the arrow-up key to get to the command history, things get weird.  From a clean line and pressing the arrow-up key is works. When pressing it again the text that was on the line gets capped at about ~15 characters and the new command in the history (that is supposed to be displayed) gets capped by a few characters in the beginning, and they are sort of merged together on the command line.  E.g. my two most recent commands are  Java Test4 words-250.txt words-250-in.txt Javac Test4.java   When pressing the arrow-up key once, the first line is displayed, as it should. When pressing it a second time, this is displayed:  Java Test4 worc Test4.java   Despite this weird output, the terminal works fine. If for instance I press enter after doing the above, Javac Test4.java will run. If I instead try to delete the entire line using backspace, I am only able to delete up until the line says  Java Test4   and if pressing enter after that I get a new empty line, just as if the line was empty when pressing enter.  All of this goes away if I reset the .bashrc file.  Why does this happen and how can I fix it?


Replace all between tags using Regex with new lines in xml files

I have xml files to replace info between tags . It works when my xml file have body like this:  <VARIABLES>test</VARIABLES>   Problem starts when it is like that:  <VARIABLES>test test test </VARIABLES>   My pattern didn't see it at all:  string newText = Regex.Replace(content, "(?<=<VARIABLES>).+?(?=</VARIABLES>)", replaceWithText);


Let $F$, $K$, and $L$, be fields, and suppose we are given maps $F\to K$ and $F\to L$. I claim that there exists some field $\Omega$, and maps $K\to\Omega$ and $L\to\Omega$ such that $F\to K\to\Omega = F\to L\to\Omega$.  Why is this true though?


Having installed the latest version of MikTeX (2.9) and TeXmaker (5.0.4) on a new Windows-based machine, it seems that some eps files can be converted into an pdf format, but they are shown as blank, both in the "eps-converted-to-pdf.pdf" file as well as in the article.   Surprisingly, the same document works perfectly fine on my old machine, saying that the converted figures appear properly in the document.  I searched for some answers around the web, but none of the solutions work. I also tried a different editor, but the problem won't disappear.   Here is a MWE. Importantly, in this document "testfigure2.eps" seems to work perfectly fine, while for "testfigure.eps" the error described above occurs.  \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage{epstopdf}  \begin{document} \begin{figure} \centering \includegraphics[width=\textwidth]{testfigure.eps}  \end{figure}  \begin{figure} \centering \includegraphics[width=\textwidth]{testfigure2.eps}  \end{figure}  \end{document}   Ideally, I am looking for a simple solution that doesn't require fancy refinements in my preamble.  Attached, please find the log file (had to change the names and save it as pdf) as well as the "testfigure.eps".


I've downloaded the latest ISO for Ubuntu 16.04.1 (ubuntu-16.04-desktop-amd64.iso) and made a bootable thumbdrive.  Is there any way I can run the media from RAM?  I was hoping for something similar to grml's toram option: grml toram - Copy the whole CD/medium to RAM and run from there


How can you check if fontspec (with LuaLaTeX) can load a font?

I want to check if fontspec (with LuaLaTeX) can load a certain font and if not try to load another one. For pdflatex I did by checking if the package file exists; but I don't find an easy way to do it with fontspec.


Construct a real function with is exactly $C^2$ such that its first derivative does not vanish everywhere

I need to construct a real function with is exactly $C^2$ (that is, it is continuous and two times differentiable but it is not three times differentiable) such that its first derivative never vanishes.  I tried  $x^5 \sin(\frac{1}{x}) + \exp(x)$  $x^{\frac{5}{2}} + \exp(x)$  ${|x|}^3 + \exp(x)$  all these functions are exactly $C^2$, but their first derivatives vanish in some point(s). :(


Splitting Data With High Percentage of Repeated Values

I am building a model in which my data set has a high percentage of repeated values.  I am concerned that if I do traditional hold-out or k-fold cross-validaton, that I will get unreliable results as the test sets will have many examples that are basically the same as those included in the train sets.  Is there an approach I can use so that my test sets do not include examples that are basically the same as the examples I have in my training set?


Pluralization issue on the Ask question's side panel on the right-hand side

There is a pluralization issue on the Ask question's side panel on the right-hand side. When you have one issue to be resolved on the post, it shows a warning as:  Resolve 1 issues before posting  Screenshot for reference:


In The Empire Strikes Back, Yoda is initially reluctant to teach Luke, it takes the Ghost of Christmas Past Obi-Wan and Luke to convince him.   But in Revenge of the Sith it seems this is the plan, is there a reason for this seeming change of heart?


How high can server load be before sendmail would not be able to function anymore

I have a virtual server that runs multiple VPS on it, when we backup to a usb external hard drive the load increases to about 10 on the mail server with sendmail we get this in the log file  rejecting connections on daemon MTA: load average: 10   I know it is trying to easy the load on the server by not taking on any new connections and I know how to increase the value in the config file. My question is how high can I set it before I will loose mail?   I also use fetchmail and I am not sure what happens to the mail if it fetches it and then sendmail does not accept it.  So high can I make the load and what happens to the mail if fetchmail fetched it and cant hand it off to sendmail?  This only happens late at night when we do the backups.  [root@sogo ~]# grep 'LA=' /etc/mail/sendmail.cf O QueueLA=8 O RefuseLA=10 #O DelayLA=0


Is it true that every injective function must be surjective?

I believe it is false, because an injective function never maps elements of the domain to the same element of its codomain, where as the surjective function can map an element of the codomain to any element in the domain.  I have some other explanations but they make little sense and are very messy, like this, can someone write a better explanation, or correct me entirely if I am wrong?


How to measure the component value on a PCB?

I have faced a few instances in which I need to measure resistor or capacitor value which is soldered to the PCB board (SMD component). These are very small and difficult to look the value written on it. When I measure using a multimeter I am not getting the correct value (maybe due to other components connected to it).   Is there a way by which I can measure the component's value without desoldering it?


tex equivalent of Excel's conditional formatting

Has anyone implemented (either through hacky own scripts or an actual package) something that emulates Excel's conditional formatting?  It would be useful to have the ability to colour the contents of a table cell proportionally to their value to easily visualise trends at a glance.  Google hasn't helped me a great deal here, so either "conditional formatting" doesn't mean much in the TeX world and I'm failing to find anything, or its as difficult as I'm suspecting it might be.  Anyone have any information?


Can a dual national visit USA under VWP after visa refusal for other nationality?

Recently I was refused an E-2 visa under Section 214b. To be honest I don't really know why because I have strong ties with my home country (house, bank account, family) so my lawyer sent an appeal to the legalnet and I'm  waiting for an answer.  I have a second nationality that I used to travel in USA within the last 15 months under ESTA. A few days after my E-2 refusal I checked my ESTA status  and it is still authorized.  Can I travel to the States right now or not?  I have a purchased business over there and have to take care of my assets.


When Darth Vader killed Obi Wan in Episode IV, he vanished completely into thin air. But when Darth Maul (Phantom Menace) killed Qui Gonn Jinn in Episode I, his corpse just lay there with a big hole in his stomach. Why is that?


While installing Win 10, used diskpart, I ran clean command by mistake on the whole disk, so it becomes a single 465 GB partition

While installing Windows 10, used diskpart to format one of my drive, I ran clean command by mistake on the whole disk, so it becomes a single 465 GB partition. Previously, it contained four partitions. I did't install any OS and just turned laptop off.  How can I recover them with the data intact?  Should i remove hard and attached it with some other laptop for recovery?


Upgrade to the latest PHP version in Ubuntu

I am using  in my server and NextCloud informs me that:     You are currently running PHP 7.0.32-0ubuntu0.16.04.1. Upgrade your   PHP version to take advantage of performance and security updates   provided by the PHP Group as soon as your distribution supports it.   So, I tried to upgrade me OS (Ubuntu 16.04), by executing:  apt-get update  apt-get dist-update  Then I restarted the server and I re-executed the above commands. After all these, when I connect from terminal I am getting:  Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-83-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  0 packages can be updated. 0 updates are security updates.   and my PHP version is still PHP 7.0.32-0ubuntu0.16.04.1 (cli) ( NTS ).  This means that PHP 7.0.32 is the latest possible version that I can install in ubuntu 16.04;


S is saturated if and only if R\S, the complement of S in R, is the union of some (possibly empty) family of prime ideals of R

I got problem which is the same here but I can not solve follow the way 2 of them pointing out  Please help me explain more. And one more thing I wanna ask that the converse is still right. Could you give the solution of the converse?


How to list dependent packages (reverse dependencies)?

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.


In regards to bypassing damage immunity to attacks not made by magic weapon, what are considered magical attacks besides spells/spell-like ability and magical weapon attacks?  Are summoned monsters considered magical?  What about bite/claw from dragons and high CR creatures or legendary creatures?  In the old AD&D, there was a rule that said that attacks from monsters of 4D+4 hit dice or higher are considered magical in regards to hitting creatures like werewolves. I also remember reading years ago that attacks from creatures from other planes and attacks from creatures immune to non-magical attacks are also magical. But I can find no such rule in 5e.  Does this mean that werewolves fighting in wolf form cannot hurt each other, and that a typical CR9 fire giant has no chance to defeat a CR2 wererat?  How about the bite of the Tarrasque?


Comparing two string elements of an array having same value in Java

I have a simple doubt. I have a string "hi hi", split that based on spaces and then store them in a string array. final String testString = "hi hi";     final String[] arrayOfStrings = testString.split(" ");     if (arrayOfStrings[0] == arrayOfStrings[1]) {         return true;     } else {         return false;     }  This returns false. If intern is used on arrayOfStrings[0] & arrayOfStrings[1] then it returns true. I wanted to understand why is false returned?


I've already read some of your answers concerning the "rather than vs instead of" issue, but I still don't understand why in my example rather than is the correct answer.     Our manager is concerned with efficiency.............expansion.      a. Rather than      b. Instead of      c. Although      d. Even if   The correct answer is a.  Could someone explain why? I think that both a and b are correct.


Are there integral domains that don't satisfy ACCPI but where there is (unique) factorization?

If an integral domain $R$ doesn't satisfy the ascending chain condition for principal ideals, then factorization of an element of $R$ (into irreducible elements) might fail: if you choose the wrong elements, the factorization process might not terminate. However, can it be the case, that in some such domain, a factorization still exists for all elements (or at least for some element where the factorization can fail)? It could be that maybe if you choose the correct divisors then the factorization terminates. The only example i know of a integral domain that doesn't satisfy ACCPI is $P/I$ where $P$ is the ring of polynomials of countable many variables $(x_k)$ over an integral domain $R$ and $I$ is the ideal generated by the relations $x_{k+1}^2 = x^k$. I thought of maybe trying to adjoin some new elements $y_k$ such that $x_k = y_k^{p(k)}$ where $p(k)$ is the kth prime starting at $3$ and hope those $y_k$'s turn out to be irreducible and that the result still doesn't satisfy ACCPI, as then an element $x_i$ would maybe have non-terminating factorization if you choose $x_k$'s to factorize it but would terminate if you factor by $y_i$. However this ring seems very complicated to work with and i don't have strong reasons to believe it will work.


currently I am attempting to access the OS clock using python.  Is there a sort of way I can access the clock value at this exact time and get a string that returns back lets say 12:00:00am PST or just the time? The timezone is a plus :)  I have currently done this time.clock() but nothing is giving me values back :/


Example of a ring with an infinite inclusion chain of ideals

I'm trying to track down an example of a ring in which there exists an infinite chain of ideals under inclusion. (i.e. $I_1 \subsetneq I_2 \subsetneq I_3 \subsetneq...$)


In my .bib file, I have this entry:  @conference{HCS96,   title={The Virtual Cinematographer: A Paradigm for Automatic Real-time Camera Control and Directing},   author={Li-wei He and Michael F. Cohen and Davih H. Salesin},   booktitle={Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques},   pages={217--224},   isbn={0897917464},   year={1996},   organization={ACM} }   When I compile my thesis, I get this entry in the bibliography:  [wei He et al., 1996] wei He, L., Cohen, M. F., and Salesin, D. H. (1996). The virtual cinematographer: A paradigm for automatic real-time camera control and directing. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques, pages 217–224. ACM.   Why is the name of the first author produced this way?! It should rather be "He et al., 1996". Does anybody know how to fix this problem?


Texmaker: source editor and embedded pdf viewer on same window

How do I get Texmaker to display the source and ouput in the same window, as advertised. This seems to be the default behavior on some systems, but not on others.


so I have this dictionary  Dictionary<ulong, PlayerData> PlayersCache = new Dictionary<ulong, PlayerData>();   I have class PlayerData          public class PlayerData         {             public int Shots;             public int Hits;             public PlayerData()             {             }         }   How can I sort Dictionary so player with the most hits will be first the second player with most hits will be second, third player with most hits will be third... In the Dictionary Sort it ascending.


Number of solutions to $x^n=e$ in group G is divisible by n, where n divides o(G)

It is straightforward if G is abelian, but appears to be difficult to prove for non-abelian groups. Since, it has been asked in supplementary exercise of Herstein's group theory, I guess some elementary group theoretic proof exists. Can anyone please give me hint. I will be grateful.


Why does noise affect FM radio less than AM?

Frequency modulated waves are less susceptible to noise compared to amplitude modulated signal. This is because the information in an FM signal is transmitted through varying the frequency, and not the amplitude. But why does noise affect changing amplitude and not frequency or other characteristics?


Prove any group with 3 elements is isomorphic to $\mathbb{Z}_3$

Let $G = \left\{e, a, b \right\}$  Since $G$ has $3$ elements, $a \not= e , \,b \not= e, \,a \not= b$  $G$ is closed so $ab \in G$  If $ab = a$, this means that $b = e$ and if $ab = b$, $ a = e $  So we are left with $ab = e$  Define a function  $\varphi (a) = [1]$  $\varphi (b) = [2]$  To show that this function is an isomorphism,   $\varphi (e) = \varphi (ab) = \varphi (a) + \varphi (b) = [1] + [2] = [0]$  So $\varphi (e) = [0]$  So this function takes the identity to the identity, so it's an isomorphism.


Trying to locate a sci-fi novel that I believe came out in the 1990s

This was a story about an astronaut that comes back to Earth to find all the people have gone.  Left behind are cities (that had moved underground) and some technology (like liquid nitrogen powered cars) and it appears that the people disappeared in a singularity in or related to Antarctica.  Sorry I don't recall much except maybe EARTH was in the title.


I have a question about declaring methods for a function in JavaScript. Suppose that I declare a function Monster in these two following ways: First way: function Monster() {   this.growl = () => {     console.log('grrr!');   } }  Second Way: function Monster() { } Monster.prototype.growl = () => {   console.log('grrr!'); }  The question is: when I instantiate n monster I do create n methods for both way of declaration or I create only one method for all the monsters I instantiated?


I understand how normal logic gates operate and are implemented using digital circuits and electronics but I wad wondering how qubits are physically implemented.   In other words is a physical qubit a mechanical structure or an electronic circuit or optical circuit or something else.  There's often alot of information online about qubits and how they are different from normal bits but I have never seen any information about how they are possibly physically implemented.


How to minimize $|Ax+By + C|$ given that $x \geq 0$ and $y\geq 0$

I am trying to solve problem related to absolute value function, i.e given $Z(x,y) = |Ax + By + C|$ , what is the minimum value of $Z$, if $x \geq 0$ and $y\geq 0$ and x,y belongs to integers


Original simple question:  "Given a fair coin that has been tossed 100 times, each time landing heads, would it be more likely that that the next coin flip be tails or heads"  The proportion of head to tails is 1 to 1 as number of trails approach infinity (this is a fact correct?). Therefore, if this must be the case, mustn't there be an enacting "force" per say that causes this state of being to (admitted unreachable, but technically eventual) case? Hence if there exist a force pushing the number of heads and tails towards one another, shouldn't there exist a higher chance of tails than (regardless of how significant) heads? Or is this thought process just illegitimate simple because the state exist on at the infinity case?


How to create an exception that doesn't accept certain amount of numbers entered in input dialog?

Pattern p = Pattern.compile("^[0-9]{0,3}$"); Matcher m = p.matcher(in); if (m.find()) {     JOptionPane.showMessageDialog(null, " 4 integers please"); }  It is a button that adds numbers Trying to create exception that limits amount of numbers in dialog , it detects if the number is within the limit but does not stop the program.


Is the Hogwarts Express in the magical or non-magical realm?

This question is related to  and explores an apparent inconsistency, given only the Harry Potter movies as source material.  The Hogwarts Express line seems to have an inconsistent existence between magical (invisible to ordinary humans aka muggles) and non-magical (muggle) realms; platform 9-3/4 is clearly hidden from muggles, but in Chamber of Secrets, when Harry and Ron take the car (in the muggle world) to catch up to the train, they make no explicit crossing into a magical realm, suggesting that the train is traveling the muggle world despite its departure from a magical platform.  In which realm (magical or muggle) does the Hogwarts Express exist? How is this apparent inconsistency resolved?


Counting number of one's in a binay number

how does this code works  for example  input: 5(101) ouput: 2   the function is   scanf("%d", &a); while(a) { oneina++; a=a&(a-1); } printf("%d", oneina);


Proving $(x_1 - a_1, \ldots, x_n -a_n)$ is a maximal ideal

First of all, I don't think this is the smartest question and I feel quite ashamed about it, but here goes nothing:  I wanted to prove that in the polynomial ring $k[x_1, \ldots, x_n]$ the ideal $I = (x_1 - a_1, \ldots, x_n - a_n)$ is maximal and tried as follows: I have defined a map   $$\varphi: k[x_1, \ldots, x_n] \to k: f(x_1, \ldots, x_n) \mapsto f(a_1, \ldots, a_n)$$ for which I was able to prove that it is a surjective ring homomorphism. Hence I know from the first isomorphism theorem that   $$k[x_1, \ldots, x_n]/ \ker(\varphi) \cong k$$ showing that $\ker(\varphi)$ is maximal. I see that the ideal $I \subset \ker(\varphi)$ but I am stuck on the other direction: suppose $f \in \ker(\varphi)$, then $f(a_1, \ldots, a_n) = 0$. How do I show that it must be of the form $(x_1-a_1)g_1 + \ldots (x_n - a_n)g_n$ for $g_i \in k[x_1, \ldots, x_n]$?   $\textbf{Remark: }$ I know the question on how to prove this is a maximal ideal has been asked many times before, e.g.  and , but they do not seem to adress my particular question.


How to solve the WordPress install complete

I have this error:   chown: missing operand after 'www-data:www-data/var/www/'


draw $\triangle ABC$ in which $AB=5.5$cm, $\angle C =40^{\circ}$ and $BC-AC=2.5$cm

I tried this question whole day but could not find its solution I have also not got a clue please help me in doing it


Illustrator CS5 do not automatically change the measuring unit to the files default?

I am creating images for both web and print so I use pixels (px) and millimeters (mm) back and forth. But whenever I open the other type of file (i.e. opened web(px) first then print(mm), or print(mm) then web(px) ), the units displayed in Transform is always set to the previous file's setting. I have to go to "Document Setup > OK" or  every time I encounter this. It is very frustrating. Is there anyway to fix it, or is it fixed in later versions of Illustrator? Thanks.


I read the Java tutorials on Sun for JAR files, but I still can't find a solution for my problem. I need to use a class from a jar file called jtwitter.jar, I downloaded the file, and tried executing it (I found out yesterday that .jar files can be executed by double clicking on them) and Vista gave me an error saying "Failed to load Main-Class Manifest attribute from [path]/jtwitter.jar".  The guy who coded the .jar file wants me to import it, but where do I store the .jar file to import it in my code? I tried putting both the .jar file and my .java file in the same directory, didn't work.  The file I'm trying to work for is here:   I'm using JCreator LE.


Moving and rotating object with another object

Sorry i bad painter))  Need move and rotate 'OBJECT №2' with 'OBJECT №1'   I have origin point(also rotation point) and angles of two object. (Also min and max coordinates of these objects)  Vector origin, Vector angles, Vector absmin and Vector absmax.   I tried next simple code, and it works nice, if object angles not changed:  object2.origin += object1.origin - object1.oldorigin;   (without rotation)  But i need also rotation, I was rarely attend geometry at school, and can't do it without help )))


How can i find summation of the series $i^k$

Series :  $$\sum_{i =1}^{n} i^k= 1^k+ 2^k + 3^k + 4^k +\ldots+n^k$$  where $k$ is a constant.  This does not seem to be Geometric progression , how can I evaluate the sum?  If possible if also want to find  $$\sum_{j =1}^{n} F(j)$$  where $F(j)$ is sum of the above series at $n=j$.


how to upgrade from ubuntu 15.04 to 15.10?

i was upgrading to 15.10 with these two commands that i found on ubuntu forums:  sudo sed -i 's/vivid/wily/g' /etc/apt/sources.list  sudo apt-get update && sudo apt-get dist-upgrade   but at some point it showed network failure and it stopped so i tried this command:  apt-get update   but the problem i encountered is that even on rebooting on screen it flashes 15.04 now if i redo the upper two commands will it create duplicate repositories that i will have to take care of? because i dont have enough space on my laptop to waste. and any other detail for my upgrade to 15.10 would be highly appreciated!


Can I offer a bounty to an accepted answer that already exists?

I want to offer a bounty to an answer. That answer was for a question I asked on Stack Overflow.  But when I click the "start bounty" link, it asks me to select an option. It seems that the bounty will not be offered to the answer that I have already accepted.  What I want to do is offer a bounty to the answer that I accepted earlier. Is that possible?


Find Max Value for each month for the last 3 months, properly

I have a query going that gets data for an ID for the last 3 months.  I need to tweak it so I get the highest value for each of the three months.  I've tried a couple of things with the aggregate function MAX, but I'm not getting anywhere.  I'm trying to get the max value for each of the past months ....  Here's the data from the query, currently sorted by date (asc):   ID      Date               Value 12410   01/03/2017 12:17    0.000178 12410   01/10/2017 11:36    0.000186 12410   01/17/2017 11:27    0.000189 12410   01/24/2017 13:09    0.000182 12410   01/31/2017 10:37    0.000169 12410   02/07/2017 11:03    0.000214 12410   02/14/2017 11:52    0.000176 12410   02/21/2017 10:51    0.000200 12410   02/28/2017 12:29    0.000194 12410   03/07/2017 08:39    0.000206   Here's the query:   select AnalysisID as "ID" , AnalysisDateTime as "Date", AnalysisValue as "Value" from AnalysisValueTbl where AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -3, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-3, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -2, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-2, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -1, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-1, getdate())) order by AnalysisValue desc


Using 'is' or 'was' when something is still true

Mark was/is the founder of Facebook?  If Mark is going to an Invester (when Facebook was just made by him), then how would he introduce himself?      Sir, I am Mark. I am/was the founder of Facebook.   I am confused about the usage of was/is for something that is still true. Here is another example:      My father was/is the architect of this house.   Which one should I use?


I am working on a program where I don't want a window to show in alt tab menu. However I need the window style to be borderless. All the solutions I have found say to change the border to tool but that won't work when I need the window to be borderless. Anyone have ideas?


How do I beat the Stone Spirit in the Deep Roads in Dragon Age 2?

Does the Stone Spirit have any vulnerabilities? I have both Hawkes, Isabela and Varric in my party. I don't have any tanks with me. Does the Stone Spirit have any weaknesses (ice, fire, etc.)?


Are Objects passed by reference in Java Collections?

I had a  doubt in my code snippet : my main class  public static void main(String[] args) {     Test test = new Test();     test.copyAtoB(3);     test.setValueinAlist(30, 3);     test.showValues(3, 0);        }    And this my dummy class   public class Test {      public ArrayList<MyClass> alist = new ArrayList<MyClass>();     public ArrayList<MyClass> blist = new ArrayList<MyClass>();      Test() {     for (int i = 0; i < 10; i++) {         MyClass myClass = new MyClass();         myClass.setCount(i);         alist.add(myClass);     }     }      public void copyAtoB(int position) {     MyClass o = alist.get(position);     System.out.println("vlaue of count in object of myclass going to be copied "+o.getCount());     blist.add(o);     }      public void setValueinAlist(int val,int position){     MyClass myClass= alist.get(position);     System.out.println(myClass.getCount()+" is changing to "+val);     myClass.setCount(val);     }      public void showValues(int aPostion,int bPosition){     System.out.println("Vlaue in a "+alist.get(aPostion).getCount()+"\n Vlaue in b "+blist.get(bPosition).getCount());     }  }   Here comes My object class  public class MyClass {     int count;      public int getCount() {         return count;     }      public void setCount(int count) {         this.count = count;     } }   when i run my code i was expecting output like this  vlaue of count in object of myclass going to be copied 3 3 is changing to 30 Vlaue in a 30  Vlaue in b 3   But what i'm getting is this   vlaue of count in object of myclass going to be copied 3 3 is changing to 30 Vlaue in a 30  Vlaue in b 30   Could you help me to understand why my concept is wrong ?? I didn't write code to change the value in "blist" but it also get changed how  does this happens ?? May be i'm asking a blunder but i couldn't resist


Is it sensible to not opt for the kit lens and instead go with Tamron 18-200mm DiII VC Zoom Lens?

I'm thinking of going with a Canon EOS 200D body or Nikon D5600 as my first DSLR and saving 40-50 bucks by not opting for the kit lens and putting the money on Tamron 18-200mm DiII VC Zoom Lens. My aim is to learn basic photography while using the lens for travelling as well as being able to get closer to my subjects.   However, I've read a lot of mixed reviews about 18-200mm Tamron lens and I'm wondering if it's a stupid decision to opt out of the standard kit lens (Canon EF-S 18-55 mm 1: 4.0 – 5.6 IS STM or the Nikon AF-P DFX 18-55 VR). The more reviews I read the more confusing it gets. At the end of the day, I don't want to upgrade just after a few months. I considered checking the 18-135mm kit lens but that's going a bit over my budget. To summarize, should a stick with the kit lens for the time being or not?  Thanks!


Ant deployment throwing error "The version of the flow you're updating was active and can't be overwritten"

I am trying to migrate all Process builders from one instance to other, the target instance already has few flows available which are active.I inactivated all of them and trying to deploy the package which has flows and flow definitions.  Even when the flows are inactive the deployment is failing giving below error.  The version of the flow you're updating was active and can't be overwritten.   I cross checked all the flows in the error list all of them were in Inactive state, is there any step I am missing while deploying the flows?


Question on Condition for a Normed Space to be Banach

Let $(X,\|\cdot\|)$ be a normed vector space. Show that $X $ is a Banach space if and only if for every succession $\{x_n\}_{n\in \mathbb N} $ such that $\sum_{n=1}^\infty ||x_n|| \lt \infty $, we have that $\sum_{n=1}^\infty x_n $ converges to an element of $X $.  If $X $ is Banach, it's clear that the statement above is true for every succession $\{x_n\}_{n\in \mathbb N} $ such that $\sum_{n=1}^\infty ||x_n|| \lt \infty $, because this implies that $\{S_N\}_N=\sum_{n=1}^N x_n $ is a Cauchy succession in $X $.  However, in the other sense, I don't understand what to do: if I take a Cauchy succession $\{x_n\}_n$ in $X $, I could show that it always converges by showing that $\sum_{n=1}^\infty  (x_n - x_{n-1}) $ converges to some point of $X $. However it is not true in general that $\sum_{n=1}^\infty ||x_n-x_{n-1}|| \lt \infty $, even for a Cauchy succession. Do you have suggestions? Thanks


How to check if regex matches whole string in javascript?

If you are given a string like "foo bar 32536364" and a regex /foo bar \d+/, how can you check if the regex matches the full string and not some substring in the string? Also I cannot change the input values such as putting ^ and $.  Thanks


"On the last week" or "In the last week"?

I'm planning a trip. My plane lands on the 29th of August. Should I say:     I'll arrive on the last week of August.   or     I'll arrive in the last week of August.   Web searches show that both prepositions are used; reading a  made me more inclined towards "in", though I am still not sure.


has anyone installed Linux on an HP Proliant 365 G1 server?  I can't because it doesn't detect hard drives (Raid5).  Any compatible version?  He read a lot and I think HP Smart Array SCSI driver comes from this but I can't find the solution.


Nothing happens when clicking on new reputation points

Recently, when clicking on the field for new incoming reputation points (in the top right corner), nothing happens.   I have the feeling that when clicking in between the notification icon and the points icon, the points menu is opening while it does not when clicking right in the middle of the points icon. I only experience clicking problems in the SE app.    App Version: 1.6.2.5 Device: iPhone SE OS Version: Version 10.2 (Build 14C92)


I've been thinking to prove each one individually then sum them up which seems too complex to because I haven't made any notable success proving $\frac{x^2}{(x-1)^2}> 1$.  I know that $(x-1)^2\ge 0$ , but I'm not able to transfer it to what I'm looking to prove.  Is there is any techniques to look for when solving these kind of inequalities because I'm totally stuck here.


Use of backwards facing diode next to motor

While tyring to figure out how to best control a 12V device from a raspberry pi or arduino I ran into the following image:   Now I'm wondering, what is D1 doing there? What's the use of that one?


I couldn't vote for the answers of my question?

Why can't I vote for the answers given for the question I have asked? I am currently on 4 reputation because somebody down voted my last question. I have now lost 6 rep.  Your rule says I should have 15 rep to vote for an answer. How can I get 15 rep on this platform from this kind of ridiculous rules. Your current rules are beyond laughable.   Please reform your policies.


How to find the index of undetermined pattern in a string?

I want to find the index of multiple occurrences of at least two zeros followed by at least two ones (e.g., '0011','00011', '000111' and so on), from a string (called 'S') The string S may look like:  '00111001100011'  The code I tried can only spot occurrences of '0011', and strangely returns the index of the first '1'. For example for the S above, my code returns 2 instead of 0:  index = [] index = [n for n in range(len(S)) if S.find('0011', n) == n]   Then I tried to use regular expression but I the regex I found can't express the specific digit I want (like '0' and '1')  Could anyone kindly come up with a solution, and tell me why my first result returns index of '1' instead of '0'? Lot's f thanks in advance!!!!!


If every linear operator on a normed space bounded, is it possible to infer that the space is finite dimensional

It is well known that every linear operator on a finite dimensional normed space is bounded (continuous).  The question that presents itself: is the reverse also true ?   I mean: let $X$ be a normed space (we don't whether it is finite or infinite dimensional). In addition, every linear operator on $X$ is bounded (continuous). Is it possible to infer that the space $X$ is finite dimensional ?


This is the error Android studio is showing me when i am pressing the button

Logcat Output:     java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String firebase.firebasepractice.User.getUsername()' on a null object reference. ...     User:     MainActivity:  public class MainActivity extends AppCompatActivity {    private EditText name,password;   Button btn;   TextView tv;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      name = (EditText) findViewById(R.id.userName);     password= (EditText) findViewById(R.id.password);     btn= (Button) findViewById(R.id.submit);     tv= (TextView) findViewById(R.id.tv);      btn.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             DatabaseReference myRef=FirebaseDatabase.getInstance().getReference("Users");                  String userId=myRef.push().getKey();              myRef.child(userId).addValueEventListener(new ValueEventListener() {                 @Override                 public void onDataChange(DataSnapshot dataSnapshot) {                     User user=dataSnapshot.getValue(User.class);                     tv.setText("Name is "+user.getUsername()+"    Email is "+user.getEmail());                 }                  @Override                 public void onCancelled(DatabaseError databaseError) {                  }             });         }     }); } }


Should SO include a custom Google search?

Most of the times, I use Google to search in SO rather than using its own search box, as it returns quite better results. I imagine this is a common task for many of the SO users, so why not including this option inside SO? It would avoid users going out and returning back.  Update:  How many of you actually use the SO search rather than Google?    At this moment, I use a custom search provider in Chrome:  Right click on the url bar. Set up search providers. Add a new one.  Name: Stackoverflow Keyword: so url: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=%ssite:stackoverflow.com    To use it, I just type "so" into the URL bar and hit the TAB key. After that, just type the query and hit ENTER.  This way I'm leaving SO to come back and that MAY not be the best option.


Which characters are valid in CSS class names/selectors?

What characters/symbols are allowed within the CSS class selectors? I know that the following characters are invalid, but what characters are valid?  ~ ! @ $ % ^ & * ( ) + = , . / ' ; : " ? > < [ ] \ { } | ` #


Using sp_BlitzIndex - Diagnosed as "Index Hoarder: Addicted to nulls"

Context: MS SQL Server 2012  In using Kendra Little's awesome tool, sp_BlitzIndex, a number of tables were diagnosed as "Index Hoarder: Addicted to nulls".  I'm not looking for a debate over NULLs and their place. I know that there are cases where NULLs are perfectly appropriate, and even necessary. The issue here is the feedback provided by sp_BlitzIndex, and the value of enforcing the not NULL constraint.  In most of the tables sp_BlitzIndex "diagnosed" as having numerous columns that allow NULLs, there are not any actual NULL values. We programmatically don't allow them. I just never unchecked the box that says "Allow nulls" to enforce that constraint on the database level.  What benefits does enforcing this constraint provide, and why it is one of the problems that her script identifies?  Thanks!


Returning multiple values from a C++ function

Is there a preferred way to return multiple values from a C++ function?  For example, imagine a function that divides two integers and returns both the quotient and the remainder.  One way I commonly see is to use reference parameters:  void divide(int dividend, int divisor, int& quotient, int& remainder);   A variation is to return one value and pass the other through a reference parameter:  int divide(int dividend, int divisor, int& remainder);   Another way would be to declare a struct to contain all of the results and return that:  struct divide_result {     int quotient;     int remainder; };  divide_result divide(int dividend, int divisor);   Is one of these ways generally preferred, or are there other suggestions?  Edit: In the real-world code, there may be more than two results.  They may also be of different types.


Answer with a link only is bad, but if it's copy-pasted from that link, should it be deleted? I think its value isn't lost and it should be kept. The question  focuses on plagiarism, which is the lack of attribution to the original author. This question is just about copy-pasted answers, which are properly attributed. The benefits of which are saving time for the writers, but still creating a back up in case the link is dead.  Case in point:  and  Relevant:


What is the geometric relationship between the covariance matrix and the inverse of the covariance matrix?

The covariance matrix represents the dispersion of data points while the inverse of the covariance matrix represents the tightness of data points. How is the dispersion and tightness related geometrically?   For example, the determinant of the covariance matrix represents the volume of the dispersion of data points. What does the determinant of the inverse of the covariance matrix represent? The determinant is related to volume, but I don't understand how to interpret the volume of the inverse of the covariance matrix (or the volume of the information matrix).  Similarly, the trace represents kind of the mean square error of the data points, but what does the trace of the inverse of the covariance matrix represent?   I don't quite understand how to interpret the inverse of the covariance matrix geometrically, or how it is related to the covariance matrix.


Consider the following:  x = 1 y = 1  print hex(id(x)) print hex(id(y))   Output:  0x2198158 0x2198158   x and y are two different variable that happen to hold the same value. Why is python assigning the same memory location to these two?  Next let us consider strings:  x = 'a' y = 'a' print id(x) == id(y)   Output:  True


Please let us know how to cover the line oppID.add(convopp.ConvertedOpportunityId);  in below class.   public class sampleclass  {    public static void sampleMethod(List<Lead> convertLeads)    {       List<Opportunity> oppList = new List<Opportunity>();       Set<ID> oppid = new Set<ID>();        List<Lead> leadList = [Select Id,name,ConvertedOpportunityId from Lead where id =:convertLeads  ];        for(Lead convopp : leadList)       {           oppID.add(convopp.ConvertedOpportunityId); // this line is not covering       }      }   }      Test class   @IsTest  public class sampleClass_Test {     static testMethod void test1(){          Lead l1 = new Lead();         l1.LeadSource = 'Internal Referral';         l1.FirstName = 'test1';         l1.LastName = 'test2';          l1.Company = 'test';         l1.Status = 'Qualified';         insert l1;         test.startTest();          Database.LeadConvert Leadconvert = new Database.LeadConvert();         Leadconvert.setLeadId(l1.Id);         LeadStatus Leads= [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1];         Leadconvert.setConvertedStatus(Leads.MasterLabel);         Database.LeadConvertResult Leadconverts = Database.convertLead(Leadconvert);          System.assert(Leadconverts.isSuccess());          List<Lead> listLead = new List<Lead>();         listLead = [select id, ConvertedAccountId, ConvertedOpportunityId, IsConverted from lead where LastName = 'test2'];         System.debug('listLead ***'+ listLead);         sampleclass.sampleMethod(listLead);         test.stopTest();      }     }


How do I download an older OSX / macos version from the mac app store?

I'm trying to test my mac app under OSX El Capitan 10.11 and OSX Yosemite 10.10 , and am currently running macos Sierra 10.12. So far I've tried searching under the app store but none of the older version appear when searching. Also have tried checking the apple developer downloads section  , as well as the 'more downloads' section there.   Are there any options besides attempting to download a torrent of the older OS?


Reflection in C#: Getting a static property from a DLL

I'm learning reflection in C# and by tinkering with its tools I was able to create some code to:   Load a DLL assembly from a file Get a public static class type from the assembly Get PropertyInfo of a public static property from the class Get/Set the value of the property   I'm writing the code in Visual Studio 2019, the solution is a simple WPF app and a DLL, both written in C#.  The code blocks for setting and getting the value of the property:  int Number = int.Parse(InputBox.Text);              Assembly MyDll = Assembly.LoadFile(@"D:[...]\WPFapp\ClassLibrary\bin\Debug\ClassLibrary.dll");             Type TestType = MyDll.GetType("ClassLibrary.Class1");             PropertyInfo PropInfo = TestType.GetProperty("Number");             PropInfo.SetValue(null, Number);   Assembly MyDll = Assembly.LoadFile(@"D:[...]\WPFapp\ClassLibrary\bin\Debug\ClassLibrary.dll");             Type TestType = MyDll.GetType("ClassLibrary.Class1");             PropertyInfo PropInfo = TestType.GetProperty("Number");              DiffAssemblyBox.Text = PropInfo.GetValue(null).ToString();   The DLL:  namespace ClassLibrary {     public static class Class1     {         public static int Number {get; set;}     } }    The code above runs, and I made the app so a number entered by the user would be sent to the DLL and back. However, when I try to send it it throws a System.NullReferenceException at SetValue. I tried to debug, and it seems that the TestType type is properly set to the class, but PropInfo is null.  Thanks for any help


for i in range(1, 10, 2):#use (start,end,step)     print(i)   this program prints out odd numbers from 1-10.  However if I want to jump half a unit at a time (e.g. 1, 1.5, 2, …), you cannot use range(1,10,0.5).    Can anyone tell me a  method range Float that solves the problem.


Prove that the general norm equation satisfies the triangle inequality for n-dimensions

How do you prove that the general norm equation $\sqrt[p]{\displaystyle\sum_{n=1}^{m} |x_n^p|}$ satisfies the inequality $\sqrt[p]{\displaystyle\sum_{n=1}^{m} |x_n^p|}\leq {\displaystyle\sum_{n=1}^{m} |x_n|}$? I think I'm pretty close, I have taken both sides to the $p$ power such that ${\displaystyle\sum_{n=1}^{m} |x_n^p|}\leq \left( {\displaystyle\sum_{n=1}^{m} |x_n|} \right) ^p$ where the RHS is the multinomial expansion  $${\displaystyle (x_{1}+x_{2}+\cdots +x_{m})^{n}=\sum _{k_{1}+k_{2}+\cdots +k_{m}=n}{n \choose k_{1},k_{2},\ldots ,k_{m}}\prod _{t=1}^{m}x_{t}^{k_{t}}\,,}$$ where $${\displaystyle {n \choose k_{1},k_{2},\ldots ,k_{m}}={\frac {n!}{k_{1}!\,k_{2}!\cdots k_{m}!}}}$$ From there, I need to somehow out a  ${\displaystyle\sum_{n=1}^{m} |x_n^p|}$ from the above multinomial summation.  One side question, is this in fact the triangle inequality at all? Either way, I'm pretty sure this inequality is valid since any such expansion should result in ${\displaystyle\sum_{n=1}^{m} |x_n^p|} \leq {\displaystyle\sum_{n=1}^{m} |x_n^p|} + K$ where K is a combination of all the ways the variables $x_1, x_2, x_3 \cdots x_m$ can be multiplied together, so it must be positive since the variables each represent a nonnegative length.  Edit: I see there is a method to prove this by taking the limit of the sum after showing this for the L2 norm. However, I am still interested in knowing how to solve for this $K$.


How to split table cell into multiple columns?

I am trying to achieve below table show in the figure, but I couldn't succeed it. I tried the below code.    \begin{table}[] \centering \begin{tabular}{lllllll} Dataset & Model & Evaluation criteria & Rank &  &  &  \\  &  & RMSE & MAPE & MAE & R &  \\ (A) & Proposed &  &  &  &  &  \\  & FN &  &  &  &  &  \\  & NN &  &  &  &  &  \\  & RX &  &  &  &  &  \\ (B) & Proposed &  &  &  &  &  \\  & FN &  &  &  &  &  \\  & NN &  &  &  &  &  \\  & RX &  &  &  &  &  \\ (C) & Proposed &  &  &  &  &  \\  & FN &  &  &  &  &  \\  & NN &  &  &  &  &  \\  & ARX &  &  &  &  &  \\ (D) & Proposed &  &  &  &  &  \\  & FFN &  &  &  &  &  \\  & LNN &  &  &  &  &  \\  & ARX &  &  &  &  &  \end{tabular} \end{table}


So you open the door and see your friend and say "Come on in" that means you are asking him/her to come in, okay?  But then I read in a book that it was wrong English but it did not mention what was the correct form.So that is my question.  What is the grammatically correct English phrase or sentence having the same meaning as "Come on in" and according to which particular rule this one is wrong ?  EDIT: This was from a story book written in my native language and it's from a conversation between two characters. One says "Come on in" and the other thinks to himself "speaking wrong English." This might seem strange but I really wanted to know what would be the right English and hence this post.


in C#  I am trying to get both the URLs and the InnerTexts from a text file, I don't have access to a DOM object on the device (only a text file) I am using so have only RegEx to use.  I want this text   I would need all these sets throughout the text file:  URL = /LinkClick.aspx?fileticket=a random text string TITLE = I want this text


Can two particles remain entangled even if one is past the event horizon of a black hole? If both particles are in the black hole?  What changes occur when the particle(s) crosses(cross) the event horizon?  I have basic Physics knowledge, so I request that answers not assume an in-depth understanding of the field. Thank you all in advance!


$\{\emptyset\}$ is a set containing the empty set. Is $\{\emptyset\}$ a subset of $\{\{\emptyset\}\}$?  My hypothesis is yes by looking at the form of "the superset $\{\{\emptyset\}\}$" which contains "the subset $\{\emptyset\}$".


Water level indicator with PNP transistor

I wanted to create a circuit that Lit's up an LED when water level rises to a certain level.   I have created the following schematics following the  However since the LED lit up even though there was no water i needed to add the R1 resistor.          – Schematic created using   Now i want to do the opposite. I want the LED to not light up when both probes are connected with water and lit up only when water level drops.   For that i have created a following circuit swapping the BC546B (NPN) with BC556B (PNP) transistor.          However this lights the LED when the probes are not connected with water but even shorting them doesn't turn off the PNP transistor (that is LED is still glowing). Removing the R1 and path to ground from base of the PNP makes it glow dimly (it glows more when i hold the water probe) and connecting them then does turn off the PNP.  Why is that ? I thought i can turn off the PNP by applying a small amount of voltage to its base?   How can i fix my circuit so that it works ?   Ps. i have also tried with a darlington PNP transistor TIP 125 and it doesn't work


How to evaluate the series $1+\frac34+\frac{3\cdot5}{4\cdot8}+\frac{3\cdot5\cdot7}{4\cdot8\cdot12}+\cdots$

How can I evaluate the following series: $$1+\frac{3}{4}+\frac{3\cdot 5}{4\cdot 8}+\frac{3\cdot 5\cdot 7}{4\cdot 8\cdot 12}+\frac{3\cdot 5\cdot 7\cdot 9}{4\cdot 8\cdot 12\cdot 16}+\cdots$$  In one book I saw this sum is equal to $\sqrt{8}$, but I don't know how to evaluate it.


Z-combine multiple openExr and render with passes

Lets say I rendered 2 different openexr images with some passes and now I want to z-combine them and save them as 1 openexr image with the same passes, how do I do that? I'm using cycles I tried the following, but it only saves it as combine, not with passes?


Deep clone object in Javascript except Object.assign

Object.assign doesn't deep copy an object. considering following code it should print 0 0 0 1 but it is printing 0 0 1 1.    var obj = {   "value": {     "default": 0   } }; var newo = Object.assign({}, obj);  console.log(obj.value.default); console.log(newo.value.default);  newo.value.default = 1;  console.log(obj.value.default); console.log(newo.value.default);     I know we can use JSON.parse(JSON.stringify(obj)). but is that a best practice solution?


I was looking for a generic method in .Net to encode a string for use in an Xml element or attribute, and was surprised when I didn't immediately find one.  So, before I go too much further, could I just be missing the built-in function?    Assuming for a moment that it really doesn't exist, I'm putting together my own generic EncodeForXml(string data) method, and I'm thinking about the best way to do this.    The data I'm using that prompted this whole thing could contain bad characters like &, <, ", etc.  It could also contains on occasion the properly escaped entities: &amp;, &lt;, and &quot;, which means just using a CDATA section may not be the best idea.  That seems kinda klunky anyay; I'd much rather end up with a nice string value that can be used directly in the xml.  I've used a regular expression in the past to just catch bad ampersands, and I'm thinking of using it to catch them in this case as well as the first step, and then doing a simple replace for other characters.    So, could this be optimized further without making it too complex, and is there anything I'm missing? :  Function EncodeForXml(ByVal data As String) As String     Static badAmpersand As new Regex("&(?![a-zA-Z]{2,6};|#[0-9]{2,4};)")      data = badAmpersand.Replace(data, "&amp;")      return data.Replace("<", "&lt;").Replace("""", "&quot;").Replace(">", "gt;") End Function   Sorry for all you C# -only folks-- I don't really care which language I use, but I wanted to make the Regex static and you can't do that in C# without declaring it outside the method, so this will be VB.Net  Finally, we're still on .Net 2.0 where I work, but if someone could take the final product and turn it into an extension method for the string class, that'd be pretty cool too.  Update The first few responses indicate that .Net does indeed have built-in ways of doing this.  But now that I've started, I kind of want to finish my EncodeForXml() method just for the fun of it, so I'm still looking for ideas for improvement.  Notably: a more complete list of characters that should be encoded as entities (perhaps stored in a list/map), and something that gets better performance than doing a .Replace() on immutable strings in serial.


Why an inconsistent formal system can prove everything?

I am reading a Set Theory book by Kunen. He presents first-order logic and claims that if a set of sentences in inconsistent, then it proves every possible sentence. Since he does not explicitly specify the inference rules, I became curious as to how fundamental this property of inconsistent systems is.  So my question is what is the simplest proof, with the least use of assumptions, of the vague claim that "inconsistent systems can prove anything" - in particular I'm interested in the assumptions about the system needed to prove this - is it true only for first order logic? Only for first order logic with the "standard" rules of inference (Modus ponens and GEN)? Or is it such a basic truth that it can be proved for every "reasonable" proof system (and what is "reasonable")?


Loop through 30K+ rows in groups/blocks of 10 or 100s

I've got a very long list of items, 30K+. I would like to loop through the entire list, but in groups/blocks of 10 or 100s.  So:  for 100items in 30Klist:     print 100items # list of 100 items from the long list   Is that somehow possible?


Equivalences between definitions in $\mathbb{R}$

$\newcommand{\diam}{\operatorname{Diam}}$ $\newcommand{\R}{\mathbb{R}}$ Consider the defintions: D1: Let $(X,d)$ a metric space, we have that $M \subseteq X$ is bounded if $\diam(M) < \infty$ D2: Let $(X,+,\cdot,0,1,<)$ an ordered field, we have that $M \subseteq X$ is bounded if it has an upper and lower bounds. I wanto to see that: For $M \subseteq R$. Show that $M$ is bounded as a subset of the ordered field $( \R,>)$ if and only if $M$ is bounded as subset of the metric space $(\R,d)$ where $d(x,y) = |x-y|$


I found my laptop from 6 years ago that my partner installed your operating system on. I have no idea what the password is. I have attempted to change it in recovery but when I try to type in a new password it wont let my type anything. I can press enter but it continues to say; 'Authentication token manipulation error' and ' password unchanged'.  I am not amazingly tech savvy, i know how to find and fix alot of problems but this type of stuff... ive done everything I could think of.  Can anybody help me?


Do you start combat with your weapon drawn when combat is not expected?

I've been reading through various D&D 5e questions on rpg.se and this question () has brought to my attention the free item interaction rule (from linked question's accepted answer/Basic Rules p. 70):  You can also interact with one object or feature of the environment for free, during either your move or your action. For example, you could open a door during your move as you stride toward a foe, or you could draw your weapon as part of the same action you use to attack. If you want to interact with a second object, you need to use your action. Some magic items and other special objects always require an action to use, as stated in their descriptions.  Reading this and the accepted answer from that other question, I get that to switch weapons mid-battle means sheathing one at the end of one turn and drawing the other at the start of your next turn (I'm ignoring dual wielding in this question for simplicity). I've always assumed that combat starts with weapons drawn, meaning you could use your free item interaction to draw your second weapon and attack with both (action and bonus action) on your first turn. It's perfectly reasonable to assume that the PCs have their weapons ready if they're expecting trouble. But in a situation where the PCs are not expecting trouble, then if it's actually the case that you use that free item interaction to draw your primary weapon at the start of your first turn, then obviously that won't work (since that's two weapon interactions; this is all assuming you don't want to use an action, of course). So, does combat start with at least one weapon drawn automatically when combat is not expected, or does drawing your weapon take up your first turn's free item interaction? If the latter, this also raises the question that if an enemy wins initiative (or you're "Surprised" by them) then you can't do opportunity attacks since you don't have your weapon out yet (unless unarmed strike is an option), but I don't want that to get anyone side-tracked from my main question here, which is about the free item interaction thing.


In Blade Runner 2049, when K is walking through the ruins of Las Vegas, he finds a small honey farm--overcrowded, swarming with the bees, as if not touched very often.  The film as it unfolds after that, never explains that scene.  Deckard was clearly the only person living in Vegas at the time; is he farming honey just to nourish himself in that wasteland town?  Or is there some broader artistic reason for the swarming bugs?


Is there one or more field of physics where $T$-symmetry is broken?

I've learned about the 'CPT Symmetry' and CP violation which indicates that if CP violation is true, which is considered for the existence of a universe made of matter rather than antimatter. But this violation also indicate that T symmetry should also exist. I've tried to find out if T symmetry is not possible for one or more physical law(s) then what are they? I found some answers like- it occurs in the field of weak nuclear force where also the C and P violation occurs. Now is the field of weak nuclear force only  responsible for T violation?


Define sequence $s_1 = \sqrt{2}$ and $s_{n+1} = \sqrt{2+s_n}$. Find $\lim_{n \rightarrow \infty} s_n$ and prove this convergence.

I'm completely at a lost as to how to solve this. A few things I do know is that $s_n > -2$ because square root can't take negative values. So this implies that $s_n$ is bounded by -2? I also know of a theorem that says that $s_n$ will converge if it is a monotone bounded sequence. The sequence is also increasing. So by the theorem, it will converge to $\lim_{n \rightarrow \infty} s_n = \sup \{ s_n : n \in \mathbb{N}\}$?   I'm not sure if this is correct and I'm also struggling with trying to prove this. Help would be appreciated.


What is Bayesian and Monte Carlo Simulation?

Can someone explain in plain language for a layperson what are Bayesian and Monte Carlo simulations and the relationship between the two? I thought Bayesian was the same as Monte Carlo Simulation...


Get directory of folder of the running jar

Please help I want to get the root folder of running jar.  D:\My Folder\My Folder1\ myjarfile  D:\My Folder\My Folder1\My Folder2   I want to save image in MyFolder2 using myjarfile. I have difficulties in coding in getting path of the executable jar:   String savePath = what goes there?(i want this "D:\My Folder\My Folder1\My Folder2")   ImageIO.write(image1, "png",new File(savePath));


What could be the affiliation if an author is currently not working anywhere?

I would like to submit a manuscript which has 5 co-authors. But one of the co-author is presently not working anywhere. So what could be the affiliation of this author? Is it Okay, if I provide the author's last affiliation address?


I have a linear regression and two estimates, say A and B and their standard errors. I need to find the standard error of a ratio A/B [or A/(1-B)].  I guess the main problem is that I don't know the correlation between A and B. I also guess that makes this unsolvable, since the correlation plays a major role. Is this correct?  If I knew it, what would be the way to calculate the standard error?


I need to get the path for public:// at runtime. Is there a function I can use to get it?


Does one need to be affiliated with a university to publish papers?

Assume you have already completed your undergrad and have been working for a number of years. Does one need to be part of a university or a learning institution to publish papers?


How to determine based on pairs of coordinates if there is an intersection between the two?

I have two line segments that are represented by two x,y coordinates, like so:  [(x1,y1),(x2,y2)] //start & end of first line [(x3,y3),(x4,y4)] //start & end of second line   What is the most efficient way to determine if there is an intersection in these lines?


Is it wrong to take someone else's answer from a comment and post it yourself?

From the title, I imagine the obvious reaction would be "No, posting someone else's answer as your own is stealing," at least to me. But  at is interesting: someone left an answer as a comment, and then the OP posted that as an answer. It was clearly attributed, but even so I would have asked the person who left the comment before posting an answer, even if it was my own post. What is the etiquette here?


How to compile all LaTeX files in subdirectories?

I have a directory which has subdirectories (of arbitrary depth) that all have files, but have LaTeX (.tex) files as well. However, I do not want to go to each file and compile each separately. Is there a script to compile all of them at once from the top directory?


How does Harry Potter save himself from the dementors?

In Harry Potter and the Prisoner of Azkaban, Harry is attacked by a swarm of Dementors and as his soul is being sucked out he is saved by what he thinks is his Father. He later learns that it is he himself performing the Patronus charm. If he died in the first timeline, how can he be alive in order to 'go back' in time to save himself from that event?


Example test class cover Catch block catch ( exception ex )

I am looking for an example of a test class where you cover the  catch (DmlException e) { //Code }  also catch (Exception e) { //Code }


Chrome and Firefox cannot add specific URL to home screen

I'm using Chrome and Firefox on Android 10. I need to add a link to my home screen and I can't find a way to add the specific link. I know that I can do the following:  Go to the URL Tap the overflow (3-dot) menu Add to home screen  However, if I navigate to a specific URL within some sites, like Weather Underground () and follow the above process, it doesn't add the specific URL, it adds www.wunderground.com and doesn't seem to give me any way to edit that URL to reference the specific subpage (e.g. www.wunderground.com/my/specific/url). Why, and how to solve this?


I remember that Roberto Valenzuela mentions in one of its courses that for educational purposes it is a good idea to buy a light meter and study light properties in different circumstances, locations. Digital cameras also have built in light meters. Light meters are lighter and easier to use, but is there any other benefit for me in buying a $200 Sekonic or just use the built in light meter?


How to reset the root password in ubuntu o.s ?  I have forgotten the root password  and tried to login in recovery mode but root password is asked.


Do I need a UK visa? How and where to apply?

I live in Germany since May 2013 as a spouse of German citizen. In Nov 2015 we divorced and I have German residence permit till Jan 2018. We have a son in this marriage and legally I have the right to live in Germany indefinitely. I would like to visit my brother and sister who are British citizens living in UK. What is the visa procedure for me to travel to UK for a week.  Do I need a visa to enter UK ?


I would like to use a wrapfigure with enumerate. But it doesn't work. With this code:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{wrapfig} \usepackage{blindtext}  \begin{document} And now let's do a little test \begin{wrapfigure}{r}{4cm} \centering \begin{tikzpicture}   \matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]   {M &N\\    M/N&\\};   \path[-stealth,>=stealth]     (m-1-1)edge node[left]{$p$} (m-2-1)            edge node[above]{$f$}(m-1-2)     (m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2); \end{tikzpicture} \end{wrapfigure} \blindtext[1]  \begin{enumerate} \item\begin{wrapfigure}{r}{4cm} \centering \begin{tikzpicture}   \matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]   {M  &N\\    M/N&\\};   \path[-stealth,>=stealth]     (m-1-1)edge node[left]{$p$} (m-2-1)            edge node[above]{$f$}(m-1-2)     (m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2); \end{tikzpicture} \end{wrapfigure} \blindtext[1] \item\blindtext[1] \end{enumerate} \end{document}   I get this:    Now, with cutwin package and this code:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{cutwin} \usepackage{caption} \usepackage{lipsum} \begin{document} \renewcommand\windowpagestuff{% \hspace*{25pt}  \begin{tikzpicture}   \matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]   { M  &N\\     M/N&\\};   \path[-stealth,>=stealth]     (m-1-1)edge node[left]{$p$} (m-2-1)            edge node[above]{$f$}(m-1-2)     (m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2); \end{tikzpicture}  } \opencutleft  \begin{cutout}{2}{10pt}{0.5\linewidth}{12} \begin{enumerate} {% \parshape 15 26pt \linewidth 26pt \linewidth 0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth    0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth   0.5\linewidth 0.5\linewidth 26 pt \linewidth \item \lipsum[1] }% \item \lipsum[2] \item \lipsum[2] \end{enumerate} \end{cutout} \end{document}   It doesn't work.


How is a program uninstalled in Ubuntu?   By internet search I know to go to System/Administrator/something. Where is this so-called "system" found? What is this "system"? System sounds important.  Is it possible to uninstall Ubuntu One and Ubuntu Music and have their icons removed from the Launcher?


Missing Terminal, Menu Bar and other things

I have uninstalled python 3.4 and python 3.5 by mistakenly. After Reboot, I have faced that problem. I didn't reach anything like terminal, menu or another bar. Only I can open a folder and reach to folders with GUI. How to fix that problem? Any help would be appreciated. Thanks in advance.


Article when there is an adjective before a noun

When to use a or an before a noun when there are adjectives before that noun? like the following example:  An operator pressed the button.  should that make:  A professional operator pressed the button. An professional operator pressed the button.  same for:  A Hypertext markup language. An Hypertext markup language.  Sometimes it seems a bit confusing, especially when there are more adjectives like:  An omen was revealed to the priest. A terrible omen was revealed to the priest. An overwhelming terrible omen was revealed to the priest.  What is the rule?


Who did Voldemort kill to create the horcruxes?

Is there any information on who Voldemort killed specifically to create his horcruxes?  I know he's killed tons of people, but in doing something as important to him as creating the horcruxes, I feel like it would be in his nature to kill certain people that had some sort of meaning to him.  Is there any information on any of the identities of those he killed specifically to create the horcruxes?


How to set static routes in Ubuntu Server?

I have used Ubuntu since Ubuntu 8.10; today I'm working with Ubuntu 12.04 Server.   I am having difficulty keeping static routes on booting. I would usually put the route commands   /sbin/route add -net <IP>/<MASK> <GW> dev <ethX>   in /etc/rc.local or I would create a file (named routes) inside the directory /etc/network/if-up/, but I notice that on Ubuntu 12.04 it isn't working.    If I type the commands in the shell, they work, but the same commands don't work when they  are in the specified file.   I already tried to change the file name to other names thinking that my file name (routes) could be erroneous in Ubuntu 12.04, but that also did not work.  I notice also that command /sbin/ifconfig works, less the /sbin/route.  What changed in network set-up?  How can I define static routes on Ubuntu 12.04?


Is there a symbol to mean 'this is undefined'?

Consider a partial function $f$ that is defined only for a few values of its domain (my exact use case is $\delta$ transition functions in automata). One can 'complete' it by saying $$g(x)=0\iff f(x) \text{ is not defined.}$$  Is there a symbol to mean "undefined"? Would it be correct, or accurate, to write $\nexists f(x)$?


Does my boarding port to the Schengen Area need to be in the country in which I recieved my Schengen visa?

Can I use my Schengen visa from a country that is different from the country it was issued from?  I'm an Egyptian citizen who lives in Qatar but I want to travel from Egypt.


How to delete duplicate emails from a database having over 100k records?

I have a database of around 126K entries, It has many entries having duplicate emails. I want to delete all the entries with duplicate ones and just the keep the one that was created earliest.   I tried using the following query but it takes forever and maxes out my server bandwidth.   Can anyone help?   DELETE n1 FROM table n1, table n2 WHERE n1.ID > n2.ID AND n1.email = n2.email     Database Specifications   PhpMyAdmin Version information: 3.5.3 Server: Localhost via UNIX socket Software: MySQL Software version: 5.0.67-community - MySQL Community Edition (GPL) Protocol version: 10 Server charset: UTF-8 Unicode (utf8)


Xubuntu 14.0.3 lost all network connectivity

I'm running Xubuntu 14.04.3 on a Lenovo G50-70 updated earlier today, but I don't think any updates to the Kernel.  I shut the laptop down, and had to leave for a wile.    When I turned the unit back on when I came back, I noticed that there were no network connectivity, either wired or wireless.  If I try to add a connection through network manager, I can't since all is grayed out.      If I try to do sudo service network-manager restart I get    Even the network indicator has disappeared.  How can this be fixed.  I tried the fix , and it fixed it.


I posted the code below to the Sun developers forum since I thought it was erroring (the true error was before this code was even hit).  One of the responses I got said it would not work and to throw it away.  But it is actually working.  It might not be the best code (I am new to Java) but is there something inherently "wrong" with it?   =============  CODE:   private static void ImportFromCsvToAccessTable(String mdbFilePath, String accessTableName  , String csvDirPath , String csvFileName ) throws ClassNotFoundException, SQLException {      Connection msConn = getDestinationConnection(mdbFilePath);     try{          String strSQL = "SELECT * INTO " + accessTableName + " FROM [Text;HDR=YES;DATABASE=" + csvDirPath + ";].[" + csvFileName + "]";         PreparedStatement selectPrepSt = msConn.prepareStatement(strSQL );         boolean result = selectPrepSt.execute();                 System.out.println( "result = " + result );      } catch(Exception e) {         System.out.println(e);     } finally {         msConn.close();     } }